/*
Theme Name: LumenX
Theme URI: https://lumenxcarlight.com
Author: LumenX
Description: LumenX automotive lighting showcase. Dark performance style (default), skin-switchable via CSS variables, inquiry list instead of cart, fully responsive. Pairs with LumenX Core.
Version: 2.9.6
License: GPLv2 or later
Text Domain: lumenx
*/

/* ---------------------------------------------------------------
 * DEFAULT SKIN = dark-performance. Every visual token is a variable.
 * A skin file (assets/skins/<skin>.css) overrides ONLY these tokens;
 * the front end loads exactly one skin file per request.
 * --------------------------------------------------------------- */
:root {
    --bg: #0b0e13;
    --surface: #121822;
    --surface-2: #18212e;
    --ink: #070a0e;
    --ink-2: #0d1219;
    --text: #f3f6fa;
    --muted: #96a3b4;
    --line: #243040;
    --brand: #e5252c;
    --brand-dark: #b91c22;
    --brand-soft: rgba(229, 37, 44, .14);
    --on-brand: #ffffff;
    --on-dark: #ffffff;
    --on-hero: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 14px 38px rgba(0, 0, 0, .42);
    --shadow-soft: 0 6px 20px rgba(0, 0, 0, .26);
    --max: 1280px;
    --header-h: 78px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --heading-font: var(--font);
    --heading-weight: 800;
    --heading-tracking: -.02em;
    --btn-radius: 8px;
    --btn-weight: 700;
    --card-bg: var(--surface);
    --card-border: var(--line);
    --grid-gap: 24px;
    --section-y: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .55em; font-weight: var(--heading-weight); letter-spacing: var(--heading-tracking); font-family: var(--heading-font); }
h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.55rem); }
h3 { font-size: 1.2rem; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
button, input, textarea, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding: var(--section-y) 0; }
.section-sm { padding: 46px 0; }
.section-alt { background: var(--surface); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 800; color: var(--brand); margin-bottom: 12px; }
.lead { font-size: 1.06rem; color: var(--muted); max-width: 700px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-results { padding: 64px 0; text-align: center; color: var(--muted); }
.divider { height: 1px; background: var(--line); border: 0; margin: 28px 0; }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: var(--btn-radius); font-weight: var(--btn-weight); font-size: .94rem; border: 1px solid transparent; transition: .18s ease; cursor: pointer; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-dark); color: var(--on-brand); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-dark { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-dark:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 9px 16px; font-size: .86rem; }
.btn-block { width: 100%; }

/* ---------------- Header / navigation ---------------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--ink); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: var(--header-h); }
.brand-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo img { width: auto; height: 46px; max-width: 190px; object-fit: contain; }
.brand-text { font-weight: 800; font-size: 1.42rem; letter-spacing: .08em; color: var(--on-dark); }
.brand-text span { color: var(--brand); }
.brand-text small { display: block; font-size: .56rem; letter-spacing: .28em; color: var(--muted); font-weight: 700; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 1.4rem; cursor: pointer; color: var(--text); width: 44px; height: 42px; line-height: 1; }
.main-nav { display: flex; align-items: center; flex: 1 1 auto; justify-content: center; }
.main-nav > ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 12px 15px; font-weight: 650; font-size: .93rem; color: var(--text); white-space: nowrap; border-radius: var(--radius-sm); }
.main-nav > ul > li > a:hover, .main-nav > ul > li.current > a { color: var(--brand); }
.caret { font-size: .62rem; opacity: .8; }
/* Products mega menu: single column of root categories on the left,
   sub-categories of the hovered root on the right. */
/* Cascading columns: only the root column shows initially; hovering an item
   opens just that item's child column, for any depth of categories. */
/* Root column stays pinned to the left edge of the Products item; child columns only
   extend to the right. No centring / transform => the root list never shifts on hover. */
