/* =====================================================================
   PlayX Shop — Design System v2 (premium polish pass)
   Refined from the approved mockup using researched dark-UI technique:
   · tonal elevation (layered surfaces) instead of heavy shadows  (Material 3)
   · off-white text, never pure #fff on near-black  (WCAG / halation)
   · neon as restrained accent + glow ONLY on focal elements
   · fluid type scale (clamp, ~1.25 ratio) + 8px spacing system
   · motion tokens 140/200/320ms, gentle easing, reduced-motion aware
   All tokens are CSS custom properties so the admin editor can expose a subset.
   ===================================================================== */

/* Design tokens live in tokens.css (enqueued first). This file = components. */

/* ------------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Lenis smooth scroll (assets/js/vendor/lenis.min.js) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  background: var(--bg);   /* flat deep charcoal — depth comes from surfaces, not washes */
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.62;       /* slightly looser for dark-mode comfort */
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Tactile film-grain over the whole canvas — the single biggest "this isn't a
   flat AI template" cue. Fixed, ultra-subtle, non-interactive. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* keep real UI above the grain */
.topbar, .tabbar, main, .footer, .side-cart, .search-modal { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* Brand scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--neon-magenta), var(--neon-purple, var(--neon-blue)));
  background-clip: padding-box; border: 3px solid var(--bg); border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { border-width: 2px; }
::-webkit-scrollbar-corner { background: var(--bg); }

/* Custom cursor (JS adds .has-pcur on fine-pointer devices only) */
.has-pcur, .has-pcur * { cursor: none !important; }
.has-pcur input, .has-pcur textarea, .has-pcur [contenteditable] { cursor: text !important; }
.pcur { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; will-change: transform; }
.pcur--dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--neon-magenta); box-shadow: 0 0 8px var(--neon-magenta); }
.pcur--ring {
  width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--neon-magenta) 55%, transparent);
  transition: width .18s ease, height .18s ease, margin .18s ease, border-color .18s ease, background .18s ease, opacity .2s ease;
}
.pcur-hot .pcur--ring { width: 50px; height: 50px; margin: -25px 0 0 -25px; border-color: var(--neon-blue); background: color-mix(in srgb, var(--neon-blue) 12%, transparent); }
.pcur-down .pcur--ring { width: 24px; height: 24px; margin: -12px 0 0 -12px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
}

/* Accessible focus state (visible neon ring) */
:focus-visible {
  outline: 2px solid var(--neon-blue);
  outline-offset: 2px;
  border-radius: 6px;
}

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

/* Utility: neon glow text — focal DISPLAY words only (never body; halation risk).
   Layered: a tight bright halo for legibility + a soft wide bloom for the neon feel. */
.glow-blue    { color: var(--neon-blue);    text-shadow: 0 0 1px rgba(34,219,255,0.6),  0 0 16px rgba(34,219,255,0.40); }
.glow-magenta { color: var(--neon-magenta); text-shadow: 0 0 1px rgba(255,61,166,0.6),  0 0 16px rgba(255,61,166,0.40); }
.glow-green   { color: var(--neon-green);   text-shadow: 0 0 1px rgba(52,226,122,0.6),  0 0 16px rgba(52,226,122,0.38); }
.glow-yellow  { color: var(--neon-yellow);  text-shadow: 0 0 1px rgba(255,214,74,0.6),  0 0 14px rgba(255,214,74,0.36); }

/* Visually-hidden (for accessible labels) */
.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ------------------------------------------------------------------
   3. NEON ICON HELPERS  (inline SVGs inherit currentColor + glow)
   ------------------------------------------------------------------ */
.icon { width: 24px; height: 24px; display: inline-block; vertical-align: middle; flex: none; line-height: 0; }
.icon svg { width: 100%; height: 100%; display: block; }

/* Neon colour helpers — FLAT colour, no glow (matches the reference icons). */
.i-yellow  { color: var(--neon-yellow);  }
.i-magenta { color: var(--neon-magenta); }
.i-green   { color: var(--neon-green);   }
.i-blue    { color: var(--neon-blue);    }
.i-purple  { color: var(--neon-purple);  }

/* ==================================================================
   4. TOP NAV  (desktop) — collapses for mobile
   ================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,10,12,0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
/* Sit below the WordPress admin bar when logged in (no gap / no tuck-under). */
.admin-bar .topbar { top: 32px; }
/* On <=782px WP's admin bar is position:absolute (scrolls away), so the sticky
   header should pin to the very top, not leave a 46px gap when scrolled. */
@media screen and (max-width: 782px) { .admin-bar .topbar { top: 0; } }
/* 3-column grid: logo (left) · nav (centre) · actions (right).
   Flexible height (min-height, not fixed) so the bar grows with the logo. */
.topbar__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 18px; min-height: 78px;
  padding-block: 10px;   /* vertical only — keep the .container 20px horizontal padding */
}
.topbar__inner .logo,
.topbar__inner .custom-logo-link { grid-column: 1; justify-self: start; }
/* the uploaded logo's link must hug the image only (WP makes it block/full-width) */
.custom-logo-link { display: inline-block; line-height: 0; }
.topbar__inner .custom-logo { max-height: 52px; width: auto; height: auto; display: block; }
.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 4px; }

/* Hamburger (mobile menu trigger) */
.hamburger {
  background: none; border: 0; color: var(--text);
  display: none; padding: 6px; border-radius: 8px;
}
.hamburger:hover { background: var(--surface-2); }

/* Logo wordmark — per-letter colours matching the PlayX brand logo
   (P blue · L green · A yellow · Y magenta · X purple), then white script "Shop!". */
.logo { display: inline-flex; align-items: baseline; gap: 7px; font-family: var(--font-display); }
.logo__playx { font-weight: 700; font-size: 25px; letter-spacing: .5px; display: inline-flex; }
.logo__playx .l-p { color: var(--neon-blue); }
.logo__playx .l-l { color: var(--neon-green); }
.logo__playx .l-a { color: var(--neon-yellow); }
.logo__playx .l-y { color: var(--neon-magenta); }
.logo__playx .l-x { color: var(--neon-purple); }
.logo__shop {
  font-weight: 700; font-style: italic; font-size: 19px; color: var(--text);
}
.logo__shop::after { content:"!"; color: var(--neon-magenta); }
/* keep a custom-uploaded logo image tidy */
.custom-logo { max-height: 56px; width: auto; display: block; }

/* (Legacy inline search-pill styles removed — the header uses the search modal.
   A bare `.search` rule also collided with WordPress's `search` <body> class on
   search-results pages, breaking their layout.) */

/* mobile-only search toggle button (injected by app.js); hidden on desktop */
.search-toggle { display: none; }

/* Desktop nav links — centred in the header */
.nav-links { display: flex; gap: 38px; grid-column: 2; justify-self: center; }
.nav-links a {
  color: var(--text-muted); font-weight: 500; font-size: 15px;
  padding: 6px 2px; position: relative; transition: color var(--t);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after {
  content:""; position:absolute; left:0; right:0; bottom:-4px; height:2px;
  background: var(--grad-primary); border-radius: 2px;
}

/* Cart button + neon badge */
.iconbtn {
  position: relative; background: none; border: 0; color: var(--text);
  padding: 8px; border-radius: 10px; transition: background var(--t);
}
.iconbtn:hover { background: var(--surface-2); }
.badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--grad-primary); color: #fff;
  font-size: 11px; font-weight: 700; font-family: var(--font-display);
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  box-shadow: 0 0 10px rgba(255,45,160,0.6);
}

/* Theme: hero brand SVG fills its panel; product-card media link is a block. */
.hero__art--brand svg { width: 100%; height: 100%; display: block; }
.card__media-link { display: block; width: 100%; height: 100%; }

/* WordPress nav-menu integration: render wp_nav_menu <ul><li> inline like the
   mockup's flat <a> list (header primary menu + footer link columns). */
