/* ============================================================
   ArsonSetups — premium dark ember shop
   ============================================================ */

:root {
  /* warm near-black surfaces */
  --bg:        oklch(0.145 0.010 45);
  --bg-2:      oklch(0.180 0.013 45);
  --surface:   oklch(0.205 0.015 45);
  --surface-2: oklch(0.245 0.016 45);
  --line:      oklch(0.305 0.016 45);
  --line-soft: oklch(0.255 0.014 45);

  --text:   oklch(0.965 0.006 70);
  --muted:  oklch(0.74 0.018 60);
  --faint:  oklch(0.58 0.020 55);

  /* fire accents — shared chroma/lightness, varied hue */
  --ember:  oklch(0.70 0.185 48);   /* orange */
  --flame:  oklch(0.635 0.215 31);  /* red-orange */
  --gold:   oklch(0.825 0.135 78);  /* warm gold for stars */
  --ember-dim: oklch(0.70 0.185 48 / 0.14);

  --grad-fire: linear-gradient(103deg, var(--flame), var(--ember));

  --maxw: 1280px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --shadow: 0 1px 0 oklch(1 0 0 / 0.04) inset, 0 18px 40px -24px oklch(0 0 0 / 0.8);
  --glow: 0 0 0 1px oklch(0.70 0.185 48 / 0.30), 0 12px 40px -12px oklch(0.66 0.20 40 / 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle ember vignette anchored top */
  background-image:
    radial-gradient(120% 80% at 50% -10%, oklch(0.66 0.20 40 / 0.10), transparent 55%),
    radial-gradient(80% 50% at 100% 0%, oklch(0.64 0.215 31 / 0.07), transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  /* Horizontal padding only (longhand) so it composes with vertical-padding
     classes like .page-header / .section / .shop-layout when combined on one
     element, instead of clobbering them via the `padding` shorthand. */
  padding-left: 32px;
  padding-right: 32px;
}

.mono { font-family: var(--font-mono); }

/* eyebrow / kicker */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.kicker::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--ember);
  opacity: 0.6;
}

/* ============================================================
   Announcement bar
   ============================================================ */
.topbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px;
}
.topbar-items { display: flex; gap: 26px; }
.topbar-items span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-items .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.topbar-right { display: flex; gap: 20px; }
.topbar-right a:hover { color: var(--text); }

