/* ==========================================================================
   THE BEAUTY CARTEL: components
   ========================================================================== */

/* --------------------------------------------------------------------------
   header: a capsule floating over the sheet
   The frames below are cut square; the chrome that floats above them is not
   part of the sheet, so it is allowed to be round. Everything sits in one
   group around the wordmark instead of being pushed out to the gutters.
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  inset: clamp(10px, 1.4vw, 16px) 0 auto 0;
  z-index: var(--z-header);
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}

.header__inner {
  pointer-events: auto;
  /* inline-grid with matched 1fr side tracks: the capsule still sizes to its
     content, but the two side groups are forced equal, so the wordmark lands
     on the capsule's true centre rather than wherever the links leave it */
  display: inline-grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: auto;
  max-width: 100%;
  padding: 7px 9px;
  border-radius: 999px;
  background:
    linear-gradient(to bottom, rgba(30, 30, 34, 0.82), rgba(10, 10, 12, 0.88));
  border: 1px solid rgba(244, 241, 234, 0.09);
  box-shadow:
    0 12px 34px -12px rgba(0, 0, 0, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(244, 241, 234, 0.07);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  backdrop-filter: blur(20px) saturate(1.15);
  transition: background var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease);
}

.header.is-stuck .header__inner {
  background:
    linear-gradient(to bottom, rgba(26, 26, 30, 0.94), rgba(8, 8, 10, 0.96));
  border-color: rgba(244, 241, 234, 0.13);
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
  /* source order keeps the brand link first for screen readers; `order`
     puts it between the two link groups visually */
  grid-column: 2;
  grid-row: 1;
  padding-inline: var(--s6);
}

/* the mark is square (Nov 2026 logo), so it stands a little taller than the
   old wide one to keep the lettering the same size */
.brand img {
  height: 48px;
  width: auto;
  transition: opacity var(--dur-2) var(--ease);
}

.brand:hover img { opacity: 0.78; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav--left {
  grid-column: 1;
  grid-row: 1;
  /* stretch + space-between across a track that already matches the other
     side: three items each way means every gap in the bar is identical */
  justify-self: stretch;
  justify-content: space-between;
}

/* the active and hover states are soft capsules, in keeping with the bar */
.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}

.nav a:hover { color: var(--ink-1); background: rgba(244, 241, 234, 0.07); }

.nav a[aria-current="page"] {
  color: var(--ink-1);
  background: rgba(244, 241, 234, 0.11);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  grid-column: 3;
  grid-row: 1;
  justify-self: stretch;
  justify-content: space-between;
}

.header__rule {
  display: none;
}

.iconbtn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink-3);
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}

.iconbtn:hover { color: var(--ink-1); background: rgba(244, 241, 234, 0.08); }

.iconbtn__count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  transform: scale(0);
  transition: transform var(--dur-2) var(--ease-expo);
}

.iconbtn__count.is-on { transform: scale(1); }

.iconbtn__count.is-bumping { animation: bump 520ms var(--ease-expo); }

@keyframes bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.5); background: var(--ink-1); }
  100% { transform: scale(1); }
}

.burger { display: none; }

/* --------------------------------------------------------------------------
   mobile bottom bar: the phone is the design, not the breakpoint
   -------------------------------------------------------------------------- */

.mobilebar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-mobilebar);
  display: none;
  height: calc(var(--mobilebar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(7, 7, 8, 0.95);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line-1);
}

.mobilebar a, .mobilebar button {
  flex: 1 1 0;
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--dur-1) var(--ease);
}

.mobilebar a[aria-current="page"] { color: var(--accent); }
.mobilebar a:active, .mobilebar button:active { color: var(--ink-1); }

.mobilebar .iconbtn__count { top: 2px; right: calc(50% - 20px); }

