/* D'Girl Hairs — styles
   Mobile-first. Breakpoints: 40em (tablet), 64em (desktop).
   When you change this file, bump ?v= in index.html and 404.html so browsers fetch the new copy.

   Direction (see DESIGN.md): warm, proud, straight-talking — a mall hair stall in Uyo.
   The page and controls stay quiet (warm cream and espresso). Colour lives in the hair:
   the hero photo, product photos and the shade swatches. Hibiscus marks WhatsApp actions only.
   Signature: hair shade codes (1B, T1/27, 613) set in IBM Plex Mono.

   Redesign pass: unslop by Damir Sokolovsky (@heydamir), CC BY 4.0. */

/* ───────────── Fonts (self-hosted, see scripts/fetch-fonts.mjs) ───────────── */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-roman.v1.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic.v1.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit.v1.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-500.v1.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ───────────── Tokens ───────────── */
:root {
  /* Palette — one warm neutral ramp, plus the brand accent */
  --espresso: #22140D;        /* primary text, dark surface */
  --cocoa: #3A2519;           /* raised surface on dark */
  --ink-2: #5E4A3E;           /* secondary text */
  --ink-3: #7B6A5E;           /* muted text and meta — only on page and card */
  --page: #F7F2EA;            /* page background */
  --card: #FDFBF7;            /* cards */
  --raised: #EFE8DD;          /* raised panels, alternate sections */
  --hibiscus: #C8312A;        /* WhatsApp buttons (cream text, 5:1) */
  --hibiscus-ink: #A8261F;    /* hibiscus as text on light (6.6:1) */
  --hibiscus-deep: #9E2420;   /* pressed / hover */
  --cream: #F7F2EA;           /* text on dark */
  --cream-2: rgb(247 242 234 / 0.78);
  --cream-3: rgb(247 242 234 / 0.62);
  --hairline: rgb(34 20 13 / 0.1);
  --hairline-dark: rgb(247 242 234 / 0.12);
  --paper: #FFFFFF;           /* behind supplier colour charts (shot on white) */

  /* Semantic — light (default) */
  --surface: var(--page);
  --surface-card: var(--card);
  --text: var(--espresso);
  --text-2: var(--ink-2);
  --text-3: var(--ink-3);
  --line: var(--hairline);
  --line-strong: var(--ink-3);       /* borders that identify a control (4.6:1) */
  --focus: var(--espresso);
  --btn-2-bg: var(--card);
  --btn-2-text: var(--espresso);
  --btn-2-hover: var(--raised);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;   /* h1, h2 and the logo only */
  --font-body: "Outfit", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --text-xs: 0.75rem;     /* 12 — mono meta, shade codes */
  --text-sm: 0.875rem;    /* 14 — secondary text, captions, small buttons */
  --text-base: 1rem;      /* 16 — body, buttons */
  --text-md: 1.125rem;    /* 18 — hero subhead, lead lines */
  --text-lg: 1.25rem;     /* 20 — card and list titles */
  --text-heading: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);   /* 30 → 40 */
  --text-display: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem);     /* 40 → 72 */
  --leading-tight: 1.06;
  --leading-snug: 1.3;
  --leading-body: 1.6;

  /* Space — 4px grid */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 3rem + 4vw, 112px);
  --wrap: 1200px;
  --tap: 44px;
  --float-clearance: 104px;

  /* Shape */
  --r-tag: 6px;
  --r-control: 10px;
  --r-card: 16px;
  --r-panel: 20px;
  --r-arch: 999px 999px var(--r-card) var(--r-card);

  /* Depth (light theme: small, neutral) */
  --shadow-sm: 0 1px 2px rgb(34 20 13 / 0.06);
  --shadow-float: 0 8px 24px rgb(34 20 13 / 0.12);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-enter: 400ms;
}

/* The one dark band (custom orders) and the footer */
.dark {
  --surface: var(--espresso);
  --surface-card: var(--cocoa);
  --text: var(--cream);
  --text-2: var(--cream-2);
  --text-3: var(--cream-3);
  --line: var(--hairline-dark);
  --line-strong: var(--cream-3);
  --focus: var(--cream);
  --btn-2-bg: transparent;
  --btn-2-text: var(--cream);
  --btn-2-hover: var(--hairline-dark);
}
.raised { --surface: var(--raised); --text-3: var(--ink-2); }   /* muted text is too faint on raised */
.dark, .raised { background: var(--surface); color: var(--text); }

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--text);
  font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: var(--leading-tight); letter-spacing: -0.02em; text-wrap: balance; }