/* ============================================================
   Header / nav
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.145 0.010 45 / 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--grad-fire);
  box-shadow: 0 6px 18px -6px oklch(0.66 0.20 40 / 0.7);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
}
.brand-name b { color: var(--ember); font-weight: 800; }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 9px 14px; border-radius: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.search {
  display: flex; align-items: center; gap: 9px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px; height: 40px;
  width: 230px;
  color: var(--faint);
  transition: border-color .15s, width .2s;
}
.search:focus-within { border-color: var(--ember); width: 270px; }
.search svg { width: 16px; height: 16px; flex: none; }
.search input {
  border: none; background: none; outline: none;
  color: var(--text); font-family: inherit; font-size: 14px; width: 100%;
}
.search input::placeholder { color: var(--faint); }
.search kbd {
  font-family: var(--font-mono); font-size: 11px;
  border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; color: var(--faint);
}

.icon-btn {
  position: relative;
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; color: var(--muted);
  transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--grad-fire); color: #fff;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  border-radius: 10px; border: 2px solid var(--bg);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 14.5px;
  border-radius: 10px; padding: 11px 18px; border: 1px solid transparent;
  transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-fire); color: #fff; box-shadow: 0 10px 26px -12px oklch(0.66 0.20 40 / 0.8); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px oklch(0.66 0.20 40 / 0.9); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ember); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn svg { width: 17px; height: 17px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -0.035em;
}
.hero h1 .fire {
  background: var(--grad-fire);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede {
  margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--muted);
  max-width: 480px;
}
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 40px; display: flex; gap: 38px;
  padding-top: 28px; border-top: 1px solid var(--line-soft);
}
.stat-num {
  font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em;
}
.stat-num .u { color: var(--ember); }
.stat-label { font-size: 13px; color: var(--faint); margin-top: 2px; }

/* hero showcase card */
.hero-art { position: relative; }
.showcase {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow);
}
.showcase-top {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.showcase-top .tdot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.showcase-top .label { margin-left: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.showcase-art { aspect-ratio: 16/10; }
.showcase-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; border-top: 1px solid var(--line-soft);
}
.showcase-foot .tt { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.showcase-foot .pp { font-family: var(--font-mono); font-weight: 700; color: var(--ember); }

.float-badge {
  position: absolute; z-index: 3;
  background: oklch(0.205 0.015 45 / 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 16px 40px -20px oklch(0 0 0 / 0.9);
}
.float-badge .fi { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--ember-dim); color: var(--ember); }
.float-badge .fi svg { width: 16px; height: 16px; }
.float-badge .ft { font-size: 12px; color: var(--faint); }
.float-badge .fv { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.float-1 { top: 70px; left: -24px; }
.float-2 { bottom: 92px; right: -20px; }

/* ============================================================
   Marquee logos / trust strip
   ============================================================ */
.trust {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.trust .wrap { display: flex; align-items: center; gap: 40px; height: 84px; }
.trust .tlabel { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.trust-logos { display: flex; gap: 36px; align-items: center; flex: 1; justify-content: space-between; opacity: 0.62; }
.trust-logos span { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--muted); white-space: nowrap; }

/* ============================================================
   Section heading
   ============================================================ */
section { scroll-margin-top: 90px; }
.section { padding-top: 78px; padding-bottom: 78px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.sec-head p { color: var(--muted); margin: 10px 0 0; max-width: 440px; font-size: 15.5px; }
.sec-link { font-weight: 700; font-size: 14.5px; color: var(--ember); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.sec-link svg { width: 16px; height: 16px; transition: transform .15s; }
.sec-link:hover svg { transform: translateX(3px); }

/* category pills (filter) */
.filters { display: flex; gap: 9px; flex-wrap: wrap; }
.pill {
  padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  transition: all .15s;
}
.pill:hover { color: var(--text); border-color: var(--line); }
.pill.active { background: var(--grad-fire); color: #fff; border-color: transparent; }
.pill .c { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; margin-left: 5px; }

/* ============================================================
   Category cards (3 big)
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); padding: 26px;
  min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.cat-card:hover { transform: translateY(-4px); border-color: oklch(0.70 0.185 48 / 0.5); box-shadow: var(--glow); }
.cat-card .cat-ph { position: absolute; inset: 0; opacity: 0.5; }
.cat-card .cat-body { position: relative; z-index: 2; }
.cat-card .ci { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-fire); color: #fff; margin-bottom: auto; box-shadow: 0 10px 24px -10px oklch(0.66 0.2 40 / 0.7); }
.cat-card .ci svg { width: 22px; height: 22px; }
.cat-card h3 { position: relative; z-index: 2; font-size: 22px; margin-top: 70px; }
.cat-card p { position: relative; z-index: 2; color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.cat-card .cgo { position: relative; z-index: 2; margin-top: 16px; color: var(--ember); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   Product grid + cards
   ============================================================ */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); border-color: oklch(0.70 0.185 48 / 0.45); box-shadow: var(--glow); }
.card-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-thumb .ph { position: absolute; inset: 0; }
.card-tags { position: absolute; top: 11px; left: 11px; display: flex; gap: 6px; z-index: 2; }
.tag {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  padding: 4px 8px; border-radius: 6px; letter-spacing: 0.02em; white-space: nowrap;
  background: oklch(0.145 0.010 45 / 0.78); backdrop-filter: blur(6px);
  border: 1px solid var(--line); color: var(--muted);
}
.tag.hot { background: var(--grad-fire); color: #fff; border-color: transparent; }
.tag.sale { color: var(--gold); border-color: oklch(0.825 0.135 78 / 0.4); }

.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ember); }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.22; margin-top: 8px; letter-spacing: -0.01em; }
.card-meta { display: flex; align-items: center; gap: 14px; margin-top: 11px; font-size: 12.5px; color: var(--faint); }
.card-meta .mi { display: inline-flex; align-items: center; gap: 5px; }
.card-meta svg { width: 13px; height: 13px; }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars svg { width: 13px; height: 13px; }

.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.price { display: flex; align-items: baseline; gap: 8px; }
.price .now { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.price .was { font-family: var(--font-mono); font-size: 13px; color: var(--faint); text-decoration: line-through; }
.add-btn {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  transition: all .15s;
}
.add-btn:hover { background: var(--grad-fire); border-color: transparent; color: #fff; }
.add-btn svg { width: 18px; height: 18px; }
.add-btn.added { background: var(--grad-fire); border-color: transparent; color: #fff; }

/* ============================================================
   Feature / why-us band
   ============================================================ */
.band { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feat { padding: 4px; }
.feat .fi { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ember-dim); color: var(--ember); margin-bottom: 16px; }
.feat .fi svg { width: 23px; height: 23px; }
.feat h3 { font-size: 18px; }
.feat p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

/* ============================================================
   Spotlight (large featured setup)
   ============================================================ */
.spotlight { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.spotlight-art { position: relative; min-height: 440px; }
.spotlight-art .ph { position: absolute; inset: 0; }
.spotlight-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.spotlight-body h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 16px; }
.spotlight-body .sl-lede { color: var(--muted); margin: 16px 0 0; font-size: 15.5px; }
.sl-feats { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.sl-feats li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; }
.sl-feats .ck { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--ember-dim); color: var(--ember); flex: none; }
.sl-feats .ck svg { width: 13px; height: 13px; }
.sl-foot { display: flex; align-items: center; gap: 20px; margin-top: 32px; }

/* ============================================================
   Reviews
   ============================================================ */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.review .stars { margin-bottom: 14px; }
.review p { font-size: 15px; line-height: 1.6; color: var(--text); margin: 0; flex: 1; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.review .av { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-fire); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 15px; flex: none; }
.review .wn { font-weight: 700; font-size: 14px; }
.review .wr { font-size: 12.5px; color: var(--faint); }

/* ============================================================
   CTA band
   ============================================================ */
.cta {
  position: relative; overflow: hidden;
  border: 1px solid oklch(0.70 0.185 48 / 0.4); border-radius: var(--radius-lg);
  padding: 60px; text-align: center;
  background:
    radial-gradient(120% 140% at 50% -20%, oklch(0.66 0.20 40 / 0.22), transparent 60%),
    var(--surface);
}
.cta h2 { font-size: clamp(30px, 4vw, 46px); }
.cta p { color: var(--muted); font-size: 17px; margin: 16px auto 0; max-width: 520px; }
.cta-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line-soft); padding: 64px 0 32px; background: var(--bg-2); margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin: 16px 0 0; max-width: 280px; }
.foot-social { display: flex; gap: 10px; margin-top: 20px; }
.foot-social a { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: all .15s; }
.foot-social a:hover { color: var(--text); border-color: var(--ember); }
.foot-social svg { width: 17px; height: 17px; }
.foot-col h4 { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.foot-col a { color: var(--muted); font-size: 14px; }
.foot-col a:hover { color: var(--ember); }
.foot-bot { display: flex; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--faint); }
.foot-bot .disc { font-size: 12px; max-width: 540px; }

/* ============================================================
   Shared page chrome — breadcrumb, page header
   ============================================================ */
.card { position: relative; }
.card-title-link { color: inherit; }
.card-title-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.add-btn { position: relative; z-index: 2; }
.card-thumb.is-link { display: block; cursor: pointer; }

.card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vbadge {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  padding: 3px 7px; border-radius: 6px; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--line-soft); white-space: nowrap;
}
.vbadge b { color: var(--ember); font-weight: 600; }

.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--faint); padding: 22px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ember); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .cur { color: var(--text); }

.page-header { padding-top: 26px; padding-bottom: 34px; border-bottom: 1px solid var(--line-soft); }
.page-header h1 { font-size: clamp(30px, 4vw, 44px); }
.page-header p { color: var(--muted); margin: 12px 0 0; max-width: 560px; font-size: 15.5px; }

/* ============================================================
   Shop archive — sidebar + main
   ============================================================ */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding-top: 36px; padding-bottom: 80px; align-items: start; }
