:root {
  --bg: #0b141c;
  --bg-soft: #101d27;
  --panel: #14232f;
  --panel-2: #182a38;
  --line: #23384a;
  --text: #e8eef3;
  --muted: #93a7b6;
  --dim: #6b8294;
  --accent: #d08a3e;
  --accent-2: #4fb0c6;
  --steel: #cfd8de;
  --radius: 10px;
  --maxw: 1220px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- header */

.topbar {
  background: #08111a;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 12px; }
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--accent); }
.topbar .tb-right { display: flex; gap: 16px; align-items: center; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 20, 28, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 26px; height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 30px; width: auto; display: block; }
.logo small { font-size: 10px; letter-spacing: .18em; color: var(--dim); font-weight: 600; }

.mainnav { display: flex; gap: 22px; align-items: center; margin-left: auto; font-size: 14.5px; }
.mainnav > a, .mainnav > .navitem > a { padding: 22px 0; display: inline-block; color: var(--steel); }
.mainnav > .navitem { position: relative; }
.navitem .dropdown {
  position: absolute; top: 100%; left: -14px; min-width: 232px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; display: none; box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.navitem:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--steel); font-size: 14px; }
.dropdown a:hover { background: var(--panel-2); color: var(--accent); }
.dropdown .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); padding: 8px 10px 4px; }

