/* ==========================================================================
   DR PHONE — customer catalog
   "Red Editorial": white paper, oversized black display type, red as
   punctuation. Palette taken from the brand guideline.

   Contents
     01  Font + tokens
     02  Reset + primitives
     03  Motion primitives
     04  Passcode gate
     05  Header
     06  Hero + marquee
     07  Category rows
     08  Product grid
     09  Quantity control
     10  Side panels (menu / cart / product detail)
     11  Footer + utilities
     12  Print
   ========================================================================== */

/* ---------- 01  Font + tokens ------------------------------------------- */

/* Self-hosted: the app's CSP has no font-src directive, so it falls back to
   default-src 'self' and any external font request would be blocked. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand palette — read out of the brand guideline PDF's own fill operators. */
  --red: #ff0000;
  --red-deep: #ce0606;   /* small text on white; #ff0000 fails AA below ~19px */
  --red-wash: #fff0f0;
  --ink: #000000;
  --paper: #ffffff;
  --grey-100: #eaeaea;
  --grey-200: #d8d8d8;
  --grey-600: #5f5f5f;
  --grey-800: #3e3e3e;

  --ok: #08783e;
  --ok-wash: #e9f8ee;
  --warn: #9a5b08;
  --warn-wash: #fff4d6;
  --whatsapp: #1fae63;

  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Fluid editorial scale. --step-7 is the hero. */
  --step--2: 0.6875rem;
  --step--1: 0.75rem;
  --step-0: 0.875rem;
  --step-1: 1rem;
  --step-2: clamp(1.125rem, 0.4vw + 1rem, 1.375rem);
  --step-3: clamp(1.375rem, 1vw + 1.1rem, 1.875rem);
  --step-4: clamp(1.75rem, 2vw + 1.2rem, 2.75rem);
  --step-5: clamp(2.25rem, 4vw + 1rem, 4rem);
  --step-7: clamp(2.75rem, 10.5vw, 9.5rem);

  --shell: 1240px;
  --radius: 14px;
  --radius-lg: 22px;

  --dur-fast: 140ms;
  --dur-base: 320ms;
  --dur-slow: 620ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);          /* out-expo */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- 02  Reset + primitives -------------------------------------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
html[data-motion='off'] { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.45;
  font-synthesis-weight: none;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--red); color: #fff; }

.eyebrow {
  margin: 0;
  color: var(--red-deep);
  font-size: var(--step--2);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur-base) var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Page must not scroll behind an open panel. */
body.panel-open { overflow: hidden; }

/* A red rule that wipes in from the left. */
.rule {
  height: 8px;
  background: var(--red);
  transform-origin: left center;
}

/* ---------- 03  Motion primitives --------------------------------------- */

/* Every reveal is transform + opacity only, driven by one shared
   IntersectionObserver that unobserves on first paint. */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity var(--dur-slow) var(--ease-out) var(--reveal-delay, 0ms),
    transform var(--dur-slow) var(--ease-out) var(--reveal-delay, 0ms);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* `will-change: transform, opacity` used to sit on both rules above. It is a
   promise to the browser that a thing is about to animate, and the browser keeps
   its word by giving each one its own compositor layer — 229 of them on a search
   for "xo", nearly all for cards far off screen. Transform and opacity are
   composited anyway, so the hint bought nothing and cost the phone real memory.
   (content-visibility was tried here too and measured no better than this, so it
   is deliberately not used: the batched grid in catalog.js is what fixed the
   long lists.) */

.reveal-line {
  display: block;
  overflow: hidden;
}
.reveal-line > i {
  display: block;
  font-style: normal;
  transform: translate3d(0, 110%, 0);
  animation: line-up 900ms var(--ease-out) var(--d, 0s) forwards;
}
@keyframes line-up { to { transform: none; } }

@keyframes rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(-2%, -3%, 0) rotate(-3deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}
@keyframes pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.42); }
  100% { transform: scale(1); }
}
@keyframes shimmer { to { background-position: 200% 0; } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}
@keyframes header-rule {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Reduced motion: strip every animation, keep every piece of content. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .reveal-line > i { transform: none; }
}
html[data-motion='off'] [data-reveal] { opacity: 1; transform: none; }
html[data-motion='off'] .reveal-line > i { animation: none; transform: none; }
html[data-motion='off'] .marquee-track { animation: none; }
html[data-motion='off'] .gate-pattern { animation: none; }

/* Lite tier (small screens / <=4 cores): keep reveals and hover feedback,
   drop the continuously running background animations. */
html[data-motion='lite'] .gate-pattern { animation: none; }
html[data-motion='lite'] .header-rule { animation: none; }

/* ---------- 04  Passcode gate ------------------------------------------- */

.gate-body { overflow-x: hidden; }

.gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.gate-brand {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 72px);
  background: var(--red);
  color: #fff;
}

/* Drifting field built from the four rounded-square icons of the logo. */
.gate-pattern {
  position: absolute;
  inset: -20%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6%;
  opacity: 0.13;
  animation: drift 26s ease-in-out infinite;
}
.gate-tile {
  border-radius: 26%;
  background: #fff;
  aspect-ratio: 1;
}

.gate-brand-inner { position: relative; z-index: 1; max-width: 620px; }

.gate-logo {
  width: clamp(112px, 16vw, 168px);
  height: auto;
  margin-bottom: clamp(20px, 4vw, 38px);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.gate-headline {
  margin: 0;
  font-size: clamp(2.5rem, 6.4vw, 5.6rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: uppercase;
}

.gate-tagline {
  margin: clamp(18px, 3vw, 30px) 0 0;
  padding-top: 18px;
  border-top: 2px solid rgba(255, 255, 255, .45);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.gate-form {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 72px);
  background: var(--paper);
}
.gate-form-inner { width: min(100%, 400px); }
.gate-form-inner h2 {
  margin: 10px 0 12px;
  font-size: var(--step-4);
  font-weight: 900;
  letter-spacing: -0.04em;
}
.gate-note {
  margin: 0 0 24px;
  color: var(--grey-600);
  font-size: var(--step-0);
}

.password-wrap { position: relative; }
.password-wrap input {
  width: 100%;
  height: 58px;
  padding: 0 78px 0 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  font-size: var(--step-1);
  font-weight: 600;
  transition: border-color var(--dur-fast) linear, box-shadow var(--dur-fast) linear;
}
.password-wrap input:focus {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-wash);
}
.show-password {
  position: absolute;
  top: 9px;
  right: 9px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--grey-100);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.show-password:hover { background: var(--red); color: #fff; }

.form-error {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
  background: var(--red-wash);
  color: var(--red-deep);
  font-size: var(--step--1);
  font-weight: 700;
  animation: shake 320ms var(--ease-out);
}

.gate-submit {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: background var(--dur-fast) linear, transform var(--dur-fast) var(--ease-out);
}
.gate-submit svg { font-size: 1.1em; transition: transform var(--dur-base) var(--ease-out); }
.gate-submit:hover { background: var(--red); }
.gate-submit:hover svg { transform: translateX(5px); }
.gate-submit:active { transform: scale(.985); }

.gate-foot {
  margin: 30px 0 0;
  color: var(--grey-600);
  font-size: var(--step--1);
}
.gate-foot strong { color: var(--ink); letter-spacing: -0.02em; }

@media (max-width: 860px) {
  .gate { grid-template-columns: 1fr; }
  .gate-brand { min-height: 46vh; }
  .gate-headline { font-size: clamp(2.25rem, 11vw, 3.6rem); }
}

/* On a 320x568 phone the brand panel's 46vh left the form what remained, which
   put the Open catalog button — and the "see what we stock" hook below it —
   past the fold. On a short screen the brand panel gives up some of its air so
   the whole form lands on the first screen. */
@media (max-height: 700px) and (max-width: 860px) {
  .gate-brand { min-height: 0; padding: 18px 20px; }
  .gate-form { padding: 18px 20px; }
  .gate-logo { width: clamp(84px, 13vw, 112px); margin-bottom: 14px; }
  .gate-headline { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .gate-tagline { margin-top: 14px; padding-top: 12px; }
  .gate-form-inner h2 { margin-bottom: 6px; }
}

/* ---------- 05  Header --------------------------------------------------- */

#header-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-stuck { box-shadow: 0 10px 34px rgba(0, 0, 0, .09); }

.header-inner {
  max-width: var(--shell);
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  transition: padding var(--dur-base) var(--ease-out);
}
.site-header.is-stuck .header-inner { padding-top: 8px; padding-bottom: 8px; }

.header-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--ink) 25%, var(--red) 50%, var(--ink) 75%, var(--red) 100%);
  background-size: 200% 100%;
  animation: header-rule 9s linear infinite;
}