/* --------------------------------------------------------------------------
   buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink-1);
  --btn-bd: var(--line-3);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 46px;
  padding: 0 var(--s6);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition:
    background var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease),
    transform var(--dur-1) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  --btn-bg: var(--accent-fill);
  --btn-fg: var(--on-accent);
  --btn-bd: var(--accent-edge);
  box-shadow: var(--shadow-lit);
}

.btn--primary:hover {
  --btn-bg: var(--accent-fill-lit);
  --btn-bd: var(--accent-edge);
}

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-1); --btn-bd: var(--line-3); }
.btn--ghost:hover { --btn-bd: var(--ink-1); background: rgba(244, 241, 234, 0.06); }

.btn--solid { --btn-bg: var(--ink-1); --btn-fg: var(--void); --btn-bd: var(--ink-1); }
.btn--solid:hover { --btn-bg: #fff; }

.btn--danger { --btn-fg: var(--safelight-lit); --btn-bd: rgba(224, 65, 44, 0.45); }
.btn--danger:hover { background: var(--safelight-wash); --btn-bd: var(--safelight-lit); }

.btn--sm { min-height: 36px; padding: 0 var(--s4); font-size: var(--t-2xs); }
.btn--lg { min-height: 56px; padding: 0 var(--s7); font-size: var(--t-sm); }
.btn--block { display: flex; width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.btn.is-loading { color: transparent; pointer-events: none; }

.btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  color: var(--btn-fg);
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.linkbtn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 0;
  transition: gap var(--dur-2) var(--ease), color var(--dur-1) var(--ease);
}

.linkbtn:hover { gap: var(--s4); color: var(--accent-lit); }

/* --------------------------------------------------------------------------
   the frame: one product, one cell of the contact sheet
   -------------------------------------------------------------------------- */

.sheet {
  display: grid;
  /* Fixed column counts rather than auto-fit. A page of the shop is 48
     products, the home rail is 8 and the related row is 4; every count below
     divides all three, so a full page always ends on a full row. Five is
     skipped deliberately: it leaves 48 three short. */
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
}

/* A filtered result can still be any number at all, so the hairline rules are
   drawn by the frames rather than by a grid background showing through the
   gaps. An empty cell at the end of the last row then paints nothing instead
   of a pale block that reads as a missing card. Outline, not border, so it
   costs no layout and lands in the 1px gap. */
.frame { outline: 1px solid var(--line-1); }

@media (min-width: 640px)  { .sheet { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .sheet { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1700px) { .sheet { grid-template-columns: repeat(6, 1fr); } }

/* A rail carries a fixed handful (8 on the home page, 4 under a product), so
   it only ever uses counts those divide by. Three or six would strand two. */
.sheet--rail { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .sheet--rail { grid-template-columns: repeat(4, 1fr); } }

/* the light table: the frame under the pointer raises its backlight
   while its neighbours fall away */
.sheet:hover .frame { opacity: 0.4; }
.sheet:hover .frame:hover,
.sheet:focus-within .frame:focus-within { opacity: 1; }

/* the unlit frames lose their light, not just their opacity */
.sheet:hover .frame .frame__shot { filter: brightness(0.55) saturate(0.6); }
.sheet:hover .frame:hover .frame__shot,
.sheet:focus-within .frame:focus-within .frame__shot { filter: none; }

.frame {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--glass);
  transition:
    background var(--dur-3) var(--ease),
    opacity var(--dur-3) var(--ease),
    transform var(--dur-3) var(--ease-expo),
    box-shadow var(--dur-3) var(--ease);
}

.frame:hover, .frame:focus-within {
  background: var(--glass-lit);
  box-shadow: var(--shadow-2);
  transform: translateY(-4px);
  z-index: 2;
}

/* The Fixed Scale Rule, restated for the real catalog. These are packshots:
   96 photographs in 120 are square and 87% already sit on pure white. A 4:5
   box cropped a fifth off every square one, which is why products were
   arriving cut. The box is now square and the image is contained, so nothing
   is lost, and the tile takes the photographs' own white so a product meets
   no edge. Scale and ground still never vary, which is what the rule was
   protecting. */
.frame__shot {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  transition: filter var(--dur-3) var(--ease);
}

.frame__shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(9px, 5%, 20px);
  transition: transform var(--dur-4) var(--ease-expo);
}

/* The tile is white in both themes, so these are fixed values rather than
   tokens. Champagne alone would vanish into the white, so "just dropped" is
   a champagne plate held by a hairline, and "low" is the inverse: a black
   plate with champagne type. */