.shop-aside { position: sticky; top: 90px; display: grid; gap: 26px; }
.fgroup { border-bottom: 1px solid var(--line-soft); padding-bottom: 22px; }
.fgroup:last-child { border-bottom: none; }
.fgroup h4 { font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.fopt { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14px; color: var(--muted); }
.fopt:hover { color: var(--text); }
.fbox { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; transition: all .15s; }
.fbox svg { width: 11px; height: 11px; color: #fff; opacity: 0; }
.fopt.on .fbox { background: var(--grad-fire); border-color: transparent; }
.fopt.on .fbox svg { opacity: 1; }
.fopt.on { color: var(--text); }
.fopt .ct { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }
.frange { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.frange input { width: 100%; }
.frange .rv { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: var(--surface-2); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ember); cursor: pointer; border: 2px solid var(--bg); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ember); cursor: pointer; border: 2px solid var(--bg); }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.shop-toolbar .rc { font-size: 14px; color: var(--muted); }
.shop-toolbar .rc b { color: var(--text); }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.select {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; height: 40px; color: var(--text); font-size: 14px; font-family: inherit;
}
.select select { background: none; border: none; outline: none; color: var(--text); font-family: inherit; font-size: 14px; padding-right: 4px; cursor: pointer; }
.select svg { width: 15px; height: 15px; color: var(--faint); }
.view-toggle { display: flex; gap: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.view-toggle button { width: 34px; height: 32px; border: none; background: none; border-radius: 7px; color: var(--faint); display: grid; place-items: center; }
.view-toggle button.active { background: var(--surface-2); color: var(--text); }
.view-toggle svg { width: 16px; height: 16px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; }
.pagination a:hover { color: var(--text); border-color: var(--ember); }
.pagination a.active { background: var(--grad-fire); color: #fff; border-color: transparent; }
.pagination a.nav svg { width: 16px; height: 16px; }

/* ============================================================
   Single product
   ============================================================ */
.pd-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 44px 48px; padding-top: 36px; padding-bottom: 70px; align-items: start; }
.pd-gallery { grid-column: 1; grid-row: 1; }
.pd-tabs { grid-column: 1; grid-row: 2; min-width: 0; }
.pd-info { grid-column: 2; grid-row: 1 / 3; position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 104px); overflow-y: auto; padding-right: 4px; }
.pd-info::-webkit-scrollbar { width: 6px; }
.pd-info::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.gallery-main { aspect-ratio: 16/10; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--bg-2); }
.gallery-main .ph { position: absolute; inset: 0; }
/* Show the full preview image (covers/banners vary in ratio) on a dark backdrop
   rather than cropping it. Higher specificity than the shared .gallery-main img
   cover rule further down. */
.pd-gallery .gallery-main img { object-fit: contain; }
.gallery-tags { position: absolute; top: 16px; left: 16px; display: flex; gap: 7px; z-index: 2; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.gthumb { aspect-ratio: 16/10; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; position: relative; background: var(--bg-2); }
.gthumb .ph::after { font-size: 9px; padding: 2px 5px; }
.gthumb.active { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }

/* Gallery main: zoom-on-click + hover nav/zoom controls */
.pd-gallery .gallery-main img { cursor: zoom-in; }
.gnav, .gzoom {
  position: absolute; z-index: 3; display: grid; place-items: center;
  background: oklch(0.145 0.010 45 / 0.72); backdrop-filter: blur(6px);
  border: 1px solid var(--line); color: #fff; cursor: pointer;
  opacity: 0; transition: opacity .15s, background .15s, border-color .15s;
}
.gallery-main:hover .gnav, .gallery-main:hover .gzoom, .gnav:focus-visible, .gzoom:focus-visible { opacity: 1; }
.gnav:focus-visible, .gzoom:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.gnav:hover, .gzoom:hover { background: var(--grad-fire); border-color: transparent; }
.gnav { top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; }
.gnav svg { width: 18px; height: 18px; }
.gprev { left: 12px; }
.gnext { right: 12px; }
.gzoom { top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 9px; }
.gzoom svg { width: 16px; height: 16px; }

/* Lightbox */
.glightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 4vh 4vw; background: oklch(0.09 0.005 45 / 0.93); backdrop-filter: blur(4px); }
.glightbox.open { display: flex; }
.glb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.glb-stage img { max-width: min(1100px, 92vw); max-height: 84vh; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.glb-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.glb-close, .glb-nav {
  position: absolute; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: all .15s;
}
.glb-close:hover, .glb-nav:hover { background: var(--grad-fire); border-color: transparent; color: #fff; }
.glb-close { top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 10px; }
.glb-close svg { width: 20px; height: 20px; }
.glb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; }
.glb-nav svg { width: 22px; height: 22px; }
.glb-prev { left: 18px; }
.glb-next { right: 18px; }
.glb-nav.hidden, .glb-count.hidden { display: none; }
body.glb-lock { overflow: hidden; }
@media (max-width: 640px) {
  .gnav, .gzoom { opacity: 1; }
  .glb-nav { width: 40px; height: 40px; }
  .glb-prev { left: 8px; } .glb-next { right: 8px; }
}

.pd-cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ember); }
.pd-info h1 { font-size: clamp(26px, 3vw, 36px); margin-top: 10px; }
.pd-rating { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.pd-rating .stars svg { width: 15px; height: 15px; }
.pd-rating .divr { width: 1px; height: 14px; background: var(--line); }
.pd-lede { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 20px 0 0; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin: 24px 0; padding: 22px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.pd-price-row .now { font-family: var(--font-display); font-weight: 800; font-size: 38px; letter-spacing: -0.02em; }
.pd-price-row .was { font-family: var(--font-mono); font-size: 17px; color: var(--faint); text-decoration: line-through; }
.pd-price-row .save { white-space: nowrap; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--gold); background: oklch(0.825 0.135 78 / 0.12); border: 1px solid oklch(0.825 0.135 78 / 0.35); padding: 4px 9px; border-radius: 6px; }

.specs { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; margin: 4px 0 26px; }
.spec-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 12px 16px; background: var(--surface); font-size: 14px; }
.spec-row .sk { color: var(--faint); }
.spec-row .sv { color: var(--text); font-weight: 600; }
.spec-row .sv .mono { color: var(--ember); font-weight: 600; }

