/* ===== CUSTOM FONTS ===== */
@font-face {
  font-family: 'Amsterdam Signature';
  src: url('Fonts/amsterdam_signature/Amsterdam Signature.woff2') format('woff2'),
       url('Fonts/amsterdam_signature/Amsterdam Signature.woff') format('woff'),
       url('Fonts/amsterdam_signature/Amsterdam Signature.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--bg-primary);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-anim-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Rare Pug 90 Pencil Drawing Loader (Exact Uiverse / Jon Kantner Implementation) --- */
.pencil {
  display: block;
  width: 100px;
  height: 100px;
}

.pencil__body1,
.pencil__body2,
.pencil__body3,
.pencil__eraser,
.pencil__eraser-skew,
.pencil__point,
.pencil__rotate,
.pencil__stroke {
  animation-duration: 3s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.pencil__body1,
.pencil__body2,
.pencil__body3 {
  transform: rotate(-90deg);
}

.pencil__body1 {
  animation-name: pencilBody1;
}

.pencil__body2 {
  animation-name: pencilBody2;
}

.pencil__body3 {
  animation-name: pencilBody3;
}

.pencil__eraser {
  animation-name: pencilEraser;
  transform: rotate(-90deg) translate(49px, 0);
}

.pencil__eraser-skew {
  animation-name: pencilEraserSkew;
  animation-timing-function: ease-in-out;
}

.pencil__point {
  animation-name: pencilPoint;
  transform: rotate(-90deg) translate(49px, -30px);
}

.pencil__rotate {
  animation-name: pencilRotate;
}

.pencil__stroke {
  animation-name: pencilStroke;
  transform: translate(100px, 100px) rotate(-113deg);
}

/* Animations */
@keyframes pencilBody1 {
  from,
  to {
    stroke-dashoffset: 351.86;
    transform: rotate(-90deg);
  }

  50% {
    stroke-dashoffset: 150.8;
    transform: rotate(-225deg);
  }
}

@keyframes pencilBody2 {
  from,
  to {
    stroke-dashoffset: 406.84;
    transform: rotate(-90deg);
  }

  50% {
    stroke-dashoffset: 174.36;
    transform: rotate(-225deg);
  }
}

@keyframes pencilBody3 {
  from,
  to {
    stroke-dashoffset: 296.88;
    transform: rotate(-90deg);
  }

  50% {
    stroke-dashoffset: 127.23;
    transform: rotate(-225deg);
  }
}

@keyframes pencilEraser {
  from,
  to {
    transform: rotate(-45deg) translate(49px, 0);
  }

  50% {
    transform: rotate(0deg) translate(49px, 0);
  }
}

@keyframes pencilEraserSkew {
  from,
  32.5%,
  67.5%,
  to {
    transform: skewX(0);
  }

  35%,
  65% {
    transform: skewX(-4deg);
  }

  37.5%,
  62.5% {
    transform: skewX(8deg);
  }

  40%,
  45%,
  50%,
  55%,
  60% {
    transform: skewX(-15deg);
  }

  42.5%,
  47.5%,
  52.5%,
  57.5% {
    transform: skewX(15deg);
  }
}

@keyframes pencilPoint {
  from,
  to {
    transform: rotate(-90deg) translate(49px, -30px);
  }

  50% {
    transform: rotate(-225deg) translate(49px, -30px);
  }
}

@keyframes pencilRotate {
  from {
    transform: translate(100px, 100px) rotate(0);
  }

  to {
    transform: translate(100px, 100px) rotate(720deg);
  }
}

@keyframes pencilStroke {
  from {
    stroke-dashoffset: 439.82;
    transform: translate(100px, 100px) rotate(-113deg);
  }

  50% {
    stroke-dashoffset: 164.93;
    transform: translate(100px, 100px) rotate(-113deg);
  }

  75%,
  to {
    stroke-dashoffset: 439.82;
    transform: translate(100px, 100px) rotate(112deg);
  }
}

.preloader-logo {
  width: 120px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  animation: preloader-pulse 2s ease-in-out infinite;
}

.preloader-bar {
  width: 180px;
  height: 3px;
  background: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: var(--radius-md);
  transition: width 0.25s ease;
}

.preloader-percent {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.preloader-active {
  overflow: hidden;
}

@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.04); opacity: 0.75; }
}


/* ===== CSS RESET & VARIABLES ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* ====================================================================
     BRAND PALETTE — single source of truth for the site's colors.
     To re-theme the whole site, edit ONLY these 4 values; every
     background, border, and text token below derives from them.
     ==================================================================== */
  --brand-black: #0A0A09;   /* deep dark ground — the hard ink that the whole page is drawn on in dark mode */
  --brand-maroon: #FF4C24;  /* "maroon" is just this slot's historical name — now carries the portfolio accent orange */
  --brand-tan: #AAAAAA;     /* likewise: the neutral mid-tone that drives secondary/muted text */
  --brand-cream: #EFEDE8;   /* the warm ink in dark mode / the paper in light — portfolio --ink / --ground */

  /* RGB triplets kept in sync with the hex values above — required
     wherever a color needs alpha transparency, e.g. rgba(var(--accent-rgb), .2) */
  --accent-rgb: 255, 76, 36;
  --sale-red-rgb: 229, 72, 77;
  --success-rgb: 47, 107, 70;

  /* A light, theme-INVARIANT blend of cream+tan for text that sits on a
     fixed dark photo scrim (hero, category cards, CTA banner) — those
     never follow the page theme, so they can't use --text-secondary,
     which flips per theme. See the elements using it below. */
  --on-photo-secondary: color-mix(in srgb, var(--brand-cream) 70%, var(--brand-tan) 30%);

  /* Semantics follows: this base :root is LIGHT (the default, no
     attribute). The dark-mode overrides live in the [data-theme="dark"]
     block below, which wins whenever theme.js stamps that attribute.
     Components reference the semantic tokens, never the raw palette. */

  /* ===== Semantic tokens — LIGHT is the default (no attribute), so
     these live here on the base :root. Components reference these
     tokens, never the raw palette above, so a re-theme never touches
     component CSS. The [data-theme="dark"] block below redeclares them
     and wins whenever theme.js stamps the dark attribute. ===== */
  --bg-primary: var(--brand-cream);          /* portfolio --ground (#EBE9E4) */
  --bg-body: var(--bg-primary);
  --bg-primary-rgb: 235, 233, 228;
  --bg-secondary: color-mix(in srgb, var(--brand-cream) 90%, var(--brand-tan));
  --bg-card: color-mix(in srgb, var(--brand-cream) 82%, white);
  --bg-card-hover: color-mix(in srgb, var(--brand-cream) 92%, white);
  /* Light mode deepens the brand orange so text on it (white on buttons,
     badges) and text in it (labels, links on cream) meets WCAG AA:
     white 5.7:1, cream 4.9:1, secondary surface 4.6:1. Dark mode keeps
     the vivid #FF4C24 (--brand-maroon, below), which reads 6:1 on black.
     --accent-rgb stays vivid in both: it only feeds translucent glows and
     tints, which carry no text. */
  --accent: #C0320E;
  --accent-rgb: 255, 76, 36;
  --accent-hover: color-mix(in srgb, var(--accent) 85%, black);
  --on-accent: #FFFFFF;
  --text-primary: #111111;                   /* portfolio --ink */
  --text-secondary: #4a4a45;
  --text-muted: #666560;               /* ≥4.5:1 on every light surface (WCAG AA) */
  --border: rgba(17, 17, 17, 0.16);          /* hairline ink rule — the brutalist 1px borders */
  --border-light: rgba(17, 17, 17, 0.09);
  --border-color: var(--border-light); /* alias — modal/form markup references this name */
  --sale-red: #c62828;
  --sale-red-rgb: 198, 40, 40;
  --sale-bg: #d6303a;
  --success: #2f6b46;
  --success-rgb: 47, 107, 70;
  --overlay: rgba(0, 0, 0, 0.5);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  /* Display face, used only by the collections ticker and the stat figures.
     Scoped to one token so the whole treatment reverts by editing this line. */
  --font-display: 'Anton', 'Plus Jakarta Sans', system-ui, sans-serif;
  /* Typographic Scale (Neo-Grotesque) */
  --text-huge: clamp(3rem, 6vw, 4.5rem);
  --text-h1: clamp(2.2rem, 4vw, 3.2rem);
  --text-h2: clamp(1.8rem, 3vw, 2.4rem);
  --text-h3: clamp(1.4rem, 2.5vw, 1.8rem);
  --text-large: 1.15rem;
  --text-body: 1rem;
  --text-small: 0.85rem;
  --text-micro: 0.75rem;
  
  --tracking-tight: -0.03em;
  --tracking-tighter: -0.04em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-widest: 0.1em;
  

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1280px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-med: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  /* The "premium" ease-out-with-a-touch-of-overshoot curve already used
     ad-hoc (as a repeated literal) by several reveal/hover effects
     throughout this file — formalized here as the signature curve for
     every overlay's entrance/exit (modals, drawer, search) in Phase 10,
     so they all share one motion language instead of each having picked
     up a slightly different curve over time. */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Radius */
  --radius-sm: 0px;  /* brutalist sharp edges — near-zero radii keep every */
  --radius-md: 2px; /* card, button and modal crisp instead of soft-curved */
  --radius-lg: 3px;
  --radius-xl: 4px;

  /* Mockup Coordinates (assets/mockup_2.jpg, 2193x3348) - the poster's box
     within the frame photo's picture window. Re-measured: the previous
     values undersized the box (matched the frame's true top/left inner
     edge but fell short of its actual bottom/right edge), so the poster
     sat flush against the frame's top border with a large, uneven gap at
     the bottom instead of an even margin on all sides. */
  --mockup-top: 22.30%;
  --mockup-left: 25.60%;
  --mockup-width: 48.80%;
  --mockup-height: 44.00%;

  /* Ambient background-layer glow opacity (see .bg-layered below).
     Tokenized rather than hardcoded in the gradient itself because dark
     and light mode need different values for the same visual weight:
     adding a light accent onto a near-black background raises luminance
     (reads as a glow), but the same math in reverse - a darkened accent
     over cream - lowers luminance instead, which reads as a faint dirty
     patch, not a glow, at the same opacity. Light (the base) pushes these
     up; the dark block below drops them back down. */
  --glow-opacity-1: 0.18;
  --glow-opacity-2: 0.13;
}

/* ====================================================================
   DARK MODE — the historical default, now the explicit override.
   Base :root above is light (no attribute — what every fresh visit
   opens in); theme.js sets <html data-theme="dark"> when the visitor
   toggles (or has a saved dark preference), which applies this block.
   Placed AFTER the base :root so its redeclarations win in source order
   whenever the attribute is present.
   ==================================================================== */
:root[data-theme="dark"] {
  --bg-primary: var(--brand-black);
  --bg-body: var(--bg-primary);
  --bg-primary-rgb: 10, 10, 9;
  --bg-secondary: color-mix(in srgb, var(--brand-black) 92%, var(--brand-maroon));
  --bg-card: color-mix(in srgb, var(--brand-black) 86%, var(--brand-maroon));
  --bg-card-hover: color-mix(in srgb, var(--brand-black) 78%, var(--brand-maroon));
  --accent: var(--brand-maroon);
  --accent-rgb: 255, 76, 36;
  --accent-hover: color-mix(in srgb, var(--accent) 82%, white);
  --on-accent: #FFFFFF;
  --text-primary: var(--brand-cream);
  --text-secondary: color-mix(in srgb, var(--brand-cream) 70%, var(--brand-tan) 30%);
  --text-muted: color-mix(in srgb, var(--brand-cream) 38%, var(--brand-tan) 62%);
  --border: rgba(235, 233, 228, 0.16);
  --border-light: rgba(235, 233, 228, 0.09);
  --border-color: var(--border-light); /* alias — modal/form markup references this name */
  --sale-red: #e5484d;
  --sale-bg: #d6303a;
  --success: #2f6b46;
  --overlay: rgba(0, 0, 0, 0.6);
  /* Bumped DOWN from the light-mode default - see the --glow-opacity-1/2
     comment in the :root block for the luminance math. */
  --glow-opacity-1: 0.10;
  --glow-opacity-2: 0.07;
}

/* The "Brush" wordmark PNG (navbar, footer, preloader - every page uses
   the same asset) is solid white artwork on a transparent background.
   It sits against a LIGHT ground now (light is the default, no attribute),
   so it needs the invert+hue-rotate treatment wherever the ground is light —
   and only stops needing it in dark mode. Attribute selector rather than a
   class, so this covers every current usage (and any future one) without
   editing markup in each of the ~7 pages that reference this file. */
:root img[src*="Brush Text Arial.png"]:not(.hero-animated-logo),
:root img[src*="brush-logo"]:not(.hero-animated-logo) {
  filter: invert(1) hue-rotate(180deg);
}
:root[data-theme="dark"] img[src*="Brush Text Arial.png"]:not(.hero-animated-logo),
:root[data-theme="dark"] img[src*="brush-logo"]:not(.hero-animated-logo) {
  filter: none;
}

/* ==========================================================================
   LENIS SMOOTH SCROLL FOUNDATIONS
   ========================================================================== */
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;
}

html {
  /* No CSS scroll-behavior: smooth here on purpose — Lenis (scroll.js) owns
     smooth scrolling when motion is allowed; when prefers-reduced-motion is
     set, Lenis doesn't init at all and this should fall back to instant
     native scroll rather than fight Lenis for control. */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* body already declares overflow-x: hidden, but that only reliably
     becomes the viewport's own scroll behavior when html has no overflow
     of its own — with html left at the default (visible), some elements
     that overflow their container (the marquee tracks, mainly) were still
     reachable via a real ~100px horizontal scroll/swipe on phones despite
     body's rule, confirmed with window.scrollTo in a live check. Setting
     it here too removes the ambiguity instead of relying on propagation.
     `clip` rather than `hidden` (with hidden kept as the fallback for old
     browsers): hidden makes <html> a scroll container, which silently kills
     every `position: sticky` on the page — the section copy in the browse
     rows relies on it. clip hides the same overflow without that side
     effect. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Grain texture — fixed, non-interactive, sits above everything (including
   modals) since at this opacity it reads as film grain, not a visible layer.
   A static SVG turbulence tile blended with mix-blend-mode, so it's a single
   cheap composited layer rather than anything that repaints per frame. */
body::after {
  content: '';
  position: fixed;
  inset: -10vw; /* Oversize slightly so bounce-scroll on Mac doesn't reveal edges */
  z-index: 999990; /* Adjusted to sit natively below the new page-transition overlay */
  pointer-events: none;
  opacity: 0.055; /* Gently boosted for more tactile paper presence */
  mix-blend-mode: overlay;
  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.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
  background-repeat: repeat;
  /* Hardware Composite Hooks (Eliminates scroll lag on mobile iOS) */
  transform: translateZ(0); 
  will-change: transform;
}

/* ====================================================================
   AMBIENT BACKGROUND LAYERS
   Most full-bleed sections (.features-strip, .categories-section,
   .testimonials-section, .faq-section, etc.) were a single flat
   background-color and nothing else - the grain above sits on EVERY
   section already, but grain alone doesn't give a section depth, just
   texture. This adds one reusable layer for that: soft, asymmetric,
   accent-tinted radial-gradient glows behind a section's content.

   Deliberately one hue (--accent) across every use, not a different
   color per section - variety comes from position/size instead, so
   this reads as one considered lighting system across the site rather
   than a different accent color arguing for attention in every section.

   Implementation notes:
   - Lives on ::before, not the section itself, so it never has to touch
     background-color (still owned by whichever section applies this).
   - z-index: -1 + isolation: isolate on the section: the glow stays
     behind that section's own content without needing to bump every
     child's z-index to compensate (no existing markup changes needed
     wherever this class gets added).
   - Plain radial-gradient, no filter: blur - the soft falloff is baked
     into the gradient stops, so this is one cheap composited paint, not
     a per-frame blur repaint.
   - --glow-pos-1/2 let each section place its two glows without
     redeclaring the whole background; sections that don't override them
     get the default top-left / bottom-right placement below. */
.bg-layered {
  position: relative;
  isolation: isolate;
}

.bg-layered::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  --glow-pos-1: 15% 20%;
  --glow-pos-2: 85% 80%;
  background:
    radial-gradient(600px circle at var(--glow-pos-1), rgba(var(--accent-rgb), var(--glow-opacity-1)), transparent 60%),
    radial-gradient(520px circle at var(--glow-pos-2), rgba(var(--accent-rgb), var(--glow-opacity-2)), transparent 55%);
}

/* Same system, viewport-fixed variant for long, section-less scrolling
   pages (All Products' 170-item list, checkout's form) where there's no
   natural per-section boundary to hang .bg-layered off of. One ambient
   pair of glows anchored to the viewport instead of the page, so it
   stays put as a soft frame around the edges while content scrolls past
   underneath - same technique the sitewide grain layer already uses
   (position: fixed), so this is proven cheap on these exact pages. */
body.page-layered {
  isolation: isolate;
}

body.page-layered::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(700px circle at 6% 10%, rgba(var(--accent-rgb), calc(var(--glow-opacity-1) * 0.75)), transparent 55%),
    radial-gradient(600px circle at 96% 90%, rgba(var(--accent-rgb), calc(var(--glow-opacity-2) * 0.7)), transparent 50%);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

/* Orphan control: keeps headings from leaving a single word stranded on
   the last line. Unsupported browsers just ignore the property, so this
   is a pure enhancement. Component-specific heading classes below set
   their own text-wrap where they need something more specific (pretty
   for body copy); this is just the site-wide floor for h1-h3. */
h1, h2, h3 {
  text-wrap: balance;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  transition: transform 0.15s ease;
}

button, [role="button"] {
  touch-action: manipulation;
}

/* Press feedback — no button anywhere had a :active state, so every click
   landed with zero physical acknowledgement. A scale-down on press reads
   as "the click registered" the way a hover-only button never can. Buttons
   that already animate a magnet pull (see micro-interactions.js) get their
   own rule below so pressing them doesn't blow away the --magnet-x/-y
   translate this scale would otherwise replace. */
button:active {
  transform: scale(0.97);
}

.hero-cta:active,
.modal-add-to-cart:active,
.cart-checkout-btn:active {
  transform: translate(var(--magnet-x, 0px), var(--magnet-y, 0px)) scale(0.96);
}


/* ===== FORM CONTROLS — brand-styled checkbox/radio/select baseline =====
   Unscoped element selectors, so anywhere a plain <input type="checkbox">,
   <input type="radio">, or <select> shows up without its own bespoke
   styling (filter sidebars, review forms, checkout address fields), it
   still gets the accent-colored, dark-surface treatment instead of the OS
   default control — those default controls are the one place native chrome
   was still leaking through an otherwise fully custom-styled site. More
   specific rules (e.g. .payment-option input[type="radio"]) still win on
   the properties they redeclare; this only fills the gap. */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid var(--border-light);
  background: var(--bg-card);
  cursor: pointer;
  position: relative;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

input[type="checkbox"] {
  border-radius: var(--radius-md);
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
  border-color: var(--accent);
}

input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: var(--accent);
}

input[type="radio"]:checked {
  border-color: var(--accent);
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Ring + dot (not a solid fill) so this matches the checkout payment-option
   radio style already shipped elsewhere — one radio convention site-wide. */
input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 2.2rem 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23968f85' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  transition: border-color var(--transition-fast);
}

select:hover {
  border-color: var(--border-light);
}

/* Accessible focus ring — a border-color swap alone (as several forms had)
   isn't enough contrast for keyboard users; this adds a visible ring on
   every focusable control site-wide without disturbing the box model. */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}


/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1001;
  overflow: hidden;
}

/* The track carries two identical groups and travels exactly half its own
   width, so the second group lands where the first started and the loop has
   no seam — whatever the copy length. */
.ticker {
  display: flex;
  width: 100%;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-roll var(--ticker-duration, 42s) linear infinite;
}

.ticker-group {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ticker-item {
  padding-inline: 14px;
}

.ticker-sep {
  opacity: 0.55;
  font-size: 0.85em;
}

@keyframes ticker-roll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Holding the pointer still, or tabbing to the link, stops the line — without
   this the link inside a moving strip is impossible to hit. */
.announcement-bar:hover .ticker-track,
.announcement-bar:focus-within .ticker-track {
  animation-play-state: paused;
}

.announcement-bar a {
  color: var(--on-accent);
  text-decoration: underline;
  font-weight: 700;
}

.announcement-bar a:hover {
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker { overflow-x: auto; }
  .ticker-group + .ticker-group { display: none; }
}


/* ===== NAVBAR ===== */
/* Custom-element host is display:inline by default, which would collapse
   around the fixed pill and break first-paint layout on inner pages. */
global-navbar {
  display: contents;
}

.navbar {
  position: fixed;
  top: var(--nav-top, 16px);          /* floating gap; navbar-scroll.js tucks it under the announcement bar at page top */
  left: 0;
  right: 0;
  margin-inline: auto;
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  isolation: isolate;
  border-radius: 999px; /* Pill shape */
  transition: box-shadow var(--transition-med);
}

/* The frosted pill lives on a pseudo-element: backdrop-filter / transform on
   .navbar itself would become the containing block for the position:fixed
   mobile menu sheet and trap it inside the 60px pill. */
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: color-mix(in srgb, var(--bg-primary) 78%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  transition: background var(--transition-med);
}

.navbar.scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.navbar.scrolled::before {
  background: color-mix(in srgb, var(--bg-primary) 92%, transparent);
}

.announcement-bar.nav-hidden {
  transform: translateY(-100%);
}
.navbar.nav-hidden {
  transform: translateY(var(--nav-hidden-offset, -100%));
}

/* Always fixed at the true top of the viewport, independent of the navbar's
   own position/hide state — z-index above the navbar so it stays visible
   as a reading-progress cue even while the navbar itself is hidden. */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  height: 3px;
  background: var(--accent);
  z-index: 1001;
  pointer-events: none;
}

/* Tied to the document's own scroll position, so the browser advances it on the
   compositor and navbar-scroll.js stops touching it entirely. */
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: scroll-progress-grow linear both;
    animation-timeline: scroll(root block);
  }
}

@keyframes scroll-progress-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0; /* 48px tap target around the 32px logo */
  flex-shrink: 0;
  min-width: max-content;
}

.nav-brand img {
  height: 32px;
  width: auto;
  aspect-ratio: 360 / 93;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  position: relative;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  letter-spacing: -0.01em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-med);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-drawer-orders {
  display: none !important;
}

@media (max-width: 1024px) {
  .nav-links .nav-drawer-orders {
    display: flex !important;
    align-items: center;
    gap: 10px;
  }
}

/* Skip link — off-screen until focused by keyboard, then pinned top-left
   above the navbar. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: var(--text-small);
  border-radius: var(--radius-md);
  transform: translateY(-200%);
  transition: transform var(--transition-fast);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

main:focus {
  outline: none;
}

/* Current page — same underline as hover, held on, so visitors always
   know where they are (global-navbar.js stamps aria-current). */
.nav-links a[aria-current="page"],
.nav-dd-toggle.is-current {
  color: var(--text-primary);
}

.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-action-btn {
  color: var(--text-secondary);
  font-size: 1.15rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav-action-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

/* Landing pop when the fly-to-cart clone (see .fly-to-cart-clone below)
   arrives — triggered by adding/removing this class in script.js. */
@keyframes cartIconPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.25); }
  65% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.nav-action-btn.cart-pop {
  animation: cartIconPop 0.4s ease;
}

/* ===== FLY TO CART (Phase 12 micro-interaction) =====
   A cloned poster image, created and animated entirely from script.js
   (flyToCart()): appended at the source image's exact on-screen rect,
   then given a transform/opacity transition toward the cart icon on the
   very next frame. Scaling is done via transform, not by animating
   width/height, so it shrinks around its own center instead of collapsing
   toward a corner. */
.fly-to-cart-clone {
  position: fixed;
  margin: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.7s cubic-bezier(0.55, 0, 0.85, 0.35), opacity 0.7s ease-in;
  will-change: transform, opacity;
}

/* Theme toggle — a .nav-action-btn with a sun/moon pair; CSS shows
   whichever icon matches the *current* mode, JS just flips the attribute. */
.theme-toggle-icon-light {
  display: none;
}

:root[data-theme="dark"] .theme-toggle-icon-light {
  display: inline-block;
}

:root[data-theme="dark"] .theme-toggle-icon-dark {
  display: none;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.6rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-count.is-popping {
  will-change: transform;
  animation: cartOdometerBounce 0.45s var(--ease-spring-bounce) forwards;
}

@keyframes cartOdometerBounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.48) translateY(-3px); }
  65% { transform: scale(0.9) translateY(1px); }
  100% { transform: scale(1) translateY(0); }
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  position: relative;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition-med), opacity var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ===== HERO SECTION ===== */
/* Postro / Sticker Wall Style with Brush Brand DNA */
.hero--sticker-wall {
  position: relative;
  width: 100%;
  min-height: min(780px, calc(100svh - 40px));
  min-height: min(780px, calc(100vh - 40px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(90px, 10vh, 116px) 0 clamp(24px, 4vh, 44px);
  background-color: var(--bg-primary, #fbf9f5);
  overflow: hidden;
  box-sizing: border-box;
  isolation: isolate;
}

/* --- Animated Grid Background with Section Glow Gradients --- */
.hero-animated-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  --glow-pos-1: 85% 15%;
  --glow-pos-2: 15% 85%;
  background:
    radial-gradient(750px circle at var(--glow-pos-1), rgba(var(--accent-rgb, 255, 76, 36), var(--glow-opacity-1, 0.18)), transparent 65%),
    radial-gradient(650px circle at var(--glow-pos-2), rgba(var(--accent-rgb, 255, 76, 36), var(--glow-opacity-2, 0.13)), transparent 60%);
}

.grid-drift-lines {
  position: absolute;
  inset: -60px;
  background-size: 46px 46px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.08) 1.2px, transparent 1.2px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 1.2px, transparent 1.2px);
  animation: heroGridDrift 22s linear infinite;
}

html[data-theme="dark"] .grid-drift-lines {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1.2px, transparent 1.2px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1.2px, transparent 1.2px);
}

@keyframes heroGridDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(46px, 46px, 0);
  }
}

.grid-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
  animation: heroOrbFloat 14s ease-in-out infinite alternate;
}

.grid-glow-orange {
  width: 520px;
  height: 520px;
  top: 5%;
  right: 12%;
  background: radial-gradient(circle, rgba(255, 76, 36, 0.22) 0%, rgba(255, 76, 36, 0.04) 45%, transparent 70%);
  animation-duration: 11s;
}