.icon-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--paper);
  font-size: 20px;
  transition: background var(--dur-fast) linear, color var(--dur-fast) linear, transform var(--dur-fast) var(--ease-spring);
}
.icon-btn:hover { background: var(--ink); color: #fff; }
.icon-btn:active { transform: scale(.92); }

.brand { flex: 0 0 auto; line-height: 0; }
.brand-logo {
  width: 104px;
  height: 46px;
  object-fit: contain;
  border-radius: 9px;
  transition: width var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out);
}
.site-header.is-stuck .brand-logo { width: 84px; height: 38px; }

.search-wrap {
  position: relative;
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  min-width: 0;
  border: 2px solid var(--grey-100);
  border-radius: 12px;
  background: var(--paper);
  transition: border-color var(--dur-fast) linear;
}
.search-wrap:focus-within { border-color: var(--ink); }
.search-icon {
  position: absolute;
  left: 13px;
  font-size: 19px;
  color: var(--grey-600);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 40px;
  border: 0;
  background: transparent;
  font-weight: 600;
  outline: 0;
}
.search-wrap input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute;
  right: 7px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--grey-100);
  font-size: 15px;
}
.search-clear:hover { background: var(--red); color: #fff; }
/* display:grid above would otherwise defeat the [hidden] attribute. */
.search-clear[hidden] { display: none; }

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  height: 42px;
  border: 2px solid var(--grey-100);
  border-radius: 999px;
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--dur-fast) linear, color var(--dur-fast) linear;
}
.contact-pill svg { font-size: 15px; color: var(--red); }
.contact-pill:hover { border-color: var(--red); color: var(--red-deep); }

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 8px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--dur-fast) linear, transform var(--dur-fast) var(--ease-spring);
}
.cart-trigger svg { font-size: 18px; }
.cart-trigger:hover { background: var(--red); }
.cart-trigger:active { transform: scale(.95); }
.cart-trigger b {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}
.cart-trigger:hover b { background: #fff; color: var(--red-deep); }
.cart-trigger b.is-bumped { animation: pop 420ms var(--ease-spring); }

.admin-link, .lock-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 42px;
  padding: 0 12px;
  border: 2px solid var(--grey-100);
  border-radius: 11px;
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 800;
  text-decoration: none;
  transition: border-color var(--dur-fast) linear, background var(--dur-fast) linear, color var(--dur-fast) linear;
}
.lock-link { padding: 0; font-size: 18px; }
.admin-link:hover, .lock-link:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

@media (max-width: 860px) {
  .contact-pill span { display: none; }
  .contact-pill { padding: 0; width: 42px; justify-content: center; border-radius: 11px; }
  .cart-trigger span { display: none; }
  .cart-trigger { padding: 0 8px 0 12px; }
}
@media (max-width: 760px) {
  .search-wrap { order: 10; flex-basis: 100%; }
  .brand-logo { width: 88px; height: 40px; }
  .site-header.is-stuck .brand-logo { width: 74px; height: 34px; }
}

/* Under 375px the five controls plus their gaps come to 332px against 284-324px
   of usable width, so the lock icon wrapped onto a line of its own and the
   header ate 189px of a 568px screen. Two deliberate rows instead: the primary
   actions, then the search sharing its line with the lock. Menu 44 + logo 88 +
   phone 44 + cart 72 + three 8px gaps = 272, inside the 284px a 320px screen
   gives. The zero-height ::after is what forces the break, so the layout does
   not depend on the search field's min-content width. */
@media (max-width: 374px) {
  .header-inner { gap: 8px; }
  .header-inner::after { content: ""; width: 100%; height: 0; order: 5; margin-top: -8px; }
  #menu-open { order: 1; }
  .brand { order: 2; }
  .contact-pill { order: 3; }
  .cart-trigger { order: 4; margin-left: auto; }
  /* basis 0, not auto: the field's content width is wider than the row, so an
     auto basis would claim the whole line and push the lock onto a third row. */
  .search-wrap { order: 10; flex: 1 1 0; flex-basis: 0; min-width: 0; }
  .admin-link { order: 11; }
  .lock-link { order: 12; }
}

/* ---------- 06  Hero + marquee ------------------------------------------ */

.content {
  max-width: var(--shell);
  min-height: 70vh;
  margin: auto;
  padding: 30px 18px 90px;
}

.hero { margin: 6px 0 46px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-eyebrow::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--grey-100);
}

.hero-headline {
  margin: 0;
  font-size: var(--step-7);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.86;
  text-transform: uppercase;
}
.hero-headline em {
  font-style: normal;
  color: var(--red);
}

.hero-rule {
  height: 10px;
  margin: clamp(18px, 3vw, 30px) 0 0;
  background: var(--red);
  transform-origin: left center;
  animation: rule-in 900ms var(--ease-out) .35s both;
}
html[data-motion='off'] .hero-rule { animation: none; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: 22px;
}
.hero-stat { display: flex; align-items: baseline; gap: 9px; }
.hero-stat b {
  font-size: var(--step-3);
  font-weight: 900;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.hero-stat span {
  color: var(--grey-600);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Group marquee. The track is duplicated in JS so the -50% loop is seamless. */
.marquee {
  margin: 30px 0 0;
  padding: 13px 0;
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
  font-size: var(--step-2);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-item::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

/* New items: the 25 latest products, driven right to left by catalog.js. The
   viewport really scrolls (scrollbar hidden) so a phone can still swipe it. */
.new-arrivals { margin: 0 0 46px; }
.new-arrivals .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--red);
  animation: live-ping 1.6s var(--ease-out) infinite;
}
@keyframes live-ping { to { transform: scale(3); opacity: 0; } }

.arrivals-viewport {
  margin: 0 -18px;
  padding: 10px 18px 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.arrivals-viewport::-webkit-scrollbar { display: none; }
.arrivals-track {
  display: flex;
  gap: 16px;
  width: max-content;
}

.arrival-card {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  width: clamp(168px, 44vw, 218px);
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-fast) linear;
}
.arrival-card:hover,
.arrival-card:focus-visible {
  transform: translate3d(0, -8px, 0) rotate(-1deg);
  border-color: var(--red);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .55), 6px 6px 0 var(--red);
}
/* Cards sweep in from the right, one after another, when the section arrives.
   Fill is "backwards" only: the card is hidden during its stagger delay, but no
   fill is kept afterwards. (Keeping "forwards" and cancelling the animation on
   :hover made the card replay its entrance — blinking out — every time the
   pointer crossed it, and the fill also blocked the hover lift.) */
.new-arrivals .arrival-card {
  opacity: 0;
  transform: translate3d(70px, 0, 0) scale(.94);
}
.new-arrivals.is-revealed .arrival-card {
  opacity: 1;
  transform: none;
  animation: arrival-in 760ms var(--ease-out) calc(min(var(--i), 7) * 70ms + 120ms) backwards;
}
@keyframes arrival-in {
  from { opacity: 0; transform: translate3d(70px, 0, 0) scale(.94); }
  to { opacity: 1; transform: none; }
}
.new-arrivals.is-revealed .arrival-card:hover,
.new-arrivals.is-revealed .arrival-card:focus-visible {
  transform: translate3d(0, -8px, 0) rotate(-1deg);
}

.arrival-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f6f6f6;
}
.arrival-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform var(--dur-slow) var(--ease-out);
}
.arrival-card:hover .arrival-media img { transform: scale(1.09); }
/* A light sweep crosses each picture now and then, staggered card by card. */
.arrival-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .75) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: arrival-shine 5.5s ease-in-out calc(var(--i) * 0.45s) infinite;
  pointer-events: none;
}
@keyframes arrival-shine { 0%, 72% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.arrival-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: var(--step--2);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.arrival-badge.is-fresh {
  background: var(--red);
  animation: badge-pulse 1.8s var(--ease-out) infinite;
}
@keyframes badge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 0, 0, .55); }
  100% { box-shadow: 0 0 0 12px rgba(255, 0, 0, 0); }
}
.arrival-rank {
  position: absolute;
  right: 8px;
  bottom: -6px;
  color: transparent;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, .18);
}