.nav-links__list { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links__list li { margin: 0; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

/* ==================================================================
   5. MOBILE SLIDE-OVER MENU (reuses category list styling)
   ================================================================== */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  visibility: hidden; opacity: 0; transition: opacity var(--t), visibility var(--t);
}
.drawer.open { visibility: visible; opacity: 1; }
.drawer__scrim { position:absolute; inset:0; background: rgba(0,0,0,0.6); }
.drawer__panel {
  position: absolute; inset: 0;
  background: var(--bg); padding: 18px 18px 90px;
  overflow-y: auto;
}
.drawer__head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 14px; }
.drawer__close { background:none;border:0;color:var(--text);padding:8px;border-radius:8px; }
.drawer__close:hover { background: var(--surface-2); }

/* ==================================================================
   6. HERO  (Home)
   ================================================================== */
.hero { position: relative; padding: 52px 0 26px; overflow: hidden; }
/* soft party glow behind the hero — two off-centre neon pools (depth, on-brand) */
.hero::before {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  top: -20%; right: -8%; width: 60%; height: 120%;
  background:
    radial-gradient(45% 40% at 70% 35%, color-mix(in srgb, var(--neon-magenta) 22%, transparent), transparent 70%),
    radial-gradient(40% 45% at 95% 70%, color-mix(in srgb, var(--neon-purple) 20%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero .container { position: relative; z-index: 1; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero__eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  font-size: var(--fs-100); font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color: var(--neon-blue); margin-bottom: var(--sp-5);
  padding: 7px 14px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--neon-blue) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--neon-blue) 30%, transparent);
}
/* Slide headline — applied to the <h1> (slide 1) AND <p> (slides 2/3) so every
   slide is identical. font-family is set explicitly because <p> won't inherit it. */
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-900); letter-spacing: -0.03em; line-height: 1.04; margin: 0;
}
.hero__title em { font-style: italic; }
.hero__sub {
  color: var(--text-muted); font-size: var(--fs-500); max-width: 44ch; margin: var(--sp-5) 0 var(--sp-6);
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Smooth slide transition: each slide fades + rises in when it becomes active
   (toggling display restarts the animation, so it plays on every change). */
.hero__slide[hidden] { display: none; }
.hero__slide { animation: playx-hero-in 560ms var(--ease-out) both; }
@keyframes playx-hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hero__slide { animation: none; } }

/* Hero image — fixed aspect box so each carousel slide fills the same frame.
   Images cross-fade when the slide changes (see app.js).                    */
.hero__art {
  position: relative; border-radius: var(--r-lg);
  border: 1px solid var(--border); overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #16101f, #0b0b12);
}
.hero__art img {
  position:absolute; inset:0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: opacity 280ms var(--ease);
}
.hero__art.is-fading img { opacity: 0; }
/* subtle neon vignette over the photo so it ties into the dark theme */
.hero__art::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(120% 90% at 80% 10%, transparent 55%, rgba(11,11,18,0.55) 100%),
    linear-gradient(180deg, transparent 60%, rgba(11,11,18,0.45) 100%);
}

/* Neon marquee strip — a playful brand ticker under the hero (on-brand motion). */
.marquee {
  overflow: hidden; position: relative; z-index: 2;
  margin: var(--sp-7) 0;                 /* breathing room above + below */
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--neon-magenta) 5%, transparent), transparent);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; align-items: center; width: max-content; animation: playx-marquee 32s linear infinite; }
.marquee__track > span {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(16px, 2.2vw, 24px); letter-spacing: .04em; padding: 0 26px; color: var(--text);
}
.marquee__track > i { width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); flex: none; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes playx-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* Buttons -------------------------------------------------------- */
.btn {
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-display); font-weight:600; font-size: var(--fs-300);
  padding: 14px 26px; border-radius: var(--r-pill); border:1px solid transparent;
  transition: transform var(--t) var(--ease-out), box-shadow var(--t), filter var(--t);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
/* button icon: explicit size (beats the .icon 24px base), crisp, slides on hover */
.btn .icon { width: 17px; height: 17px; flex: none; display: inline-block; vertical-align: middle;
  transition: transform var(--t) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary {
  background: var(--grad-primary); color:#fff; border:0;
  box-shadow: var(--glow-magenta);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px -4px rgba(255,61,166,0.65); filter: saturate(1.08); }
.btn--ghost {
  background: rgba(255,255,255,0.02); color: var(--text);
  border:1px solid var(--border-2); backdrop-filter: blur(4px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--neon-blue); box-shadow: var(--glow-blue); }

/* Carousel dots */
.dots { display:flex; gap:9px; margin-top: 26px; }
.dots button {
  width:9px; height:9px; border-radius:50%; border:0; padding:0;
  background: var(--surface-2); transition: all var(--t);
}
.dots button[aria-selected="true"] {
  width: 28px; border-radius: 6px; background: var(--grad-primary);
  box-shadow: 0 0 12px -2px rgba(255,61,166,0.6);
}

/* ==================================================================
   7. SECTION HEADER (title + "View all")
   ================================================================== */
.section { padding: var(--sp-7) 0; }
.section__head { display:flex; align-items:baseline; justify-content:space-between; margin-bottom: var(--sp-5); }
.section__head h2 { font-size: var(--fs-800); letter-spacing: -0.02em; }
.viewall { color: var(--neon-blue); font-weight:600; font-size:14px; transition: text-shadow var(--t); }
.viewall:hover { text-shadow: 0 0 12px rgba(31,224,255,0.6); }

/* ==================================================================
   8. CATEGORY TILE GRID  (Home — "Shop by Category")
   ================================================================== */
/* Clean vertical tiles: accent icon chip on top, label beneath, equal weight,
   calm rhythm. auto-fit stretches the 7 tiles to fill the row evenly. */
.cat-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: var(--gap); }
.cat-tile {
  position: relative; overflow: hidden;
  background: var(--surface); border:1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px 16px 22px;
  display:flex; flex-direction:column; align-items:center; gap:16px; text-align:center;
  box-shadow: var(--lit-edge);
  transition: transform var(--t) var(--ease-out), border-color var(--t), box-shadow var(--t), background var(--t);
}
.cat-tile:hover {
  transform: translateY(-4px); background: var(--surface-2);
  border-color: color-mix(in srgb, var(--accent, var(--neon-magenta)) 50%, transparent);
  box-shadow: var(--lit-edge), 0 14px 32px -16px rgba(0,0,0,0.7), 0 0 26px -16px var(--accent, var(--neon-magenta));
}
/* accent-tinted icon chip — DIRECT CHILD only (the wrapper span). The inner
   <svg> also carries class="icon", so a descendant selector would chip it too
   (that was the "doubled square"). */
.cat-tile > .icon {
  width: 58px; height: 58px; padding: 14px; border-radius: 16px; position: relative;
  background: color-mix(in srgb, var(--accent, var(--neon-magenta)) 13%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--accent, var(--neon-magenta)) 32%, transparent);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t);
}
.cat-tile:hover > .icon { transform: translateY(-2px) scale(1.04); box-shadow: 0 0 22px -8px var(--accent, var(--neon-magenta)); }
.cat-tile__label {
  font-family: var(--font-display); font-weight:600; font-size: var(--fs-300);
  line-height:1.25; color: var(--text); position: relative; min-height: 2.5em;
  display:flex; align-items:center; justify-content:center;
}

/* ==================================================================
   9. CATEGORIES LIST  (Categories page + mobile drawer)
   ================================================================== */
.page-title { font-size: var(--fs-800); letter-spacing: -0.02em; margin: var(--sp-6) 0 var(--sp-5); }

.cat-list { display:flex; flex-direction:column; gap:12px; max-width: 760px; margin: 0 auto; }
.cat-row {
  display:flex; align-items:center; gap:16px;
  background: var(--surface); border:1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 18px;
  box-shadow: var(--lit-edge);
  transition: transform var(--t) var(--ease-out), border-color var(--t), background var(--t), box-shadow var(--t);
}
.cat-row:hover {
  transform: translateX(3px);
  background: var(--surface-2); border-color: var(--border-2);
  box-shadow: var(--lit-edge), var(--shadow-card);
}
/* icon chip — DIRECT CHILD only (the inner <svg> also has class="icon"). */
.cat-row > .icon {
  width: 48px; height: 48px; padding: 11px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.035); border: 1px solid var(--border);
  transition: border-color var(--t), box-shadow var(--t);
}
.cat-row:hover > .icon { border-color: color-mix(in srgb, currentColor 45%, var(--border-2)); box-shadow: 0 0 10px -5px currentColor; }
.cat-row__label { font-family: var(--font-display); font-weight:600; font-size: var(--fs-500); flex:1; color: var(--text); }
.cat-row__chev { color: var(--text-dim); transition: transform var(--t) var(--ease-out), color var(--t); }
.cat-row:hover .cat-row__chev { color: var(--text-muted); transform: translateX(3px); }
.cat-row .link-flag { /* external/internal nav badge */
  font-size:10px; font-weight:600; letter-spacing:.5px; text-transform:uppercase;
  color: var(--neon-blue); border:1px solid rgba(31,224,255,0.4);
  border-radius: var(--r-pill); padding: 2px 8px;
}
.cat-list__divider { height:1px; background: var(--border); margin: 10px 0; }
.cat-list__subhead { color: var(--text-dim); font-size:13px; font-weight:600; letter-spacing:.6px; text-transform:uppercase; margin: 4px 4px 2px; }