.grid-glow-warm {
  width: 440px;
  height: 440px;
  bottom: 5%;
  left: 8%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.16) 0%, rgba(250, 204, 21, 0.03) 50%, transparent 70%);
  animation-duration: 15s;
}

@keyframes heroOrbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(35px, -25px, 0) scale(1.1); }
  100% { transform: translate3d(-25px, 30px, 0) scale(0.95); }
}

.grid-vignette-fade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 45%, var(--bg-primary, #fbf9f5) 90%);
  pointer-events: none;
}

html[data-theme="dark"] .grid-vignette-fade {
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, var(--bg-primary, #0c0c10) 90%);
}

html[data-theme="dark"] .hero--sticker-wall {
  background-color: var(--bg-primary, #0c0c10);
}

.hero--sticker-wall .hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  align-items: center;
  gap: 40px;
}

/* --- Left Column: Copy & CTAs --- */
.hero-copy-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  z-index: 3;
}

.hero-headline {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: none;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-row-solid {
  color: var(--text-primary, #0f172a);
}

.hero-row-highlight {
  display: inline-block;
  margin: 2px 0;
  position: relative;
  padding: 4px 0;
}

.hero-sticker-badge {
  display: inline-block;
  background: var(--accent, #ff4c24) !important;
  color: #ffffff !important;
  padding: 4px 18px 6px;
  border: 3px solid #000000;
  border-radius: 6px;
  transform: rotate(-1.5deg);
  box-shadow: 4px 5px 0px #000000;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  pointer-events: auto;
}

/* Parent containment ensures hover does not jitter/jump at boundary */
.hero-row-highlight:hover .hero-sticker-badge,
.hero-sticker-badge:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-row-stroked {
  color: transparent !important;
  -webkit-text-stroke: 2.5px var(--text-primary, #0f172a);
  letter-spacing: -0.02em;
}

.hero-lead-text {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.55;
  color: var(--text-secondary, #475569);
  max-width: 500px;
  margin: 0 0 28px 0;
}

html[data-theme="dark"] .hero-lead-text {
  color: #94a3b8;
}

.hero-actions-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.hero-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-btn-black {
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.hero-btn-black:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color: #ffffff;
}

html[data-theme="dark"] .hero-btn-black {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

html[data-theme="dark"] .hero-btn-black:hover {
  background: #f1f5f9;
  color: #000000;
}

.hero-arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.hero-btn-black:hover .hero-arrow-icon {
  transform: translateX(4px);
}

.hero-btn-accent {
  background: var(--brand-maroon, #ff4c24);
  color: #ffffff;
  border: 2px solid #000000;
  box-shadow: 3px 4px 0px #000000;
}

.hero-btn-accent:hover {
  background: #e03e18;
  transform: translate(-2px, -2px);
  box-shadow: 5px 6px 0px #000000;
  color: #ffffff;
}

html[data-theme="dark"] .hero-btn-accent {
  background: var(--brand-maroon, #ff4c24);
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 3px 4px 0px #ffffff;
}

html[data-theme="dark"] .hero-btn-accent:hover {
  background: #e03e18;
  transform: translate(-2px, -2px);
  box-shadow: 5px 6px 0px #ffffff;
  color: #ffffff;
}

.hero-stats-band {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  flex-wrap: wrap;
}

.hero-stat-block {
  display: flex;
  flex-direction: column;
}

.hero-stat-block .stat-number {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.9rem, 2.5vw, 2.5rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--text-primary, #0f172a);
}

.hero-stat-block .stat-label {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-secondary, #64748b);
  margin-top: 6px;
  text-transform: uppercase;
}

.hero-stat-divider {
  width: 1.5px;
  height: 42px;
  background: var(--border, rgba(0, 0, 0, 0.15));
}

/* --- Right Column: Layered Poster Wall Collage --- */
.hero-collage-col {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.collage-stage {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 560px;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

/* Tape Strips */
.masking-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 74px;
  height: 22px;
  background: rgba(253, 224, 71, 0.94);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  border-radius: 1px;
  z-index: 6;
  pointer-events: none;
}

.masking-tape::before,
.masking-tape::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: radial-gradient(circle, transparent 2px, rgba(0,0,0,0.06) 2px);
}

/* Base Poster Card - Rock solid single hover in/out, zero vibration/shaking */
.collage-poster {
  position: absolute;
  background: #ffffff;
  padding: 8px 8px 24px 8px;
  border: 2px solid #000000;
  border-radius: 3px;
  box-shadow: 8px 14px 32px rgba(0, 0, 0, 0.22);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, z-index 0.28s ease;
  cursor: pointer;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, box-shadow;
}

.collage-poster .poster-card-inner {
  display: block;
  overflow: hidden;
  background: #111;
  line-height: 0;
  pointer-events: auto;
}

.collage-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Single smooth hover in/out without altering rotation angle so boundary never shifts under mouse */
.collage-poster:hover {
  transform: translateY(-10px) scale(1.04) rotate(var(--rot, 0deg)) !important;
  z-index: 15 !important;
  box-shadow: 14px 28px 46px rgba(0, 0, 0, 0.32);
}

/* Specific Poster Positions in Collage */
.collage-poster.poster-1 {
  width: 215px;
  top: 15px;
  left: 10px;
  --rot: -4.5deg;
  z-index: 2;
}

.collage-poster.poster-2 {
  width: 200px;
  top: -5px;
  left: 235px;
  --rot: 3deg;
  z-index: 3;
}

.collage-poster.poster-3 {
  width: 180px;
  top: 30px;
  right: 0px;
  --rot: 6.5deg;
  z-index: 1;
}

.collage-poster.poster-4 {
  width: 230px;
  top: 195px;
  left: 95px;
  --rot: -2.5deg;
  z-index: 5;
}

.collage-poster.poster-5 {
  width: 210px;
  top: 185px;
  right: 25px;
  --rot: 4deg;
  z-index: 4;
}

/* Pinned Die-Cut Stickers with shape-aware white die-cut contour */
.collage-sticker {
  position: absolute;
  pointer-events: auto;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: grab;
}

.collage-sticker:hover {
  transform: scale(1.15) rotate(5deg) !important;
}

.collage-sticker img {
  display: block;
  width: 100%;
  height: auto;
}

/* Shape-aware die-line cut vinyl sticker contour */
.collage-sticker.die-cut-sticker img {
  filter:
    drop-shadow(3px 0 0 #ffffff)
    drop-shadow(-3px 0 0 #ffffff)
    drop-shadow(0 3px 0 #ffffff)
    drop-shadow(0 -3px 0 #ffffff)
    drop-shadow(2px 2px 0 #ffffff)
    drop-shadow(-2px -2px 0 #ffffff)
    drop-shadow(2px -2px 0 #ffffff)
    drop-shadow(-2px 2px 0 #ffffff)
    drop-shadow(4px 8px 14px rgba(0, 0, 0, 0.28));
}

.collage-sticker.sticker-great-job,
.collage-sticker.sticker-oggy,
.collage-sticker.sticker-snorlax {
  width: 96px;
  top: 362px;
  left: 20px;
  transform: rotate(-8deg);
  z-index: 7;
}

.collage-sticker.sticker-good-job,
.collage-sticker.sticker-shinchan,
.collage-sticker.sticker-stitch {
  width: 88px;
  top: 154px;
  left: 212px;
  transform: rotate(7deg);
  z-index: 7;
}

/* Yellow Sticky Note: "WALLS THAT INSPIRE" */
.collage-sticky-note {
  position: absolute;
  width: 104px;
  min-height: 104px;
  top: 345px;
  right: 15px;
  background: #fef08a;
  color: #111116;
  border: 1px solid #facc15;
  box-shadow: 4px 6px 14px rgba(0, 0, 0, 0.16);
  transform: rotate(6deg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  z-index: 8;
  padding: 14px 6px 8px 6px;
  border-radius: 2px;
  box-sizing: border-box;
  word-break: break-word;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.collage-sticky-note:hover {
  transform: rotate(0deg) scale(1.1);
}

.sticky-pin {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #ff4c24);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Brand Accent Starburst Badge - Generously sized with ample text clearance & dead-center alignment */
.collage-starburst {
  position: absolute;
  width: 124px;
  height: 124px;
  top: 422px;
  right: 18px;
  transform: rotate(-6deg);
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.collage-starburst:hover {
  transform: rotate(0deg) scale(1.08);
}

.starburst-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.starburst-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  padding-top: 1px;
}

.starburst-text span {
  display: block;
  text-align: center;
}

/* Main Character Ticket Badge - Brand Dark & Orange */
.collage-ticket {
  position: absolute;
  width: 88px;
  top: 428px;
  left: 268px;
  background: #111116;
  border: 2px solid var(--accent, #ff4c24);
  border-radius: 5px;
  padding: 5px 6px;
  text-align: center;
  transform: rotate(10deg);
  box-shadow: 3px 4px 0px var(--accent, #ff4c24);
  z-index: 8;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.collage-ticket:hover {
  transform: rotate(0deg) scale(1.1);
}

.collage-ticket .ticket-header {
  font-size: 0.85rem;
  margin-bottom: 2px;
  color: var(--accent, #ff4c24);
}

/* --- Responsive Adaptations --- */
@media (max-width: 1100px) {
  .hero--sticker-wall .hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-copy-col {
    align-items: center;
    text-align: center;
  }
  .hero-lead-text {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions-group {
    justify-content: center;
  }
  .hero-stats-band {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero--sticker-wall {
    padding: 76px 0 18px;
    min-height: calc(100svh - 56px);
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero--sticker-wall .hero-container {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 16px;
  }
  .hero-copy-col {
    align-items: center;
    text-align: center;
  }
  .hero-headline {
    font-size: clamp(1.75rem, 7.2vw, 2.25rem);
    line-height: 1.1;
    margin: 0 0 6px 0;
    gap: 3px;
  }
  .hero-sticker-badge {
    padding: 2px 10px 3px;
    border-width: 2px;
    box-shadow: 2.5px 2.5px 0 #000;
    border-radius: 5px;
  }
  .hero-lead-text {
    font-size: 0.84rem;
    line-height: 1.35;
    max-width: 310px;
    margin: 0 auto 10px auto;
  }
  .hero-actions-group {
    width: 100%;
    max-width: 330px;
    margin: 0 auto 10px auto;
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
  }
  .hero-btn-pill {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
  }
  .hero-stats-band {
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
  }
  .hero-stat-block .stat-number {
    font-size: 1.15rem;
  }
  .hero-stat-block .stat-label {
    font-size: 0.62rem;
    margin-top: 1px;
  }
  .hero-stat-divider {
    height: 20px;
  }
  .hero-collage-col {
    margin: 2px auto 0;
    max-width: 320px;
  }
  .collage-stage {
    height: 195px;
    max-width: 310px;
    transform: none;
    margin: 0 auto;
  }
  /* Fan out top 3 hero prints cleanly on mobile */
  .collage-poster.poster-1 {
    width: 118px;
    top: 14px;
    left: 12px;
    --rot: -7deg;
    z-index: 2;
  }
  .collage-poster.poster-2 {
    width: 128px;
    top: 2px;
    left: 92px;
    --rot: 0deg;
    z-index: 4;
  }
  .collage-poster.poster-4 {
    width: 118px;
    top: 16px;
    left: auto;
    right: 12px;
    --rot: 7deg;
    z-index: 2;
  }
  .collage-poster.poster-3,
  .collage-poster.poster-5 {
    display: none !important;
  }
  .collage-sticker,
  .collage-sticky-note,
  .collage-starburst,
  .collage-ticket {
    display: none !important;
  }
}

/* Legacy .hero styles kept for fallback */
.hero {
  position: relative;
  width: 100%;
  min-height: max(600px, 100vh);
  min-height: max(600px, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 150px 0 12vh;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-slide.active img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  width: 90%;
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  background: rgba(var(--accent-rgb), 0.15);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--brand-cream); /* sits on the hero photo's fixed dark scrim, not the page bg — stays light in both themes */
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-huge);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: var(--tracking-tighter);
  color: var(--brand-cream); 
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--on-photo-secondary); /* same reasoning as .hero-title */
  margin-bottom: 32px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transform: translate(var(--magnet-x, 0px), var(--magnet-y, 0px));
  transition: transform var(--transition-med), box-shadow var(--transition-med), background var(--transition-fast);
}

.hero-cta:hover {
  transform: translate(var(--magnet-x, 0px), calc(var(--magnet-y, 0px) - 2px));
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.3);
  background: var(--accent-hover);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.hero-trust-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--brand-cream); /* hero photo's fixed dark scrim, not the page bg — stays light in both themes */
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 7px 16px;
  border-radius: 50px;
}

/* Hero pagination dots */
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 14px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

/* 10px dot, 24px tap target (WCAG 2.5.8) via a transparent ring. */
.hero-dot {
  position: relative;
}

.hero-dot::after {
  content: '';
  position: absolute;
  inset: -7px;
}

.hero-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Staggered on-load entrance — above the fold, so this plays automatically
   on load rather than waiting for the .fade-in scroll-observer. Scoped to
   .hero-content specifically because .hero-cta is reused by non-hero
   buttons elsewhere on the page that must NOT replay this entrance.
   The entrance animation targets .hero-cta-reveal (a plain inline-block
   wrapper around .hero-cta), not .hero-cta itself: animation-fill-mode:both
   holds its keyframe's `transform` forever at the CSS Animation cascade
   layer, which outranks normal rules regardless of specificity — including
   :hover — so animating .hero-cta directly would permanently pin its
   transform to translateY(0) and silently swallow the magnetic-pull effect
   from micro-interactions.js. Keeping the two concerns on separate elements
   leaves .hero-cta's own transform free for hover/magnet use. */
.hero-content .hero-tag { animation: fadeInUp 0.7s ease both; animation-delay: 0.1s; }
.hero-content .hero-title { animation: fadeInUp 0.7s ease both; animation-delay: 0.3s; }
.hero-content .hero-cta-reveal { display: inline-block; animation: fadeInUp 0.7s ease both; animation-delay: 0.5s; }
.hero-content .hero-trust-badges { animation: fadeInUp 0.7s ease both; animation-delay: 0.7s; }

/* Scroll cue — bounces to hint "more below", fades out via JS once the
   visitor actually scrolls (see script.js's hero parallax block). */
.scroll-cue {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-cue-mouse {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid color-mix(in srgb, var(--brand-cream) 65%, transparent);
  border-radius: 14px;
  position: relative;
}

.scroll-cue-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  background: var(--brand-cream);
  border-radius: 50%;
  animation: scrollCueBounce 1.6s ease-in-out infinite;
}

@keyframes scrollCueBounce {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0; }
  61% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}


/* ===== MARQUEE / SCROLLING TICKER ===== */
/* ===== DISPLAY TICKER (collections) =====
   One band of oversized names that scrolls past and links straight into the
   filtered catalogue. Three things keep it cheap: the track animates nothing
   but `transform`, so it is composited and never touches layout; the fade at
   both edges is a `mask-image` on the section rather than a pair of gradient
   overlays; and hovering dims the band through one inherited custom property
   instead of a rule per item. */
.display-ticker {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  /* Vignette: the strip dissolves into the page instead of being cut off at
     the viewport edge, so the loop has no visible seam. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}

.display-ticker-track {
  display: flex;
  width: max-content;
  animation: display-ticker-roll var(--display-ticker-duration, 48s) linear infinite;
  will-change: transform;
}

.display-ticker-group {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

@keyframes display-ticker-roll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.display-ticker-item {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 0.22em;
  flex-shrink: 0;
  /* Outlined by default so the band reads as texture, not as a wall of ink;
     the one being pointed at fills in. */
  color: transparent;
  -webkit-text-stroke: 1.4px var(--text-primary);
  opacity: var(--ticker-dim, 1);
  transition: color var(--transition-fast), -webkit-text-stroke-color var(--transition-fast), opacity var(--transition-fast);
}

.display-ticker-sep {
  font-size: clamp(0.9rem, 1.6vw, 1.4rem);
  color: var(--accent);
  padding: 0 0.3em;
  flex-shrink: 0;
  opacity: var(--ticker-dim, 1);
  transition: opacity var(--transition-fast);
}

/* Pointing anywhere in the band dims the whole thing, and the item under the
   cursor comes back to full strength and fills with ink. One variable does
   the dimming for every child. */
.display-ticker:hover,
.display-ticker:focus-within {
  --ticker-dim: 0.28;
}

.display-ticker-item:hover,
.display-ticker-item:focus-visible {
  --ticker-dim: 1;
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
  outline: none;
}

@media (hover: none) {
  /* No pointer to follow, so the outline-only treatment would just look faint. */
  .display-ticker-item {
    color: var(--text-primary);
    -webkit-text-stroke-width: 0;
  }
  .display-ticker:hover { --ticker-dim: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .display-ticker-track { animation: none; }
  .display-ticker { overflow-x: auto; }
  .display-ticker-group + .display-ticker-group { display: none; }
}

/* ===== FEATURES STRIP ===== */
.features-strip {
  padding: 50px 0;
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-med), transform var(--transition-med), background var(--transition-med);
}

.feature-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  background: var(--bg-card);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--accent);
  font-size: 1.3rem;
  transition: background var(--transition-med), border-color var(--transition-med);
}

.feature-item:hover .feature-icon {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* The figure is the thing the eye lands on, so it carries the weight and the
   heading drops to a label underneath it. Same heading face, same ink — only
   the scale changes. */
.feature-item .feature-figure {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 6px;
  font-variant-numeric: tabular-nums;
}

.feature-item .feature-figure-unit {
  font-size: 0.34em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: 4px;
  vertical-align: 0.9em;
}

.feature-item h3,
.feature-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}


/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
}

.section-subtitle {
  font-size: var(--text-large);
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
  letter-spacing: var(--tracking-normal);
}

/* ===== PAGE HEADER (inner pages) =====
   One intro band for every secondary page (About, Policies, B2B, Style
   Options...) — they each used to carry their own copy with drifting
   padding, font and size. Reuses .section-tag / heading scale tokens so
   an inner page reads as part of the same system as the homepage. */
.page-header {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 140px 24px 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(520px circle at 50% 0%, rgba(var(--accent-rgb), calc(var(--glow-opacity-2) * 0.8)), transparent 60%);
}

.page-header .container {
  padding: 0;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  margin-bottom: 14px;
  text-wrap: balance;
}

.page-header p {
  color: var(--text-secondary);
  font-size: var(--text-large);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  text-wrap: pretty;
}

.page-header p + .hero-cta,
.page-header p + div {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .page-header {
    padding: 112px 20px 44px;
  }
}

/* ===== SECONDARY BUTTON =====
   Outline companion to .hero-cta — same height, weight and radius so a
   primary/secondary pair lines up wherever they sit side by side. */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 27px; /* hero-cta's 12px/28px minus the 1px border */
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
}

/* Touch-target floor: both CTA and ghost buttons must be tappable
   at ≥ 44px height on mobile. min-height keeps padding flexible
   while guaranteeing the minimum WCAG 2.5.5 touch area. */
.hero-cta, .btn-ghost {
  min-height: 44px;
}

/* Animated Logo — Infinite Blur Pulse */
.hero-logo-container {
  margin: 0 0 1.1rem 0;
  display: block;
  line-height: 0;
  position: relative;
}

/* Soft animated glow behind the wordmark — a local z-index of 0 vs. the
   logo's 1 keeps this confined to the container's own stacking, so it can
   never leak behind .hero-overlay (no negative z-index needed). */
.hero-logo-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.55) 0%, rgba(var(--accent-rgb), 0) 70%);
  filter: blur(30px);
  z-index: 0;
  animation: logoGlowPulse 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes logoGlowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-animated-logo {
  display: inline-block;
  position: relative;
  z-index: 1;
  height: clamp(56px, 8vw, 92px);
  width: auto;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
  animation: fadeInUp 0.7s ease both;
}


/* The preloader can take anywhere from ~200ms to a few seconds depending on
   image/font load time. Keep these paused while it's on screen so the
   counter's entrance always plays where the user can see it, and the logo's
   loop always starts fresh from a clean frame instead of mid-cycle. Same
   reasoning extends to every other hero entrance animation added since. */
body.preloader-active .hero-animated-logo,
body.preloader-active .hero-logo-container::before,
body.preloader-active .hero-counter,
body.preloader-active .hero-content .hero-tag,
body.preloader-active .hero-content .hero-title,
body.preloader-active .hero-content .hero-cta-reveal,
body.preloader-active .hero-content .hero-trust-badges {
  animation-play-state: paused;
}

/* Dynamic Counter */
.hero-counter {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-cream); /* hero photo's fixed dark scrim, not the page bg — stays light in both themes */
  background: rgba(255,255,255,0.05);
  padding: 7px 16px;
  border-radius: 50px;
  display: table;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.7s ease both;
  animation-delay: 1.1s;
}

.hero-counter span {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== PRODUCT GRID ===== */
.products-section {
  padding: var(--section-padding);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med);
  position: relative;
  touch-action: pan-x pan-y;
}

/* Stabilize card boundary hover to prevent jumping when elevating */
@media (hover: hover) {
  .product-card::after,
  .store-card::after,
  .wall-setup-card::after {
    content: '';
    position: absolute;
    inset: -8px 0 -8px 0;
    pointer-events: auto;
    z-index: -1;
  }
}

@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-light);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(var(--accent-rgb), 0.15);
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.product-card-image, .plain-product-image, .mockup-wrapper, .store-card-media, .col-card-thumb, .product-gallery-main {
  background-color: var(--bg-secondary);
}

.shimmer-skeleton, .mockup-frame, .mockup-poster, .mockup-hover, .plain-product-image, .ag-slide img, .product-gallery-main img {
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

.mockup-frame.loaded, .mockup-poster.loaded, .mockup-hover.loaded, .plain-product-image.loaded, .modal-plain-image.loaded, .ag-slide img.loaded, .product-gallery-main img.loaded {
  opacity: 1 !important;
}

/* Add shimmer effect to product image wrappers before images paint */
.mockup-wrapper::before,
.product-card-image::before,
.store-card-media::before,
.col-card-thumb::before,
.modal-plain-image-wrapper::before,
.search-product-thumb::before,
.product-gallery-main::before,
.poster-card-inner::before,
.ag-stage::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  animation: shimmer 1.5s infinite;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

:root[data-theme="dark"] .mockup-wrapper::before,
:root[data-theme="dark"] .product-card-image::before,
:root[data-theme="dark"] .store-card-media::before,
:root[data-theme="dark"] .col-card-thumb::before,
:root[data-theme="dark"] .modal-plain-image-wrapper::before,
:root[data-theme="dark"] .search-product-thumb::before,
:root[data-theme="dark"] .product-gallery-main::before,
:root[data-theme="dark"] .poster-card-inner::before,
:root[data-theme="dark"] .ag-stage::before {
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Stop and fade out shimmer once image is loaded */
.mockup-wrapper:has(img.loaded)::before,
.product-card-image:has(img.loaded)::before,
.store-card-media:has(img.loaded)::before,
.col-card-thumb:has(img.loaded)::before,
.search-product-thumb:has(img.loaded)::before,
.product-gallery-main:has(img.loaded)::before,
.poster-card-inner:has(img.loaded)::before,
.modal-plain-image-wrapper:has(img.loaded)::before,
.ag-stage:has(.ag-slide.is-active img.loaded)::before,
.mockup-wrapper.is-loaded::before,
.product-card-image.is-loaded::before,
.store-card-media.is-loaded::before,
.col-card-thumb.is-loaded::before,
.product-gallery-main.is-loaded::before,
.modal-plain-image-wrapper.is-loaded::before,
.ag-stage.is-loaded::before {
  opacity: 0;
  animation: none;
}

/* ===== TOP PAGE LOADER ===== */
.brush-page-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--accent, #ff4c24), #ff8a65 50%, var(--accent, #ff4c24) 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(255, 76, 36, 0.8), 0 0 4px rgba(255, 76, 36, 0.9);
  z-index: 100002;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.25s ease;
  opacity: 0;
}
.brush-page-loader.is-loading {
  opacity: 1;
}
.brush-page-loader.is-done {
  opacity: 0;
}

/* ===== MODAL MEDIA SKELETON & PRELOADER ===== */
.modal-media-skeleton {
  width: 100%;
  height: 100%;
  min-height: 480px;
  position: relative;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
}
.modal-media-skeleton::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  animation: shimmer 1.5s infinite;
  z-index: 1;
  pointer-events: none;
}
:root[data-theme="dark"] .modal-media-skeleton::before {
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}
.modal-skeleton-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 2;
}
.modal-spinner-ring {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: modalSpin 0.75s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
:root[data-theme="dark"] .modal-spinner-ring {
  border-color: rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
}
.modal-spinner-text {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
}
@keyframes modalSpin {
  to { transform: rotate(360deg); }
}

.product-card-image {
  position: relative;
  aspect-ratio: 2193 / 3348;
  overflow: hidden;
  background: var(--bg-secondary);
  touch-action: pan-x pan-y;
}

/* Mockup Layout */
.mockup-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2193 / 3348; /* matches assets/mockup_2.jpg exactly so the frame is never cropped/zoomed */
  overflow: hidden;
  transition: transform var(--transition-slow);
  touch-action: pan-x pan-y;
}

/* Scoped to .product-card specifically — .mockup-wrapper is shared markup
   with .category-card, which has its own (unrelated) cursor-tilt hover. */
@media (hover: hover) {
  .product-card:hover .mockup-wrapper {
    transform: scale(1.05);
  }
}

.mockup-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.mockup-poster {
  position: absolute;
  top: var(--mockup-top);
  left: var(--mockup-left);
  width: var(--mockup-width);
  height: var(--mockup-height);
  object-fit: cover;
  z-index: 2;
  transition: opacity var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.mockup-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  z-index: 3;
  opacity: 0;
  transition: opacity var(--transition-med);
}

@media (hover: hover) {
  .mockup-wrapper:hover .mockup-hover {
    opacity: 1;
  }
}

.mockup-wrapper:hover .mockup-poster {
  opacity: 0;
}

/* Plain product photo for non-poster types (plate, wallpaper) — no
   picture-frame mockup, since that would misrepresent the product. */
.plain-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

/* Spacejoy Wall Single Framed Poster Mockup on Card Hover */
.product-card-hover-mockup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 2;
  will-change: opacity, transform;
}

/* Metal product cards reveal the unframed source artwork on hover. */
.product-card-hover-mockup.metal-artwork-hover {
  object-fit: contain;
  transform: scale(1);
  background: var(--bg-card);
}

@media (hover: hover) {
  .product-card:hover .product-card-hover-mockup,
  .store-card:hover .product-card-hover-mockup,
  .col-card:hover .product-card-hover-mockup {
    opacity: 1;
    transform: scale(1.0);
  }
  .product-card:not(.is-split-card):hover .plain-product-image,
  .store-card:not(.is-split-card):hover .plain-product-image,
  .col-card:not(.is-split-card):hover .plain-product-image {
    transform: scale(1.03);
  }
}

/* Split Series & Wall Setup Packs: Zoomed-in setup default, hover reveals full room mockup */
.product-card.is-split-card .product-card-image,
.store-card.is-split-card .store-card-media,
.wall-setup-card.ws-split-card .ws-img-container,
.col-card.is-split-card a {
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary, #18181c);
}

/* 3-split (default for split): Wider triptych — scale 1.28 perfectly fits all 3 posters with zero side cropping */
.product-card.is-split-card .plain-product-image,
.store-card.is-split-card .plain-product-image,
.wall-setup-card.ws-split-card .ws-img-container img,
.col-card.is-split-card img.plain-product-image,
.product-card.is-split-card.is-split-3 .plain-product-image,
.store-card.is-split-card.is-split-3 .plain-product-image,
.wall-setup-card.ws-split-card.ws-split-3 .ws-img-container img,
.col-card.is-split-card.is-split-3 img.plain-product-image {
  transform: scale(1.28);
  object-fit: cover;
  object-position: center 37%;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), object-position 0.45s ease;
  will-change: transform;
}

/* 2-split: Diptych framing — scale 1.24 keeps both panels completely visible without side clipping */
.product-card.is-split-card.is-split-2 .plain-product-image,
.store-card.is-split-card.is-split-2 .plain-product-image,
.wall-setup-card.ws-split-card.ws-split-2 .ws-img-container img,
.col-card.is-split-card.is-split-2 img.plain-product-image {
  transform: scale(1.24);
  object-fit: cover;
  object-position: center 36%;
}

@media (hover: hover) {
  .product-card.is-split-card:hover .plain-product-image,
  .store-card.is-split-card:hover .plain-product-image,
  .wall-setup-card.ws-split-card:hover .ws-img-container img,
  .col-card.is-split-card:hover img.plain-product-image,
  .product-card.is-split-card.is-split-2:hover .plain-product-image,
  .store-card.is-split-card.is-split-2:hover .plain-product-image,
  .wall-setup-card.ws-split-card.ws-split-2:hover .ws-img-container img,
  .col-card.is-split-card.is-split-2:hover img.plain-product-image,
  .product-card.is-split-card.is-split-3:hover .plain-product-image,
  .store-card.is-split-card.is-split-3:hover .plain-product-image,
  .wall-setup-card.ws-split-card.ws-split-3:hover .ws-img-container img,
  .col-card.is-split-card.is-split-3:hover img.plain-product-image {
    transform: scale(1.0) !important;
    object-position: center center !important;
  }
}

.split-view-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 4;
}

@media (hover: hover) {
  .product-card.is-split-card:hover .split-view-badge,
  .store-card.is-split-card:hover .split-view-badge,
  .wall-setup-card.ws-split-card:hover .split-view-badge,
  .col-card.is-split-card:hover .split-view-badge {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 4px 10px;
  font-size: var(--text-micro);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  z-index: 2;
}

.product-quick-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 12px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  z-index: 4;
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--transition-med), opacity var(--transition-med);
}

@media (hover: hover) {
  .product-card:hover .product-quick-actions,
  .wall-setup-card:hover .product-quick-actions,
  .store-card:hover .product-quick-actions {
    transform: translateY(0);
    opacity: 1;
  }
}

/* The second information layer Dessine Art's card hover surfaces (spec
   copy, not just a CTA) — shown above the Add to Cart button so hover
   answers "why buy" before the click, not just "this is clickable". */
.product-card-specs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.product-card-specs span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.product-card-specs i {
  color: var(--accent);
  font-size: 0.68rem;
}

.quick-add-btn {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 10px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.quick-add-btn:hover {
  background: var(--accent);
  color: var(--on-accent);
  transform: scale(1.05);
}

.product-card-info {
  padding: 18px;
}

.product-card-info h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-current {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.price-original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-discount {
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 600;
}


/* ===== CATEGORY SECTION ===== */
.categories-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 0;
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate; /* scopes z-index of mockup layers/title so the title always wins, hover state included */
  container-type: inline-size; /* lets the title scale off the card's own width via cqw */
  transition: box-shadow var(--transition-med);
}

/* No `transform` on hover here, deliberately — this card has
   container-type: inline-size (needed above for the title's cqw sizing),
   and animating `transform` via CSS transition on an element that also has
   container-type reliably broke overflow:hidden clipping on this card's
   .mockup-wrapper descendant in Chromium (poster rendered unclipped, frame
   graphic invisible) on every normal hover — not an edge case, and not
   about which transform function was used: a JS-driven 3D
   perspective()/rotateX/rotateY tilt, a plain 2D scale(), and a CSS-only
   translateY+scale hover all reproduced it identically once animated
   (setting the same transform statically, no transition, was always fine).
   Confirmed via isolation that removing container-type — not isolation,
   not the specific transform function — was what fixed it. Since the title
   sizing needs container-type to stay, the fix is the other side: don't
   animate `transform` on this element at all. The zoom-on-hover instead
   targets .mockup-wrapper below, a plain descendant with no
   container-type of its own. */
.category-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(var(--accent-rgb), 0.15);
}

.category-card:hover .mockup-wrapper {
  transform: scale(1.06);
}

.category-card-title {
  position: relative;
  z-index: 2;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background var(--transition-med);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.9) 100%);
}

.category-card-overlay p {
  font-size: 0.8rem;
  color: var(--on-photo-secondary); /* sits on a fixed dark gradient over the poster photo, not the page bg — stays light in both themes */
}

/* Plates/Wallpaper have no real product photography yet — an icon tile
   in the same card shell (same size, same title/overlay treatment) reads
   as "new category, coming soon" rather than a broken or faked photo. */
.category-card-icon-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg-secondary), var(--bg-primary));
}

.category-card-icon-bg i {
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.8;
  transition: transform var(--transition-med);
}

.category-card-icon:hover .category-card-icon-bg i {
  transform: scale(1.08);
}

.category-card-title-icon {
  color: var(--accent);
  text-shadow: none;
}

.category-card-overlay .cat-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: gap var(--transition-fast);
}

.category-card:hover .cat-arrow {
  gap: 12px;
}


/* ===== HORIZONTAL SCROLL COLLECTION ===== */
.scroll-collection {
  padding: var(--section-padding);
}

.scroll-wrapper {
  position: relative;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.scroll-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: clip !important;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto !important;
  touch-action: pan-x pan-y !important;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 20px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.scroll-track::-webkit-scrollbar {
  display: none;
}

.scroll-track .product-card {
  flex-shrink: 0;
  width: 280px;
  scroll-snap-align: start;
}

.scroll-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateZ(0); /* Force GPU compositing to prevent scroll-track from intercepting hits */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 99;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.scroll-nav i {
  pointer-events: none;
}

.scroll-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.scroll-nav.prev {
  left: -22px;
}

.scroll-nav.next {
  right: -22px;
}

.scroll-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.scroll-nav:disabled:hover {
  background: var(--bg-card);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.carousel-counter {
  text-align: center;
  margin-top: 18px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-secondary);
}


/* ===== BANNER / CTA SECTION ===== */
.cta-banner {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}

/* Animated gradient "mood" wash — built entirely from the same palette
   tokens as everything else, so it re-themes automatically with a light/dark
   toggle or a palette swap. mix-blend-mode: screen (not overlay) is
   deliberate: over a photo this dark, overlay would mostly darken further,
   while screen always adds light/color regardless of how dark the base is —
   what makes these blobs actually glow instead of just muddying the photo. */
.cta-banner::after {
  content: '';
  position: absolute;
  inset: -25%;
  z-index: 1;
  background:
    radial-gradient(circle at 25% 30%, rgba(var(--accent-rgb), 0.6) 0%, transparent 55%),
    radial-gradient(circle at 75% 70%, color-mix(in srgb, var(--brand-tan) 65%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--brand-cream) 40%, transparent) 0%, transparent 60%);
  mix-blend-mode: screen;
  filter: blur(50px);
  animation: ctaGradientDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ctaGradientDrift {
  0% { transform: translate(0%, 0%) scale(1); }
  50% { transform: translate(-5%, 4%) scale(1.1); }
  100% { transform: translate(4%, -4%) scale(1.02); }
}

.cta-banner-content {
  position: relative;
  z-index: 2; /* above .cta-banner::after (z-index 1) so the gradient wash never dims the text */
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.cta-banner-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--brand-cream); /* sits on a fixed-dark photo (brightness(0.3)), not the page bg — stays light in both themes */
}

.cta-banner-content p {
  font-size: 1.05rem;
  color: var(--on-photo-secondary); /* same reasoning as h2 above */
  margin-bottom: 32px;
}


/* ===== TESTIMONIALS ===== */
.testimonials-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 980px;
  margin: 0 auto;
  gap: 28px;
  align-items: stretch;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  overflow: hidden; /* clips the oversized decorative quote mark below to the card's rounded corners */
  transition: border-color var(--transition-med), transform var(--transition-med);
}

.testimonial-card:nth-child(2) {
  margin-top: 0;
}

.testimonial-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -0.35em;
  right: 0.15em;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 7rem;
  line-height: 1;
  color: rgba(var(--accent-rgb), 0.12);
  pointer-events: none;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
  position: relative; /* sits above ::before's decorative quote mark */
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--on-photo-secondary)); /* brand-tan alone is too dark now — no single fixed text color would read on both gradient ends */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-black); /* fixed gradient (accent→tan), so keep text dark in both themes */
  flex-shrink: 0;
}

