/* =============================================
   home.css — Homepage (index.html) only
   Loaded AFTER style.css. Everything is scoped to
   body.h-home or prefixed "h-", so other pages are untouched.

   Direction: Stanley 1913's restraint — one typeface at
   400/500 with tight tracking, sentence case, underlined text
   links, rounded image tiles, few sections — in Duafe's
   palette: peach backdrop, oxblood logo, clay comb.
   ============================================= */

/* ─── Familjen Grotesk (variable 400–700), self-hosted ─── */
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/familjen-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/familjen-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.h-home {
  --paper:      #fcf9f5;
  --tile:       #f3ece3;
  --ink:        #1c1613;
  --ink-2:      #6b5d55;   /* 6:1 on paper */
  --line:       rgba(28, 22, 19, 0.12);
  --oxblood:    #4f0d00;   /* logo colour: primary actions */
  --oxblood-hi: #6a1a08;
  --clay:       #d9622b;   /* comb colour: decoration only */
  --clay-ink:   #b3471a;   /* clay darkened to 5:1 for small text */
  --peach:      #fcd5ae;   /* exact backdrop of the 150ml photo */
  --night:      #141518;   /* shadowed edge of the 60ml photo */

  /* Headings: Familjen Grotesk, self-hosted from /fonts (SIL OFL — ours to keep).
     Text: SF Pro via the system stack. Apple's licence forbids embedding SF Pro,
     so Apple devices render the real thing; Windows gets Segoe UI, Android Roboto. */
  --font-text:    -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Familjen Grotesk', var(--font-text);
  --track-text:   -0.016em; /* SF Pro's own text tracking at 14–17px */

  /* Route shared components (cart drawer, toasts, auth modal) to the same text face */
  --font-sans:  var(--font-text);
  --font-serif: var(--font-text);
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 10px;
  --radius-btn: 6px;   /* buttons, controls, badges — Stanley's softly squared corners */

  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-ios:    cubic-bezier(0.32, 0.72, 0, 1);

  /* Zero-mean film grain (tiled SVG noise), blended with overlay */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  background: var(--paper);
}

/* ─── Base ─── */
.h-main,
.h-footer {
  font-family: var(--font-text);
  font-weight: 400;
  letter-spacing: var(--track-text);
  color: var(--ink);
}

.h-wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.h-section { padding-block: clamp(72px, 9vw, 136px); }

.h-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ─── Type ─── */
.h-display,
.h-h2,
.h-tile-name,
.h-free-list li > span,
.h-footer-title,
.h-footer-cols h3 {
  font-family: var(--font-display);
}
.h-display {
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.h-h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.h-sub,
.h-body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}
.h-body-l {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
}
.h-kicker {
  font-size: 15px;
  font-weight: 500;
  color: var(--clay-ink);
  margin-bottom: 10px;
}

/* ─── Buttons ───
   Primary: Stanley's shape — a solid block with softly rounded corners.
   Secondary: the label alone. No fill, no outline, no underline; it keeps
   the button's 48px height so the tap target stays generous. */
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-btn);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s var(--ease-out);
}
.h-btn:active { transform: scale(0.97); }

.h-btn-primary { background: var(--oxblood); color: #fff; }
/* On dark bands, where oxblood would sink into the background */
.h-btn-light { background: var(--peach); color: var(--oxblood); }

.h-btn-secondary {
  padding: 0;
  background: none;
  color: inherit;
  transition: opacity 0.2s ease, transform 0.16s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .h-btn-primary:hover { background: var(--oxblood-hi); }
  .h-btn-light:hover { background: #fde3c8; }
  .h-btn-secondary:hover { opacity: 0.6; }
}

.h-home :focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
}
.h-home .h-ritual :focus-visible,
.h-home .promo-bar :focus-visible { outline-color: var(--peach); }
.h-home .h-footer :focus-visible { outline-color: #fff; }

/* ═══════════════════════════════════════════════
   CHROME — promo bar, header, mobile drawer
═══════════════════════════════════════════════ */
/* Utility bar — Stanley's black strip, in oxblood: rotating messages
   centred, account and support links in the right-hand column */
.h-home { --promo-height: 44px; }

.h-home .promo-bar.h-util {
  display: block;
  background: var(--oxblood);
  color: var(--peach);
}
.h-util-inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 640px) 1fr;
  align-items: center;
  gap: 32px;
  max-width: 1440px;
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.h-util-promo {
  grid-column: 2;
  display: flex;
  align-items: center;
  min-width: 0;
}
.h-home .h-util .promo-slide-wrap {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.h-home .promo-slide {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--peach);
}

/* Prev, next: 32px targets, peach at rest, full peach on hover */
.h-home .promo-nav-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-btn);
  background: none;
  color: rgba(252, 213, 174, 0.6);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, transform 0.16s var(--ease-out);
}
.h-home .promo-nav-btn:active { transform: scale(0.9); }
.h-util-links {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 28px;
  flex: none;
}
.h-util-account,
.h-util-guest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.h-util-guest[hidden],
.h-util-member[hidden] { display: none; }
.h-util-sep { opacity: 0.45; }
.h-util-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--peach);
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .h-home .promo-nav-btn:hover { color: var(--peach); }
  .h-util-link:hover { opacity: 0.7; }
}

/* Below 900px the account/support links move into the drawer and the
   account icon comes back to the header */
@media (max-width: 900px) {
  .h-util-links { display: none; }
  .h-util-inner { grid-template-columns: minmax(0, 1fr); }
  .h-util-promo { grid-column: 1; }
}
@media (min-width: 901px) {
  .h-home #navAccountBtn { display: none; }
}

/* Translucent, Apple-style: the hero's peach glows through as you scroll */
.h-home .site-header {
  background: rgba(252, 249, 245, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.h-home .site-header.header-scrolled { box-shadow: none; }

.h-home .nav-inner {
  max-width: 1440px;
  padding: 0 var(--gutter);
}

.h-home .nav-links a {
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink);
}
/* Underline draws from the left with transform, not width */
.h-home .nav-links a::after {
  bottom: -5px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease-out);
}
.h-home .nav-icon {
  color: var(--ink);
  transition: opacity 0.2s ease, transform 0.16s var(--ease-out);
}
.h-home .nav-icon:hover { color: var(--ink); }
.h-home .nav-icon:active { transform: scale(0.92); }

@media (hover: hover) and (pointer: fine) {
  .h-home .nav-links a:hover::after { transform: scaleX(1); }
  .h-home .nav-icon:hover { opacity: 0.6; }
}