h3 { margin: 0; font-size: var(--text-lg); font-weight: 500; line-height: var(--leading-snug); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
code { font-family: var(--font-mono); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: none; }
.skip-link {
  position: absolute; left: var(--s-4); top: -64px; z-index: 100;
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-4);
  background: var(--espresso); color: var(--cream); border-radius: var(--r-control);
}
.skip-link:focus { top: var(--s-4); }

/* ───────────── Buttons ─────────────
   .btn--wa      WhatsApp actions — the only hibiscus on the page
   .btn--quiet   everything else: card surface, hairline, primary text
   .btn--sm      44px, in cards and the header */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5);
  border: 1px solid transparent; border-radius: var(--r-control);
  font: 500 var(--text-base) / 1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn--sm { min-height: var(--tap); padding: 0 var(--s-4); font-size: var(--text-sm); }
.btn--block { width: 100%; }
.btn--wa { background: var(--hibiscus); color: var(--cream); }
.btn--wa:active { background: var(--hibiscus-deep); }
.btn--quiet { background: var(--btn-2-bg); color: var(--btn-2-text); border-color: var(--line-strong); }
.btn--quiet:active { background: var(--btn-2-hover); }

/* ───────────── Shared type ───────────── */
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-10); max-width: 40rem; }
.section-title { font-size: var(--text-heading); }
.section-intro { color: var(--text-2); max-width: 36rem; }

/* ───────────── Signature: shade codes ───────────── */
.code {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 var(--s-2);
  border: 1px solid var(--line-strong); border-radius: var(--r-tag);
  font: 500 var(--text-xs) / 1 var(--font-mono); letter-spacing: 0.01em; color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ───────────── Points (numbered list: custom steps, why, care) ───────────── */
.points { display: grid; gap: var(--s-6); list-style: none; }
.points li { display: grid; gap: var(--s-2); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.points__num { font: 500 var(--text-xs) / 1 var(--font-mono); color: var(--text-3); }
.points p { color: var(--text-2); max-width: 32rem; }
.points a { color: var(--text); }

/* ───────────── Top bar + header ───────────── */
.topbar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--s-2);
  margin: 0; padding: var(--s-2) var(--gutter); font-size: var(--text-sm); color: var(--text-2); text-align: center;
}
.topbar__sep { color: var(--text-3); }
@media (max-width: 29.99em) { .topbar { flex-direction: column; } .topbar__sep { display: none; } }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s-4); padding-block: var(--s-2); }
.logo {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none; margin: 0;
}
.site-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav ul { display: flex; gap: var(--s-5); list-style: none; white-space: nowrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--text-sm); color: var(--text-2); text-decoration: none; transition: color var(--dur-fast) var(--ease); }

/* ───────────── Hero ───────────── */
.hero__grid { display: grid; gap: var(--s-10); padding-block: var(--s-12) var(--s-16); }
.hero__copy { display: grid; gap: var(--s-5); align-content: center; }
.hero__title { font-size: var(--text-display); letter-spacing: -0.03em; max-width: 12ch; }
.hero__title em { font-style: italic; color: var(--hibiscus-ink); }
.hero__lead { font-size: var(--text-md); line-height: 1.6; color: var(--text-2); max-width: 32rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }
.hero__media { position: relative; margin: 0; justify-self: center; width: min(100%, 30rem); }
.hero__photo { display: block; overflow: hidden; border-radius: var(--r-arch); background: var(--raised); aspect-ratio: 4 / 5; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__tag {
  position: absolute; left: var(--s-4); right: var(--s-4); bottom: var(--s-4);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-control);
  background: var(--card); box-shadow: var(--shadow-float); font-size: var(--text-sm);
}
.hero__tag-price { font: 500 var(--text-sm) / 1 var(--font-mono); font-variant-numeric: tabular-nums; }

/* ───────────── Categories ───────────── */
.cat-list { display: grid; gap: var(--s-3); }
.cat {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 18px; gap: var(--s-4); align-items: center;
  padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface-card); color: var(--text); text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.cat__thumb { width: 64px; height: 80px; border-radius: 6px; object-fit: cover; background: var(--raised); }