/* ==================================================================
   10. CATEGORY DETAIL  (banner + sub-pills + product cards)
   ================================================================== */
.detail-back {
  display:inline-flex; align-items:center; gap:8px; color: var(--text-muted);
  font-weight:600; font-size:14px; margin: 22px 0 16px; transition: color var(--t);
}
.detail-back:hover { color: var(--text); }

/* Banner — SVG illustration */
.banner {
  position:relative; border-radius: var(--r-lg); overflow:hidden;
  aspect-ratio: 16/6; min-height: 200px; border:1px solid var(--border);
}
.banner img { width:100%; height:100%; object-fit: cover; display:block; }

.detail-head { margin: 22px 0 6px; }
.detail-head h1 { font-size: clamp(28px,4vw,44px); }
.detail-head p { color: var(--text-muted); font-size:17px; margin-top:8px; max-width: 560px; }

/* Sub-category pills row */
.pills { display:flex; gap:14px; flex-wrap:wrap; margin: 24px 0 8px; }
.pill {
  display:flex; flex-direction:column; align-items:center; gap:8px;
  min-width: 84px; padding: 14px 10px;
  background: var(--surface); border:1px solid var(--border); border-radius: var(--r-md);
  font-family: var(--font-display); font-weight:600; font-size:12px; text-align:center;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.pill:hover { transform: translateY(-2px); border-color: var(--neon-magenta); box-shadow:0 0 16px rgba(255,45,160,0.25); }
.pill .icon { width: 30px; height: 30px; color: var(--neon-magenta); }

/* ==================================================================
   11. PRODUCT CARDS
   ================================================================== */
/* :not(.related/.up-sells/.cross-sells) — WooCommerce's related/upsell wrappers
   are <section class="... products">, and an unscoped .products grid would turn
   that section into a grid and squish its product list into one column. */
.products:not(.related):not(.up-sells):not(.cross-sells) {
  display:grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: var(--gap);
  align-items: stretch;   /* every card in a row is the same height (no ragged rows) */
}
.products:not(.related):not(.up-sells):not(.cross-sells) > li,
.products:not(.related):not(.up-sells):not(.cross-sells) > .card { min-width: 0; }
/* Homepage Best Sellers: a complete 4 x 2 grid (8 products). The :not() chain
   above is (0,4,0) so a bare .products--home (0,1,0) loses and auto-fill used to
   win (5 cols on wide screens -> empty cells). Repeat the class to tie + win. */
.products--home.products--home.products--home.products--home { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .products--home.products--home.products--home.products--home { grid-template-columns: repeat(3, 1fr); } }
/* Phone: horizontal snap slider instead of a tall 2-col grid. */
@media (max-width: 680px) {
  .products--home.products--home.products--home.products--home {
    display: flex; grid-template-columns: none; overflow-x: auto; gap: 12px;
    padding: 4px 4px 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .products--home::-webkit-scrollbar { display: none; }
  .products--home > .card, .products--home > li { flex: 0 0 62%; scroll-snap-align: start; }
}
.card {
  background: var(--surface); border:1px solid var(--border); border-radius: var(--r-lg);
  overflow:hidden; box-shadow: var(--lit-edge);
  transition: transform var(--t) var(--ease-out), border-color var(--t), box-shadow var(--t);
  display:flex; flex-direction:column; height:100%;   /* fill the grid cell → equal heights */
}
.card:hover {
  transform: translateY(-6px); border-color: var(--border-2);
  box-shadow: var(--lit-edge), var(--shadow-card), var(--glow-purple);
}
.card__media {
  aspect-ratio: 1/1;
  background: linear-gradient(160deg,#1b1b22,#0f0f14);
  display:grid; place-items:center; position:relative; overflow:hidden;
  border-bottom:1px solid var(--border);
}
/* GPU-friendly image zoom on hover (transform/opacity only → 60fps, no reflow) */
.card__media img { width:100%; height:100%; object-fit: cover; display:block;
  transition: transform var(--t-slow) var(--ease-out); will-change: transform; }
.card:hover .card__media img { transform: scale(1.06); }
/* colour-filled placeholder when a product has no image yet */
.card__ph {
  display:grid; place-items:center; width:100%; height:100%;
  /* fully colour-filled so it clearly reads as a product image stand-in */
  background:
    radial-gradient(90% 90% at 50% 35%, color-mix(in srgb, var(--ph) 45%, transparent), transparent 75%),
    linear-gradient(150deg, color-mix(in srgb, var(--ph) 30%, var(--surface-2)), color-mix(in srgb, var(--ph) 12%, var(--surface-1)));
}
.card__ph-initial {
  font-family: var(--font-display); font-weight:700; font-size: 2.8rem; line-height:1;
  color: var(--ph); text-shadow: 0 0 22px color-mix(in srgb, var(--ph) 55%, transparent);
}
/* wishlist heart, top-right of the media */
.card__wish {
  position:absolute; top:10px; right:10px; z-index:2;
  width:34px; height:34px; border-radius:50%; border:1px solid var(--border-2);
  background: rgba(11,11,18,0.6); backdrop-filter: blur(4px);
  color: var(--text-muted); display:grid; place-items:center;
  transition: color var(--t), border-color var(--t), transform var(--t);
}
.card__wish:hover { transform: scale(1.1); border-color: var(--neon-magenta); }
.card__wish[aria-pressed="true"] {
  color: var(--neon-magenta); border-color: var(--neon-magenta);
  filter: drop-shadow(0 0 8px rgba(255,45,160,0.7));
}
.card__wish[aria-pressed="true"] svg { fill: currentColor; }
.card__tag {
  position:absolute; top:10px; left:10px; font-size:11px; font-weight:700;
  font-family: var(--font-display); padding:3px 9px; border-radius: var(--r-pill);
  background: rgba(11,11,18,0.7); color: var(--neon-yellow); border:1px solid rgba(255,210,63,0.4);
}
.card__body { padding: 16px; display:flex; flex-direction:column; gap:8px; flex:1; }
/* Clamp names to exactly 2 lines with a clean ellipsis (fixed height so the
   3rd line can never bleed through, and prices line up across the row). */
/* !important defeats WooCommerce core's `.woocommerce ul.products li.product h3`
   (specificity 0,3,1) which would otherwise reset display and break the clamp. */
.card__name { font-family: var(--font-display); font-weight:600; font-size: var(--fs-400);
  line-height:1.35; height: 2.7em !important; color: var(--text); margin:0; padding:0 !important;
  display:-webkit-box !important; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden !important; text-overflow:ellipsis; }
.card__name a { display:inline; color:inherit; }
.card__rating { display:flex; align-items:center; gap:6px; font-size: var(--fs-200); color: var(--text-muted); }
.stars { color: var(--neon-yellow); letter-spacing:1px; font-size: var(--fs-200); }
.card__foot { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top: 4px; }
.card__foot .card__add, .card__foot .card__view { flex:none; }
/* min-width:0 + smaller size so variable-product ranges ("$250.00 - $620.00")
   fit on one line instead of wrapping and stretching the card. */
.card__price { font-family: var(--font-display); font-weight:700; font-size: var(--fs-400); line-height:1.25; min-width:0; }
.card__price .woocommerce-Price-amount { white-space: nowrap; }
.card__add {
  width:40px; height:40px; border-radius:50%; border:0;
  background: var(--grad-primary); color:#fff;
  display:grid; place-items:center;
  box-shadow: var(--glow-magenta);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t);
}
.card__add:hover { transform: scale(1.1); box-shadow: 0 0 22px -2px rgba(255,61,166,0.75); }

/* Clickable card (stretched-link pattern): the TITLE is the link, its ::after
   stretches over the whole card. Wishlist + add buttons stay above (z-index 2).
   Focus shows on the whole card via :focus-within. (Accessible, no nested links.) */
.card.is-linked { position: relative; }
.card__title-link { color: inherit; text-decoration: none; }
.card__title-link::after { content:""; position:absolute; inset:0; z-index:1; border-radius: inherit; }
.card.is-linked .card__wish, .card.is-linked .card__add { position: relative; z-index: 2; }
.card.is-linked:focus-within {
  border-color: var(--border-2);
  box-shadow: var(--lit-edge), var(--shadow-card), var(--glow-purple);
  outline: 2px solid var(--neon-blue); outline-offset: 2px;
}
.card__title-link:focus { outline: none; }   /* ring is shown on the card instead */
.card.is-linked:hover .card__name { color: #fff; }

/* Hide WooCommerce's inline "View cart" link that appears after AJAX add —
   we show a toast popup + the live cart badge instead. */
.products .added_to_cart,
.card .added_to_cart { display: none !important; }
/* Loading: hide the cart icon + WooCommerce's top-right gear glyph and show a
   centred ring spinner inside the round button. */
.card__add.loading { pointer-events: none; position: relative; }
.card__add.loading svg { opacity: 0; }
.card__add.loading::after {
  content: "" !important; font-family: inherit !important;
  position: absolute; top: 50%; left: 50%; box-sizing: border-box;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; border-radius: 50%;
  animation: playx-spin 0.6s linear infinite;
}
/* Defined here too (not just woocommerce.css) so card spinners animate on the
   homepage / search, where woocommerce.css is not enqueued. */
@keyframes playx-spin { to { transform: rotate(360deg); } }

/* Toast pop-ups — bottom-right stack (Sonner/Linear pattern): elevated dark
   card, type icon in a tinted chip, message, dismiss. Newest on the bottom. */
.playx-toast-wrap {
  position: fixed; right: 24px; bottom: 24px; z-index: 95;
  display: flex; flex-direction: column; gap: 10px; align-items: stretch;
  pointer-events: none; width: min(380px, calc(100vw - 32px));
}
.playx-toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text);
  padding: 12px 12px 12px 14px; border-radius: var(--r-lg);
  font-weight: 500; font-size: var(--fs-200); line-height: 1.5; text-align: left;
  box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.75), var(--lit-edge);
  animation: playx-toast-in 0.28s var(--ease-out, ease);
}
/* short-lived add-to-cart confirmation animates itself away */
.playx-toast--auto { animation: playx-toast-in 0.28s var(--ease-out, ease), playx-toast-out 0.3s ease 2.4s forwards; }
.ptoast-ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--neon-blue) 14%, transparent); color: var(--neon-blue);
}
.ptoast-ico--ok    { background: color-mix(in srgb, var(--neon-green) 14%, transparent); color: var(--neon-green); }
.ptoast-ico--error { background: color-mix(in srgb, var(--neon-magenta) 14%, transparent); color: var(--neon-magenta); }
.playx-toast__body { flex: 1; min-width: 0; }
.playx-toast__body li { list-style: none; margin: 0; padding: 0; }
.playx-toast__body li + li { margin-top: 4px; }
.playx-toast__body a:not(.button) { color: var(--text); font-weight: 600; text-decoration: none; transition: color var(--t); }
.playx-toast__body a:not(.button):hover { color: var(--neon-blue); }
.playx-toast__body a.button {
  display: inline-block; margin-top: 6px; margin-right: 8px; padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border-2); color: var(--text); font-size: var(--fs-100);
  transition: border-color var(--t);
}
.playx-toast__body a.button:hover { border-color: var(--text-dim); }
.notice-x {
  flex: none; align-self: flex-start; width: 28px; height: 28px; border: 0; cursor: pointer;
  background: none; color: var(--text-dim); font-size: 18px; line-height: 1; border-radius: 8px;
  display: grid; place-items: center; transition: color var(--t), background var(--t);
}
.notice-x:hover { color: var(--text); background: var(--surface); }
.playx-toast.is-leaving { animation: playx-toast-out 0.25s ease forwards; }
@keyframes playx-toast-in  { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes playx-toast-out { to { opacity: 0; transform: translateX(24px); } }
@media (max-width: 760px) {
  .playx-toast-wrap { right: 16px; bottom: 16px; width: calc(100vw - 32px); }
}

/* 404 — neon hero */
.nf {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(560px, 78vh, 820px); display: grid; place-items: center;
  padding: clamp(40px, 8vw, 90px) 0; text-align: center;
}
.nf__orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: 0.5; pointer-events: none; }
.nf__orb--1 { width: 440px; height: 440px; top: -120px; left: -90px; background: radial-gradient(circle, var(--neon-magenta), transparent 70%); }
.nf__orb--2 { width: 400px; height: 400px; bottom: -130px; right: -80px; background: radial-gradient(circle, var(--neon-blue), transparent 70%); }
.nf__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.nf__eyebrow {
  color: var(--text-dim); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-200);
  text-transform: uppercase; letter-spacing: 0.18em; margin: 0 0 6px;
}
.nf__big {
  display: flex; align-items: center; justify-content: center; line-height: 0.8;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(120px, 30vw, 280px);
  letter-spacing: -0.03em; margin: 0 0 var(--sp-2);
}
.nf__big span {
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 40px rgba(255, 61, 166, 0.35));
}
.nf__big .nf__zero { animation: nf-bob 3.2s ease-in-out infinite; }
@keyframes nf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.nf__title { font-family: var(--font-display); font-size: clamp(28px, 5vw, 44px); margin: 0 0 12px; letter-spacing: -0.02em; }
.nf__lead { color: var(--text-muted); line-height: 1.7; margin: 0; max-width: 48ch; }
.nf__search {
  display: flex; align-items: center; gap: 8px; margin: var(--sp-5) auto 0; width: 100%; max-width: 480px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-pill); padding: 6px 6px 6px 16px;
  box-shadow: var(--lit-edge);
}
.nf__search-icon { color: var(--text-dim); display: grid; place-items: center; flex: none; }
.nf__search input[type="search"] { flex: 1; min-width: 0; height: 42px; border: 0; background: none; color: var(--text); font-size: var(--fs-300); outline: none; }
.nf__search .btn { flex: none; height: 42px; padding: 0 22px; }
.nf__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: var(--sp-4) 0 0; }
.nf__links { margin: var(--sp-6) 0 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nf__links-label { color: var(--text-dim); font-size: var(--fs-200); }
.nf__links-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (max-width: 600px) {
  .nf__search { flex-wrap: wrap; }
  .nf__search .btn { flex: 1 0 100%; }
}

/* Success hero (contact thank-you, etc.) — same neon-hero language as the 404,
   reusing .nf__orb for the background glow. */
.shero {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  min-height: clamp(520px, 74vh, 780px); display: grid; place-items: center;
  padding: clamp(40px, 8vw, 90px) 0;
}
/* Keep the orbs' glow fully inside the hero so overflow:hidden doesn't clip a
   hard edge near the footer. */
.shero .nf__orb--1 { top: -40px; left: -40px; width: 360px; height: 360px; opacity: 0.42; }
.shero .nf__orb--2 { bottom: 120px; right: -10px; width: 320px; height: 320px; opacity: 0.38; }
.shero__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.shero__badge {
  position: relative; display: inline-grid; place-items: center; width: 104px; height: 104px;
  margin: 0 0 var(--sp-4); border-radius: 50%; color: #fff; background: var(--grad-primary);
  box-shadow: var(--glow-magenta), 0 0 60px -6px rgba(255, 61, 166, 0.6);
}
.shero__badge::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--neon-magenta) 45%, transparent);
  animation: shero-pulse 2.4s ease-out infinite;
}
@keyframes shero-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.35); opacity: 0; } }
.shero__title { font-family: var(--font-display); font-size: clamp(34px, 6vw, 60px); letter-spacing: -0.02em; margin: 0 0 12px; }
.shero__lead { color: var(--text-muted); line-height: 1.7; margin: 0 auto; max-width: 48ch; font-size: var(--fs-400); }
.shero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: var(--sp-5) 0 0; }
@media (prefers-reduced-motion: reduce) { .shero__badge::after { animation: none; } }