.testimonial-author-info h3,
.testimonial-author-info h5 {
  font-size: 0.9rem;
  font-weight: 600;
}

.testimonial-author-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}


/* ===== APP DOWNLOAD / SECONDARY CTA ===== */
.app-section {
  padding: var(--section-padding);
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.app-content h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: var(--tracking-tight);
}

.app-content p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.7;
}

.app-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.app-btn:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.app-btn i {
  font-size: 1.4rem;
}

.app-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.app-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}


/* ===== FOOTER ===== */
/* Rendered by global-footer.js; the host is a plain block wrapper. */
global-footer {
  display: block;
}

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 80px 0 30px;
  position: relative;
  isolation: isolate;
}

/* Footer gets its own glow rather than reusing .bg-layered's default
   two-glow placement: this section is dense (4 link columns), so both
   glows are pulled up to the top edge instead of into the content area
   - just enough warmth right under the border to feel like a
   continuation of the section above, not another spotlight competing
   with the link columns. */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(560px circle at 10% 0%, rgba(var(--accent-rgb), calc(var(--glow-opacity-1) * 0.8)), transparent 55%),
    radial-gradient(480px circle at 90% 0%, rgba(var(--accent-rgb), calc(var(--glow-opacity-2) * 0.7)), transparent 50%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-brand h3 span {
  color: var(--accent);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
}

.footer-column h2,
.footer-column h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-newsletter p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.newsletter-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.25);
}

.newsletter-form input {
  flex: 1;
  background: var(--bg-card);
  border: none;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form button {
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background var(--transition-fast);
}

.newsletter-form button:hover {
  background: var(--accent-hover);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* Brand block details (moved out of inline styles when the footer became
   the shared <global-footer> component). */
.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-parent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.footer-parent-label {
  font-size: var(--text-micro);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer-parent-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent);
}

.newsletter-status {
  min-height: 1.2em;
  margin: 8px 0 12px !important;
  font-size: var(--text-micro) !important;
  color: var(--success) !important;
}

.newsletter-status.is-error {
  color: var(--sale-red) !important;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-contact i {
  width: 16px;
  text-align: center;
  color: var(--accent);
}

.footer-contact a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-disclaimer {
  display: inline-block;
  max-width: 800px;
  margin-top: 8px;
  font-size: 0.85em;
  line-height: 1.4;
}

/* ===== VIEW ALL BUTTON ===== */
.view-all-wrap {
  text-align: center;
  margin-top: 40px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--border-light);
  color: var(--text-primary);
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.view-all-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}


/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: calc(84px + env(safe-area-inset-bottom));
  right: calc(24px + env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--transition-med), visibility var(--transition-med), transform var(--transition-med);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
  .scroll-top {
    bottom: calc(138px + env(safe-area-inset-bottom));
    right: calc(16px + env(safe-area-inset-right));
    width: 44px;
    height: 44px;
  }
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
}


/* ===== FADE-IN ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Two more reveal variants, same .visible-toggle contract as .fade-in above
   (observed/added by the same IntersectionObserver in script.js) — pick
   whichever suits the element instead of defaulting to fade-in everywhere. */
.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Not clip-path on this element itself, deliberately — that was the
   original design and it never actually worked: IntersectionObserver
   computes intersection against the target's own clipped/rendered area, so
   an element clipped to zero visible height (inset(0 0 100% 0)) always
   reports isIntersecting:false, even while it's squarely in the viewport.
   That's a real deadlock, not an edge case — the element can never be
   detected as visible precisely because it's clipped, which is the same
   clip the detection is supposed to lift. Confirmed via an isolated
   reproduction outside this codebase before rewriting this. Fix: put the
   clip on the PARENT via overflow:hidden (which does not shrink the
   parent's own layout box — the parent's geometry, and thus what
   IntersectionObserver sees, is unaffected by its own overflow), and
   animate a translateY reveal on the child instead. */
.clip-reveal {
  overflow: hidden;
}

.clip-reveal > * {
  transform: translateY(100%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.clip-reveal.visible > * {
  transform: translateY(0);
}

/* ===== CUSTOM CURSOR (Phase 11 micro-interactions) =====
   Only mounted by micro-interactions.js when the visitor has a fine
   pointer (mouse/trackpad) and hasn't asked for reduced motion — see the
   JS gate there. body.custom-cursor-active is added by that same script,
   so a page with this script missing/broken just keeps the native
   cursor rather than going invisible. */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 100001;
  opacity: 0;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  background: var(--accent);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.8), 0 0 3px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease, margin 0.2s ease, background 0.2s ease;
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 100000;
  opacity: 0;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.45);
  transition: opacity 0.2s ease, width 0.22s cubic-bezier(0.16, 1, 0.3, 1), height 0.22s cubic-bezier(0.16, 1, 0.3, 1), margin 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease;
}

.custom-cursor-ring.hovering {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.6);
}

.custom-cursor-dot.hovering {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: #ffffff;
}

/* Hide default cursor on interactive element hover, but restore text cursor on inputs */
body.custom-cursor-active,
body.custom-cursor-active * {
  cursor: none !important;
}