/* Desktop: links sit beside the logo, icons pushed right (Stanley layout) */
@media (min-width: 769px) {
  .h-home .nav-right {
    flex: 1;
    margin-left: 44px;
    justify-content: space-between;
  }
  .h-home .nav-links { gap: 30px; }
}

/* Mobile drawer: big sentence-case links that rise in */
.h-home .nav-mobile {
  top: var(--promo-height);
  background: var(--paper);
}
.h-home .nav-mobile-links { padding: 76px var(--gutter) 24px; }
.h-home .nav-mobile-links a,
.h-home .nav-mobile-links a:first-child {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: none;
  padding: 10px 0;
  border: 0;
}
.h-home .nav-mobile.open .nav-mobile-links a { animation: h-rise 0.5s var(--ease-out) both; }
.h-home .nav-mobile.open .nav-mobile-links a:nth-child(2) { animation-delay: 40ms; }
.h-home .nav-mobile.open .nav-mobile-links a:nth-child(3) { animation-delay: 80ms; }
.h-home .nav-mobile.open .nav-mobile-links a:nth-child(4) { animation-delay: 120ms; }
.h-home .nav-mobile.open .nav-mobile-links a:nth-child(5) { animation-delay: 160ms; }
.h-home .nav-mobile-footer { padding: 24px var(--gutter) 40px; border-top-color: var(--line); }
.h-home .nav-mobile-login,
.h-home .nav-mobile-follow-label {
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.h-home .nav-mobile-follow-label { color: var(--ink-2); }

/* ═══════════════════════════════════════════════
   1. HERO
═══════════════════════════════════════════════ */
.h-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, calc(100svh - var(--nav-height) - var(--promo-height)), 860px);
  background: var(--peach);
  color: var(--oxblood);
  overflow: hidden;
}
/* The product photos are grainy centres pasted onto flat #fcd5ae canvases,
   which leaves a faint square around each bottle. A zero-mean grain over the
   whole surface gives both regions the same texture so the edge disappears.
   (Clean re-exports of the photos are the real fix.) */
.h-hero::after,
.h-tile-media::after,
.h-finder-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grain);
  mix-blend-mode: overlay;
  opacity: 0.16;
}
.h-tile-media::after,
.h-finder-media::after { z-index: 3; }
.h-hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(56px, 8vw, 96px);
}
.h-hero-copy { max-width: min(560px, 48%); }

.h-hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 8.4vw, 128px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-left: -0.04em; /* optical: pulls the F's side bearing flush with the copy below */
}
.h-hero-lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
  color: rgba(79, 13, 0, 0.78);
  max-width: 34ch;
  margin-top: 28px;
}
.h-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 36px;
}

.h-hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 52%;
  z-index: 0;
}
.h-hero-media > img,
.h-hero-media [data-media-slot] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Load: copy rises in a short stagger; the bottle surfaces from the peach */
@keyframes h-rise   { from { opacity: 0; transform: translateY(14px); } }
@keyframes h-fade   { from { opacity: 0; } }
@keyframes h-emerge { from { opacity: 0; transform: scale(1.04); } }

.h-hero-copy > * { animation: h-rise 0.8s var(--ease-out) both; }
.h-hero-copy > :nth-child(2) { animation-delay: 70ms; }
.h-hero-copy > :nth-child(3) { animation-delay: 140ms; }
.h-hero-media > img { animation: h-emerge 1.1s var(--ease-out) 0.1s both; }

/* ═══════════════════════════════════════════════
   2. THE COLLECTION
═══════════════════════════════════════════════ */
.h-collection-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 3fr;
  gap: 40px 32px;
  align-items: start;
}
.h-collection-head,
.h-free-head {
  position: sticky;
  top: calc(var(--promo-height) + var(--nav-height) + 32px);
  display: grid;
  justify-items: start;
  gap: 14px;
}
.h-collection-head .h-btn { margin-top: 10px; }

.h-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.h-tile > a {
  display: block;
  transition: transform 0.16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.h-tile > a:active { transform: scale(0.985); }

.h-tile-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tile);
}
.h-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.h-tile-badge {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  padding: 6px 11px;
  border-radius: var(--radius-btn);
  background: rgba(252, 249, 245, 0.88);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
/* Name over price (Stanley order) — side by side, long names wrap into columns */
.h-tile-meta {
  display: grid;
  gap: 2px;
  padding-top: 14px;
}
.h-tile-name {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.h-tile-price {
  font-size: 15px;
  color: var(--ink-2);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .h-tile > a:hover .h-tile-media img { transform: scale(1.035); }
}

/* ═══════════════════════════════════════════════
   3. FIND YOUR SIZE
═══════════════════════════════════════════════ */
.h-collection + .h-finder { padding-top: 0; }
.h-finder { scroll-margin-top: calc(var(--promo-height) + var(--nav-height)); }

.h-finder-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}

.h-finder-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--peach);
}
/* The incoming photo dissolves in ON TOP of the outgoing one, which stays
   opaque underneath, so dark → peach never dips through a muddy half-state.
   A little blur bridges the two images. */
.h-finder-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.h-finder-media img.is-prev { opacity: 1; z-index: 1; }
.h-finder-media img.is-active {
  opacity: 1;
  z-index: 2;
  animation: h-dissolve 0.45s var(--ease-out) both;
}
.h-finder-media img.is-active.is-static { animation: none; }
@keyframes h-dissolve {
  from { opacity: 0; filter: blur(8px); transform: scale(1.02); }
}

.h-finder-panel { max-width: 480px; }
.h-finder-panel .h-body { margin-top: 14px; }

/* Segmented control: native radios + one sliding thumb */
.h-seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-width: 0;
  margin: 32px 0 0;
  padding: 4px;
  border: 0;
  border-radius: calc(var(--radius-btn) + 4px);
  background: var(--tile);
}
.h-seg-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: var(--radius-btn);
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 22, 19, 0.08), 0 4px 14px rgba(28, 22, 19, 0.06);
  transition: transform 0.32s var(--ease-ios);
}
.h-seg-opt {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}
.h-seg-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.h-seg-opt:has(input:checked) { color: var(--ink); }
.h-seg-opt:has(input:focus-visible) {
  outline: 2px solid var(--oxblood);
  outline-offset: 2px;
}
.h-seg-opt[hidden] { display: none; }

.h-finder-readout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.h-finder-price {
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}
.h-finder-meta {
  font-size: 15px;
  color: var(--ink-2);
  text-align: right;
}