/* Centered state pages (generic "thank you" fallback / order states) */
.page-state { padding: clamp(40px, 8vw, 96px) 0; display: flex; justify-content: center; }
.state-card {
  width: 100%; max-width: 620px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl, 24px);
  box-shadow: var(--lit-edge); padding: clamp(28px, 5vw, 56px);
}
.state-card__code {
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(72px, 18vw, 132px); margin: 0 0 6px;
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.state-badge {
  display: inline-grid; place-items: center; width: 66px; height: 66px; margin: 0 auto var(--sp-3);
  border-radius: 50%; color: #fff; background: var(--grad-primary); box-shadow: var(--glow-magenta);
}
.state-card__title { font-family: var(--font-display); font-size: var(--fs-700); margin: 0 0 10px; }
.state-card__lead { color: var(--text-muted); line-height: 1.7; margin: 0 auto; max-width: 46ch; }
.state-search {
  display: flex; align-items: center; gap: 8px; margin: var(--sp-5) auto 0; max-width: 460px;
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--r-pill); padding: 6px 6px 6px 16px;
}
.state-search__icon { color: var(--text-dim); display: grid; place-items: center; flex: none; }
.state-search input[type="search"] {
  flex: 1; min-width: 0; height: 40px; border: 0; background: none; color: var(--text);
  font-size: var(--fs-300); outline: none;
}
.state-search .btn { flex: none; height: 40px; padding: 0 20px; }
.state-card__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: var(--sp-5) 0 0; }
.state-links { margin: var(--sp-6) 0 0; padding-top: var(--sp-5); border-top: 1px solid var(--border); }
.state-links__label { display: block; color: var(--text-dim); font-size: var(--fs-200); margin-bottom: 12px; }
.state-links__row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.state-chip {
  padding: 10px 18px; border-radius: var(--r-pill); background: var(--surface);
  border: 1px solid var(--border); color: var(--text-muted); font-family: var(--font-display);
  font-weight: 600; font-size: var(--fs-200); text-decoration: none;
  transition: color var(--t), border-color var(--t), background var(--t), box-shadow var(--t), transform var(--t);
}
.state-chip:hover {
  color: #fff; border-color: transparent; background: var(--grad-primary);
  box-shadow: var(--glow-magenta); transform: translateY(-2px);
}