.pd-actions { display: flex; gap: 12px; align-items: stretch; }
.qty { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 42px; height: 100%; border: none; background: none; color: var(--muted); font-size: 18px; }
.qty button:hover { color: var(--text); background: var(--surface-2); }
.qty input { width: 44px; text-align: center; background: none; border: none; outline: none; color: var(--text); font-family: var(--font-mono); font-size: 15px; }
.pd-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.pd-trust .pt { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.pd-trust .pt svg { width: 18px; height: 18px; color: var(--ember); flex: none; }

/* Demo / test server callout (server-setups only) */
.pd-demo { margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.pd-demo-top { display: flex; gap: 12px; align-items: flex-start; }
.pd-demo-ic { width: 36px; height: 36px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--ember-dim); color: var(--ember); }
.pd-demo-ic svg { width: 18px; height: 18px; }
.pd-demo-h { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-demo-h strong { font-size: 14.5px; }
.pd-demo-h span { font-size: 12.5px; color: var(--muted); }
.pd-demo-ip { display: flex; align-items: stretch; gap: 10px; margin-top: 14px; }
.pd-demo-ip code { flex: 1; min-width: 0; display: flex; align-items: center; font-family: var(--font-mono); font-size: 14px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-demo-copy { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 10px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 13px; cursor: pointer; transition: all .15s; }
.pd-demo-copy:hover { background: var(--grad-fire); border-color: transparent; color: #fff; }
.pd-demo-copy svg { width: 15px; height: 15px; }
.pd-demo-copy.copied { background: var(--ember-dim); color: var(--ember); border-color: transparent; }

/* [spoiler] shortcode + core Gutenberg Details block — collapsible content */
.arson-spoiler, .wp-block-details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); margin: 18px 0; overflow: hidden;
}
.arson-spoiler > summary, .wp-block-details > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; font-family: var(--font-body); font-weight: 700; color: var(--text); user-select: none;
}
.arson-spoiler > summary::-webkit-details-marker, .wp-block-details > summary::-webkit-details-marker { display: none; }
.arson-spoiler > summary::marker, .wp-block-details > summary::marker { content: ""; }
.arson-spoiler > summary:hover, .wp-block-details > summary:hover { color: var(--ember); }
.arson-spoiler > summary::after, .wp-block-details > summary::after {
  content: ""; flex: none; margin-left: auto; width: 8px; height: 8px;
  border-right: 2px solid var(--ember); border-bottom: 2px solid var(--ember);
  transform: rotate(45deg); transition: transform .2s;
}
.arson-spoiler[open] > summary::after, .wp-block-details[open] > summary::after { transform: rotate(-135deg); }
.arson-spoiler[open] > summary, .wp-block-details[open] > summary { border-bottom: 1px solid var(--line-soft); }
.arson-spoiler-body { padding: 14px 16px; color: var(--muted); }
.arson-spoiler-body > :first-child { margin-top: 0; }
.arson-spoiler-body > :last-child { margin-bottom: 0; }
.wp-block-details > :not(summary) { padding: 0 16px; color: var(--muted); }
.wp-block-details > :not(summary):first-of-type { padding-top: 14px; }
.wp-block-details > :last-child { padding-bottom: 14px; }

.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 4px; flex-wrap: wrap; }
.tab { padding: 14px 18px; font-weight: 700; font-size: 14.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tab.active { color: var(--text); border-bottom-color: var(--ember); }
.tab-panel { display: none; padding: 30px 0; max-width: 760px; }
.tab-panel.active { display: block; }
.tab-panel p { color: var(--muted); line-height: 1.7; margin: 0 0 16px; }
.tab-panel h3 { font-size: 19px; margin: 26px 0 14px; }
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.feat-list li { display: flex; gap: 11px; font-size: 14.5px; color: var(--text); align-items: flex-start; }
.feat-list .ck { width: 20px; height: 20px; border-radius: 5px; background: var(--ember-dim); color: var(--ember); display: grid; place-items: center; flex: none; margin-top: 1px; }
.feat-list .ck svg { width: 12px; height: 12px; }
.plugin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.plugin-chip { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.plugin-chip .pi { width: 28px; height: 28px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line-soft); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--ember); flex: none; }
.plugin-chip .pc-name { font-weight: 600; }
.plugin-chip .pc-desc { font-size: 12px; color: var(--faint); }

/* ============================================================
   Cart
   ============================================================ */
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; padding: 36px 0 80px; align-items: start; }
.cart-list { display: grid; gap: 14px; }
.cart-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cart-row .ct-thumb { width: 96px; height: 72px; border-radius: 9px; overflow: hidden; position: relative; }
.cart-row .ct-thumb .ph::after { font-size: 9px; padding: 2px 5px; }
.cart-row .ct-cat { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ember); }
.cart-row .ct-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-top: 4px; }
.cart-row .ct-badges { margin-top: 8px; }
.cart-row .ct-right { display: flex; align-items: center; gap: 20px; }
.cart-row .ct-price { font-family: var(--font-display); font-weight: 800; font-size: 18px; white-space: nowrap; }
.cart-row .ct-remove { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--faint); display: grid; place-items: center; }
.cart-row .ct-remove:hover { color: var(--flame); border-color: var(--flame); }
.cart-row .ct-remove svg { width: 15px; height: 15px; }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: sticky; top: 90px; }
.summary h3 { font-size: 19px; margin-bottom: 20px; }
.sum-row { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; padding: 9px 0; color: var(--muted); }
.sum-row .v { color: var(--text); font-weight: 600; font-family: var(--font-mono); white-space: nowrap; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 4px; margin-top: 8px; border-top: 1px solid var(--line-soft); }
.sum-total .l { font-weight: 700; font-size: 16px; }
.sum-total .v { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.coupon { display: flex; gap: 8px; margin: 16px 0; }
.coupon input { flex: 1; }
.field {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; color: var(--text); font-family: inherit; font-size: 14px; outline: none;
}
.field::placeholder { color: var(--faint); }
.field:focus { border-color: var(--ember); }
.btn-block { width: 100%; }
.pay-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 12px; color: var(--faint); }
.pay-note svg { width: 14px; height: 14px; }

/* ============================================================
   Checkout
   ============================================================ */