.frame__shot .flag { background: #0D0D0F; color: #F4F1EA; }
.frame__shot .flag--new { background: #EBD7BD; color: #0D0D0F; box-shadow: inset 0 0 0 1px rgba(13, 13, 15, 0.16); }
.frame__shot .flag--out { background: #A3291C; color: #fff; }
.frame__shot .flag--low {
  background: #0D0D0F;
  color: #EBD7BD;
  border-color: transparent;
}

.frame:hover .frame__shot img { transform: scale(1.035); }

.frame__num {
  position: absolute;
  top: 9px;
  left: 10px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  /* The product tile is white in both themes, so everything sitting on it is
     fixed rather than themed. Reading these off --ink would turn the number
     into a grey block on a grey plate the moment the lights came up. */
  color: rgba(244, 241, 234, 0.92);
  background: rgba(5, 5, 5, 0.6);
  padding: 2px 6px;
  z-index: 2;
}

.frame__flags {
  position: absolute;
  top: 9px;
  right: 10px;
  display: grid;
  gap: 4px;
  justify-items: end;
  z-index: 2;
}

.flag {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px;
  background: var(--ink-1);
  color: var(--void);
}

.flag--new { background: var(--accent-fill); color: var(--on-accent); }
.flag--out { background: var(--safelight); color: #fff; }
.flag--low { background: transparent; color: var(--accent); border: 1px solid var(--line-accent); }

.frame__body {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s4) var(--s4) var(--s5);
  flex: 1;
}

/* sits under the price row as meta, never as a kicker above the heading */
.frame__cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-4);
}

/* The card's own action, so a bag can be filled from the grid without opening
   anything. Ghost rather than champagne: a page carries up to 48 of these and the
   build keeps one accent control in a viewport. It sits at the foot of the card
   and pins there, so the buttons line up across a row whatever the names do. */
.frame__add {
  width: 100%;
  margin-top: auto;
  padding-top: 0;
  justify-content: center;
}

.frame__body > .frame__cat { margin-bottom: var(--s3); }

@media (pointer: coarse) {
  .frame__add { min-height: 44px; }
}

.frame__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink-1);
}

.frame__name a::after { content: ""; position: absolute; inset: 0; z-index: 3; }

.frame__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px var(--s3);
  /* two frames across on a phone is a narrow card: the stock note drops to
     its own line rather than breaking "4 in stock" across two */
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--s3);
}

.frame__name { margin-bottom: var(--s2); }

.price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}

.price--was {
  color: var(--ink-4);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: var(--s2);
  font-size: var(--t-xs);
}

/* hard figures on the object itself, never a vague badge */
.stockline {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.stockline--low { color: var(--accent); }
.stockline--out { color: var(--safelight-lit); }

/* the theme toggle shows the room it would take you to, not the one you are
   standing in: a sun while the lights are off, a moon while they are on */
.themeico { display: none; }
.themeico--sun { display: grid; place-items: center; }
:root[data-theme="light"] .themeico--sun { display: none; }
:root[data-theme="light"] .themeico--moon { display: grid; place-items: center; }

/* grease pencil: the select ring and the reject cross */
.grease {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
}

.frame.is-picked .grease--ring { opacity: 1; }

/* Sold out: the product drains of colour and sits back, so the eye passes
   over it without anything being scrawled across the photograph. The flag
   and the price stay exactly where they are on every other card. */
.frame.is-out .frame__shot img {
  filter: grayscale(1);
  opacity: 0.42;
}

.frame.is-out .frame__name a { color: var(--ink-3); }
.frame.is-out .price { color: var(--ink-3); }

/* under the pointer it comes back enough to read properly */
@media (hover: hover) {
  .frame.is-out:hover .frame__shot img { filter: grayscale(0.55); opacity: 0.72; }
}

.grease svg { width: 100%; height: 100%; }

.frame__save {
  position: absolute;
  bottom: var(--s3);
  right: var(--s3);
  z-index: 4;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: rgba(244, 241, 234, 0.9);
  background: rgba(5, 5, 5, 0.55);
  border: 1px solid rgba(244, 241, 234, 0.14);
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--dur-2) var(--ease);
}

.frame:hover .frame__save,
.frame__save:focus-visible,
.frame.is-picked .frame__save { opacity: 1; transform: none; }