/* Entrance reveal (JS adds .js-reveal so there's no flash if JS fails) */
.js-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); will-change: opacity, transform; }
.js-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal { opacity: 1 !important; transform: none !important; } }

/* Empty state (Gifts — coming soon) */
.empty {
  text-align:center; padding: 60px 20px; border:1px dashed var(--border-2);
  border-radius: var(--r-lg); background: var(--surface);
}
/* Only the empty-state's OWN icon (direct child) — NOT icons inside buttons/links. */
.empty > .icon { width:48px; height:48px; margin:0 auto 14px; color: var(--neon-purple);
  filter: drop-shadow(0 0 10px rgba(166,75,255,0.5)); }
.empty h3 { font-size:22px; margin-bottom:8px; }
.empty p { color: var(--text-muted); max-width:420px; margin: 0 auto; }

/* Account / sign-in card */
.auth-card {
  max-width: 440px; margin: 0 auto; background: var(--surface);
  border:1px solid var(--border); border-radius: var(--r-lg); padding: 28px;
}
.auth-card h2 { font-size: 24px; }
.auth-sub { color: var(--text-muted); margin: 8px 0 22px; }
.auth-form { display:flex; flex-direction:column; gap:16px; }
.auth-form label { display:flex; flex-direction:column; gap:7px; font-size:14px; font-weight:600; color: var(--text-muted); }
.auth-form input {
  background: var(--bg); border:1px solid var(--border-2); border-radius: var(--r-sm);
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size:15px;
  transition: border-color var(--t), box-shadow var(--t);
}
.auth-form input:focus { outline:none; border-color: var(--neon-magenta); box-shadow: 0 0 0 3px rgba(255,45,160,0.15); }
.auth-msg { color: var(--neon-green); font-size:14px; font-weight:600; }
.auth-alt { text-align:center; color: var(--text-muted); margin-top:18px; font-size:14px; }
.auth-alt a { color: var(--neon-blue); font-weight:600; }

/* ==================================================================
   12. FOOTER (desktop)
   ================================================================== */
.footer {
  border-top:1px solid var(--border); margin-top: 50px; padding: 40px 0 30px;
  color: var(--text-muted); font-size:14px;
}
.footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-size:14px; color: var(--text); margin-bottom:12px; letter-spacing:.4px; }
.footer a { color: var(--text-muted); transition: color var(--t); }
.footer a:hover { color: var(--neon-blue); }
.footer__brand p { max-width: 280px; margin-top:10px; }
.footer__bottom { margin-top: 30px; padding-top: 18px; border-top:1px solid var(--border);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:13px; color: var(--text-dim); }

/* ==================================================================
   13. MOBILE BOTTOM TAB BAR  (shown on phones only)
   ================================================================== */
.tabbar { display:none; }
.badge[hidden] { display: none !important; }   /* cart badge hides when empty */
@media (max-width: 760px) {
  .tabbar {
    position: fixed; left:0; right:0; bottom:0; z-index: 50;
    display:flex; justify-content:space-around;
    background: rgba(10,10,12,0.94); backdrop-filter: saturate(140%) blur(14px);
    border-top:1px solid var(--border); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .tabbar a, .tabbar button {
    position:relative; display:flex; flex-direction:column; align-items:center; gap:3px;
    font-family: inherit; font-size:11px; color: var(--text-dim);
    background:none; border:0; padding: 4px 8px; cursor:pointer; transition: color var(--t);
  }
  .tabbar a:hover, .tabbar button:hover { color: var(--text); }
  .tabbar a .icon, .tabbar button .icon { width:24px; height:24px; }
  .tabbar a[aria-current="page"] { color: var(--neon-magenta); }
  .tabbar a[aria-current="page"] .icon { filter: drop-shadow(0 0 8px rgba(255,61,166,0.7)); }
  /* small corner badge sitting on the cart icon's top-right (not covering it) */
  .tabbar .badge {
    top: 0; left: 50%; right: auto; transform: translateX(5px);
    min-width: 16px; height: 16px; padding: 0 4px;
    font-size: 10px; line-height: 16px; border: 1.5px solid var(--bg);
  }
  body { padding-bottom: 76px; } /* clear the fixed bar */

  /* phone header shows ONLY the search icon — cart lives in the bottom tab bar */
  .header-actions .iconbtn[aria-label^="Cart"] { display: none; }
}

/* ==================================================================
   14. RESPONSIVE BREAKPOINTS
   ================================================================== */

/* Tablet */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__art { max-width: 460px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile — match the phone reference */
@media (max-width: 760px) {
  /* phone header = logo + search icon + cart (nav lives in the bottom tab bar) */
  .nav-links { display: none; }
  .topbar__inner { min-height: 64px; }

  .hero { padding: 24px 0 6px; }
  .hero__title { font-size: clamp(36px,9vw,52px); }
  /* stack the CTAs full-width so labels never squish onto two lines */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  /* softer, centred glow behind the hero art (was a harsh right-edge blob) */
  .hero::before {
    top: auto; bottom: -6%; right: auto; left: 50%; transform: translateX(-50%);
    width: 125%; height: 55%; opacity: 0.5;
  }

  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cat-tile { padding: 18px 10px 16px; }

  .pills { gap:10px; overflow-x:auto; flex-wrap:nowrap; padding-bottom:4px; }

  .empty { padding: 36px 18px; }   /* roomier promo button on phones */

  .footer { display:none; } /* mobile uses the tab bar instead */
}

/* phones: 2 wider category tiles per row (3-up was too squished) */
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ==================================================================
   15. (removed) legacy cart drawer — superseded by the .side-cart in 15c.
   Its bare `.cart` class collided with WooCommerce's <form class="cart"> on
   single products (made the add-to-cart form position:fixed + invisible),
   so the whole dead block was deleted. Do NOT reintroduce a bare `.cart` rule.
   ================================================================== */

/* ==================================================================
   15b. SEARCH POPUP (opened by the header search icon)
   ================================================================== */
.search-modal { position: fixed; inset: 0; z-index: 80; visibility: hidden; opacity: 0;
  transition: opacity var(--t-slow), visibility var(--t-slow); }
.search-modal.open { visibility: visible; opacity: 1; }
.search-modal__scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.62); backdrop-filter: blur(2px); }
.search-modal__panel {
  position: relative; max-width: 620px; margin: 11vh auto 0; padding: 14px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  transform: translateY(-16px) scale(0.98); transition: transform var(--t-slow) var(--ease-out);
}
.search-modal.open .search-modal__panel { transform: none; }
.search-modal__bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 12px 16px;
  transition: border-color var(--t), box-shadow var(--t);
}
.search-modal__bar:focus-within { border-color: var(--neon-magenta); box-shadow: 0 0 0 3px rgba(255,45,160,0.15); }
.search-modal__bar > .icon { color: var(--neon-magenta); }
.search-modal__bar input { flex: 1; min-width: 0; background: none !important; border: 0 !important; color: var(--text); font-family: inherit; font-size: 16px; outline: none; box-shadow: none !important; }
.search-modal__bar input::placeholder { color: var(--text-dim); }

