/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* =====================================================================
   加熱煙配件工坊 — Deep Ink Black × Amber Gold
   Scoped overrides on top of WoodMart. Bumped via filemtime version.
   ===================================================================== */

:root {
  --hh-ink: #0B0C10;
  --hh-ink-2: #12141A;
  --hh-ink-3: #1A1D26;
  --hh-line: rgba(201, 162, 74, .22);
  --hh-line-soft: rgba(201, 162, 74, .12);
  --hh-gold: #C9A24A;
  --hh-gold-2: #E8C877;
  --hh-gold-deep: #A67F2E;
  --hh-cream: #F2E9D8;
  --hh-text: #C9CCD4;
  --hh-muted: #9AA0AC;
  /* WoodMart variables */
  --wd-primary-color: #C9A24A;
  --wd-primary-color-rgb: 201, 162, 74;
  --wd-title-color: #F2E9D8;
  --wd-text-color: #C9CCD4;
  --wd-link-color: #E8C877;
  --wd-link-color-hover: #C9A24A;
  --wd-border-color: rgba(201, 162, 74, .18);
}

html, body {
  background: var(--hh-ink) !important;
  color: var(--hh-text);
}

::selection { background: rgba(201, 162, 74, .35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0B0C10; }
::-webkit-scrollbar-thumb { background: #2A2D37; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--hh-gold-deep); }

h1, h2, h3, h4, h5, h6, .wd-entities-title, .product-title { color: var(--hh-cream); }

a { color: var(--hh-gold-2); }
a:hover { color: var(--hh-gold); }

/* ---------- header ---------- */
.whb-main-header,
.whb-flex-row,
.whb-row { background-color: var(--hh-ink); }
.whb-main-header { border-bottom: 1px solid var(--hh-line-soft); box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
.whb-row { border-color: rgba(201, 162, 74, .10); }

.whb-main-header .wd-nav > li > a,
.whb-main-header .wd-tools-element > a,
.whb-main-header .wd-header-text { color: #E9E6DF; }
.whb-main-header .wd-nav > li > a:hover,
.whb-main-header .wd-nav > li.current-menu-item > a,
.whb-main-header .wd-tools-element > a:hover { color: var(--hh-gold-2); }

.whb-main-header .wd-dropdown { background: var(--hh-ink-2); border: 1px solid var(--hh-line-soft); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.whb-main-header .wd-dropdown a { color: var(--hh-text); }
.whb-main-header .wd-dropdown a:hover { color: var(--hh-gold-2); }

.whb-main-header .wd-search-form input[type="text"] { background: var(--hh-ink-3); border-color: var(--hh-line-soft); color: var(--hh-cream); }

/* mobile menu */
.wd-side-hidden, .mobile-nav .sub-menu-dropdown { background: var(--hh-ink-2); color: var(--hh-text); }
.wd-side-hidden a, .mobile-nav a { color: var(--hh-text); }
.wd-side-hidden a:hover, .mobile-nav a:hover { color: var(--hh-gold-2); }

/* ---------- page title / breadcrumbs ---------- */
.page-title { background: var(--hh-ink-2) !important; color: var(--hh-cream); }
.page-title .entry-title { color: var(--hh-cream); }
.breadcrumbs, .yoast-breadcrumb, .wd-breadcrumbs { color: var(--hh-muted); }
.breadcrumbs a { color: var(--hh-gold-2); }

/* ---------- buttons ---------- */
.btn, .wd-btn, button,
input[type="submit"], input[type="button"],
.woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt {
  background: var(--hh-gold);
  color: var(--hh-ink);
  border: 1px solid var(--hh-gold);
  border-radius: 8px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover, .wd-btn:hover, button:hover,
input[type="submit"]:hover, input[type="button"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--hh-gold-2);
  border-color: var(--hh-gold-2);
  color: var(--hh-ink);
  box-shadow: 0 6px 22px rgba(201, 162, 74, .35);
}
.woocommerce a.button.woosw-btn, .woocommerce a.button.woosc-btn,
.wd-wishlist-btn, .wd-compare-btn {
  background: transparent; color: var(--hh-muted); border-color: var(--hh-line);
}

/* ---------- forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="search"], input[type="number"], input[type="url"], select, textarea,
.select2-container--default .select2-selection--single {
  background: var(--hh-ink-2) !important;
  border: 1px solid var(--hh-line) !important;
  color: var(--hh-cream) !important;
  border-radius: 8px;
}
input::placeholder, textarea::placeholder { color: #6E7480; }
input:focus, select:focus, textarea:focus { border-color: var(--hh-gold) !important; box-shadow: 0 0 0 3px rgba(201, 162, 74, .15); }

/* ---------- shop cards ---------- */
.wd-product,
.product-grid-item,
.wd-product .product-wrapper {
  background: var(--hh-ink-2);
  border: 1px solid var(--hh-line-soft);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.wd-product:hover { border-color: var(--hh-line); box-shadow: 0 14px 36px rgba(0, 0, 0, .5); transform: translateY(-3px); }
.wd-product .wd-entities-title a { color: var(--hh-cream); }
.wd-product .wd-entities-title a:hover { color: var(--hh-gold-2); }
.price, .wd-product .price, .woocommerce ul.products li.product .price { color: var(--hh-gold-2) !important; }
.price del { color: #6E7480 !important; }
.price ins { text-decoration: none; }
.wd-product .added_to_cart, .wd-product .button { background: var(--hh-gold); color: var(--hh-ink); }

.woocommerce ul.products li.product { background: transparent; }

/* ---------- single product ---------- */
.single-product .product-image-summary,
.single-product div.product .summary,
.single-product .woocommerce-tabs,
.single-product .related.products .wd-products {
  color: var(--hh-text);
}
.single-product div.product .woocommerce-tabs ul.tabs li a { color: var(--hh-muted); }
.single-product div.product .woocommerce-tabs ul.tabs li.active a { color: var(--hh-gold-2); }
.single-product .woocommerce-Price-amount { color: var(--hh-gold-2); }
div.product form.cart .button { background: var(--hh-gold); color: var(--hh-ink); border-color: var(--hh-gold); }
div.product form.cart .button:hover { background: var(--hh-gold-2); border-color: var(--hh-gold-2); }
.woocommerce div.product .woocommerce-tabs .panel { color: var(--hh-text); }
.wd-product-label, .onsale { background: var(--hh-gold); color: var(--hh-ink); }

/* ---------- cart / checkout / account ---------- */
.woocommerce-cart-form, .woocommerce-checkout, .wd-my-account-links,
.woocommerce-account .woocommerce {
  color: var(--hh-text);
}
.shop_table, .woocommerce table.shop_table { background: var(--hh-ink-2); border-color: var(--hh-line-soft); color: var(--hh-text); border-radius: 12px; }
.shop_table th { color: var(--hh-gold-2); }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-checkout-review-order { background: var(--hh-ink-2); border-color: var(--hh-line-soft); }

/* ---------- footer ---------- */
.footer-container, .main-footer { background: var(--hh-ink-2) !important; color: var(--hh-muted); }
.footer-container a, .main-footer a { color: var(--hh-text); }
.footer-container a:hover, .main-footer a:hover { color: var(--hh-gold-2); }
.footer-container h4, .footer-container .widget-title, .main-footer .widget-title { color: var(--hh-cream); }
.copyrights-wrapper { background: var(--hh-ink) !important; border-top: 1px solid var(--hh-line-soft); color: #7C828E; }
.copyrights-wrapper a { color: var(--hh-gold-2); }
.min-footer { color: #7C828E; }

/* ---------- widgets / misc ---------- */
.widget, .wd-widget { color: var(--hh-text); }
.widget-title { color: var(--hh-cream); }
/* sidebar widget headings readability (dark-on-dark fix) */
.wd-sidebar .widget-title, .wd-sidebar .widgettitle, .wd-sidebar h4.widget-title, .wd-sidebar h5.widget-title,
.sidebar-container .widget-title, .sidebar-container .widgettitle,
.widget .widget-title, .widgettitle, .wd-widget .wd-widget-title,
.widget_product_categories .widget-title, .widget_price_filter .widget-title,
.widget_top_rated_products .widget-title, .widget_rating_filter .widget-title {
  color: var(--hh-cream) !important;
}
.wd-sidebar .widget-title::after, .sidebar-container .widget-title::after { background: var(--hh-line) !important; }
.wd-sidebar li, .sidebar-container li { color: var(--hh-text); }
.wd-sidebar li a, .sidebar-container li a { color: var(--hh-text) !important; }
.wd-sidebar li a:hover, .sidebar-container li a:hover { color: var(--hh-gold-2) !important; }
.wd-sidebar .count, .sidebar-container .count { color: var(--hh-muted) !important; }
.wd-sidebar .ui-slider .ui-slider-handle, .sidebar-container .ui-slider .ui-slider-handle { background: var(--hh-gold) !important; }
.wd-sidebar .ui-slider .ui-slider-range { background: rgba(201, 162, 74, .35) !important; }
.wd-toolbar { background: rgba(11, 12, 16, .96); border-top: 1px solid var(--hh-line-soft); }
.wd-toolbar a { color: var(--hh-text); }
.wd-toolbar a:hover { color: var(--hh-gold-2); }

/* =====================================================================
   HOMEPAGE (page id 18) — hand-built sections
   ===================================================================== */
body.home .page-title { display: none !important; }
body.home .main-page-wrapper { background: var(--hh-ink); }
body.home .container { max-width: 100%; width: 100%; padding-left: 0; padding-right: 0; }
body.home .content-layout-wrapper { margin: 0; padding: 0; }
body.home .site-content { margin: 0; padding: 0; }
body.home .entry-content { max-width: none; margin: 0; padding: 0; }

.hnbws-home { color: var(--hh-text); overflow-x: clip; }
.hnbws-home .hh-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* hero */
.hh-hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(201, 162, 74, .18), transparent 60%),
    radial-gradient(700px 380px at 8% 110%, rgba(201, 162, 74, .10), transparent 55%),
    var(--hh-ink);
  border-bottom: 1px solid var(--hh-line-soft);
  overflow: hidden;
}
.hh-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(201,162,74,.05) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.hh-hero-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 96px 20px 88px; text-align: center; }
.hh-hero-badge {
  display: inline-block; letter-spacing: .28em; font-size: 12px; color: var(--hh-gold);
  border: 1px solid var(--hh-line); border-radius: 999px; padding: 8px 18px; margin-bottom: 26px;
  background: rgba(201, 162, 74, .06);
}
.hh-h1 {
  font-size: clamp(40px, 6.4vw, 74px); line-height: 1.12; margin: 0 0 20px; font-weight: 800;
  background: linear-gradient(180deg, #FAECCD 8%, #C9A24A 78%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hh-sub { max-width: 720px; margin: 0 auto 34px; font-size: clamp(15px, 2vw, 18px); color: var(--hh-muted); line-height: 1.8; }
.hh-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hh-btn {
  display: inline-block; padding: 14px 34px; border-radius: 10px; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: all .2s ease;
}
.hh-btn-gold { background: linear-gradient(180deg, var(--hh-gold-2), var(--hh-gold)); color: var(--hh-ink); box-shadow: 0 10px 30px rgba(201, 162, 74, .3); }
.hh-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(201, 162, 74, .45); color: var(--hh-ink); }
.hh-btn-ghost { border: 1px solid var(--hh-line); color: var(--hh-cream); background: rgba(201, 162, 74, .04); }
.hh-btn-ghost:hover { border-color: var(--hh-gold); color: var(--hh-gold-2); }
.hh-trust { list-style: none; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin: 42px 0 0; padding: 0; }
.hh-trust li { color: var(--hh-muted); font-size: 14px; }
.hh-trust li span { color: var(--hh-gold); margin-right: 7px; }

/* sections */
.hh-sec { padding: 74px 0; }
.hh-sec-alt { background: var(--hh-ink-2); border-top: 1px solid var(--hh-line-soft); border-bottom: 1px solid var(--hh-line-soft); }
.hh-sechead { text-align: center; margin-bottom: 40px; }
.hh-kicker { letter-spacing: .3em; font-size: 12px; color: var(--hh-gold); }
.hh-sechead h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 10px 0 8px; color: var(--hh-cream); }
.hh-sechead p { color: var(--hh-muted); margin: 0; }

/* category tiles */
.hnbws-cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.hnbws-cat {
  display: block; background: var(--hh-ink-3); border: 1px solid var(--hh-line-soft);
  border-radius: 14px; overflow: hidden; text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.hnbws-cat:hover { transform: translateY(-4px); border-color: var(--hh-line); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }
.hnbws-cat-ph { position: relative; padding-top: 78%; overflow: hidden; background: #15171F; }
.hnbws-cat-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hnbws-cat-meta { padding: 12px 14px 14px; }
.hnbws-cat-name { display: block; color: var(--hh-cream); font-weight: 700; font-size: 15px; line-height: 1.4; }
.hnbws-cat-n { display: block; margin-top: 4px; color: var(--hh-gold); font-size: 12.5px; }

/* product cards */
.hnbws-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hnbws-card {
  display: block; text-decoration: none; background: var(--hh-ink-3);
  border: 1px solid var(--hh-line-soft); border-radius: 14px; overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.hnbws-card:hover { transform: translateY(-4px); border-color: var(--hh-line); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.hnbws-card-ph { position: relative; padding-top: 100%; background: #15171F; overflow: hidden; }
.hnbws-card-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hnbws-card-tag {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: rgba(11, 12, 16, .82); border: 1px solid var(--hh-line);
  color: var(--hh-gold-2); font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
  max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hnbws-card-body { padding: 14px 16px 16px; }
.hnbws-card-ttl { margin: 0 0 8px; color: var(--hh-cream); font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.hnbws-card-price { color: var(--hh-gold-2); font-weight: 700; font-size: 16px; }
.hnbws-card-price del { color: #6E7480; font-weight: 400; font-size: 13px; margin-right: 6px; }
.hnbws-card-cta { display: inline-block; margin-top: 10px; color: var(--hh-gold); font-size: 13px; font-weight: 600; }
.hnbws-card:hover .hnbws-card-cta { color: var(--hh-gold-2); }

/* features */
.hh-features { padding: 60px 0; background: var(--hh-ink-2); border-top: 1px solid var(--hh-line-soft); border-bottom: 1px solid var(--hh-line-soft); }
.hh-featgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hh-feat { text-align: center; padding: 26px 18px; border: 1px solid var(--hh-line-soft); border-radius: 14px; background: var(--hh-ink-3); }
.hh-feat svg { width: 44px; height: 44px; margin-bottom: 12px; }
.hh-feat h3 { margin: 0 0 8px; font-size: 17px; color: var(--hh-cream); }
.hh-feat p { margin: 0; font-size: 13.5px; color: var(--hh-muted); line-height: 1.7; }

/* FAQ */
.hh-faq { max-width: 860px; margin: 0 auto; }
.hh-faq details { background: var(--hh-ink-3); border: 1px solid var(--hh-line-soft); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.hh-faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; color: var(--hh-cream); list-style: none; position: relative; padding-right: 48px; }
.hh-faq summary::-webkit-details-marker { display: none; }
.hh-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--hh-gold); font-size: 22px; font-weight: 400; }
.hh-faq details[open] summary::after { content: "−"; }
.hh-faq .hh-faq-a { padding: 0 20px 18px; color: var(--hh-muted); line-height: 1.85; font-size: 14.5px; }

/* CTA band */
.hh-cta-band {
  text-align: center; padding: 70px 20px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(201, 162, 74, .16), transparent 65%),
    var(--hh-ink);
  border-top: 1px solid var(--hh-line-soft);
}
.hh-cta-band h2 { color: var(--hh-cream); font-size: clamp(24px, 3.4vw, 36px); margin: 0 0 12px; }
.hh-cta-band p { color: var(--hh-muted); margin: 0 0 28px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hnbws-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hnbws-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hh-featgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-hero-inner { padding: 70px 20px 64px; }
}
@media (max-width: 640px) {
  .hnbws-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hnbws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hh-featgrid { grid-template-columns: minmax(0, 1fr); }
  .hh-sec { padding: 52px 0; }
  .hh-trust { gap: 14px; }
  .hh-btn { padding: 13px 26px; }
}