/* on the white tile in both themes, so the deep champagne, not the pale */
.frame__save:hover { color: #715533; border-color: rgba(113, 85, 51, 0.45); }
.frame.is-picked .frame__save { color: #715533; }
.frame.is-picked .frame__save .ico { fill: #715533; }

/* --------------------------------------------------------------------------
   empty states: the roll that is not yet developed
   -------------------------------------------------------------------------- */

.empty {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 46vw, 480px);
  padding: var(--s8) var(--s5);
  background: var(--glass-deep);
  overflow: hidden;
  isolation: isolate;
}

/* the sheet of unexposed frames behind the message */
.empty__sheet {
  position: absolute;
  inset: -1px;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 1px;
  align-content: start;
  background: var(--line-1);
  opacity: 0.55;
}

.empty__cell {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(244, 241, 234, 0.016) 0%, transparent 55%),
    var(--void);
}

.empty__cell span {
  position: absolute;
  top: 7px;
  left: 8px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 234, 0.12);
}

.empty__card {
  position: relative;
  max-width: 460px;
  text-align: center;
  padding: var(--s7) var(--s6);
  background: rgba(5, 5, 5, 0.82);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 1px solid var(--line-1);
  --bracket-inset: -1px;
  --bracket-size: 22px;
  --bracket-color: var(--line-accent);
}

.empty__card h3 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.04;
}

.empty__card p {
  color: var(--ink-3);
  font-size: var(--t-sm);
  max-width: 40ch;
  margin-inline: auto;
}

.empty__card .btn { margin-top: var(--s5); }

/* The mark goes round the heading the way a grease pencil rings one frame,
   not round the whole sheet. An <svg> is a replaced element, so it needs an
   explicit width and height here: with height:auto it ignores `bottom` and
   collapses to its intrinsic size. */
.empty__mark {
  position: relative;
  display: inline-block;
  padding: 10px 30px 14px;
  margin-bottom: var(--s3);
}

.empty__ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--accent);
  opacity: 0.58;
}

/* --------------------------------------------------------------------------
   forms
   -------------------------------------------------------------------------- */

.field { display: grid; gap: var(--s2); }

.field > label,
.fieldset > legend {
  font-size: var(--t-2xs);
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-3);
}

.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  background: var(--glass-deep);
  color: var(--ink-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}

.textarea { min-height: 110px; padding-top: 12px; resize: vertical; line-height: 1.5; }

/* iPhones zoom the whole page into any field set smaller than 16px, and
   leave it zoomed; on a phone every field is 16px so that never happens */
@media (max-width: 760px) {
  .input, .select, .textarea { font-size: 16px; }
}

.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #0E0E10;
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.select {
  appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%238C8880' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--safelight-lit);
  box-shadow: 0 0 0 3px var(--safelight-wash);
}

.field__err {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: var(--t-xs);
  color: var(--safelight-lit);
}

.field.has-err .field__err { display: flex; }

.field__hint { font-size: var(--t-xs); color: var(--ink-3); }

/* choice tiles: fulfilment, payment, shades, slots */
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4);
  background: var(--glass);
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: all var(--dur-2) var(--ease);
}

.choice:hover { border-color: var(--line-3); background: var(--glass-lit); }

.choice input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.choice__mark {
  flex: none;
  width: 18px; height: 18px;
  border: 1px solid var(--line-3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all var(--dur-2) var(--ease);
}

.choice__mark::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform var(--dur-2) var(--ease-expo);
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.choice:has(input:checked) .choice__mark { border-color: var(--accent); }
.choice:has(input:checked) .choice__mark::after { transform: scale(1); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent-lit); outline-offset: 2px; }

.choice__text { display: grid; gap: 2px; }
.choice__title { font-size: var(--t-sm); font-weight: 600; color: var(--ink-1); }
.choice__sub { font-size: var(--t-xs); color: var(--ink-3); }
.choice__price { margin-left: auto; }

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  cursor: pointer;
  font-size: var(--t-sm);
  color: var(--ink-2);
}