.header-tools { display: flex; align-items: center; gap: 12px; }
.searchbox { display: flex; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.searchbox input { background: transparent; border: 0; color: var(--text); width: 130px; outline: none; font-size: 13.5px; }
.searchbox button { background: transparent; border: 0; color: var(--dim); cursor: pointer; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: linear-gradient(180deg, #e0a055, #c8792a); border-color: #c8792a; color: #1a1005; }
.btn-primary:hover { color: #1a1005; filter: brightness(1.06); }
.btn-ghost { background: transparent; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 420px at 12% -10%, rgba(79,176,198,.16), transparent 60%),
    radial-gradient(900px 380px at 88% 8%, rgba(208,138,62,.14), transparent 62%),
    linear-gradient(180deg, #0d1a24, #0b141c);
}
.hero .wrap { padding: 76px 20px 66px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.01em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p.lead { color: var(--muted); font-size: 17.5px; max-width: 660px; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 42px; }
.hero-facts div { border-left: 2px solid var(--line); padding-left: 14px; }
.hero-facts b { display: block; font-size: 21px; color: var(--steel); }
.hero-facts span { font-size: 12.5px; color: var(--dim); letter-spacing: .04em; }

/* --------------------------------------------------------------- section */

.section { padding: 60px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-size: 26px; margin: 0 0 6px; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }
.eyebrow { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: block;
}
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.card .more { color: var(--accent); font-weight: 600; font-size: 14px; }

/* ---------------------------------------------------------------- grids */

.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pcard:hover { border-color: #33506a; }
.pcard .thumb { aspect-ratio: 1/1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: contain; }
.pcard .body { padding: 14px 15px 17px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pcard .cat { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.pcard .name { font-size: 14.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .price { margin-top: auto; color: var(--accent); font-weight: 700; font-size: 15px; }
.badge { display: inline-block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
.badge.warn { border-color: #6a4a1e; color: #d9a05f; }

/* -------------------------------------------------------------- product */

.product-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; }
@media (max-width: 900px) { .product-top { grid-template-columns: 1fr; gap: 26px; } }
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs img { width: 68px; height: 68px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px; cursor: pointer; }
.product h1 { font-size: 27px; margin: 6px 0 12px; line-height: 1.25; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.price-row .now { font-size: 28px; font-weight: 700; color: var(--accent); }
.price-row .was { color: var(--dim); text-decoration: line-through; }
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; }
.spec-table th { color: var(--dim); font-weight: 600; width: 42%; }
.spec-list { list-style: none; padding: 0; margin: 14px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.spec-list li { border: 1px solid var(--line); border-radius: 6px; padding: 5px 11px; font-size: 13.5px; color: var(--muted); }
.variant-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.variant-list span { border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; font-size: 13px; color: var(--muted); }

/* ----------------------------------------------------------- prose/pages */

.prose { max-width: 800px; font-size: 16.5px; }
.prose h1 { font-size: 32px; margin: 0 0 12px; }
.prose h2 { font-size: 23px; margin: 36px 0 12px; }
.prose h3 { font-size: 18px; margin: 26px 0 10px; }
.prose p { color: #cfdce6; }
.prose ul { color: #cfdce6; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.prose th { color: var(--dim); }
.prose p.lead { font-size: 18.5px; line-height: 1.6; color: #e6eef5; margin: 0 0 22px; }
.prose .made-by { color: var(--dim); font-size: 14.5px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 30px; }
.fact-block { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; }
.fact-block h3 { margin: 0 0 12px; font-size: 16px; letter-spacing: .02em; }
.fact-block dl { margin: 0; display: grid; grid-template-columns: 210px 1fr; gap: 8px 16px; font-size: 15px; }
.fact-block dt { color: var(--dim); }
.fact-block dd { margin: 0; color: var(--steel); }
@media (max-width: 620px) { .fact-block dl { grid-template-columns: 1fr; } }

.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 16.5px; color: var(--steel); }
.faq-item p { margin: 0; color: var(--muted); }

.draft-block { background: #1a1509; border: 1px dashed #6a4a1e; border-radius: var(--radius); padding: 20px; }
.draft-note { color: #d9a05f !important; font-size: 14px; margin-bottom: 14px; }

.form { display: grid; gap: 14px; max-width: 620px; margin-top: 22px; }
.form label { font-size: 13px; color: var(--dim); display: block; margin-bottom: 5px; }
.form input, .form textarea, .form select {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); padding: 11px 13px; font-size: 15px; font-family: inherit;
}
.form textarea { min-height: 130px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.notice { background: #10281c; border: 1px solid #2c5c3f; color: #9fe0b8; border-radius: 8px; padding: 12px 16px; margin: 18px 0; }

/* --------------------------------------------------------------- footer */

.site-footer { background: #08111a; border-top: 1px solid var(--line); padding: 52px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 30px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: 14.5px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.brand-wall { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.brand-wall a { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; }
.brand-wall a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 13px; }
.b2b-cta { background: linear-gradient(90deg, rgba(208,138,62,.16), rgba(79,176,198,.10)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 34px; }
.b2b-cta b { display: block; font-size: 16px; }
.b2b-cta span { color: var(--muted); font-size: 14px; }

.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--dim); }

.breadcrumbs { font-size: 13px; color: var(--dim); padding: 18px 0 0; }
.breadcrumbs a { color: var(--dim); }
.breadcrumbs span.sep { margin: 0 7px; }
.breadcrumbs span.cur { color: var(--muted); }

/* internal-link hub on product pages (SEO/GEO crawl paths) */
.linkhub { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.linkhub a { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; color: var(--muted); }
.linkhub a:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================== commerce */
/* Cart, checkout and order pages. One set of variables drives every control
   so a change here lands in the header badge, the buy box and the cart table
   at the same time. */

:root {
  --ctl-h: 44px;          /* shared height: buy-box buttons, qty stepper, inputs */
  --ctl-radius: 999px;
  --danger: #e2734f;
  --ok: #63c48d;
}

/* ------------------------------------------------- header cart indicator */

.cartlink {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--steel); background: var(--panel);
}
.cartlink:hover { border-color: var(--accent); color: var(--accent); }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #1a1005;
  font-size: 11px; font-weight: 700; line-height: 1;
  border-radius: 999px; border: 2px solid var(--bg);
}
.cart-count[hidden] { display: none; }

/* --------------------------------------------------------- add-to-cart */

.pcard-link { display: flex; flex-direction: column; flex: 1; min-width: 0; color: inherit; }
.pcard-link:hover { color: inherit; }
.pcard-foot { padding: 0 15px 15px; }
.btn-add { width: 100%; padding: 11px 14px; font-size: 13.5px; }
.btn.added { border-color: var(--ok); color: var(--ok); }

.buybox { margin: 4px 0 24px; display: grid; gap: 12px; }
.buybox-label { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.buybox-single { color: var(--muted); font-size: 14px; }
.variant-select {
  width: 100%; height: var(--ctl-h);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 0 12px; font-size: 14.5px; font-family: inherit;
}

/* ------------------- Size / Colour button groups (sunlure-style, 2026-10-26) */

.variant-groups { display: grid; gap: 12px; }
.variant-group { display: grid; gap: 7px; }
.opt-current {
  margin-left: 8px; color: var(--text); text-transform: none; letter-spacing: 0;
  font-weight: 600; font-size: 13.5px;
}
.opt-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-btn {
  min-height: 38px; padding: 8px 15px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); font: inherit; font-size: 14px; line-height: 1.2;
  cursor: pointer; transition: border-color .12s, color .12s, background .12s;
}
.opt-btn:hover { border-color: var(--accent-2); }
.opt-btn.active {
  border-color: var(--accent); color: var(--accent);
  background: rgba(208, 138, 62, .12); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--accent);
}
.opt-btn.na { opacity: .32; cursor: not-allowed; }
.opt-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
/* single-value axis (e.g. a reel that only comes in gold): read-only line */
.opt-single {
  min-height: 38px; display: flex; align-items: center; padding: 8px 15px;
  background: var(--panel); border: 1px dashed var(--line); border-radius: 9px;
  color: var(--muted); font-size: 14px; line-height: 1.2;
}
@media (max-width: 640px) {
  .opt-btn { min-height: 40px; padding: 8px 13px; font-size: 13.5px; }
  .opt-btns { gap: 7px; }
}
.variant-select:focus { outline: none; border-color: var(--accent); }
.buybox-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-buy { min-width: 168px; height: var(--ctl-h); padding: 0 22px; }

.qtybox {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--ctl-radius);
  background: var(--panel); overflow: hidden; height: var(--ctl-h); flex: 0 0 auto;
}
.qtybox button {
  width: 34px; height: 100%; border: 0; background: transparent;
  color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer;
}
.qtybox button:hover { color: var(--accent); background: var(--panel-2); }
.qtybox input {
  width: 46px; height: 100%; border: 0; background: transparent; text-align: center;
  color: var(--text); font-size: 14.5px; font-family: inherit;
  -moz-appearance: textfield; appearance: textfield;
}
.qtybox input::-webkit-outer-spin-button,
.qtybox input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qtybox input:focus { outline: none; }

.buybox-note { color: var(--dim); font-size: 13.5px; margin: 2px 0 0; }

/* ------------------------------------------------------------ cart page */

.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; }
@media (max-width: 940px) { .cart-grid { grid-template-columns: 1fr; gap: 26px; } }

.cart-main { min-width: 0; overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cart-table th {
  text-align: left; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); font-weight: 600; padding: 0 10px 10px; border-bottom: 1px solid var(--line);
}
.cart-table th:first-child, .cart-table td:first-child { padding-left: 0; }
.cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table th:nth-child(2), .cart-table td:nth-child(2),
.cart-table th:nth-child(4), .cart-table td:nth-child(4) { white-space: nowrap; }
.cart-table th:last-child, .cart-table td:last-child { width: 34px; }

.cline { display: flex; gap: 14px; align-items: center; min-width: 240px; }
.cline-thumb { width: 64px; height: 64px; flex: 0 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cline-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cline-meta { min-width: 0; }
.cline-name { font-weight: 600; line-height: 1.35; display: block; }
.cline-variant { color: var(--muted); font-size: 13px; margin-top: 3px; }
.cline-sku { color: var(--dim); font-size: 12px; letter-spacing: .04em; margin-top: 2px; }
.cline-line { font-weight: 700; color: var(--accent); }
.cline-remove { background: transparent; border: 0; color: var(--dim); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.cline-remove:hover { color: var(--danger); }

.cart-aside {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px;
}
.sum-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: 14.5px; color: var(--muted); }
.sum-row.total {
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px;
  font-size: 19px; font-weight: 700; color: var(--text);
}
.sum-row.total span:last-child { color: var(--accent); }
.sum-note { color: var(--dim); font-size: 12.5px; margin: 12px 0 18px; }
.sum-actions { display: grid; gap: 10px; }
.sum-actions .btn { width: 100%; }

.small { font-size: 13px; }
.muted { color: var(--muted); }

/* -------------------------------------------------------- checkout page */

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .checkout-grid { grid-template-columns: 1fr; gap: 30px; } }
.checkout-form h2, .checkout-aside h2 { font-size: 17px; margin: 0 0 16px; }
.checkout-form .form { margin-top: 0; max-width: none; }
.checkout-aside {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  position: sticky; top: 88px;
}
@media (max-width: 960px) { .checkout-aside { position: static; } }
.checkout-summary { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px; }
.checkout-summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; color: var(--muted); }
.checkout-summary .row em { font-style: normal; font-size: 12.5px; }
.checkout-summary .row-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 11px; font-size: 16.5px; font-weight: 700; color: var(--text); }
.checkout-summary .row-total span:last-child { color: var(--accent); }

.paypal-box { display: grid; gap: 12px; }
.paypal-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--dim); }
.paypal-head strong { font-size: 20px; color: var(--accent); }
.paypal-buttons { min-height: 46px; }
.paypal-buttons[hidden] { display: none; }

.req { color: var(--accent); }

.notice.warnbox { background: #241a09; border-color: #6a4a1e; color: #e6c288; }
.notice.errbox { background: #2a1414; border-color: #6e2f2a; color: #f0a897; margin: 0; }
.notice a { text-decoration: underline; }

/* ------------------------------------------------------- order success */

.order-head { display: flex; flex-wrap: wrap; gap: 40px; margin: 26px 0 30px; padding: 20px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.order-ref { display: grid; gap: 3px; }
.order-ref strong { font-size: 17px; letter-spacing: .02em; }
.order-ref .status-paid { color: var(--ok); }
.order-ref .status-review { color: #e6c288; }
.order-ref .status-pending { color: var(--muted); }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; gap: 24px; } }
.order-grid .cart-main { overflow-x: auto; }
.order-table td:nth-child(2), .order-table td:nth-child(3) { white-space: nowrap; }
.order-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
@media (max-width: 800px) { .order-panels { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- toast */

.kt-toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  display: flex; align-items: center; gap: 14px;
  max-width: min(360px, calc(100vw - 44px));
  background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 13px 18px; font-size: 14.5px; color: var(--text);
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.kt-toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.kt-toast a { color: var(--accent); font-weight: 600; white-space: nowrap; }

@media (max-width: 560px) {
  .cart-table, .order-table { font-size: 13.5px; }
  .cline { min-width: 200px; gap: 10px; }
  .cline-thumb { width: 52px; height: 52px; }
  .btn-buy { min-width: 0; flex: 1; }
  .kt-toast { right: 12px; left: 12px; bottom: 12px; max-width: none; }
}

/* ==================================================== narrow-screen header */
/* The header is a single flex row built for desktop. Adding the cart control
   pushed it past the viewport at tablet width (768px) and deepened the
   pre-existing phone overflow, so below 1180px the nav drops to its own row
   and wraps instead of stretching the document. Nothing is hidden and no
   control is shrunk: the logo keeps its size, the dropdowns keep working
   (wrapping is used rather than overflow scrolling, which would clip them). */

@media (max-width: 1180px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px 18px; }
  .site-header .mainnav {
    order: 3; width: 100%; margin-left: 0;
    flex-wrap: wrap; row-gap: 2px; column-gap: 18px;
  }
  .site-header .mainnav > a,
  .site-header .mainnav > .navitem > a { padding: 6px 0; }
  .site-header .header-tools { margin-left: auto; }
  .site-header .searchbox input { width: 104px; }
}

@media (max-width: 640px) {
  .site-header .searchbox { display: none; }
  .site-header .mainnav { column-gap: 14px; font-size: 14px; }
}

/* the sticky checkout summary must clear the taller wrapped header */
@media (max-width: 1180px) {
  .checkout-aside { top: 100px; }
}

@media (max-width: 640px) {
  /* the marketing strapline is noise on a phone and forces the topbar to wrap */
  .topbar .wrap > div:first-child { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .topbar .tb-right { gap: 14px; }
  /* drop the logo tagline so logo + cart + quote fit one row and the header
     stays two rows tall; the logo mark itself is untouched */
  .logo small { display: none; }
}

/* homepage banner slideshow (art carried over from the previous storefront) */
.banners { padding: 34px 0 0; }
.banner-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}
.banner-slide { display: none; }
.banner-slide.is-active { display: block; }
.banner-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 620;
  object-fit: cover;
}
.banner-dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.banner-dots button {
  width: 9px; height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .75);
  background: transparent;
  cursor: pointer;
}
.banner-dots button.is-active { background: #fff; }

@media (max-width: 640px) {
  /* a 3:1 strip is unreadably short on a phone; crop tighter instead */
  .banner-slide img { aspect-ratio: 16 / 9; }
}

/* wide hero art on entry pages (factory / oem / about / collections / blog) */
.page-hero { padding: 22px 0 0; }
.page-hero .banner-frame { border-radius: var(--radius); }
/* the hero <img> tags carry width/height attributes; without these rules the
   attribute height wins and the picture stretches. cover crops, never distorts. */
.page-hero .banner-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* collection cards get a product cover on top (square, like the product cards) */
.card-cover { overflow: hidden; }
.card-cover-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 1px);
  margin-bottom: 14px;
  background: var(--bg-soft);
}

@media (max-width: 640px) {
  /* phones: 16:9 crops a square source too tight; show more of the subject */
  .page-hero .banner-frame img { aspect-ratio: 4 / 3; }
}

/* ─────────────────────── /track · 免登录查件（2026-10-19） ─────────────────────── */
.track-wrap { max-width: 900px; }
.track-result { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 26px; }
.track-head h2 { font-size: 24px; margin: 6px 0 0; }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 22px 0 26px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--dim); }
.step .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: 0 0 auto; }
.step.done { color: var(--text); }
.step.done .dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(208, 138, 62, .18); }
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.kv { display: grid; grid-template-columns: 128px 1fr; gap: 8px 14px; margin: 12px 0 0; font-size: 14px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.track-items { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 12px; }
.track-items th { text-align: left; color: var(--dim); font-weight: 500; font-size: 12px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.track-items td { padding: 8px 0; border-bottom: 1px solid rgba(35, 56, 74, .6); }
.track-items th:not(:first-child), .track-items td:not(:first-child) { text-align: right; }
.track-items tfoot td { border-bottom: 0; padding-top: 10px; }
@media (max-width: 760px) {
  .track-grid { grid-template-columns: 1fr; gap: 24px; }
  .kv { grid-template-columns: 110px 1fr; }
}