.h-finder-actions {
  display: flex;
  align-items: center;
  gap: 12px 28px;
  margin-top: 24px;
}
.h-btn-wide { flex: 1; height: 52px; }
.h-finder-actions .h-btn-secondary { height: 52px; }

.h-finder-perks {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-2);
}
.h-finder-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.h-finder-perks li::before {
  content: '';
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clay);
}

/* ═══════════════════════════════════════════════
   4. THE RITUAL — dark band
═══════════════════════════════════════════════ */
.h-ritual {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(600px, 56vw, 820px);
  background: var(--night);
  color: #fff;
  overflow: hidden;
}
/* Portrait photo pinned right at full height; its edges fade into the band */
.h-ritual-media {
  position: absolute;
  top: 0;
  bottom: 0;
  right: max(0px, calc((100vw - 1440px) / 2));
  aspect-ratio: 1120 / 1400;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 32%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 32%, #000 88%, transparent);
}
.h-ritual-media > img,
.h-ritual-media [data-media-slot] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.h-ritual-inner { padding-block: clamp(72px, 8vw, 120px); }
.h-ritual-copy { max-width: min(520px, 50%); }
.h-ritual .h-body-l {
  margin-top: 24px;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.72);
}
.h-steps {
  margin: 40px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.h-steps li:last-child { border-bottom: 0; }
.h-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 17px;
  line-height: 1.45;
}
.h-step-n {
  padding-top: 3px;
  font-size: 13px;
  font-weight: 500;
  color: var(--peach);
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════
   5. MADE WITHOUT
═══════════════════════════════════════════════ */
.h-free-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 40px 32px;
  align-items: start;
}
.h-free-list li:last-child { border-bottom: 0; }
.h-free-list li {
  padding: clamp(14px, 2vw, 26px) 0;
  border-bottom: 1px solid var(--line);
}
.h-free-list li > span {
  position: relative;
  display: inline-block;
  font-size: clamp(44px, 6.4vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color 0.35s ease;
}
/* A clay strike draws through each word as it rises past 70% of the
   screen, and the word recedes. Scroll back up past that line and it
   retracts the way it came. home.js toggles .is-struck and sets
   --strike-delay to stagger words that arrive together. Undo is quicker
   than the draw: it answers the scroll, it isn't a reveal. */
.h-free-list li > span::after {
  content: '';
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  top: 55%;
  height: max(3px, 0.055em);
  border-radius: 99px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.h-free-list li.is-struck > span {
  color: var(--ink-2);
  transition: color 0.6s ease var(--strike-delay, 0ms);
}
.h-free-list li.is-struck > span::after {
  transform: scaleX(1);
  transition: transform 0.7s var(--ease-in-out) var(--strike-delay, 0ms);
}

/* ═══════════════════════════════════════════════
   FOOTER — Stanley near-black
═══════════════════════════════════════════════ */
.h-home .h-footer {
  --fg:     #fff;
  --fg-2:   rgba(255, 255, 255, 0.64);
  --fg-rule: rgba(255, 255, 255, 0.14);
  --footer-measure: 460px; /* newsletter field and help disclosure share one width */
  background: #101010;
  color: var(--fg);
  border-top: 0;
  padding: clamp(64px, 7vw, 96px) 0 0;
}
.h-footer-top {
  display: grid;
  /* Same five tracks as the link row, so "Need help?" lines up over "Get in touch" */
  grid-template-columns: repeat(5, 1fr);
  gap: 64px 32px;
  padding-bottom: 72px;
}
.h-footer-news { grid-column: span 3; }
.h-footer-help { grid-column: span 2; }
.h-footer-title {
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.h-footer-copy {
  margin-top: 10px;
  font-size: 16px;
  color: var(--fg-2);
}

/* ─── Newsletter ───
   newsletter.js sets form[data-state] = loading | success | error | invalid.
   The input and the success line share one grid cell and cross-fade in
   place; the button's label morphs with Torph (home.js) while a check
   draws in beside it. */
.h-home .h-news-form {
  display: block; /* style.css makes the shared form a flex row */
  width: 100%;
  max-width: var(--footer-measure);
  min-width: 0;
  margin-top: 28px;
}
.h-news-field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.2s ease;
}
.h-news-form:focus-within .h-news-field { border-bottom-color: var(--fg); }
.h-news-form[data-state="invalid"] .h-news-field,
.h-news-form[data-state="error"] .h-news-field { border-bottom-color: #ff9c8c; }

/* Success: a peach line sweeps across the underline, left to right */
.h-news-field::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--peach);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease-in-out);
}
.h-news-form[data-state="success"] .h-news-field::after { transform: scaleX(1); }

.h-news-field .footer-newsletter-input,
.h-news-done { grid-area: 1 / 1; }
.h-news-field .footer-newsletter-btn { grid-area: 1 / 2; }

.h-home .h-news-field .footer-newsletter-input {
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  color: var(--fg);
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out), filter 0.25s ease;
}
.h-home .h-news-field .footer-newsletter-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.h-home .h-news-field .footer-newsletter-input:focus-visible { outline: none; }
.h-news-form[data-state="loading"] .footer-newsletter-input { opacity: 0.5; }
.h-news-form[data-state="success"] .footer-newsletter-input {
  opacity: 0;
  transform: translateY(-6px);
  filter: blur(4px);
  pointer-events: none;
}

.h-news-done {
  font-size: 17px;
  line-height: 1.3;
  color: var(--fg);
  opacity: 0;
  transform: translateY(6px);
  filter: blur(4px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out), filter 0.35s ease;
}
.h-news-form[data-state="success"] .h-news-done {
  opacity: 1;
  transform: none;
  filter: none;
  transition-delay: 0.12s;
}

.h-home .h-news-field .footer-newsletter-btn {
  display: inline-flex;
  align-items: center;
  height: 48px; /* matches Contact us, so the two footer buttons line up */
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--fg);
  color: #101010;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.16s var(--ease-out);
}
.h-home .h-news-field .footer-newsletter-btn:active { transform: scale(0.97); }
.h-news-form[data-state="loading"] .footer-newsletter-btn { cursor: progress; }
.h-news-form[data-state="loading"] .h-news-label { animation: h-breathe 0.9s ease-in-out infinite alternate; }
.h-news-form[data-state="success"] .footer-newsletter-btn {
  background: var(--peach);
  color: var(--oxblood);
  cursor: default;
}
.h-news-form[data-state="success"] .footer-newsletter-btn:active { transform: none; }

