/* AtelierNoir — shared stylesheet
   ----------------------------------------------------------------
   Pages: index, product, contacts, about
   Convention: BEM-ish, low-specificity, CSS variables for theming. */

/* ---------- Preloader ----------
   Placed first so it paints before everything else. Black scrim, the logo
   is revealed by a left-to-right shimmer wipe (a clip-path mask), then a
   hairline rule expands beneath it, then a tracked-out tagline fades in.
   Removed by JS on window.load (with a minimum visible time). */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: #0a0a0a;
  display: grid; place-items: center;
  overflow: hidden;
  transition: opacity .8s cubic-bezier(.4,0,.2,1), visibility .8s;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
/* Unicorn Studio scene host — fills the viewport while keeping the scene's
   16:10 aspect via cover scaling (no letterbox, no scrollbars). */
.preloader__unicorn {
  position: absolute; top: 50%; left: 50%;
  width: 1440px; height: 900px;
  transform: translate(-50%, -50%) scale(var(--us-scale, 1));
  transform-origin: center center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease-out;
}
.preloader__unicorn.is-ready { opacity: 1; }
.preloader__unicorn canvas { display: block; width: 100% !important; height: 100% !important; }
.preloader__stage { display: grid; justify-items: center; gap: 18px; padding: 0 24px; }
.preloader__logo {
  position: relative;
  width: clamp(220px, 28vw, 460px);
  height: auto;
  /* Wipe reveal: a moving clip-path that uncovers the logo from left to right. */
  clip-path: inset(0 100% 0 0);
  animation: pl-wipe 1.4s cubic-bezier(.65,.05,.35,1) .25s forwards;
  filter: drop-shadow(0 6px 30px rgba(255,255,255,.08));
}
.preloader__shimmer {
  /* A bright vertical bar that travels with the wipe edge */
  position: absolute; top: -10%; left: 0; width: 3px; height: 120%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.85), transparent);
  filter: blur(2px);
  opacity: 0;
  animation: pl-shimmer 1.4s cubic-bezier(.65,.05,.35,1) .25s forwards;
}
.preloader__rule {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: pl-rule 1.1s cubic-bezier(.4,0,.2,1) 1.2s forwards;
}
.preloader__caption {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  opacity: 0;
  transform: translateY(6px);
  animation: pl-cap 1s cubic-bezier(.4,0,.2,1) 1.5s forwards;
}
@keyframes pl-wipe   { to { clip-path: inset(0 0 0 0); } }
@keyframes pl-shimmer {
  0%   { opacity: 0; transform: translateX(0); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(clamp(220px, 28vw, 460px)); }
}
@keyframes pl-rule   { to { width: min(220px, 50vw); } }
@keyframes pl-cap    { to { opacity: 1; transform: none; } }
/* Lock scroll while the preloader is visible. */
html.is-loading, html.is-loading body { overflow: hidden; }

/* Slim top progress bar shown on subsequent navigations within a session
   (the full Unicorn preloader only fires on the first visit). It grows to
   70% on parse, snaps to 100% when window.load fires, then fades out. */
.an-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 9999;
  pointer-events: none;
  transition: opacity .4s ease-out;
}
.an-progress__fill {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--brand-lime), var(--brand-lime-deep));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 0 10px rgba(182, 242, 0, .55);
}
.an-progress.is-done { opacity: 0; }