.arrival-body {
  display: grid;
  gap: 5px;
  padding: 12px 14px 14px;
  border-top: 2px solid var(--ink);
}
.arrival-category {
  overflow: hidden;
  color: var(--red-deep);
  font-size: var(--step--2);
  font-weight: 800;
  letter-spacing: .1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.arrival-name {
  display: -webkit-box;
  min-height: 2.5em;
  overflow: hidden;
  font-size: var(--step-0);
  font-weight: 800;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.arrival-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.arrival-foot b { font-size: var(--step-1); font-weight: 900; letter-spacing: -.02em; white-space: nowrap; }
.arrival-foot i {
  overflow: hidden;
  color: var(--grey-600);
  font-size: var(--step--2);
  font-style: normal;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.arrival-card.is-out .arrival-media img { opacity: .45; filter: grayscale(1); }
.arrival-card.is-out .arrival-foot b { color: var(--grey-600); font-size: var(--step-0); }

html[data-motion='off'] .new-arrivals .arrival-card { opacity: 1; transform: none; animation: none; }
html[data-motion='off'] .arrival-media::after,
html[data-motion='off'] .live-dot::after,
html[data-motion='off'] .arrival-badge.is-fresh { animation: none; }
html[data-motion='lite'] .arrival-media::after { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .new-arrivals .arrival-card { opacity: 1; transform: none; }
  .arrival-media::after { display: none; }
}

/* ---------- 07  Category rows ------------------------------------------- */

.section-heading {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.section-heading h2 {
  margin: 5px 0 0;
  font-size: var(--step-4);
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.result-count {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--grey-600);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.catalog-group { margin: 0 0 40px; }
.catalog-group > h3 {
  margin: 0 0 4px;
  padding-bottom: 10px;
  color: var(--grey-800);
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-rows { border-top: 2px solid var(--ink); }

.category-row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--grey-100);
  background: transparent;
  color: var(--ink);
  text-align: left;
  isolation: isolate;
}
/* Red fill sweeps left → right on hover. */
.category-row::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-out);
}
.category-row:hover::before,
.category-row:focus-visible::before { transform: scaleX(1); }
.category-row:hover, .category-row:focus-visible { color: #fff; }

.category-index {
  flex: 0 0 auto;
  min-width: 46px;
  color: var(--red);
  font-size: var(--step-2);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  transition: color var(--dur-base) var(--ease-out);
}
.category-row:hover .category-index,
.category-row:focus-visible .category-index { color: #fff; }

.category-name {
  flex: 1;
  min-width: 0;
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.035em;
  transition: transform var(--dur-base) var(--ease-out);
}
.category-row:hover .category-name,
.category-row:focus-visible .category-name { transform: translateX(10px); }

.category-count {
  flex: 0 0 auto;
  color: var(--grey-600);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  transition: color var(--dur-base) var(--ease-out);
}
.category-row:hover .category-count,
.category-row:focus-visible .category-count { color: rgba(255, 255, 255, .82); }

.category-arrow {
  flex: 0 0 auto;
  font-size: 20px;
  transition: transform var(--dur-base) var(--ease-out);
}
.category-row:hover .category-arrow,
.category-row:focus-visible .category-arrow { transform: translateX(6px); }

/* Below this the title and the sort control collide on one line — on a tablet
   the title broke over two lines with the item count wedged beside it — so the
   tools take their own row under the title. */
@media (max-width: 980px) {
  .product-heading { align-items: flex-start; row-gap: 12px; }
  .result-title { order: 2; flex: 1 1 auto; }
  .result-tools { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .sort-control select { max-width: 190px; }
}

@media (max-width: 560px) {
  .category-row { gap: 10px; padding: 17px 8px; }
  .category-index { min-width: 34px; font-size: var(--step-1); }
  .category-name { font-size: var(--step-2); }
  .category-count { font-size: var(--step--2); }
}

/* Favorites / recently-viewed strips */
.saved-products {
  margin-bottom: 26px;
  padding: 16px;
  border: 2px solid var(--grey-100);
  border-radius: var(--radius-lg);
}
.saved-products h3 {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.saved-products-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.saved-products-actions { display: flex; gap: 5px; margin-left: auto; }
.saved-products-actions button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--grey-100);
  border-radius: 50%;
  background: var(--paper);
  font-size: 14px;
}
.saved-products-actions button:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.saved-products.collapsed .saved-products-head { margin-bottom: 0; }
.saved-products.collapsed [data-recent-toggle] svg { transform: rotate(-90deg); }
.saved-product-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.saved-products > div:not(.saved-products-head) { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.saved-product-item { position: relative; width: 116px; flex: 0 0 auto; }
.saved-products button.saved-card,
.saved-product-item > button:first-child {
  width: 116px;
  flex: 0 0 auto;
  padding: 8px;
  border: 1px solid var(--grey-100);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  transition: border-color var(--dur-fast) linear, transform var(--dur-fast) var(--ease-out);
}
.saved-products button.saved-card:hover,
.saved-product-item > button:first-child:hover { border-color: var(--ink); transform: translateY(-3px); }
.saved-products img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: #fafafa;
  mix-blend-mode: multiply;
}
.saved-products span {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: var(--step--2);
  font-weight: 700;
  line-height: 1.25;
}
.saved-product-item .remove-recent {
  position: absolute;
  z-index: 2;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
}
.saved-product-item .remove-recent:hover { background: var(--red); color: #fff; }

/* ---------- 08  Product grid -------------------------------------------- */

.product-heading { flex-wrap: wrap; align-items: center; }
.result-title { min-width: 0; flex: 1; }
/* Count + view toggle + sort come to more than a 320px screen can hold on one
   line, so they wrap rather than overflowing the heading. */
.result-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: auto; }
.result-tools .result-count { margin-left: 0; }

.back-button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--paper);
  font-size: 19px;
  transition: background var(--dur-fast) linear, color var(--dur-fast) linear;
}
.back-button:hover { background: var(--ink); color: #fff; }

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--grey-600);
  font-size: var(--step--2);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sort-control select {
  height: 40px;
  padding: 0 12px;
  border: 2px solid var(--grey-100);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 700;
}
.sort-control select:hover { border-color: var(--ink); }

/* ---------- Filters + view toggle --------------------------------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 2px solid var(--grey-100);
  border-radius: 14px;
  background: var(--paper);
}
.filter-field { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.filter-field > span {
  color: var(--grey-600);
  font-size: var(--step--2);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.filter-field select,
.filter-price input {
  height: 40px;
  max-width: 190px;
  padding: 0 10px;
  border: 2px solid var(--grey-100);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
}
.filter-price input { width: 84px; text-align: center; font-variant-numeric: tabular-nums; }
.filter-price i { color: var(--grey-600); font-style: normal; font-weight: 800; }
.filter-field select:focus-visible,
.filter-price input:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; }

.filter-toggle, .filter-clear {
  height: 40px;
  padding: 0 14px;
  border: 2px solid var(--grey-100);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 800;
  cursor: pointer;
  transition: border-color var(--dur-fast) linear, background var(--dur-fast) linear, color var(--dur-fast) linear;
}
.filter-toggle:hover, .filter-clear:hover { border-color: var(--ink); }
.filter-toggle.active { border-color: var(--red); background: var(--red); color: #fff; }
.filter-clear { margin-left: auto; color: var(--red-deep); }

/* Share the current view. Sits in the results toolbar beside the view toggle
   and matches its height and pill shape. */
.share-view {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border: 2px solid var(--grey-100);
  border-radius: 999px;
  background: transparent;
  color: var(--grey-600);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 800;
  cursor: pointer;
  transition: border-color var(--dur-fast) linear, color var(--dur-fast) linear;
}
.share-view svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.share-view:hover { border-color: var(--ink); color: var(--ink); }
@media (pointer: coarse) { .share-view { height: 44px; } }

.view-toggle { display: inline-flex; border: 2px solid var(--grey-100); border-radius: 999px; overflow: hidden; }
.view-toggle button {
  height: 38px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--grey-600);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 800;
  cursor: pointer;
  transition: background var(--dur-fast) linear, color var(--dur-fast) linear;
}
.view-toggle button.active { background: var(--ink); color: #fff; }
.result-count i { font-style: normal; color: var(--grey-600); font-weight: 700; }

/* ---------- Order pad (compact list) ------------------------------------ */

.order-pad {
  border: 2px solid var(--grey-100);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
}
.pad-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 2px solid var(--grey-100);
  transition: background var(--dur-fast) linear;
}
.pad-row:last-child { border-bottom: 0; }
.pad-row:hover { background: #fafafa; }
.pad-row.has-qty { background: var(--red-wash); }

.pad-thumb {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--grey-100);
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
  cursor: pointer;
}
.pad-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pad-noimg { display: block; width: 100%; height: 100%; background: var(--grey-100); }

.pad-main { min-width: 0; }
.pad-name {
  display: block;
  font-size: var(--step-0);
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pad-meta {
  display: block;
  margin-top: 2px;
  color: var(--grey-600);
  font-size: var(--step--2);
  font-weight: 700;
}
.pad-meta .stock { margin-left: 6px; }
.pad-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pad-choices .product-select { margin: 0; }
.pad-choices .product-select select { height: 34px; font-size: var(--step--1); }

.pad-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.pad-price {
  font-size: var(--step-0);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* An <input> with no width contributes ~20 characters of intrinsic size, which
   made the auto grid track 319px wide. Pin the field instead. */
.pad-buy .qty-wrap { width: auto; }
.pad-buy .qty-step { width: 38px; flex: 0 0 auto; }
.pad-buy .qty-input { width: 56px; min-width: 48px; height: 38px; }
.pad-out { color: var(--red-deep); font-size: var(--step--2); font-weight: 800; }
.pad-variants {
  height: 38px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.pad-variants:hover { background: var(--ink); color: #fff; }
.pad-variants b { color: var(--red); }
.pad-variants:hover b { color: #fff; }

@media (max-width: 560px) {
  /* 44px, not 40: the thumbnail opens the product, so it is a touch target. */
  .pad-row { grid-template-columns: 44px minmax(0, 1fr); row-gap: 8px; padding: 12px; }
  .pad-thumb { width: 44px; height: 44px; align-self: start; }
  /* Indent the buy row under the name rather than under the thumbnail, so the
     price reads as belonging to the product above it. */
  .pad-buy { grid-column: 2 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .pad-name { -webkit-line-clamp: 3; }

  /* The field labels cost more width than they earn: the select already reads
     "All brands" and the price boxes are placeholdered Min / Max. */
  .filter-bar { gap: 8px; padding: 10px; }
  .filter-field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .filter-field select { max-width: none; }
  .filter-price { flex: 1 1 auto; }
  .filter-price input { width: 100%; min-width: 0; }
  .filter-clear { margin-left: 0; width: 100%; }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1050px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--grey-100);
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition:
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
@media (hover: hover) {
  .product-card:hover {
    border-color: var(--ink);
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .10);
  }
}

.image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px;
  border: 0;
  background: #fafafa;
  cursor: pointer;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform var(--dur-slow) var(--ease-out);
}
@media (hover: hover) { .product-card:hover .image-frame img { transform: scale(1.07); } }
/* Red rule wipes under the image on hover. */
.image-frame::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-out);
}
@media (hover: hover) { .product-card:hover .image-frame::after { transform: scaleX(1); } }
.image-missing { color: var(--grey-600); font-size: var(--step--2); font-weight: 700; }

.favorite-button {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--grey-100);
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--grey-600);
  font-size: 16px;
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease-spring), color var(--dur-fast) linear, border-color var(--dur-fast) linear;
}
.favorite-button:hover { border-color: var(--red); color: var(--red); transform: scale(1.12); }
.favorite-button.active { color: var(--red); border-color: var(--red); }
.favorite-button.active:active { animation: pop 380ms var(--ease-spring); }

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}
.product-label-row {
  display: flex;
  flex-wrap: wrap;           /* a long stock badge drops below the brand instead of cutting it to "GREE…" */
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  margin-bottom: 7px;
}
.product-brand {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--red-deep);
  font-size: var(--step--2);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stock {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stock.in-stock { color: var(--ok); background: var(--ok-wash); }
.stock.low-stock { color: var(--warn); background: var(--warn-wash); }
.stock.out-of-stock { color: var(--red-deep); background: var(--red-wash); }

.product-info h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.product-meta {
  margin: 7px 0 0;
  color: var(--grey-600);
  font-size: var(--step--2);
  font-weight: 600;
}

.price {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: var(--step-3);
  font-weight: 900;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.option-table {
  margin: 11px 0 2px;
  overflow: hidden;
  border: 1px solid var(--grey-100);
  border-radius: 10px;
}
.option-table > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 7px 9px;
  border-top: 1px solid var(--grey-100);
  font-size: var(--step--2);
  font-weight: 600;
}
.option-table > div:first-child {
  border: 0;
  background: var(--grey-100);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.option-table strong { color: var(--red-deep); font-variant-numeric: tabular-nums; }

.product-select {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: var(--grey-600);
  font-size: var(--step--2);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-select select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 2px solid var(--grey-100);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  min-width: 0;
  text-overflow: ellipsis;   /* a long option name ends in … where supported, not mid-letter */
}
.product-select select:hover { border-color: var(--ink); }

.color-picker {
  display: grid;
  gap: 7px;
  margin-top: 11px;
  color: var(--grey-600);
  font-size: var(--step--2);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.color-picker > div { display: flex; flex-wrap: wrap; gap: 6px; }
.color-picker button {
  min-height: 30px;
  padding: 4px 11px;
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  background: var(--paper);
  color: var(--grey-800);
  font-size: var(--step--2);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  transition: border-color var(--dur-fast) linear, color var(--dur-fast) linear, background var(--dur-fast) linear;
}
.color-picker button:hover { border-color: var(--ink); }
.color-picker button.active { border-color: var(--red); background: var(--red); color: #fff; }

.buy-row { margin-top: auto; padding-top: 12px; }

.add-cart {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--dur-fast) linear, border-color var(--dur-fast) linear, transform var(--dur-fast) var(--ease-out);
}
.add-cart:hover:not(:disabled) { background: var(--red); border-color: var(--red); }
.add-cart:active:not(:disabled) { transform: scale(.97); }
.add-cart:disabled {
  border-color: var(--grey-100);
  background: var(--grey-100);
  color: var(--grey-600);
  cursor: not-allowed;
}

.choose-flavors {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px 0 14px;
  border: 2px solid var(--red);
  border-radius: 11px;
  background: var(--red-wash);
  color: var(--red-deep);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background var(--dur-fast) linear, color var(--dur-fast) linear;
}
.choose-flavors b {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: var(--step--2);
}
.choose-flavors:hover { background: var(--red); color: #fff; }
.choose-flavors:hover b { background: #fff; color: var(--red-deep); }

.empty-state {
  margin: 50px auto;
  padding: 44px 24px;
  max-width: 440px;
  text-align: center;
  border: 2px dashed var(--grey-200);
  border-radius: var(--radius-lg);
  color: var(--grey-600);
}
.empty-state h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: var(--step-2);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.empty-state p { margin: 0; font-size: var(--step--1); }

/* ---------- 09  Quantity control ---------------------------------------- */

/* One control, used identically in product cards, flavor rows and cart lines.
   The number is a real text field: type 60 instead of tapping + sixty times. */
.qty {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--paper);
  transition: border-color var(--dur-fast) linear, box-shadow var(--dur-fast) linear;
}
.qty:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-wash);
}
.qty.is-empty { border-color: var(--grey-200); }
.qty.is-empty:focus-within { border-color: var(--red); }

.qty-step {
  width: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: background var(--dur-fast) linear, color var(--dur-fast) linear;
}
.qty-step:hover:not(:disabled) { background: var(--red); color: #fff; }
.qty-step:active:not(:disabled) { background: var(--red-deep); color: #fff; }
.qty-step:disabled { color: var(--grey-200); cursor: not-allowed; }

.qty-input {
  width: 100%;
  min-width: 46px;
  height: 40px;
  flex: 1 1 auto;
  padding: 0 4px;
  border: 0;
  border-left: 1px solid var(--grey-100);
  border-right: 1px solid var(--grey-100);
  background: transparent;
  color: var(--ink);
  font-size: var(--step-1);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  outline: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:disabled { color: var(--grey-200); cursor: not-allowed; }
.qty.is-empty .qty-input { color: var(--grey-600); }

/* Flashes when a typed number is clamped down to the available stock. */
.qty.is-clamped { animation: shake 300ms var(--ease-out); }
.qty.is-clamped .qty-input { color: var(--red-deep); }

.qty-hint {
  display: block;
  margin-top: 5px;
  color: var(--grey-600);
  font-size: var(--step--2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.qty-hint.is-max { color: var(--red-deep); }

/* Quantity price breaks. The ladder is informational, the nudge is the one
   that moves order size, so the nudge gets the red. */
.tier-ladder {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 9px 0 0;
  padding: 8px 10px;
  border: 2px dashed var(--grey-100);
  border-radius: 12px;
}
.tier-head {
  flex: 1 0 100%;
  color: var(--grey-600);
  font-size: var(--step--2);
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.tier-steps { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.tier-step {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--red-wash);
  font-variant-numeric: tabular-nums;
  transition: background var(--dur-fast) linear, color var(--dur-fast) linear;
}
.tier-step b { font-size: var(--step--2); font-weight: 800; color: var(--grey-600); }
.tier-step i { font-style: normal; font-size: var(--step--1); font-weight: 900; color: var(--ink); }
.tier-step.is-active { background: var(--red); }
.tier-step.is-active b, .tier-step.is-active i { color: #fff; }

.tier-nudge {
  display: block;
  margin-top: 4px;
  color: var(--red-deep);
  font-size: var(--step--2);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.tier-nudge[hidden] { display: none; }
/* .flavor-row small sets its own grey and outranks the rule above. */
.flavor-row .tier-nudge { color: var(--red-deep); font-weight: 800; }

.qty-wrap { min-width: 0; }
.buy-row .qty-wrap, .buy-row .qty { width: 100%; }
.detail-add .qty { width: 220px; }

/* ---------- 10  Side panels --------------------------------------------- */

.side-panel {
  position: fixed;
  z-index: 60;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(90vw, 400px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 70px rgba(0, 0, 0, .3);
  transform: translate3d(-104%, 0, 0);
  visibility: hidden;
  transition: transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.right-panel {
  right: 0;
  left: auto;
  width: min(96vw, 740px);
  transform: translate3d(104%, 0, 0);
}
.side-panel.open {
  transform: none;
  visibility: visible;
  transition: transform var(--dur-base) var(--ease-out), visibility 0s;
}

.panel-overlay {
  position: fixed;
  z-index: 55;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.panel-overlay.open { visibility: visible; opacity: 1; transition: opacity var(--dur-base) var(--ease-out), visibility 0s; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-bottom: 2px solid var(--ink);
}
.panel-head h2 {
  margin: 4px 0 0;
  font-size: var(--step-3);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.panel-close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--grey-100);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  transition: background var(--dur-fast) linear, color var(--dur-fast) linear, border-color var(--dur-fast) linear;
}
.panel-close:hover { border-color: var(--red); background: var(--red); color: #fff; }

.side-panel nav, .cart-content { flex: 1; overflow: auto; padding: 14px; overscroll-behavior: contain; }

.side-panel nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--grey-100);
  background: transparent;
  color: var(--ink);
  font-size: var(--step-0);
  font-weight: 700;
  text-align: left;
  transition: background var(--dur-fast) linear, color var(--dur-fast) linear, padding-left var(--dur-fast) var(--ease-out);
}
.side-panel nav button:hover { background: var(--ink); color: #fff; padding-left: 18px; }
.side-panel nav small { margin-left: auto; color: var(--grey-600); font-weight: 700; font-variant-numeric: tabular-nums; }
.side-panel nav button:hover small { color: rgba(255, 255, 255, .75); }

/* ---------- Category search inside the menu panel ----------------------- */

.menu-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
}

/* The base rule makes every nav button a full-width row; this one sits inline
   beside the search field instead. */
.side-panel nav .menu-all {
  width: auto;
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 800;
}
.side-panel nav .menu-all:hover { padding-left: 15px; background: var(--ink); color: #fff; }

.menu-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 150px;
  min-width: 0;
}
.menu-search > svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--grey-600);
  stroke-width: 2.2;
  stroke-linecap: round;
  pointer-events: none;
}
.menu-search input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 34px;
  border: 2px solid var(--grey-100);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  outline: 0;
  transition: border-color var(--dur-fast) linear;
}
.menu-search input::placeholder { color: var(--grey-600); font-weight: 600; }
.menu-search input:focus { border-color: var(--red); }
.menu-search input::-webkit-search-cancel-button { display: none; }

/* Overrides the full-width nav-button base rule. */
.side-panel nav .menu-clear {
  position: absolute;
  right: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--grey-100);
  color: var(--ink);
}
.side-panel nav .menu-clear:hover { padding-left: 0; background: var(--red); color: #fff; }
.side-panel nav .menu-clear[hidden] { display: none; }
.menu-clear svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

.menu-count {
  margin: 0 0 8px;
  color: var(--grey-600);
  font-size: var(--step--2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.menu-empty {
  margin: 14px 2px;
  color: var(--grey-600);
  font-size: var(--step--1);
  font-weight: 600;
}

.menu-category-group { border-bottom: 1px solid var(--grey-100); }
.menu-category-group summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 12px;
  cursor: pointer;
  background: #fafafa;
  font-size: var(--step--1);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  list-style: none;
}
.menu-category-group summary::-webkit-details-marker { display: none; }
.menu-category-group summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur-fast) var(--ease-out);
}
.menu-category-group[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.menu-category-group summary small { margin-left: auto; }
.menu-category-group summary::after + small { margin-left: 0; }
.menu-category-group > button { padding-left: 26px; }
.side-panel nav .menu-category-group > button.active {
  background: var(--red-wash);
  color: var(--red-deep);
  font-weight: 900;
  box-shadow: inset 3px 0 0 var(--red);
}

.menu-contact { padding: 14px; border-top: 2px solid var(--ink); }
.menu-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--red-wash);
  color: var(--red-deep);
  font-size: var(--step--1);
  font-weight: 800;
  text-decoration: none;
  transition: background var(--dur-fast) linear, color var(--dur-fast) linear;
}
.menu-contact a svg { flex: 0 0 auto; font-size: 18px; }
.menu-contact a:hover { background: var(--red); color: #fff; }

/* Cart */
.order-customer {
  margin-bottom: 16px;
  padding: 14px;
  border: 2px solid var(--grey-100);
  border-radius: var(--radius);
}
.order-customer > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  font-size: var(--step--2);
  font-weight: 700;
}
.order-customer > div:first-child span { color: var(--grey-600); letter-spacing: 0.08em; text-transform: uppercase; }
.order-customer > div:first-child strong { color: var(--red-deep); font-variant-numeric: tabular-nums; }
.order-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.order-fields input, .order-fields textarea {
  min-height: 40px;
  padding: 9px 11px;
  border: 2px solid var(--grey-100);
  border-radius: 10px;
  background: var(--paper);
  font-size: var(--step--1);
  font-weight: 600;
  outline: 0;
}
.order-fields input:focus, .order-fields textarea:focus { border-color: var(--ink); }
.order-fields textarea { grid-column: 1 / -1; min-height: 70px; resize: vertical; }

/* Details this device already knows, shown as one line under the items. */
.order-who {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--grey-100);
}
.order-who p { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; }
.order-who span { color: var(--grey-600); font-size: var(--step--2); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.order-who b { overflow-wrap: anywhere; font-size: var(--step--1); }
.order-who button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: var(--step--2);
  font-weight: 800;
}
.order-who button:hover { background: var(--ink); color: #fff; }

/* "Cart cleared. Undo" for a few seconds after Clear. */
.cart-undo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 700;
}
.cart-undo button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.cart-group {
  margin-bottom: 16px;
  overflow: hidden;
  border: 2px solid var(--grey-100);
  border-radius: var(--radius);
}
.cart-group > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fafafa;
  border-bottom: 1px solid var(--grey-100);
}
.cart-group > header img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 9px;
  background: var(--paper);
  mix-blend-mode: multiply;
}
.cart-group > header h4 {
  margin: 0 0 3px;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cart-group > header small { color: var(--grey-600); font-size: var(--step--2); font-weight: 700; }
.cart-variants { padding: 0 12px; }

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 32px;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--grey-100);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line p {
  margin: 0 0 3px;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cart-line small { display: block; color: var(--grey-600); font-size: var(--step--2); font-weight: 600; }
.cart-line > strong { font-size: var(--step-0); font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-line .qty { border-width: 2px; }
.cart-line .qty-step { width: 32px; font-size: 17px; }
.cart-line .qty-input { min-width: 42px; height: 34px; font-size: var(--step-0); }

.line-note {
  width: 100%;
  max-width: 280px;
  height: 32px;
  margin-top: 7px;
  padding: 0 9px;
  border: 1px solid var(--grey-100);
  border-radius: 8px;
  background: var(--paper);
  font-size: var(--step--2);
  font-weight: 600;
  outline: 0;
}
.line-note:focus { border-color: var(--ink); }

.remove-line {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--grey-600);
  font-size: 15px;
  transition: background var(--dur-fast) linear, color var(--dur-fast) linear;
}
.remove-line:hover { background: var(--red); color: #fff; }

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 20px 0;
  border-top: 3px solid var(--ink);
}
.cart-total span { font-size: var(--step--1); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.cart-total strong { font-size: var(--step-4); font-weight: 900; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }

.minimum-warning {
  margin: 4px 0 12px;
  padding: 11px 13px;
  border-left: 4px solid var(--warn);
  border-radius: 0 8px 8px 0;
  background: var(--warn-wash);
  color: var(--warn);
  font-size: var(--step--2);
  font-weight: 700;
}

/* The same treatment as the minimum-order notice, for the required phone number. */
.order-warning {
  margin: 10px 0 0;
  padding: 11px 13px;
  border-left: 4px solid var(--warn);
  border-radius: 0 8px 8px 0;
  background: var(--warn-wash);
  color: var(--warn);
  font-size: var(--step--2);
  font-weight: 700;
}

.cart-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border-top: 2px solid var(--ink);
}
.cart-footer button {
  flex: 1 1 100px;
  min-height: 46px;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background var(--dur-fast) linear, border-color var(--dur-fast) linear, transform var(--dur-fast) var(--ease-out);
}
.cart-footer button:hover { background: var(--red); border-color: var(--red); }
.cart-footer button:active { transform: scale(.97); }
.cart-footer .whatsapp-button { background: var(--whatsapp); border-color: var(--whatsapp); }
.cart-footer .whatsapp-button:hover { background: #17904f; border-color: #17904f; }
.cart-footer .secondary-button {
  flex: 0 1 90px;
  border-color: var(--grey-100);
  background: var(--paper);
  color: var(--ink);
}
.cart-footer .secondary-button:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Product detail */
.product-panel { width: min(96vw, 920px); }
.product-content {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  overflow: auto;
  padding: 20px;
  overscroll-behavior: contain;
}
.detail-image {
  height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: #fafafa;
  color: var(--grey-600);
  font-size: var(--step--1);
}
.detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.detail-thumbnails { display: flex; gap: 8px; margin-top: 10px; overflow: auto; }
.detail-thumbnails img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 2px solid var(--grey-100);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color var(--dur-fast) linear;
}
.detail-thumbnails img:hover { border-color: var(--ink); }

.detail-title { display: flex; align-items: flex-start; gap: 12px; }
.detail-title > div { flex: 1; min-width: 0; }
.detail-title h2 {
  margin: 6px 0 8px;
  font-size: var(--step-3);
  font-weight: 900;
  letter-spacing: -0.04em;
}
.detail-title .favorite-button { position: static; flex: 0 0 auto; }

.flavor-panel {
  margin-top: 16px;
  overflow: hidden;
  border: 2px solid var(--grey-100);
  border-radius: var(--radius);
}
.flavor-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border-bottom: 2px solid var(--grey-100);
  background: #fafafa;
  color: var(--grey-600);
}
.flavor-search svg { flex: 0 0 auto; font-size: 17px; }
.flavor-search input {
  width: 100%;
  height: 46px;
  border: 0;
  background: transparent;
  font-weight: 600;
  outline: 0;
}
.flavor-list { max-height: min(62vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
.flavor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border-top: 1px solid var(--grey-100);
}
.flavor-row:first-child { border-top: 0; }
.flavor-row > span { min-width: 0; overflow-wrap: anywhere; }
.flavor-row b { display: block; font-size: var(--step-0); font-weight: 800; letter-spacing: -0.02em; }
.flavor-row small { display: block; margin-top: 2px; color: var(--grey-600); font-size: var(--step--2); font-weight: 600; }
.flavor-row.out-of-stock { opacity: .55; }
.flavor-row.out-of-stock small { color: var(--red-deep); font-weight: 800; }
.flavor-row .qty { width: 128px; flex: 0 0 auto; }
.flavor-row .qty-step { width: 34px; }
.flavor-row .qty-input { min-width: 44px; }

.detail-add { margin-top: 20px; }

@media (max-width: 860px) {
  .product-content { grid-template-columns: 1fr; padding: 16px; }
  .detail-image { height: 230px; }
  .flavor-list { max-height: 46vh; }
  .order-fields { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .cart-line .qty { grid-column: 1; }
  .cart-line > strong { grid-column: 2; grid-row: 2; text-align: right; }
  .cart-line .remove-line { grid-column: 2; grid-row: 1; justify-self: end; }
}

/* ---------- 11  Footer + utilities -------------------------------------- */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 56px 24px;
  border-top: 6px solid var(--red);
  background: var(--ink);
  color: #8f8f8f;
  text-align: center;
  font-size: var(--step--1);
}
.footer-mark {
  color: #fff;
  font-size: var(--step-5);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}
.footer-mark span { color: var(--red); }
.site-footer p { margin: 0; color: #fff; font-size: var(--step-1); font-weight: 600; }
.site-footer span { max-width: 460px; }

.scroll-top {
  position: fixed;
  z-index: 45;
  right: 18px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 14px, 0) scale(.85);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-spring), visibility 0s linear var(--dur-base), background var(--dur-fast) linear;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-spring), visibility 0s, background var(--dur-fast) linear; }
.scroll-top:hover { background: var(--red); }

/* Add-to-cart flight clone */
.fly-layer { position: fixed; z-index: 90; inset: 0; pointer-events: none; }
.fly-clone {
  position: fixed;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .25);
  object-fit: contain;
}

/* Skeletons */
.skeleton-wrap { padding-top: 10px; }
.skeleton {
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #f2f2f2 0%, #fafafa 40%, #f2f2f2 80%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
html[data-motion='off'] .skeleton { animation: none; }
.skeleton-hero { height: clamp(160px, 26vw, 260px); margin-bottom: 30px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.skeleton-card { height: 290px; }
@media (min-width: 700px) { .skeleton-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1050px) { .skeleton-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 12  Print ---------------------------------------------------- */

@media print {
  body.printing > * { display: none !important; }
  body.printing #cart-panel {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
  }
  body.printing .panel-close,
  body.printing .cart-footer,
  body.printing .qty-step,
  body.printing .line-note,
  body.printing .remove-line { display: none !important; }
  /* Keep the typed quantity on the printed sheet — just strip the chrome. */
  body.printing .qty { border: 0 !important; box-shadow: none !important; }
  body.printing .qty-input {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    border: 0 !important;
    font-weight: 900;
  }
  body.printing .cart-line { grid-template-columns: minmax(0, 1fr) auto auto; }
}

/* Cart carried over from a previous visit (it now lives in localStorage). */
.cart-stale {
  position: relative;
  margin: 0 0 14px;
  padding: 12px 40px 12px 14px;
  border-left: 4px solid var(--warn);
  border-radius: 0 10px 10px 0;
  background: var(--warn-wash);
  color: var(--warn);
  font-size: var(--step--2);
  font-weight: 700;
}
.cart-stale button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 17px;
  line-height: 1;
}
.cart-stale button:hover { background: rgba(0, 0, 0, .08); }

/* ---------- Order confirmation prompt ----------------------------------- */

/* Shown when the customer comes back from WhatsApp. A bar, not a dialog: it
   must never block the catalog, and ignoring it is a valid answer. */
.order-confirm {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(560px, calc(100vw - 24px));
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
  transform: translate(-50%, 130%);
  opacity: 0;
  transition: transform var(--dur-base) var(--ease-spring), opacity var(--dur-base) var(--ease-out);
}
.order-confirm.open { transform: translate(-50%, 0); opacity: 1; }
html[data-motion='off'] .order-confirm { transition: none; }

.order-confirm-text { min-width: 0; flex: 1; }
.order-confirm-text b { display: block; font-size: var(--step-0); font-weight: 900; }
.order-confirm-text span { display: block; margin-top: 2px; color: var(--grey-600); font-size: var(--step--2); font-weight: 600; }

.order-confirm-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.order-confirm-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) linear, color var(--dur-fast) linear;
}
.order-confirm-actions button:hover { background: var(--red); border-color: var(--red); }
.order-confirm-actions .ghost { background: var(--paper); color: var(--ink); }
.order-confirm-actions .ghost:hover { background: var(--ink); color: #fff; }
.order-confirm-close {
  width: 40px;
  padding: 0;
  border-color: var(--grey-100) !important;
  background: var(--paper) !important;
  color: var(--grey-600) !important;
  font-size: 20px;
}
.order-confirm-close:hover { border-color: var(--ink) !important; color: var(--ink) !important; }

@media (max-width: 560px) {
  .order-confirm { flex-direction: column; align-items: stretch; gap: 10px; }
  .order-confirm-actions button { flex: 1 1 auto; }
  /* .order-confirm-actions button is a class+type selector, so it outranks a
     lone class here; the dismiss button has to match at least as specifically
     or it stretches with the others. */
  .order-confirm-actions .order-confirm-close { flex: 0 0 46px; }
}

/* ==========================================================================
   13  TOUCH DEVICES
   Scoped to (pointer: coarse) so the desktop layout is untouched — these rules
   only apply where the primary input is a finger.

   Two measured problems drive this block:

   1. iOS Safari force-zooms the page when you focus a control whose font-size
      is under 16px. Several fields here were 11-14px, so tapping the quantity
      box — the whole point of this design — lurched the page on every iPhone.
      16px is the threshold; it is not a style choice.

   2. Apple HIG and Material both specify 44x44px minimum touch targets. The
      favourite heart was 34x34, colour swatches 30px tall, the +/- steps 40px.
   ========================================================================== */

@media (pointer: coarse) {

  /* --- 1. never below 16px, or iOS zooms --- */
  input, select, textarea,
  .search-wrap input,
  .sort-control select,
  .product-select select,
  .flavor-search input,
  .password-wrap input,
  .order-fields input,
  .order-fields textarea,
  .line-note,
  .qty-input {
    font-size: 16px;
  }
  /* the note field is secondary; give it room now that the text is larger */
  .line-note { max-width: 100%; height: 44px; }

  /* --- 2. touch targets --- */
  .qty-input { height: 46px; }
  /* .cart-line/.flavor-row set their own 14px font, which outranks the blanket
     .qty-input rule above on specificity, so iOS would still zoom on these. */
  .cart-line .qty-input { height: 46px; min-width: 56px; font-size: 16px; }
  .flavor-row .qty-input { font-size: 16px; }
  .cart-line .qty-step, .flavor-row .qty-step, .pad-buy .qty-step { width: 44px; }
  /* three 44px parts and the 2px borders: the 128px box above clipped the + */
  .flavor-row .qty { width: 136px; }
  .pad-buy .qty-input { height: 46px; width: 60px; }
  /* .pad-choices .product-select select sets its own 12px and outranks the
     blanket rule at the top of this block. */
  .pad-choices .product-select select { height: 46px; font-size: 16px; }
  .filter-field select, .filter-price input, .filter-toggle, .filter-clear { height: 46px; font-size: 16px; }
  .view-toggle button { height: 44px; }

  .favorite-button { width: 44px; height: 44px; font-size: 18px; }
  .color-picker button { min-height: 44px; padding: 6px 14px; }
  .product-select select { height: 46px; }

  .menu-search input { height: 46px; font-size: 16px; padding-right: 50px; }
  .side-panel nav .menu-clear { width: 44px; height: 44px; right: 1px; }
  .side-panel nav .menu-all { min-height: 44px; }
  .icon-btn, .lock-link { width: 44px; height: 44px; }
  /* the pill collapses to an icon under 700px, which left it 2px short */
  .contact-pill, .admin-link { min-height: 44px; min-width: 44px; }
  .brand { display: flex; align-items: center; min-height: 44px; }
  .skip-link { min-height: 44px; display: flex; align-items: center; }
  .cart-trigger { min-height: 44px; }
  .back-button { width: 44px; height: 44px; }
  .sort-control select { min-height: 44px; }
  .search-wrap input { height: 46px; }
  .search-clear { width: 34px; height: 34px; }

  .panel-close { width: 44px; height: 44px; }
  .remove-line { width: 44px; height: 44px; }
  .saved-products-actions button { width: 44px; height: 44px; }
  .saved-product-item .remove-recent { width: 30px !important; height: 30px; }

  .add-cart, .choose-flavors { min-height: 48px; }
  .cart-footer button { min-height: 50px; }
  .gate-submit, .show-password { height: 48px; }
  .show-password { top: 5px; right: 5px; }
  .password-wrap input { height: 58px; }

  .category-row { padding-top: 22px; padding-bottom: 22px; }
  .detail-thumbnails img { width: 62px; height: 62px; }
  .flavor-row { min-height: 64px; }

  /* 9px badges are unreadable on a phone in daylight */
  .stock { font-size: 11px; }
  .product-meta, .cart-line small { font-size: 11px; }

  .qty-step { width: 44px; }
  .order-confirm-actions button { min-height: 46px; }
  .order-confirm-actions .order-confirm-close { width: 46px; }
}

/* Below 361px a two-up grid gives each card 135px, so the whole quantity
   control gets 103px — two 44px steps would leave 15px for the number. One
   card per row instead: the card grows to ~284px and the control fits at full
   size. Measured on a 320px viewport; 393px (Pixel 5) is already fine two-up. */
@media (pointer: coarse) and (max-width: 360px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .qty-input { min-width: 56px; }
}

/* ---------- Landing sections (public, below the passcode gate) -------------
   Same tokens as the rest of the site: Outfit, --red, --ink, --paper, the
   fluid --step scale. Everything here is prefixed .lp- so it cannot collide
   with the catalog that loads on the same stylesheet. */

.lp-shell { width: min(var(--shell), 92vw); margin: 0 auto; }

/* The hook inside the gate. Without it the page below is never discovered. */
.lp-cue {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px; padding: 10px 0;
  color: var(--grey-600); font-size: var(--step-0); font-weight: 700;
  text-decoration: none; border-bottom: 2px solid transparent;
}
.lp-cue svg { width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 2.4; }
.lp-cue:hover { color: var(--ink); border-bottom-color: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .lp-cue svg { animation: lp-nudge 2.4s var(--ease-out) infinite; }
}
/* Declared here rather than with the other short-screen gate rules: the landing
   block is appended after them, so a rule up there would lose on source order. */
@media (max-height: 700px) and (max-width: 860px) {
  .lp-cue { margin-top: 8px; padding: 6px 0; }
}
@keyframes lp-nudge { 0%,70%,100% { transform: translateY(0); } 82% { transform: translateY(4px); } }

/* Proof strip */
.lp-strip { background: var(--ink); color: var(--paper); padding: clamp(22px, 3vw, 34px) 0; }
.lp-strip-inner { display: flex; flex-wrap: wrap; gap: clamp(24px, 6vw, 90px); }
.lp-strip div { display: flex; align-items: baseline; gap: 10px; }
.lp-strip b { font-size: var(--step-4); font-weight: 900; letter-spacing: -0.02em; }
.lp-strip span { color: #b6b6b6; font-size: var(--step-0); font-weight: 600; }

.lp-section { padding: clamp(52px, 8vw, 112px) 0; }
.lp-h2 {
  margin: 10px 0 0;
  font-size: var(--step-5); font-weight: 900; line-height: .96; letter-spacing: -0.03em;
  text-transform: uppercase;
}
.lp-lead { max-width: 56ch; margin: 20px 0 0; color: var(--grey-800); font-size: var(--step-2); line-height: 1.5; }
.lp-note { margin: 26px 0 0; color: #9a9a9a; font-size: var(--step-0); }

/* Eight aisles */
.lp-groups {
  display: grid; gap: 2px; margin-top: clamp(34px, 5vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  background: var(--grey-100); border: 2px solid var(--grey-100); border-radius: var(--radius-lg);
  overflow: hidden;
}
.lp-group { padding: clamp(20px, 2.4vw, 30px); background: var(--paper); }
.lp-group b { display: block; color: var(--red); font-size: var(--step-4); font-weight: 900; letter-spacing: -0.02em; }
.lp-group h3 { margin: 4px 0 6px; font-size: var(--step-1); font-weight: 800; }
.lp-group p { margin: 0; color: var(--grey-600); font-size: var(--step-0); line-height: 1.5; }

/* Brands */
.lp-dark { background: var(--ink); color: var(--paper); }
.lp-eyebrow-light { color: #ff6b6b; }
.lp-dark .lp-h2 { color: var(--paper); }
.lp-brands {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: clamp(30px, 4vw, 46px) 0 0; padding: 0; list-style: none;
}
.lp-brands li {
  padding: 11px 20px; border: 2px solid #2b2b2b; border-radius: 999px;
  font-size: var(--step-1); font-weight: 800; letter-spacing: -0.01em;
}

/* Three steps */
.lp-steps {
  display: grid; gap: clamp(22px, 3vw, 40px); margin: clamp(34px, 5vw, 56px) 0 0; padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); list-style: none; counter-reset: none;
}
.lp-steps li { padding-top: 20px; border-top: 3px solid var(--ink); }
/* --red-deep, not --red: at 16px this is small text, and #ff0000 on white is 4.0:1. */
.lp-steps b { color: var(--red-deep); font-size: var(--step-1); font-weight: 900; letter-spacing: .1em; }
.lp-steps h3 { margin: 10px 0 8px; font-size: var(--step-3); font-weight: 900; letter-spacing: -0.02em; }
.lp-steps p { margin: 0; color: var(--grey-800); font-size: var(--step-1); line-height: 1.55; }

/* Request access.
   --red-deep, not --red: white body text on #ff0000 measures 4.0:1 and fails AA,
   which is the same reason --red-deep exists for small text elsewhere. On
   #ce0606 the same text is 5.75:1. */
.lp-cta { background: var(--red-deep); color: var(--paper); }
.lp-cta .eyebrow { color: var(--paper); opacity: .85; }
.lp-cta .lp-h2, .lp-cta .lp-lead { color: var(--paper); }
.lp-cta-inner { display: grid; gap: clamp(30px, 5vw, 64px); grid-template-columns: 1.2fr .8fr; align-items: center; }
.lp-cta-actions { display: grid; gap: 12px; justify-items: stretch; }
.lp-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 0 26px; border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  font-size: var(--step-2); font-weight: 900; letter-spacing: -0.01em; text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out);
}
.lp-wa svg { width: 26px; height: 26px; fill: var(--whatsapp); }
.lp-wa:hover { transform: translateY(-2px); }
.lp-map {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px; border: 2px solid rgba(255,255,255,.55); border-radius: var(--radius);
  color: var(--paper); font-size: var(--step-1); font-weight: 800; text-decoration: none;
}
.lp-map:hover { border-color: var(--paper); background: rgba(255,255,255,.1); }

.lp-foot { padding: 30px 0; background: var(--ink); color: #8f8f8f; }
.lp-foot-inner { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; font-size: var(--step-0); }
.lp-foot strong { color: var(--paper); }

@media (max-width: 860px) {
  .lp-cta-inner { grid-template-columns: 1fr; }
  .lp-strip-inner { gap: 18px 34px; }
  .lp-strip b { font-size: var(--step-3); }
}
@media (pointer: coarse) {
  .lp-cue { min-height: 44px; }
  .lp-map { min-height: 52px; }
}

/* ------------------------------------------------ the product picture viewer --
 * Opened by tapping the picture in the product panel. It is attached to <body>
 * rather than living inside the panel, because the panel is moved with a
 * transform and a transformed ancestor would clip a fixed-position child to the
 * panel instead of the screen.
 *
 * The photo is drawn plainly here. In the catalog it carries
 * `mix-blend-mode: multiply`, which is a trick for melting a white background
 * into the light card behind it; against this dark backdrop that same trick would
 * turn the photo almost black. So a photo with a white background appears as a
 * white rectangle in here, which is what a lightbox normally looks like. */

body.zoom-open { overflow: hidden; }

.zoom-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* Fully opaque on purpose. A slightly transparent backdrop looks tidy over a
     normal page but this opens on top of the product panel, whose headings then
     ghost through and read as a rendering fault rather than a layer. */
  background: #0a0a0c;
  overscroll-behavior: contain;
  animation: zoom-fade var(--dur-fast) var(--ease-out);
}
.zoom-viewer[hidden] { display: none; }

@keyframes zoom-fade { from { opacity: 0 } to { opacity: 1 } }

.zoom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
}
.zoom-counter {
  color: #f2f2f4;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}
.zoom-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
}
.zoom-close:hover { background: rgba(255, 255, 255, .24); }
.zoom-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.zoom-stage {
  position: relative;
  overflow: hidden;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  /* The viewer does its own pinch and drag, so the browser must not help. */
  touch-action: none;
  cursor: zoom-in;
}
.zoom-viewer.is-zoomed .zoom-stage { cursor: grab; }
.zoom-viewer.is-swiping .zoom-stage { cursor: grabbing; }

.zoom-photo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform var(--dur-fast) var(--ease-out);
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.zoom-viewer.is-pinching .zoom-photo,
.zoom-viewer.is-swiping .zoom-photo { transition: none; }

.zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}
.zoom-nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.zoom-viewer.can-step .zoom-nav { display: grid; }
.zoom-prev { left: calc(8px + env(safe-area-inset-left, 0px)); }
.zoom-next { right: calc(8px + env(safe-area-inset-right, 0px)); }
/* While the picture is zoomed the edges are needed for dragging, and there are
   other ways to change picture, so the arrows step aside. */