/* The check opens a 16px slot, then its stroke draws (pathLength="1") */
.h-news-check {
  display: grid;
  width: 0;
  margin-right: 0;
  overflow: hidden;
  transition: width 0.35s var(--ease-out), margin-right 0.35s var(--ease-out);
}
.h-news-check path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.4s var(--ease-out) 0.2s;
}
.h-news-form[data-state="success"] .h-news-check { width: 16px; margin-right: 6px; }
.h-news-form[data-state="success"] .h-news-check path { stroke-dashoffset: 0; }

.h-news-msg {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--fg-2);
}
.h-news-msg:empty { display: none; }
.h-news-form[data-state="invalid"] .h-news-msg,
.h-news-form[data-state="error"] .h-news-msg {
  color: #ff9c8c;
  animation: h-msg-in 0.3s var(--ease-out) both;
}
/* Success is said by the line in the field; the status stays for screen readers */
.h-news-form[data-state="success"] .h-news-msg {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.h-news-field.is-shaking { animation: h-shake 0.4s var(--ease-out); }

@keyframes h-shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(1px); }
}
@keyframes h-breathe { to { opacity: 0.55; } }
@keyframes h-msg-in  { from { opacity: 0; transform: translateY(-4px); } }

@media (hover: hover) and (pointer: fine) {
  .h-home .h-news-field .footer-newsletter-btn:hover { background: rgba(255, 255, 255, 0.82); }
  .h-news-form[data-state="success"] .footer-newsletter-btn:hover { background: var(--peach); }
}

/* Very narrow phones: a tighter button so the field keeps its room.
   The success line may wrap to two lines; the shared grid cell grows with it. */
@media (max-width: 374px) {
  .h-home .h-news-field .footer-newsletter-btn { padding: 0 14px; }
  .h-home .h-news-field .footer-newsletter-input,
  .h-news-done { font-size: 16px; }
}

/* ─── Need help? ───
   One primary action (Contact us), the rest folded into a disclosure */
.h-footer-help .h-footer-copy { max-width: 46ch; }

.h-disclosure {
  max-width: var(--footer-measure);
  margin-top: 28px; /* same offset as the newsletter form */
  border-bottom: 1px solid var(--fg-rule);
}
.h-disclosure-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-align: left;
  color: var(--fg);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.h-disclosure-chevron {
  flex: none;
  color: var(--fg-2);
  transition: transform 0.35s var(--ease-ios), color 0.2s ease;
}
.h-disclosure.is-open .h-disclosure-chevron { transform: rotate(180deg); color: var(--fg); }

.h-disclosure-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease-out);
}
.h-disclosure.is-open .h-disclosure-panel {
  grid-template-rows: 1fr;
  transition-duration: 0.42s;
  transition-timing-function: var(--ease-ios);
}
.h-disclosure-list,
.h-disclosure-body { min-height: 0; overflow: hidden; }
.h-disclosure-list li {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.2s var(--ease-out);
}
.h-disclosure.is-open .h-disclosure-list li {
  opacity: 1;
  transform: none;
  transition-duration: 0.3s, 0.4s;
}
.h-disclosure.is-open .h-disclosure-list li:nth-child(2) { transition-delay: 40ms; }
.h-disclosure.is-open .h-disclosure-list li:nth-child(3) { transition-delay: 80ms; }

.h-disclosure-list a {
  display: grid;
  grid-template-columns: 18px 1fr 16px;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  border-top: 1px solid var(--fg-rule);
  font-size: 16px;
  color: var(--fg-2);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}
.h-disclosure-list a:focus-visible { outline-offset: -2px; }
.h-disclosure-go { transition: transform 0.2s var(--ease-out); }

/* Tablet and desktop: the newsletter field and the help disclosure are
   the same outlined box (Stanley's search field) — 1px border, 8px corners,
   48px tall, 18px inset, one shared width. Side by side on desktop they sit
   level; stacked on tablet they both run the full width of the footer.
   The Subscribe button lives inside its box, inset 4px, with 4px corners
   (8 outer − 4 inset) so the two curves stay concentric. Opening the
   disclosure grows its box downward. */
@media (min-width: 641px) {
  .h-news-field,
  .h-footer-help > .h-disclosure {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    transition: border-color 0.2s ease;
  }
  .h-news-field {
    height: 48px;
    padding: 4px 4px 4px 18px;
  }
  .h-news-field::after { display: none; } /* the outline carries the states instead */
  .h-home .h-news-field .footer-newsletter-input { padding: 0; }
  .h-home .h-news-field .footer-newsletter-btn {
    height: 38px;
    padding: 0 18px;
    border-radius: 4px;
  }
  .h-news-form:focus-within .h-news-field { border-color: rgba(255, 255, 255, 0.7); }
  .h-news-form[data-state="invalid"] .h-news-field,
  .h-news-form[data-state="error"] .h-news-field { border-color: #ff9c8c; }
  .h-news-form[data-state="success"] .h-news-field { border-color: var(--peach); transition-duration: 0.5s; }

  .h-footer-help > .h-disclosure { padding-inline: 18px; }
  .h-footer-help > .h-disclosure:hover,
  .h-footer-help > .h-disclosure.is-open { border-color: rgba(255, 255, 255, 0.7); }
  .h-footer-help > .h-disclosure > .h-disclosure-trigger { min-height: 46px; } /* + 2px border = 48px */
  .h-footer-help > .h-disclosure .h-disclosure-list li:last-child a { min-height: 56px; }
}

/* Link row: its own full-width band under the two halves above —
   Shop · Company · Policies · Get in touch · Follow us */
.h-footer-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  padding-block: 48px 64px;
  border-top: 1px solid var(--fg-rule);
}
.h-footer-cols h3 {
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 500;
}
.h-footer-cols ul {
  display: grid;
  gap: 12px;
}
.h-footer-cols li > span {
  font-size: 15px;
  color: var(--fg-2);
}
.h-footer-follow a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.h-footer-follow svg { width: 18px; height: 18px; flex: none; color: var(--fg); }

/* Wider screens: the groups are plain columns — heading text, no button */
.h-footer-group {
  max-width: none;
  margin: 0;
  border: 0;
}
.h-footer-group .h-disclosure-trigger { display: none; }
.h-footer-group .h-disclosure-panel { grid-template-rows: 1fr; }
.h-footer-group .h-disclosure-body { overflow: visible; } /* don't clip focus rings */