.cat__title { display: block; font-size: var(--text-lg); font-weight: 500; }
.cat__desc { display: block; font-size: var(--text-sm); color: var(--text-2); }
.cat .icon { color: var(--text-3); }

/* ───────────── Shop / product grid ───────────── */
.filters { display: flex; align-items: center; margin-bottom: var(--s-6); }
.filters__buttons {
  display: flex; gap: var(--s-2); min-width: 0; overflow-x: auto; scrollbar-width: none;
  margin-right: calc(var(--gutter) * -1); padding: var(--s-1) var(--gutter) var(--s-1) var(--s-1);
}
.filters__buttons::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; min-height: var(--tap); padding: 0 var(--s-4); border-radius: var(--r-control);
  border: 1px solid var(--line-strong); background: var(--card); color: var(--text);
  font: 500 var(--text-sm) / 1 var(--font-body); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.filters button[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.card { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); }
.card__inner { display: flex; flex-direction: column; height: 100%; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--raised); }
.card__media img, .card__media video { width: 100%; height: 100%; object-fit: cover; }
.card__media video { background: var(--espresso); }
.card__media img { cursor: zoom-in; }
.card__open { all: unset; cursor: pointer; }
.card__open:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* Product view (dialog) */
.pview { width: min(100% - 2 * var(--s-4), 960px); max-height: calc(100dvh - 2 * var(--s-4)); padding: 0; border: 0; border-radius: var(--r-panel); background: var(--card); color: var(--espresso); box-shadow: var(--shadow-float); }
.pview::backdrop { background: rgb(34 20 13 / 0.6); }
.pview__inner { position: relative; display: grid; }
.pview__media { background: var(--raised); }
.pview__media img, .pview__media video { display: block; width: 100%; max-height: 70dvh; object-fit: contain; background: var(--raised); }
.pview__body { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-6); }
.pview__title { font-size: var(--text-heading); }
.pview__note { color: var(--ink-2); }
.pview__shades { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.pview__meta { display: grid; gap: var(--s-2); margin: 0; padding-top: var(--s-3); border-top: 1px solid var(--hairline); }
.pview__meta div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.pview__meta dt { font-size: var(--text-sm); color: var(--ink-3); }
.pview__meta dd { margin: 0; }
.pview__close { position: absolute; top: var(--s-3); right: var(--s-3); width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r-control); background: var(--card); color: var(--espresso); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
@media (min-width: 48em) {
  .pview__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .pview__media img, .pview__media video { height: 100%; max-height: 80dvh; }
}

.card__video {
  position: absolute; left: var(--s-2); bottom: var(--s-2);
  display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap); padding: 0 var(--s-3);
  border-radius: var(--r-control); background: var(--card); color: var(--espresso); box-shadow: var(--shadow-float);
  font-size: var(--text-sm); font-weight: 500; text-decoration: none; white-space: nowrap;
}
.card__video .icon { width: 16px; height: 16px; }
.card__video-size { font: 500 var(--text-xs) / 1 var(--font-mono); color: var(--ink-3); }
.card__body { flex: 1; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3); }
.card__cat { font-size: var(--text-xs); color: var(--text-3); }
.card__title { font-size: var(--text-base); }
.card__note { font-size: var(--text-xs); line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__shades { display: flex; flex-wrap: wrap; gap: var(--s-1); align-items: center; }
.card__shades-more { font: 500 var(--text-xs) / 1 var(--font-mono); color: var(--text-3); }
.card__meta { display: grid; gap: var(--s-1); margin: auto 0 var(--s-1); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.card__meta dd { margin: 0; }
.card__lengths { font: 500 var(--text-xs) / 1.4 var(--font-mono); color: var(--text-3); }
.card__price { font-size: var(--text-lg); font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.2; }
.card__price small { font-size: var(--text-xs); font-weight: 400; color: var(--text-3); }

.custom-note {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4);
  margin-top: var(--s-6); padding: var(--s-5) var(--s-6); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card);
}
.custom-note p { font-size: var(--text-md); }