.co-grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; padding: 36px 0 80px; align-items: start; }
.co-section { margin-bottom: 34px; }
.co-section h3 { font-size: 18px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.co-section .stepn { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-fire); color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.co-section .sub { color: var(--faint); font-size: 13px; margin: 0 0 18px 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.flabel { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.pay-methods { display: grid; gap: 12px; }
.pay-opt { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s; }
.pay-opt.on { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.pay-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.pay-opt.on .pay-radio { border-color: var(--ember); }
.pay-opt.on .pay-radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ember); }
.pay-opt .pname { font-weight: 700; font-size: 14.5px; }
.pay-opt .pmeta { font-size: 12.5px; color: var(--faint); }
.pay-opt .plogo { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.co-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.co-item .ci-thumb { width: 52px; height: 40px; border-radius: 7px; overflow: hidden; position: relative; flex: none; }
.co-item .ci-thumb .ph::after { display: none; }
.co-item .ci-text { flex: 1; min-width: 0; }
.co-item .ci-name { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.co-item .ci-meta { font-size: 11.5px; color: var(--faint); font-family: var(--font-mono); margin-top: 3px; }
.co-item .ci-price { margin-left: auto; font-family: var(--font-mono); font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ============================================================
   My Account
   ============================================================ */
.acct-grid { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding: 36px 0 80px; align-items: start; }
.acct-nav { display: grid; gap: 4px; position: sticky; top: 90px; }
.acct-nav .au { display: flex; align-items: center; gap: 12px; padding: 14px 14px 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 10px; }
.acct-nav .av { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-fire); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #fff; }
.acct-nav .an { font-weight: 700; font-size: 14.5px; }
.acct-nav .ae { font-size: 12px; color: var(--faint); }
.acct-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; }
.acct-nav a:hover { color: var(--text); background: var(--surface); }
.acct-nav a.active { background: var(--surface); color: var(--text); }
.acct-nav a.active svg { color: var(--ember); }
.acct-nav svg { width: 17px; height: 17px; }
.acct-main h2 { font-size: 24px; margin-bottom: 6px; }
.acct-main .ah-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat-card .sn { font-family: var(--font-display); font-weight: 800; font-size: 28px; }
.stat-card .sl { font-size: 13px; color: var(--faint); margin-top: 4px; }
.dl-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dl-head, .dl-row { display: grid; grid-template-columns: 1fr 130px 110px 130px; gap: 16px; align-items: center; padding: 14px 18px; }
.dl-head { background: var(--bg-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.dl-row { border-top: 1px solid var(--line-soft); font-size: 14px; }
.dl-row .di { display: flex; align-items: center; gap: 12px; }
.dl-row .di > div { min-width: 0; }
.dl-row .di-thumb { width: 46px; height: 36px; border-radius: 6px; overflow: hidden; position: relative; flex: none; }
.dl-row .di-thumb .ph::after { display: none; }
.dl-row .di-name { font-weight: 600; line-height: 1.3; }
.dl-row .di-meta { font-size: 11.5px; color: var(--faint); font-family: var(--font-mono); margin-top: 3px; }
.dl-row .dt-date { color: var(--muted); font-family: var(--font-mono); font-size: 13px; }
.statustag { font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; }
.statustag.done { color: oklch(0.78 0.15 150); background: oklch(0.78 0.15 150 / 0.12); border: 1px solid oklch(0.78 0.15 150 / 0.3); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

@media (max-width: 1080px) {
  .shop-layout, .pd-grid, .cart-grid, .co-grid, .acct-grid { grid-template-columns: 1fr; }
  .shop-aside, .summary, .acct-nav { position: static; }
  .pd-gallery, .pd-tabs, .pd-info { grid-column: 1; grid-row: auto; }
  .pd-info { position: static; max-height: none; overflow: visible; }
}

/* ============================================================
   Search results page
   ============================================================ */
.search-big { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 10px 0 18px; height: 60px; max-width: 660px; margin-top: 18px; transition: border-color .15s; }
.search-big:focus-within { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.search-big > svg { width: 22px; height: 22px; color: var(--faint); flex: none; }
.search-big input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-family: inherit; font-size: 17px; min-width: 0; }
.search-big input::placeholder { color: var(--faint); }
.pop-tags { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.pop-tags .lbl { font-size: 13px; color: var(--faint); margin-right: 4px; }
.search-meta { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.search-meta .q { color: var(--ember); }
.empty-state { text-align: center; padding: 56px 24px 40px; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--surface); }
.empty-state .ei { width: 60px; height: 60px; border-radius: 16px; background: var(--ember-dim); color: var(--ember); display: grid; place-items: center; margin: 0 auto 20px; }
.empty-state .ei svg { width: 28px; height: 28px; }
.empty-state h3 { font-size: 22px; }
.empty-state p { color: var(--muted); margin: 10px 0 0; }
.ph {
  display: grid; place-items: center; height: 100%; width: 100%;
  background-color: var(--bg-2);
  background-image: repeating-linear-gradient(
    -45deg,
    oklch(0.22 0.015 45) 0 14px,
    oklch(0.185 0.013 45) 14px 28px
  );
  position: relative;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--font-mono); font-size: 12px; color: var(--faint);
  background: oklch(0.145 0.010 45 / 0.55); padding: 5px 11px; border-radius: 6px;
  border: 1px solid var(--line-soft);
  letter-spacing: 0.02em;
}
.ph.warm {
  background-image:
    radial-gradient(80% 90% at 70% 20%, oklch(0.66 0.20 40 / 0.20), transparent 60%),
    repeating-linear-gradient(-45deg, oklch(0.24 0.03 45) 0 14px, oklch(0.19 0.02 45) 14px 28px);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .float-1 { left: 12px; } .float-2 { right: 12px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-art { min-height: 280px; }
  .rev-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav, .search kbd { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .prod-grid, .prod-grid.cols-3 { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
}

/* ============================================================
   WordPress + WooCommerce bridge
   Maps core/WooCommerce markup onto the ArsonSetups design system.
   ============================================================ */

/* --- Accessibility utilities --- */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--surface); color: var(--text); padding: 12px 18px;
  border: 1px solid var(--ember); border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* --- Nav menus (wp_nav_menu emits ul.menu > li > a) --- */
.nav .menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav .menu li { position: relative; }
.nav .menu a {
  display: inline-flex; align-items: center;
  padding: 9px 14px; border-radius: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: color .15s, background .15s;
}
.nav .menu a:hover { color: var(--text); background: var(--surface); }
.nav .menu .current-menu-item > a,
.nav .menu .current_page_item > a,
.nav .menu .current-product_cat-ancestor > a,
.nav .menu .active > a,
.nav .menu a.active { color: var(--text); }
/* Submenus */
.nav .menu .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; display: none; flex-direction: column; gap: 2px; z-index: 60;
  box-shadow: 0 20px 50px -24px oklch(0 0 0 / 0.85);
}
.nav .menu li:hover > .sub-menu, .nav .menu li:focus-within > .sub-menu { display: flex; }

.topbar-menu { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.topbar-menu a:hover { color: var(--text); }

/* Footer menus reuse .foot-col ul styling automatically */
.foot-col .menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }

/* --- Mobile nav toggle --- */
.nav-toggle {
  display: none; width: 40px; height: 40px; margin-left: auto; flex: none;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* --- Generic page content (prose width only on non-shop pages) --- */
.arson-page-content { padding-top: 8px; padding-bottom: 80px; }
body:not(.arson-woo) .arson-page-content > * { max-width: 820px; }
.arson-page-content p { color: var(--muted); line-height: 1.7; }
/* Prose links only — and only on non-shop pages, so WooCommerce component links
   (cart item names, etc.) keep their own colours; never recolour buttons. */
body:not(.arson-woo) .arson-page-content a:not(.btn):not(.button) { color: var(--ember); }
.arson-page-content h2 { font-size: 26px; margin: 28px 0 12px; }
.arson-page-content h3 { font-size: 20px; margin: 22px 0 10px; }
.arson-woo .arson-page-content { padding-bottom: 0; }
.page-links { margin-top: 20px; display: flex; gap: 8px; }

/* --- Real images replace the .ph placeholders --- */
.card-thumb img, .cat-ph img, .gallery-main img, .gthumb img,
.ct-thumb img, .ci-thumb img, .di-thumb img, .spotlight-art img,
.woocommerce-product-gallery__image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.card-thumb a { display: block; width: 100%; height: 100%; }

/* --- Product loop card add-to-cart (WooCommerce ajax button) --- */
.add-btn.loading { opacity: .7; pointer-events: none; }
.add-btn.added { background: var(--grad-fire); border-color: transparent; color: #fff; }
.add-to-cart-wrap .added_to_cart { display: none; } /* hide WC's "View cart" text link; badge handles feedback */

/* --- Product grid: LIST view --- */
.prod-grid.is-list { grid-template-columns: 1fr !important; gap: 14px; }
.prod-grid.is-list .card { flex-direction: row; align-items: stretch; }
.prod-grid.is-list .card-thumb { width: 240px; flex: none; aspect-ratio: auto; }
.prod-grid.is-list .card-body { flex: 1; }
@media (max-width: 640px) {
  .prod-grid.is-list .card { flex-direction: column; }
  .prod-grid.is-list .card-thumb { width: 100%; aspect-ratio: 4/3; }
}

/* --- WooCommerce notices --- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-left-width: 3px;
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 18px; font-size: 14.5px; color: var(--text);
}
.woocommerce-message { border-left-color: oklch(0.78 0.15 150); }
.woocommerce-info { border-left-color: var(--ember); }
.woocommerce-error { border-left-color: var(--flame); display: block; }
.woocommerce-error li { list-style: none; margin: 0; padding: 4px 0; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button {
  margin-left: auto;
}

/* --- WooCommerce form fields --- */
.woocommerce form .form-row,
.woocommerce-page form .form-row { margin: 0 0 14px; padding: 0; display: block; }
.woocommerce form .form-row label,
.woocommerce-account .woocommerce form label,
.arson-form label, .flabel {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px;
}
.woocommerce form .form-row .required { color: var(--flame); border: 0; }
.woocommerce .input-text,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-page .input-text,
.woocommerce select,
.woocommerce textarea,
.select2-container .select2-selection,
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="url"], textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; color: var(--text); font-family: inherit; font-size: 14px; outline: none;
  transition: border-color .15s;
}
/* Search inputs live inside their own bordered container (.search / .search-big),
   so the field itself stays transparent — never double-box it. */
.search input[type="search"], .search-big input[type="search"],
.search input, .search-big input {
  width: 100%; background: none; border: none; border-radius: 0; padding: 0; outline: none;
  color: var(--text); font-family: inherit; -webkit-appearance: none; appearance: none;
}
.search input::-webkit-search-decoration, .search input::-webkit-search-cancel-button,
.search-big input::-webkit-search-cancel-button { -webkit-appearance: none; }
.woocommerce .input-text:focus, .woocommerce select:focus, .woocommerce textarea:focus,
input:focus, textarea:focus { border-color: var(--ember); }
.woocommerce .input-text::placeholder, input::placeholder, textarea::placeholder { color: var(--faint); }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 49%; float: left; }
.woocommerce form .form-row-last { float: right; }
.woocommerce form .form-row-wide { width: 100%; }
.woocommerce .col2-set { width: 100%; }

/* select2 (country dropdowns) */
.select2-container--default .select2-selection--single {
  height: 44px; display: flex; align-items: center; background: var(--bg-2);
  border: 1px solid var(--line) !important; border-radius: 10px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--text); line-height: 42px; padding-left: 13px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 10px; }
.select2-dropdown { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--ember); }
.select2-search--dropdown .select2-search__field { background: var(--bg-2); border: 1px solid var(--line); color: var(--text); }

/* --- Buttons: map WooCommerce .button onto .btn --- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #respond input#submit,
.woocommerce #respond input#submit.alt, .woocommerce .widget_price_filter .button {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 14.5px; line-height: 1.2;
  border-radius: 10px; padding: 12px 18px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s, border-color .15s; text-shadow: none;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { border-color: var(--ember); }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce #respond input#submit.alt, .woocommerce .single_add_to_cart_button,
.woocommerce .checkout-button, .woocommerce #place_order {
  background: var(--grad-fire); color: #fff; border-color: transparent;
  box-shadow: 0 10px 26px -12px oklch(0.66 0.20 40 / 0.8);
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover, .woocommerce #place_order:hover {
  box-shadow: 0 14px 34px -10px oklch(0.66 0.20 40 / 0.9); color: #fff;
}
.woocommerce .button:active { transform: translateY(1px); }
.woocommerce .button.loading { opacity: .8; }
.woocommerce .button[disabled], .woocommerce .button:disabled { opacity: .5; cursor: not-allowed; }

/* --- Quantity input --- */
.woocommerce .quantity, .qty-wrap {
  display: inline-flex; align-items: stretch; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.qty-wrap [data-qty] {
  width: 42px; border: none; background: none; color: var(--muted);
  display: grid; place-items: center; font-size: 16px;
}
.qty-wrap [data-qty]:hover { color: var(--text); background: var(--surface-2); }
.qty-wrap [data-qty] svg { width: 16px; height: 16px; }
.woocommerce .quantity input.qty, .qty-wrap input.qty {
  width: 52px; text-align: center; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font-mono); font-size: 15px; padding: 10px 4px;
  -moz-appearance: textfield;
}
.qty-wrap input.qty::-webkit-outer-spin-button, .qty-wrap input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* WooCommerce wraps the input in its own .quantity box; inside our stepper that
   double-borders it. Strip the inner box so −/1/+ read as one seamless control. */
.qty-wrap .quantity { display: inline-flex; align-items: stretch; border: 0; background: none; border-radius: 0; overflow: visible; margin: 0; }
.qty-wrap .quantity label.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- Prices --- */
.woocommerce .price, .woocommerce-Price-amount { font-family: var(--font-display); }
.woocommerce ins, .woocommerce .price ins { text-decoration: none; background: none; color: inherit; }
.woocommerce del, .woocommerce .price del {
  font-family: var(--font-mono); font-size: .8em; color: var(--faint); opacity: 1;
}
.amount { white-space: nowrap; }

/* --- WooCommerce star rating (reviews) --- */
.woocommerce .star-rating { font-size: 1em; width: 5.4em; color: var(--gold); }
.woocommerce .star-rating::before { color: var(--line); }
.woocommerce p.stars a { color: var(--gold); }

/* --- Tables (cart, checkout review, order details) --- */
.woocommerce table.shop_table {
  border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate;
  border-spacing: 0; overflow: hidden; background: var(--surface); margin: 0 0 24px;
}
.woocommerce table.shop_table th { font-family: var(--font-body); font-weight: 700; color: var(--text); padding: 14px 16px; border-top: 1px solid var(--line-soft); text-align: left; }
.woocommerce table.shop_table td { padding: 14px 16px; border-top: 1px solid var(--line-soft); color: var(--muted); vertical-align: middle; }
.woocommerce table.shop_table thead th { background: var(--bg-2); border-top: none; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.woocommerce table.shop_table tbody tr:first-child td { border-top: none; }
.woocommerce-cart table.cart img { width: 64px; border-radius: 8px; }
.woocommerce .cart_totals h2, .woocommerce-checkout #order_review_heading { font-family: var(--font-display); font-size: 19px; margin-bottom: 16px; }

/* --- Pagination (paginate_links / WC) --- */
.woocommerce nav.woocommerce-pagination ul, ul.page-numbers {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 48px 0 0; padding: 0; border: none; list-style: none;
}
.woocommerce nav.woocommerce-pagination ul li, ul.page-numbers li { border: none; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span,
ul.page-numbers li a, ul.page-numbers li span {
  min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center;
  border-radius: 9px; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-weight: 600; font-size: 14px;
}
.woocommerce nav.woocommerce-pagination ul li a:hover, ul.page-numbers li a:hover { color: var(--text); border-color: var(--ember); background: var(--surface); }
.woocommerce nav.woocommerce-pagination ul li span.current, ul.page-numbers li span.current,
ul.page-numbers li a.current {
  background: var(--grad-fire); color: #fff; border-color: transparent;
}
ul.page-numbers li .page-numbers.dots { background: none; border: none; }
ul.page-numbers svg { width: 16px; height: 16px; }

/* --- My Account ---
   my-account.php renders the design's .acct-grid (240px 1fr) directly, so the
   shortcode's .woocommerce wrapper must stay a plain block — otherwise the two
   grids nest and the layout collapses. */
.woocommerce-account .woocommerce { display: block; }
/* Neutralise WooCommerce's default float + 30%/68% widths on the account nav and
   content so the CSS-grid .acct-grid tracks fill correctly (mirrors the
   single-product .summary fix). */
.woocommerce-account .acct-grid .woocommerce-MyAccount-navigation,
.woocommerce-account .acct-grid .woocommerce-MyAccount-content {
  float: none; width: auto; margin: 0;
}
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: sticky; top: 90px; }
.woocommerce-MyAccount-navigation ul li a {
  display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 9px;
  color: var(--muted); font-weight: 600; font-size: 14px;
}
.woocommerce-MyAccount-navigation ul li a:hover { color: var(--text); background: var(--surface); }
.woocommerce-MyAccount-navigation ul li.is-active a { background: var(--surface); color: var(--text); }
.woocommerce-MyAccount-navigation ul li a svg { width: 17px; height: 17px; }
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3 { font-family: var(--font-display); }
@media (max-width: 1080px) { .woocommerce-account .woocommerce { grid-template-columns: 1fr; } .woocommerce-MyAccount-navigation ul { position: static; } }

/* --- Cart / checkout coupon + login toggles --- */
.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; }
.woocommerce .woocommerce-form__input-checkbox, input[type="checkbox"], input[type="radio"] { accent-color: var(--ember); width: auto; }

/* --- WC tabs default (fallback if custom tabs not used) --- */
.woocommerce-tabs ul.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: 0; margin: 0; list-style: none; }
.woocommerce-tabs ul.tabs li { padding: 0; border: none; background: none; }
.woocommerce-tabs ul.tabs li a { padding: 14px 18px; font-weight: 700; font-size: 14.5px; color: var(--muted); display: block; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.woocommerce-tabs ul.tabs li.active a { color: var(--text); border-bottom-color: var(--ember); }

/* --- Misc resets for WooCommerce blocks that may appear --- */
.wc-block-components-button, .wp-block-button__link { border-radius: 10px; }
.woocommerce .blockUI.blockOverlay { background: var(--bg) !important; }
.woocommerce-breadcrumb { display: none; } /* design supplies its own breadcrumb */

/* --- Reviews / comments on single product --- */
#reviews .comment-text { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
#reviews .commentlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
#review_form .comment-form-rating, #review_form textarea { margin-bottom: 14px; }

/* --- Responsive: header at <= 1080px --- */
@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .header .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 18px;
  }
  .header .nav.is-open { display: block; }
  .header .nav .menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .header .nav .menu a { padding: 12px 14px; }
  .header { position: sticky; }
  .header .wrap { position: relative; flex-wrap: wrap; }
  .search { width: 180px; }
  .search:focus-within { width: 180px; }
}
@media (max-width: 640px) {
  .header-actions .search { display: none; }
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; }
  .topbar-items span:nth-child(n+2) { display: none; }
}

/* --- Checkout payment methods → design .pay-opt cards --- */
.woocommerce-checkout #payment { background: none; border: none; border-radius: 0; padding: 0; }
.woocommerce-checkout #payment ul.payment_methods {
  list-style: none; margin: 18px 0 0; padding: 0; border: none; display: grid; gap: 12px;
}
.woocommerce-checkout #payment ul.payment_methods li {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ember); flex: none; margin: 0; }
.woocommerce-checkout #payment ul.payment_methods li label { font-weight: 700; font-size: 14.5px; color: var(--text); margin: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.woocommerce-checkout #payment ul.payment_methods li img { max-height: 24px; margin-left: auto; }
.woocommerce-checkout #payment ul.payment_methods li .payment_box {
  flex: 0 0 100%; background: var(--bg-2); border: none; border-radius: 8px; padding: 12px 14px; margin: 4px 0 0;
  color: var(--muted); font-size: 13px; line-height: 1.5;
}
.woocommerce-checkout #payment ul.payment_methods li .payment_box::before { display: none; }
.woocommerce-checkout #payment ul.payment_methods li .payment_box p:last-child { margin-bottom: 0; }
.woocommerce-checkout #payment .place-order { padding: 18px 0 0; margin: 0; }
.woocommerce-checkout #payment .place-order #place_order { width: 100%; }
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper { margin-bottom: 14px; font-size: 12.5px; color: var(--muted); }
.woocommerce-checkout #payment .woocommerce-privacy-policy-text { font-size: 12px; color: var(--faint); }
/* Ensure the cart's proceed-to-checkout block is visible */
.woocommerce .wc-proceed-to-checkout { padding: 0; }