/* Tablets: five columns get cramped — three, then two */
@media (max-width: 1024px) {
  .h-footer-cols { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
}

/* Phones: each group folds, stacked as rows straight under the help disclosure */
@media (max-width: 640px) {
  .h-footer-top { padding-bottom: 0; }
  .h-footer-cols {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 0 24px;
    border-top: 0;
  }
  .h-footer-cols h3 { margin: 0; font-size: inherit; }
  .h-footer-group { border-bottom: 1px solid var(--fg-rule); }
  .h-footer-group-title { display: none; }
  .h-footer-group .h-disclosure-trigger { display: flex; }
  .h-footer-group .h-disclosure-panel { grid-template-rows: 0fr; }
  .h-footer-group.is-open .h-disclosure-panel { grid-template-rows: 1fr; }
  .h-footer-group .h-disclosure-body { overflow: hidden; gap: 0; }
  .h-footer-group .h-disclosure-body a,
  .h-footer-group .h-disclosure-body li > span {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 16px;
  }
  .h-footer-group .h-disclosure-body li:last-child { padding-bottom: 12px; }
  .h-footer-help .h-disclosure { max-width: none; }
  /* Follow us stays open: a heading and a row of labelled icons */
  .h-footer-follow { padding-top: 28px; }
  .h-footer-follow h3 { margin-bottom: 14px; font-size: 16px; }
  .h-footer-follow ul { display: flex; gap: 28px; }
  .h-footer-follow a { font-size: 16px; }
}
.h-footer-cols a {
  font-size: 15px;
  color: var(--fg-2);
  transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .h-disclosure-trigger:hover .h-disclosure-chevron { color: var(--fg); }
  .h-disclosure-list a:hover { color: var(--fg); }
  .h-disclosure-list a:hover .h-disclosure-go { transform: translateX(3px); }
  .h-footer-cols a:hover { color: var(--fg); }
  .h-footer-follow a:hover { color: var(--fg); }
}

.h-footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 24px 0 32px;
  font-size: 13px;
  color: var(--fg-2);
}
.h-footer-credit { margin-left: auto; }
.h-footer-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .h-collection-grid,
  .h-free-grid { grid-template-columns: 1fr; }
  .h-collection-head,
  .h-free-head { position: static; }
  .h-footer-top { grid-template-columns: 1fr; gap: 56px; }
  .h-home .h-footer { --footer-measure: 100%; } /* stacked: field and disclosure run end to end */
  .h-footer-news,
  .h-footer-help { grid-column: auto; }
}

@media (max-width: 768px) {
  .h-section { padding-block: 56px; }
  .h-collection-grid,
  .h-free-grid { gap: 28px; }
  .h-collection-head .h-btn { margin-top: 4px; }

  /* Hero stacks: copy, then the bottle on the same peach */
  .h-hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .h-hero-inner { padding-block: 44px 0; }
  .h-hero-copy { max-width: none; }
  .h-hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 10 / 9;
  }

  .h-finder-grid { grid-template-columns: 1fr; }
  .h-finder-panel { max-width: none; }

  .h-ritual {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .h-ritual-media {
    position: relative;
    right: auto;
    width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
            mask-image: linear-gradient(to bottom, #000 72%, transparent);
  }
  .h-ritual-inner { margin-top: -36px; padding-block: 0 64px; }
  .h-ritual-copy { max-width: none; }

  .h-footer-credit { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  /* Every pixel to the message: the buttons keep their 32px targets,
     the gutters give way */
  .h-home .promo-slide { font-size: 12px; letter-spacing: -0.01em; }
  .h-util-inner { padding-inline: 4px; }
}

@media (max-width: 640px) {
  /* Tiles become a swipeable row that bleeds to the screen edge */
  .h-tiles {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 76%;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .h-tiles::-webkit-scrollbar { display: none; }
  .h-tile { scroll-snap-align: start; }

  .h-finder-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .h-btn-wide { flex: none; } /* flex: 1 would zero its height once the row becomes a column */
}

/* ═══════════════════════════════════════════════
   REDUCED MOTION — keep fades, drop movement
═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .h-hero-copy > *,
  .h-hero-media > img,
  .h-home .nav-mobile.open .nav-mobile-links a { animation: h-fade 0.4s ease both; }
  .h-finder-media img.is-active { animation: h-fade 0.3s ease both; }
  .h-seg-thumb { transition: none; }
  .h-tile-media img { transition: none; }
  .h-tile > a:hover .h-tile-media img { transform: none; }
  .h-free-list li > span::after,
  .h-free-list li.is-struck > span::after { transition: none; }
  .h-news-field.is-shaking { animation: none; }
  .h-news-done,
  .h-news-field .footer-newsletter-input { transform: none !important; filter: none !important; }
  .h-disclosure-list li { transform: none !important; }
  .h-home .fade-up { transform: none; }
}

/* ═══════════════════════════════════════════════
   WISHLIST — the heart in the header opens it
   Rendered by cart.js renderWishlist() on h-home pages.
   Slides in on Apple's sheet curve and leaves faster than it
   arrives; rows rise in on open and fold away when removed.
═══════════════════════════════════════════════ */
.h-home .wishlist-panel {
  width: min(440px, 100vw);
  background: var(--paper);
  border-left: 0;
  box-shadow: -24px 0 64px rgba(28, 22, 19, 0.14);
  font-family: var(--font-text);
  letter-spacing: var(--track-text);
  color: var(--ink);
  /* Closed: hidden once it has slid out, so its shadow can't bleed into the
     page edge and its contents leave the tab order / screen reader */
  visibility: hidden;
  transition: transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
.h-home .wishlist-panel.open { visibility: visible; transition: transform 0.5s var(--ease-ios), visibility 0s; }
.h-home #favesOverlay { background: rgba(20, 15, 12, 0.4); }

.wl-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  height: 68px;
  padding: 0 14px 0 24px;
  border-bottom: 1px solid var(--line);
}
.wl-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.wl-count {
  margin-right: auto;
  font-size: 14px;
  color: var(--ink-2);
}
.wl-close,
.h-home .auth-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, transform 0.16s var(--ease-out);
}
.wl-close:active,
.h-home .auth-close:active { transform: scale(0.92); }

.wl-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.wl-list { padding: 4px 24px; }

.wl-item {
  display: grid;
  gap: 14px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: height 0.35s var(--ease-out), padding 0.35s var(--ease-out), opacity 0.2s ease, border-color 0.2s ease;
}
.wl-item:last-child { border-bottom: 0; }
.wl-item.is-entering { animation: h-rise 0.5s var(--ease-out) both; }
.wl-item.is-leaving {
  height: 0 !important;
  padding-block: 0;
  opacity: 0;
  border-color: transparent;
}

/* Top row: thumbnail · name, price, description · heart */
.wl-top {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}
.wl-thumb {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--tile);
}
.wl-thumb img { width: 100%; height: 100%; object-fit: cover; }

.wl-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 2px; }
.wl-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wl-desc {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
}