:root {
  /* ---------- Brand palette ----------
     Logo: lime #b6f200 (primary, ~90% of mark), red #e53a35 (alert/likes),
     sage #72bf80 (the neutral background family).
     The whole site is themed from a sage neutral scale + ink, with lime used
     as the single "signal" accent and red reserved for the heart/likes glyph
     and the female gender mode. */
  --brand-lime: #b6f200;
  --brand-lime-soft: #d1f86b;
  --brand-lime-deep: #8fc200;
  --brand-red:  #e53a35;
  --brand-red-deep: #aa2520;
  --brand-sage: #72bf80;

  /* Sage-tinted neutrals (replaces white/grey scale) */
  --sage-50:  #f4faf5;
  --sage-100: #e8f3eb;
  --sage-200: #cee5d4;
  --sage-300: #a4cfad;
  --sage-400: #72bf80;
  --sage-500: #57a366;
  --sage-600: #41864e;
  --sage-700: #2f6a3a;
  --sage-800: #214c29;
  --sage-900: #15301a;

  /* Semantic tokens used everywhere else in the stylesheet */
  --bg: var(--sage-50);
  --ink: #0e1410;           /* near-black with a faint green undertone */
  --ink-soft: #4a5a4e;
  --ink-faint: #8a9890;
  --line: #dde7df;
  --accent: var(--brand-lime);
  --accent-ink: #0e1410;     /* high-contrast ink for use on lime */
  --like: var(--brand-red);
  --card-placeholder: var(--sage-300);
  --gray-frame: #e3ecde;     /* the square backdrop behind product images */
  --header-grey: rgba(14, 20, 16, 0.22);
  --pill-grey: rgba(255, 255, 255, 0.85);
  --shadow-soft: 0 10px 30px rgba(14, 20, 16, 0.06);
  --shadow-pop: 0 24px 60px rgba(14, 20, 16, 0.18);
  --shadow-lime: 0 14px 36px rgba(182, 242, 0, 0.28);
  --radius-card: 32px;
  --radius-card-lg: 44px;
  --ease: cubic-bezier(.4,.0,.2,1);

  /* Back-compat alias for any legacy references */
  --accent-pink: var(--brand-red);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
img, svg { display: block; max-width: 100%; }

.display { font-family: 'Cormorant Garamond', "Times New Roman", serif; font-weight: 600; letter-spacing: .01em; }

/* Global: kill mobile blue tap highlight everywhere */
button, a { -webkit-tap-highlight-color: transparent; }

/* ---------- Header — floating glass plaque ---------- */
.site-header {
  position: sticky;
  top: calc(var(--an-announce-h, 0px) + clamp(10px, 1.4vw, 22px));
  z-index: 50;
  display: flex;
  justify-content: center;
  margin: calc(var(--an-announce-h, 0px) + clamp(10px, 1.4vw, 22px)) auto 0;
  padding: 0 clamp(12px, 2vw, 32px);
  pointer-events: none; /* let the plaque own pointer events */
  transition: top .45s cubic-bezier(.22,.61,.36,1), margin-top .45s cubic-bezier(.22,.61,.36,1);
}
.site-header__plaque {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 44px);
  padding: clamp(8px, 1vw, 14px) clamp(20px, 2.6vw, 38px);
  background: linear-gradient(135deg, #15201a 0%, #0a100c 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(14,20,16,0.32), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform .4s var(--ease);
}
.site-header__plaque:hover { transform: translateY(-1px); }

.site-header__link {
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,0.78);
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  padding: 6px 2px;
  transition: color .25s var(--ease);
}
.site-header__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brand-lime);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--ease);
}
.site-header__link:hover { color: #fff; }
.site-header__link:hover::after { transform: scaleX(1); }

/* hairline separators between link and logo */
.site-header__rule {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.25), transparent);
}

.site-header__logo {
  display: block;
  height: clamp(20px, 1.9vw, 28px);
  transition: transform .4s var(--ease);
}
.site-header__logo img { height: 100%; width: auto; display: block; }
.site-header__logo:hover { transform: scale(1.04); }

@media (max-width: 540px) {
  .site-header__link { font-size: 10px; letter-spacing: 0.22em; }
  .site-header__plaque { gap: 14px; padding: 8px 16px; }
  .site-header__rule { height: 18px; }
}

/* ---------- Filters ----------
   Brand carousel = curved "globe" of names. The strip is ~50vw wide.
   Each pill sits along an arc: its distance from the centered active item
   (set as `--d`, signed) drives a rotateY + scale. Clicking a pill makes it
   the new center; JS animates the track's translateX so it lands dead-center,
   while CSS animates each pill's rotation. */