body.custom-cursor-active input,
body.custom-cursor-active textarea,
body.custom-cursor-active select,
body.custom-cursor-active [contenteditable="true"] {
  cursor: text !important;
  caret-color: var(--accent, #ff4c24) !important;
}

/* Ensure search overlay and all its children restore consistent native cursors */
body.custom-cursor-active .search-overlay,
body.custom-cursor-active .search-overlay *,
body.search-overlay-open,
body.search-overlay-open * {
  cursor: default !important;
}

body.custom-cursor-active .search-overlay input,
body.custom-cursor-active .global-search-form input,
body.custom-cursor-active .search-overlay textarea,
body.search-overlay-open input,
body.search-overlay-open textarea,
body.search-overlay-open .global-search-form input,
.search-overlay input {
  cursor: text !important;
  caret-color: var(--accent, #ff4c24) !important;
  -webkit-user-select: text !important;
  user-select: text !important;
}

body.custom-cursor-active .search-overlay a,
body.custom-cursor-active .search-overlay a *,
body.custom-cursor-active .search-overlay button,
body.custom-cursor-active .search-overlay button *,
body.custom-cursor-active .search-close-btn,
body.custom-cursor-active .search-close-btn *,
body.custom-cursor-active .global-search-form button,
body.custom-cursor-active .global-search-form button *,
body.custom-cursor-active .search-product-card,
body.custom-cursor-active .search-product-card *,
body.custom-cursor-active .search-quick-chip,
body.custom-cursor-active .search-quick-chip *,
body.custom-cursor-active .search-view-all-cta,
body.custom-cursor-active .search-view-all-cta *,
body.search-overlay-open a,
body.search-overlay-open button,
body.search-overlay-open .search-product-card,
body.search-overlay-open .search-quick-chip,
body.search-overlay-open .search-close-btn,
body.search-overlay-open .search-view-all-cta,
.search-overlay a,
.search-overlay button,
.search-overlay .search-product-card,
.search-overlay .search-quick-chip,
.search-overlay .search-close-btn,
.search-overlay .search-view-all-cta {
  cursor: pointer !important;
}

body.search-overlay-open .custom-cursor-dot,
body.search-overlay-open .custom-cursor-ring,
body.search-overlay-open .custom-cursor-label {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

@media (pointer: coarse) {
  .custom-cursor-dot, .custom-cursor-ring {
    display: none !important;
  }
}

/* Mobile & Touch Usability Foundations */
.cart-drawer,
.cart-overlay,
.search-overlay,
.search-container,
.auth-modal,
.profile-modal,
.reachout-modal,
.product-modal-container {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Prevent disruptive iOS Safari form input auto-zoom by enforcing 16px font-size minimum on mobile viewports */
@media screen and (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Universal 44x44px minimum touch target dimensions for coarse pointer touch devices (WCAG 2.2 AA / Apple HIG) */
@media (pointer: coarse) {
  .nav-action-btn,
  .menu-toggle,
  .cart-close-btn,
  .search-close-btn,
  .auth-close-btn,
  .modal-close-btn,
  .cart-item-qty-btn,
  .cart-remove-btn,
  .swatch-btn,
  .facet-check,
  .filter-chip,
  .search-quick-chip,
  .sort-opt {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }
}
/* Anyone who's asked their OS for reduced motion gets content in its final
   state immediately — no fade/scale/clip, no transition. Applies regardless
   of whether .visible has been toggled yet, so there's no dependency on the
   IntersectionObserver having fired first. */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .scale-in,
  .clip-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* .clip-reveal's own hide/reveal transform now lives on its direct
     child (see .clip-reveal > * above), not on .clip-reveal itself. */
  .clip-reveal > * {
    transform: none !important;
    transition: none !important;
  }

  /* Hero: kill the infinite logo pulse/glow (which would otherwise loop
     forever — including whatever mid-cycle opacity it happened to be at,
     since browsers don't auto-pause author animations for reduced motion)
     and the one-shot entrance animations. No need to touch .hero-content's
     own transform (used for centering, not motion) — the JS parallax that
     would otherwise override it never runs here, since scroll.js refuses
     to init Lenis under reduced motion and script.js's parallax is gated
     on window.lenis. */
  .hero-animated-logo,
  .hero-logo-container::before,
  .hero-counter,
  .hero-content .hero-tag,
  .hero-content .hero-title,
  .hero-content .hero-cta-reveal,
  .hero-content .hero-trust-badges,
  .scroll-cue-wheel {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .scroll-cue {
    display: none;
  }

  /* Safety net: micro-interactions.js already refuses to mount the cursor
     or bind magnetic buttons under reduced motion, but in case that class
     is ever left on the body (e.g. motion preference changes mid-session
     without a reload) don't leave visitors without a real cursor. */
  .custom-cursor-dot, .custom-cursor-ring {
    display: none !important;
  }

  body.custom-cursor-active,
  body.custom-cursor-active * {
    cursor: auto !important;
  }

  /* flyToCart() already refuses to create a clone or pop the cart icon
     under reduced motion — this is a safety net in case either class
     is ever applied some other way. */
  .fly-to-cart-clone {
    display: none !important;
  }

  .nav-action-btn.cart-pop {
    animation: none !important;
  }

  /* Freeze the CTA banner's gradient drift at its resting position — but
     NOT via the shared rule above, which forces filter:none. That would
     strip this element's blur(50px), which softens the gradient blobs and
     has nothing to do with motion; killing it would leave hard-edged circles. */
  .cta-banner::after {
    animation: none !important;
    transform: none !important;
  }

  /* The ticker is an infinite auto-scrolling loop with no user control to
     stop it — exactly the kind of motion reduced-motion exists to opt out of. */
  .marquee-track {
    animation: none !important;
  }
}


/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-premium), visibility 0.35s var(--ease-premium);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 92vw;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-premium);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-drawer-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-drawer-count {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cart-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.cart-close-btn:hover {
  border-color: var(--sale-red);
  color: var(--sale-red);
  background: rgba(var(--sale-red-rgb), 0.1);
}

/* --- Cart Combo Progress Banner --- */
.cart-combo-banner {
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.combo-banner-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.combo-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.combo-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.combo-banner-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.combo-banner-title i {
  color: var(--accent);
  font-size: 0.95rem;
}

.combo-pill-applied {
  background: #10b981;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.combo-banner-right {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.combo-free-accent {
  color: #10b981;
  font-weight: 800;
}

.combo-target-hint {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.74rem;
}

.combo-banner-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.combo-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.combo-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #10b981 100%);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.combo-bar-fill.is-max {
  background: linear-gradient(90deg, #f59e0b 0%, #10b981 100%);
}

.combo-banner-next-hint {
  font-size: 0.74rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.combo-banner-next-hint i {
  color: var(--accent);
  font-size: 0.72rem;
}

.combo-banner-max-hint {
  font-size: 0.74rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.cart-item-combo-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.cart-combo-nudge {
  display: none !important; /* Duplicate of top .cart-combo-banner; suppressed to prevent wasting vertical cart space */
  align-items: center;
  gap: 8px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px dashed rgba(var(--accent-rgb), 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 10px 0 6px;
  font-size: 0.8rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.cart-combo-nudge[hidden] {
  display: none;
}

.cart-combo-nudge i {
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.cart-combo-nudge.is-unlocked {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.cart-combo-nudge.is-unlocked i {
  color: #10b981;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-drawer-body::-webkit-scrollbar {
  width: 5px;
}
.cart-drawer-body::-webkit-scrollbar-track {
  background: transparent;
}
.cart-drawer-body::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-md);
}

/* Empty cart state */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px 20px;
}

.cart-empty i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cart-empty h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.cart-empty p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Cart item */
.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeSlideIn 0.3s ease-out;
}

@keyframes fadeSlideIn {
  0% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

.cart-item-image {
  aspect-ratio: 4 / 5;
  width: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card);
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-details h4 {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.cart-item-details .cart-item-price {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cart-item-details .cart-item-price strong {
  color: var(--text-primary);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-control button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.qty-control button:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.qty-control .qty-value {
  width: 32px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 30px;
}

.cart-item-remove {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px;
  transition: color var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--sale-red);
}

/* Cart footer */
.cart-drawer-footer {
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.cart-summary-row .cart-subtotal,
.cart-summary-row #cart-shipping {
  font-weight: 600;
  color: var(--text-primary);
}

.cart-total-row {
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--border-light);
  font-size: 1.05rem;
  color: var(--text-primary) !important;
  font-weight: 700;
}

.cart-total-row .cart-total {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.15rem;
}

.cart-action-row {
  display: block;
}

.cart-bar-total-wrap {
  display: none;
}

.cart-summary-breakdown {
  display: block;
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: var(--on-accent);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 16px;
  transform: translate(var(--magnet-x, 0px), var(--magnet-y, 0px));
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cart-checkout-btn:hover {
  background: var(--accent-hover);
  transform: translate(var(--magnet-x, 0px), calc(var(--magnet-y, 0px) - 2px));
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
}

.cart-continue-btn {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--text-secondary);
  padding: 10px;
  font-size: 0.82rem;
  margin-top: 8px;
  transition: color var(--transition-fast);
}

.cart-continue-btn:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   CART DRAWER RESPONSIVE & MOBILE COMPACT LAYOUT (iPhone SE, 13, 14, Android)
   Eliminates excessive gaps, maximizes items viewport height, prevents layout squish.
   ========================================================================== */
@media (max-width: 600px) {
  .cart-drawer {
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-left: none;
  }
}

@media (max-width: 600px), (max-height: 750px) {
  .cart-drawer-header {
    padding: 10px 16px;
  }

  .cart-drawer-header h3 {
    font-size: 1rem;
    gap: 8px;
  }

  .cart-close-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 0.9rem;
  }

  /* Compact Top Combo Banner */
  .cart-combo-banner {
    padding: 6px 14px;
  }

  .combo-banner-card {
    gap: 4px;
  }

  .combo-banner-title {
    font-size: 0.78rem;
    gap: 5px;
  }

  .combo-banner-title i {
    font-size: 0.82rem;
  }

  .combo-pill-applied {
    font-size: 0.52rem;
    padding: 1px 4px;
  }

  .combo-banner-right {
    font-size: 0.7rem;
  }

  .combo-banner-progress-wrap {
    gap: 3px;
  }

  .combo-bar-track {
    height: 4px;
  }

  .combo-banner-next-hint,
  .combo-banner-max-hint {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  /* Compact Cart Body & Items */
  .cart-drawer-body {
    padding: 8px 14px;
  }

  .cart-item {
    padding: 10px 0;
    gap: 10px;
  }

  .cart-item-image {
    width: 54px;
    min-width: 54px;
  }

  .cart-item-details {
    gap: 3px;
  }

  .cart-item-details h4 {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .cart-item-variant {
    font-size: 0.74rem !important;
    margin-bottom: 2px !important;
  }

  .cart-item-details .cart-item-price {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .cart-item-combo-pill {
    font-size: 0.6rem;
    padding: 1px 4px;
    margin-left: 4px;
  }

  .cart-item-controls {
    gap: 8px;
    margin-top: 2px;
  }

  .qty-control button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    font-size: 0.8rem;
  }

  .qty-control .qty-value {
    width: 26px;
    line-height: 28px;
    font-size: 0.78rem;
  }

  .cart-item-remove {
    font-size: 0.8rem;
    padding: 4px;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Compact Footer to reclaim screen real-estate */
  .cart-drawer-footer {
    padding: 8px 14px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
    background: var(--bg-secondary);
  }

  .cart-summary-row {
    padding: 2px 0;
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .cart-total-row,
  .cart-continue-btn {
    display: none !important;
  }

  /* Thin green/accent strip right above the action bar (like Flipkart's % You'll save strip) */
  .cart-free-nudge {
    display: block !important;
    margin: 0 0 6px 0;
    padding: 4px 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    font-size: 0.72rem;
    line-height: 1.25;
    text-align: center;
    color: #10b981;
  }

  .cart-free-nudge[hidden] {
    display: none !important;
  }

  /* Collapsible Price Breakdown */
  .cart-summary-breakdown {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, margin 0.3s ease, padding 0.3s ease;
    margin: 0;
    padding: 0;
    border-bottom: none;
    pointer-events: none;
  }

  .cart-summary-breakdown.is-expanded {
    max-height: 320px;
    overflow: visible;
    opacity: 1;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border);
    pointer-events: auto;
  }

  /* Two-column Flipkart sticky checkout bar */
  .cart-action-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  button.cart-bar-total-wrap,
  .cart-bar-total-wrap {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    padding: 4px 8px;
    min-height: 44px;
    border-radius: 8px;
    transition: background var(--transition-fast), transform 0.1s ease;
  }

  .cart-bar-total-wrap:hover,
  .cart-bar-total-wrap:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    outline: none;
  }

  .cart-bar-total-wrap:active {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(0.97);
  }

  .cart-bar-sub-hint {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
  }

  .cart-bar-savings-tag {
    color: #10b981;
    font-weight: 700;
  }

  .cart-bar-total {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.15;
    pointer-events: none;
  }

  .cart-checkout-btn {
    flex: 1;
    width: auto;
    margin-top: 0;
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 8px;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
  }
}

@media (max-height: 600px) {
  /* Extra-short viewports / landscape orientation */
  .cart-drawer-header {
    padding: 6px 12px;
  }

  .cart-combo-banner {
    padding: 4px 12px;
  }

  .cart-item-image {
    width: 44px;
    min-width: 44px;
  }

  .cart-drawer-footer {
    padding: 6px 12px max(6px, env(safe-area-inset-bottom));
  }

  .cart-summary-row {
    padding: 1px 0;
  }

  .cart-checkout-btn {
    padding: 8px 12px;
    margin-top: 6px;
  }

  .cart-continue-btn {
    padding: 2px 0;
    margin-top: 2px;
  }
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-left: 4px solid var(--accent);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast i {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-text {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
}

.toast-cart-btn {
  margin-left: 12px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.toast-cart-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ========================================
   PRODUCT DETAIL MODAL
   ======================================== */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-premium), visibility 0.4s var(--ease-premium);
}

.product-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.32s var(--ease-premium), visibility 0.32s var(--ease-premium), transform 0.32s var(--ease-premium);
  overflow-y: auto;
  border-radius: 0;
  border: none;
}

.product-modal.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.modal-close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 0;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.modal-content-wrapper {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  width: 100%;
  padding: 0;
}

.modal-image-col {
  width: 68%;
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-color);
  padding: 0;
}

.modal-info-col {
  width: 36%;
  padding: 40px 32px 56px;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* --- Header Block: Tag, Stock Pill, Title, Rating, Share --- */
.modal-header-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-category-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  padding: 4px 10px;
  border-radius: 50px;
}

.modal-stock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.modal-stock-status.in-stock {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #10b981;
}

.modal-stock-status.in-stock::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.modal-stock-status.low-stock {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.modal-stock-status.low-stock::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.modal-stock-status.out-of-stock {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--sale-red, #ef4444);
}

.modal-stock-status.out-of-stock::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sale-red, #ef4444);
}

#modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.1vw, 2.1rem);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text-primary);
}

/* --- Pricing Block --- */
.modal-pricing-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.modal-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

#modal-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

#modal-original-price {
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: line-through;
  color: var(--text-tertiary);
}

.modal-discount-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--sale-red, #e5484d);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.modal-tax-inclusive {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin: 0;
  font-weight: 500;
}

/* --- Description --- */
.modal-description {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --- Variant Selectors Container --- */
.variant-selectors {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  background: var(--bg-secondary);
  padding: 1.25rem 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.selector-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.selector-group label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.selector-group select {
  padding: 0.75rem 2.2rem 0.75rem 0.75rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

.selector-group select:focus {
  border-color: var(--accent);
}

.swatch-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.swatch-btn {
  padding: 0.6rem 1rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.swatch-btn small {
  font-weight: 600;
  opacity: 0.75;
  margin-left: 4px;
}

.swatch-btn:hover {
  border-color: var(--border-light);
  background: var(--bg-secondary);
}

.swatch-btn.active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.swatch-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Dynamic Combo Offers Section --- */
.modal-combo-section,
.product-page-combo-section {
  margin: 16px 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.modal-combo-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.modal-combo-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-combo-sparkle {
  color: var(--accent);
  font-size: 0.95rem;
}

.modal-combo-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

.modal-combo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.combo-tier-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 84px;
}

.combo-tier-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.combo-tier-card.selected {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 0 0 1px var(--accent);
}

.combo-tier-card.is-recommended {
  border-color: rgba(var(--accent-rgb), 0.45);
}

.combo-tier-badge-slot {
  height: 16px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.combo-pill-rec {
  background: var(--accent);
  color: #000;
  font-size: 0.54rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.combo-tier-main {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.combo-tier-highlight {
  font-size: 0.82rem;
  font-weight: 800;
  color: #10b981;
  margin: 2px 0 2px;
  letter-spacing: 0.2px;
  text-align: center;
  line-height: 1.2;
}

.combo-tier-hint {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.1;
}

.modal-combo-active-msg {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.25s ease-out;
}

@media (max-width: 600px) {
  .modal-combo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Modal Quantity Stepper & Add Row --- */
.modal-add-row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.modal-wishlist-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light, rgba(255, 255, 255, 0.15));
  background: var(--bg-secondary, rgba(255, 255, 255, 0.05));
  color: var(--text-secondary, #a1a1aa);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-wishlist-toggle-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
  transform: scale(1.06);
}
.modal-wishlist-toggle-btn.is-active {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
  animation: heartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-wishlist-toggle-btn.is-active i {
  font-weight: 900;
}
@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Card Wishlist Quick Heart Button */
.card-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(18, 18, 20, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-secondary, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.card-wishlist-btn:hover {
  transform: scale(1.15);
  color: #ef4444;
  border-color: #ef4444;
}
.card-wishlist-btn.is-active {
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  border-color: #ef4444;
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-qty-control {
  display: flex;
  align-items: center;
  height: 52px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  overflow: hidden;
  flex-shrink: 0;
}

.modal-qty-btn {
  width: 40px;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.modal-qty-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.modal-qty-input {
  width: 44px;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}

.modal-qty-input::-webkit-inner-spin-button,
.modal-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- Actions & Trust Perks --- */
.modal-actions-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal-add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 1.1rem 1.6rem;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transform: translate(var(--magnet-x, 0px), var(--magnet-y, 0px));
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.modal-add-to-cart i {
  font-size: 1.1rem;
}

.modal-add-to-cart:hover:not(:disabled) {
  transform: translate(var(--magnet-x, 0px), calc(var(--magnet-y, 0px) - 2px));
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.35);
}

.modal-trust-perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.modal-trust-perk {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.modal-trust-perk i {
  font-size: 1rem;
  color: var(--accent);
}

.modal-trust-perk span {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-secondary);
}

/* ===== FREQUENTLY BOUGHT TOGETHER & CURATED 3-PACK ===== */
.modal-fbt-section {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Editorial Curated 3-Pack in Quick-View Modal */
.curated-trio-card {
  background: linear-gradient(145deg, var(--bg-secondary) 0%, rgba(var(--accent-rgb, 255, 68, 68), 0.03) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 12px);
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.curated-trio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.curated-trio-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.curated-trio-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.curated-trio-pill i {
  font-size: 0.72rem;
}

.curated-trio-heading {
  font-family: var(--font-heading, inherit);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0;
}

.curated-trio-discount-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 3px 9px;
  border-radius: 50px;
  white-space: nowrap;
}

.curated-trio-subhead {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: -4px 0 0 0;
}

.curated-trio-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 2px 4px;
}

.curated-trio-thumb {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.curated-trio-poster-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.38;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.curated-trio-thumb:hover .curated-trio-poster-wrapper {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.curated-trio-thumb.is-main .curated-trio-poster-wrapper {
  border-color: var(--accent);
}

.curated-trio-poster-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trio-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 2px;
}

.trio-thumb-label.companion {
  background: rgba(20, 20, 25, 0.75);
  color: var(--text-secondary, #ddd);
}

.trio-thumb-title {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.curated-trio-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-tertiary);
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: -18px;
}

.curated-trio-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

.curated-trio-pricing {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.curated-trio-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.curated-trio-price {
  font-family: var(--font-heading, inherit);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}

.curated-trio-mrp {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  text-decoration: line-through;
  font-weight: 500;
}

.curated-trio-unit {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.curated-trio-specs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.curated-trio-specs span i {
  color: #10b981;
  margin-right: 3px;
}

.curated-trio-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
}

@media (max-width: 520px) {
  .curated-trio-actions {
    grid-template-columns: 1fr;
  }
}

.curated-trio-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid transparent;
  border-radius: var(--radius-md, 8px);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.curated-trio-add-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.curated-trio-builder-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.8rem 0.9rem;
  background: rgba(var(--accent-rgb, 255, 68, 68), 0.08);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb, 255, 68, 68), 0.25);
  border-radius: var(--radius-md, 8px);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.curated-trio-builder-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* Fallback Standard FBT */
.fbt-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 12px);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.fbt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.fbt-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fbt-badge-icon {
  color: var(--accent);
  font-size: 1rem;
}

.fbt-heading {
  font-family: var(--font-heading, inherit);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0;
}

.fbt-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 8px;
  border-radius: 50px;
}

/* Horizontal visual strip */
.fbt-visual-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.fbt-thumb-card {
  position: relative;
  width: 76px;
  height: 96px;
  flex-shrink: 0;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  border: 2px solid var(--border-light);
  background: var(--bg-primary);
  cursor: pointer;
  transition: transform var(--transition-fast, 0.2s), border-color var(--transition-fast, 0.2s), opacity var(--transition-fast, 0.2s);
}

.fbt-thumb-card:hover {
  transform: translateY(-2px);
}

.fbt-thumb-card.is-selected {
  border-color: var(--accent);
  opacity: 1;
}

.fbt-thumb-card.is-unselected {
  border-color: var(--border-light);
  opacity: 0.45;
  filter: grayscale(0.5);
}

.fbt-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fbt-this-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
  letter-spacing: 0.02em;
}

.fbt-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-tertiary);
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* Checkbox items list */
.fbt-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fbt-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm, 6px);
  transition: background var(--transition-fast, 0.2s);
}

.fbt-checkbox-row:hover {
  background: rgba(var(--accent-rgb), 0.05);
}

.fbt-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fbt-checkbox-custom {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0.65rem;
  flex-shrink: 0;
  transition: all var(--transition-fast, 0.2s);
}

.fbt-checkbox:checked + .fbt-checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.fbt-item-title {
  flex: 1;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fbt-checkbox-row.is-checked .fbt-item-title {
  color: var(--text-primary);
  font-weight: 500;
}

.fbt-item-title strong {
  color: var(--accent);
  font-weight: 700;
}

.fbt-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

/* Summary Box */
.fbt-summary-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}

.fbt-pricing-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.fbt-total-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.fbt-final-price {
  font-family: var(--font-heading, inherit);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}

.fbt-raw-price {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  text-decoration: line-through;
  font-weight: 500;
}

.fbt-save-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
}

.fbt-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid transparent;
  border-radius: var(--radius-md, 8px);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.fbt-add-btn:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.fbt-add-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fbt-add-btn i {
  font-size: 0.95rem;
}

/* Reviews */
.reviews-section {
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.reviews-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
}

.review-item {
  background: rgba(255,255,255,0.03);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.review-author {
  font-weight: 600;
  font-size: 0.95rem;
}

.review-stars {
  color: #fbbf24;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

.review-photo {
  display: block;
  margin-top: 0.75rem;
  max-width: 140px;
  max-height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255,255,255,0.02);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.review-form h4 {
  margin: 0;
}

.review-form input, .review-form select, .review-form textarea {
  padding: 0.75rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
}

.review-form textarea {
  resize: vertical;
  min-height: 80px;
}

.review-form button {
  padding: 0.75rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.review-form button:hover {
  opacity: 0.9;
}

.review-photo-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 0.9rem;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.review-photo-label:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.review-photo-preview {
  max-width: 100px;
  max-height: 100px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

/* The site-wide `img { display: block }` rule outranks the UA [hidden]
   stylesheet (author styles always beat UA styles), so the attribute
   alone doesn't hide this element without an explicit override. */
.review-photo-preview[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .modal-content-wrapper {
    flex-direction: column;
    padding: 0;
  }
  .modal-image-col {
    width: 100%;
    height: auto;
    position: relative;
    padding: 12px 16px 8px !important;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    display: block;
  }
  .product-modal {
    width: 100vw;
    padding-bottom: 0 !important;
  }
  /* Keep the image compact so title, price and thumbnails are immediately visible above fold */
  .modal-plain-image-wrapper { max-width: min(100%, 36dvh) !important; margin: 0 auto !important; }
  .modal-image-col .mockup-wrapper { max-width: min(100%, 30dvh) !important; margin: 0 auto !important; }
  .modal-info-col {
    width: 100%;
    padding: 16px 14px 28px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }
  /* Mobile product sequence:
     1. Header / title / rating / share
     2. Pricing band
     3. Buy and Add to Cart band
     4. Combo packs section
     5. Sizes / variant selectors
     6. Description
     7. AR view button
     8. Trust perks
     9. Frequently bought together
     10. Product accordions
     11. Reviews & ratings */
  .modal-info-col > .modal-header-block {
    order: 1 !important;
  }
  .modal-info-col > .modal-pricing-block {
    order: 2 !important;
  }
  .modal-info-col > .modal-actions-block {
    display: contents !important;
  }
  .modal-info-col .modal-add-row {
    order: 3 !important;
  }
  .modal-info-col > .modal-combo-section,
  .modal-info-col > #modal-combo-section {
    order: 4 !important;
  }
  .modal-info-col > .variant-selectors,
  .modal-info-col > #variant-selectors {
    order: 5 !important;
  }
  .modal-info-col > .modal-description,
  .modal-info-col > #modal-description {
    order: 6 !important;
  }
  .modal-info-col .modal-view-ar-btn {
    order: 7 !important;
  }
  .modal-info-col .modal-trust-perks {
    order: 8 !important;
  }
  .modal-info-col > .modal-fbt-section,
  .modal-info-col > #modal-fbt-section {
    order: 9 !important;
  }
  .modal-info-col > .product-accordions {
    order: 10 !important;
  }
  .modal-info-col > .reviews-section {
    order: 11 !important;
  }
  .product-modal:not(.open) .modal-add-row {
    display: none;
  }
  .modal-add-row {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    z-index: 10 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    border-top: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }
  .modal-add-row .modal-qty-control {
    height: 48px !important;
    background: var(--bg-secondary) !important;
    border-radius: var(--radius-md) !important;
    flex-shrink: 0 !important;
  }
  .modal-add-row .modal-add-to-cart {
    flex: 1 !important;
    height: 48px !important;
    padding: 0 16px !important;
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.35) !important;
    position: static !important;
    transform: none !important;
  }
  .modal-add-row .modal-wishlist-toggle-btn {
    height: 48px !important;
    width: 48px !important;
    flex-shrink: 0 !important;
  }
}

/* ===== ADD TO CART BUTTON FEEDBACK ===== */
.quick-add-btn.added,
.quick-add-btn.is-added,
.modal-add-to-cart.is-added,
.curated-bundle-add-btn.is-added {
  background: var(--success, #10b981) !important;
  color: white !important;
  border-color: var(--success, #10b981) !important;
  transform: scale(0.96);
  transition: all 0.22s var(--ease-spring-bounce);
}



/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    gap: 28px;
    z-index: 1001;
    padding:  110px 40px 60px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.4rem;
    color: var(--text-primary);
  }

  .menu-toggle {
    display: flex;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-card:nth-child(2) {
    margin-top: 0; /* the desktop bento offset assumes a single row of 3 — doesn't apply once it wraps to 2 columns */
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Two-column grid on mobile & tablet: neat, compact, no huge cards */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .product-card {
    border-radius: var(--radius-sm, 8px);
  }

  .product-card-image,
  .mockup-wrapper {
    aspect-ratio: 1 / 1.38;
  }

  .product-card-info {
    padding: 8px 9px 10px !important;
  }

  .product-card-info h3 {
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
    margin-bottom: 3px !important;
  }

  .card-rating {
    font-size: 0.7rem !important;
    margin-bottom: 3px !important;
  }

  .product-pricing {
    gap: 5px !important;
  }

  .price-current {
    font-size: 0.92rem !important;
    font-weight: 800 !important;
  }

  .price-original {
    font-size: 0.72rem !important;
  }

  .price-discount {
    font-size: 0.65rem !important;
    padding: 1px 4px !important;
  }

  .quick-add-btn {
    padding: 7px 8px !important;
    font-size: 0.74rem !important;
    border-radius: 6px !important;
  }

  .product-card-badge {
    font-size: 0.58rem !important;
    padding: 2px 6px !important;
    top: 6px !important;
    left: 6px !important;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-action-btn,
  .menu-toggle {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 640px) {
  .nav-actions a[aria-label="Orders"],
  .nav-actions a[aria-label="Wishlist"],
  .nav-actions button[data-theme-toggle] {
    display: none !important;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .feature-item {
    padding: 20px 14px;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .category-card-title {
    font-size: 0.95rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card-info {
    padding: 12px;
  }

  .product-card-info h3 {
    font-size: 0.82rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .scroll-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .announcement-bar {
    font-size: 0.7rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-quick-actions {
    display: none;
  }

  /* Nav-actions never had a phone-width rule: 5 icon buttons (40px + 20px
     gap each) plus the hamburger toggle add up to ~300px on top of the
     brand logo and navbar padding — wider than the viewport itself on
     every real phone (iPhone SE at 375px up through most Android devices),
     so the cart button was pushed off-screen and unreachable. Shrinking
     the buttons and gap here, rather than hiding any of them, keeps every
     action reachable instead of trading functionality for fit. */
  .navbar {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
  }

  .nav-brand img {
    height: 24px !important;
    width: auto !important;
    aspect-ratio: 360 / 93;
    object-fit: contain;
    flex-shrink: 0;
  }

  /* On mobile pill, keep only Search, Profile, Cart, and Hamburger so the hamburger lines never push outside */
  .nav-actions a[aria-label="Orders"],
  .nav-actions a[aria-label="Wishlist"],
  .nav-actions button[data-theme-toggle] {
    display: none !important;
  }

  .nav-actions {
    gap: 4px;
    flex-shrink: 0;
    align-items: center;
  }

  .navbar .nav-action-btn,
  .navbar .menu-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    flex-shrink: 0 !important;
  }

  .nav-action-btn {
    font-size: 0.95rem;
  }

  .menu-toggle {
    padding: 6px;
    margin-left: 2px;
  }
}

@media (max-width: 360px) {
  .navbar {
    left: 6px !important;
    right: 6px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
  }

  .nav-brand img {
    height: 21px !important;
  }

  .nav-actions {
    gap: 2px;
  }

  .navbar .nav-action-btn,
  .navbar .menu-toggle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  .nav-action-btn {
    font-size: 0.88rem;
  }
}

/* Hide product quick-actions overlay on all touch/coarse-pointer devices —
   this covers tablets and phones that the max-width:480px rule misses
   (e.g. iPad in landscape). The max-width rule is kept as a fallback. */
@media (pointer: coarse) {
  .product-quick-actions {
    display: none;
  }
}

/* ===== AUTH & PROFILE MODALS ===== */
.auth-modal-overlay, .profile-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 2000;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease-premium), visibility 0.3s var(--ease-premium);
}

.auth-modal-overlay.open, .profile-modal-overlay.open {
  opacity: 1; visibility: visible;
}

.auth-modal, .profile-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -47%) scale(0.95);
  width: 90%; max-width: 450px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  z-index: 2001;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease-premium), visibility 0.35s var(--ease-premium), transform 0.35s var(--ease-premium);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.profile-modal {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.auth-modal.open, .profile-modal.open {
  opacity: 1; visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* ---- Bottom-sheet on small phones (≤ 480px) ----
   On narrow viewports a centred modal wastes space and is harder to
   dismiss; sliding up from the bottom matches the native sheet pattern
   and is reachable with one thumb. */
@media (max-width: 480px) {
  .auth-modal, .profile-modal {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(8px) scale(0.98);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    overflow-y: auto;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }

  .auth-modal.open, .profile-modal.open {
    transform: translateY(0) scale(1);
  }
}

.auth-close-btn, .profile-close-btn {
  position: absolute; top: 15px; right: 15px;
  background: transparent; border: none; color: var(--text-primary);
  font-size: 1.2rem; cursor: pointer;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
}

.auth-tabs {
  display: flex; gap: 1rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.auth-tab {
  background: none; border: none; padding: 0.5rem 1rem;
  color: var(--text-secondary); cursor: pointer;
  font-weight: 600; font-size: 1rem; border-bottom: 2px solid transparent;
}
.auth-tab.active {
  color: var(--text-primary); border-bottom-color: var(--accent);
}

.auth-form {
  display: none; flex-direction: column; gap: 1rem;
}
.auth-form.active {
  display: flex;
}

.auth-form h3, .profile-modal h2 { margin: 0 0 1rem 0; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.9rem; color: var(--text-secondary); }
.form-group input, .form-group textarea {
  padding: 0.75rem; background: var(--bg-primary);
  border: 1px solid var(--border-color); color: var(--text-primary);
  border-radius: var(--radius-md); font-family: inherit;
  font-size: 1rem;
}

/* ===== WARM-EEL-62 STAGGERED FLOATING WAVE LABELS (Brush Theme) ===== */
.form-group.form-control-wave {
  position: relative;
  display: block;
  margin: 14px 0 16px;
  padding-top: 14px;
}
.form-group.form-control-wave input,
.form-group.form-control-wave textarea {
  background-color: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 0 !important;
  display: block;
  width: 100%;
  padding: 10px 4px 8px !important;
  font-size: 1rem !important;
  color: var(--text-primary, #ffffff) !important;
  transition: border-bottom-color 0.25s ease, background-color 0.25s ease;
  outline: none !important;
}
.form-group.form-control-wave textarea {
  resize: vertical;
  min-height: 48px;
}
.form-group.form-control-wave input:focus,
.form-group.form-control-wave textarea:focus {
  outline: 0 !important;
  border-bottom-color: var(--accent, #ff5722) !important;
}
.form-group.form-control-wave label {
  position: absolute;
  top: 24px;
  left: 4px;
  pointer-events: none;
  display: flex;
  user-select: none;
  margin: 0;
  padding: 0;
}
.form-group.form-control-wave label span {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  min-width: 4px;
  color: var(--text-secondary, #a1a1aa);
  transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.form-group.form-control-wave input:focus + label span,
.form-group.form-control-wave input:not(:placeholder-shown) + label span,
.form-group.form-control-wave textarea:focus + label span,
.form-group.form-control-wave textarea:not(:placeholder-shown) + label span {
  color: var(--accent, #ff5722);
  transform: translateY(-24px) scale(0.85);
  transform-origin: top left;
}
.form-group.form-control-wave input:-webkit-autofill + label span {
  color: var(--accent, #ff5722);
  transform: translateY(-24px) scale(0.85);
  transform-origin: top left;
}
.auth-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.auth-submit-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none !important;
}
.auth-submit-btn i.fa-spinner {
  font-size: 0.95rem;
}
.auth-error {
  color: var(--sale-red);
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.25rem;
  margin-top: 8px;
  transition: all 0.2s ease;
}
.auth-error.auth-loading {
  color: var(--text-secondary);
}
.auth-error.auth-success {
  color: var(--success, #10b981);
}

.order-history-section { margin-top: 1rem; border-top: 1px solid var(--border-color); padding-top: 1rem; }
#order-history-list, #orders-history-list { display: flex; flex-direction: column; gap: 1rem; max-height: calc(85vh - 140px); overflow-y: auto; padding-right: 4px; }
.order-item { background: var(--bg-primary); padding: 1.1rem; border-radius: var(--radius-md); border: 1px solid var(--border-color); }

/* Order Rate & Review Feature */
.order-rate-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--on-accent, #000);
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  touch-action: manipulation;
}
.order-rate-review-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.order-rate-review-btn.is-reviewed {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.order-rate-review-btn.is-reviewed:hover {
  background: rgba(255, 255, 255, 0.14);
}

.order-review-form-wrap {
  margin-top: 12px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.2s ease;
}

.order-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.order-review-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-star-select {
  display: flex;
  align-items: center;
  gap: 3px;
}
.order-star-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #444;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s, transform 0.15s;
  touch-action: manipulation;
}
.order-star-btn:hover,
.order-star-btn.active {
  color: #fbbf24;
  transform: scale(1.15);
}
.order-star-hint {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-left: 8px;
}

.order-review-comment {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 10px 12px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.order-review-comment:focus {
  border-color: var(--accent);
}

.order-review-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.order-review-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  touch-action: manipulation;
}
.order-review-upload-btn:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.order-review-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.order-review-preview-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.order-review-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.order-review-remove-img {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.8);
  color: #fff;
  border: none;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.order-review-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.order-review-submit-btn {
  background: var(--accent);
  color: var(--on-accent, #000);
  border: none;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s;
}
.order-review-submit-btn:hover {
  filter: brightness(1.1);
}
.order-review-cancel-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  cursor: pointer;
}
.order-review-cancel-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.order-existing-review {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(var(--accent-rgb, 212, 175, 55), 0.05);
  border: 1px solid rgba(var(--accent-rgb, 212, 175, 55), 0.2);
  border-radius: 6px;
}
.order-existing-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.order-existing-stars {
  color: #fbbf24;
  font-size: 0.88rem;
  letter-spacing: 2px;
}
.order-existing-date {
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.order-existing-comment {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 4px 0;
}
.order-existing-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.order-existing-photo {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.2s;
}
.order-existing-photo:hover {
  transform: scale(1.08);
}
.logout-btn {
  margin-top: 2rem; width: 100%; padding: 0.75rem;
  background: transparent; border: 1px solid var(--sale-red); color: var(--sale-red);
  border-radius: var(--radius-md); cursor: pointer; font-weight: 600;
}

/* Classes for what used to be inline styles in the modal markup (now the
   shared <site-overlays> component, site-overlays.js). */
site-overlays { display: contents; }
/* Homepage "Are you an organisation?" band */
.b2b-cta-section { border-top: 1px solid var(--border); }
.app-content .b2b-cta-title {
  font-size: var(--text-h2);
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  hyphens: auto;
}
.b2b-cta-text { font-size: var(--text-large); margin-bottom: 2rem; }
/* The image carries a drop shadow; the shared .app-image clip cut it off. */
.b2b-cta-media { overflow: visible; }
.institutional-cta-img {
  width: 100%;
  height: auto;
  max-width: 400px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.auth-success { color: var(--success); }
.auth-link-row { text-align: center; margin-top: 15px; }
.auth-link-row--end { text-align: right; margin: 0 0 15px; }
.auth-link {
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--accent);
  cursor: pointer;
}
.auth-link:hover { text-decoration: underline; }
.auth-link--muted { color: var(--text-secondary); }
.auth-submit-btn--secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.auth-submit-btn--secondary:hover { border-color: var(--accent); }
.profile-subform {
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}
.orders-modal-title { font-family: var(--font-heading); margin-top: 0; }
.orders-modal-title + .order-history-section { margin-top: 1.5rem; }
.modal-stock-status { margin-top: 5px; font-weight: 600; font-size: 0.9rem; }
.accordion-list { padding-left: 20px; text-align: left; margin: 10px 0; }
/* --- Global Search Overlay --- */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(60px, 9vh, 90px) 16px 24px 16px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-premium);
}

.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.search-container {
  width: 100%;
  max-width: 660px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 12px;
  position: relative;
  z-index: 10005;
  transform: translateY(-16px) scale(0.98);
  transition: transform 0.25s var(--ease-premium);
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  display: flex;
  flex-direction: column;
}

.search-overlay.open .search-container {
  transform: translateY(0) scale(1);
}

.search-close-btn {
  position: absolute;
  top: -42px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}

.search-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .search-overlay {
    padding: 55px 12px 16px 12px;
  }
  .search-container {
    max-width: 100%;
    padding: 10px;
    border-radius: var(--radius-lg);
  }
  .search-close-btn {
    top: -38px;
    right: 4px;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

.global-search-form {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  overflow: hidden;
  padding: 4px 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: text;
}

.global-search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 212, 175, 55), 0.15);
}

.global-search-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 10px 14px;
  outline: none;
  cursor: text !important;
  caret-color: var(--accent, #ff4c24) !important;
  -webkit-user-select: text;
  user-select: text;
}

.global-search-form button {
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.global-search-form button:hover {
  transform: scale(1.05);
}

/* Suggestions & Live Posters Grid */
.search-suggestions {
  margin-top: 12px;
  overflow-y: auto;
  border-radius: var(--radius-md);
  display: none;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.search-suggestions.active {
  display: flex;
}

.search-suggestions::-webkit-scrollbar {
  width: 5px;
}
.search-suggestions::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

.search-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 8px 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.search-results-count {
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.search-results-count i {
  color: var(--accent);
}

.search-results-hint {
  font-size: 0.74rem;
  opacity: 0.8;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 4px 0;
}

@media (max-width: 520px) {
  .search-results-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.search-product-card,
.search-product-card * {
  cursor: pointer;
}

.search-product-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid transparent;
  color: var(--text-primary);
  text-decoration: none;
  transition: transform 0.2s var(--ease-premium), background 0.2s, border-color 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.search-product-card:hover,
.search-product-card:focus-visible {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.08);
  border-color: var(--border-color);
}

:root[data-theme="dark"] .search-product-card:hover,
:root[data-theme="dark"] .search-product-card:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.search-product-thumb {
  position: relative;
  width: 50px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #0a0a0a !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .search-product-thumb {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.search-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Hover overlay: reveals the signature Brush emblem over dark backdrop */
.search-product-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(10, 10, 10, 0.72);
  background-image: url('/assets/misc/favicon.svg');
  background-size: 26px 26px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.85);
  z-index: 2;
}

.search-product-card:hover .search-product-thumb::after,
.search-product-card:focus-visible .search-product-thumb::after {
  opacity: 1;
  transform: scale(1);
}

.search-product-card:hover .search-product-thumb img,
.search-product-card:focus-visible .search-product-thumb img {
  transform: scale(1.08);
  opacity: 0.85;
}

.search-product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.search-product-cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}

.search-product-title {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-product-price {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 1px;
}

.search-product-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 0.52rem;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.search-view-all-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 50px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
  border: 1px solid var(--border-color);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.search-view-all-cta:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.search-no-results {
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.search-empty-icon {
  font-size: 1.8rem;
  color: var(--text-secondary);
  opacity: 0.5;
  margin-bottom: 2px;
}

.search-empty-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin: 0;
}

.search-empty-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 8px 0;
}

.search-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.search-quick-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 5px 12px;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.search-quick-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* FAQ Section */
.faq-section {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.faq-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.faq-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-primary);
}

.faq-qmark {
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.faq-accordion-col {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
}

.faq-item:hover {
  background: rgba(var(--accent-rgb), 0.04);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  padding-left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent);
  padding-left: 8px;
}

.faq-q-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-q-text i {
  color: var(--accent);
  width: 20px;
  text-align: center;
}

.faq-toggle-icon {
  transition: transform 0.3s ease;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

/* grid-template-rows 0fr->1fr, not the old max-height:0->500px hack — that
   guessed a large fixed max-height, so the transition duration applied
   across the full 500px regardless of how short the actual answer was
   (harmless for these short answers, but imprecise and not reusable if a
   longer answer is ever added). This animates to the exact natural content
   height instead, for every answer length. Needs the .faq-answer-inner
   wrapper in the markup — the row-track animates the grid container itself,
   while the inner div's own overflow:hidden clips its content during that. */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.6;
  /* margin-bottom, not padding on the wrapper — padding doesn't collapse
     via min-height:0 (min-height constrains the content box, padding is
     added on top of it regardless), so at grid-template-rows: 0fr the
     collapsed row was stuck at 24px instead of 0. A margin on this
     innermost element does actually disappear once its clipped,
     zero-height ancestor stops rendering it. */
  margin: 0 0 1.5rem 0;
  padding-left: 32px;
}

.faq-image-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.faq-image-col img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.5rem;
  /* The source JPG is a flat illustration on a solid white canvas (no
     transparency), which in dark mode reads as a stray light panel dropped
     into an otherwise dark, photographic page. multiply blends that white
     canvas into --bg-card (white is the multiply identity, so it
     disappears into whatever's behind it) while the illustration's dark
     linework and color accents stay put — no new asset needed. In light
     mode --bg-card is already a near-white cream, so multiply is a no-op
     there and nothing changes. */
  mix-blend-mode: multiply;
}

@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .faq-image-col {
    order: -1;
  }
  
  .faq-image-col img {
    max-width: 80%;
  }
}

/* ==========================================================================
   STICKER BOMB WALL (INTERACTIVE PLAYGROUND)
   ========================================================================== */
.sticker-wall-section {
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}

.sticker-wall-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 20px;
}

.sticker-wall-header-left {
  max-width: 650px;
}

.sticker-wall-title {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 8px 0 10px;
  text-transform: uppercase;
}

.sticker-wall-title .accent-text {
  color: var(--accent, #ff4c24);
}

.sticker-wall-desc {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1rem;
  color: var(--text-secondary, #64748b);
  margin: 0;
  line-height: 1.5;
}

.sticker-wall-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sticker-wall-shuffle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border, rgba(0, 0, 0, 0.15));
  background: var(--bg-card, #ffffff);
  color: var(--text-primary, #0f172a);
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticker-wall-shuffle-btn:hover {
  border-color: var(--accent, #ff4c24);
  color: var(--accent, #ff4c24);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 76, 36, 0.2);
}

.sticker-wall-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent, #ff4c24);
  color: #ffffff;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticker-wall-shop-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #000000;
  color: #ffffff;
}

/* The Interactive Canvas Area */
.sticker-bomb-canvas {
  position: relative;
  width: 100%;
  height: clamp(480px, 58vw, 660px);
  border: 3px solid #000000;
  border-radius: 24px;
  background-color: var(--bg-card, #ffffff);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1.2px, transparent 1.2px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  box-shadow: 8px 10px 0px #000000, 0 16px 36px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

html[data-theme="dark"] .sticker-bomb-canvas {
  background-color: #121217;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 8px 10px 0px rgba(0, 0, 0, 0.6), 0 16px 40px rgba(0, 0, 0, 0.4);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1.2px, transparent 1.2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1.2px, transparent 1.2px);
}

/* Big Central Watermark */
.bomb-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  text-align: center;
  pointer-events: none;
  z-index: 1;
}

.bomb-watermark b {
  display: block;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-weight: 900;
  font-size: clamp(4rem, 11vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2.5px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .bomb-watermark b {
  -webkit-text-stroke: 2.5px rgba(255, 255, 255, 0.1);
}

/* Individual Draggable Stickers with Die-Cut Feel */
.wall-sticker-item {
  position: absolute;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 5;
  transition: filter 0.2s ease, transform 0.18s ease;
}

.wall-sticker-item.die-cut-contour img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter:
    drop-shadow(3px 0 0 #ffffff)
    drop-shadow(-3px 0 0 #ffffff)
    drop-shadow(0 3px 0 #ffffff)
    drop-shadow(0 -3px 0 #ffffff)
    drop-shadow(2px 2px 0 #ffffff)
    drop-shadow(-2px -2px 0 #ffffff)
    drop-shadow(3px 5px 12px rgba(0, 0, 0, 0.24));
}

.wall-sticker-item:hover {
  transform: scale(1.1) !important;
  z-index: 45;
}

.wall-sticker-item.is-dragging {
  cursor: grabbing !important;
  transform: scale(1.18) !important;
  z-index: 999 !important;
}

.wall-sticker-item.is-dragging img {
  filter:
    drop-shadow(3.5px 0 0 #ffffff)
    drop-shadow(-3.5px 0 0 #ffffff)
    drop-shadow(0 3.5px 0 #ffffff)
    drop-shadow(0 -3.5px 0 #ffffff)
    drop-shadow(2px 2px 0 #ffffff)
    drop-shadow(-2px -2px 0 #ffffff)
    drop-shadow(10px 18px 28px rgba(0, 0, 0, 0.38));
}

/* Bottom Right Hint Pill */
.bomb-hint-badge {
  position: absolute;
  right: 18px;
  bottom: 16px;
  background: #111116;
  color: #facc15;
  border: 1.5px solid #000000;
  border-radius: 999px;
  padding: 7px 15px;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 2px 3px 0px #000000;
  pointer-events: none;
  z-index: 100;
  animation: hintPulse 2.8s infinite ease-in-out;
}

@keyframes hintPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (max-width: 680px) {
  .sticker-wall-section {
    padding: 60px 0 40px;
  }
  .sticker-bomb-canvas {
    height: 440px;
    border-radius: 18px;
    box-shadow: 5px 6px 0px #000000;
  }
  .sticker-wall-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .sticker-wall-header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .bomb-hint-badge {
    right: 12px;
    bottom: 12px;
    font-size: 0.72rem;
    padding: 5px 11px;
  }
}

/* Custom Prints Section */
.custom-prints-section {
  padding: 6rem 0;
  background-color: var(--bg-primary);
}

.custom-prints-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.custom-prints-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0;
  line-height: 1.1;
  color: var(--text-primary);
}

.custom-prints-subtitle {
  font-size: 1.2rem;
  letter-spacing: 12px;
  text-indent: 12px; /* cancels the trailing letter-space so the word stays centred */
  font-weight: 400;
  color: var(--accent);
  display: block;
  margin-top: 10px;
}

.custom-prints-header .coming-soon-tag {
  position: absolute;
  top: -30px;
  right: 10%;
  background: var(--accent);
  color: var(--on-accent);
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
}

.custom-prints-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0 1rem;
}

.custom-print-card {
  position: relative;
  flex: 1 1 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med);
  cursor: pointer;
  height: 400px;
}

.custom-print-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(var(--accent-rgb), 0.15);
}

.custom-print-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: transform var(--transition-slow);
}

.custom-print-card:hover img {
  transform: scale(1.08);
}

.custom-print-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 1rem;
  z-index: 2;
  text-align: center;
  /* Always a dark scrim for legibility over the poster photo underneath —
     intentionally not theme-linked, unlike --bg-primary which flips in light mode. */
  background: linear-gradient(to bottom, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0) 100%);
  height: 150px;
}

.cursive-text {
  font-family: 'Brush Script MT', 'Dancing Script', cursive, var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0 0 -5px 0;
  color: var(--accent);
}

.custom-print-overlay h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
  color: var(--brand-cream); /* sits on a permanent dark scrim over a photo — stays light in both themes */
}

.custom-print-btn {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  padding: 6px 16px;
  font-size: 0.75rem;
  border-radius: var(--radius-xl);
  cursor: not-allowed;
  opacity: 0.9;
}

@media (max-width: 1200px) {
  .custom-prints-grid {
    gap: 1.25rem;
  }
  .custom-prints-header .coming-soon-tag {
    right: 5%;
  }
}

@media (max-width: 768px) {
  .custom-prints-grid {
    gap: 1rem;
  }
  .custom-print-card {
    flex-basis: calc(50% - 0.5rem);
    height: 320px;
  }
  .custom-prints-header .coming-soon-tag {
    position: relative;
    top: auto;
    right: auto;
    display: inline-block;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .custom-print-card {
    flex-basis: 100%;
    height: 300px;
  }
}

/* Content Protection Styles */
body {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -webkit--ms-user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

input, textarea {
  -webkit-user-select: auto;
  user-select: auto;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  -webkit-touch-callout: none;
}

/* Screen Capture & Window Blur Shield */
#screen-capture-shield {
  display: none;
  position: fixed;
  inset: 0;
  background: #0a0a0c;
  z-index: 2147483647;
  pointer-events: all;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: inherit;
  text-align: center;
  padding: 24px;
}
#screen-capture-shield.shield-active {
  display: flex !important;
}
#screen-capture-shield .shield-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
#screen-capture-shield .shield-subtitle {
  font-size: 14px;
  color: #888;
}

/* Print Protection: Blank all content when printing or saving as PDF */
@media print {
  html, body {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* Wall Setup Packs */
.wall-setup-section {
  padding: 5rem 0;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.ws-header {
  text-align: center;
  margin-bottom: 3rem;
}

.ws-title-main {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0;
  color: var(--text-primary);
}

.ws-subtitle {
  font-size: 0.75rem;
  letter-spacing: 8px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 10px;
}

.ws-track .wall-setup-card {
  flex-shrink: 0;
  width: 280px;
  scroll-snap-align: start;
}

/* Wall Setup Carousel Navigation Arrows: vertically centered with the 4:3 mockup images */
.wall-setup-section .scroll-nav {
  top: 115px;
}

.wall-setup-section .scroll-nav.prev {
  left: -20px;
}

.wall-setup-section .scroll-nav.next {
  right: -20px;
}

.wall-setup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: left;
  transition: transform var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (hover: hover) {
  .wall-setup-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-light);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(var(--accent-rgb), 0.15);
  }
}

.ws-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.ws-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
}

.wall-setup-card:not(.ws-split-card):hover .ws-img-container img {
  transform: scale(1.05);
}

.ws-sale-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 4px 10px;
  font-size: var(--text-micro);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  z-index: 2;
}

.ws-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ws-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ws-brand {
  display: none !important;
}

.ws-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.ws-old-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.ws-new-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .ws-track .wall-setup-card {
    width: 240px;
  }
}

/* =========================================
   Interactive Lookbook Room Hotspot Showcase
========================================= */
.room-hotspot-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.room-hotspot-stage {
  max-width: 1100px;
  margin: 2.2rem auto 0;
  position: relative;
}

.room-hotspot-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--border-light);
  background: var(--bg-secondary);
}

.room-hotspot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.room-hotspot-canvas:hover .room-hotspot-image {
  transform: scale(1.015);
}

/* Pulsing Hotspot Pins */
.hotspot-pin {
  position: absolute;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  outline: none;
}

.hotspot-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  background: rgba(var(--accent-rgb, 255, 68, 68), 0.45);
  border-radius: 50%;
  pointer-events: none;
  animation: hotspotPulse 2.4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes hotspotPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.9;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

.hotspot-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 2.5px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease;
}

.hotspot-pin:hover .hotspot-dot,
.hotspot-pin:focus-visible .hotspot-dot,
.hotspot-pin.is-active .hotspot-dot {
  transform: translate(-50%, -50%) scale(1.22);
  background: var(--accent);
  color: #fff;
  border-color: #fff;
}

.hotspot-pin.is-active .hotspot-dot i {
  transform: rotate(45deg);
}

/* Floating Popover Micro-card */
.hotspot-popover {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  width: 250px;
  background: rgba(18, 18, 22, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md, 10px);
  padding: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  display: flex;
  gap: 12px;
  align-items: center;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.25s;
  z-index: 20;
}

/* Tooltip Arrow */
.hotspot-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(18, 18, 22, 0.94) transparent transparent transparent;
}

/* Open state on hover, focus, or tap */
.hotspot-pin:hover .hotspot-popover,
.hotspot-pin:focus-within .hotspot-popover,
.hotspot-pin.is-active .hotspot-popover {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.hotspot-popover-thumb {
  width: 58px;
  height: 74px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hotspot-popover-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hotspot-popover-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.hotspot-popover-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.hotspot-popover-title {
  font-family: var(--font-heading, inherit);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hotspot-popover-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}

.hotspot-cur-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.hotspot-old-price {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
}

.hotspot-popover-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hotspot-popover-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hotspot-popover-btn.primary {
  background: var(--accent);
  color: #fff;
}

.hotspot-popover-btn.primary:hover {
  background: #ff5252;
}

.hotspot-popover-btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #eee;
}

.hotspot-popover-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Bottom Bar CTA */
.room-hotspot-bottombar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.92) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 12;
}

.room-hotspot-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.room-hotspot-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.room-hotspot-caption {
  font-size: 0.88rem;
  color: #fff;
  margin: 0;
}

.room-hotspot-caption strong {
  color: var(--accent);
}

.room-hotspot-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .room-hotspot-canvas {
    aspect-ratio: 4 / 3;
  }
  .room-hotspot-bottombar {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }
  .room-hotspot-cta {
    width: 100%;
    justify-content: center;
  }
  .hotspot-popover {
    width: 220px;
    padding: 10px;
  }
}

/* =========================================
   Reach Out Section & Modals
========================================= */
.reachout-section {
  padding: 80px 20px;
  background: var(--bg-primary);
}

.reachout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.reachout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.reachout-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 24px rgba(var(--accent-rgb), 0.12);
}

.reachout-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-block;
  transition: transform var(--transition-med);
}

.reachout-card:hover .reachout-icon {
  transform: scale(1.15) rotate(-4deg);
}

.reachout-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.reachout-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
  min-height: 44px;
}

.reachout-btn {
  width: 100%;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.reachout-btn:hover {
  background: var(--accent);
  color: var(--on-accent);
}

/* Modals */
.reachout-modal-overlay {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.reachout-modal-overlay.active {
  display: block !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.reachout-modal {
  display: none !important;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: 90%;
  max-width: 500px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-med), visibility var(--transition-med), transform var(--transition-med);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.reachout-modal.active {
  display: block !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

/* Defensive shield: Never allow inactive overlays or modals to paint, composite or capture pointer events */
.reachout-modal-overlay:not(.active),
.reachout-modal:not(.active),
.auth-modal-overlay:not(.open):not(.active),
.profile-modal-overlay:not(.open):not(.active),
.auth-modal:not(.open):not(.active),
.profile-modal:not(.open):not(.active),
.product-modal-overlay:not(.open),
.product-modal:not(.open),
.arrivals-popup-overlay:not(.is-open),
.arrivals-popup-modal:not(.is-open),
.search-overlay:not(.open) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.reachout-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.reachout-close-btn:hover {
  color: var(--accent);
}

.reachout-modal h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 24px;
  text-align: center;
}

.reachout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reachout-form .hero-cta {
  margin-top: 10px;
  width: 100%;
  border: none;
  cursor: pointer;
}

/* ===== PRODUCT ACCORDIONS ===== */
.product-accordions {
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.product-accordion {
  border-bottom: 1px solid var(--border-color);
}

.product-accordion summary {
  padding: 1.2rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-accordion summary::-webkit-details-marker {
  display: none;
}

.product-accordion summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.3s ease;
}

.product-accordion[open] summary::after {
  content: '-';
  transform: rotate(180deg);
}

.product-accordion .accordion-content {
  padding-bottom: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== SKELETON LOADER ===== */
.shimmer-bg {
  background: var(--bg-secondary);
  background-image: linear-gradient(
    90deg,
    rgba(0,0,0, 0) 0,
    rgba(0,0,0, 0.05) 20%,
    rgba(0,0,0, 0.1) 60%,
    rgba(0,0,0, 0)
  );
  background-size: 200% 100%;
  animation: flipkartShimmer 1.5s infinite linear;
}
:root[data-theme="dark"] .shimmer-bg {
  background-image: linear-gradient(
    90deg,
    rgba(255,255,255, 0) 0,
    rgba(255,255,255, 0.08) 20%,
    rgba(255,255,255, 0.15) 60%,
    rgba(255,255,255, 0)
  );
}
@keyframes flipkartShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-card { pointer-events: none; }
.skeleton-card .product-image-container { aspect-ratio: 4/5; width: 100%; }
.skeleton-text { border-radius: 2px; }

/* ===== TRUSTED BY SECTION ===== */
.trusted-by-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
  text-align: center;
  overflow: hidden;
}

.trusted-title {
  font-family: var(--font-heading);
  margin-top: 0;
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 700;
}

.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
  flex-wrap: wrap;
}

.trusted-logo {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 900;
  letter-spacing: var(--tracking-tighter);
  color: var(--text-primary);
  opacity: 0.3;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  cursor: default;
}

.trusted-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.category-card:hover .plain-product-image { transform: scale(1.05); transition: all var(--transition-med); }

.list-item:hover .plain-product-image {
  transform: scale(1.05);
  transition: all var(--transition-med);
}


/* =====================================================================
   FIXES — layout stability & category cards (Sep 2026 debugging pass)
   ===================================================================== */

/* Category cards: every card gets the same 4:5 media box, whatever the
   source image's shape, so the four tiles line up in one clean row. */
.category-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.category-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-secondary);
}
.category-card-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow), filter var(--transition-med);
}
.category-card:hover .category-card-media > img {
  transform: scale(1.05);
  filter: none;
}
.category-card-overlay { z-index: 1; }
.category-card-title {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
}

/* Product imagery: never collapse, never letterbox. */
.product-card-image > img,
.list-item-img-wrapper > img,
.plain-product-image,
.arrivals-tape-image img,
.arrivals-spotlight-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none !important;
  user-drag: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  pointer-events: none; /* Prevents image drag from hijacking track/page scrolling */
}
.product-card-image > img { position: absolute; inset: 0; }
.product-card-image .product-badge,
.product-card-image .product-quick-actions { z-index: 2; }

/* Skeletons in the carousels share the real card's footprint so nothing
   jumps when products arrive. */
.scroll-track .skeleton-card .product-image-container {
  aspect-ratio: 2193 / 3348;
}

.products-error {
  padding: 2rem 1rem;
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
}

/* width/height attributes are there for layout stability only. */
.faq-image-col img,
.app-image img { height: auto; }

/* Reveal safety net: if JS never runs, nothing stays invisible. */
.no-js .fade-in,
.no-js .scale-in { opacity: 1; transform: none; }

/* Mobile navbar sheet sits below the pill's own controls. */
@media (max-width: 1024px) {
  .nav-links { z-index: -1; padding-top: 110px; }
  .nav-links.open { z-index: 1; }
  .nav-actions { position: relative; z-index: 2; }
  .nav-brand { position: relative; z-index: 2; }
}

@media (max-width: 640px) {
  .category-card-title { font-size: 0.95rem; padding: 12px; }
  .category-card-overlay { padding: 14px; }
  .category-card-overlay p { font-size: 0.72rem; }
}

@media (max-width: 480px) {
  .category-card-overlay {
    padding: 10px 12px;
  }
  .category-card-overlay p {
    font-size: 0.7rem;
    line-height: 1.25;
  }
  .category-card-overlay .cat-arrow {
    margin-top: 4px;
    font-size: 0.68rem;
  }
  .category-card-title {
    font-size: 0.88rem;
    padding: 9px 11px;
  }
}

/* Signed-in greeting next to the account icon — first name only, never wraps. */
.nav-action-btn.has-greeting {
  width: auto;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  gap: 6px;
}
.nav-action-btn.has-greeting svg { flex-shrink: 0; width: 22px !important; height: 22px !important; }
.nav-user-greeting {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .nav-user-greeting { display: none; }
  .nav-action-btn.has-greeting { width: 40px; padding: 0; }
}
@media (max-width: 480px) {
  .nav-action-btn.has-greeting { width: 36px; }
  .nav-brand img {
    height: 24px !important;
    width: auto !important;
    aspect-ratio: 360 / 93;
    object-fit: contain;
    flex-shrink: 0;
  }
}

/* Hide shimmer once image loads to prevent it showing through transparent PNGs forever */
.product-card-image:has(img.loaded)::before,
.mockup-wrapper:has(img.loaded)::before,
.modal-plain-image-wrapper:has(img.loaded)::before {
  display: none !important;
}

/* Custom crop for apparel cards to show the design clearly while keeping it fully visible */
.plain-product-image.apparel-card-img {
  object-fit: cover;
  object-position: center 25%;
}

/* ===== APPAREL GALLERY (product modal) =====
   Back / Front / Design layout / Size chart. Zoom scales the active image
   in place around the cursor (transform-origin follows the pointer), so
   there is no separate lens to misalign. */
.apparel-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  outline: none;
}
.ag-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-secondary);
  cursor: default;
}
.ag-stage.in-zoom-zone { cursor: zoom-in; }
.apparel-gallery.ag-no-zoom .ag-hint { display: none; }
.ag-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ag-slide.is-active { opacity: 1; visibility: visible; }
.ag-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.25s ease-out;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.ag-slide[data-fit="contain"] {
  padding: clamp(16px, 3.5%, 36px);
  background: var(--bg-secondary);
}
.ag-slide[data-fit="contain"] img {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.14));
}
/* Framed room mockup: museum hardwood frame on Spacejoy wall.
   Strictly contain fit so the entire room scene, artwork frame, and decor
   fit perfectly with 0% cropping on any device screen. */
.ag-slide[data-fit="framed"] {
  padding: 0;
  background: var(--bg-secondary);
}
.ag-slide[data-fit="framed"] img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
/* Hoodie print art: transparent PNGs in dark ink, and the resized webp the
   image pipeline serves is flattened onto white — so this fit is pure white
   rather than the warm card, or the flattened edge would show as a rectangle. */
.ag-slide[data-fit="print"] { padding: 4%; background: #fff; }
.ag-slide[data-fit="print"] img { object-fit: contain; }
.ag-slide.is-zoomed img { transform: scale(var(--ag-zoom, 2.4)); transition: transform 0.2s ease-out; }
.ag-slide.is-locked { cursor: zoom-out; }
.ag-stage.in-zoom-zone:has(.ag-slide.is-active.is-locked) { cursor: zoom-out; }

.ag-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--bg-primary) 88%, transparent);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.ag-nav:hover { transform: translateY(-50%) scale(1.08); }
.ag-prev { left: 18px; }
.ag-next { right: 18px; }
.ag-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.ag-stage:has(.is-zoomed) .ag-hint { opacity: 0; }

.ag-thumbs {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  justify-content: center;
}
.ag-thumbs::-webkit-scrollbar { display: none; }
.ag-thumb {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: none;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.ag-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  opacity: 0.75;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
/* Hoodie print art: transparent ink PNGs */
.ag-thumb[data-fit="print"] img {
  object-fit: contain;
  background: #fff;
  padding: 4px;
}
/* Poster art thumbnail adapts to theme card background */
.ag-thumb[data-fit="contain"] img {
  object-fit: contain;
  background: var(--bg-card);
  padding: 3px;
}
/* Framed room mockup thumbnail */
.ag-thumb[data-fit="framed"] img {
  object-fit: cover;
  background: var(--bg-card);
  padding: 0;
}
.ag-thumb:hover img,
.ag-thumb.is-active img {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}
.ag-thumb.is-active {
  border-color: transparent;
  color: var(--text-primary);
}

.modal-image-col:has(.apparel-gallery) { align-items: stretch; }

@media (max-width: 768px) {
  .modal-image-col:has(.apparel-gallery) { padding: 0; }
  .apparel-gallery { height: auto; display: block; }
  .ag-stage { flex: none; aspect-ratio: 4 / 5; }
  .ag-nav { width: 38px; height: 38px; }
  .ag-prev { left: 10px; }
  .ag-next { right: 10px; }
  .ag-thumb img { width: 52px; height: 52px; }
}

/* ===== NAV: CATEGORIES DROPDOWN ===== */
.nav-dropdown { position: relative; }
.nav-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.nav-dd-toggle:hover,
.nav-dropdown.open .nav-dd-toggle { color: var(--text-primary); }
.nav-dd-caret { font-size: 0.65em; transition: transform 0.25s ease; }
.nav-dropdown.open .nav-dd-caret { transform: rotate(180deg); }

.nav-dd-panel {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  width: 520px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px 22px;
  padding: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 5;
}
.nav-links .nav-dd-item.nav-dd-item--feature {
  margin-top: 6px;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  color: var(--accent);
}

/* invisible bridge so the pointer can travel from toggle to panel */
.nav-dd-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.nav-dropdown.open .nav-dd-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-dd-heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted, var(--text-secondary));
  margin: 0 0 8px;
}
.nav-links .nav-dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  margin: 0 -10px;
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-weight: 600;
  transition: background 0.15s ease;
}
.nav-links .nav-dd-item i {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 0.85rem;
}
.nav-links .nav-dd-item:hover { background: var(--bg-secondary); }
.nav-dd-genres { display: flex; flex-wrap: wrap; gap: 8px; }
/* Sub-categories under a product type (Apparel -> T-Shirts / Hoodies) */
.nav-dd-subs { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 8px 40px; }
.nav-links .nav-dd-genre {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.nav-links .nav-dd-genre:hover { border-color: var(--accent); color: var(--accent); }
.nav-links .nav-dd-all {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}
.nav-dropdown .nav-dd-panel a::after { display: none; }

@media (max-width: 1024px) {
  .nav-dropdown { width: 100%; max-width: 420px; text-align: center; }
  .nav-dd-toggle { font-size: 1.4rem; color: var(--text-primary); }
  .nav-dd-panel {
    position: static;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    transform: none;
    opacity: 1;
    visibility: visible;
    margin-top: 14px;
    padding: 14px;
    box-shadow: none;
    text-align: left;
  }
  .nav-dropdown.open .nav-dd-panel { display: grid; transform: none; }
  .nav-dd-panel::before { display: none; }
  .nav-links .nav-dd-item { font-size: 1rem; }
  .nav-links .nav-dd-genre { font-size: 0.8rem; }
  .nav-links .nav-dd-all { font-size: 0.9rem; }
  
}

/* Five product categories: one row on wide screens, balanced wrap below. */
.categories-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .categories-grid > .category-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .categories-grid > .category-card:last-child:nth-child(odd) .category-card-media { aspect-ratio: 16 / 9; }
}

/* ===== STAR RATINGS ===== */
:root { --star-on: #f5a623; --star-off: color-mix(in srgb, var(--text-secondary) 28%, transparent); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Read-only strip: a 5-star mask filled to --rating/5 of its width. */
.stars {
  --size: 16px;
  display: inline-block;
  vertical-align: middle;
  width: calc(var(--size) * 5);
  height: var(--size);
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--star-on) calc(var(--rating, 0) / 5 * 100%), var(--star-off) 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") left center / var(--size) var(--size) repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") left center / var(--size) var(--size) repeat-x;
}
.stars.stars-sm { --size: 12px; }
.testimonial-stars .stars { --size: 17px; }
.review-stars { margin-bottom: 6px; }

.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.modal-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
  padding: 4px 0;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.modal-rating .stars { --size: 18px; }
.modal-rating-value { font-weight: 700; color: var(--text-primary); }
.modal-rating:hover .modal-rating-count { text-decoration: underline; }

/* Interactive picker. Radios run 5→1 in the DOM with row-reverse so
   "this star and every star before it" is just `:hover ~ label`. */
.star-input { display: flex; flex-direction: column; gap: 6px; }
/* Interactive picker (SelfMadeSystem/selfish-starfish-40 5-star radio system) */
.star-input { display: flex; flex-direction: column; gap: 8px; }
.star-input-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.35rem;
  --stroke: rgba(255, 255, 255, 0.35);
  --fill: #ffb800;
}
.star-input input[type="radio"] {
  appearance: unset;
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
.star-input label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background: transparent;
  transition: transform 0.2s ease;
}
.star-input label svg.star-svg {
  width: 2rem;
  height: 2rem;
  overflow: visible;
  fill: transparent;
  stroke: var(--stroke);
  stroke-linejoin: bevel;
  stroke-dasharray: 12;
  animation: starIdle 4s linear infinite;
  transition: stroke 0.2s, fill 0.4s, transform 0.2s;
}
@keyframes starIdle {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}
.star-input label:hover svg.star-svg {
  stroke: var(--fill);
}
.star-input input:checked ~ label svg.star-svg {
  transition: 0s;
  animation: starIdle 4s linear infinite, starYippee 0.75s backwards;
  fill: var(--fill);
  stroke: var(--fill);
  stroke-opacity: 0;
}
.star-input input:checked + label svg.star-svg {
  animation: starIdle 4s linear infinite, starYippee 0.75s backwards;
  fill: var(--fill);
  stroke: var(--fill);
  stroke-opacity: 0;
}
.star-input-stars:hover label svg.star-svg {
  fill: transparent !important;
  stroke: var(--stroke) !important;
  stroke-opacity: 1 !important;
  transform: scale(1) !important;
}
.star-input-stars label:hover ~ label svg.star-svg,
.star-input-stars label:hover svg.star-svg {
  fill: var(--fill) !important;
  stroke: var(--fill) !important;
  stroke-opacity: 0 !important;
  transform: scale(1.18) !important;
}
@keyframes starYippee {
  0% { transform: scale(1); }
  50% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
.star-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-md); }
.star-input label.pop { animation: starPop 0.35s ease; }
@keyframes starPop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
.star-input-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
}
.star-input-caption { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.star-input-caption.is-preview { color: var(--star-on, #ffb800); }
.star-input-clear-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: underline;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.star-input-clear-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
.star-input.needs-rating .star-input-caption { color: var(--sale-red, #e5484d); }
.star-input.shake { animation: starShake 0.4s ease; }
@keyframes starShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) {
  .star-input label.pop, .star-input.shake, .star-input svg.star-svg { animation: none !important; }
}
@media (max-width: 768px) {
  .ag-hint { left: 12px; transform: none; bottom: 12px; }
}

/* ===== VARIANT SWATCHES ===== */
.swatch-btn[hidden] { display: none !important; }
.swatch-group--size .swatch-btn { min-width: 58px; padding: 0.55rem 0.8rem; }
.swatch-group--style { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.swatch-group--style .swatch-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}
.swatch-group.is-single .swatch-btn { cursor: default; }
.variant-note {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.cart-total-note { display: block; font-size: 0.68rem; font-weight: 500; color: var(--text-secondary); margin-top: 2px; }

/* Design-layout slide: same 10:7 frame as the tee photos — show it whole,
   as large as the stage allows, on a neutral backdrop. */
.ag-slide[data-fit="sheet"] { background: var(--bg-secondary); }
.ag-slide[data-fit="sheet"] img { object-fit: contain; }




/* ===== COLLECTIBLE MODAL LAYOUT ===== */
.modal-content-wrapper[data-product-type="collectibles" i] .modal-image-col {
  /* Width now comes from --media-col like every other type — this block used
     to pin it to 40-60%, which left a fifth of the column empty beside a tall
     figure. Only the transparent ground is collectible-specific. */
  background: var(--bg-primary);
}
.modal-content-wrapper[data-product-type="collectibles" i] .modal-info-col {
  flex: 1;
  width: auto;
}
.modal-content-wrapper[data-product-type="collectibles" i] .ag-stage {
  aspect-ratio: 2 / 3;
  margin: auto;
  max-height: calc(100vh - 120px);
  background: transparent;
}
.ag-slide[data-fit="collectible"] { padding: 0; background: transparent; }
.ag-slide[data-fit="collectible"] img { object-fit: contain; }

/* Collectible Mobile Overrides */
@media (max-width: 768px) {
  .modal-content-wrapper[data-product-type="collectibles" i] .modal-image-col {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    display: block;
  }
  .modal-content-wrapper[data-product-type="collectibles" i] .ag-stage {
    aspect-ratio: 2 / 3;
    max-height: 70vh;
  }
}

/* Prevent cropping constraint on cards */
.product-card[data-product-type="collectibles" i] .product-card-image,
.product-card[data-product-type="collectibles" i] .list-item-img-wrapper,
.product-card[data-product-type="collectibles" i] .mockup-wrapper {
  aspect-ratio: 2 / 3 !important;
  background: transparent;
}
.product-card[data-product-type="collectibles" i] .product-card-image > img,
.product-card[data-product-type="collectibles" i] .list-item-img-wrapper > img {
  object-fit: contain !important;
}

/* Ensure category card for collectibles uses a smart crop to keep the figurine's face in view */
.category-card[href="all_products.html?type=Collectibles"] .category-card-media > img {
  object-fit: cover;
  object-position: center 25%;
}

/* ===== FIX: aspect-ratio collapse & overlap on iOS Safari ===== */
@media (max-width: 992px) {
  /* Give the wrapper a deterministic height to break the auto/100% cyclical dependency on Safari */
  .list-item-img-wrapper {
    aspect-ratio: 4 / 5;
    min-height: 0; /* Bypass flex item minimum height calc bug */
  }
  
  /* Collectibles have a taller photo frame */
  .product-card[data-product-type="collectibles" i] .list-item-img-wrapper {
    aspect-ratio: 2 / 3;
  }
  
  /* Apparel photos are variable, but fallback to 4/5 logic is fine or auto if we want */
  .product-card[data-product-type="apparel" i] .list-item-img-wrapper,
  .product-card[data-product-type="hoodie" i] .list-item-img-wrapper {
    /* Apparel can just use 4/5 ratio container in list view for uniformity */
    aspect-ratio: 4 / 5;
  }

  /* Make sure the image inside fills the deterministic wrapper */
  .list-item-img-wrapper > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
  }
}

/* =====================================================================
   TOUCH TARGETS (phones & tablets)
   Text links that read fine with a mouse were 15-24px tall on touch
   screens. Padding (not font size) brings them to ~40px, compensating
   margins keep the visual rhythm the same.
   ===================================================================== */
@media (max-width: 900px) {
  .footer-column ul li { margin-bottom: 0; }
  .footer-column ul li a,
  .footer-bottom-links a,
  .footer-contact a {
    display: inline-block;
    padding: 10px 0;
  }
  .footer-contact li { margin-bottom: 0; }
  .footer-disclaimer { font-size: 0.75rem; }

  .announcement-bar a {
    display: inline-block;
    padding: 6px 0;
  }
}

/* ===== OVERLAY CLICK-BLOCKING =====
   Every overlay above hides itself with `visibility: hidden` and TRANSITIONS
   that property. A transition only reaches its end value when the document's
   animation timeline advances — and the timeline stops dead whenever the tab
   is backgrounded. Close a product and switch app or tab inside the 0.4s fade
   and the transition freezes at time zero: the modal stays `visibility:
   visible`, full-viewport, z-index 2001, and every click on the page lands on
   it instead of the page. It looks like the whole site has died.

   `pointer-events` is never transitioned, so it flips the instant the `.open`
   class comes off, however the fade is doing. Making it — not visibility —
   the thing that decides whether an overlay swallows clicks removes the whole
   failure mode, and also stops the closing overlay eating a click during the
   fade. The visual fade is untouched.

   Ordered after the rules it corrects so it wins on equal specificity. */
.product-modal,
.product-modal-overlay,
.cart-drawer,
.cart-overlay,
.auth-modal,
.profile-modal,
.auth-modal-overlay,
.profile-modal-overlay,
.search-overlay,
.nav-dd-panel,
.scroll-top {
  pointer-events: none;
}

.product-modal.open,
.product-modal-overlay.open,
.cart-drawer.open,
.cart-overlay.open,
.auth-modal.open,
.profile-modal.open,
.auth-modal-overlay.open,
.profile-modal-overlay.open,
.search-overlay.open,
.scroll-top.visible,
.scroll-top.show,
.scroll-top.is-visible {
  pointer-events: auto;
}

/* The categories dropdown is revealed by a class on its parent. */
.nav-dropdown.open .nav-dd-panel {
  pointer-events: auto;
}

/* ===== CAROUSEL ARROW HIT AREA =====
   The arrows are 44px circles sitting half over the first/last card. Because
   `border-radius: 50%` clips hit-testing too, the four corners of the button's
   box are NOT the button — a click a few pixels off-centre falls through to
   the product card behind and opens that product instead of scrolling the
   row. The arrow reads as only working on part of itself.

   This pseudo-element gives each arrow a forgiving rounded-square target a
   little larger than the circle. It is transparent, so nothing changes
   visually, and it inherits the button's z-index, so it sits above the cards.
   `.scroll-nav i` is already pointer-events:none, so the icon never steals
   the click from it. */
.scroll-nav::after {
  content: '';
  position: absolute;
  inset: -11px;
  border-radius: 16px;
}

/* A disabled arrow must not keep swallowing clicks meant for the card. */
.scroll-nav:disabled::after {
  content: none;
}

/* ===== PRODUCT MODAL: MEDIA COLUMN FOLLOWS THE ARTWORK =====
   The image column used to be a fixed 68% of the modal whatever the product,
   and the artwork inside was capped at 70vh. A portrait poster is height-
   bound, so it rendered ~585px wide inside a ~1010px column: 42% of the
   image side was empty grey. Stickers had the same shape and the same gap;
   collectibles wasted 20%.

   Now `--media-col` is set per product by fitModalMedia() in script.js from
   the artwork's real aspect ratio, so the column is only as wide as the art
   it holds plus a gutter, and the info column takes everything that is left.
   The fallback value keeps the old proportions if the script hasn't measured
   yet (or the image never loads), so nothing collapses. */
@media (min-width: 769px) {
  .modal-image-col {
    width: var(--media-col, 68%);
    flex: 0 0 var(--media-col, 68%);
  }

  .modal-info-col {
    width: auto;
    flex: 1 1 0;
    min-width: 0;            /* let it shrink; the default min-content floor overflows */
    padding-inline: clamp(28px, 4vw, 64px);
  }

  /* The info column is now wider on portrait products. Capping and centring
     the content stack keeps the text at a readable measure and makes the
     slack read as deliberate margin.
     (Percentage padding was tried first and is wrong here: percentages in
     padding resolve against the CONTAINING BLOCK's width, not the element's,
     so it inflated the column's min-content width and overflowed the modal.) */
  .modal-info-col > * {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
  }

  /* With the column cut to the artwork's shape there is nothing left to letterbox
     against, so the art fills it and the old 70vh cap is redundant. */
  .modal-plain-image-wrapper {
    max-width: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 3vh, 40px);
  }

  .modal-image-col .mockup-wrapper { max-width: none; }

  /* The forced A4 box was letterboxing every non-A4 product (stickers, plates,
     wallpapers) a second time inside an already-oversized column. The image
     now keeps its own proportions. */
  .modal-plain-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
  }
}

/* ==========================================================================
   PRODUCT SPEC COPY  (product-copy.js)
   The modal accordions are rendered per product type, so a hoodie shows
   fabric, GSM, a size chart and print areas where a poster shows paper
   stock. These styles cover the shared pieces those blocks are built from.
   ========================================================================== */
.product-accordion summary i {
  font-size: 0.85em;
  width: 1.15em;
  margin-right: 8px;
  color: var(--text-secondary);
}
.product-accordion .spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.product-accordion .spec-list li {
  position: relative;
  padding-left: 16px;
  margin: 0 0 7px;
  line-height: 1.55;
}
.product-accordion .spec-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-secondary);
  opacity: 0.55;
}
.product-accordion .spec-list li + li { margin-top: 0; }
.product-accordion .accordion-content p + p,
.product-accordion .accordion-content .spec-list + p,
.product-accordion .accordion-content p + .spec-list { margin-top: 10px; }
.product-accordion .spec-note {
  font-size: 0.86em;
  opacity: 0.72;
  margin-top: 10px;
}