.zoom-viewer.is-zoomed .zoom-nav { display: none; }

.zoom-hint {
  margin: 0;
  padding: 0 12px calc(10px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: rgba(255, 255, 255, .66);
  font-size: var(--step--1);
  transition: opacity var(--dur-base) var(--ease-out);
}
.zoom-viewer.is-zoomed .zoom-hint { opacity: 0; }

/* The tap-to-enlarge affordance on the product picture.
   Keep this rule free of z-index, opacity, filter and transform: any of those
   would give the button its own stacking context and isolate the child image,
   breaking the `mix-blend-mode: multiply` that melts its white background into
   the card. position:relative on its own is safe.

   The trigger is absolutely positioned to fill the picture box rather than left
   as a normal grid item. As a grid item it had no definite height, so its
   `height: 100%` fell back to auto and the square image sized the button to its
   own 315px inside a 230px box: `overflow: hidden` then cropped the bottom off
   the photo and clipped this badge away entirely. Filling the padding box gives
   the image back a definite height, and `padding: 14px` keeps the same gutter
   the picture had before (matching .detail-image's own padding). */
.detail-image { position: relative; }
.detail-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 14px;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.detail-zoom-hint {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .66);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}
.detail-zoom-hint svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* A mouse can be hovered for the hint, so it stays out of the way until then;
   a finger cannot hover, so there it is always shown. */
@media (hover: hover) and (pointer: fine) {
  .detail-zoom-hint { opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
  .detail-photo:hover .detail-zoom-hint,
  .detail-photo:focus-visible .detail-zoom-hint { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .zoom-viewer { animation: none; }
  .zoom-photo,
  .zoom-hint { transition: none; }
}

/* Shown above the cart buttons when WhatsApp is pressed without a name or number. */
.cart-required {
  margin: 0;
  padding: 11px 14px;
  border-top: 2px solid var(--ink);
  background: var(--warn-wash);
  color: var(--warn);
  font-size: var(--step--1);
  font-weight: 800;
  line-height: 1.35;
}
.cart-required[hidden] { display: none; }
.order-fields input[aria-invalid="true"] {
  border-color: var(--warn);
  box-shadow: 0 0 0 3px var(--warn-wash);
}