.check input {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

/* --------------------------------------------------------------------------
   cart drawer
   -------------------------------------------------------------------------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-3) var(--ease), visibility var(--dur-3);
}

.overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: var(--z-drawer);
  width: min(430px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--table);
  border-left: 1px solid var(--line-2);
  transform: translateX(100%);
  transition: transform var(--dur-3) var(--ease-expo);
  box-shadow: var(--shadow-3);
}

.drawer.is-open { transform: none; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5);
  border-bottom: 1px solid var(--line-1);
  flex: none;
}

.drawer__head h2 { font-size: 1.4rem; }

.drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s5);
}

.drawer__foot {
  flex: none;
  padding: var(--s5);
  padding-bottom: calc(var(--s5) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-1);
  background: var(--glass);
  display: grid;
  gap: var(--s4);
}

.lineitem {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: var(--s4);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line-1);
}

.lineitem:first-child { padding-top: 0; }

.lineitem__shot {
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line-1);
  overflow: hidden;
}

.lineitem__shot img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.lineitem__name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink-1);
}

.lineitem__meta { font-size: var(--t-xs); color: var(--ink-3); }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  height: 32px;
}

.qty button {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}

.qty button:hover { color: var(--ink-1); background: rgba(244, 241, 234, 0.06); }
.qty button:disabled { color: var(--ink-4); cursor: not-allowed; }

.qty output {
  min-width: 30px;
  text-align: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t-xs);
  color: var(--ink-1);
}

.totals { display: grid; gap: var(--s2); }

.totals__row {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  font-size: var(--t-sm);
  color: var(--ink-2);
}

.totals__row--grand {
  padding-top: var(--s3);
  margin-top: var(--s2);
  border-top: 1px solid var(--line-2);
  font-size: var(--t-md);
  color: var(--ink-1);
}

.totals__row--grand .price { font-size: var(--t-md); }

/* --------------------------------------------------------------------------
   search overlay
   -------------------------------------------------------------------------- */

.searchpane {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-drawer);
  background: rgba(8, 8, 9, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-2);
  transform: translateY(-100%);
  transition: transform var(--dur-3) var(--ease-expo);
  padding: var(--s6) 0 var(--s7);
  box-shadow: var(--shadow-3);
}

.searchpane.is-open { transform: none; }

.searchpane__field {
  display: flex;
  align-items: center;
  gap: var(--s4);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: var(--s4);
}

.searchpane input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--ink-1);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: var(--track-display);
}

.searchpane input::placeholder { color: var(--ink-4); }

/* --------------------------------------------------------------------------
   toasts
   -------------------------------------------------------------------------- */

.toasts {
  position: fixed;
  z-index: var(--z-toast);
  bottom: calc(var(--s5) + env(safe-area-inset-bottom, 0px));
  right: var(--s5);
  display: grid;
  gap: var(--s2);
  justify-items: end;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--s3);
  max-width: 360px;
  padding: 13px var(--s5) 13px var(--s4);
  background: var(--ink-1);
  color: var(--void);
  font-size: var(--t-sm);
  font-weight: 600;
  box-shadow: var(--shadow-3);
  pointer-events: auto;
  animation: toastin var(--dur-3) var(--ease-expo);
}