/* Size chips — same idea as the shop cards, a touch smaller */
/* Sizes: full width, equal segments — easy to hit with a thumb */
.wl-sizes {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.wl-chip { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wl-chip input { position: absolute; opacity: 0; pointer-events: none; }
.wl-chip { display: block; }
.wl-chip span {
  display: grid;
  place-items: center;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.16s var(--ease-out);
}
.wl-chip:active span { transform: scale(0.95); }
.wl-chip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.wl-chip input:focus-visible + span { outline: 2px solid var(--oxblood); outline-offset: 2px; }

.wl-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.wl-size { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.wl-price-soon { font-weight: 400; color: var(--ink-2); }
.wl-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--oxblood);
  color: #fff;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, transform 0.16s var(--ease-out);
}
.wl-add:active { transform: scale(0.98); }
.wl-add-quiet { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* The filled heart: tap to un-save */
.wl-remove {
  display: grid;
  place-items: center;
  align-self: start;
  width: 40px;
  height: 40px;
  margin: -6px -10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--oxblood);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, transform 0.16s var(--ease-out);
}
.wl-remove:active { transform: scale(0.88); }

.wl-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 80px 32px;
  text-align: center;
}
.wl-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--tile);
  color: var(--oxblood);
}
.wl-empty-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.wl-empty-sub { max-width: 28ch; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.wl-empty .h-btn { margin-top: 16px; }

.wl-foot {
  flex: none;
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
  background: var(--tile);
}
.wl-foot-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.wl-foot-sub { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.wl-foot-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
}
.wl-foot-actions .h-btn { height: 44px; }

@media (hover: hover) and (pointer: fine) {
  .wl-close:hover,
  .wl-remove:hover,
  .h-home .auth-close:hover { background: var(--tile); }
  .wl-name:hover { text-decoration: underline; text-underline-offset: 3px; }
  .wl-add:hover { background: var(--oxblood-hi); }
  .wl-add-quiet:hover { background: var(--ink); color: var(--paper); }
  .wl-chip:hover input:not(:checked) + span { border-color: var(--ink-2); color: var(--ink); }
}

/* Undo, for 5 seconds after a removal — pinned to the bottom of the list */
.wl-undo {
  position: sticky;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: auto 24px 16px; /* auto top: sits at the bottom of the panel */
  padding: 12px 12px 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(28, 22, 19, 0.2);
  animation: h-rise 0.3s var(--ease-out) both;
}
.wl-undo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-undo button {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .wl-undo button:hover { background: rgba(255, 255, 255, 0.24); }
}
@media (max-width: 480px) {
  .wl-head { padding-left: 20px; }
  .wl-list { padding-inline: 20px; }
  .wl-undo { margin-inline: 20px; }
}

/* ═══════════════════════════════════════════════
   SIGN IN — auth.js modal, on h-home pages
   A centred card on desktop that settles in from 97%; a bottom
   sheet on phones that rises on the sheet curve. auth.js adds
   .is-open a frame after showing it, and hides it after the exit.
   Fields share the footer's outline: 1px, 8px corners, 48px tall.
═══════════════════════════════════════════════ */
.h-home #authModal {
  padding: 16px;
  font-family: var(--font-text);
  letter-spacing: var(--track-text);
  color: var(--ink);
}
.h-home .auth-overlay {
  background: rgba(20, 15, 12, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.h-home #authModal.is-open .auth-overlay { opacity: 1; transition-duration: 0.3s; }

.h-home .auth-box {
  width: 440px;
  max-width: 100%;
  max-height: min(90vh, 780px);
  padding: 44px 36px 32px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(28, 22, 19, 0.25);
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.18s ease, transform 0.22s var(--ease-out);
}
.h-home #authModal.is-open .auth-box {
  opacity: 1;
  transform: none;
  transition: opacity 0.25s ease, transform 0.4s var(--ease-ios);
}
/* Switching between sign in / create account / reset: a quick fade */
.h-home .auth-box > div[id$="View"] { animation: h-fade 0.25s ease both; }

.h-home .auth-close {
  top: 12px;
  right: 12px;
  opacity: 1;
  color: var(--ink-2);
}

.h-home .auth-heading {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
}
.h-home .auth-sub {
  margin-bottom: 28px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-2);
}

.h-home .auth-field { margin-bottom: 16px; }
.h-home .auth-field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.h-home .auth-field input,
.h-home .auth-phone-code {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(28, 22, 19, 0.2);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-text);
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.h-home .auth-field input::placeholder { color: rgba(28, 22, 19, 0.4); }
.h-home .auth-field input:focus,
.h-home .auth-phone-code:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(79, 13, 0, 0.12);
}
.h-home .auth-phone-code { width: auto; flex: none; padding: 0 10px; }
.h-home .auth-pw-wrap input { padding-right: 48px; }
.h-home .auth-eye-btn {
  right: 6px;
  width: 36px;
  height: 36px;
  justify-content: center;
  border-radius: 6px;
  color: var(--ink-2);
}
.h-home .auth-pw-hint {
  margin-top: 8px;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-2);
}

.h-home .auth-forgot { margin: -4px 0 8px; text-align: right; }
.h-home .auth-forgot a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-2);
  text-underline-offset: 2px;
}

.h-home .auth-error {
  margin: 4px 0 12px;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  color: #b3261e;
}
.h-home .auth-error:empty { margin: 0; }
.h-home .auth-success {
  font-family: var(--font-text);
  font-size: 14px !important;
  font-weight: 400 !important;
}

.h-home .auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--oxblood);
  color: #fff;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.16s var(--ease-out), opacity 0.2s ease;
}
.h-home .auth-btn:active { transform: scale(0.98); }
.h-home .auth-btn:disabled { opacity: 0.7; cursor: progress; }