/* Size chart. Scrolls sideways on a phone instead of squeezing the columns
   into unreadable widths. */
.spec-table-wrap {
  margin: 12px 0 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.spec-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 320px;
  font-size: 0.9em;
  text-align: center;
}
.spec-table th,
.spec-table td {
  border: 1px solid var(--border-color, rgba(128, 128, 128, 0.25));
  padding: 6px 10px;
  white-space: nowrap;
}
.spec-table tr:first-child th {
  font-weight: 600;
  background: rgba(128, 128, 128, 0.08);
}
.spec-table tr th:first-child {
  text-align: left;
  font-weight: 500;
}

/* Colour swatches on the variant selector — a dot ahead of the name, so
   "Bottle Green" is a colour and not just a word. */
.swatch-btn .swatch-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: -1px;
  background: var(--dot);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

/* ==========================================================================
   SCROLL LOCK  (script.js lockPageScroll / global-navbar.js lockScroll)
   `body { overflow: hidden }` does not lock this page: `html` above carries
   `overflow-x: hidden`, which per spec computes the other axis to `auto`,
   making <html> the scroll container — body's rule then propagates nowhere.
   On desktop lenis.stop() hid the problem; on touch, where Lenis does not
   handle scroll at all, the catalogue scrolled behind an open product modal.
   Pinning the body is what actually stops it. The inline `top: -<scrollY>px`
   that script.js sets keeps the page visually where it was.
   ========================================================================== */