/* --- Layout guard: keep the document body in normal block flow ---
   Some product-archive/search contexts inherit a stray flex layout from the
   WooCommerce block stylesheets, which would collapse #main. The ArsonSetups
   design always uses normal block flow on <body>. */
body.arson { display: block; width: auto; }
body.arson > .site-main { width: 100%; display: block; }
/* Strengthened: force full-width block flow regardless of stray flex contexts. */
html:has(> body.arson) { display: block; }
body.arson { display: block !important; width: 100% !important; max-width: 100% !important; flex: none !important; }

/* --- Single product: our .pd-grid is CSS grid; neutralise WooCommerce's
   default float + 48% width on .images/.summary so the columns fill their
   tracks (the .pd-info element also carries the .summary/.entry-summary class
   for hook compatibility, which otherwise triggers WC's float layout). --- */
.woocommerce div.product.pd-grid .pd-gallery,
.woocommerce div.product.pd-grid .pd-info,
.woocommerce div.product.pd-grid .pd-tabs,
.woocommerce div.product.pd-grid .images,
.woocommerce div.product.pd-grid .summary {
  float: none;
  width: auto;
  margin: 0;
  clear: none;
}

/* ============================================================
   Responsive hardening — production pass
   Tablet (<=1080px) + phone (<=640px). Appended last so these
   win over earlier rules of equal specificity.
   ============================================================ */