.toast--err { background: var(--safelight); color: #fff; }
.toast .ico { stroke-width: 2; }
.toast.is-out { animation: toastout var(--dur-2) var(--ease) forwards; }

@keyframes toastin {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes toastout {
  to { opacity: 0; transform: translateX(20px); }
}

/* --------------------------------------------------------------------------
   the running strip
   Three facts, set in mono caps and travelling slowly across the page. The
   open/closed state is live, so the strip is worth a glance rather than being
   a line of text that never changes. Nothing on it is a link: a moving target
   is a poor one, and the footer carries the same facts standing still.
   -------------------------------------------------------------------------- */

.ticker {
  --tick-gap: clamp(24px, 3.6vw, 52px);
  /* The band is the shop's champagne in both themes, the brightest thing on
     the page after the photographs. Fixed values, not tokens: it is the same
     band on black and on white, with near-black type at 13.2:1. */
  overflow: hidden;
  background: #EBD7BD;
  border-block: 1px solid rgba(13, 13, 15, 0.12);
  color: #0D0D0F;
}

/* the facts arrive and leave rather than hitting a hard edge; the fade is on
   the text only, so the band itself runs edge to edge */
.ticker__window {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerrun 58s linear infinite;
}

/* a reader who wants to finish a line can stop it */
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }

.ticker__run { display: flex; flex: none; }

.ticker__item {
  display: flex;
  align-items: center;
  gap: var(--tick-gap);
  padding-block: 11px;
  padding-inline-end: var(--tick-gap);
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #0D0D0F;
}

/* a frame mark between facts */
.ticker__item::after {
  content: "";
  flex: none;
  width: 4px;
  height: 4px;
  background: #0D0D0F;
  opacity: 0.55;
  transform: rotate(45deg);
}

@keyframes tickerrun {
  to { transform: translate3d(-50%, 0, 0); }
}

/* The strip holds still. Rather than leave a frozen run cut off mid-fact, it
   drops to the three facts on their own, wrapped and fully readable. */
@media (prefers-reduced-motion: reduce) {
  .ticker__window { -webkit-mask-image: none; mask-image: none; }
  .ticker__track { animation: none; width: auto; }
  .ticker__run + .ticker__run { display: none; }

  /* the run is `flex: none` while it travels, so it has to be given a width
     to wrap against once it stops */
  .ticker__run {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: var(--gutter);
  }

  /* nothing is travelling past, so a fact may take two lines rather than
     run off the end of its own */
  .ticker__item {
    white-space: normal;
    text-align: center;
    padding-block: 7px;
  }

  .ticker__item:nth-child(n + 4) { display: none; }
  .ticker__item:nth-child(3) { padding-inline-end: 0; }
  .ticker__item:nth-child(3)::after { display: none; }
}

/* --------------------------------------------------------------------------
   footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  border-top: 1px solid var(--line-1);
  background: var(--pitch);
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: calc(var(--s7) + var(--mobilebar-h));
  margin-top: clamp(56px, 8vw, 120px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(130px, 1fr));
  gap: var(--s8) var(--s6);
}

.footer__brand img { height: 92px; width: auto; margin-bottom: var(--s4); }

.footer h3 {
  font-family: var(--font-sans);
  font-size: var(--t-2xs);
  font-weight: 700;
  letter-spacing: var(--track-wide);
  color: var(--ink-1);
  margin-bottom: var(--s4);
}

.footer ul { display: grid; gap: var(--s3); }

.footer a:not(.social):not(.btn) {
  font-size: var(--t-sm);
  color: var(--ink-3);
  transition: color var(--dur-1) var(--ease);
}

.footer a:not(.social):not(.btn):hover { color: var(--ink-1); }

.footer address {
  font-style: normal;
  font-size: var(--t-sm);
  color: var(--ink-3);
  line-height: 1.7;
}

.socials { display: flex; gap: var(--s2); margin-top: var(--s5); }

.social {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  transition: all var(--dur-2) var(--ease);
}

.social:hover {
  color: var(--void);
  background: var(--ink-1);
  border-color: var(--ink-1);
  transform: translateY(-2px);
}

.social--wa:hover { background: #25D366; border-color: #25D366; color: #06240F; }

.footer__base {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: var(--s5);
  border-top: 1px solid var(--line-1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4) var(--s6);
  align-items: center;
  justify-content: space-between;
  font-size: var(--t-xs);
  color: var(--ink-4);
}

.footer__base .num { color: var(--ink-4); }

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s7) var(--s5); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .brand img { height: 42px; }
  .brand { padding-inline: 0; }
  .nav { display: none; }
  .burger { display: grid; }
  .mobilebar { display: flex; }
  /* full width on a phone, with the wordmark still dead centre */
  .header__inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 6px 10px;
  }
  .header__actions { justify-self: end; }
  /* the bottom bar already carries the bag, so the header keeps only search */
  .header__actions [data-cart],
  .header__rule { display: none; }
  body { padding-bottom: var(--mobilebar-h); }
  .toasts { bottom: calc(var(--mobilebar-h) + var(--s4)); right: var(--s4); left: var(--s4); justify-items: stretch; }
  .toast { max-width: none; }
  /* touch has no real hover: a lingering one must not strand the
     neighbouring frames dimmed. Reset both halves of the effect. */
  .sheet:hover .frame { opacity: 1; }
  .sheet:hover .frame .frame__shot { filter: none; }
  .frame:hover, .frame:focus-within { transform: none; }
  .drawer { width: 100vw; }
}