html.scroll-locked {
  overflow: hidden;
}
html.scroll-locked body {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  /* `top` is set inline by the lock, so it must not be declared here. */
}

/* ==========================================================================
   FULL-SCREEN OVERLAYS ON MOBILE
   100vh on iOS Safari is the *large* viewport — the height the page would
   have with the browser toolbars hidden — so a 100vh overlay runs underneath
   the address bar and the bottom bar, taking the sticky Add-to-Cart button
   with it. 100dvh tracks the area actually on screen. Declared after the
   vh rule so browsers without dvh keep the old value.
   overscroll-behavior stops a scroll that reaches the end of the overlay
   from chaining into the page behind it.
   ========================================================================== */
.product-modal,
.product-modal-overlay,
.cart-drawer,
.cart-overlay,
.search-overlay {
  height: 100dvh;
}
.product-modal,
.cart-drawer,
.cart-body,
.reviews-list,
.search-suggestions,
.store-facets-panel,
.store-sort-sheet {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ===== CART DRAWER: savings rows and the free-delivery nudge ===== */
.cart-summary-row.is-saving span { color: #10b981; font-weight: 600; }
.cart-summary-row[hidden] { display: none; }
.cart-free-nudge {
  margin: 8px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
}
.cart-free-nudge[hidden] { display: none; }

/* 2-Poster & 3-Poster Pack Custom Layout */
.product-card[data-product-type="poster_3_pack" i] .product-card-image,
.product-card[data-product-type="poster_3_pack" i] .list-item-img-wrapper,
.product-card[data-product-type="poster_3_pack" i] .mockup-wrapper,
.product-card[data-product-type="poster_2_pack" i] .product-card-image,
.product-card[data-product-type="poster_2_pack" i] .list-item-img-wrapper,
.product-card[data-product-type="poster_2_pack" i] .mockup-wrapper {
  background: #ffffff;
}

:root[data-theme="dark"] .product-card[data-product-type="poster_3_pack" i] .product-card-image,
:root[data-theme="dark"] .product-card[data-product-type="poster_3_pack" i] .list-item-img-wrapper,
:root[data-theme="dark"] .product-card[data-product-type="poster_3_pack" i] .mockup-wrapper,
:root[data-theme="dark"] .product-card[data-product-type="poster_2_pack" i] .product-card-image,
:root[data-theme="dark"] .product-card[data-product-type="poster_2_pack" i] .list-item-img-wrapper,
:root[data-theme="dark"] .product-card[data-product-type="poster_2_pack" i] .mockup-wrapper {
  background: #000000;
}

.product-card[data-product-type="poster_3_pack" i] .product-card-image > img,
.product-card[data-product-type="poster_3_pack" i] .list-item-img-wrapper > img,
.product-card[data-product-type="poster_2_pack" i] .product-card-image > img,
.product-card[data-product-type="poster_2_pack" i] .list-item-img-wrapper > img {
  object-fit: contain !important;
}

/* ========================================
   MAGNETIC BUTTON / HOVER PHYSICS
   ======================================== */
.magnetic-btn {
  /* Using transition for return-to-center phase. */
  transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast) !important;
  will-change: transform;
}
.magnetic-btn:active {
  /* Prevent interaction bugs while magnetic physics runs */
  transform: scale(0.96) !important;
}

/* ========================================
   SCROLL VELOCITY DRIVEN ELASTICITY
   ======================================== */
/* These three used to be driven by custom properties that scroll.js rewrote on
   the root element every frame — a whole-document style recalc per frame, on
   the main thread. They are now scroll-driven animations: the browser ties the
   keyframes to a scroll position and runs them on the compositor, so they cost
   the main thread nothing and keep up with the finger rather than trailing it.
   Where `animation-timeline` is unsupported (Safari, Firefox today) the element
   simply renders at rest, which is the correct fallback for decoration. */
@supports (animation-timeline: scroll()) {
  .scroll-rotate {
    animation: scroll-spin linear both;
    animation-timeline: scroll(root block);
  }
  .scroll-parallax {
    animation: scroll-drift linear both;
    animation-timeline: scroll(root block);
  }
  .scroll-elastic {
    animation: scroll-stretch linear both;
    animation-timeline: view(block);
    animation-range: cover 0% cover 100%;
  }
}

@keyframes scroll-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(180deg); }
}
@keyframes scroll-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -90px, 0); }
}
@keyframes scroll-stretch {
  0%   { transform: skewY(1.2deg); }
  50%  { transform: skewY(0deg); }
  100% { transform: skewY(-1.2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-rotate, .scroll-parallax, .scroll-elastic { animation: none; }
}

/* ========================================
   PAGE TRANSITIONS
   ======================================== */
.page-transition-overlay {
  position: fixed;
  inset: -10vh -10vw; /* Oversized to ensure no edge bleed on mobile scroll */
  z-index: 999999;
  background: var(--bg-primary, #090909);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}
.page-transition-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

/* ========================================
   HARDWARE & RENDER OPTIMIZATIONS
   ======================================== */
/* Sections keep natural hardware-accelerated flow to prevent WebKit scroll hitching */
.hero-slider {
  will-change: transform;
}

/* ========================================
   CONTEXT-AWARE CUSTOM CURSOR
   ======================================== */


.brush-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  background: var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999999;
  transform: translate3d(-50%, -50%, 0);
  /* The position is driven entirely by JS, but we transition visual states */
  transition: width 0.3s cubic-bezier(0.1, 0.7, 0.1, 1), 
              height 0.3s cubic-bezier(0.1, 0.7, 0.1, 1), 
              background 0.3s ease,
              opacity 0.3s ease;
  will-change: transform, width, height;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
}

.brush-cursor[data-state="visible"] {
  opacity: 1;
}

/* State: Hovering over links/buttons */
.brush-cursor[data-hover="true"] {
  width: 48px;
  height: 48px;
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  border: 1px solid var(--accent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* State: Hovering over Art/Cards (Expand to "VIEW") */
.brush-cursor[data-view="true"] {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--brand-cream);
}
.brush-cursor::after {
  content: attr(data-text);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.brush-cursor[data-view="true"]::after {
  opacity: 1;
}

.form-group input[readonly] { background-color: var(--bg-body, #f7f9fa); color: var(--text-muted, #737373); cursor: not-allowed; pointer-events: none; opacity: 0.8; border-color: var(--border-light, #e5e5e5); }



/* ===================================================================
   HOME RESTRUCTURE — shorter hero + editorial split sections
   The hero used to fill the whole viewport, so the first thing below it
   (and the fact that there IS anything below it) was invisible until you
   scrolled. It now stops short of the fold, and every browse section puts
   its wording in a narrow left column so the posters get the rest of the
   width, two rows deep.
   =================================================================== */
.hero {
  min-height: max(520px, 78vh);
  min-height: max(520px, 78svh);
  padding: 120px 0 clamp(56px, 7vh, 88px);
}

/* Phones get a noticeably shorter slideshow than the desktop rule above:
   78svh plus the 520px floor left the first section below the fold one
   scroll away. The floor drops to the content's own height, and the
   vertical gaps inside the hero shrink so the type still fits the band. */
@media (max-width: 640px) {
  .hero {
    min-height: max(440px, 64svh);
    padding: 104px 0 52px;
  }
  .hero-logo-container { margin-bottom: 0.5rem; }
  .hero-animated-logo { height: clamp(40px, 12vw, 56px); }
  .hero-title { font-size: clamp(1.65rem, 7.4vw, 2.05rem); margin-bottom: 10px; }
  .hero-tag { margin-bottom: 12px; }
  .hero-counter { margin-top: 0.75rem; margin-bottom: 0.75rem; }
  .hero-dots { bottom: 16px; }
  .scroll-cue { bottom: 14px; }
}
.hero-logo-container { margin-bottom: 0.85rem; }
.hero-animated-logo { height: clamp(48px, 6.4vw, 74px); }
.hero-title { font-size: clamp(1.9rem, 4.2vw, 3.3rem); margin-bottom: 12px; }
.hero-counter { margin-top: 1.1rem; margin-bottom: 1.1rem; }
.hero-trust-badges { margin-bottom: 0; }
.scroll-cue { bottom: 26px; }

/* ---- split section: copy left, product rail right ---- */
.section-split {
  display: grid;
  grid-template-columns: minmax(210px, 264px) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 52px);
  align-items: start;
  min-width: 0;
  max-width: 100%;
}
.section-split .section-header {
  text-align: left;
  margin-bottom: 0;
}
.section-main {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
.section-aside {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.section-aside .section-title {
  font-size: clamp(2.15rem, 3.1vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.section-aside .section-tag { font-size: 0.82rem; letter-spacing: 3.4px; margin-bottom: 10px; }
.section-aside .section-subtitle { max-width: 26ch; font-size: 1.02rem; line-height: 1.5; }
.section-aside-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
  transition: color var(--transition-fast), border-color var(--transition-fast), gap var(--transition-fast);
}
.section-aside-link:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }
.section-aside-controls { display: flex; align-items: center; gap: 10px; }
.section-aside .scroll-nav {
  position: static;
  transform: none;
  width: 42px;
  height: 42px;
}
.section-aside .scroll-nav:disabled { opacity: 0.35; cursor: default; }
.section-aside .carousel-counter { margin: 0 0 0 4px; font-size: 0.8rem; }

/* Scroll Around CTA — mobile only pill button */
.mobile-only { display: none; }
@media (max-width: 768px) {
  .mobile-only { display: inline-flex; }
}
.scroll-around-btn,
.doom-scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 99px;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.scroll-around-btn i,
.doom-scroll-btn i {
  color: var(--accent);
  font-size: 0.8rem;
  transition: color var(--transition-fast);
}
.scroll-around-btn:hover,
.scroll-around-btn:focus-visible,
.doom-scroll-btn:hover,
.doom-scroll-btn:focus-visible {
  background-color: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.35);
}
.scroll-around-btn:hover i,
.scroll-around-btn:focus-visible i,
.doom-scroll-btn:hover i,
.doom-scroll-btn:focus-visible i {
  color: var(--on-accent);
}
html[data-theme="dark"] .scroll-around-btn,
html[data-theme="dark"] .doom-scroll-btn,
:root[data-theme="dark"] .scroll-around-btn,
:root[data-theme="dark"] .doom-scroll-btn {
  background-color: var(--brand-cream);
  color: var(--brand-black);
  border-color: var(--brand-cream);
}
html[data-theme="dark"] .scroll-around-btn i,
html[data-theme="dark"] .doom-scroll-btn i,
:root[data-theme="dark"] .scroll-around-btn i,
:root[data-theme="dark"] .doom-scroll-btn i {
  color: var(--brand-maroon);
}
html[data-theme="dark"] .scroll-around-btn:hover,
html[data-theme="dark"] .scroll-around-btn:focus-visible,
html[data-theme="dark"] .doom-scroll-btn:hover,
html[data-theme="dark"] .doom-scroll-btn:focus-visible {
  background-color: var(--brand-maroon);
  color: #fff;
  border-color: var(--brand-maroon);
}
html[data-theme="dark"] .scroll-around-btn:hover i,
html[data-theme="dark"] .scroll-around-btn:focus-visible i,
html[data-theme="dark"] .doom-scroll-btn:hover i,
html[data-theme="dark"] .doom-scroll-btn:focus-visible i {
  color: #fff;
}

/* ---- the rail itself: two rows, scrolling sideways ---- */
.section-main .scroll-track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(0, auto));
  grid-auto-columns: var(--rail-card, 194px);
  grid-template-columns: none;
  gap: 14px;
  align-items: stretch;
  padding-bottom: 6px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
  overflow-y: clip !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto !important;
  touch-action: pan-x pan-y !important;
}
.section-main .scroll-track .product-card {
  width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.section-main .product-card-image {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1 / 1.38;
}
.section-main .product-card-info {
  padding: 10px 11px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
}
.section-main .product-card-info h3 {
  font-size: 0.82rem;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
  line-height: 1.3;
}
.section-main .card-rating { margin-bottom: 4px; }
.section-main .product-pricing { gap: 6px; }
.section-main .price-current { font-size: 0.95rem; }

.product-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
.product-card-bottom .product-pricing {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}
.card-direct-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 9px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm, 6px);
  font-family: var(--font-body, inherit);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.card-direct-add-btn:hover:not(:disabled) {
  background: var(--accent-hover, #ff2a2a);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.35);
}
.card-direct-add-btn:active:not(:disabled) {
  transform: scale(0.96);
}
.card-direct-add-btn.added {
  background: var(--success, #10b981) !important;
  border-color: var(--success, #10b981) !important;
  color: #fff !important;
  transform: scale(0.96);
}
@media (min-width: 1500px) { .section-main .scroll-track { --rail-card: 214px; } }

/* ---- Shop by Product: 9 cards across 3 balanced rows in a 12-column grid ----
   Row 1 (Posters, Apparel, Collectibles, Stickers): 4 cards x span 3 = 12 cols
   Row 2 (Tapestries, Metal Posters, Wallpapers): 3 cards x span 4 = 12 cols
   Row 3 (Wall Setup Packs, Build Your Pack): 2 wide cards x span 6 = 12 cols ---- */
.section-main .categories-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.section-main .categories-grid > .category-card { grid-column: span 3; }
.section-main .categories-grid > .category-card:nth-child(5),
.section-main .categories-grid > .category-card:nth-child(6),
.section-main .categories-grid > .category-card:nth-child(7) {
  grid-column: span 4;
}
.section-main .categories-grid > .category-card:nth-child(5) .category-card-media,
.section-main .categories-grid > .category-card:nth-child(6) .category-card-media,
.section-main .categories-grid > .category-card:nth-child(7) .category-card-media {
  aspect-ratio: 4 / 3;
}
/* Row 3: Wall Setup Packs and Build Your Pack widened to match the grid */
.section-main .categories-grid > .category-card:nth-child(8),
.section-main .categories-grid > .category-card:nth-child(9) {
  grid-column: span 6;
}
.section-main .categories-grid > .category-card:nth-child(8) .category-card-media,
.section-main .categories-grid > .category-card:nth-child(9) .category-card-media {
  aspect-ratio: 16 / 9;
}

/* Wallpaper cover focus: enlarge slightly on the upper side to remove empty space and highlight wall surface */
.category-card[href*="Wallpapers"] .category-card-media > img {
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.14);
}
@media (hover: hover) {
  .category-card[href*="Wallpapers"]:hover .category-card-media > img {
    transform: scale(1.19);
  }
}

/* Wall Setup Packs card focus: cropped and zoomed upwards so posters on the gallery wall are prominently visible */
.category-card[href*="Wall%20Setup%20Packs"] .category-card-media > img,
.category-card--wall-packs .category-card-media > img,
.category-card-packs-img {
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.22);
  transform-origin: center 20%;
}
@media (hover: hover) {
  .category-card[href*="Wall%20Setup%20Packs"]:hover .category-card-media > img,
  .category-card--wall-packs:hover .category-card-media > img,
  .category-card:hover .category-card-packs-img {
    transform: scale(1.28);
  }
}

@media (max-width: 1024px) {
  .section-split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .section-aside .section-title { font-size: clamp(1.95rem, 6vw, 2.6rem); }
  .section-aside { position: static; }
  .section-aside .section-subtitle { max-width: none; }
  .section-main .categories-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .section-main .categories-grid > .category-card { grid-column: span 2; }
  .section-main .categories-grid > .category-card:nth-child(5),
  .section-main .categories-grid > .category-card:nth-child(6),
  .section-main .categories-grid > .category-card:nth-child(7) {
    grid-column: span 2;
  }
  .section-main .categories-grid > .category-card:nth-child(5) .category-card-media,
  .section-main .categories-grid > .category-card:nth-child(6) .category-card-media,
  .section-main .categories-grid > .category-card:nth-child(7) .category-card-media {
    aspect-ratio: 4 / 5;
  }
  .section-main .categories-grid > .category-card:nth-child(8),
  .section-main .categories-grid > .category-card:nth-child(9) {
    grid-column: span 3;
  }
  .section-main .categories-grid > .category-card:nth-child(8) .category-card-media,
  .section-main .categories-grid > .category-card:nth-child(9) .category-card-media {
    aspect-ratio: 16 / 9;
  }
}
@media (max-width: 768px) {
  .section-split { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .section-main .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  /* All category cards sit in uniform 2-column grid: Tapestries & Metal Posters no longer huge */
  .section-main .categories-grid > .category-card,
  .section-main .categories-grid > .category-card:nth-child(n),
  .section-main .categories-grid > .category-card:nth-child(5),
  .section-main .categories-grid > .category-card:nth-child(6),
  .section-main .categories-grid > .category-card:nth-child(7),
  .section-main .categories-grid > .category-card:nth-child(8),
  .section-main .categories-grid > .category-card[href*="Tapestries"],
  .section-main .categories-grid > .category-card[href*="Metal"] {
    grid-column: span 1 !important;
  }

  .section-main .categories-grid > .category-card .category-card-media,
  .section-main .categories-grid > .category-card:nth-child(5) .category-card-media,
  .section-main .categories-grid > .category-card:nth-child(6) .category-card-media,
  .section-main .categories-grid > .category-card:nth-child(7) .category-card-media,
  .section-main .categories-grid > .category-card:nth-child(8) .category-card-media,
  .section-main .categories-grid > .category-card[href*="Tapestries"] .category-card-media,
  .section-main .categories-grid > .category-card[href*="Metal"] .category-card-media {
    aspect-ratio: 1 / 1.18 !important;
  }

  /* Only the final 9th card (Build Your Pack CTA) spans cleanly across the bottom row */
  .section-main .categories-grid > .category-card:last-child {
    grid-column: 1 / -1 !important;
  }
  .section-main .categories-grid > .category-card:last-child .category-card-media {
    aspect-ratio: 16 / 9 !important;
  }

  .category-card-overlay {
    padding: 12px 14px;
    background: linear-gradient(180deg, transparent 15%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.88) 100%);
    justify-content: flex-end;
  }
  .category-card-overlay p {
    font-size: 0.76rem;
    line-height: 1.3;
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  }
  .category-card-overlay .cat-arrow {
    margin-top: 5px;
    font-size: 0.72rem;
    gap: 4px;
    letter-spacing: 0.5px;
  }
  .category-card-title {
    font-size: 0.95rem;
    padding: 11px 13px;
  }
  .section-main .scroll-track {
    --rail-card: 156px;
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-template-rows: repeat(2, minmax(0, auto));
    grid-auto-columns: var(--rail-card, 156px);
    overflow-x: auto;
    overflow-y: clip !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto !important;
    touch-action: pan-x pan-y !important;
    gap: 10px;
    padding-bottom: 8px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    align-items: stretch;
    transform: none !important;
  }
  .section-main .scroll-track > * {
    width: var(--rail-card) !important;
    min-width: 0 !important;
    max-width: var(--rail-card) !important;
    flex: initial !important;
    scroll-snap-align: start;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
  }
  .products-section .scroll-nav { display: none; }
  .section-aside-controls .scroll-nav { display: inline-flex !important; }
  .section-aside { gap: 12px; }
}

/* ---- cursor that says where a thing goes ---- */
.custom-cursor-label {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100002;
  pointer-events: none;
  transform: translate3d(-50%, 28px, 0);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.94);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.custom-cursor-label.is-visible { opacity: 1; }
@media (pointer: coarse) { .custom-cursor-label { display: none !important; } }

/* ===================================================================
   STANDALONE PRODUCT PAGES  (/p/<id>-<slug>/, tools/product-pages.js)
   Every product now has a real page — indexable, shareable, and readable
   without JavaScript. It reuses the site's tokens so it matches the shop.
   =================================================================== */
.product-page { padding: 130px 0 80px; }
.product-page-crumbs {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.product-page-crumbs a { color: var(--text-secondary); transition: color var(--transition-fast); }
.product-page-crumbs a:hover { color: var(--accent); }
.product-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.product-page-media {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
}
.product-page-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.product-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(72vh, 680px);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: opacity 0.25s ease;
}
.product-gallery-main img#main-prod-img {
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
}
.product-gallery-main img#mockup-prod-img {
  padding: 0;
}
.product-gallery-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.prod-thumb-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.prod-thumb-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.prod-thumb-btn.active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.25);
}
.product-page-type {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 700;
  align-self: flex-start;
  margin-bottom: 12px;
}
.product-page-info h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.product-page-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  width: fit-content;
}
.product-page-price .price-current {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}
.product-page-price .price-original {
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: line-through;
  color: var(--text-tertiary);
}
.product-page-price .price-discount {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--sale-red, #e5484d);
  padding: 3px 8px;
  border-radius: 4px;
}
.product-page-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 18px;
  width: fit-content;
}
.product-page-stock::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}
.product-page-desc { color: var(--text-secondary); margin-bottom: 26px; max-width: 60ch; font-size: 0.94rem; line-height: 1.6; }
.product-page-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.product-page-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.88rem;
}
.product-page-facts li { display: flex; align-items: center; gap: 8px; }
.product-page-facts li::before { content: '✓'; color: var(--accent); font-weight: 800; font-size: 0.95rem; }
@media (max-width: 860px) {
  .product-page { padding: 110px 0 60px; }
  .product-page-grid { grid-template-columns: 1fr; }
  .product-page-facts { grid-template-columns: 1fr; }
  .product-page-info {
    display: flex;
    flex-direction: column;
  }
  .product-page-info > .product-page-type { order: 1; }
  .product-page-info > h1 { order: 2; }
  .product-page-info > .product-page-price { order: 3; }
  .product-page-info > .product-page-stock { order: 4; }
  .product-page-info > .product-page-cta { order: 5; }
  .product-page-info > .product-page-combo-section { order: 6; }
  .product-page-info > .product-page-desc { order: 7; }
  .product-page-info > .product-page-facts { order: 8; }
}