/* Kill the browser's native search clear button (the ugly blue/grey X) on every
   search field site-wide, and any inset focus glow WooCommerce/UA adds. */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button { -webkit-appearance: none; appearance: none; display: none; }
input[type="search"] { appearance: none; -webkit-appearance: none; }
.search-modal input[type="search"]:focus,
.nf__search input[type="search"]:focus,
.state-search input[type="search"]:focus,
.woocommerce input[type="search"]:focus { box-shadow: none !important; outline: none !important; }
.search-modal__close { background: none; border: 0; color: var(--text-dim); padding: 4px; border-radius: 8px; }
.search-modal__close:hover { color: var(--text); background: var(--surface-2); }
.search-modal__results { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.search-modal__hint { color: var(--text-dim); font-size: 13px; padding: 6px 4px 2px; }
.s-result {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.s-result::after {
  content: ""; position: absolute; right: 14px; width: 7px; height: 7px; flex: none;
  border-top: 2px solid var(--text-dim); border-right: 2px solid var(--text-dim);
  transform: rotate(45deg); transition: border-color var(--t), right var(--t);
}
.s-result:hover { border-color: color-mix(in srgb, var(--neon-magenta) 45%, var(--border-2)); background: var(--surface); transform: translateX(2px); }
.s-result:hover::after { border-color: var(--neon-magenta); right: 11px; }
.s-result img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface); border: 1px solid var(--border); }
.s-result__info { flex: 1; min-width: 0; padding-right: 16px; display: flex; flex-direction: column; gap: 3px; }
.s-result__name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-result__price { color: var(--text-muted); font-weight: 600; font-size: 13px; }
.s-result__price .amount, .s-result__price ins { color: var(--neon-blue); }
.s-result__price del { color: var(--text-dim); font-weight: 400; margin-right: 6px; }
.s-empty { color: var(--text-muted); text-align: center; padding: 26px 10px; }
@media (max-width: 600px){
  .search-modal__panel { margin: max(12px, env(safe-area-inset-top)) 10px 0; padding: 12px; max-width: none; }
  .search-modal__bar { padding: 10px 12px; gap: 8px; }
  .search-modal__bar input { font-size: 16px; }   /* >=16px stops iOS zoom-on-focus */
  .search-modal__results { max-height: 64vh; }
  .s-result { padding: 7px; gap: 10px; }
  .s-result img { width: 42px; height: 42px; }
}

/* ==================================================================
   15c. SIDE CART (slide-out mini-cart)
   ================================================================== */
.side-cart { position: fixed; inset: 0; z-index: 85; visibility: hidden; opacity: 0;
  transition: opacity var(--t-slow), visibility var(--t-slow); }
.side-cart.open { visibility: visible; opacity: 1; }
.side-cart__scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }
.side-cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw);
  display: flex; flex-direction: column;
  background: var(--bg); border-left: 1px solid var(--border-2);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  transform: translateX(100%); transition: transform var(--t-slow) var(--ease-out);
}
.side-cart.open .side-cart__panel { transform: none; }
.side-cart__head { display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); }
.side-cart__head h2 { font-size: var(--fs-600); }
.side-cart__close { background: none; border: 0; color: var(--text); padding: 8px; border-radius: 8px; }
.side-cart__close:hover { background: var(--surface-2); }
.widget_shopping_cart_content { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* WooCommerce mini-cart (side cart). EVERYTHING is scoped under .side-cart and
   uses !important on layout props: on WooCommerce pages body.woocommerce makes
   WC core's `.woocommerce ul.product_list_widget li/img/a` rules hijack the
   drawer (float:right images, 32px thumbs, cramped padding). This block wins. */
.side-cart .woocommerce-mini-cart {
  list-style: none !important; margin: 0 !important; padding: var(--sp-4) var(--sp-5) !important; flex: 1;
  overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; gap: 10px;
}
.side-cart .mini-item {
  position: relative; margin: 0 !important; list-style: none !important;
  display: flex !important; align-items: flex-start; gap: 12px;
  padding: 12px 36px 12px 12px !important;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-md);
}
.side-cart .mini-item::before, .side-cart .mini-item::after { content: none !important; display: none !important; }
.side-cart .mini-item__thumb { flex: none !important; width: 58px !important; height: 58px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); display: block !important; padding: 0 !important; }
.side-cart .mini-item__thumb img { width: 58px !important; height: 58px !important; object-fit: cover; display: block !important; margin: 0 !important; float: none !important; max-width: none !important; box-shadow: none !important; }
.side-cart .mini-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.side-cart .mini-item__name {
  color: var(--text) !important; font-family: var(--font-display); font-weight: 600 !important; font-size: var(--fs-200);
  line-height: 1.3; text-decoration: none; float: none !important; padding: 0 !important;
  display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.side-cart .mini-item__name:hover { color: var(--neon-blue) !important; }
.side-cart .mini-item .variation { margin: 0; font-size: var(--fs-100); color: var(--text-dim); }
.side-cart .mini-item .variation dt, .side-cart .mini-item .variation dd { display: inline; margin: 0; font-weight: 400; float: none; }
.side-cart .mini-item__controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.side-cart .mini-item__price, .side-cart .mini-item__price .amount { color: var(--neon-blue) !important; font-weight: 700; font-family: var(--font-display); font-size: var(--fs-300); }
.side-cart .mini-item a.remove {
  position: absolute !important; top: 12px; right: 10px; float: none !important;
  width: 24px !important; height: 24px !important; display: grid !important; place-items: center;
  border-radius: 50%; color: var(--text-dim) !important; background: var(--surface-2) !important;
  border: 1px solid var(--border); font-size: 16px !important; line-height: 1; text-decoration: none; opacity: 1 !important;
  transition: color var(--t), border-color var(--t);
}
.side-cart .mini-item a.remove:hover { color: var(--neon-magenta) !important; border-color: var(--neon-magenta); background: var(--surface-2) !important; }

/* Quantity stepper */
.side-cart .qty-stepper { display: inline-flex !important; align-items: center; border: 1px solid var(--border-2); border-radius: var(--r-pill); background: var(--surface); transition: opacity var(--t); }
.side-cart .qty-stepper.is-loading { opacity: 0.5; pointer-events: none; }
.side-cart .qty-btn { width: 28px; height: 28px; border: 0; background: none; color: var(--text-muted); font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.side-cart .qty-btn:first-child { border-radius: var(--r-pill) 0 0 var(--r-pill); }
.side-cart .qty-btn:last-child { border-radius: 0 var(--r-pill) var(--r-pill) 0; }
.side-cart .qty-btn:hover { color: var(--text); background: var(--surface-2); }
.side-cart .qty-val {
  width: 34px; height: 28px; border: 0; background: none; color: var(--text); text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-200);
  -moz-appearance: textfield; appearance: textfield; padding: 0 !important;
}
.side-cart .qty-val::-webkit-outer-spin-button, .side-cart .qty-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.side-cart .qty-val:focus { outline: none; }

/* Empty state */
.side-cart .woocommerce-mini-cart__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); padding: var(--sp-6) var(--sp-5); text-align: center; }
.side-cart .woocommerce-mini-cart__empty .icon { color: var(--text-dim); }
.side-cart .woocommerce-mini-cart__empty-message { color: var(--text-muted); margin: 0; }