.mega { position: absolute; top: 100%; left: 0; width: max-content; max-width: calc(100vw - 48px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: none; overflow-x: auto; }
.has-mega:hover > .mega, .has-mega.open > .mega, .has-mega:focus-within > .mega { display: flex; }
.mega-col { flex: 0 0 230px; width: 230px; border-right: 1px solid var(--line); padding: 6px 0; }
.mega-col:last-child { border-right: 0; }
.mega-col[hidden] { display: none; }
.mega-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; font-size: .9rem; color: var(--text); border-bottom: 1px solid var(--line); white-space: nowrap; }
.mega-item:last-child { border-bottom: 0; }
.mega-item:hover, .mega-item.active { color: var(--brand); background: var(--surface-2); }
.mega-item .arrow { opacity: .5; }
.nav-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.nav-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 0 6px 0 14px; height: 40px; }
.nav-search input { border: 0; background: transparent; color: var(--text); width: 150px; font-size: .88rem; outline: none; }
.nav-search input::placeholder { color: var(--muted); }
.nav-search button { border: 0; background: transparent; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 6px 8px; }
.nav-search button:hover { color: var(--brand); }
.quote-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: var(--surface); cursor: pointer; }
.quote-toggle:hover { border-color: var(--brand); color: var(--brand); }
.quote-count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: .68rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.quote-count[hidden] { display: none; }

/* ---------------- Hero slider (full-bleed) ---------------- */
/* Hero: keep the original 1920x649 artwork fully visible — no crop, no stretch. */
/* Native artwork ratio is 2560x1067 (2.4:1). Declaring it in CSS means the
 * box is correct even before JS runs or if JS is blocked — no letterbox,
 * no crop, no layout jump. JS still refines it from the first image's real
 * dimensions in case a different-sized set is uploaded later. */
.hero { position: relative; width: 100%; aspect-ratio: 2560 / 1067; background: var(--ink); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .9s ease; display: grid; place-items: center; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
/* Whole-slide link to the product catalogue. Inactive slides must never
   intercept clicks (pointer-events above); dots sit on a higher z-index. */
.hero-link { display: block; width: 100%; height: 100%; color: var(--text); }
.hero-link:hover, .hero-link:visited, .hero-link:active { color: var(--text); }
.hero-link:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.hero::after { display: none; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; z-index: 3; display: flex; gap: 9px; justify-content: center; }
.hero-dots button { width: 26px; height: 4px; border: 0; border-radius: 2px; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.hero-dots button.active { background: var(--brand); width: 40px; }
/* Low-key CTA strip BELOW the artwork instead of text over the artwork. */
.hero-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line); }
.hero-cta .hero-cta-text { font-size: .95rem; color: var(--muted); }
.hero-cta .hero-cta-text strong { color: var(--text); }
.hero-cta .hero-cta-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- Section headers ---------------- */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.sec-head .eyebrow { margin-bottom: 8px; }
.sec-head h2 { margin-bottom: 0; }