/* ---------- Tablet (<=1080px) ---------- */
@media (max-width: 1080px) {
  /* .prod-grid.cols-3 (0,2,0) outranks the generic .prod-grid media rule — drop to 2-up explicitly */
  .prod-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  /* Header: keep hamburger at the far right, after the cart/account cluster */
  .header .wrap { gap: 16px; }
  .header-actions { margin-left: auto; order: 2; }
  .nav-toggle { margin-left: 0; order: 3; }
}

/* ---------- Phone (<=640px) ---------- */
@media (max-width: 640px) {
  /* Grids to single column */
  .prod-grid, .prod-grid.cols-3 { grid-template-columns: 1fr; }

  /* --- Header / topbar / footer --- */
  .topbar { display: none; }
  .header .wrap { gap: 10px; height: auto; min-height: 64px; padding-top: 10px; padding-bottom: 10px; flex-wrap: nowrap; }
  .header .brand-name { font-size: 18px; }
  .header .brand-mark { width: 30px; height: 30px; }
  .header-actions { gap: 8px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-bot { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 32px; }
  .foot-bot .disc { max-width: 100%; }

  /* --- Storefront --- */
  .section { padding-top: 52px; padding-bottom: 52px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
  .sec-link { white-space: normal; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: clamp(32px, 9vw, 46px); }
  .hero-lede { font-size: 16px; }
  .float-badge { display: none; }
  .spotlight-body { padding: 28px 20px; }
  .sl-foot { flex-wrap: wrap; gap: 16px; }
  .sl-foot .btn { flex: 1 1 100%; white-space: normal; }
  .cta { padding: 36px 20px; }
  .cta h2 { font-size: clamp(26px, 8vw, 36px); }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; white-space: normal; }
  .page-header { padding-top: 22px; padding-bottom: 28px; }

  /* --- Shop + search toolbar --- */
  .shop-layout { padding-top: 24px; }
  .shop-toolbar { flex-wrap: wrap; align-items: stretch; gap: 12px; }
  .shop-toolbar .toolbar-right { width: 100%; justify-content: space-between; }
  .shop-toolbar .select { flex: 1; min-width: 0; }
  .shop-toolbar .select select { min-width: 0; max-width: 100%; }
  .search-big { height: 56px; padding: 0 8px 0 14px; gap: 8px; }
  .search-big input { font-size: 15px; min-width: 0; }
  .search-big .btn { padding: 10px 14px; }
  .pop-tags { gap: 7px; }

  /* --- Single product --- */
  .spec-row { grid-template-columns: 1fr; gap: 2px; padding: 12px 14px; }
  .spec-row .sk { font-size: 12px; }
  .pd-price-row { flex-wrap: wrap; gap: 10px 12px; padding: 18px 0; }
  .pd-price-row .now { font-size: 32px; }
  .pd-actions { flex-wrap: wrap; gap: 12px; }
  .pd-actions .qty, .pd-actions .qty-wrap { flex: 0 0 auto; }
  .pd-actions .btn, .pd-actions .single_add_to_cart_button { flex: 1 1 100%; white-space: normal; }
  .plugin-grid { grid-template-columns: 1fr; }
  .pd-trust { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .tab { padding: 12px 12px; font-size: 13.5px; }

  /* --- Cart --- */
  .cart-row { grid-template-columns: 64px 1fr; gap: 12px 14px; }
  .cart-row .ct-thumb { width: 64px; height: 48px; }
  .cart-row .ct-name { font-size: 15px; }
  .cart-row .ct-right { grid-column: 1 / -1; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
  .coupon { flex-wrap: wrap; }
  .coupon input { flex: 1 1 100%; }

  /* --- Checkout --- */
  .form-grid { grid-template-columns: 1fr; }
  .co-section .sub { margin-left: 0; }

  /* --- My Account --- */
  .stat-cards { grid-template-columns: 1fr; gap: 12px; }
  .acct-nav .ae { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Downloads table -> stacked cards (the fixed 4-col grid overflows + clips the Download button) */
  .dl-head { display: none; }
  .dl-row { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .dl-row .di { align-items: flex-start; }
  .dl-row .dt-date { font-size: 12.5px; }
  .dl-row .statustag { justify-self: start; }
  .dl-row .btn-sm { justify-self: start; }
}

/* ---------- Small phone (<=380px) ---------- */
@media (max-width: 380px) {
  .wrap { padding-left: 14px; padding-right: 14px; }
  .hero h1 { font-size: clamp(28px, 8.5vw, 38px); }
  .header .brand-name { font-size: 17px; }
}