/* Footer: subtotal + actions */
.side-cart .woocommerce-mini-cart__total {
  display: flex; align-items: baseline; justify-content: space-between; margin: 0 !important;
  padding: var(--sp-4) var(--sp-5) var(--sp-3) !important; border-top: 1px solid var(--border); background: var(--surface-1);
}
.side-cart .woocommerce-mini-cart__total strong, .side-cart .mini-cart__total-label { color: var(--text-muted); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-300); }
.side-cart .woocommerce-mini-cart__total .amount, .side-cart .mini-cart__total-amount { color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-500); }
.side-cart .woocommerce-mini-cart__buttons {
  display: flex !important; gap: 10px; padding: 0 var(--sp-5) var(--sp-5) !important; margin: 0 !important; background: var(--surface-1);
}
.side-cart .woocommerce-mini-cart__buttons .button {
  flex: 1; text-align: center; padding: 13px 18px !important; border-radius: var(--r-pill) !important;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-300); text-decoration: none;
  border: 1px solid var(--border-2); color: var(--text); background: rgba(255,255,255,0.02);
  transition: border-color var(--t), box-shadow var(--t); margin: 0 !important; float: none !important;
}
.side-cart .woocommerce-mini-cart__buttons .button:hover { border-color: var(--neon-blue); box-shadow: var(--glow-blue); }
.side-cart .woocommerce-mini-cart__buttons .button.checkout {
  background: var(--grad-primary); color: #fff; border: 0; box-shadow: var(--glow-magenta);
}
.side-cart .woocommerce-mini-cart__buttons .button.checkout:hover { box-shadow: 0 0 30px -4px rgba(255,61,166,0.65); }

/* ==================================================================
   16. TOAST (add-to-cart confirmation)
   ================================================================== */
.toast-wrap { position: fixed; left:50%; bottom: 26px; transform: translateX(-50%);
  z-index: 90; display:flex; flex-direction:column; gap:10px; align-items:center; pointer-events:none; }
.toast {
  background: var(--surface-2); border:1px solid var(--neon-magenta);
  color: var(--text); padding: 12px 18px; border-radius: var(--r-pill);
  font-weight:600; font-size:14px; display:flex; align-items:center; gap:10px;
  box-shadow: 0 0 22px rgba(255,45,160,0.35);
  animation: toastIn .25s ease, toastOut .3s ease 2.2s forwards;
}
.toast .icon { color: var(--neon-green); width:18px; height:18px; }
@keyframes toastIn  { from { opacity:0; transform: translateY(14px);} to { opacity:1; transform:none;} }
@keyframes toastOut { to { opacity:0; transform: translateY(14px);} }
@media (max-width:760px){ .toast-wrap{ bottom: 88px; } }

/* ==================================================================
   17. SINGLE PRODUCT (new polished screen — gallery + sticky buy box)
   ================================================================== */
/* Scoped to the single-product PAGE only — never the bare `product` class that
   WooCommerce adds to shop-loop items / cards (that was padding every card). */
.single-product .product { padding: var(--sp-6) 0 var(--sp-8); }
.product__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-8); align-items: start;
}

/* gallery */
.gallery { display: grid; grid-template-columns: 72px 1fr; gap: var(--sp-4); }
.gallery__thumbs { display: flex; flex-direction: column; gap: var(--sp-3); }
.gallery__thumb {
  width: 72px; height: 72px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface); padding: 0; cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--neon-magenta); box-shadow: var(--glow-magenta); }
.gallery__main {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border); background: linear-gradient(160deg,#1b1b22,#0f0f14);
  aspect-ratio: 1/1; box-shadow: var(--lit-edge);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* buy box */
.buybox { position: sticky; top: 92px; display: flex; flex-direction: column; gap: var(--sp-4); }
.buybox__cat { font-size: var(--fs-100); letter-spacing: .14em; text-transform: uppercase; color: var(--neon-blue); font-weight: 600; }
.buybox h1 { font-size: var(--fs-800); letter-spacing: -0.02em; line-height: 1.08; }
.buybox__rating { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: var(--fs-200); }
.buybox__price { display: flex; align-items: baseline; gap: 12px; }
.buybox__price .now { font-family: var(--font-display); font-weight:700; font-size: var(--fs-800);
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.buybox__price .was { color: var(--text-dim); text-decoration: line-through; font-size: var(--fs-500); }
.buybox__desc { color: var(--text-muted); max-width: 52ch; }

/* variation selectors (e.g. table sizes) */
.variations { display: flex; flex-direction: column; gap: var(--sp-3); }
.variations__label { font-size: var(--fs-200); color: var(--text-muted); font-weight: 600; }
.swatches { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.swatch {
  padding: 10px 16px; border-radius: var(--r-pill); border: 1px solid var(--border-2);
  background: var(--surface); color: var(--text); font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-200); cursor: pointer; transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.swatch:hover { border-color: var(--neon-blue); }
.swatch[aria-pressed="true"] { border-color: var(--neon-magenta); background: var(--surface-2); box-shadow: var(--glow-magenta); }

/* quantity + add row */
.buy-row { display: flex; gap: var(--sp-3); align-items: stretch; margin-top: var(--sp-2); }
.qtybox { display: flex; align-items: center; border: 1px solid var(--border-2); border-radius: var(--r-pill); overflow: hidden; }
.qtybox button { width: 44px; background: var(--surface); border: 0; color: var(--text); font-size: 18px; cursor: pointer; transition: background var(--t); }
.qtybox button:hover { background: var(--surface-2); color: var(--neon-magenta); }
.qtybox span { min-width: 40px; text-align: center; font-weight: 700; font-family: var(--font-display); }
.buy-row .btn--primary { flex: 1; justify-content: center; }

/* trust strip */
.trust { display: flex; gap: var(--sp-5); flex-wrap: wrap; padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.trust div { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: var(--fs-200); }
.trust .icon { width: 20px; height: 20px; color: var(--neon-green); }

@media (max-width: 900px) {
  .product__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .buybox { position: static; }
  .gallery { grid-template-columns: 60px 1fr; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { flex-direction: row; order: 2; }
  .gallery__thumb { width: 60px; height: 60px; }
}

/* ==================================================================
   18. ACCOUNT DASHBOARD (logged-in My Account view)
   ================================================================== */
.account { display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-6); padding: var(--sp-6) 0 var(--sp-8); align-items: start; }

/* sidebar */
.acct-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: var(--sp-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); box-shadow: var(--lit-edge); }
.acct-user { display: flex; align-items: center; gap: 12px; padding: var(--sp-2) var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--border); }
.acct-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-primary); color: #fff; font-family: var(--font-display); font-weight:700; font-size: 18px; box-shadow: var(--glow-magenta); }
.acct-user b { font-family: var(--font-display); font-size: var(--fs-300); display: block; }
.acct-user span { color: var(--text-dim); font-size: var(--fs-200); }
.acct-nav { display: flex; flex-direction: column; gap: 4px; }
.acct-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-md);
  color: var(--text-muted); font-weight: 600; font-size: var(--fs-300); transition: background var(--t), color var(--t); }
.acct-nav a .icon { width: 20px; height: 20px; }
.acct-nav a:hover { background: var(--surface-2); color: var(--text); }
.acct-nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--neon-magenta); }
.acct-nav a[aria-current="page"] .icon { color: var(--neon-magenta); }
.acct-nav .logout { color: var(--text-dim); margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 var(--r-md) var(--r-md); padding-top: 14px; }

/* main panel */
.acct-main { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
.acct-welcome h1 { font-size: var(--fs-700); letter-spacing: -0.02em; }
.acct-welcome p { color: var(--text-muted); margin-top: 4px; }

/* stat bento */
.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--lit-edge); }
.stat .icon { width: 26px; height: 26px; margin-bottom: 10px; }
.stat b { font-family: var(--font-display); font-size: var(--fs-700); display: block; line-height: 1; }
.stat span { color: var(--text-muted); font-size: var(--fs-200); }