@media (max-width: 420px) {
  /* The sheet holds two columns right down to the narrowest phone. It used to
     drop to one, which suited a tall 4:5 card but turns a page of 48 square
     frames into 25,000px of scrolling. */
  .footer__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   unexposed frame: a product with no photography yet
   -------------------------------------------------------------------------- */

.shot-blank {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(244, 241, 234, 0.02) 0 2px, transparent 2px 8px),
    var(--void);
  color: rgba(244, 241, 234, 0.15);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
}

.lineitem__shot .shot-blank { font-size: 0.7rem; }

/* --------------------------------------------------------------------------
   sample-data flag: never let demo content pass for real stock
   -------------------------------------------------------------------------- */

.demoflag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: var(--header-h);
  padding: 11px var(--gutter);
  background: var(--safelight);
  color: #fff;
  font-size: var(--t-xs);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.demoflag:hover { background: #BE3020; }

/* the hero clears the header itself, so the bar simply rides above it */
.demoflag + main .hero { min-height: min(92svh, 900px); }
.demoflag + main .pagehead { padding-top: clamp(30px, 4vw, 56px); }

/* --------------------------------------------------------------------------
   touch targets: the accessibility commitment in PRODUCT.md is 44px on touch,
   and inline text links in lists do not reach that on their own
   -------------------------------------------------------------------------- */

@media (pointer: coarse) {
  .footer ul { gap: 0; }

  .footer ul a,
  .crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .linkbtn { min-height: 44px; }

  .filters__opt { padding-block: 9px; }

  .social { width: 46px; height: 46px; }
}

/* --------------------------------------------------------------------------
   services menu under Book
   Opened by :hover and :focus-within, so it works on a keyboard with no JS.
   -------------------------------------------------------------------------- */

.navitem { position: relative; display: inline-flex; }
.navitem > a { display: inline-flex; align-items: center; gap: 5px; }
.navitem > a .ico { transition: transform var(--dur-2) var(--ease); opacity: 0.7; }
.navitem:hover > a .ico, .navitem:focus-within > a .ico { transform: rotate(180deg); opacity: 1; }

.navmenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5;
  display: grid;
  width: 310px;
  padding: var(--s2);
  background: rgba(10, 10, 11, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease-expo), visibility var(--dur-2);
}

.navitem:hover .navmenu,
.navitem:focus-within .navmenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.navmenu a {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-1);
  transition: background var(--dur-1) var(--ease);
}

.navmenu a::after { content: none; }
.navmenu a:hover { background: var(--glass-lit); }

.navmenu__sub {
  font-size: var(--t-xs);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
  line-height: 1.45;
}

.navmenu .chip { font-size: 9px; padding: 1px 5px; vertical-align: 2px; }

/* Shop: shelves as small caps heads, their parts as plain lines beneath */
.navmenu--shop { display: block; width: 400px; }
.navmenu__cols { display: block; columns: 2; column-gap: var(--s2); }
.navmenu__group { display: grid; break-inside: avoid; padding-bottom: var(--s2); }
.navmenu--shop .navmenu__group a { padding: 7px 13px; font-weight: 400; color: var(--ink-2); }
.navmenu--shop .navmenu__group a:hover { color: var(--ink-1); }
.navmenu--shop .navmenu__group .navmenu__head {
  padding-top: 11px;
  font-size: var(--t-2xs);
  font-weight: 700;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-1);
}

.navmenu__all {
  display: flex !important;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  border-top: 1px solid var(--line-1);
  color: var(--accent) !important;
  font-size: var(--t-2xs) !important;
  letter-spacing: var(--track-wide) !important;
  text-transform: uppercase !important;
}

/* --------------------------------------------------------------------------
   mobile menu drawer
   -------------------------------------------------------------------------- */

.drawer--menu { left: 0; right: auto; border-left: 0; border-right: 1px solid var(--line-2); transform: translateX(-100%); }
.drawer--menu.is-open { transform: none; }

.menunav {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s4) var(--s5) calc(var(--s7) + var(--mobilebar-h));
  display: grid;
  align-content: start;
}

.menunav > a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-1);
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink-1);
}

.menunav > a:active { color: var(--accent); }

.menunav__sub {
  font-family: var(--font-sans) !important;
  font-size: var(--t-sm) !important;
  font-weight: 500;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--ink-3) !important;
  padding-left: var(--s4) !important;
}

.menunav__foot { display: grid; gap: var(--s2); margin-top: var(--s6); }