/* ---------------- Cards / grids ---------------- */
.grid { display: grid; gap: var(--grid-gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; transition: .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.card-media { aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; position: relative; display: block; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .no-image { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.card-body { padding: 18px 20px 22px; }
/* Round 13 (owner request, applies to EVERY product card): the title should be
   quieter (smaller / lighter), while the SKU-model line becomes darker and
   bigger. Scoped to .card-body so index/search .meta rows keep their style. */
.card-body h3 { margin-bottom: 8px; font-size: .9rem; font-weight: 500; letter-spacing: 0; line-height: 1.45; color: var(--muted); }
.card-body h3 a { color: inherit; }
.card-body h3 a:hover { color: var(--brand); }
.card-body .meta { color: var(--text); font-size: .9rem; font-weight: 800; letter-spacing: .04em; margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.meta { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--on-dark); font-size: .68rem; font-weight: 800; letter-spacing: .08em; padding: 5px 10px; border-radius: 6px; text-transform: uppercase; }
.badge.hot { background: var(--brand); color: var(--on-brand); }
.card-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.cat-card { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: .2s; }
.cat-card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card .cat-img { aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.cat-card .cat-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.cat-card:hover .cat-img img { transform: scale(1.05); }
.cat-card .cat-label { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat-card h3 { font-size: 1rem; margin: 0; }
.cat-card .arrow { color: var(--brand); font-size: 1.2rem; }
.cat-card .count { color: var(--muted); font-size: .78rem; display: block; margin-top: 3px; }

/* ---------------- News list (image left / text right) ---------------- */
.news-row { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.news-row .thumb { flex: 0 0 240px; width: 240px; background: var(--surface-2); }
.news-row .thumb img { width: 100%; height: 190px; object-fit: cover; }
.news-row .body { flex: 1 1 auto; min-width: 0; padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; }
.news-row .post-meta { font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.news-row h3 { font-size: 1.18rem; margin-bottom: 10px; }
.news-row p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

/* ---------------- Page head / breadcrumbs ---------------- */
.page-head { background: var(--surface); padding: 54px 0 44px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 8px; }
.breadcrumbs { font-size: .98rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .sep { margin: 0 8px; opacity: .6; }

/* ---------------- Product archive ---------------- */
.catalog { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 34px; align-items: start; }
.cat-tree { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.cat-tree h4 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.cat-tree > ul { list-style: none; padding: 0; margin: 0; }
.cat-tree .tree-root > a { display: block; font-weight: 750; font-size: .94rem; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cat-tree .tree-root > a:hover, .cat-tree .tree-root.active > a { color: var(--brand); }
.cat-tree .tree-leaves { list-style: none; padding: 6px 0 10px 12px; margin: 0; }
.cat-tree .tree-leaves a { display: block; font-size: .86rem; color: var(--muted); padding: 4px 0; }
.cat-tree .tree-leaves a:hover, .cat-tree .tree-leaves .active a { color: var(--brand); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.toolbar .result-count { font-size: .9rem; color: var(--muted); }
.local-search { display: flex; gap: 8px; flex: 1 1 260px; max-width: 380px; }
.local-search input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .9rem; }
.local-search input:focus { border-color: var(--brand); outline: none; }
.load-more { display: flex; justify-content: center; margin-top: 34px; }
.load-more .btn { min-width: 210px; }
.loading-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: lx-spin .8s linear infinite; }
@keyframes lx-spin { to { transform: rotate(360deg); } }

/* ---------------- Single product ---------------- */
.product-layout { display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: start; }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); aspect-ratio: 4/3; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs img { width: 76px; height: 76px; object-fit: contain; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; background: var(--surface); }
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--brand); }
/* Round 13 + 14: owner asked twice for a smaller product H1; crumbs/SKU bigger. */
.product-title { font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.35; }
.product-sku { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .98rem; font-weight: 650; color: var(--text); margin: 0 0 10px; letter-spacing: .04em; }
.product-cats a { color: var(--brand); font-size: .88rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 650; }
.inquiry-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 24px; }
.inquiry-box p { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.qty-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.qty-input { width: 92px; padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.qty-row label { font-size: .9rem; color: var(--muted); }
.toast { position: fixed; top: calc(var(--header-h) + 16px); right: 20px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 13px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: .9rem; font-weight: 700; opacity: 0; transform: translateY(-12px); transition: .25s ease; pointer-events: none; visibility: hidden; }
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; }
.toast a { cursor: pointer; }
.toast a { text-decoration: underline; }

/* ---------------- Entry / pages ---------------- */
.entry-content { color: var(--text); }
.entry-content h2 { margin-top: 1.5em; }
.entry-content h3 { margin-top: 1.3em; }
.entry-content img { border-radius: var(--radius); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px; }
.entry-content a { color: var(--brand); }
.page-grid { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.about-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.about-hero img { border-radius: var(--radius); width: 100%; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat strong { display: block; font-size: 1.7rem; color: var(--brand); }
.stat span { font-size: .82rem; color: var(--muted); }
.review { background: var(--surface); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); padding: 20px 22px; margin-bottom: 16px; }
.review p { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.review .who { font-size: .86rem; font-weight: 700; color: var(--text); }
.about-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-gallery img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; object-fit: contain; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------------- About — supplier-trust layout (plan B) ----------------
 * Shared tokens only; every skin keeps identical structure and readable text. */
.about-block { margin-top: 54px; }
.about-block .sec-head { margin-bottom: 24px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.why-card:hover { border-color: var(--brand); }
.why-card .why-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: .9rem; font-weight: 700; margin-bottom: 14px; }
.why-card h3, .why-card:hover h3 { color: var(--text); font-size: 1.06rem; margin-bottom: 10px; }
.why-card p, .why-card:hover p { color: var(--muted); font-size: .92rem; margin: 0; }
.why-card a, .why-card a:hover { color: var(--brand); }
.about-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: flow; }
.flow-step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; }
.flow-step .flow-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--brand); color: var(--brand); font-size: .85rem; font-weight: 700; margin-bottom: 12px; }
.flow-step h4, .flow-step:hover h4 { color: var(--text); font-size: .98rem; margin-bottom: 8px; }
.flow-step p, .flow-step:hover p { color: var(--muted); font-size: .86rem; margin: 0; }
.about-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1024px) { .about-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .about-reviews { grid-template-columns: 1fr; } .about-block { margin-top: 38px; } }
@media (max-width: 640px) { .about-flow { grid-template-columns: 1fr; } }

/* ---------------- Forms ---------------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; font-size: .88rem; margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: .94rem; }
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-note { font-size: .84rem; color: var(--muted); }
.form-status { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .9rem; }
.form-status.ok { background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand); }
.form-status.err { background: rgba(190,40,40,.14); color: #ff8a8a; border: 1px solid #7a2222; }
.hp-field { position: absolute; left: -9999px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info-card h3 { font-size: 1.05rem; }
.info-card p { font-size: .9rem; color: var(--muted); }
.info-card a { color: var(--brand); }
.info-card hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: start; }
.quote-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.quote-summary h4 { font-size: .95rem; margin-bottom: 10px; }
.quote-summary ul { list-style: none; padding: 0; margin: 0; font-size: .86rem; }
.quote-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.quote-summary li strong { color: var(--text); }
.quote-summary li .qs-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quote-summary li .qs-main b { color: var(--text); font-weight: 650; font-size: .86rem; }
.quote-summary li .qs-main small { color: var(--muted); font-size: .76rem; }
.qs-remove { background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); cursor: pointer; width: 26px; height: 26px; line-height: 1; flex: 0 0 26px; font-size: 1rem; }
.qs-remove:hover { color: var(--brand); border-color: var(--brand); }
.qs-clear { background: none; border: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 0; margin-top: 10px; }
.qs-clear:hover { color: var(--brand); }

/* ---------------- Quote drawer ---------------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 90; display: none; }
.drawer-mask.open { display: block; }
.quote-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100vw); background: var(--bg); border-left: 1px solid var(--line); z-index: 95; transform: translateX(102%); transition: transform .28s ease; display: flex; flex-direction: column; }
.quote-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 1.1rem; }
.drawer-close { background: none; border: 0; color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.quote-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.quote-item img { width: 64px; height: 64px; object-fit: contain; background: var(--surface); border-radius: var(--radius-sm); }
.quote-item .qi-main { flex: 1; min-width: 0; }
.quote-item .qi-main strong { display: block; font-size: .9rem; }
.quote-item .qi-main span { font-size: .78rem; color: var(--muted); }
.quote-item button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.quote-item button:hover { color: var(--brand); }
.drawer-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); }
.drawer-foot .btn { width: 100%; margin-bottom: 10px; }
.drawer-empty { color: var(--muted); font-size: .9rem; text-align: center; padding: 40px 0; }

/* ---------------- Floating buttons ---------------- */
.floating { position: fixed; right: 20px; bottom: 22px; z-index: 70; display: flex; flex-direction: column; gap: 10px; }
.floating a, .floating button { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-soft); cursor: pointer; font-size: 1.12rem; text-decoration: none; }
/* WhatsApp 品牌绿：固定色写在主 CSS，5 套皮肤共用，不会随 --brand 变回红色。 */
.floating .fb-brand { background: #25d366; color: #ffffff; border-color: #25d366; }
.floating .fb-brand:hover { background: #1ebe5d; border-color: #1ebe5d; color: #ffffff; }
.floating a:hover, .floating button:hover { transform: translateY(-3px); border-color: var(--brand); }
.wechat-pop { position: fixed; right: 78px; bottom: 26px; z-index: 96; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: none; width: 250px; text-align: center; }
.wechat-pop.open { display: block; }
.wechat-pop img { width: 220px; height: auto; margin: 0 auto 10px; border-radius: var(--radius-sm); }
.wechat-pop p { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: var(--muted); padding: 62px 0 24px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; grid-template-columns: 1.35fr 1.15fr 1fr; gap: 44px; }
.site-footer h4 { color: var(--on-dark); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer p, .site-footer li { font-size: .9rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .brand-logo img { height: 44px; margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 42px; padding-top: 20px; font-size: .84rem; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------------- CTA ---------------- */
.cta { background: linear-gradient(120deg, var(--ink-2), var(--surface-2)); border-block: 1px solid var(--line); text-align: center; }
.cta h2 { color: var(--text); }
.cta p { color: var(--muted); }

/* ================================================================
 * RESPONSIVE — large PC, laptop, tablet landscape/portrait, phones
 * ================================================================ */
@media (min-width: 1600px) {
    :root { --max: 1400px; --section-y: 96px; }
}
@media (max-width: 1200px) {
    :root { --header-h: 72px; --section-y: 72px; }
    .nav-search input { width: 118px; }
    .main-nav > ul > li > a { padding: 10px 10px; font-size: .89rem; }
    .catalog { grid-template-columns: 224px minmax(0, 1fr); gap: 26px; }
    .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .nav-search { display: none; }
    .page-grid, .product-layout, .contact-grid, .about-hero { grid-template-columns: 1fr; gap: 32px; }
    .catalog { grid-template-columns: 1fr; }
    .cat-tree { position: static; }
    .cat-tree > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
    .site-footer .wrap { grid-template-columns: 1fr 1fr; gap: 32px; }
    .mega { width: min(720px, calc(100vw - 32px)); }
    .news-row .thumb { flex-basis: 200px; width: 200px; }
    .about-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    :root { --section-y: 58px; --header-h: 66px; --grid-gap: 16px; }
    .wrap { width: min(100% - 28px, var(--max)); }
    .nav-toggle { display: grid; place-items: center; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 12px 14px 20px; max-height: 78vh; overflow-y: auto; }
    .main-nav.open { display: block; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav > ul > li > a { display: flex; justify-content: space-between; padding: 13px 6px; border-bottom: 1px solid var(--line); }
    .mega { position: static; transform: none; width: 100%; max-width: 100%; display: none; flex-direction: column; padding: 0; box-shadow: none; margin-bottom: 8px; max-height: 70vh; overflow-y: auto; }
    .mega-col { flex: 0 0 auto; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
    .has-mega.open > .mega { display: flex; transform: none; }
    .nav-actions .nav-search { display: flex; flex: 1; }
    .nav-search input { width: 100%; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    /* No min-height on .hero: forcing a taller box would letterbox the
       object-fit:contain artwork and shrink it on narrow screens. Keep the
       exact 2.4:1 ratio so every part of the picture stays visible. */
    .hero-content h1 { font-size: clamp(1.7rem, 6vw, 2.5rem); }
    .news-row { flex-direction: column; }
    .news-row .thumb { flex: 0 0 auto; width: 100%; }
    .news-row .thumb img { height: 210px; }
    .news-row .body { padding: 18px 20px 22px; }
    .spec-table th { width: 42%; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; }
    .floating { right: 12px; bottom: 14px; }
    .floating a, .floating button { width: 44px; height: 44px; }
    .wechat-pop { right: 62px; bottom: 14px; }
}
@media (max-width: 480px) {
    .wrap { width: min(100% - 20px, var(--max)); }
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .cat-tree > ul { grid-template-columns: 1fr; }
    .about-gallery { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .sec-head { flex-direction: column; align-items: flex-start; }
    .brand-logo img { height: 38px; max-width: 150px; }
    .news-row .thumb { aspect-ratio: 16/9; }
    .quote-item img { width: 54px; height: 54px; }
}
@media (max-width: 360px) {
    .wrap { width: calc(100% - 16px); }
    .brand-logo img { height: 34px; max-width: 132px; }
    .nav-actions { gap: 6px; }
    .quote-toggle { width: 38px; height: 38px; }
    .floating a, .floating button { width: 40px; height: 40px; font-size: 1rem; }
    .card-body { padding: 14px 15px 18px; }
}


/* ---- News article: text first, supporting image small ---- */
.single-post-thumb { display: block; max-width: 360px; width: 100%; height: auto; border-radius: var(--radius); margin: 0 0 26px; }
@media (max-width: 768px) {
    .single-post-thumb { max-width: 100%; }
    .hero-cta { flex-direction: column; align-items: flex-start; }
}

/* News listing: one clear row per article (no overlap). */
.news-list { display: grid; gap: 16px; }


/* ================================================================
 * Round 3 — all skins: hover contrast, zoom, inquiry table, perf
 * ================================================================ */
/* Links on coloured surfaces must never turn into the background colour on hover. */
.toast a, .toast a:hover { color: var(--on-brand); }
/* hover 时白图标保持可见（不跟随皮肤变量，也不受全局 a:hover 品牌色影响） */
.floating .fb-brand, .floating .fb-brand:hover { color: #ffffff; }
a.btn-primary, a.btn-primary:hover { color: var(--on-brand); }

/* Product image hover zoom: pure transform, no extra image request. */
.gallery-main.lx-zoomable { position: relative; cursor: zoom-in; }
.gallery-main.lx-zoomable img { transition: transform .12s ease-out; }
.gallery-main.lx-zoomable.zoomed { cursor: zoom-out; }
.gallery-main.lx-zoomable.zoomed img { transform: scale(2.1); transform-origin: var(--lx-zoom-x, 50%) var(--lx-zoom-y, 50%); }

/* Inquiry list: compact table-like rows with image, SKU, title, quantity. */
.qs-head { display: grid; grid-template-columns: 1fr 118px; gap: 12px; padding: 11px 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm) var(--radius-sm) 0 0; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.quote-summary ul.qs-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.quote-summary ul.qs-list li { display: grid; grid-template-columns: 26px 64px minmax(0, 1fr) 108px; gap: 12px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--text); }
.quote-summary ul.qs-list li:last-child { border-bottom: 0; }
.qs-img { width: 64px; height: 64px; object-fit: contain; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.qs-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qs-info b { font-size: .84rem; font-weight: 750; color: var(--text); }
.qs-info a { font-size: .88rem; line-height: 1.35; color: var(--text); }
.qs-info a:hover { color: var(--brand); }
.qs-info small { font-size: .75rem; color: var(--muted); }
.qs-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qs-qty button { width: 28px; height: 32px; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 1rem; line-height: 1; }
.qs-qty button:hover { background: var(--brand); color: var(--on-brand); }
.qs-qty span { flex: 1; min-width: 28px; text-align: center; font-size: .88rem; }
.qs-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.req { color: var(--brand); }
@media (max-width: 480px) {
    .qs-head { grid-template-columns: 1fr 92px; }
    .quote-summary ul.qs-list li { grid-template-columns: 22px 48px minmax(0, 1fr) 92px; gap: 8px; padding: 10px 6px; }
    .qs-img { width: 48px; height: 48px; }
    .qs-qty button { width: 24px; }
}


/* ================================================================
 * Round 4 — WeChat QR on hover, scannable size (all skins)
 * ================================================================ */
.wechat-line { position: relative; }
.wechat-trigger { cursor: help; border-bottom: 1px dashed var(--muted); outline: none; }
.wechat-trigger:hover, .wechat-trigger:focus { color: var(--brand); }
.wechat-hover { display: none; position: absolute; left: 0; top: calc(100% + 8px); z-index: 80; width: max-content; max-width: 85vw; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; text-align: center; }
.wechat-line:hover .wechat-hover, .wechat-trigger:focus + .wechat-hover, .wechat-hover:hover { display: block; }
.wechat-hover img { width: 240px; max-width: 70vw; height: auto; object-fit: contain; border-radius: var(--radius-sm); }
.wechat-hover small { display: block; margin-top: 8px; font-size: .78rem; color: var(--muted); }


/* ================================================================
 * Round 5 — International-station specifications, colour swatches & SKU matrix
 * Every colour below is a skin variable, so all 5 skins render these identically.
 * ================================================================ */
.lx-options { margin: 26px 0 6px; }
.lx-option-group { margin-bottom: 16px; }
.lx-option-label { font-size: .9rem; font-weight: 650; color: var(--text); margin-bottom: 9px; }
.lx-option-label strong { color: var(--brand); font-weight: 700; }
.lx-option-values { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-option { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: .85rem; line-height: 1.25; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.lx-option.has-image { padding: 5px 12px 5px 5px; }
.lx-option:hover, .lx-option:focus { border-color: var(--brand); color: var(--text); outline: none; }
.lx-option.selected { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); color: var(--text); }
.lx-option img { width: 38px; height: 38px; flex: 0 0 38px; object-fit: contain; background: var(--bg); border-radius: 4px; }
.lx-option span { overflow-wrap: anywhere; }
.lx-option-summary { margin: 10px 0 0; font-size: .84rem; color: var(--muted); }

/* 本页「已加入的选择」：多次选择逐行展示，颜色全部走皮肤变量 */
/* Round 15: the pending-spec table sits ABOVE the "+ Add to Quote" button. */
.lx-added { margin: 16px 0 16px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.lx-added h4 { margin: 0 0 6px; font-size: .92rem; color: var(--text); }
.lx-added-note { margin: 0 0 10px; font-size: .78rem; color: var(--muted); line-height: 1.5; }
/* Round 14: added selections are a table with ONLY specification + quantity. */
.lx-added-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.lx-added-table[hidden] { display: none; }
.lx-added-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--line); }
.lx-added-table th:last-child, .lx-added-table td:last-child { width: 46px; text-align: center; }
.lx-added-table td { padding: 9px 10px; border: 1px solid var(--line); color: var(--text); overflow-wrap: anywhere; }
.lx-added-qty { font-weight: 700; }
.lx-added-del { width: 26px; height: 26px; line-height: 1; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.lx-added-del:hover, .lx-added-del:focus { color: var(--text); border-color: var(--brand); }
.lx-added-empty { margin: 0; font-size: .82rem; color: var(--muted); }
.lx-added-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.lx-added-clear { background: none; border: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 0; }
.lx-added-clear:hover { color: var(--brand); }
.qty-hint { font-size: .82rem; color: var(--muted); }
.qty-hint[hidden] { display: none; }
.qty-input:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 640px) {
    .lx-option img { width: 32px; height: 32px; flex-basis: 32px; }
}


/* ================================================================
 * Round 7 — Product detail: full-width lower block (details -> specs -> images)
 * All colours are skin variables, so all 5 skins render it identically.
 * ================================================================ */
.lx-detail-block { margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--line); }
.lx-detail-block > h2 { margin: 0 0 18px; }
.lx-detail-block > h3 { margin: 26px 0 12px; }
.lx-detail-block .entry-content { margin: 0 0 8px; }
.lx-detail-block .spec-table { margin: 0 0 12px; }
/* Round 13: the owner's uploader already supplies the Specifications table and
   the "Details Images" stack inside post_content. The theme no longer renders
   its own duplicate blocks. Tag-only paragraphs (marked by
   lx_tighten_detail_images()) lose their margins/radius so pictures sit flush
   against each other with no white gaps. */
.lx-detail-block .entry-content p.lx-detail-figure { margin: 0 !important; padding: 0; line-height: 0; }
.lx-detail-block .entry-content p.lx-detail-figure img {
    display: block; width: 100%; max-width: 900px; height: auto;
    margin: 0 auto; border-radius: 0; background: var(--surface);
}
@media (max-width: 640px) {
    .lx-detail-block { margin-top: 34px; padding-top: 24px; }
}

/* ================================================================
 * Round 14 — grouped inquiry list + back-to-top button
 * ================================================================ */
.qs-note { margin: 0 0 12px; font-size: .8rem; color: var(--muted); }
.qs-groups { display: grid; gap: 14px; }
.qs-group { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qs-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.qs-group-head b { font-size: .84rem; font-weight: 800; color: var(--text); letter-spacing: .03em; }
.qs-group-head a { font-size: .86rem; line-height: 1.4; color: var(--text); }
.qs-group-head a:hover { color: var(--brand); }
.qs-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.qs-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.qs-table th:last-child, .qs-table td:last-child { width: 46px; text-align: center; }
.qs-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--text); overflow-wrap: anywhere; }
.qs-table tr:last-child td { border-bottom: 0; }
.qs-table .qs-qty { display: inline-flex; }
/* Back-to-top joins the floating contact stack on every page. */
.floating .fb-top { background: var(--surface); color: var(--text); }
.floating .fb-top:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 480px) {
    .qs-table th, .qs-table td { padding: 8px 7px; }
}