/* ───────────── Shades (the colourful moment) ───────────── */
.swatches {
  display: flex; gap: var(--s-4); list-style: none; overflow-x: auto; scrollbar-width: thin;
  margin: 0 calc(var(--gutter) * -1) var(--s-12); padding: var(--s-2) var(--gutter) var(--s-4);
}
.swatch { flex: none; width: 72px; display: grid; justify-items: start; gap: var(--s-2); }
.swatch__strand {
  display: block; width: 100%; height: 160px; border-radius: 36px 36px 12px 12px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), var(--shadow-sm);
}
.swatch__name { font-size: var(--text-xs); line-height: 1.3; color: var(--text-2); }
/* Approximate colours of the standard hair codes — screens vary, the charts below are exact */
.swatch--1b    { background: linear-gradient(180deg, #3a302b, #1c1714); }
.swatch--2     { background: linear-gradient(180deg, #4a372c, #2a1d16); }
.swatch--4     { background: linear-gradient(180deg, #6a4a36, #432c1f); }
.swatch--33    { background: linear-gradient(180deg, #7d3c2a, #52241a); }
.swatch--99j   { background: linear-gradient(180deg, #6a2638, #3f1220); }
.swatch--bug   { background: linear-gradient(180deg, #8f2636, #5c1422); }
.swatch--350   { background: linear-gradient(180deg, #c4683a, #93421f); }
.swatch--30    { background: linear-gradient(180deg, #a8673f, #7a4428); }
.swatch--27    { background: linear-gradient(180deg, #d39a5c, #a8703a); }
.swatch--613   { background: linear-gradient(180deg, #f2e4be, #d9c18a); }
.swatch--1b-27 { background: linear-gradient(180deg, #1c1714 0%, #2c211b 40%, #b07a42 75%, #d39a5c 100%); }
.swatch--1b-bug{ background: linear-gradient(180deg, #1c1714 0%, #2a1a1b 40%, #7a1d2c 75%, #8f2636 100%); }

.shade-grid { display: grid; gap: var(--s-4); }
.shade { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--card); }
.shade__chart { display: block; aspect-ratio: 1 / 1; padding: var(--s-4); background: var(--paper); border-bottom: 1px solid var(--line); }
.shade__chart img { width: 100%; height: 100%; object-fit: contain; }
.shade__body { flex: 1; display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); }
.shade__note { font: 500 var(--text-xs) / 1.4 var(--font-mono); color: var(--text-3); }
.shade__body .btn { margin-top: var(--s-2); justify-self: start; }

/* ───────────── Splits (custom, why, length guide, visit) ───────────── */
.split { display: grid; gap: var(--s-10); }
.split__head { display: grid; gap: var(--s-4); align-content: start; }
.split__head .btn { justify-self: start; margin-top: var(--s-2); }
.why__statement { font-size: var(--text-heading); max-width: 18ch; }

/* ───────────── Length guide (one chart, neutral bars) ───────────── */
.length-list { display: grid; gap: var(--s-2); list-style: none; }
.length-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 104px; gap: var(--s-3); align-items: center; min-height: 28px; }
.length-list__inch { font: 500 var(--text-sm) / 1 var(--font-mono); font-variant-numeric: tabular-nums; }
.length-list__bar { display: block; height: 8px; border-radius: 4px; background: var(--card); overflow: hidden; }
.length-list__bar span { display: block; height: 100%; border-radius: 4px; background: var(--ink-2); }
.length-list__spot { font-size: var(--text-sm); color: var(--text-2); }
.length-list li:nth-child(1) .length-list__bar span { width: 33%; }
.length-list li:nth-child(2) .length-list__bar span { width: 40%; }
.length-list li:nth-child(3) .length-list__bar span { width: 47%; }
.length-list li:nth-child(4) .length-list__bar span { width: 53%; }
.length-list li:nth-child(5) .length-list__bar span { width: 60%; }
.length-list li:nth-child(6) .length-list__bar span { width: 67%; }
.length-list li:nth-child(7) .length-list__bar span { width: 73%; }
.length-list li:nth-child(8) .length-list__bar span { width: 80%; }
.length-list li:nth-child(9) .length-list__bar span { width: 87%; }
.length-list li:nth-child(10) .length-list__bar span { width: 93%; }
.length-list li:nth-child(11) .length-list__bar span { width: 100%; }
.lengths__note { font-size: var(--text-sm); color: var(--text-2); }

/* ───────────── Reviews invitation ───────────── */
.review-invite { display: grid; gap: var(--s-4); justify-items: start; padding: clamp(32px, 5vw, 56px); border-radius: var(--r-panel); }
.review-invite__mark { font-family: var(--font-display); font-size: 4rem; line-height: 0.5; margin-top: var(--s-4); color: var(--ink-2); }
.review-invite p { color: var(--text-2); max-width: 32rem; }
.review-invite .btn { margin-top: var(--s-2); }

/* ───────────── Visit ───────────── */
.visit { border-top: 1px solid var(--line); }
.visit__photo { margin-top: var(--s-4); width: min(100%, 24rem); aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-card); background: var(--raised); }
.visit__photo img { width: 100%; height: 100%; object-fit: cover; }
.visit__list { display: grid; gap: var(--s-5); margin: 0; }
.visit__list dt { font-size: var(--text-sm); color: var(--text-3); }
.visit__list dd { margin: var(--s-1) 0 0; font-size: var(--text-md); }
.visit__list a { display: inline-flex; align-items: center; min-height: var(--tap); }
.visit__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }

/* ───────────── Footer ───────────── */
.site-footer { padding-block: var(--s-16) var(--float-clearance); }
.site-footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-8); }
.site-footer__tag { color: var(--text-2); }
.site-footer__links { list-style: none; display: flex; flex-wrap: wrap; column-gap: var(--s-6); }
.site-footer__links a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text-2); }
.site-footer__small { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--text-3); }
.site-footer__small a { display: inline-flex; align-items: center; min-height: var(--tap); }
.credit { color: var(--text-3); }

/* ───────────── Floating WhatsApp button ─────────────
   Floats over light and dark sections: palette colours and a two-tone focus ring. */
.wa-float {
  position: fixed; z-index: 50;
  right: max(var(--s-4), env(safe-area-inset-right)); bottom: max(var(--s-4), env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border-radius: 24px;
  background: var(--hibiscus); color: var(--cream); font-weight: 500; text-decoration: none;
  box-shadow: var(--shadow-float); -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.wa-float:active { background: var(--hibiscus-deep); }
.wa-float:focus-visible { outline: 3px solid var(--espresso); outline-offset: 2px; box-shadow: 0 0 0 7px var(--cream); }

/* ───────────── Hover (mouse only) ───────────── */
@media (hover: hover) {
  .btn--wa:hover, .wa-float:hover { background: var(--hibiscus-deep); }
  .btn--quiet:hover { background: var(--btn-2-hover); }
  .site-nav a:hover { color: var(--text); }
  .cat:hover { border-color: var(--line-strong); }
  .filters button:hover { background: var(--raised); }
  .filters button[aria-pressed="true"]:hover { background: var(--cocoa); }
  .card { transition: border-color var(--dur-fast) var(--ease); }
  .card:hover { border-color: var(--line-strong); }
}

/* ───────────── Tablet ───────────── */
@media (min-width: 40em) {
  .cat-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
  .card__body { padding: var(--s-4); }
  .card__note { font-size: var(--text-sm); }
  .shade-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .points--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-8); }
  .visit__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ───────────── Desktop ───────────── */
@media (min-width: 64em) {
  .site-header__inner { flex-wrap: nowrap; min-height: 64px; }
  .site-nav { order: 0; width: auto; margin: 0; padding: 0; overflow: visible; }
  .site-nav ul { gap: var(--s-6); }
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-16); align-items: center; padding-block: var(--s-16) var(--s-20); }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-16); }
  .points--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-6); }
  .swatches { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .site-footer { padding-bottom: var(--s-16); }
}

/* ───────────── Motion: one entrance, nothing loops ───────────── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .rise { animation: rise var(--dur-enter) var(--ease) both; }
  .rise-1 { animation-delay: 0ms; }
  .rise-2 { animation-delay: 50ms; }
  .rise-3 { animation-delay: 100ms; }
  .rise-4 { animation-delay: 150ms; }
  .btn:active, .wa-float:active { transform: scale(0.98); }
}

/* ───────────── 404 page ───────────── */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; }
.notfound .wrap { display: grid; gap: var(--s-5); justify-items: start; padding-block: var(--s-16); }