.h-home .auth-switch {
  margin-top: 20px;
  text-align: center;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
.h-home .auth-switch a {
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.h-home .auth-greeting-label {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
.h-home .auth-email-display { font-size: 15px; letter-spacing: 0; color: var(--ink-2); }
.h-home .auth-signout-btn {
  width: 100%;
  height: 48px;
  margin-top: 12px;
  border: 1px solid rgba(28, 22, 19, 0.2);
  border-radius: var(--radius-btn);
  background: none;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .h-home .auth-btn:hover:not(:disabled) { background: var(--oxblood-hi); }
  .h-home .auth-eye-btn:hover { color: var(--ink); background: var(--tile); }
  .h-home .auth-forgot a:hover,
  .h-home .auth-switch a:hover { color: var(--oxblood); }
  .h-home .auth-signout-btn:hover { border-color: var(--ink); }
}

/* Phones: a bottom sheet with a grabber, rising on the sheet curve */
@media (max-width: 640px) {
  .h-home #authModal { align-items: flex-end !important; padding: 0; } /* auth.js centres it inline */
  .h-home .auth-box {
    width: 100%;
    max-height: 92vh;
    padding: 40px 24px calc(28px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    opacity: 1;
    transform: translateY(100%);
    transition: transform 0.22s var(--ease-out);
  }
  .h-home #authModal.is-open .auth-box {
    transform: none;
    transition: transform 0.5s var(--ease-ios);
  }
  .h-home .auth-box::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 36px;
    height: 5px;
    border-radius: 99px;
    background: rgba(28, 22, 19, 0.18);
    transform: translateX(-50%);
  }
  .h-home .auth-heading { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .h-home .wishlist-panel,
  .h-home .wishlist-panel.open { transition: none; }
  .wl-item.is-entering { animation: h-fade 0.3s ease both; }
  .wl-item { transition: none; }
  .h-home .auth-box,
  .h-home #authModal.is-open .auth-box { transform: none; transition: opacity 0.2s ease; }
}

/* ═══════════════════════════════════════════════
   BAG — the bag icon opens it (cart.js, h-home pages)
   Two steps in one panel: "Bag" lists the items with a quantity
   stepper, free-delivery progress and a Checkout button; "Checkout"
   swaps to the existing guest / sign-in choice and delivery form
   (#cartPanel.is-checkout). Shares the wishlist's panel, header,
   thumbnails and empty state.
═══════════════════════════════════════════════ */
.h-home #cartPanel {
  width: min(440px, 100vw);
  background: var(--paper);
  border-left: 0;
  box-shadow: -24px 0 64px rgba(28, 22, 19, 0.14);
  font-family: var(--font-text);
  letter-spacing: var(--track-text);
  color: var(--ink);
  /* Closed: hidden once it has slid out, so its shadow can't bleed into the
     page edge and its contents leave the tab order / screen reader */
  visibility: hidden;
  transition: transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
.h-home #cartPanel.open { visibility: visible; transition: transform 0.5s var(--ease-ios), visibility 0s; }
.h-home #cartOverlay { background: rgba(20, 15, 12, 0.4); }

.bag-head { gap: 8px; }
.bag-head .bag-back { margin-left: -10px; }
.bag-head .bag-back[hidden] { display: none; }

.h-home #cartPanel .side-panel-body {
  padding: 0;
  overscroll-behavior: contain;
}
.h-home #cartPanel .side-panel-footer {
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.h-home #cartPanel .side-panel-footer:empty { display: none; }

/* Step 1 (bag): checkout-only parts wait for step 2 */
.h-home #cartPanel:not(.is-checkout) :is(.panel-total, .panel-free-shipping-banner, .panel-checkout-gate, #panelGuestFormWrap, #panelCheckoutForm, .panel-shipping-note) { display: none !important; }
.h-home #cartPanel:not(.is-checkout) .side-panel-body { animation: h-fade 0.25s ease both; }
/* Step 2 (checkout): the items step aside and the form takes the panel */
.h-home #cartPanel.is-checkout .side-panel-body,
.h-home #cartPanel.is-checkout .bag-summary { display: none; }
.h-home #cartPanel.is-checkout .side-panel-footer {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 0;
  animation: h-fade 0.25s ease both;
}

/* Free delivery progress (GHS) */
.bag-progress {
  padding: 16px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.bag-progress p { font-size: 14px; line-height: 1.4; color: var(--ink); }
.bag-progress strong { font-weight: 600; }
.bag-progress-track {
  display: block;
  height: 4px;
  margin-top: 10px;
  border-radius: 99px;
  background: rgba(28, 22, 19, 0.1);
  overflow: hidden;
}
.bag-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--clay);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out);
}
.bag-progress.is-done .bag-progress-track > span { background: var(--oxblood); }

/* Items */
.bag-list { margin: 0; padding: 4px 24px; list-style: none; }
.bag-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: height 0.3s var(--ease-out), padding 0.3s var(--ease-out), opacity 0.2s ease, border-color 0.2s ease;
}
.bag-item:last-child { border-bottom: 0; }
.bag-item.is-leaving {
  height: 0 !important;
  padding-block: 0;
  opacity: 0;
  border-color: transparent;
}
.bag-info { display: flex; flex-direction: column; min-width: 0; }
.bag-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.bag-gift {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-btn);
  background: var(--peach);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 500;
  vertical-align: 2px;
  color: var(--oxblood);
}
.bag-meta { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.bag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}
.bag-price { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Quantity stepper: a pill; the minus becomes a bin at 1 */
.bag-stepper {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 2px;
  border: 1px solid rgba(28, 22, 19, 0.2);
  border-radius: 99px;
}
.h-home #cartPanel .bag-stepper .panel-qty-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, transform 0.16s var(--ease-out);
}
.h-home #cartPanel .bag-stepper .panel-qty-btn:active { transform: scale(0.88); }
.h-home #cartPanel .bag-stepper .panel-item-qty {
  min-width: 24px;
  padding: 0;
  border: 0;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--ink);
}

/* Summary + Checkout (step 1) */
.bag-subtotal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.bag-summary-note { margin: 6px 0 16px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.bag-checkout-btn { width: 100%; height: 52px; }

/* ─── Step 2: the existing checkout, restyled ─── */
.h-home #cartPanel .panel-total {
  display: flex;
  justify-content: space-between;
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.h-home #cartPanel .panel-free-shipping-banner {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #edf6f0;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: #1f5f3a;
}
.h-home #cartPanel .panel-checkout-gate-label {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-transform: none;
  text-align: left;
  color: var(--ink);
}
.h-home #cartPanel .panel-checkout-or { margin: 14px 0; }
.h-home #cartPanel .panel-checkout-or::before,
.h-home #cartPanel .panel-checkout-or::after { background: var(--line); }
.h-home #cartPanel .panel-checkout-or span {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-2);
}
.h-home #cartPanel .panel-checkout-auth-row { gap: 10px; }
.h-home #cartPanel .panel-checkout-auth-btn {
  height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(28, 22, 19, 0.2);
  border-radius: var(--radius-btn);
  background: none;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.16s var(--ease-out);
}
.h-home #cartPanel .panel-checkout-auth-btn:active { transform: scale(0.98); }