/* Share + full-page links under the modal title */
.modal-link-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: -2px 0 12px;
}
.modal-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.modal-share-btn:hover { border-color: var(--accent); color: var(--accent); }
.modal-share-btn i { font-size: 0.8rem; }
.modal-pin-btn:hover { border-color: #e60023; color: #e60023; }
.modal-pin-btn i { color: #e60023; }

/* ===== SHY-TERMITE-9 ANIMATED SHARE WIDGET (Brush Theme) ===== */
.brush-share-widget {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  flex-wrap: wrap;
  gap: 8px;
}

.shy-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 50px;
  border: 1px solid var(--border-light, rgba(255, 255, 255, 0.15));
  background: var(--bg-secondary, rgba(255, 255, 255, 0.05));
  color: var(--text-primary, #ffffff);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.shy-share-btn:hover,
.brush-share-widget.is-open .shy-share-btn {
  border-color: var(--accent, #ff5722);
  color: var(--accent, #ff5722);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 87, 34, 0.2);
}

.shy-share-btn .shy-share-icon {
  display: inline-flex;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brush-share-widget.is-open .shy-share-btn .shy-share-icon {
  transform: rotate(45deg);
}

.shy-share-flyout {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  max-width: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, max-width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.25s;
}

.brush-share-widget.is-open .shy-share-flyout {
  opacity: 1;
  visibility: visible;
  max-width: 450px;
  overflow: visible;
  pointer-events: auto;
}

.shy-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid var(--border-light, rgba(255, 255, 255, 0.12));
  background: var(--bg-primary, #18181b);
  color: var(--text-primary, #ffffff);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.shy-item-btn:hover {
  transform: translateY(-2px) scale(1.04);
}

.shy-copy-btn:hover {
  border-color: var(--accent, #ff5722);
  color: var(--accent, #ff5722);
}
.shy-copy-btn.is-copied {
  background: #15803d !important;
  border-color: #22c55e !important;
  color: #ffffff !important;
  animation: shyPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes shyPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.shy-wa-btn:hover {
  border-color: #25d366;
  color: #25d366;
}
.shy-wa-btn i { color: #25d366; }

.shy-x-btn:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.shy-pin-btn:hover {
  border-color: #e60023;
  color: #e60023;
}
.shy-pin-btn i { color: #e60023; }

.product-page-pin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.product-page-pin-btn i { color: #e60023; font-size: 0.95rem; }
.product-page-pin-btn:hover {
  border-color: #e60023;
  color: #e60023;
  transform: translateY(-1px);
}

/* Link from the modal to that product's own page */
.modal-permalink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.modal-permalink:hover { color: var(--accent); }

/* ===== CART: free-delivery progress + add-ons ===== */
.cart-free-nudge { display: grid; gap: 8px; margin: 10px 0 14px; }
.cart-free-nudge-text { font-size: 0.85rem; color: var(--text-secondary); }
.cart-free-nudge-text strong { color: var(--text-primary); }
.cart-free-nudge-text.is-unlocked { color: #10b981; font-weight: 600; }
.cart-free-bar {
  display: block;
  height: 6px;
  border-radius: 50px;
  background: var(--border-light);
  overflow: hidden;
}
.cart-free-bar-fill {
  display: block;
  height: 100%;
  border-radius: 50px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-free-bar-fill.is-full { background: #10b981; }

.cart-addons { margin: 18px 0 6px; }
.cart-addons h4 {
  font-size: 0.78rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.cart-addons-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cart-addon {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.cart-addon:hover { border-color: var(--accent); transform: translateY(-2px); }
.cart-addon img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: calc(var(--radius-md) - 4px); }
.cart-addon-name {
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-addon-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}
.cart-addon-price i { color: var(--accent); font-size: 0.7rem; }

/* ===== READABILITY FIXES ON PRODUCT CARDS =====
   The struck-through MRP and the "% OFF" flag were set in --text-muted and
   --success, which on the dark card background fall under the 4.5:1 contrast
   the rest of the site holds to — the two bits of a card that argue for the
   purchase were the hardest to read. */
.price-original { color: var(--text-secondary); opacity: 0.85; }
.price-discount { color: var(--success-text, var(--success)); font-weight: 700; }
:root { --success-text: #2f6b46; }
:root[data-theme="dark"] { --success-text: #5fd39a; }

/* ===== RAILS: keyboard + focus =====
   The arrows worked with a mouse only. The rail is now a focusable region
   that responds to Left/Right (and Home/End), and every control shows where
   the keyboard is. */
.scroll-track:focus-visible,
.section-aside-link:focus-visible,
.scroll-nav:focus-visible,
.category-card:focus-visible,
.product-card:focus-visible,
.cart-addon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}
.scroll-track:focus { outline: none; }

/* ===== MOBILE: keep "Add to cart" reachable in the product modal =====
   On a phone the button sat below the description and the variant pickers,
   so it was two scrolls away from the image. It now sticks to the bottom of
   the modal's content column. */
@media (max-width: 768px) {
  .product-accordions { margin-top: 18px; }
}

/* ===== ARCHITECTURAL PRINT SIZE SCALE GUIDE ===== */
.size-scale-card {
  margin: 6px 0 14px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.size-scale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.size-scale-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.size-scale-title i {
  color: var(--accent);
}

.size-scale-note {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
  letter-spacing: 0.01em;
}

.size-scale {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 10px 4px 4px;
  border-top: 1px dashed var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
}

.size-scale-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s var(--ease-spring);
}

.size-scale-item:hover {
  transform: translateY(-2px);
}

.size-scale-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--border-color);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s var(--ease-spring);
}

.size-scale-item:hover .size-scale-box {
  border-color: var(--text-secondary);
}

.size-scale-item.is-active .size-scale-box {
  border: 1.5px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 25%, transparent);
  transform: scale(1.05);
}

.size-scale-label {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s;
}

.size-scale-item.is-active .size-scale-label {
  color: var(--accent);
  font-weight: 700;
}

.size-scale-ref {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  opacity: 0.6;
}

.size-scale-laptop-box {
  height: 38px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  border-bottom: 2px solid var(--border-color);
}

/* ===== GALLERY STAGE FRAME TOGGLE & ARCHIVAL MATTING ===== */
.stage-frame-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  background: rgba(18, 18, 20, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  transition: opacity 0.22s ease, transform 0.22s var(--ease-spring);
}

.ag-stage.in-zoom-zone .stage-frame-toggle,
.ag-stage:has(.is-zoomed) .stage-frame-toggle {
  opacity: 0;
  pointer-events: none;
}

.stage-frame-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.stage-frame-btn:hover {
  color: #ffffff;
}

.stage-frame-btn.is-active {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Dynamic Gallery Framed Visual State with realistic archival matting and depth */
.modal-image-col.is-gallery-framed .ag-slide[data-fit="contain"] img,
.modal-image-col.is-gallery-framed .modal-plain-image {
  background: #faf8f5 !important;
  padding: 16px !important;
  border-radius: 2px;
  box-sizing: border-box;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(0, 0, 0, 0.12),
    0 0 0 10px #18181b,
    0 0 0 12px #27272a,
    0 26px 52px -12px rgba(0, 0, 0, 0.5),
    0 12px 24px -6px rgba(0, 0, 0, 0.32) !important;
  transition: box-shadow 0.35s var(--ease-spring),
              padding 0.35s var(--ease-spring),
              background 0.35s var(--ease-spring) !important;
}

.modal-image-col.is-gallery-framed[data-frame-color="white"] .ag-slide[data-fit="contain"] img,
.modal-image-col.is-gallery-framed[data-frame-color="white"] .modal-plain-image {
  background: #fbfbfa !important;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    inset 0 1px 3px rgba(0, 0, 0, 0.08),
    0 0 0 10px #f4f4f5,
    0 0 0 12px #e4e4e7,
    0 26px 52px -12px rgba(0, 0, 0, 0.38),
    0 12px 24px -6px rgba(0, 0, 0, 0.2) !important;
}

@media (max-width: 768px) {
  .stage-frame-toggle {
    top: 10px;
    right: 10px;
    padding: 2px;
  }
  .stage-frame-btn {
    padding: 4px 10px;
    font-size: 0.68rem;
  }
  .modal-image-col.is-gallery-framed .ag-slide[data-fit="contain"] img,
  .modal-image-col.is-gallery-framed .modal-plain-image {
    padding: 10px !important;
    box-shadow:
      inset 0 0 0 1px rgba(0, 0, 0, 0.08),
      0 0 0 7px #18181b,
      0 0 0 9px #27272a,
      0 16px 32px -6px rgba(0, 0, 0, 0.45) !important;
  }
}

/* Card Hover Polish — Clean, snappy, zero-jank GPU hardware acceleration */
@media (hover: hover) and (pointer: fine) {
  .product-card .product-card-image,
  .store-card .product-card-image,
  .wall-setup-card .ws-img-container {
    transition: transform 0.28s var(--ease-premium), box-shadow 0.28s var(--ease-premium);
  }
  .product-card:hover .product-card-image,
  .store-card:hover .product-card-image,
  .wall-setup-card:hover .ws-img-container {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.32);
  }
}

/* ===== CLICK-TO-ZOOM ON THE SINGLE MODAL IMAGE ===== */
.modal-plain-image-wrapper { position: relative; overflow: hidden; cursor: zoom-in; }
.modal-plain-image-wrapper.is-zoomed { cursor: zoom-out; }
.modal-plain-image-wrapper img { transition: transform 0.25s ease; }
.modal-plain-image-wrapper.is-zoomed img { transform: scale(2.2); }
.modal-zoom-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  pointer-events: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.2s ease;
}
.modal-plain-image-wrapper.is-zoomed .modal-zoom-hint { opacity: 0; }

/* Buy-more poster offer nudge, above the free-delivery bar */
.cart-bundle-nudge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 2px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}
.cart-bundle-nudge i { color: var(--accent); }


/* ========================================
   MOBILE — stop iOS zooming on field focus
   ========================================
   Safari on iOS zooms the whole page in when a text field smaller than 16px
   takes focus, and does not zoom back out afterwards: the shopper is left on
   a page wider than the screen, scrolled sideways, mid-form. The newsletter
   signup (14px) and the review name/comment fields (13px) all tripped it.
   16px is the threshold, so this sets the floor only where it matters and
   leaves every desktop size alone. */
@media (max-width: 768px) {
  input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
  input[type="password"], input[type="search"], input[type="number"],
  input[type="date"], textarea, select {
    font-size: max(16px, 1em);
  }
}


/* ========================================
   COLLECTION LANDING PAGES  (/shop/<slug>/)
   ========================================
   Built by tools/collection-pages.js. These are the pages that carry the
   buying queries, so they are server-rendered: real headings, real links to
   every product page, and copy that is readable with JavaScript off. */
.collection-page { padding: 96px 0 72px; }
.collection-head { max-width: 760px; margin-bottom: 36px; }
.collection-head h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.04; letter-spacing: -0.025em; margin: 10px 0 14px;
}
.collection-intro { font-size: 1.05rem; line-height: 1.65; color: var(--text-secondary); margin: 0 0 14px; }
.collection-meta {
  font-size: 0.82rem; letter-spacing: 0.04em; color: var(--text-secondary);
  margin: 0 0 22px;
}
.collection-cta { margin: 0; }

.collection-grid {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
}
.collection-grid a {
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: inherit;
}
.col-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary, #141414);
}
.collection-grid img,
.col-card-thumb img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 12px; background: var(--bg-secondary, #141414);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}
.collection-grid a:hover img,
.collection-grid a:hover .col-card-thumb img { transform: translateY(-4px); }
.col-card-name { font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.col-card-price { font-size: 0.82rem; color: var(--text-secondary); }
.collection-grid .is-out img { opacity: 0.5; }
.collection-more { margin: 0 0 44px; }
.collection-more a, .collection-siblings a { color: var(--accent); text-decoration: none; }
.collection-more a:hover, .collection-siblings a:hover { text-decoration: underline; }

.collection-faq { max-width: 760px; margin: 48px 0; }
.collection-faq h2, .collection-siblings h2, .shop-collections h2 {
  font-family: var(--font-heading); font-size: 1.5rem; margin: 0 0 18px;
}
.collection-faq dt { font-weight: 700; margin-top: 20px; }
.collection-faq dd { margin: 7px 0 0; color: var(--text-secondary); line-height: 1.6; }

.collection-siblings ul, .shop-collections ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.collection-siblings li a, .shop-collections li a {
  display: inline-block; border: 1px solid var(--border-color, rgba(255,255,255,0.14));
  border-radius: 999px; padding: 8px 15px; font-size: 0.85rem;
}
.shop-collections { margin: 56px auto; max-width: 1280px; padding: 0 clamp(16px, 4vw, 48px); }
.shop-collections li span { opacity: 0.55; font-size: 0.78rem; }

@media (max-width: 600px) {
  .collection-page { padding: 80px 0 56px; }
  .collection-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
}

/* ===== AUGMENTED REALITY (AR) WALL VIEW ===== */
.modal-view-ar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.85rem 1.4rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}
.modal-view-ar-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.modal-view-ar-btn i {
  color: var(--accent);
}

.product-page-ar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

@media (min-width: 992px) {
  .modal-view-ar-btn,
  .product-page-ar-btn {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px dashed var(--border) !important;
    transform: none !important;
  }
  .modal-view-ar-btn .ar-desktop-note,
  .product-page-ar-btn .ar-desktop-note {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
  }
}

@media (max-width: 991px) {
  .ar-desktop-note {
    display: none;
  }
}
.product-page-ar-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Fullscreen AR Overlay */
.brush-ar-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #000;
  overflow: hidden;
  display: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
}
.brush-ar-overlay.open {
  display: block;
}

body.ar-mode-active {
  overflow: hidden !important;
}

/* Camera Video Feed */
.ar-video-feed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.ar-wall-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
  display: none;
}

/* 3D WebGL Canvas for Realistic Spatial AR */
.ar-three-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  touch-action: none;
  pointer-events: auto;
}

/* Shutter Flash */
.ar-camera-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.05s ease-out;
}
.ar-camera-flash.flash-active {
  opacity: 0.9;
  transition: none;
}

/* Header Top Bar */
.ar-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 30;
  box-sizing: border-box;
}

.ar-bar-btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.15s ease;
  flex-shrink: 0;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}
.ar-bar-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}
.ar-bar-btn:active {
  transform: scale(0.96);
}

.ar-exit-btn {
  width: 38px;
  padding: 0;
}

.ar-info-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(18, 18, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  height: 34px;
  padding: 0 12px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-width: 0;
  max-width: min(200px, 45vw);
  overflow: hidden;
  box-sizing: border-box;
}
.ar-info-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ar-info-sep {
  opacity: 0.5;
  flex-shrink: 0;
}
.ar-info-dims {
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.ar-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ar-switch-cam-btn {
  width: 38px;
  padding: 0;
}

/* Center Wall Guidance Hint */
.ar-guidance-hint {
  position: absolute;
  top: calc(64px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 25;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.ar-guidance-hint.fade-out {
  opacity: 0;
  transform: translate(-50%, -6px);
}

/* Tap to Play Autoplay Unlock Overlay */
.ar-tap-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 28;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.ar-tap-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.5);
  animation: pulse-glow 2s infinite ease-in-out;
}

/* Non-Intrusive Fallback Card (Bottom Sheet on Mobile) */
.ar-fallback-card {
  position: absolute;
  bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 16px 18px;
  width: min(92vw, 380px);
  text-align: center;
  color: #fff;
  z-index: 29;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
}
.ar-fallback-icon {
  font-size: 1.6rem;
  color: var(--accent);
}
.ar-fallback-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.ar-fallback-content p {
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.ar-fallback-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.ar-action-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
}
.ar-action-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.ar-action-btn.ar-cam-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.35);
}
.ar-action-btn.ar-cam-btn::after {
  content: "Place on My Wall";
}
.ar-fallback-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}

/* Poster Container on Wall */
.ar-poster-container {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 15;
  cursor: grab;
  touch-action: none;
  transition: width 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ar-poster-container.is-dragging {
  cursor: grabbing;
  transition: none;
}

/* Framing & Matting */
.ar-frame-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: all 0.25s ease;
}

.ar-frame-wrapper.framed {
  background: #141416;
  border: 8px solid #141416;
  border-radius: 4px;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 8px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.2),
    inset 0 -1px 2px rgba(0, 0, 0, 0.8);
}
.ar-frame-wrapper.framed .ar-matting-box {
  background: #fbfaf8;
  padding: 8px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ar-frame-wrapper.unframed {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3);
}
.ar-frame-wrapper.unframed .ar-matting-box {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.ar-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* Glass Reflection Glare */
.ar-glass-reflection {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

/* Floating Tag Under Poster */
.ar-frame-pin-hint {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.ar-pin-tag {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

/* Bottom Dock */
.ar-bottom-dock {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 12px));
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 30;
  box-sizing: border-box;
}

.ar-controls-shelf {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(18, 18, 22, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: min(98vw, 600px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ar-controls-shelf::-webkit-scrollbar {
  display: none;
}

.ar-shelf-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  margin: 0 2px;
}

.ar-segment-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.ar-seg-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.ar-seg-btn:hover {
  color: #fff;
}
.ar-seg-btn.active {
  background: #fff;
  color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Frame Color Swatches */
.ar-frame-color-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 2px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.ar-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}
.ar-color-dot:hover {
  transform: scale(1.15);
}
.ar-color-dot.active {
  border-color: #fff;
  transform: scale(1.18);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Apple ARKit Quick Look Button */
.ar-bar-btn.ar-arkit-btn {
  background: rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.ar-bar-btn.ar-arkit-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.ar-bar-btn.ar-arkit-btn::after {
  content: "View in AR";
  margin-left: 6px;
  font-size: 0.76rem;
  font-weight: 600;
}

/* Action Dock */
.ar-action-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.ar-action-tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: rgba(18, 18, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 7px 12px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 68px;
}
.ar-action-tool-btn i {
  font-size: 0.95rem;
}
.ar-action-tool-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.ar-action-tool-btn:active {
  transform: scale(0.96);
}

.ar-distance-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(18, 18, 22, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 6px 10px;
  min-width: 75px;
}
.ar-dist-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ar-scale-slider {
  width: 65px;
  height: 4px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Shutter Button (Brand Orange) */
.ar-shutter-btn {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.ar-shutter-btn:hover {
  transform: scale(1.06);
}
.ar-shutter-btn:active {
  transform: scale(0.92);
}
.ar-shutter-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3.5px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.ar-shutter-core {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.35);
}

.ar-recenter-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(18, 18, 22, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 6px 10px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 65px;
}
.ar-recenter-btn i {
  font-size: 0.95rem;
}
.ar-recenter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Small Screens Responsive Refinements */
@media (max-width: 480px) {
  .ar-top-bar {
    padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px;
    gap: 6px;
  }
  .ar-bar-btn {
    height: 36px;
    padding: 0 10px;
    font-size: 0.74rem;
  }
  .ar-exit-btn, .ar-switch-cam-btn {
    width: 36px;
    padding: 0;
  }
  .ar-bar-btn .ar-btn-text {
    display: none;
  }
  .ar-info-pill {
    height: 32px;
    padding: 0 10px;
    font-size: 0.72rem;
    max-width: 44vw;
  }
  .ar-controls-shelf {
    padding: 3px 5px;
    gap: 3px;
    max-width: 98vw;
  }
  .ar-seg-btn {
    padding: 5px 6px;
    font-size: 0.68rem;
  }
  .ar-color-dot {
    width: 17px;
    height: 17px;
  }
  .ar-shelf-divider {
    height: 13px;
    margin: 0 1px;
  }
  .ar-action-dock {
    gap: 12px;
  }
  .ar-shutter-btn {
    width: 58px;
    height: 58px;
  }
  .ar-shutter-core {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }
  .ar-scale-slider {
    width: 55px;
  }
  .ar-distance-box, .ar-recenter-btn, .ar-action-tool-btn {
    padding: 5px 8px;
    min-width: 56px;
  }
}

@media (max-width: 360px) {
  .ar-seg-btn {
    padding: 4px 6px;
    font-size: 0.65rem;
  }
  .ar-color-dot {
    width: 17px;
    height: 17px;
  }
  .ar-action-tool-btn {
    min-width: 50px;
    padding: 4px 6px;
    font-size: 0.62rem;
  }
}

/* ====================================================================
   NEW ARRIVALS STUDIO WALL POPUP (Landing Page)
   Artistic Pop-Art Studio Aesthetic matching Hero Collage
   ==================================================================== */
.arrivals-popup-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.arrivals-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.arrivals-popup-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.97);
  width: min(96vw, 1140px);
  max-height: calc(100dvh - 32px);
  background: #111319;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(255, 76, 36, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(56, 189, 248, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, #161922 0%, #0d0f14 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 1991;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.arrivals-popup-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.arrivals-popup-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 20, 28, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-secondary, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 20;
  transition: background 0.15s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}

.arrivals-popup-close-btn:hover {
  background: var(--accent, #ff4c24);
  color: #ffffff;
  transform: rotate(90deg) scale(1.08);
}

/* Header */
.arrivals-popup-header {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 20, 28, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding-right: 56px;
}

.arrivals-popup-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arrivals-sticker-badge {
  display: inline-block;
  background: var(--accent, #ff4c24) !important;
  color: #ffffff !important;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border: 2px solid #000000;
  border-radius: 5px;
  transform: rotate(-2deg);
  box-shadow: 2.5px 3px 0 #000000;
  text-transform: uppercase;
  flex-shrink: 0;
}

.arrivals-popup-titles {
  display: flex;
  flex-direction: column;
}

#arrivals-popup-title,
.arrivals-popup-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc !important;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}

.arrivals-popup-subtitle {
  font-size: 0.78rem;
  color: #94a3b8 !important;
  line-height: 1.2;
}

.arrivals-popup-promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 76, 36, 0.12);
  border: 1px solid rgba(255, 76, 36, 0.3);
  color: #ffffff;
  font-size: 0.76rem;
  white-space: nowrap;
}

.arrivals-popup-promo-pill i {
  color: var(--accent, #ff4c24);
}

.arrivals-popup-promo-pill strong {
  color: var(--accent, #ff4c24);
  font-weight: 800;
}

.arrivals-popup-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, #ff4c24);
  box-shadow: 0 0 8px var(--accent, #ff4c24);
  animation: arrivals-pulse 1.8s infinite;
}

@keyframes arrivals-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Main Studio Layout: Spotlight Hero + Studio Wall Cluster */
.arrivals-popup-body {
  padding: 14px 18px;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.arrivals-studio-layout {
  display: grid;
  grid-template-columns: 295px 1fr;
  gap: 16px;
  align-items: stretch;
}

/* Left Hero Spotlight Card */
.arrivals-spotlight-wrapper {
  position: relative;
  display: flex;
}

.arrivals-spotlight-card {
  position: relative;
  width: 100%;
  background: #ffffff !important;
  color: #111116;
  border: 2px solid #000000 !important;
  border-radius: 6px !important;
  padding: 8px 8px 10px !important;
  box-shadow: 6px 12px 28px rgba(0, 0, 0, 0.45);
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between;
  transform: rotate(-0.5deg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
  cursor: pointer;
}

.arrivals-spotlight-card:hover {
  transform: rotate(0deg) scale(1.02) !important;
  box-shadow: 10px 20px 36px rgba(0, 0, 0, 0.55);
}

.arrivals-spotlight-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 68px;
  height: 20px;
  background: rgba(253, 224, 71, 0.94);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  border-radius: 1px;
  z-index: 6;
  pointer-events: none;
}

.arrivals-spotlight-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #000000;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.arrivals-spotlight-image {
  position: relative;
  aspect-ratio: 4 / 4.7;
  width: 100%;
  overflow: hidden;
  background: #111;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
}

.arrivals-spotlight-image img.plain-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.arrivals-spotlight-card:hover img.plain-product-image {
  transform: scale(1.03);
}

.arrivals-spotlight-hint {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0.9;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.arrivals-spotlight-card:hover .arrivals-spotlight-hint {
  opacity: 0;
}

.arrivals-spotlight-info {
  padding: 6px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.arrivals-spotlight-spec {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
  text-transform: uppercase;
}

.arrivals-spotlight-title {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arrivals-spotlight-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.arrivals-spotlight-pricing {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.arrivals-spotlight-pricing .price-current {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}

.arrivals-spotlight-pricing .price-original {
  font-size: 0.72rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.arrivals-spotlight-pricing .price-discount {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--accent, #ff4c24);
  background: rgba(255, 76, 36, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
}

.arrivals-spotlight-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #000000 !important;
  color: #ffffff !important;
  padding: 5px 12px;
  border-radius: 999px !important;
  border: none !important;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.arrivals-spotlight-btn:hover {
  background: var(--accent, #ff4c24) !important;
  transform: scale(1.04);
}

/* Right Studio Wall Cluster */
.arrivals-wall-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.arrivals-wall-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.arrivals-wall-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.arrivals-wall-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.arrivals-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.arrivals-nav-btn:hover {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent);
  transform: scale(1.08);
}

.arrivals-nav-btn:active {
  transform: scale(0.92);
}

.arrivals-wall-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f8fafc !important;
}

.arrivals-wall-label i {
  color: var(--accent, #ff4c24);
}

.arrivals-wall-pill {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.arrivals-sticky-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef08a;
  color: #000000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px 3px 18px;
  border: 1px solid #facc15;
  border-radius: 3px;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.2);
  transform: rotate(1.5deg);
}

.arrivals-sticky-badge strong {
  color: #b91c1c;
}

.arrivals-sticky-badge .sticky-pin {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.arrivals-tape-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}

/* 5 Companion Tape Cards */
.arrivals-tape-card {
  position: relative;
  margin: 0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #000000 !important;
  border-radius: 5px !important;
  padding: 6px 6px 7px !important;
  box-shadow: 4px 8px 18px rgba(0, 0, 0, 0.32);
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between;
  transform: rotate(var(--card-rot, 0deg));
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease !important;
  cursor: pointer;
}

.arrivals-tape-card:hover {
  transform: translateY(-4px) scale(1.04) rotate(0deg) !important;
  box-shadow: 8px 16px 28px rgba(0, 0, 0, 0.45);
  z-index: 10;
}

.arrivals-card-tape {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 44px;
  height: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  border-radius: 1px;
  z-index: 6;
  pointer-events: none;
}

.arrivals-tape-image {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  background: #0f172a;
  border-radius: 2px;
}

.arrivals-tape-image img.plain-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.arrivals-tape-card:hover img.plain-product-image {
  transform: scale(1.03);
}

.arrivals-card-hover-mockup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.25s ease;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .arrivals-tape-card:hover .arrivals-card-hover-mockup,
  .arrivals-spotlight-card:hover .arrivals-card-hover-mockup {
    opacity: 1;
    transform: scale(1.03);
  }
}

.arrivals-mini-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  z-index: 3;
}

.arrivals-quick-add {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  cursor: pointer;
  z-index: 4;
  opacity: 0.95;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, border-color 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.arrivals-tape-card:hover .arrivals-quick-add {
  background: var(--accent, #ff4c24);
  transform: scale(1.08);
}

.arrivals-quick-add:active {
  transform: scale(0.92);
  background: var(--accent, #ff4c24);
}

.arrivals-quick-add.added {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  transform: scale(1.08) !important;
}

.arrivals-spotlight-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.arrivals-spotlight-btn:active {
  transform: scale(0.96);
  background: var(--accent, #ff4c24) !important;
}

.arrivals-spotlight-btn.added {
  background: #10b981 !important;
  color: #ffffff !important;
}

.arrivals-tape-info {
  padding: 5px 2px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.arrivals-tape-title {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arrivals-tape-pricing {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.arrivals-tape-pricing .price-current {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.arrivals-tape-pricing .price-original {
  font-size: 0.65rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.arrivals-tape-pricing .price-discount {
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--accent, #ff4c24);
}

.arrivals-mobile-hint {
  display: none;
}

/* Footer */
.arrivals-popup-footer {
  padding: 8px 20px;
  background: rgba(18, 20, 28, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.arrivals-popup-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary, #94a3b8);
  font-size: 0.74rem;
}

.arrivals-popup-perk i {
  color: var(--accent, #ff4c24);
}

.arrivals-popup-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arrivals-popup-dismiss-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-secondary, #94a3b8);
  padding: 6px 14px;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, transform 0.12s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.arrivals-popup-dismiss-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.arrivals-popup-dismiss-btn:active {
  transform: scale(0.96);
}

.arrivals-popup-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent, #ff4c24);
  color: #ffffff !important;
  padding: 6px 16px;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), filter 0.15s ease;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.arrivals-popup-cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.arrivals-popup-cta-btn:active {
  transform: scale(0.96);
}

/* ====================================================================
   TABLET RESPONSIVE LAYOUT (768px - 1024px)
   Prevents squished 5-column grid, provides fluid swipeable rail
   ==================================================================== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .arrivals-popup-modal {
    width: min(94vw, 860px);
    max-height: calc(100dvh - 32px);
  }

  .arrivals-studio-layout {
    grid-template-columns: 240px 1fr;
    gap: 14px;
  }

  .arrivals-spotlight-image {
    aspect-ratio: 4 / 4.8;
  }

  .arrivals-tape-grid {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y !important;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 6px;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
  }

  .arrivals-tape-grid.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none !important;
  }

  .arrivals-tape-grid::-webkit-scrollbar {
    display: none;
  }

  .arrivals-tape-card {
    flex: 0 0 120px;
    width: 120px;
    scroll-snap-align: start;
    transform: none !important;
  }

  .arrivals-tape-card:hover {
    transform: translateY(-3px) scale(1.02) !important;
  }

  .arrivals-mobile-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.68rem;
    color: var(--text-secondary, #94a3b8);
    margin-top: 4px;
  }

  .arrivals-mobile-hint i {
    color: var(--accent, #ff4c24);
  }
}

/* ====================================================================
   MOBILE RESPONSIVE STUDIO LAYOUT (< 768px)
   Touch-optimized, safe-area aware, responsive to all phone sizes
   ==================================================================== */
@media screen and (max-width: 767px) {
  .arrivals-popup-modal {
    width: min(94vw, 500px);
    height: auto;
    max-height: calc(100dvh - 24px);
    max-height: calc(100vh - 24px);
    border-radius: var(--radius-md, 14px);
  }

  /* Close button: safe-touch target (48x48 tap zone) */
  .arrivals-popup-close-btn {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .arrivals-popup-close-btn::before {
    content: '';
    position: absolute;
    inset: -6px;
  }

  .arrivals-popup-close-btn:active {
    transform: scale(0.92);
  }

  /* Header: clean wrapping, prevents overflow against close button */
  .arrivals-popup-header {
    padding: 10px 12px;
    padding-right: 48px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
  }

  .arrivals-popup-header-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .arrivals-sticker-badge {
    font-size: 0.58rem;
    padding: 2px 7px;
    box-shadow: 1.5px 2px 0 #000000;
    flex-shrink: 0;
  }

  .arrivals-popup-titles {
    min-width: 0;
  }

  .arrivals-popup-title {
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .arrivals-popup-subtitle {
    display: none;
  }

  .arrivals-popup-promo-pill {
    padding: 3px 8px;
    font-size: 0.68rem;
    gap: 5px;
    flex-shrink: 0;
    border-radius: 999px;
  }

  .arrivals-popup-pulse-dot {
    width: 6px;
    height: 6px;
  }

  /* Body: enables smooth internal scrolling on short screens */
  .arrivals-popup-body {
    padding: 10px 12px;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain;
    touch-action: pan-x pan-y !important;
    min-height: 0;
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
  }

  .arrivals-studio-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    min-width: 0;
    width: 100%;
  }

  .arrivals-wall-section {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  /* Compact Horizontal Hero Card on Mobile */
  .arrivals-spotlight-wrapper {
    width: 100%;
  }

  .arrivals-spotlight-card {
    flex-direction: row !important;
    padding: 8px 10px !important;
    gap: 10px;
    align-items: center !important;
    min-height: auto !important;
    height: auto !important;
    transform: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  }

  .arrivals-spotlight-card:hover {
    transform: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  }

  .arrivals-spotlight-tape {
    display: none;
  }

  .arrivals-spotlight-image {
    width: 86px;
    min-width: 86px;
    height: 110px;
    aspect-ratio: auto;
    flex-shrink: 0;
    border-radius: 4px;
  }

  .arrivals-spotlight-badge {
    top: 6px;
    left: 6px;
    font-size: 0.55rem;
    padding: 2px 6px;
  }

  .arrivals-spotlight-hint {
    display: none;
  }

  /* Hide hover mockups on touch/mobile to keep display crisp & avoid persistent overlay */
  .arrivals-card-hover-mockup {
    display: none !important;
  }

  .arrivals-spotlight-info {
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
  }

  .arrivals-spotlight-spec {
    font-size: 0.6rem;
    gap: 4px;
  }

  .arrivals-spotlight-title {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 1px 0 0;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .arrivals-spotlight-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
  }

  .arrivals-spotlight-pricing {
    display: flex;
    align-items: baseline;
    gap: 4px;
  }

  .arrivals-spotlight-pricing .price-current {
    font-size: 0.95rem;
    font-weight: 800;
  }

  .arrivals-spotlight-pricing .price-original {
    font-size: 0.68rem;
  }

  .arrivals-spotlight-pricing .price-discount {
    font-size: 0.58rem;
  }

  .arrivals-spotlight-btn {
    padding: 5px 12px;
    min-height: 30px;
    height: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
  }
    border-radius: 999px;
  }

  /* Studio Wall Cluster on Mobile */
  .arrivals-wall-section {
    gap: 6px;
  }

  .arrivals-wall-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
  }

  .arrivals-wall-label {
    font-size: 0.76rem;
    gap: 5px;
  }

  .arrivals-wall-pill {
    font-size: 0.62rem;
    padding: 2px 6px;
  }

  .arrivals-sticky-badge {
    font-size: 0.62rem;
    padding: 2px 7px 2px 14px;
  }

  /* Horizontal Snap-Swipe Rail on Mobile */
  .arrivals-tape-grid {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y !important;
    gap: 9px;
    padding-top: 9px;
    padding-bottom: 5px;
    padding-left: 2px;
    padding-right: 12px;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
  }

  .arrivals-tape-grid.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none !important;
  }

  .arrivals-tape-grid::-webkit-scrollbar {
    display: none;
  }

  .arrivals-tape-card {
    flex: 0 0 118px;
    width: 118px;
    scroll-snap-align: start;
    transform: none !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35) !important;
  }

  .arrivals-tape-card:hover {
    transform: none !important;
  }

  .arrivals-card-tape {
    width: 36px;
    height: 11px;
    top: -6px;
  }

  .arrivals-tape-image {
    aspect-ratio: 4 / 5;
    width: 100%;
    border-radius: 3px;
  }

  /* Quick-add button: thumb-friendly touch target */
  .arrivals-quick-add {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    font-size: 0.82rem;
    bottom: 5px;
    right: 5px;
    opacity: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  }

  .arrivals-quick-add::before {
    content: '';
    position: absolute;
    inset: -7px;
  }

  .arrivals-tape-info {
    padding: 4px 2px 0;
  }

  .arrivals-tape-title {
    font-size: 0.72rem;
  }

  .arrivals-tape-pricing .price-current {
    font-size: 0.82rem;
  }

  .arrivals-tape-pricing .price-original {
    font-size: 0.64rem;
  }

  .arrivals-tape-pricing .price-discount {
    font-size: 0.56rem;
  }

  .arrivals-mobile-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.64rem;
    color: var(--text-secondary, #94a3b8);
    margin-top: 3px;
  }

  .arrivals-mobile-hint i {
    color: var(--accent, #ff4c24);
    animation: arrivals-hint-swipe 2s ease-in-out infinite;
  }

  @keyframes arrivals-hint-swipe {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
  }

  .arrivals-popup-footer {
    padding: 8px 12px;
    background: rgba(18, 20, 28, 0.92);
  }

  .arrivals-popup-perk {
    display: none;
  }

  .arrivals-popup-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .arrivals-popup-dismiss-btn {
    padding: 8px 12px;
    min-height: 38px;
    font-size: 0.76rem;
  }

  .arrivals-popup-cta-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 14px;
    min-height: 38px;
    font-size: 0.76rem;
  }
}

/* ====================================================================
   COMPACT MOBILE & SHORT VIEWPORTS (iPhone SE, 13/14 mini, height <= 720px)
   ==================================================================== */
@media screen and (max-width: 480px), screen and (max-height: 720px) {
  .arrivals-popup-modal {
    width: min(95vw, 440px);
    height: auto;
    max-height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .arrivals-popup-header {
    padding: 8px 10px;
    padding-right: 42px;
    gap: 4px 6px;
    flex-shrink: 0;
  }

  .arrivals-popup-close-btn {
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    font-size: 0.88rem;
  }

  .arrivals-popup-title {
    font-size: 0.88rem;
  }

  .arrivals-sticker-badge {
    font-size: 0.52rem;
    padding: 2px 5px;
  }

  .arrivals-popup-promo-pill {
    font-size: 0.62rem;
    padding: 2px 6px;
  }

  .arrivals-pill-note {
    display: none;
  }

  .arrivals-popup-body {
    padding: 8px 10px;
    gap: 8px;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain;
  }

  .arrivals-spotlight-card {
    padding: 6px !important;
    gap: 8px;
  }

  .arrivals-spotlight-image {
    width: 74px;
    min-width: 74px;
    height: 94px;
  }

  .arrivals-spotlight-title {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .arrivals-spotlight-actions {
    gap: 4px;
  }

  .arrivals-spotlight-btn {
    padding: 5px 10px;
    min-height: 30px;
    font-size: 0.72rem;
  }

  .arrivals-sticky-badge {
    display: none;
  }

  .arrivals-tape-grid {
    gap: 8px;
    padding-top: 6px;
    padding-bottom: 4px;
    touch-action: pan-x pan-y !important;
  }

  .arrivals-tape-card {
    flex: 0 0 102px;
    width: 102px;
    padding: 5px !important;
  }

  .arrivals-quick-add {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    font-size: 0.75rem;
  }

  .arrivals-tape-title {
    font-size: 0.68rem;
  }

  .arrivals-tape-pricing .price-current {
    font-size: 0.78rem;
  }

  .arrivals-popup-footer {
    padding: 6px 10px;
    flex-shrink: 0;
  }

  .arrivals-popup-dismiss-btn {
    padding: 6px 10px;
    min-height: 34px;
    font-size: 0.72rem;
  }

  .arrivals-popup-cta-btn {
    padding: 6px 10px;
    min-height: 34px;
    font-size: 0.72rem;
  }
}

/* ====================================================================
   SHORT VIEWPORT LANDSCAPE (<= 540px height)
   Allows comfortable popup usage in mobile landscape orientations
   ==================================================================== */
@media screen and (max-height: 540px) {
  .arrivals-popup-modal {
    max-height: calc(100dvh - 12px);
    max-height: calc(100vh - 12px);
  }

  .arrivals-popup-header {
    padding: 6px 12px;
    padding-right: 44px;
  }

  .arrivals-popup-body {
    padding: 6px 10px;
    gap: 6px;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .arrivals-spotlight-image {
    height: 84px;
    width: 70px;
    min-width: 70px;
  }

  .arrivals-popup-footer {
    padding: 5px 10px;
  }

  .arrivals-popup-dismiss-btn,
  .arrivals-popup-cta-btn {
    min-height: 32px;
    padding: 4px 10px;
  }
}