.filters {
  display: grid;
  gap: 6px;
  margin: clamp(28px, 4vw, 48px) auto 0;
  width: 100%;
  padding: 0;
}
.filter-strip {
  position: relative;
  width: min(720px, 56vw);
  margin: 0 auto;
  overflow: hidden;
  padding: 18px 0 22px;
  perspective: 900px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.filter-strip.is-dragging { cursor: pointer; }
.filter-strip.is-dragging .filter-strip__track,
.filter-strip.is-dragging .filter-strip__pill { transition: none !important; }
.filter-strip__track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.4vw, 56px);
  width: max-content;
  /* JS sets `--tx` so the active pill lands at the visual center */
  transform: translate3d(var(--tx, 0px), 0, 0);
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
  transform-style: preserve-3d;
  will-change: transform;
}
.filter-strip__pill {
  --d: 0;            /* signed distance from active: negative = left, positive = right */
  --abs: 0;          /* abs(d), set together with --d */
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 1.8vw, 32px);
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.005em;
  white-space: nowrap;
  padding: 4px 2px;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transform-origin: center;
  transform: rotateY(calc(var(--d) * 22deg)) scale(calc(1 - var(--abs) * 0.12));
  opacity: clamp(0.18, calc(1 - var(--abs) * 0.28), 1);
  transition: transform .7s cubic-bezier(.22,.61,.36,1),
              opacity .5s var(--ease),
              color .25s var(--ease),
              font-weight .2s var(--ease);
  backface-visibility: hidden;
}
.filter-strip__pill:hover { color: var(--ink); }
.filter-strip__pill.is-active {
  color: var(--ink);
  font-weight: 700;
  /* override the rotateY for the centered item so it faces us */
  transform: rotateY(0deg) scale(1.12);
  opacity: 1;
}
.filter-strip__pill.is-active::after {
  content: '';
  position: absolute;
  left: 8%; right: 8%;
  bottom: -8px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  animation: inkSlide .45s var(--ease);
}
@keyframes inkSlide {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* ---------- Bottom gender bar — fixed pill nav ---------- */
.gender-bar {
  position: fixed;
  left: 0; right: 0;
  bottom: clamp(14px, 1.8vw, 26px);
  display: flex;
  justify-content: center;
  z-index: 60;
  pointer-events: none;
  padding: 0 16px;
}
.gender-bar__plaque {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: clamp(8px, 0.9vw, 12px) clamp(20px, 2.4vw, 36px);
  background: linear-gradient(135deg, var(--brand-lime, #b6f200) 0%, var(--brand-lime-deep, #8fc200) 100%);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(143, 194, 0, 0.32), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: box-shadow .45s var(--ease), background .45s var(--ease);
}
/* Sex group is a separate capsule that overlays the left side of the plaque. */
.gender-bar__group--sex {
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 36px);
  padding: clamp(8px, 0.9vw, 12px) clamp(20px, 2.4vw, 36px);
  border-radius: 999px;
  background: linear-gradient(135deg, #15201a 0%, #0a100c 100%);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  margin: calc(clamp(8px, 0.9vw, 12px) * -1) 0 calc(clamp(8px, 0.9vw, 12px) * -1) calc(clamp(20px, 2.4vw, 36px) * -1);
  transition: background .45s var(--ease), box-shadow .45s var(--ease);
}
/* User group sits inside the plaque (right side). */
.gender-bar__group--user {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
  padding-left: clamp(18px, 2vw, 28px);
}
.gender-bar__group--user:empty { display: none; }
/* Mode-driven palette applies only to the sex group overlay. */
.gender-bar[data-mode="female"] .gender-bar__group--sex {
  background: linear-gradient(135deg, #6b1838 0%, #3d0a1f 100%);
  box-shadow: 0 10px 28px rgba(61, 10, 31, 0.55), inset 0 1px 0 rgba(255,255,255,0.08);
}
.gender-bar[data-mode="male"] .gender-bar__group--sex {
  background: linear-gradient(135deg, #15375c 0%, #081d35 100%);
  box-shadow: 0 10px 28px rgba(8, 29, 53, 0.55), inset 0 1px 0 rgba(255,255,255,0.08);
}
.gender-bar__pill {
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,0.6);
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 4px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .25s var(--ease);
}
/* Icons-only mode: hide the text label, the icon alone represents the filter. */
.gender-bar__pill > span { display: none; }
.gender-bar__pill iconify-icon {
  font-size: clamp(18px, 1.4vw, 22px);
  color: rgba(255,255,255,0.65);
  transition: color .25s var(--ease), transform .35s var(--ease);
}
.gender-bar__pill:hover { color: #fff; }
.gender-bar__pill:hover iconify-icon { color: #fff; transform: translateY(-1px); }
.gender-bar__pill.is-active { color: #fff; font-weight: 700; }
.gender-bar__pill.is-active iconify-icon { color: #fff; }
.gender-bar__pill.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: #fff;
  animation: inkSlide .35s var(--ease);
}

/* Gender row legacy in-flow style (unused now — see .gender-bar below) */
.filter-strip--gender { display: none; }

@media (max-width: 720px) {
  .filter-strip__track { animation-duration: 28s; }
}

/* ---------- Product grid ----------
   `auto-fill` with a tight min keeps cards small. On an ultrawide 34" 3440px
   monitor you get ~16+ columns; a 1080p screen gets ~10; a phone gets 2–3. */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 11vw, 200px), 1fr));
  gap: clamp(8px, 0.7vw, 14px);
  /* Bottom padding clears the fixed gender bar so the last row + end-of-list
     marker never sit behind it. --an-gender-h is measured in JS. */
  padding: clamp(20px, 2vw, 40px) clamp(16px, 2.4vw, 40px)
           calc(var(--an-gender-h, 110px) + clamp(24px, 2.4vw, 40px));
  width: 100%;
  margin: 0 auto;
}

/* ---------- Card ----------
   Uses CSS container queries so all inner sizing scales with the card itself.
   Small grid cell → tiny rounded photo. Expanded 2×2 → full editorial layout. */
.card {
  position: relative;
  container-type: inline-size;
  container-name: card;
  aspect-ratio: 1 / 1;
  border-radius: clamp(14px, 4cqw, 28px);
  background: var(--card-bg, var(--card-placeholder));
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-radius .35s var(--ease),
              box-shadow .35s var(--ease),
              transform .35s var(--ease);
  isolation: isolate;
}
.card:hover { box-shadow: var(--shadow-soft); }
.card::after {
  /* subtle inner highlight so plain-color placeholders look intentional */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  pointer-events: none;
}

/* expanded state — same aspect-ratio so it occupies a clean 2×2 cell.
   Top-left corner is sharp so the photo can sit flush against it. */
.card.is-open {
  grid-column: span 2;
  grid-row: span 2;
  border-radius: 0 clamp(20px, 3cqw, 40px) clamp(20px, 3cqw, 40px) clamp(20px, 3cqw, 40px);
  background: var(--gray-frame);
  box-shadow: var(--shadow-pop);
  cursor: default;
  z-index: 2;
}

/* image layer — fills the whole card when closed, shrinks to top-left inside the gray frame when open */
.card__photo {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--card-bg, var(--card-placeholder)) center/cover no-repeat;
  transition: inset .4s var(--ease), border-radius .4s var(--ease);
}
.card.is-open .card__photo {
  /* flush to top-left of frame; equal right/bottom margins keep photo square.
     Top-left & bottom-left edges meet the frame edge (no radius); the two
     right corners face the gray strip and need rounding. */
  inset: 0 24cqw 24cqw 0;
  border-radius: 0 clamp(16px, 5cqw, 36px) clamp(16px, 5cqw, 36px) 0;
}

/* expanded-only inner pieces */
.card__inner { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.card.is-open .card__inner { opacity: 1; pointer-events: auto; }

.card__stock {
  position: absolute;
  top: 5cqw;
  left: 5cqw;
  background: #111;
  color: #fff;
  padding: 2cqw 3.4cqw;
  border-radius: 2.4cqw;
  font-size: clamp(11px, 2.4cqw, 18px);
  letter-spacing: .01em;
  transform: translateY(-12px);
  opacity: 0;
  transition: opacity .4s var(--ease) .12s, transform .4s var(--ease) .12s;
}
.card__stock b { color: #fff; font-weight: 700; }
.card.is-open .card__stock { opacity: 1; transform: translateY(0); }

/* On touch / hover-less devices the card never enters an "is-open" hover
   preview state, so the urgency badge would otherwise stay hidden. Reveal it
   always so phone shoppers see the scarcity signal at a glance. */
@media (hover: none) {
  .card__stock { opacity: 1; transform: translateY(0); }
  .card__discount { opacity: 1; transform: translateY(0); }
}

/* Breathing pulse when only 1 left */
.card__stock--last { background: #b62a26; animation: anStockBreath 1.6s ease-in-out infinite; }
@keyframes anStockBreath {
  0%, 100% { transform: translateY(0)        scale(1);    box-shadow: 0 0 0 0 rgba(182,42,38,.55); }
  50%      { transform: translateY(-1px)     scale(1.04); box-shadow: 0 0 0 8px rgba(182,42,38,0); }
}
.card.is-open .card__stock--last { animation-play-state: running; }

/* Discount badge — mirrors .card__stock but pinned to bottom-right */
.card__discount {
  position: absolute;
  bottom: 5cqw;
  right: 5cqw;
  background: #b78b3c;
  color: #fff;
  padding: 2cqw 3.4cqw;
  border-radius: 2.4cqw;
  font-size: clamp(11px, 2.4cqw, 18px);
  letter-spacing: .02em;
  font-weight: 700;
  transform: translateY(12px);
  opacity: 0;
  transition: opacity .4s var(--ease) .12s, transform .4s var(--ease) .12s;
}
.card.is-open .card__discount { opacity: 1; transform: translateY(0); }

/* Price variants */
.card__price--ondemand { font-style: italic; font-size: clamp(13px, 3cqw, 22px); }
.card__price-now { color: #b78b3c; font-weight: 700; }
.card__price-old { color: var(--ink-faint, #8a857c); text-decoration: line-through; font-size: .8em; margin-left: .35em; }

.card__actions {
  position: absolute;
  top: 5cqw;
  right: 5cqw;
  display: grid;
  gap: 2.4cqw;
}
.card__btn {
  width: clamp(40px, 9cqw, 76px);
  height: clamp(40px, 9cqw, 76px);
  border-radius: clamp(12px, 2.4cqw, 20px);
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  transform: translateX(28px);
  opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease), background .2s var(--ease);
}
.card__btn:hover { background: #2c3038; }
.card__btn iconify-icon { font-size: clamp(20px, 4.2cqw, 36px); }
.card__btn--info { background: #111; }
.card__btn--cart {
  background: var(--brand-lime);
  color: var(--accent-ink);
  box-shadow: 0 8px 22px rgba(143, 194, 0, 0.32);
}
.card__btn--cart:hover { background: var(--brand-lime-deep); }
.card__btn--cart iconify-icon { color: var(--accent-ink); }
.card.is-open .card__btn:nth-child(1) { transform: translateX(0); opacity: 1; transition-delay: .15s; }
.card.is-open .card__btn:nth-child(2) { transform: translateX(0); opacity: 1; transition-delay: .25s; }
.card.is-open .card__btn:nth-child(3) { transform: translateX(0); opacity: 1; transition-delay: .35s; }

.card__meta {
  position: absolute;
  left: 5cqw;
  right: 5cqw;
  bottom: 10cqw;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2cqw;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity .4s var(--ease) .25s, transform .4s var(--ease) .25s;
}
.card.is-open .card__meta { opacity: 1; transform: translateY(0); }
.card__brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 5.2cqw, 48px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.05;
}
.card__price {
  background: #111; color: #fff;
  padding: 1.4cqw 3cqw;
  border-radius: 1.8cqw;
  font-size: clamp(14px, 2.6cqw, 22px);
  letter-spacing: .01em;
  white-space: nowrap;
}

.card__sub {
  position: absolute;
  left: 5cqw;
  right: 5cqw;
  bottom: 3.5cqw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(12px, 2.2cqw, 18px);
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s var(--ease) .32s, transform .4s var(--ease) .32s;
}
.card.is-open .card__sub { opacity: 1; transform: translateY(0); }
.card__likes { color: var(--like); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.card__likes::before { content: '♥'; font-size: 1em; }

/* ---------- Modal (frosted) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.modal__panel {
  position: relative;
  width: min(460px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-pop);
  animation: pop .35s var(--ease);
}
@keyframes pop {
  from { transform: scale(.96) translateY(8px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}
.modal__close:hover { background: #f3f3f3; color: var(--ink); }
.modal__title { font-family: 'Cormorant Garamond', serif; font-size: 28px; margin: 0 0 4px; }
.modal__sub { color: var(--ink-soft); margin-bottom: 24px; }
.modal__amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
  padding: 18px 20px;
  background: #f6f7f9;
  border-radius: 14px;
}
.modal__amount-label { color: var(--ink-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.modal__amount-value { font-family: 'Cormorant Garamond', serif; font-size: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--paypal { background: #0070ba; color: #fff; }
.btn--paypal:hover { background: #005ea6; box-shadow: 0 10px 24px rgba(0,112,186,.28); }
.btn--ghost { background: transparent; color: var(--ink-soft); }
.btn--ghost:hover { background: #f3f3f3; }

/* ---------- Generic page (about / contacts) ---------- */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 32px 100px;
}
.page__kicker { text-transform: uppercase; letter-spacing: .2em; color: var(--ink-faint); font-size: 12px; margin-bottom: 12px; }
.page__title { font-family: 'Cormorant Garamond', serif; font-size: 64px; font-weight: 600; margin: 0 0 24px; line-height: 1; }
.page__lede { font-size: 18px; color: var(--ink-soft); margin-bottom: 32px; }
.page__section { margin: 36px 0; }
.page__section h2 { font-family: 'Cormorant Garamond', serif; font-size: 28px; margin: 0 0 10px; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 14px; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.contact-list a:hover { border-color: var(--ink); background: #fafafa; }
.contact-list iconify-icon { font-size: 24px; color: var(--ink); }

/* ---------- Product detail (PDP) ----------
   Editorial two-column hero. Left = main image stage with thumbnail strip
   and arrows below. Right = brand + model + price + meta + CTAs. Clicking
   the main image opens the lightbox. */
.detail-wrap { max-width: 1320px; margin: 0 auto; padding: 28px clamp(16px, 2.4vw, 48px) clamp(120px, 12vw, 160px); }

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 3.6vw, 64px);
  align-items: start;
}
.pdp__gallery { display: grid; gap: 18px; }

.pdp__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--gray-frame);
  border-radius: 28px;
  overflow: hidden;
  cursor: zoom-in;
  padding: 0;
  border: 0;
  box-shadow: var(--shadow-pop);
  isolation: isolate;
}
.pdp__stage-img {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: transform .5s var(--ease), background .5s var(--ease);
  background-size: cover;
  background-position: center;
}
.pdp__stage:hover .pdp__stage-img { transform: scale(1.03); }
.pdp__stock {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
  background: #111;
  color: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  letter-spacing: .01em;
}
.pdp__stock b { font-weight: 700; }
.pdp__zoom {
  position: absolute;
  bottom: 18px; right: 18px;
  z-index: 2;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(17,17,17,0.78);
  color: #fff;
  border-radius: 14px;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.pdp__stage:hover .pdp__zoom { opacity: 1; transform: translateY(0); }
.pdp__zoom iconify-icon { font-size: 22px; }

.pdp__thumbs-wrap {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 10px;
}
.pdp__nav {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: #111;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.pdp__nav:hover { background: #2c3038; transform: translateY(-1px); }
.pdp__nav iconify-icon { font-size: 20px; }

.pdp__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px;
}
.pdp__thumbs::-webkit-scrollbar { display: none; }
.pdp__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.pdp__thumb:hover { transform: translateY(-1px); }
.pdp__thumb.is-active { border-color: var(--ink); }

/* ---- Info column ---- */
.pdp__info {
  display: grid;
  align-content: start;
  gap: clamp(10px, 1.2vw, 16px);
  padding-top: clamp(8px, 1vw, 18px);
}
.pdp__brand-line {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pdp__title {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.02;
  font-weight: 600;
  color: var(--ink);
}
.pdp__sku {
  margin: 0;
  color: var(--ink-faint);
  font-size: 13px;
  letter-spacing: .04em;
}
.pdp__price-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}
.pdp__price {
  background: #111;
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: .01em;
}
.pdp__likes {
  color: var(--like);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(14px, 1.1vw, 17px);
}
.pdp__likes::before { content: '♥'; }

.pdp__meta {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}
.pdp__meta li {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.pdp__meta span {
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.pdp__meta b { font-weight: 600; color: var(--ink); }

.pdp__actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pdp__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.pdp__btn iconify-icon { font-size: 22px; }
.pdp__btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(14,20,16,.22);
}
.pdp__btn--primary:hover {
  background: #1a221d;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lime), 0 12px 28px rgba(14,20,16,.22);
}
.pdp__btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.pdp__btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(14,20,16,0.94);
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__stage {
  width: min(92vw, 1200px);
  height: min(86vh, 900px);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  background-color: #181818;
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 14px;
  transition: background .2s var(--ease);
}
.lightbox__close:hover { background: rgba(255,255,255,0.18); }
.lightbox__close iconify-icon { font-size: 28px; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  width: 56px; height: 56px;
  transform: translateY(-50%);
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 16px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav iconify-icon { font-size: 28px; }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }
.lightbox__counter {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.sections { margin-top: 64px; display: grid; gap: 36px; }
.section { border-top: 1px solid var(--line); padding-top: 28px; }
.section h2 { font-family: 'Cormorant Garamond', serif; font-size: 30px; margin: 0 0 14px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 28px; }
.specs dt { color: var(--ink-faint); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 2px; }
.specs dd { margin: 0 0 8px; font-size: 15px; }

.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.related-grid .card { aspect-ratio: 1 / 1; border-radius: 24px; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox__nav { width: 46px; height: 46px; }
}
@media (max-width: 560px) {
  .pdp__title { font-size: 32px; }
  .pdp__actions { grid-template-columns: 1fr; }
  .pdp__meta li { grid-template-columns: 90px 1fr; }
  .pdp__thumb { width: 56px; height: 56px; }
}

/* ---------- Body scroll lock when modal open ---------- */
body.is-modal-open { overflow: hidden; }

/* Order modal — kill stray horizontal scroll caused by inner elements
   slightly wider than the panel content box, and theme the price chip when
   the product is "Price on demand". */
.modal__panel { overflow-x: hidden; }
.modal__panel > * { max-width: 100%; }
.modal__amount-value.is-on-demand {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Bootstrap-style native <select> ---------- */
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font: inherit; color: var(--ink, #0e1410);
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%238a9890' d='M3.5 5.8l4.5 4.9 4.5-4.9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
  border: 1px solid var(--line, #dde7df); border-radius: 10px;
  padding: 9px 36px 9px 12px;
  cursor: pointer; outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select:hover { border-color: var(--line-strong, #c5d4ca); }
select:focus { border-color: var(--ink, #0e1410); box-shadow: 0 0 0 3px rgba(182,242,0,0.28); }
select:disabled { opacity: .6; cursor: not-allowed; background-color: #f6f8f6; }

/* ---------- Access gate (frosted glass) ---------- */
html.an-gate-locked, html.an-gate-locked body { overflow: hidden !important; }
.an-gate {
  position: fixed; inset: 0; z-index: 100000;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at center, rgba(10,10,10,0.55), rgba(10,10,10,0.85));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: 24px;
  animation: an-gate-in .35s ease-out;
}
@keyframes an-gate-in { from { opacity: 0; } to { opacity: 1; } }
.an-gate__card {
  width: min(420px, 100%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 28px 26px 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  color: #fff;
}
.an-gate__card--shake { animation: an-gate-shake .42s cubic-bezier(.36,.07,.19,.97); border-color: rgba(255,80,80,0.55); }
@keyframes an-gate-shake {
  10%,90% { transform: translateX(-1px); }
  20%,80% { transform: translateX(2px); }
  30%,50%,70% { transform: translateX(-6px); }
  40%,60% { transform: translateX(6px); }
}
.an-gate__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; line-height: 1.1; letter-spacing: .01em;
  margin-bottom: 4px;
}
.an-gate__sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
}
.an-gate__form { display: grid; gap: 12px; }
.an-gate__row { display: flex; gap: 8px; align-items: stretch; }
.an-gate__input {
  flex: 1; min-width: 0;
  font: inherit; font-family: 'Inter', sans-serif; font-size: 15px;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  padding: 12px 14px;
  outline: 0;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
  letter-spacing: .14em;
}
.an-gate__input::placeholder { color: rgba(255,255,255,0.35); letter-spacing: .3em; }
.an-gate__input:focus {
  border-color: var(--brand-lime, #b6f200);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(182,242,0,0.25);
}
.an-gate__help {
  width: 44px; flex: 0 0 44px;
  display: grid; place-items: center;
  font: 600 16px/1 'Inter', sans-serif;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.an-gate__help:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); }
.an-gate__submit {
  font: 600 12px/1 'Inter', sans-serif;
  letter-spacing: .26em; text-transform: uppercase;
  color: #0a0a0a;
  background: var(--brand-lime, #b6f200);
  border: 0; border-radius: 12px;
  padding: 13px 18px;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.an-gate__submit:hover { filter: brightness(1.05); }
.an-gate__submit:active { transform: translateY(1px); }
.an-gate__msg {
  font-family: 'Inter', sans-serif;
  font-size: 12px; letter-spacing: .08em;
  color: rgba(255,255,255,0.7);
  min-height: 16px;
  text-align: center;
}
.an-gate__tip {
  font-family: 'Inter', sans-serif;
  font-size: 12px; line-height: 1.6;
  color: rgba(255,255,255,0.78);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 4px;
}
.an-gate__tip a { color: var(--brand-lime, #b6f200); text-decoration: none; }
.an-gate__tip a:hover { text-decoration: underline; }

/* ---------- Grid end-of-list marker ---------- */
.an-grid-end {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 48px 16px 64px;
  color: rgba(20, 26, 22, 0.55);
  font-family: 'Cormorant Garamond', 'Inter', serif;
  font-size: 16px; letter-spacing: 0.18em; text-transform: uppercase;
}
.an-grid-end__rule {
  flex: 0 1 120px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20,26,22,0.25), transparent);
}
.an-grid-end__text { white-space: nowrap; }
@media (max-width: 540px) {
  .an-grid-end { font-size: 12px; padding: 36px 12px 48px; gap: 12px; }
  .an-grid-end__rule { flex-basis: 60px; }
}

/* ---------- Site announcement banner (fixed top strip) ---------- */
.an-announce {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9500;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 9px 44px 9px 18px;
  background: linear-gradient(90deg, #0a100c 0%, #15201a 50%, #0a100c 100%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid rgba(182,242,0,0.18);
  transform: translateY(-100%);
  opacity: 0;
  transition: opacity .45s ease, transform .55s cubic-bezier(.22,.61,.36,1);
  overflow: hidden;
}
.an-announce.is-in { transform: translateY(0); opacity: 1; }
.an-announce.is-hidden { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.an-announce__text {
  color: rgba(255,255,255,0.92);
  max-width: min(1100px, 92vw);
  text-align: center;
  white-space: nowrap; overflow: hidden;
  display: inline-block;
}
/* Marquee mode: when text overflows we duplicate it and scroll. */
.an-announce.is-marquee { padding-left: 12px; padding-right: 40px; }
.an-announce.is-marquee .an-announce__text {
  max-width: none;
  display: inline-flex; gap: 4em;
  animation: an-announce-scroll var(--an-marquee-dur, 22s) linear infinite;
  will-change: transform;
}
.an-announce.is-marquee .an-announce__text > span { padding-right: 4em; }
@keyframes an-announce-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.an-announce__close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: rgba(255,255,255,0.7);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 8px;
}
.an-announce__close:hover { color: var(--brand-lime, #b6f200); }
@media (max-width: 540px) {
  .an-announce { font-size: 10px; letter-spacing: 0.1em; padding: 8px 38px 8px 12px; }
}


/* ---------- Lazy image skeleton (very light gray shimmer) ---------- */
.an-skeleton {
  background-color: #f4f4f4 !important;
  background-image: linear-gradient(100deg, #f4f4f4 0%, #ececec 45%, #f6f6f6 55%, #f4f4f4 100%) !important;
  background-size: 220% 100% !important;
  background-repeat: no-repeat !important;
  background-position: 0 0 !important;
  animation: an-skel 1.4s ease-in-out infinite;
}
@keyframes an-skel { 0%{background-position:120% 0} 100%{background-position:-20% 0} }
.an-skeleton.is-loaded { animation: none; }
.card__photo.is-loaded,
.pdp__stage-img.is-loaded,
.pdp__thumb.is-loaded,
.lightbox__stage.is-loaded { animation: an-fadein .25s ease; }
@keyframes an-fadein { from { opacity: .35 } to { opacity: 1 } }
@media (prefers-reduced-motion: reduce) {
  .an-skeleton { animation: none; }
}


/* ---------- Order form (inside .modal__panel) ---------- */
.modal__panel { max-height: calc(100vh - 48px); overflow-y: auto; }
.order-form { display: grid; gap: 14px; }
.order-form * { box-sizing: border-box; }
.order-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.order-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .1em;
  min-width: 0;
}
.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.order-form input:invalid:not(:placeholder-shown) { border-color: #d44; }
.order-form select {
  /* match the input height/padding/border tokens so the dropdown blends in */
  padding: 11px 36px 11px 13px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.order-form select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.order-form select:invalid { color: var(--ink-faint); }
.order-form select option { color: var(--ink); }
.order-form .btn { margin-top: 6px; }
.order-form__msg { font-size: 13px; color: var(--ink-soft); min-height: 1em; }
.order-form__msg.is-error { color: #c0392b; }
.order-form__msg.is-ok    { color: #2e7d32; }
.order-form__note { font-size: 11px; color: var(--ink-faint); margin: 4px 0 0; line-height: 1.5; }

.btn--primary { background: var(--ink, #111); color: #fff; }
.btn--primary:hover { background: #000; box-shadow: 0 10px 24px rgba(0,0,0,.18); }

.order-thanks { text-align: center; padding: 12px 0; }
.order-thanks__icon { font-size: 56px; color: #2e7d32; }
.order-thanks__msg { color: var(--ink-soft); margin: 10px 0 0; }

@media (max-width: 520px) {
  .modal { padding: 12px; }
  .modal__panel { padding: 24px 20px; border-radius: 18px; }
  .order-form__row { grid-template-columns: 1fr; }
}


/* ---------- Custom <select> widget (.an-dd) — storefront variant ----------
   Native <select> is hidden via .an-dd__native, the .an-dd renders a
   styled button + popup menu mirroring the admin dashboard pattern. */
.an-dd { position: relative; display: inline-block; width: 100%; font: inherit; text-align: left; }
.an-dd__native {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  pointer-events: none; opacity: 0;
}
.an-dd__btn {
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 11px 36px 11px 13px;
  font: inherit; font-size: 14px; color: var(--ink);
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2016%2016%27%3E%3Cpath%20fill%3D%27%238a9890%27%20d%3D%27M3.5%205.8l4.5%204.9%204.5-4.9z%27%2F%3E%3C%2Fsvg%3E") no-repeat right 12px center / 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer; text-align: left;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.an-dd__btn:hover { border-color: var(--brand-lime-deep); }
.an-dd.is-open .an-dd__btn,
.an-dd__btn:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(182, 242, 0, 0.28);
}
.an-dd__label {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.an-dd__label.is-placeholder { color: var(--ink-faint); }
.an-dd__caret { display: none; } /* native arrow already painted via background-image */

.an-dd__flag {
  width: 22px; height: 16px; border-radius: 2px;
  flex: 0 0 22px;
  background: #eee center/cover no-repeat;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.an-dd__flag.is-hidden { display: none; }

.an-dd__menu {
  position: fixed;
  min-width: 180px;
  max-height: min(360px, 60vh);
  overflow-y: auto;
  margin: 0; padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(14, 20, 16, 0.18), 0 2px 6px rgba(14, 20, 16, 0.08);
  z-index: 9000;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top left;
  transition: opacity .14s var(--ease), transform .14s var(--ease), visibility 0s linear .14s;
}
.an-dd.is-open .an-dd__menu {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity .14s var(--ease), transform .14s var(--ease), visibility 0s;
}
.an-dd__opt {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  font-size: 14px; color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s var(--ease);
}
.an-dd__opt:hover { background: rgba(182, 242, 0, 0.14); }
.an-dd__opt.is-selected { background: rgba(182, 242, 0, 0.22); font-weight: 600; }
.an-dd__opt.is-placeholder { color: var(--ink-faint); }
.an-dd__opt[aria-disabled="true"] { opacity: .55; cursor: default; }
.an-dd__opt-label { flex: 1; min-width: 0; }

/* When the widget lives inside the order-form, swallow the label margins so
   it lines up with the surrounding inputs. */
.order-form .an-dd { width: 100%; }
.order-form .an-dd__btn { padding: 11px 36px 11px 13px; }


/* ---------- Mini gender bar (non-storefront pages) ----------
   Small fluorescent-green pill containing only the locale + account
   icons, no dark sex group. Mirrors .gender-bar position. */
.gender-bar--mini .gender-bar__plaque {
  padding: 6px 16px;
  gap: 0;
}
.gender-bar--mini .gender-bar__group--user {
  padding-left: 0;
  gap: clamp(10px, 1.2vw, 18px);
}
.gender-bar--mini .gender-bar__group--user:empty {
  /* Hide the wrapper entirely while locale.js/account.js have not injected
     their buttons yet, so the empty green pill does not flash. */
  display: none;
}
.gender-bar--mini .gender-bar__plaque:has(.gender-bar__group--user:empty) {
  display: none;
}