.h-home #cartPanel .panel-checkout-form { gap: 12px; }
.h-home #cartPanel .panel-checkout-input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(28, 22, 19, 0.2);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-text);
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.h-home #cartPanel textarea.panel-checkout-input { height: auto; min-height: 88px; padding: 12px 14px; line-height: 1.5; }
.h-home #cartPanel select.panel-checkout-input {
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b5d55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
}
.h-home #cartPanel .panel-checkout-input::placeholder { color: rgba(28, 22, 19, 0.4); }
.h-home #cartPanel .panel-checkout-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(79, 13, 0, 0.12);
}
.h-home #cartPanel .panel-phone-field .panel-phone-code { flex: 0 0 152px; width: 152px; }
.h-home #cartPanel .panel-free-intl {
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: #edf6f0;
  font-size: 14px;
  font-weight: 400;
  color: #1f5f3a;
}
.h-home #cartPanel .panel-gift-section { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.h-home #cartPanel .panel-gift-toggle {
  min-height: 48px;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.h-home #cartPanel .panel-gift-chevron { width: 18px; height: 18px; opacity: 1; color: var(--ink-2); transition: transform 0.3s var(--ease-ios); }
.h-home #cartPanel .panel-gift-fields { gap: 8px; padding-bottom: 8px; }
.h-home #cartPanel .panel-gift-field-label {
  margin-top: 4px;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
.h-home #cartPanel .panel-checkout-err { font-size: 14px; line-height: 1.4; color: #b3261e; }

.h-home #cartPanel .panel-paystack-btn {
  height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  background: var(--oxblood);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  transition: background-color 0.2s ease, transform 0.16s var(--ease-out);
}
.h-home #cartPanel .panel-paystack-btn::before { display: none; }
.h-home #cartPanel .panel-paystack-btn:active { transform: scale(0.98); }
.h-home #cartPanel #guestCheckoutBtn { margin-bottom: 0 !important; }
.h-home #cartPanel .panel-shipping-note {
  margin-top: 14px;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-2);
}

/* Confirming / failed verification: a status bar in the footer */
.bag-status { padding-block: 4px; }

/* Paid: the confirmation takes the panel */
.h-home #cartPanel .panel-pay-success {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 80px 32px;
  text-align: center;
  font-family: var(--font-text);
  animation: h-rise 0.5s var(--ease-out) both;
}
.h-home #cartPanel .panel-pay-success svg { width: 48px; height: 48px; margin-bottom: 8px; color: var(--oxblood); }
.h-home #cartPanel .panel-pay-success p:first-of-type {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.h-home #cartPanel .panel-pay-ref { font-size: 14px; letter-spacing: 0; color: var(--ink-2); }
.h-home #cartPanel .panel-pay-note { font-size: 15px; letter-spacing: 0; color: var(--ink-2); }

@media (hover: hover) and (pointer: fine) {
  .h-home #cartPanel .bag-stepper .panel-qty-btn:hover { background: var(--tile); }
  .h-home #cartPanel .panel-checkout-auth-btn:hover { border-color: var(--ink); background: none; }
  .h-home #cartPanel .panel-paystack-btn:hover { background: var(--oxblood-hi); }
}

@media (max-width: 480px) {
  .bag-list { padding-inline: 20px; }
  .bag-progress { padding-inline: 20px; }
  .h-home #cartPanel .side-panel-footer { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .h-home #cartPanel,
  .h-home #cartPanel.open { transition: none; }
  .bag-item { transition: none; }
  .bag-progress-track > span { transition: none; }
}

/* ═══════════════════════════════════════════════
   STATUS BARS — success, error, pending (h-home pages)
   One component for every "it worked / it didn't / hold on"
   moment: payments, gifts, forms. Warm peach for success (the
   brand, not a stock green), brick for errors, the tile for
   pending. Each has an icon, a short title and a next step.

   <div class="h-alert h-alert--error" role="alert">
     <span class="h-alert-icon">…svg…</span>
     <div><p class="h-alert-title">Payment couldn't be verified</p>
          <p class="h-alert-text">Email buyduafe@gmail.com with ref …</p></div>
   </div>
═══════════════════════════════════════════════ */
.h-alert {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-text);
  text-align: left;
  animation: h-rise 0.35s var(--ease-out) both;
}
.h-alert-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.h-alert-title {
  padding-top: 5px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.h-alert-text {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.h-alert-text a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.h-alert-text strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.h-alert-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.h-alert-actions button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.h-alert--success { background: #fdf1e5; border-color: #f4d8bc; color: var(--ink); }
.h-alert--success .h-alert-icon { background: var(--peach); color: var(--oxblood); }
.h-alert--success .h-alert-text { color: var(--ink-2); }

.h-alert--error { background: #fcefec; border-color: #f0cdc6; color: #7a1a0e; }
.h-alert--error .h-alert-icon { background: #f7d9d3; color: #9a2415; }

.h-alert--pending,
.h-alert--info { background: var(--tile); border-color: var(--line); color: var(--ink); }
.h-alert--pending .h-alert-icon,
.h-alert--info .h-alert-icon { background: var(--paper); color: var(--ink-2); }
.h-alert--pending .h-alert-text,
.h-alert--info .h-alert-text { color: var(--ink-2); }

/* Pending: a thin ring that turns */
.h-alert-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(28, 22, 19, 0.15);
  border-top-color: var(--oxblood);
  border-radius: 50%;
  animation: h-spin 0.8s linear infinite;
}
@keyframes h-spin { to { transform: rotate(360deg); } }

/* The check in a success bar draws itself */
.h-alert--success .h-alert-icon path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: h-alert-draw 0.45s var(--ease-out) 0.15s forwards;
}
@keyframes h-alert-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .h-alert { animation: h-fade 0.3s ease both; }
  .h-alert-spinner { animation-duration: 2s; }
  .h-alert--success .h-alert-icon path { animation: none; stroke-dashoffset: 0; }
}
