/* ============================================================
   Henry Carter — white, black, and gold. (Client direction, Nov 2026: the
   palette follows the logo's gold. Overrides live in the "Gold and black"
   block at the end of this file; the notes below describe the blue era.)

   The personality is in the type, not the palette. Archivo carries a width
   axis, so display type is set wide and heavy (wdth 125, wght 900) while body
   type stays at normal width - one family doing two clearly separate jobs.
   That is where the loudness lives, which leaves the colour free to get out
   of the way.

   The palette is two grounds, one accent and one grey. The accent had to be a
   colour no frame is: acetate runs black, tortoise, crystal, brown, grey and
   pink, so the previous gold read as product rather than as interface and
   competed with every photograph it sat beside. Ultramarine never appears on
   a frame, so it can only ever read as chrome.

   Still deliberately light. A dark neon treatment was tried on this project
   and rejected - an optical store is judged on frame colour, and the rule that
   came out of it holds here unchanged: nothing tinted, gradient or animated
   goes under, behind or on top of a product photograph.
   ============================================================ */

:root {
  --paper: #ffffff;
  --ink:   #000000;
  --blue:  #8a6500;   /* primary: the logo's gold, darkened until it reads as text on white (5.6:1) */
  --hot:   #000000;   /* secondary - black, the other half of the pair */
  --gold:  #e0a506;   /* the mark's own colour - the brand fill */
  --grey:  #6b6b6b;   /* de-emphasis - never a hue */
  --hair:  #d8d8d8;   /* the quiet rule, where full black would shout */
  --tint:  #faf6ea;   /* the palest ground, for bands holding no photograph */

  /* Black with a warm gold glow in the far corner, for the bands that hold no
     photograph. Gold fills carry black type: white on #e0a506 is 2:1. */
  --grad-hero: linear-gradient(135deg, #000000 0%, #120e05 55%, #3a2b06 100%);
  --grad-blue: linear-gradient(180deg, #f0bb2e 0%, #e0a506 55%, #c08c04 100%);
  --grad-hot:  linear-gradient(180deg, #2b2b2b 0%, #000000 100%);
  --grad-gold: linear-gradient(180deg, #f0bb2e 0%, #e0a506 55%, #c08c04 100%);

  /* Gloss. A specular line along the top edge and a soft bloom across the
     upper left - the two cues that make a surface read as a lit object. */
  --gloss-top:  inset 0 1px 0 rgba(255, 255, 255, .55);
  --gloss-edge: inset 0 0 0 1px rgba(255, 255, 255, .22);

  --display: "Archivo", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Flat. `--grad-cta` and `--sheen` are kept as tokens rather than deleted
     because a dozen rules reference them; they now resolve to a flat fill and
     to nothing, so no rule has to be hunted down to stop it glossing. */
  --grad-cta:  var(--blue);
  --grad-band: var(--paper);
  --sheen: none;

  /* Depth is a hard offset, not a blur. A blurred shadow is the soft-SaaS
     default, and it greys the white ground the photographs sit on. */
  --lift:  none;
  --lift-h: 4px 4px 0 var(--ink);

  --r: 0px;
  --r-lg: 0px;
  --wrap: 1220px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 15.5px/1.6 var(--display);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
img { max-width: 100%; display: block; }

/* Display type: wide, heavy, tight. The width axis does most of the work - at
   wdth 125 Archivo reads as a poster face rather than a UI face, which is the
   whole reason this family was picked over adding a second one. */
h1, h2, h3 {
  margin: 0 0 .5rem; color: var(--ink);
  font-family: var(--display); font-weight: 900; font-stretch: 125%;
  line-height: .95; letter-spacing: -.035em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.3rem); letter-spacing: -.02em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--grey); }
.small { font-size: .85rem; }
.right { text-align: right; }
.stack > * + * { margin-top: 1rem; }

/* ---------- utility strip ---------- */
.utility {
  background: var(--ink); color: #ffffff;
  font-size: .8rem; letter-spacing: .01em;
}
.utility .wrap { display: flex; gap: 1.5rem; align-items: center; height: 36px; flex-wrap: wrap; }
.utility b { color: #fff; font-weight: 700; }
.utility .sep { opacity: .35; }

/* ---------- header ---------- */
/* White bar with a hard black rule under it, not a soft border - the header
   is the first edge on the page and it should read as drawn rather than as
   faded. No blur: there is nothing coloured behind it to soften any more. */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.site-head .wrap { display: flex; align-items: center; gap: 1.4rem; height: 66px; }
.brand {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 900; font-stretch: 125%; font-size: 1.28rem; letter-spacing: -.04em;
  text-decoration: none; color: var(--ink);
}
/* The lockup artwork is gold, and gold is the one thing this palette no
   longer has anywhere. Rendered flat black it sits in the system; left as
   supplied it is the only warm object on an otherwise monochrome page and
   reads as a leftover.
   This is a stopgap on a raster asset: the wordmark underneath is still a
   script serif, which is the remaining heritage signal on the page and needs
   a real decision from the client rather than a filter. */
.brand img { height: 34px; width: auto; display: block; filter: brightness(0); }
.admin-head .brand img { filter: brightness(0) invert(1); }
/* Admin keeps a wordmark rather than the logo - it is an internal tool. */
.admin-head .brand .leaf {
  width: 22px; height: 22px; border-radius: 0; flex: none;
  background: var(--blue); box-shadow: none;
}
.nav { display: flex; gap: 1.35rem; margin-left: auto; align-items: center; }
/* Sentence case, not tracked-out caps. Caps are reserved for display type,
   where they are a treatment; on a nav they are just harder to read.

   `:not(.btn)` matters: without it this rule outranks .btn-primary's own colour
   (0,1,1 against 0,1,0) and repaints the WhatsApp button's label black on
   ultramarine, which is 2.5:1. The nav sets the colour of nav links; it has no
   business setting the colour of a button that travels with its own. */
.nav a:not(.btn) { text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 700;
  letter-spacing: -.01em; text-transform: none; }
.nav a.btn { font-size: .9rem; font-weight: 800; letter-spacing: -.01em; }
.nav a:not(.btn):hover, .nav a.on { color: var(--blue); }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .68rem 1.25rem; border-radius: 0;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  text-decoration: none; font-size: .92rem; font-weight: 700; cursor: pointer;
  transition: transform .1s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}
.btn:hover { box-shadow: var(--lift-h); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }

.btn-primary {
  /* White on ultramarine, which is the reverse of the rule this line used to
     carry: black on the old gold was the only readable pairing, and black on
     #8a6500 is 2.5:1. White on it is 8.5:1. */
  background: var(--blue); border-color: var(--blue); color: #fff;
  box-shadow: none;
}
.btn-primary:hover { background: var(--paper); color: var(--blue); box-shadow: var(--lift-h); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.btn-ink:hover { background: var(--paper); color: var(--ink); }
.btn-sm { padding: .4rem .8rem; font-size: .84rem; }
/* Red survives only here and on .pill-bad / .notice-bad, all of them admin -
   a destructive action is the one place a second hue earns its keep. */
.btn-danger { background: #fff1f2; border-color: #c0343f; color: #c0343f; }

/* ---------- hero carousel ----------

   White, with the headline carrying the whole band.

   The dark band existed to give the page contrast against a cream ground.
   The ground is white now and the headline is 9rem, so the contrast is the
   type - which means the photograph no longer needs a panel built around it
   and can sit directly on the page as it does everywhere else.

   That also retires the cut-out problem for good rather than working around
   it. Nothing is behind the frame at all: no sweep to match, no glass for a
   folded temple arm to show through. Every frame works, including the 217
   whose cut-outs were withheld. */
.carousel { position: relative; background: var(--paper); overflow: hidden; }
.slides { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.slide { flex: 0 0 100%; position: relative; min-height: min(360px, 56vh); overflow: hidden; }
.slide .wrap {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: 1.15fr 1fr; align-items: center; gap: 2rem;
  /* vh as well as px: a 520px floor is fine on a tall monitor and eats a short
     laptop window whole. Whichever is smaller wins. */
  min-height: min(360px, 56vh); padding-block: 1.6rem;
}
.slide.s1, .slide.s2, .slide.s3 { background: var(--paper); }

/* The band is split, not tinted.

   Colour behind the copy, white behind the photograph - so the hero gets a
   full-height field of it without a single pixel landing under the frame.
   The edge is tied to the text column rather than to a percentage of the
   viewport: at 1280px a 50/50 viewport split cuts 40px into the copy, and
   white type on white ground is how that fails.

   The block bleeds to the left edge with the standard `50% - 50vw` trick and
   over-extends vertically; .carousel already clips it. */
.slide-copy { position: relative; padding-right: 1.5rem; }
.slide-copy > * { position: relative; z-index: 1; }
.slide-copy::before {
  content: ""; position: absolute; z-index: 0;
  top: -1000px; bottom: -1000px;
  left: calc(50% - 50vw); right: -1rem;   /* half the 2rem grid gutter */
  background: var(--grad-hero);
  box-shadow: var(--gloss-top);
}
/* The lit bloom. Kept inside the colour block, so it cannot reach the frame. */
.slide-copy::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: -1000px; bottom: -1000px;
  left: calc(50% - 50vw); right: -1rem;
  background:
    radial-gradient(70% 55% at 18% 12%, rgba(255, 255, 255, .34), transparent 62%),
    radial-gradient(45% 40% at 88% 92%, rgba(255, 255, 255, .16), transparent 70%);
}

/* The model number, not a label. It says which frame is pictured, so it is
   set as a readable credit rather than as a tracked-out eyebrow. */
.slide .kicker {
  display: inline-block; color: #fff; opacity: .82;
  font-size: .9rem; font-weight: 700; letter-spacing: 0;
}
.slide h2 {
  color: #fff; margin: .5rem 0 0; white-space: pre-line;
  font-size: clamp(2.3rem, 4.5vw, 4rem); line-height: .88; letter-spacing: -.04em;
  font-weight: 900; font-stretch: 125%;
}
.slide p { color: rgba(255, 255, 255, .86); margin: 1.1rem 0 0; max-width: 32ch; font-size: 1rem; }
/* White on the colour field, which inverts on hover. The button was blue on
   white; on the gradient that is the one pairing that disappears. */
.slide .btn-hero {
  display: inline-block; margin-top: 1.6rem; padding: .95rem 2.4rem;
  border-radius: 0; background: var(--paper); color: var(--ink);
  box-shadow: var(--gloss-top); border: 2px solid var(--paper);
  font-weight: 800; text-decoration: none; font-size: 1rem;
  transition: background .14s ease, color .14s ease;
}
.slide .btn-hero:hover { background: transparent; color: #fff; filter: none; }
.slide-media {
  position: relative; display: grid; place-items: center; height: 100%;
}
.slide-media img {
  max-width: 100%; max-height: 320px; width: auto;
}

/* Paired at the bottom right rather than centred on each edge. The headline
   now runs to 9rem and fills the left half of the band, so an arrow pinned
   mid-edge sat on top of the word it was next to. */
.car-arrow {
  position: absolute; z-index: 4; top: auto; bottom: 20px; transform: none;
  width: 40px; height: 40px; border-radius: 0; cursor: pointer;
  background: var(--paper); border: 2px solid var(--ink);
  color: var(--ink); font-size: 1.1rem; display: grid; place-items: center;
}
.car-arrow:hover { background: var(--ink); color: var(--paper); }
.car-prev { left: auto; right: 74px; }
.car-next { right: 20px; }
/* Bottom left, which is now inside the colour block - so these are white at
   two opacities rather than grey and blue, neither of which reads on it. */
.car-dots { position: absolute; z-index: 4; bottom: 32px; left: 20px; right: auto;
  display: flex; gap: .5rem; justify-content: flex-start; }
.car-dots button {
  width: 26px; height: 4px; padding: 0; border-radius: 0; cursor: pointer;
  background: rgba(255, 255, 255, .42); border: none;
}
.car-dots button.on { background: #fff; }

/* ---------- top categories ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 1rem; }

/* White cards, and the colour lives in the type.
   The tints here fought the photography: a product shot carries its own white
   sweep, so a tinted card put a hard white rectangle behind every frame -
   which is what the cut-outs had been hiding, and tinting the card simply
   moved that problem instead of solving it. The product grid already states
   the rule this now follows: a neutral well, so the frame's real colour reads
   true, and colour in the labels rather than under the product. */
.cat {
  position: relative; overflow: hidden; text-decoration: none;
  border: 1px solid var(--hair); border-radius: var(--r-lg);
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  transition: transform .18s cubic-bezier(.22,.8,.3,1), box-shadow .18s ease, border-color .18s ease;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--lift-h); border-color: var(--hair); }

/* The photograph leads, at one size in every card, so the row reads as a set
   rather than as six different crops. */
.cat .shot-wrap {
  aspect-ratio: 5 / 4; display: grid; place-items: center;
  padding: .9rem; background: var(--paper); overflow: hidden;
}
.cat .shot-wrap img {
  max-height: 100%; max-width: 100%; width: auto;
  transition: transform .45s cubic-bezier(.22,.8,.3,1);
}
.cat:hover .shot-wrap img { transform: scale(1.05); }

.cat > div:first-child { order: 2; padding: 0 1rem; }
.cat .shot-wrap { order: 1; }
.cat > .small { order: 3; }

.cat b { display: block; font-size: 1.02rem; letter-spacing: -.02em; }
.cat span { color: var(--grey); font-size: .82rem; font-weight: 600; }
.cat > .small {
  margin: .5rem 1rem 1rem; padding-top: .55rem;
  border-top: 1px solid var(--hair);
  color: var(--blue); font-size: .82rem; font-weight: 700;
}

/* ---------- shop by shape ----------
   Glyphs, not photographs, so this row can carry a ground. It separates the
   two photo grids it sits between - without a band there, categories and
   catalogue run together as one long white field. */
/* It sits inside `main.wrap`, so the ground is pushed back out to the
   viewport edges rather than the section being lifted out of the markup. */
.shape-band {
  background: var(--tint); border-block: 1px solid #ecdfb8;
  margin: 2.75rem calc(50% - 50vw); padding: .5rem max(20px, calc((100vw - var(--wrap)) / 2 + 20px));
}
.shape-band .section { margin: 1.5rem 0; }
.chips { display: flex; gap: .65rem; overflow-x: auto; padding-bottom: .35rem; }
.chip {
  flex: none; text-decoration: none; text-align: center;
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r);
  padding: .8rem 1rem; min-width: 108px; color: var(--ink);
  font-size: .85rem; font-weight: 700;
}
.chip:hover { background: #fff; box-shadow: var(--lift); border-color: #d8d8d8; }
.chip svg { margin: 0 auto .45rem; display: block; }

/* ---------- product grid ---------- */
/* Still used by /about, which sets its own columns inline. The home grid that
   owned the responsive overrides here now renders .tiles, so only the base
   remains - removing this line too left both about-page rows stacked. */
.grid { display: grid; gap: 1.5rem 1.15rem; }


/* Neutral well so the frame's real colour reads true - the whole point of an
   optical catalogue. Colour lives in the badges, not under the product. */



.off {
  display: inline-block; margin-left: .4rem; padding: .05rem .45rem; border-radius: 5px;
  background: #faf6ea; color: #8a6500; font-size: .74rem; font-weight: 800;
}
.ph { color: #6b6b6b; font-size: .84rem; font-weight: 600; text-align: center; }

/* corner ribbon for placeholder artwork - must never pass as photography */
.demo-tag {
  position: absolute; z-index: 2; left: .6rem; top: .6rem;
  padding: .12rem .45rem; border-radius: 5px;
  background: rgba(60, 44, 18, .82); color: #fff;
  font-size: .63rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- trust strip ----------
   A full colour band, and it can be one because there is not a photograph in
   it - four glyphs and four lines of text. It closes the page the way the
   hero opens it, so the white between them reads as breathing room around
   the catalogue rather than as an unfinished page. */
.promises {
  background: var(--grad-hero); background-image: var(--grad-hero);
  border-block: none; margin-top: 3rem; position: relative; overflow: hidden;
  box-shadow: var(--gloss-top);
}
.promises::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 120% at 14% 0%, rgba(255, 255, 255, .28), transparent 64%);
}
.promises .wrap { position: relative; z-index: 1; }
.promises .promise b { color: #fff; }
.promises .promise span { color: rgba(255, 255, 255, .84); }
.promises .promise .ic {
  background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .34);
  color: #fff; box-shadow: var(--gloss-top);
}
.promises .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.25rem; padding-block: 1.6rem; }
.promise { display: flex; gap: .7rem; align-items: flex-start; }
.promise .ic {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: #fff; border: 1px solid var(--hair);
  display: grid; place-items: center; font-size: 1rem;
}
.promise b { display: block; color: var(--ink); font-size: .9rem; }
.promise span { color: var(--grey); font-size: .82rem; }

/* ---------- panels / filters ---------- */
.panel {
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-lg);
  padding: 1.25rem; box-shadow: var(--lift);
}
.panel h2 { font-size: 1.02rem; }

/* Admin-only two-column shell. The storefront listing moved to `.listing`,
   and this was briefly flattened to `display:block` along with it - which
   silently stacked the admin edit, import and settings pages, because each
   sets its own grid-template-columns inline. */
.layout {
  display: grid; gap: 2rem; align-items: start;
  grid-template-columns: 1fr 1fr;
}
.filters {
  font-size: .92rem; background: #fff; border: 1px solid var(--hair);
  border-radius: var(--r-lg); padding: .9rem 1.1rem; box-shadow: var(--lift);
  margin-bottom: 1.75rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.4rem;
}
.filters h3 {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--grey); margin: 0 -.9rem 0 0; font-weight: 800;
}
.filters .opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters .opts a {
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--hair); border-radius: 999px;
  padding: .2rem .65rem; font-size: .82rem; font-weight: 600; background: #fff;
}
.filters .opts a:hover { border-color: var(--blue); color: var(--blue); }
.filters .opts a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.searchbar { display: flex; gap: .5rem; margin: 0 .6rem 0 0; flex: 0 0 260px; }

input[type=text], input[type=search], input[type=password],
input[type=number], select, textarea {
  width: 100%; padding: .58rem .75rem;
  border: 1px solid var(--hair); border-radius: 9px;
  font: inherit; background: #fff; color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #6b6b6b; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(224, 165, 6, .16);
}

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1.08fr 1fr; gap: 2.75rem; align-items: start; }
.gallery .main {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-lg);
  aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 1.75rem;
}
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: .55rem; margin-top: .75rem; flex-wrap: wrap; }
.thumbs button {
  width: 76px; height: 58px; padding: 5px; cursor: pointer;
  background: #fff; border: 1px solid var(--hair); border-radius: 10px;
}
.thumbs button.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(224, 165, 6, .18); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }

.price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.025em; margin: .45rem 0 .2rem; color: var(--ink); }
.price s { font-size: 1rem; color: var(--grey); font-weight: 400; margin-left: .5rem; }

.spec { width: 100%; border-collapse: collapse; margin-top: 1.4rem; font-size: .91rem; }
.spec th, .spec td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--hair); }
.spec th { color: var(--grey); font-weight: 500; width: 42%; }

.swatches { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .55rem; }
.swatches a {
  border: 1px solid var(--hair); border-radius: 8px;
  padding: .3rem .75rem; font-size: .84rem; font-weight: 600;
  text-decoration: none; color: var(--ink); background: #fff;
}
.swatches a:hover { border-color: var(--blue); color: var(--blue); }

.pill {
  display: inline-block; margin-right: .35rem;
  padding: .2rem .6rem; border-radius: 6px;
  background: var(--hair); color: var(--ink);
  font-size: .77rem; font-weight: 700;
}
.pill-hot { background: #faf6ea; color: #8a6500; }
.pill-warn { background: #faf6ea; color: var(--blue); }
.pill-bad { background: #fff1f2; color: #c0343f; }

/* ---------- empty state ---------- */
.empty {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--r-lg);
  padding: 3rem 2rem; text-align: center;
}
.empty h2 { font-size: 1.35rem; }
.empty p { color: var(--grey); max-width: 52ch; margin: .55rem auto 0; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--hair); margin-top: 3.5rem; padding: 2.75rem 0 5rem;
  background: var(--ink); color: #b0b0b0; font-size: .9rem;
}
.site-foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.75rem; }
.site-foot strong { display: block; margin-bottom: .45rem; color: #fff; font-size: .96rem; font-weight: 800; }
/* Not --blue: on this ground it is 2.3:1. A lifted tint of it is 5.8:1. */
.site-foot a { color: #e0a506; }
.site-foot .foot-credit {
  margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem; color: #8a8a8a;
}
.site-foot .foot-credit a { font-weight: 700; }

/* ---------- admin ---------- */
.admin-head { background: var(--ink); border-bottom: none; }
.admin-head .wrap { gap: 1.2rem; height: 58px; }
.admin-head a { color: #b0b0b0; text-decoration: none; font-size: .91rem; font-weight: 600; }
.admin-head a:not(.btn):hover, .admin-head a.on { color: #fff; }
.admin-head .brand { color: #fff; font-size: 1.03rem; }
.admin-head form { margin-left: auto; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 1rem; }
.stat { background: #fff; border: 1px solid var(--hair); border-radius: var(--r); padding: 1rem; box-shadow: var(--lift); }
.stat .n { font-size: 1.85rem; font-weight: 800; line-height: 1.05; color: var(--ink); }
.stat .l { color: var(--grey); font-size: .81rem; margin-top: .15rem; }
.stat.good { background: var(--grad-cta); border-color: transparent; }
.stat.good .n, .stat.good .l { color: #fff; }

table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th, table.data td { text-align: left; padding: .58rem; border-bottom: 1px solid var(--hair); }
table.data th {
  color: var(--grey); font-weight: 700; font-size: .71rem;
  text-transform: uppercase; letter-spacing: .08em;
}
table.data tr:hover td { background: #f4f4f4; }
table.data td.thumb { width: 54px; }
table.data td.thumb img { width: 44px; height: 34px; object-fit: contain; background: #fff; border: 1px solid var(--hair); border-radius: 6px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem; }
/* Two-line labels ('Dealer cost - never shown publicly') otherwise push their
   input out of line with the rest of the row. */
label.f {
  display: block; font-size: .79rem; color: var(--grey);
  margin-bottom: .28rem; font-weight: 600;
  min-height: 2.1em; display: flex; align-items: flex-end;
}
.toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.15rem; }

.notice {
  background: #faf6ea; border: 1px solid #8a6500; color: #8a6500;
  border-radius: 10px; padding: .7rem 1rem; margin-bottom: 1rem;
  font-weight: 600; font-size: .91rem;
}
.notice-bad { background: #fff1f2; border-color: #ffd4d8; color: #c0343f; }
pre.out {
  background: var(--ink); color: #ffffff; border-radius: 10px;
  padding: .95rem; overflow: auto; font-size: .8rem; margin: 0;
}
code { color: #8a6500; }

.section { margin: 2.75rem 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap;
}

@media (max-width: 900px) {
  /* Single column here, so the photograph sits BELOW the copy rather than
     beside it - and the colour block must stop at the end of the text. The
     desktop rule over-extends it by 1000px in both directions, which on a
     phone would lay the gradient straight over the frame. */
  .slide-copy::before, .slide-copy::after {
    top: -1.75rem; bottom: 0;
    right: calc(50% - 50vw);
  }
  /* The block ends exactly at the copy's box, and the breathing room under
     the button comes from padding inside it. Extending the block downward
     instead put the gradient over the top 13px of the photograph - measured,
     not guessed, and the one thing this layout is not allowed to do. */
  .slide-copy { padding-top: .25rem; padding-bottom: 1.75rem; padding-right: 0; }

  .layout, .pdp, .hero .wrap { grid-template-columns: 1fr; gap: 1.75rem; }
  .searchbar { flex: 1 1 100%; margin-right: 0; }
  .slide .wrap { grid-template-columns: 1fr; min-height: 0; gap: 1rem; text-align: left; }
  .slide, .slide .wrap { min-height: 0; }
  .slide-media img { max-height: 190px; }
  .car-arrow { display: none; }
  .hero .wrap { padding-block: 2.25rem; }
  .nav { gap: .8rem; }
  .nav a.hide-sm { display: none; }
  .price { font-size: 1.8rem; }
}

@media (max-width: 560px) {
  .site-head .wrap { gap: .6rem; padding: 0 14px; }
  .brand img { height: 27px; }
  .nav { gap: .55rem; min-width: 0; }
  .nav .btn { padding: .4rem .75rem; font-size: .82rem; white-space: nowrap; }
  .utility .wrap { gap: .8rem; font-size: .74rem; height: auto; padding-block: .4rem; }
  .utility .hide-sm { display: none; }
}

/* ============================================================
   Listing page — sidebar filters with counts, richer tiles.
   Modelled on how a full eyewear listing behaves.
   ============================================================ */

.crumbs { font-size: .82rem; color: var(--grey); margin-bottom: 1rem; }
.crumbs a { color: var(--grey); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs span { margin: 0 .35rem; opacity: .5; }
.crumbs b { color: var(--ink); }

.listing { display: grid; grid-template-columns: 248px 1fr; gap: 2rem; align-items: start; }

.side {
  position: sticky; top: 84px;
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-lg);
  box-shadow: var(--lift); overflow: hidden;
}
.side-block { padding: .9rem 1rem; border-bottom: 1px solid var(--hair); }
.side-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .85rem 1rem; border-bottom: 1px solid var(--hair);
  font-weight: 800; color: var(--ink); font-size: .95rem;
}
.side-head a { font-size: .8rem; font-weight: 600; }

.fgroup { border-bottom: 1px solid var(--hair); }
.fgroup summary {
  list-style: none; cursor: pointer; padding: .8rem 1rem;
  font-weight: 700; color: var(--ink); font-size: .92rem;
  display: flex; align-items: center; gap: .5rem;
}
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after {
  content: "⌄"; margin-left: auto; color: var(--grey);
  transition: transform .15s ease; line-height: 1;
}
.fgroup[open] summary::after { transform: rotate(180deg); }
.fgroup .cnt {
  font-style: normal; background: var(--ink); color: #fff;
  border-radius: 999px; font-size: .68rem; padding: .05rem .42rem; font-weight: 800;
}
.fgroup ul { list-style: none; margin: 0; padding: 0 1rem .9rem; }
.fgroup li + li { margin-top: .1rem; }
.fgroup label {
  display: flex; align-items: center; gap: .55rem;
  padding: .28rem 0; cursor: pointer; font-size: .89rem;
}
.fgroup label span { flex: 1; }
.fgroup label em { font-style: normal; color: var(--grey); font-size: .8rem; }
.fgroup input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--ink); }
.apply { width: calc(100% - 2rem); margin: 1rem; }

/* Wraps: the heading is display type now, so 'Eyeglasses' plus a long count
   no longer fits one line on a phone. */
.listing-head { display: flex; align-items: baseline; gap: .15rem .75rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.listing-head h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.listing-head .count { color: var(--grey); font-size: .95rem; font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.tile {
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--lift-h); }

.tile-shot {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 16 / 10; padding: 1.1rem 1rem; background: #fff; overflow: hidden;
}
/* width/height rather than max-*: a percentage max-height on a grid item did
   not constrain this one, and the photograph rendered 79px tall inside a 56px
   content box - overflowing the strip the padding reserves for the dots by
   23px. Sizing the box explicitly and letterboxing inside it with `contain`
   keeps the element exactly the content area, which is what every overlap
   measurement in this file assumes. */
.tile-shot img { width: 100%; height: 100%; object-fit: contain; }
.tile-flag {
  position: absolute; left: 0; top: .75rem; z-index: 2;
  background: var(--ink); color: #fff; font-size: .64rem; font-weight: 800;
  padding: .16rem .5rem; border-radius: 0; letter-spacing: .04em;
}
.tile-flag.flag-calm { background: var(--ink); }
.tile-save {
  position: absolute; right: .6rem; top: .6rem; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  background: #fff; border: 1px solid var(--hair);
  display: grid; place-items: center; padding: 0;
}
.tile-save svg { fill: none; stroke: var(--grey); stroke-width: 1.7; }
.tile-save:hover svg { stroke: var(--blue); }
.tile-save.on svg { fill: var(--blue); stroke: var(--blue); }
/* Gone, rather than relocated.

   These sat on the photograph, and the strip of padding meant to hold them
   never opened: the well takes its height from `aspect-ratio`, which the
   engine treats as indefinite when resolving the image's percentage height,
   so the image is sized by width x its own aspect and overflows the content
   box by 23px whatever the padding says. Neither `max-height: 100%` nor
   `height: 100%` constrains it.

   Rather than build a layout around that, the element goes. It reports how
   many photographs a frame has, which helps nobody choose one from a grid,
   and the product page shows the gallery anyway. It was also the last thing
   on this site still sitting on top of a product photograph. */
.tile-dots { display: none; }
.tile-dots i { width: 5px; height: 5px; border-radius: 50%; background: #d8d8d8; }
.tile-dots i.on { background: var(--ink); }

.tile-body { padding: .35rem .9rem .8rem; }
/* Below the photograph, not on it.

   These sat in the image's bottom-right corner for two commits, copied from a
   listing whose product shots have an empty corner to put them in. These do
   not: a 16:10 frame fills a 16:10 well, so the chip covered the temple arm by
   up to 85x24px - measured on the home grid, whose tiles are narrower than the
   listing's and where the overlap is worst.

   Nothing goes on top of a product photograph. That rule has outlasted a
   palette change, a gloss pass and a gradient; it outlasts Lenskart too. */
.tile-media { position: relative; }
.tile-colours {
  display: flex; gap: .3rem; margin: 0 0 .45rem; flex-wrap: wrap;
}
.tile-colours a {
  width: 17px; height: 17px; border-radius: 50%; padding: 2px;
  border: 1px solid var(--hair); display: grid; place-items: center;
  text-decoration: none; background: #fff;
}
.tile-colours a i { width: 100%; height: 100%; border-radius: 50%; display: block; }
.tile-colours a.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tile-colours .more { font-size: .72rem; color: var(--grey); align-self: center; }
/* The model number is the one thing worth setting loud on a listing tile -
   it is what the frame is marked with on the temple, and what a returning
   customer asks for by name. The page reads as a different, quieter site
   than the home page without it. */
.tile-name {
  display: block; font-weight: 900; font-stretch: 118%; color: var(--ink);
  font-size: 1.12rem; letter-spacing: -.02em; text-decoration: none;
}
.tile-name:hover { color: var(--blue); }
.tile-sub { color: var(--grey); font-size: .82rem; margin-top: .1rem; }
.tile-price { margin-top: .5rem; }
.tile-price b { font-size: 1.08rem; color: var(--ink); }
.tile-price .lens { font-size: .8rem; color: var(--grey); margin-left: .3rem; }
.tile-price .was { font-size: .82rem; color: var(--grey); margin-top: .1rem; }
.tile-price .was s { text-decoration: line-through; }
.tile-price .was em { font-style: normal; color: #8a6500; font-weight: 700; }

.tile-foot {
  margin-top: auto; display: flex; gap: .5rem;
  padding: .55rem .9rem; border-top: 1px dashed var(--hair);
  background: var(--paper); font-size: .76rem; color: var(--grey);
}
.tile-foot .right { margin-left: auto; font-weight: 700; color: var(--ink); }

@media (max-width: 900px) {
  .listing { grid-template-columns: 1fr; }
  .side { position: static; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
  .tile-foot { display: none; }
}

/* ============================================================
   Gloss, and where it stops.

   Gloss is back, and it is deliberately not uniform. Two kinds of surface
   live on this page and they get opposite treatment:

   CHROME - buttons, badges, bands, the assistant, anything the interface
   owns - is lit. Gradient fill, a specular line along the top edge, a sweep
   on press. This is what makes the page read as glossy.

   PRODUCT WELLS - .tile-shot, .cat .shot-wrap, .gallery .main -
   stay perfectly flat and perfectly white. Every one of them holds a
   photograph of a frame whose colour is the thing being bought, and the last
   time this file lit those surfaces it put a white sweep across each shot
   and a grey ellipse under it. A gradient on a product well is not a finish;
   it is a colour cast on the merchandise.

   The boundary is the whole idea. Gloss on the interface, nothing on the
   goods.
   ============================================================ */

/* ---------- buttons ---------- */
.btn { background-image: linear-gradient(180deg, #ffffff 0%, #f2f2f5 100%); box-shadow: var(--gloss-top); }
.btn:hover { box-shadow: var(--gloss-top), var(--lift-h); }

.btn-primary {
  background: var(--grad-blue); border-color: var(--blue); color: #fff;
  box-shadow: var(--gloss-top), var(--gloss-edge);
}
.btn-primary:hover { background: var(--grad-hot); border-color: var(--hot); color: #fff; }
.btn-ink { background: linear-gradient(180deg, #2b2b2b 0%, #000000 100%); }

/* The wet-glass sweep, restored. Interface only - it never crosses a photo. */
.btn-primary::after, .btn-ink::after, .btn-hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 38%;
  left: -55%; transform: skewX(-22deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
}
.btn-primary:hover::after, .btn-ink:hover::after, .btn-hero:hover::after {
  transition: left .6s ease; left: 130%;
}
.btn-hero { position: relative; overflow: hidden; }

/* ---------- raised chrome ---------- */
/* .cat and .tile are absent by design: both are product wells. */
.panel, .side, .stat, .filters {
  background-image: linear-gradient(180deg, #ffffff 0%, #fdfbf5 100%);
  box-shadow: var(--gloss-top);
}
.panel:hover { box-shadow: var(--gloss-top), var(--lift-h); }
.chip { background-image: linear-gradient(180deg, #ffffff 0%, #fbf7ec 100%); box-shadow: var(--gloss-top); }
.chip:hover { box-shadow: var(--gloss-top), var(--lift-h); }

/* ---------- product wells: flat, and staying that way ---------- */
.cat, .tile { background-image: none; box-shadow: none; }
.tile:hover { box-shadow: var(--lift-h); }
.tile-shot::before, .tile-shot::after { content: none; }
.tile-shot, .cat .shot-wrap, .gallery .main {
  background: var(--paper); background-image: none;
}
.tile-shot img { position: relative; z-index: 1; }
.cat::after { content: none; }
.cat > * { position: relative; z-index: 1; }

/* ---------- badges ---------- */
/* Magenta earns its keep here precisely because it is rare. It appears on the
   273 frames down to five units or fewer and nowhere else, so it reads as a
   fact about THAT frame rather than as decoration on all of them. The version
   of this badge that carried "30% off" on every tile was the opposite. */
.tile-flag {
  background: var(--ink); color: #fff; border-radius: 0;
  box-shadow: none; font-size: .64rem; letter-spacing: .04em;
  padding: .18rem .5rem; opacity: 1;
}
.tile-flag.flag-scarce { background: var(--grad-hot); box-shadow: var(--gloss-top); }
.tile-flag.flag-calm { background: var(--ink); opacity: .72; }
.tile-flag.flag-calm { background: linear-gradient(180deg, #2b2b2b 0%, #000000 100%); }
.tile-save { box-shadow: var(--gloss-top); }
.tile-foot { background-image: linear-gradient(180deg, #ffffff 0%, #fbf7ec 100%); }
.off { background-image: linear-gradient(180deg, #fdf9ee 0%, #f5ebcd 100%); }
.pill { background-image: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0)); }

/* ---------- hero ---------- */
/* The photograph still sits on the page with nothing behind it. The colour
   and the gloss are in .slide-copy, which stops short of it. */
.slide-media img { border-radius: 0; }
.slide-media {
  background: transparent; border-radius: 0;
  padding: 0; width: fit-content; justify-self: center;
  box-shadow: none;
}
.carousel::after { content: none; }

/* ---------- inputs ---------- */
.filters .opts a, .swatches a, .thumbs button {
  background-image: linear-gradient(180deg, #ffffff 0%, #fbf7ec 100%);
  box-shadow: var(--gloss-top);
}
input[type=text], input[type=search], input[type=password],
input[type=number], select, textarea {
  background-image: linear-gradient(180deg, #fdfbf5 0%, #ffffff 42%);
  box-shadow: inset 0 1px 2px rgba(224, 165, 6, .06);
}

/* ---------- dark chrome ---------- */
.utility { background-image: linear-gradient(180deg, #1a1a1a 0%, #000000 100%); }
.site-foot { background-image: linear-gradient(180deg, #000000 0%, #1a1406 100%); }

/* ---------- about ---------- */
.about-top {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 2.25rem;
  align-items: start; margin-bottom: 1rem;
}
.about-top .lede { font-size: 1.05rem; color: var(--grey); max-width: 56ch; margin-top: .9rem; }
.step {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--grad-cta); color: #fff;
  font-size: .8rem; font-weight: 800; margin-right: .45rem;
  box-shadow: var(--gloss-top);
}
@media (max-width: 900px) { .about-top { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- listing: applied-filter feedback ---------- */
/* Filters commit on click now, so the applied state has to be readable from
   the results column without scanning the sidebar. */
.active-filters {
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: center;
  margin: 0 0 1.1rem;
}
.afchip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .28rem .5rem .28rem .7rem; border-radius: 999px;
  border: 1px solid var(--hair); text-decoration: none;
  background-image: linear-gradient(180deg, #ffffff, #ffffff);
  box-shadow: var(--gloss-top);
  color: var(--ink); font-size: .82rem; font-weight: 700;
}
.afchip span {
  display: grid; place-items: center; width: 15px; height: 15px;
  border-radius: 50%; background: var(--hair); color: var(--grey);
  font-size: .72rem; line-height: 1;
}
.afchip:hover { border-color: var(--blue); }
.afchip:hover span { background: var(--blue); color: #fff; }
.afclear { font-size: .82rem; font-weight: 600; margin-left: .25rem; }

/* Brief dim while the next page loads, so a click never looks ignored. */
.listing.is-filtering section { opacity: .45; transition: opacity .12s ease; }
.listing.is-filtering .side { pointer-events: none; }

.searchrow { display: flex; gap: .45rem; align-items: center; }
.searchrow input { min-width: 0; }
.searchrow .btn { flex: none; }

/* ============================================================
   Motion

   Reveal states only apply under `.motion`, a class script adds at runtime.
   Without JavaScript nothing is hidden, so a failed script can never blank
   the catalogue. Everything is off under prefers-reduced-motion.
   ============================================================ */

/* Cross-fade between pages instead of a white flash. */
@view-transition { navigation: auto; }

.motion .rv {
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: opacity .5s cubic-bezier(.22,.8,.3,1), transform .5s cubic-bezier(.22,.8,.3,1);
  will-change: opacity, transform;
}
.motion .rv-in { opacity: 1; transform: none; }

/* Hero frame drifts, and its reflection drifts with it. */
@keyframes hc-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-.6deg); }
}
.motion .slide-media img { animation: hc-float 7s ease-in-out infinite; }

/* Cards: lift further, and let the photograph breathe on hover. */
.tile-shot img { transition: transform .45s cubic-bezier(.22,.8,.3,1); }
.tile:hover .tile-shot img { transform: scale(1.06); }
.tile { transition: transform .22s cubic-bezier(.22,.8,.3,1), box-shadow .22s ease, border-color .18s ease; }
.tile:hover { transform: translateY(-6px); }

/* Category tiles tilt very slightly toward the cursor side. */
.cat { transition: transform .22s cubic-bezier(.22,.8,.3,1), box-shadow .22s ease; }
.cat:hover { transform: translateY(-6px) rotate(-.5deg); }
.cat:hover .shot-wrap img { transform: scale(1.07) rotate(1deg); }
.cat .shot-wrap img { transition: transform .45s cubic-bezier(.22,.8,.3,1); }

/* Buttons get a springier press. */
.btn { transition: transform .14s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, filter .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }

/* Filter chips spring in when the sidebar renders. */
@keyframes hc-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.motion .afchip { animation: hc-pop .28s cubic-bezier(.34,1.56,.64,1) both; }
.motion .active-filters .afchip:nth-child(2) { animation-delay: .04s; }
.motion .active-filters .afchip:nth-child(3) { animation-delay: .08s; }
.motion .active-filters .afchip:nth-child(4) { animation-delay: .12s; }

/* The listing dims briefly while a filter is being applied. */
.listing.is-filtering .tiles { opacity: .45; transition: opacity .18s ease; }

/* Logo gets a slow shine, once, on arrival. */
@keyframes hc-sheen { from { opacity: .6; } to { opacity: 1; } }
.motion .brand img { animation: hc-sheen .7s ease both; }

/* Swatches and thumbs respond immediately. */
.tile-colours a, .thumbs button, .swatches a, .filters .opts a {
  transition: transform .16s cubic-bezier(.34,1.56,.64,1), border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.tile-colours a:hover, .thumbs button:hover, .swatches a:hover, .filters .opts a:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .motion .rv, .motion .rv-in { opacity: 1; transform: none; transition: none; }
  .motion .slide-media img, .motion .afchip, .motion .brand img { animation: none; }
  .tile:hover, .cat:hover, .btn:hover { transform: none; }
}

/* ============================================================
   Background

   There is none. Both effects that used to live here were arguments for
   warming up a cream page, and the page is not cream any more.

   The grain tile gave flat cream the tooth of printed stock. On white it
   only adds a grey haze over every product photograph - the one surface on
   this site that has to stay untouched.

   The drifting gold bloom lit the dark hero band. The hero is white, and a
   gold wash across it would put a tint behind the frame, which is the thing
   this file has said twice already that nothing is allowed to do.
   ============================================================ */

/* ============================================================
   Large displays

   The layout was built against a ~1280px window: a 1220px container with
   15.5px type. On a wider screen that leaves a broad empty margin either side
   and the type reads small against it - the page looks zoomed out even though
   nothing is scaled. Container, type and grid all step up instead.
   ============================================================ */

@media (min-width: 1440px) {
  :root { --wrap: 1400px; }
  body { font-size: 16.5px; }

  .brand img { height: 39px; }
  .nav { gap: 1.6rem; }
  .nav a { font-size: .88rem; }
  .utility .wrap { height: 40px; font-size: .84rem; }
  .site-head .wrap { height: 74px; }

  /* Bigger tiles rather than simply more of them. */
  .tiles { grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 1.6rem; }
  .cats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }
  .cat { min-height: 230px; }
  .chip { min-width: 128px; padding: 1rem 1.2rem; }

  .listing { grid-template-columns: 286px 1fr; gap: 2.5rem; }
  .slide, .slide .wrap { min-height: min(400px, 56vh); }
  .slide-media img { max-height: 280px; }
}

@media (min-width: 1800px) {
  :root { --wrap: 1560px; }
  body { font-size: 17.5px; }

  .brand img { height: 43px; }
  .site-head .wrap { height: 80px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .cats { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .slide, .slide .wrap { min-height: min(430px, 56vh); }
  .slide-media img { max-height: 310px; }
}

/* ============================================================
   Assistant

   Sits above the grain overlay (z-index 60) so it is never veiled, and
   below nothing else - it is the topmost thing on the page by design.
   The panel is a fixed sheet on desktop and full-width on phones, where
   a floating card would leave no room for the product cards inside it.
   ============================================================ */

.bot { position: fixed; right: 18px; bottom: 18px; z-index: 80; }

.bot-launch {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; flex: none;
  border: 0; cursor: pointer; padding: 0; border-radius: 0;
  background: var(--grad-gold); color: var(--ink);
  /* White ring first, then the offset. The launcher floats over white, over the
     blue ticker and over the gradient trust strip; no fill colour separates
     from all three, but a halo does. */
  box-shadow: 0 0 0 2px var(--ink), 4px 4px 0 var(--ink);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease;
}
.bot-launch:hover { transform: translateY(-2px); }
.bot-launch-dot {
  width: 8px; height: 8px; border-radius: 0; background: #fff;
  box-shadow: 0 0 0 3px rgba(224, 165, 6, .18);
}
.bot.on .bot-launch { display: none; }

.bot-panel {
  display: none;
  width: min(390px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 110px));
  flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -18px rgba(60, 44, 18, .38);
}
.bot.on .bot-panel { display: flex; }

.bot-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding: .85rem 1rem;
  background: var(--ink); color: #ffffff;
}
.bot-head strong { display: block; font-size: .95rem; letter-spacing: .01em; }
.bot-head span { display: block; font-size: .76rem; color: #b0b0b0; }
.bot-x {
  border: 0; background: transparent; color: #b0b0b0; cursor: pointer;
  font-size: 1.5rem; line-height: 1; padding: 0 .2rem;
}
.bot-x:hover { color: #fff; }

.bot-log { flex: 1; overflow-y: auto; padding: 1rem; background: var(--paper); }
.bot-msg { margin-bottom: .8rem; max-width: 100%; }
.bot-msg p { margin: 0; }
.bot-you {
  margin-left: auto; width: fit-content; max-width: 85%;
  background: var(--ink); color: #ffffff;
  padding: .55rem .8rem; border-radius: 14px 14px 3px 14px;
  font-size: .9rem;
}
.bot-hc {
  background: var(--paper); border: 1px solid var(--hair);
  padding: .7rem .85rem; border-radius: 14px 14px 14px 3px;
  font-size: .9rem; color: var(--ink);
}

.bot-pill {
  display: inline-block; margin-left: .3rem;
  padding: .1rem .5rem; border-radius: 999px;
  background: #faf6ea; color: #8a6500;
  font-size: .72rem; font-weight: 700;
}
.bot-pill-warn { background: #faf6ea; color: #8a6500; }

.bot-card {
  display: flex; gap: .7rem; margin-top: .7rem;
  padding: .6rem; border: 1px solid var(--hair); border-radius: var(--r);
  background: var(--paper);
}
.bot-card-img {
  flex: 0 0 74px; height: 62px; display: flex;
  align-items: center; justify-content: center;
  background: #fff; border-radius: 8px; overflow: hidden;
}
.bot-card-img img { max-height: 62px; width: auto; object-fit: contain; }
.bot-noimg { font-size: .66rem; color: var(--grey); text-align: center; padding: .3rem; }
.bot-card-body { display: flex; flex-direction: column; gap: .12rem; min-width: 0; flex: 1; }
.bot-card-name { font-weight: 700; color: var(--ink); text-decoration: none; font-size: .88rem; }
.bot-card-meta { font-size: .75rem; color: var(--grey); }
.bot-card-price { font-weight: 700; font-size: .85rem; color: var(--ink); }
.bot-card-price s { font-weight: 400; color: var(--grey); margin-left: .25rem; font-size: .78rem; }

.bot-wa {
  display: inline-block; margin-top: .35rem; width: fit-content;
  padding: .32rem .7rem; border-radius: 999px;
  background: #8a6500; color: #fff; text-decoration: none;
  font-size: .78rem; font-weight: 700;
}
.bot-wa:hover { filter: brightness(1.08); }
.bot-more {
  display: inline-block; margin-top: .6rem;
  font-size: .82rem; font-weight: 700; color: var(--blue);
}

.bot-spec { width: 100%; margin-top: .7rem; border-collapse: collapse; font-size: .78rem; }
.bot-spec th, .bot-spec td { padding: .28rem .1rem; border-bottom: 1px solid var(--hair); text-align: left; }
.bot-spec th { color: var(--grey); font-weight: 600; width: 42%; }
.bot-spec tr:last-child th, .bot-spec tr:last-child td { border-bottom: 0; }

.bot-chips {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: .6rem 1rem 0; background: var(--paper);
}
.bot-chips:empty { padding: 0; }
.bot-chip {
  border: 1px solid var(--hair); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: .34rem .7rem; cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 600;
}
.bot-chip:hover { border-color: var(--blue); background: #faf6ea; }

.bot-form {
  display: flex; gap: .45rem; padding: .7rem 1rem .85rem;
  background: var(--paper); border-top: 1px solid var(--hair);
}
.bot-form input {
  flex: 1; min-width: 0; font: inherit; font-size: .88rem;
  padding: .55rem .75rem; border: 1px solid var(--hair);
  border-radius: 999px; background: var(--paper); color: var(--ink);
}
.bot-form input:focus { outline: 2px solid var(--blue); outline-offset: -1px; background: #fff; }
.bot-form button {
  border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .85rem;
  padding: .55rem 1rem; border-radius: 999px;
  background: var(--grad-cta); color: #ffffff; box-shadow: var(--sheen);
}

@media (max-width: 560px) {
  .bot { right: 12px; left: auto; bottom: 12px; }
  .bot-launch { width: 52px; height: 52px; }
  .bot-panel { width: 100%; height: min(78vh, calc(100vh - 80px)); }
}
.bot-note {
  margin: 0 0 .5rem; padding: .4rem .6rem;
  background: #faf6ea; border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0; font-size: .82rem; color: var(--ink);
}

/* ---------- listing pager ---------- */
.pager {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: .5rem; margin: 2rem 0 .5rem;
}
.pager-step {
  padding: .5rem .9rem; border: 1px solid var(--hair); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-size: .85rem; font-weight: 700; text-decoration: none;
}
.pager-step:hover { border-color: var(--blue); background: #faf6ea; }
.pager-step.off { opacity: .4; pointer-events: none; }
.pager-nums { display: flex; align-items: center; gap: .3rem; }
.pager-n {
  min-width: 34px; height: 34px; padding: 0 .4rem;
  display: grid; place-items: center;
  border: 1px solid var(--hair); border-radius: 8px;
  background: var(--paper); color: var(--ink);
  font-size: .85rem; font-weight: 600; text-decoration: none;
}
.pager-n:hover { border-color: var(--blue); }
.pager-n.on { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.pager-gap { color: var(--grey); padding: 0 .1rem; }
@media (max-width: 560px) {
  .pager-step { padding: .5rem .7rem; font-size: .8rem; }
}

/* ============================================================
   Admin on a phone

   The photo upload now opens a phone's camera, so the edit page has to be
   usable on the device doing the shooting. These column counts used to be
   inline styles, which beat the 900px breakpoint on specificity and left the
   page 610px wide inside a 375px viewport - the panel and the nav both ran
   off the right edge.
   ============================================================ */

.layout.cols-aside { grid-template-columns: 1fr 320px; }
.layout.cols-2     { grid-template-columns: 1fr 1fr; }
.layout.cols-fit   { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

@media (max-width: 900px) {
  .layout.cols-aside, .layout.cols-2, .layout.cols-fit { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* Admin only. Its seven nav items genuinely need a second line; the
     storefront has a hamburger and must stay one row. */
  .admin-head .wrap { flex-wrap: wrap; height: auto; padding-block: .6rem; gap: .6rem 1rem; }
  .admin-head .nav { margin-left: 0; flex-wrap: wrap; gap: .5rem .9rem; width: 100%; }
  .admin-head .nav a { font-size: .78rem; letter-spacing: .04em; }

  /* Wide admin tables scroll inside themselves instead of stretching the page. */
  .data { display: block; overflow-x: auto; }

  /* A file input reports its own intrinsic width, which on iOS is wider than
     a phone once a long filename is chosen. */
  input[type="file"] { max-width: 100%; }
}

/* ---------- import: the numbered sequence ---------- */
.steps {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem;
}
.steps li {
  display: flex; gap: .7rem; align-items: flex-start;
  border: 1px solid var(--hair); border-radius: var(--r);
  background: var(--paper); padding: .9rem 1rem;
}
.step-n {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: #ffffff;
  display: grid; place-items: center; font-size: .78rem; font-weight: 800;
}
.steps b { display: block; font-size: .93rem; margin-bottom: .2rem; }
.steps p { margin: 0; font-size: .84rem; color: var(--grey); }
.steps code, .data code { background: var(--paper); border-radius: 4px; padding: .05rem .3rem; font-size: .92em; }
.btn-sm { padding: .42rem .85rem; font-size: .83rem; }

/* Inputs in a form row line up even when one label wraps — the row is as tall
   as its tallest label and the fields still share a baseline. */
.form-grid > div { display: flex; flex-direction: column; }
.form-grid > div > .f { flex: 1 0 auto; align-content: end; }

/* ---------- fit guide ----------
   Collapsed by default: it answers the commonest pre-purchase question in
   eyewear, but only for the people asking it, and it must not push the price
   and the WhatsApp button down the page for everyone else. */
.fitguide {
  margin-top: 1.4rem; border: 1px solid var(--hair); border-radius: var(--r);
  background: var(--paper); padding: .85rem 1rem;
}
.fitguide summary {
  cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--ink);
  list-style: none;
}
.fitguide summary::-webkit-details-marker { display: none; }
.fitguide summary::after { content: " +"; color: var(--gold-dk, var(--blue)); font-weight: 800; }
.fitguide[open] summary::after { content: " −"; }
.fitguide p { font-size: .88rem; color: var(--grey); margin: .7rem 0 0; }
.fitguide ul { margin: .6rem 0 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.fitguide li { font-size: .88rem; color: var(--grey); }
.fitguide li b { color: var(--ink); }
.fitguide code { background: var(--paper); border-radius: 4px; padding: .05rem .3rem; }

/* ---------- shape ticker ----------

   A slow strip of the shapes in stock, on a dark band between the hero and
   the categories. It gives the page a second dark beat and keeps moving
   without asking for attention.

   The run is rendered twice and the track slides exactly half its width, so
   the second copy arrives where the first began and the loop has no seam.
   The duplicate is hidden from assistive tech and taken out of the tab order,
   or every shape would be announced and tabbed through twice. */
/* The one place caps and tracking are right: this is a moving strip of shape
   names, read in passing rather than scanned, and the even rhythm of caps is
   what makes it legible at speed. */
.ticker {
  background: var(--grad-blue); overflow: hidden;
  border-block: none; box-shadow: var(--gloss-top);
}
.ticker-track { display: flex; width: max-content; animation: ticker-run 42s linear infinite; }
.ticker-run { display: flex; align-items: center; }
.ticker-item {
  display: flex; align-items: center; gap: .55rem;
  padding: .9rem 1.6rem; text-decoration: none; white-space: nowrap;
  color: #fff; transition: color .2s ease;
}
.ticker-item span {
  font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
/* A square between items, drawn rather than typed so it never wraps oddly. */
.ticker-item::after {
  content: ""; width: 5px; height: 5px; border-radius: 0;
  background: var(--hot); margin-left: 1.6rem;
}
.ticker-item:hover { color: #f0bb2e; }

@keyframes ticker-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* A moving target is not a clickable one. */
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; width: 100%; overflow-x: auto; }
  .ticker-run:nth-child(2) { display: none; }
}

/* ============================================================
   Category banner

   The listing opens on this instead of on a breadcrumb. It holds no
   photograph, so it takes the full gradient - the same band the hero and the
   trust strip use, which is what ties the three pages together.
   ============================================================ */

.cat-banner {
  background: var(--grad-hero);
  position: relative; overflow: hidden;
  box-shadow: var(--gloss-top);
  padding-block: 2.6rem 2.4rem;
}
.cat-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(58% 120% at 12% 0%, rgba(255, 255, 255, .3), transparent 62%);
}
.cat-banner .wrap { position: relative; z-index: 1; }
.cat-banner h1 {
  color: #fff; margin: 0;
  font-size: clamp(2.4rem, 6.5vw, 5rem); line-height: .86; letter-spacing: -.045em;
}
.cat-banner-count {
  margin: .7rem 0 0; color: rgba(255, 255, 255, .84);
  font-size: .95rem; font-weight: 600;
}

@media (max-width: 560px) {
  .cat-banner { padding-block: 1.8rem 1.6rem; }
}

/* ============================================================
   Phone

   The home page was 5,800px - seven screens - and 2,374px of that was six
   category links, because `.cats` asks for a 176px minimum and a 375px phone
   only offers 335px of content width. auto-fit missed two columns by 33px and
   silently fell back to one, so each category became a full-width card 374px
   tall. Nothing looked broken; the page was just enormous.

   Everything here is density. A phone screen is the whole viewport, so a
   section that would be a glance on a desktop becomes a scroll.
   ============================================================ */

@media (max-width: 560px) {
  /* Circular tiles in a row that scrolls, the way Lenskart's category row
     reads - six categories, about four and a half of them visible, the rest a
     thumb-flick away. `.chips` below already scrolls, so this is a pattern the
     page has rather than a new one.

     The photograph is CONTAINED in the circle, not cropped to it. Their
     circles hold faces, which fit one; a frame is 16:10, and cover-cropping it
     to a circle takes the temples off - the same thing every other rule in
     this file exists to stop. The ring gives the tile its edge instead of a
     tint doing it, so nothing sits behind the product. */
  .cats {
    display: flex; grid-template-columns: none;
    gap: .7rem; overflow-x: auto; scroll-snap-type: x proximity;
    padding: .2rem .1rem .5rem;
    margin-inline: -14px; padding-inline: 14px;   /* bleed, so it reads as a row that continues */
    -webkit-overflow-scrolling: touch;
  }
  .cats::-webkit-scrollbar { display: none; }
  .cat {
    flex: 0 0 auto; width: 84px; scroll-snap-align: start;
    border: 0; background: none; box-shadow: none;
    display: flex; flex-direction: column; align-items: center; gap: .1rem;
  }
  .cat:hover { transform: none; box-shadow: none; }
  .cat .shot-wrap {
    order: 1; width: 84px; height: 84px; aspect-ratio: auto;
    border-radius: 50%; border: 2px solid var(--ink); background: var(--paper);
    display: grid; place-items: center; padding: .55rem; overflow: hidden;
  }
  .cat .shot-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .cat:hover .shot-wrap img { transform: none; }
  .cat > div:first-child { order: 2; padding: 0; text-align: center; }
  .cat b { font-size: .8rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
  /* Only the strapline. The frame count is a span too, and `.cat span` took
     both - the counts are the reason a category row is worth reading. */
  .cat > div span { display: none; }
  /* The count moves under the label as plain text - no rule above it, because
     a border across an 84px column reads as a box that is not there. */
  .cat > .small {
    display: block; order: 3; margin: 0; padding: 0; border-top: 0;
    font-size: .68rem; color: var(--grey); font-weight: 600; text-align: center;
  }

  /* The hero was 618px of an 812px screen with 190px of photograph in it. */
  .slide .wrap { padding-block: 1.4rem; gap: .5rem; }
  .slide h2 { font-size: clamp(2.1rem, 11vw, 3rem); }
  .slide p { margin-top: .6rem; font-size: .94rem; }
  .slide .btn-hero { margin-top: 1.1rem; padding: .8rem 1.7rem; }
  .slide-copy { padding-bottom: 1.25rem; }
  .slide-media img { max-height: 150px; }

  /* Four promises stacked is a screen of its own. */
  .promises .wrap { grid-template-columns: 1fr 1fr; gap: .9rem; padding-block: 1.25rem; }
  .promise .ic { width: 26px; height: 26px; font-size: .82rem; }
  .promise b { font-size: .82rem; }
  .promise span { font-size: .74rem; }

  /* The assistant bar is fixed full-width on a phone, so without this the
     last row of products and the top of the footer sit underneath it. */
  body { padding-bottom: 4rem; }

  .section { margin: 1.75rem 0; }
  .shape-band { margin: 1.75rem calc(50% - 50vw); }
  .section-head { margin-bottom: .75rem; }
  .site-foot { padding: 1.75rem 0 1.5rem; margin-top: 2rem; }
  .site-foot .cols { gap: 1.1rem; }
}

/* ---------- import history ---------- */
/* Skipped/failed counts read as a warning without needing a second hue: they
   are the only part of a run summary anyone has to act on. */
.run-warn { color: #c0343f; font-weight: 700; }
.nowrap { white-space: nowrap; }

/* A provenance cell can hold a filename, and a hashed one has no break
   opportunity at all. Content should never be able to set the page width. */
.spec td { overflow-wrap: anywhere; }

/* ============================================================
   Mobile navigation

   Below 900px the gender links and About were `display: none` with nothing to
   open them: Men, Unisex, Women and About were simply unreachable on a phone,
   on a shop whose orders arrive over WhatsApp. This is the menu that was
   missing, plus the search field that only existed in the listing sidebar.
   ============================================================ */

.nav-toggle {
  display: none;                      /* desktop has the links inline */
  width: 44px; height: 44px; flex: none;   /* a real 44px target, not 23px */
  align-items: center; justify-content: center;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 0;
  cursor: pointer; padding: 0; margin-left: .2rem;
}
.nav-bars { display: grid; gap: 4px; width: 20px; }
.nav-bars i { display: block; height: 3px; background: var(--ink); transition: transform .16s ease, opacity .16s ease; }
.nav-open .nav-toggle { background: var(--ink); }
.nav-open .nav-bars i { background: var(--paper); }
/* Bars fold into a cross: top down, bottom up, middle out. */
.nav-open .nav-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-bars i:nth-child(2) { opacity: 0; }
.nav-open .nav-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-panel { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  /* Open until the script says otherwise — a failed nav.js leaves every link
     reachable rather than sealed behind a button that does nothing. */
  .nav-panel {
    display: block;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 16px 0 -8px rgba(0, 0, 0, .06);
    padding: .5rem 20px 1rem;
  }
  .js-nav .nav-panel { display: none; }
  .js-nav.nav-open .nav-panel { display: block; }

  .nav-panel a {
    display: block; text-decoration: none; color: var(--ink);
    font-weight: 900; font-stretch: 112%; font-size: 1.35rem; letter-spacing: -.03em;
    padding: .7rem 0; border-bottom: 1px solid var(--hair);
  }
  .nav-panel a:last-child { border-bottom: 0; }
  .nav-panel a:active { color: var(--blue); }

  .nav-panel-wa {
    margin-top: .6rem; background: var(--grad-blue); color: var(--ink) !important;
    text-align: center; padding: .85rem 1rem !important;
    box-shadow: var(--gloss-top);
  }
}

@media (max-width: 560px) {
  .nav-panel { padding-left: 14px; padding-right: 14px; }
  .nav-panel a { font-size: 1.2rem; padding: .62rem 0; }
}

/* ============================================================
   Phone bar

   Search, then the three ways to deal with the shop.

   Search was a tap inside the menu; it is the primary way through a catalogue
   of this size and is now permanently on screen. The three actions were the
   utility strip - 11px of text, of which a phone showed exactly one, because
   the other two carried `hide-sm`. They are the same three things Lenskart
   puts at the top of its phone view as tappable cards, and the reason that
   view reads better is that they are reachable.
   ============================================================ */

.phone-bar { display: none; }

@media (max-width: 900px) {
  .phone-bar {
    display: block; background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: .7rem 20px .85rem;
  }

  .phone-search { display: flex; gap: .45rem; }
  .phone-search input { flex: 1; min-width: 0; height: 48px; font-size: 16px; }
  .phone-search .btn { flex: none; height: 48px; padding-inline: 1.1rem; }


  /* The strip is desktop-only: on a phone WhatsApp is in the header and the
     showroom is under About in the menu. */
  .utility { display: none; }
}

@media (max-width: 560px) {
  .phone-bar { padding-inline: 14px; }
}

/* ============================================================
   Counter band

   The one idea worth taking from a page running fifty infinite loops: a
   number that counts up says something a static number does not. These are
   the only animated things on this site that carry information.

   White ground and display type, so it reads as part of the catalogue rather
   than as an agency statistic. Not over a photograph - there is not one here.
   ============================================================ */

.tally { border-block: 2px solid var(--ink); background: var(--paper); }
.tally .wrap {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; padding-block: 2.2rem;
}
.tally div { text-align: center; }
.tally b {
  display: block;
  font-weight: 900; font-stretch: 125%;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.04em;
  /* Tabular figures: without them each tick changes the number's width and
     the whole row jitters while it counts. */
  font-variant-numeric: tabular-nums;
}
.tally span {
  display: block; margin-top: .4rem;
  font-size: .82rem; font-weight: 700; color: var(--grey); letter-spacing: -.01em;
}

@media (max-width: 560px) {
  .tally .wrap { grid-template-columns: 1fr; gap: 1.3rem; padding-block: 1.6rem; }
  .tally b { font-size: 2.2rem; }
  .tally span { font-size: .78rem; }
}

/* ============================================================
   Drift

   Small marks that move, in the two bands that hold no product photograph -
   the hero gradient and the trust strip. Transform only: webgetup animates
   `margin-top` and `margin-left` on two of its six keyframes, which forces
   layout and paint on every frame; a transform composites and costs nothing.

   Four elements, not fifty. Off entirely under reduced motion.
   ============================================================ */

@keyframes hc-drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(9px, -7px) rotate(7deg); }
  66%  { transform: translate(-6px, 5px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.drift { position: absolute; z-index: 1; pointer-events: none; display: block; }
.drift i {
  display: block; width: 100%; height: 100%;
  background: #fff; opacity: .34;
}
.drift-sq i { border-radius: 0; }
.drift-ci i { border-radius: 50%; }
.motion .drift { animation: hc-drift 9s ease-in-out infinite; }
.motion .drift-2 { animation-duration: 12s; animation-delay: -3s; }
.motion .drift-3 { animation-duration: 15s; animation-delay: -7s; }

.slide-copy .drift-1 { width: 14px; height: 14px; right: 9%;  top: 18%; }
.slide-copy .drift-2 { width: 9px;  height: 9px;  right: 17%; bottom: 22%; }
.promises .drift-1   { width: 12px; height: 12px; left: 6%;   top: 18%; }
.promises .drift-3   { width: 16px; height: 16px; right: 8%;  bottom: 16%; }

@media (prefers-reduced-motion: reduce) { .drift { display: none; } }
@media (max-width: 900px) { .slide-copy .drift, .promises .drift { display: none; } }

/* ============================================================
   Phone: the home page stops being a catalogue

   Measured against lenskart.com/en-th's mobile build, which is a separate
   site rather than responsive CSS: their whole home page is 2,379px - 2.9
   screens - with 18px section headings and roughly 160px per section.

   This one was 4,130px, and 1,674px of that was twelve full product tiles
   stacked two-up: 41% of the page spent on a sample of the catalogue, on the
   page whose job is to point at the catalogue. Lenskart puts no product grid
   on its mobile home at all; its "#Trending" row is a horizontal scroller.

   So "Available now" becomes a row that scrolls, the way the category and
   shape rows above it already do, with "See all 470" beside the heading for
   anyone who wants the grid.
   ============================================================ */

@media (max-width: 900px) {
  .tiles-row {
    display: flex; grid-template-columns: none;
    gap: .7rem; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: -14px; padding: .2rem 14px .6rem;
    -webkit-overflow-scrolling: touch;
  }
  .tiles-row::-webkit-scrollbar { display: none; }
  .tiles-row .tile { flex: 0 0 auto; width: 174px; scroll-snap-align: start; }
  /* The spec footer is already hidden on phones; at 174px the sub-line goes
     too, or the card is three lines of grey under a 110px photograph. */
  .tiles-row .tile-sub { display: none; }
}

@media (max-width: 560px) {
  /* Section headings at Lenskart's weight-not-size: 19px at 900 beats 25.6px
     at 125% width for a label that introduces a row. The hero keeps the
     display scale - that is where the voice belongs. */
  .section-head h2, .shape-band h2 { font-size: 1.2rem; letter-spacing: -.02em; }
  .section-head { margin-bottom: .55rem; }

  /* Three numbers across rather than stacked. */
  .tally .wrap { grid-template-columns: repeat(3, 1fr); gap: .5rem; padding-block: 1.3rem; }
  .tally b { font-size: 1.5rem; }
  .tally span { font-size: .66rem; line-height: 1.2; }
}

/* ============================================================
   Phone header: one row

   Logo left, actions right, nothing else - the shape lenskart.com uses and
   the shape this had before a rule meant for the admin's seven-item nav
   wrapped the storefront too.

   What was there: the logo alone on the first line, then a 23px text link, a
   40px button and a 44px box left-aligned beneath it, with 105px of empty
   space to their right. Three weights, two rows, 102px tall for what their
   header does in 56.
   ============================================================ */

@media (max-width: 900px) {
  .site-head:not(.admin-head) .wrap {
    flex-wrap: nowrap; height: 60px; padding-block: 0; gap: .5rem;
  }
  .site-head:not(.admin-head) .nav {
    margin-left: auto; width: auto; flex-wrap: nowrap; gap: .5rem;
  }

  /* The only text link in the bar was a third visual weight between a filled
     button and an outlined box, and it duplicates both "All eyeglasses" in
     the menu and "Browse frames" in the bar below. The bar is the brand and
     the two actions; everything else is one tap away. */
  .site-head:not(.admin-head) .nav > a:not(.btn) { display: none; }

  /* Matched heights, so the row reads as a set rather than as three things
     that happen to be adjacent. */
  .site-head:not(.admin-head) .nav .btn,
  .site-head:not(.admin-head) .nav-toggle { height: 40px; }
  .site-head:not(.admin-head) .nav .btn { padding-inline: .9rem; font-size: .86rem; }
  .nav-toggle { width: 40px; }
  .brand img { height: 30px; }
}

@media (max-width: 560px) {
  .site-head:not(.admin-head) .wrap { height: 56px; }
  .brand img { height: 27px; }
}

/* ---------- assistant launcher: the mark ---------- */
/* The artwork is the gold monogram, the same file the header uses. Filtered
   to white it sits on the blue; left as supplied it is the one warm object
   on the page, which is the problem the header fixed two weeks of commits
   ago. */
.bot-launch-mark {
  width: 32px; height: 32px; object-fit: contain;
  filter: brightness(0);
}
/* Top-right, outside the ring, the way a presence dot sits on an avatar. */
.bot-launch .bot-launch-dot {
  position: absolute; top: -3px; right: -3px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 2px var(--gold);
}
.bot.on .bot-launch { display: none; }

@media (max-width: 560px) {
  .bot-launch-mark { width: 27px; height: 27px; }
  /* The launcher is a 52px square in the corner now rather than a full-width
     bar, so the page needs far less room reserved under it. */
  body { padding-bottom: 1.5rem; }
}

/* ============================================================
   Brand lockup, cropped in two

   hc-lockup.png is 578x120. Measured by decoding it rather than by eye:
   the monogram occupies x 0-127 over the full height, the gap runs 127-163,
   and the wordmark occupies x 163-577 with its ink between y 33 and y 85.

   So the wordmark's ink is 53px against the monogram's 120 - 44% - and at a
   34px lockup the words rendered about 14px tall. That ratio is fixed in the
   artwork; scaling the image scales both. Placing the file twice and cropping
   each copy is what lets the wordmark grow on its own, with the client's
   letterforms untouched.

   Every number below is derived from those four measurements. `--m` and `--s`
   are plain scale factors, so one value per breakpoint sets each part.
   ============================================================ */

.brand-mark, .brand-word {
  display: block; flex: none;
  background-image: url("/static/hc-lockup.png");
  background-repeat: no-repeat;
  filter: brightness(0);            /* the artwork is gold; the header is not */
}
.brand-mark {
  --m: .283;                                   /* 34px tall */
  width:  calc(127px * var(--m));
  height: calc(120px * var(--m));
  background-size: calc(578px * var(--m)) auto;
  background-position: 0 0;
}
.brand-word {
  --s: .47;                                    /* ink ~25px, was ~14px */
  width:  calc(414px * var(--s));
  height: calc(120px * var(--s));
  background-size: calc(578px * var(--s)) auto;
  background-position: calc(-163px * var(--s)) 0;
}
.brand { gap: 10px; }          /* 36px artwork gap x .283 */

@media (max-width: 560px) {
  /* The words still grow, but not past the room the row has: at 375px the
     actions take 157px, which leaves about 178 for the brand. */
  .brand-mark { --m: .225; }
  .brand-word { --s: .32; }
  .brand { gap: 8px; }         /* 36 x .225 */
}

/* The admin wordmark is live text with a .leaf square, not this artwork. */
.admin-head .brand-mark, .admin-head .brand-word { display: none; }

/* ---------- promotion badges ---------- */
/* Hot takes the magenta because it is the rarest thing on the page - a frame
   somebody chose by hand. Scarcity drops to black: still present on every tile
   that qualifies, just no longer the loudest, because a stock count is a fact
   about the shelf and a Hot badge is the shop talking. */
.tile-flag.flag-hot { background: var(--grad-hot); box-shadow: var(--gloss-top); }
.tile-flag.flag-new { background: var(--grad-blue); box-shadow: var(--gloss-top); }
.tile-flag.flag-scarce { background: var(--ink); box-shadow: none; }

/* ---------- icons ---------- */
/* Drawn rather than typed. The glyphs these replaced (◎ ✽ ▤ ✦ ◫ ✆ ⌂) were
   whatever the user's font decided: an emoji telephone on some systems, a
   placeholder box on others, and never the 2px square-capped weight the
   borders beside them are drawn at. `currentColor` means they invert with
   their container - black on white, white on the gradient strip. */
.ico { display: block; flex: none; }
.promise .ic .ico { width: 20px; height: 20px; }

/* ============================================================
   Admin product list on a phone

   Nine columns into 375px. `.data { overflow-x: auto }` made the table scroll
   inside itself, which keeps the page narrow but slides the identifying
   columns off-screen while the rows stay put - so you cannot tell which
   product a row belongs to without scrolling each one sideways. The audit
   filed that as broken, and it is the page the camera-upload flow sends
   people to from a phone.

   Same answer the storefront uses: below 900px the table is a list of cards.
   The markup is untouched, so the bulk checkboxes and the form still work -
   only the display changes.
   ============================================================ */

@media (max-width: 900px) {
  table.data { display: block; overflow-x: visible; }
  table.data thead { display: none; }
  table.data tbody, table.data tr, table.data td { display: block; }

  table.data tr {
    display: grid;
    grid-template-columns: 22px 58px 1fr auto;
    grid-template-areas:
      "chk img sku    sku"
      "chk img name   name"
      "chk img colour colour"
      "chk img price  stock"
      "sta sta sta    sta";
    gap: 0 .6rem;
    align-items: center;
    border: 1px solid var(--hair);
    padding: .55rem .6rem;
    margin-bottom: .5rem;
  }
  table.data tr:hover td { background: none; }
  table.data td { border-bottom: 0; padding: 0; line-height: 1.35; }

  table.data td:nth-child(1) { grid-area: chk; }
  table.data td:nth-child(2) { grid-area: img; width: 58px; }
  .data td:nth-child(2) img { width: 58px; height: 44px; }
  table.data td:nth-child(3) { grid-area: sku; font-size: .76rem; }
  table.data td:nth-child(4) { grid-area: name; font-weight: 800; font-size: .95rem; }
  table.data td:nth-child(5) { grid-area: colour; color: var(--grey); font-size: .8rem; }
  table.data td:nth-child(6) { grid-area: stock; text-align: right; font-size: .78rem; color: var(--grey); }
  /* MRP goes: the struck price is a storefront device, and nobody decides
     anything from it on this screen. "Sells at" stays. */
  table.data td:nth-child(7) { display: none; }
  table.data td:nth-child(8) { grid-area: price; font-weight: 700; font-size: .88rem; }
  table.data td:nth-child(9) { grid-area: sta; margin-top: .35rem; }

  /* A bare "12" in a card has no column header above it any more. */
  table.data td:nth-child(6)::after { content: " in stock"; }

  /* The empty-state row is a single cell and must not inherit the grid. */
  table.data tr:has(td[colspan]) { display: block; }
  table.data td[colspan] { display: block; padding: .8rem; }
}

/* ============================================================
   Gold and black

   The logo is gold, so the logo is shown as supplied rather than flattened to
   black, and gold becomes the accent. Two rules carry the whole theme:
   gold fills always take black type (white on #e0a506 is 2:1), and gold as
   text on white uses the darkened --blue (#8a6500). Product photographs stay
   on white - the frame-colour rule above is unchanged.
   ============================================================ */
.brand img, .admin-head .brand img, .brand-mark, .brand-word, .bot-launch-mark { filter: none; }

/* The launcher is the gold mark on black - on a gold button the mark vanishes. */
.bot-launch { background: var(--ink); box-shadow: 0 0 0 2px var(--gold), 4px 4px 0 var(--ink); }

.btn-primary,
.btn-primary:focus-visible {
  background: var(--grad-blue); border-color: #c08c04; color: var(--ink);
}
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.admin-head .brand .leaf { background: var(--gold); }

/* Black bands: the gold is the highlight, the white is the reading text. */
.slide .kicker { color: var(--gold); opacity: 1; }
.slide .btn-hero { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.slide .btn-hero:hover { background: transparent; color: var(--gold); }
.promises .promise .ic { color: var(--gold); border-color: rgba(224, 165, 6, .5); background: rgba(224, 165, 6, .1); }
.slide-copy::after, .promises::after, .cat-banner::after {
  background: radial-gradient(60% 120% at 14% 0%, rgba(224, 165, 6, .16), transparent 64%);
}

/* The gold ticker strip takes black type and black separators. */
.ticker-item { color: var(--ink); }
.ticker-item::after { background: var(--ink); }
.ticker-item:hover { color: #ffffff; }

.tile-flag.flag-new { color: var(--ink); }
.bot-launch .bot-launch-dot { background: var(--gold); box-shadow: 0 0 0 2px var(--ink); }

/* A supplied photo of a person fills the category well edge to edge; a frame
   photo stays centred and contained, as before. */
.cat .shot-wrap.is-person { padding: 0; background: var(--tint); }
.cat .shot-wrap.is-person img {
  width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover;
}

/* ============================================================
   Phone shopping flow

   Pictures first, controls on demand. On a phone the listing used to open on
   three screens of checkboxes; the product page put its one action below the
   photos. These rules move the controls out of the way and keep the action
   in reach. Everything here is inside the phone breakpoint except the price
   tiles and the shape photos, which work at every width.
   ============================================================ */

/* Shop by price: four tiles, the amount set loud. */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.price-tile {
  display: flex; flex-direction: column; gap: .1rem; padding: 1.1rem 1rem;
  background: var(--ink); color: #fff; text-decoration: none;
  border: 2px solid var(--ink); transition: background .14s ease, color .14s ease;
}
.price-tile span { font-size: .8rem; font-weight: 700; color: var(--gold); }
.price-tile b { font-size: 1.5rem; font-weight: 900; font-stretch: 125%; letter-spacing: -.03em; line-height: 1.05; }
.price-tile em { font-style: normal; font-size: .78rem; color: rgba(255, 255, 255, .7); margin-top: .3rem; }
.price-tile:hover { background: var(--gold); color: var(--ink); }
.price-tile:hover span, .price-tile:hover em { color: var(--ink); }

/* Shape chips carry a real frame. */
.chip.chip-photo { display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 132px; }
.chip.chip-photo img { width: 104px; height: 52px; object-fit: contain; }

/* Phone-only pieces stay hidden on desktop. */
.who, .list-bar, .sheet-head, .sheet-foot, .sheet-scrim, .swipe, .buy-bar { display: none; }

@media (max-width: 900px) {
  /* Price tiles become one swipeable row, like the shape row below them. */
  .prices {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 40%;
    overflow-x: auto; scrollbar-width: none; gap: .6rem;
  }
  .prices::-webkit-scrollbar { display: none; }
  .price-tile { padding: .9rem .8rem; }
  .price-tile b { font-size: 1.25rem; }

  /* Who are you shopping for? */
  .who { display: block; margin: 0 0 1.2rem; }
  .who h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
  .who-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
  .who-tile { text-decoration: none; color: var(--ink); text-align: center; }
  .who-shot {
    display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden;
    background: var(--paper); border: 1px solid var(--hair); padding: .35rem;
  }
  .who-shot img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .who-shot.is-person { padding: 0; background: var(--tint); }
  .who-shot.is-person img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
  .who-tile b { display: block; margin-top: .35rem; font-size: .8rem; font-weight: 700; }

  /* The bar that opens the sheet, pinned under the header while you scroll. */
  .list-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    position: sticky; top: 68px; z-index: 25;
    margin: 0 -20px 1rem; padding: .6rem 20px;
    background: var(--paper); border-bottom: 1px solid var(--hair);
  }
  .list-bar span { font-size: .9rem; color: var(--grey); }
  .list-bar b { color: var(--ink); }

  /* The sidebar becomes a sheet. */
  .listing .side {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 90;
    max-height: 86vh; overflow-y: auto; overscroll-behavior: contain;
    border: 0; border-top: 2px solid var(--ink);
    transform: translateY(105%); transition: transform .25s cubic-bezier(.22,.8,.3,1);
  }
  body.sheet-open .listing .side { transform: none; }
  body.sheet-open { overflow: hidden; }
  .sheet-scrim { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(0, 0, 0, .45); }
  .sheet-scrim[hidden] { display: none; }
  .sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 2; background: var(--paper);
    padding: .9rem 1rem; border-bottom: 1px solid var(--hair);
  }
  .sheet-head b { font-size: 1.05rem; }
  .sheet-x { border: 0; background: none; font-size: 1.8rem; line-height: 1; padding: 0 .25rem; cursor: pointer; color: var(--ink); }
  .sheet-foot {
    display: block; position: sticky; bottom: 0; z-index: 2;
    padding: .8rem 1rem; background: var(--paper); border-top: 1px solid var(--hair);
  }
  .sheet-foot .btn { width: 100%; }
  /* The header search already covers this on a phone. */
  .listing .side .searchrow { display: none; }

  /* Product photos: swipe, with dots. */
  .gallery .main, .gallery .thumbs { display: none; }
  .swipe { display: block; position: relative; margin: 0 -20px; }
  .swipe-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .swipe-track::-webkit-scrollbar { display: none; }
  .swipe-track img {
    flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: contain;
    scroll-snap-align: center; background: var(--paper); padding: 1rem;
  }
  .swipe-dots { display: flex; justify-content: center; gap: .4rem; padding: .3rem 0 .2rem; }
  .swipe-dots i { width: 7px; height: 7px; background: var(--hair); }
  .swipe-dots i.on { background: var(--ink); width: 18px; }

  /* Price and WhatsApp, always in reach. */
  .buy-bar {
    display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: .7rem 14px calc(.7rem + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 2px solid var(--ink);
  }
  .buy-price b { display: block; font-size: 1.25rem; font-weight: 900; line-height: 1.1; }
  .buy-price s { font-size: .8rem; color: var(--grey); }
  .buy-bar .btn { flex: none; padding: .8rem 1.1rem; }
  body:has(.buy-bar) { padding-bottom: 76px; }
  /* The chat button sits above the bar instead of on top of it. */
  body:has(.buy-bar) .bot { bottom: 88px; }
}

@media (max-width: 560px) {
  .list-bar { top: 58px; }
}

/* ---------- hero float on phones ----------
   On a phone the photograph sits directly under the dark copy block, so the
   desktop float (14px up, with a tilt) lifted its white ground over the
   block's bottom edge on every cycle. Here the drift is 6px, straight up and
   down, and the media keeps 8px of clear space above the photo to drift into,
   so the photograph never reaches the copy block. */
@keyframes hc-float-sm {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (max-width: 900px) {
  .slide-media { padding-top: 8px; }
  .motion .slide-media img { animation-name: hc-float-sm; }
}

/* ---------- shape ticker reads as links ----------
   Every shape in the strip opens that shape's frames, but plain moving caps
   did not look clickable. A fixed black label says what the strip is for,
   and the shape under the pointer becomes a black chip with underlined gold
   type, the same pair the primary button uses on hover. */
.ticker { display: flex; align-items: stretch; }
.ticker-view { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.ticker-label {
  flex: none; display: flex; align-items: center; gap: .45rem;
  padding: 0 1.25rem; background: var(--ink); color: var(--gold);
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; position: relative; z-index: 1;
  box-shadow: 8px 0 14px -6px rgba(0, 0, 0, .45);
}
.ticker-label .tl-arrow { font-size: 1rem; letter-spacing: 0; }
.ticker-item { cursor: pointer; border-radius: 4px; transition: color .2s ease, background-color .2s ease; }
.ticker-item:hover, .ticker-item:focus-visible { background: var(--ink); color: var(--gold); }
.ticker-item:hover span, .ticker-item:focus-visible span {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
@media (max-width: 560px) {
  .ticker-label { padding: 0 .8rem; font-size: .7rem; }
}

/* On a phone a moving link is hard to tap and there is no hover to reveal
   it, so the strip stops and the shapes become outlined buttons in a row you
   swipe. The label stacks onto two lines to leave room for them. */
@media (max-width: 900px) {
  .ticker-label { padding: 0 .85rem; font-size: .68rem; line-height: 1.25; white-space: normal; }
  .ticker-label .tl-text { width: 4.4rem; }
  .ticker-view { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ticker-view::-webkit-scrollbar { display: none; }
  .ticker-track { animation: none; padding: .55rem .5rem; }
  .ticker-run:nth-child(2) { display: none; }
  .ticker-item {
    padding: .45rem .8rem; margin-right: .5rem; gap: .4rem;
    border: 1.5px solid var(--ink); border-radius: 999px; background: rgba(255, 255, 255, .22);
  }
  .ticker-item::after { content: none; }
  .ticker-item span { font-size: .72rem; }
  .ticker-item:active { background: var(--ink); color: var(--gold); }
}

/* ============================================================
   Phone polish

   A pass over the phone layout at 375px: products sooner on the first
   screen, one of each action instead of two, rows that line up with their
   headings, and tap areas of about 40px however small the thing drawn is.
   ============================================================ */

/* Search button and WhatsApp icon: header parts that exist only on phones. */
.search-toggle { display: none; }
.head-wa-icon { display: none; }
@media (max-width: 900px) {
  .search-toggle {
    display: inline-flex; width: 40px; height: 40px; flex: none;
    align-items: center; justify-content: center; padding: 0; cursor: pointer;
    background: var(--paper); border: 2px solid var(--ink); border-radius: 0;
  }
  .search-toggle svg { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
  .search-toggle[aria-expanded="true"] { background: var(--ink); }
  .search-toggle[aria-expanded="true"] svg { stroke: var(--paper); }
  .nav-toggle { width: 40px; height: 40px; }

  /* The bar folds away once nav.js is running; a search page opens it. */
  .phone-bar.js-fold:not(.is-open) { display: none; }
}
/* A 375px phone cannot fit the logo, three 40px buttons and the word
   WhatsApp, so the word becomes the WhatsApp glyph there. */
@media (max-width: 560px) {
  .site-head .nav .head-wa { width: 40px; height: 40px; min-width: 0; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; }
  .head-wa-text { display: none; }
  .head-wa-icon { display: block; flex: none; width: 22px !important; height: 22px !important; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
  .head-wa-icon path:last-child { fill: var(--ink); stroke: none; }
}

/* Dims the page under the open menu. It is the header's own layer, under
   the panel and starting below the header bar. */
@media (max-width: 900px) {
  .site-head.nav-open::before {
    content: ""; position: fixed; left: 0; right: 0; bottom: 0; top: 68px;
    background: rgba(0, 0, 0, .5); z-index: -1;
  }
}
@media (max-width: 560px) {
  .site-head.nav-open::before { top: 58px; }
}

@media (max-width: 900px) {
  /* 1. The hero: a shorter photograph with less white around it, so the
     categories start on the first screen. */
  .slide .wrap { gap: .25rem; padding-block: 1rem .4rem; }
  .slide-media img { max-height: 118px; }
  .slide-copy { padding-bottom: 1.4rem; }

  /* 3. Product page: the bar at the foot carries the WhatsApp button. */
  .pdp-wa { display: none; }

  /* 4. Frames grid: the photograph takes the card's width. The top padding
     stays clear of the corner flag and the heart. */
  .tiles .tile-shot { aspect-ratio: auto; padding: 1.7rem .3rem .35rem; }
  .tiles .tile-shot img { height: auto; max-height: 100px; }
  .tile-body { padding: .3rem .7rem .7rem; }
  .tile-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* 5. Swipe rows start on the same 20px line as their headings. Snapping
     used to pull the first item to the screen edge, past the padding. */
  .cats, .tiles-row {
    margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px;
  }

  /* 6. Tap areas of about 40px around small controls, drawn the same size. */
  .car-dots { bottom: 22px; gap: .2rem; }
  .car-dots button {
    height: 24px; width: 34px;
    background: linear-gradient(rgba(255, 255, 255, .42), rgba(255, 255, 255, .42)) center / 26px 4px no-repeat;
  }
  .car-dots button.on {
    background: linear-gradient(#fff, #fff) center / 26px 4px no-repeat;
  }
  .tile-colours a { position: relative; }
  .tile-colours a::after { content: ""; position: absolute; inset: -11px -3px; }
  .tile-save::after { content: ""; position: absolute; inset: -6px; }
  .section-head a { display: inline-block; padding-block: .55rem; margin-block: -.55rem; }

  /* 8. Product details collapse into the same drawer as the size guide. */
  .spec-details .spec { margin-top: .6rem; }
}
/* On a computer the details drawer is open, and reads as the table it was. */
@media (min-width: 901px) {
  .spec-details { border: 0; padding: 0; background: none; }
  .spec-details > summary { display: none; }
}

/* ============================================================
   Soft and glossy (client direction, Nov 2026)

   Three changes after a side-by-side with the big optical chains on a phone:

   1. Type. Archivo at wdth 125 / wght 900 in capitals read as a poster and
      shouted on a 375px screen. Plus Jakarta Sans at normal width, 700-800
      for headings, sentence case in the copy.
   2. Finish. Square corners and the hard 4px black offset are replaced by
      rounded corners, soft layered shadows and a lit gold gradient on the
      buttons. The frame-colour rule is unchanged: product photographs still
      sit on plain white, and no gradient touches one.
   3. The phone banner. Copy and photograph sit side by side in one short
      band instead of stacking, so it takes about a quarter of the first
      screen rather than over half, and the categories show without a scroll.
   ============================================================ */
:root {
  --display: "Plus Jakarta Sans", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r: 12px;
  --r-lg: 16px;
  --hair: #e7e4dc;
  --lift:   0 1px 2px rgba(20, 14, 0, .05), 0 4px 14px rgba(20, 14, 0, .06);
  --lift-h: 0 2px 4px rgba(20, 14, 0, .07), 0 14px 32px rgba(20, 14, 0, .12);
  --gloss-top: inset 0 1px 0 rgba(255, 255, 255, .6);
  --glow-gold: 0 2px 6px rgba(192, 140, 4, .28), 0 8px 20px rgba(192, 140, 4, .18);
}

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 800; font-stretch: 100%; line-height: 1.12; letter-spacing: -.02em; }
.brand, .tile-name, .price-tile b { font-stretch: 100%; letter-spacing: -.01em; }
.tile-name { font-weight: 800; }
.slide h2 { font-weight: 800; font-stretch: 100%; line-height: 1.04; letter-spacing: -.025em; }
.utility, .ticker-item { letter-spacing: .01em; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--hair); box-shadow: 0 2px 14px rgba(20, 14, 0, .05); }

/* The header's icon buttons and the assistant launcher were drawn squares
   with a black rule; they follow the buttons. */
.search-toggle, .nav-toggle { border-radius: 999px; border: 1px solid var(--hair); box-shadow: var(--lift); }
.searchbar input, .searchbar button { border-radius: 999px; }
.bot-launch { border-radius: 18px; box-shadow: 0 0 0 2px var(--gold), var(--lift-h); }

/* Drawn black rules give way to hairlines and shade: the stats strip, the
   phone menu, the sheets and bars that rise from the foot of the screen. */
.tally { border-block: 1px solid var(--hair); background: linear-gradient(180deg, #fff 0%, #fbf8f0 100%); }
.car-arrow { border-radius: 999px; }
@media (max-width: 900px) {
  .nav-panel { border-bottom: 1px solid var(--hair); box-shadow: 0 18px 32px rgba(20, 14, 0, .12); }
  .phone-bar, .buy-bar { border-top: 1px solid var(--hair); box-shadow: 0 -6px 20px rgba(20, 14, 0, .08); }
  .listing .side { border-top: 1px solid var(--hair); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 30px rgba(20, 14, 0, .16); }
}

/* ---------- buttons: pills, lit gold ---------- */
.btn, .btn-primary, .slide .btn-hero { border-radius: 999px; }
.btn { box-shadow: var(--gloss-top), var(--lift); }
.btn:hover { box-shadow: var(--gloss-top), var(--lift-h); transform: translateY(-1px); }
.btn-primary, .btn-primary:focus-visible, .slide .btn-hero {
  background: var(--grad-gold); border-color: #d09a05; color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(120, 85, 0, .25), var(--glow-gold);
}
.btn-primary:hover, .slide .btn-hero:hover {
  background: linear-gradient(180deg, #f6c94a 0%, #e8ad10 55%, #c99206 100%);
  border-color: #d09a05; color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 10px rgba(192, 140, 4, .32), 0 14px 28px rgba(192, 140, 4, .22);
}

/* ---------- cards: rounded, softly lifted ---------- */
.tile, .cat, .chip, .panel, .stat, .side, .filters, .price-tile {
  border-radius: var(--r-lg); border-color: var(--hair);
}
.tile, .cat, .chip { box-shadow: var(--lift); }
.tile:hover, .cat:hover, .chip:hover, .panel:hover { box-shadow: var(--lift-h); }
.tile:hover { transform: translateY(-4px); }
.tile-shot { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.tile-flag { border-radius: 999px; }
.price-tile {
  overflow: hidden; border-color: transparent;
  background: linear-gradient(160deg, #1c1608 0%, #000 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), var(--lift);
}
.price-tile:hover { background: var(--grad-gold); box-shadow: var(--glow-gold); }

/* ---------- the phone banner ---------- */
@media (max-width: 900px) {
  .slide .wrap {
    grid-template-columns: 1.15fr .85fr; gap: .75rem;
    padding-block: 0; min-height: 0; align-items: center;
  }
  .slide-copy { padding: 1.15rem .25rem 1.15rem 0; }
  .slide-copy::before, .slide-copy::after { top: -1000px; bottom: -1000px; right: -.375rem; }
  .slide .kicker { font-size: .75rem; }
  .slide h2 { font-size: clamp(1.35rem, 5.6vw, 2rem); margin-top: .25rem; }
  .slide p { font-size: .8rem; margin-top: .4rem; }
  .slide .btn-hero { margin-top: .75rem; padding: .5rem 1rem; font-size: .82rem; }
  .slide-media { padding-top: 0; }
  .slide-media img { max-height: 112px; }
  .car-dots { bottom: .45rem; }
}
@media (max-width: 560px) {
  .slide p { display: none; }
}