/* orders table — scoped to account pages so bare `.panel` can't hit
   WooCommerce's tab panel (.woocommerce-Tabs-panel panel) on single products. */
.woocommerce-account .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--lit-edge); overflow: hidden; }
.woocommerce-account .panel__head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); }
.woocommerce-account .panel__head h2 { font-size: var(--fs-600); }
.orders { width: 100%; border-collapse: collapse; }
.orders th, .orders td { text-align: left; padding: 14px var(--sp-5); font-size: var(--fs-200); }
.orders thead th { color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-100); }
.orders tbody tr { border-top: 1px solid var(--border); transition: background var(--t); }
.orders tbody tr:hover { background: var(--surface-2); }
.orders td b { font-family: var(--font-display); }
.orders .order-act { color: var(--neon-blue); font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: var(--fs-100); font-weight: 700; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--done { color: var(--neon-green); background: rgba(52,226,122,0.12); }
.status--ship { color: var(--neon-blue); background: rgba(34,219,255,0.12); }
.status--proc { color: var(--neon-yellow); background: rgba(255,214,74,0.12); }

/* address cards */
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); padding: var(--sp-5); }
.addr { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); background: var(--surface-1); }
.addr h3 { font-size: var(--fs-300); margin-bottom: 6px; }
.addr p { color: var(--text-muted); font-size: var(--fs-200); line-height: 1.7; }
.addr a { color: var(--neon-blue); font-size: var(--fs-200); font-weight: 600; display: inline-block; margin-top: 10px; }

@media (max-width: 880px) {
  .account { grid-template-columns: 1fr; }
  .acct-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .acct-user { width: 100%; border-bottom: 1px solid var(--border); }
  .acct-nav { flex-direction: row; flex-wrap: wrap; }
  .acct-nav .logout { border-top: 0; padding-top: 11px; }
  .acct-stats { grid-template-columns: 1fr; }
  .addr-grid { grid-template-columns: 1fr; }
  .orders th:nth-child(2), .orders td:nth-child(2) { display: none; } /* hide date on mobile */
}

/* ==================================================================
   18. STATIC PAGES (generic, About, Contact)
   ================================================================== */
/* NOTE: scoped to `main.page` — WordPress adds a bare `page` class to <body> on
   every Page, so an unscoped `.page` rule would pad the whole body (was causing a
   48px gap above the header on Home/About/Contact, but not on shop archives). */
main.page { padding: var(--sp-7) 0 var(--sp-8); }
.page-head { margin-bottom: var(--sp-5); }
.page-head__title { font-size: var(--fs-800); letter-spacing: -0.02em; }

/* Rich text (the_content output) */
.rich-text { color: var(--text-muted); line-height: 1.75; max-width: 72ch; }
.rich-text > * + * { margin-top: var(--sp-4); }
.rich-text h2 { font-family: var(--font-display); font-size: var(--fs-600); color: var(--text); margin-top: var(--sp-6); }
.rich-text h3 { font-family: var(--font-display); font-size: var(--fs-500); color: var(--text); margin-top: var(--sp-5); }
.rich-text a { color: var(--neon-blue); text-decoration: underline; text-underline-offset: 2px; }
.rich-text ul, .rich-text ol { padding-left: 1.3em; }
.rich-text li + li { margin-top: 6px; }
.rich-text img { border-radius: var(--r-lg); max-width: 100%; height: auto; }
.rich-text blockquote { border-left: 3px solid var(--neon-magenta); padding-left: var(--sp-4); color: var(--text); font-style: italic; }

/* ---- About ---- */
.about-hero { padding: var(--sp-8) 0 var(--sp-7); text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--neon-purple) 16%, transparent), transparent 60%); }
.about-hero__eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: var(--fs-100); color: var(--text-dim); font-weight: 600; }
.about-hero__title { font-family: var(--font-display); font-size: var(--fs-900); line-height: 1.04; letter-spacing: -0.025em; margin: var(--sp-3) 0; }
.about-hero__title em { font-style: normal; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-hero__lead { max-width: 60ch; margin: 0 auto; color: var(--text-muted); font-size: var(--fs-400); }
.about-hero__cta { display: flex; gap: 12px; justify-content: center; margin-top: var(--sp-5); flex-wrap: wrap; }

.about-story { padding: var(--sp-6) 0; }
.about-story__inner { margin: 0 auto; }

.about-values { padding: var(--sp-6) 0 var(--sp-7); }
.about-section-title { font-family: var(--font-display); font-size: var(--fs-700); text-align: center; margin-bottom: var(--sp-5); }
.about-values__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--lit-edge); }
.value-card__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md); background: var(--surface-2); color: var(--neon-blue); border: 1px solid var(--border); margin-bottom: var(--sp-3); }
.value-card__title { font-family: var(--font-display); font-size: var(--fs-500); margin-bottom: 6px; }
.value-card__text { color: var(--text-muted); line-height: 1.6; font-size: var(--fs-300); }

.about-cta { padding: 0 0 var(--sp-8); }
.about-cta__panel { text-align: center; border: 1px solid var(--border-2); border-radius: var(--r-xl); padding: clamp(28px,5vw,56px);
  background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--neon-magenta) 14%, transparent), transparent 60%), var(--surface); }
.about-cta__panel h2 { font-family: var(--font-display); font-size: var(--fs-700); margin-bottom: 8px; }
.about-cta__panel p { color: var(--text-muted); margin-bottom: var(--sp-4); }

/* ---- Contact ---- */
.page-contact { padding: var(--sp-7) 0 var(--sp-8); }
.contact-head { max-width: 60ch; margin-bottom: var(--sp-5); }
.contact-head__eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: var(--fs-100); color: var(--text-dim); font-weight: 600; }
.contact-head__title { font-family: var(--font-display); font-size: var(--fs-800); letter-spacing: -0.02em; margin: var(--sp-2) 0; }
.contact-head__lead { color: var(--text-muted); }

.contact-notice { border-radius: var(--r-md); padding: 14px 18px; margin-bottom: var(--sp-5); background: var(--surface); border: 1px solid var(--border-2); }
.contact-notice--ok { border-left: 3px solid var(--neon-green); }
.contact-notice--err { border-left: 3px solid var(--neon-magenta); }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-6); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: var(--sp-4); }
.contact-info__item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); color: var(--neon-blue); }
.contact-info__label { display: block; font-size: var(--fs-100); text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 2px; }
.contact-info__value { color: var(--text); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
a.contact-info__value:hover { color: var(--neon-blue); }
.contact-info__rich { margin-top: var(--sp-3); }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--lit-edge); }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: block; margin-bottom: var(--sp-4); }
.field__label { display: block; font-size: var(--fs-200); color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; background: var(--surface-1); color: var(--text);
  border: 1px solid var(--border-2); border-radius: var(--r-sm); padding: 12px 14px;
  font-family: var(--font-body); font-size: var(--fs-300);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--neon-magenta); box-shadow: 0 0 0 3px rgba(255,45,160,0.15); }
.field textarea { resize: vertical; min-height: 120px; }
.contact-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__submit { width: 100%; justify-content: center; margin-top: 4px; }

@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-form { padding: var(--sp-4); }
}

/* ==================================================================
   19. WOOCOMMERCE NOTICES (global — can appear on non-shop pages too)
   ================================================================== */
/* In-page WC notices NEVER render — app.js lifts them into toast pop-ups.
   Hiding them here prevents the flash-at-top before the JS runs. The two
   informational empty-states stay inline (they're content, not alerts). */
.woocommerce-message,
.woocommerce-info:not(.cart-empty):not(.woocommerce-noreviews),
.woocommerce-error,
ul.woocommerce-error { display: none !important; }
/* inline empty-states keep a simple card look */
.cart-empty.woocommerce-info, .woocommerce-noreviews {
  display: block; background: var(--surface); color: var(--text-muted);
  border: 1px dashed var(--border-2); border-radius: var(--r-lg);
  padding: var(--sp-5) !important; margin: 0 0 var(--sp-4);
  font-size: var(--fs-300); list-style: none;
}
.cart-empty.woocommerce-info::before, .woocommerce-noreviews::before { display: none !important; content: none !important; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
