/* GHALIA storefront — warm hammam luxury */

:root {
  --hammam: oklch(0.2 0.02 60);
  --hammam-2: oklch(0.25 0.024 60);
  --hammam-line: oklch(0.34 0.03 65);
  --on-dark: oklch(0.95 0.012 85);
  --on-dark-muted: oklch(0.8 0.025 80);

  --surface: oklch(0.985 0.004 80);
  --surface-raised: oklch(1 0 0);
  --surface-sunk: oklch(0.945 0.01 75);
  --ink: oklch(0.24 0.02 60);
  --ink-muted: oklch(0.45 0.022 62);
  --line: oklch(0.89 0.012 75);
  --line-strong: oklch(0.76 0.02 72);

  --gold: oklch(0.78 0.105 82);
  --gold-hover: oklch(0.84 0.1 86);
  --gold-deep: oklch(0.5 0.09 70);
  --gold-tint: oklch(0.96 0.03 85);
  --clay: oklch(0.47 0.11 40);
  --clay-soft: oklch(0.94 0.03 45);

  --success: oklch(0.47 0.09 155);
  --success-soft: oklch(0.95 0.03 155);
  --danger: oklch(0.5 0.17 28);
  --danger-soft: oklch(0.955 0.025 28);

  --font-display: 'Marcellus', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-hand: 'Nothing You Could Do', 'Segoe Print', 'Bradley Hand', cursive;

  --radius: 0.625rem;
  --radius-lg: 1.25rem;
  --arch: 999px 999px var(--radius) var(--radius);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 76rem;

  --z-sticky: 100;
  --z-menu: 200;
  --z-toast: 400;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
code { font-size: 0.9em; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible, .hero :focus-visible, .ritual :focus-visible, .site-footer :focus-visible, .mock :focus-visible { outline-color: var(--gold); }
::selection { background: var(--gold); color: var(--hammam); }

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.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;
}

.skip {
  position: absolute; left: 1rem; top: -5rem;
  z-index: var(--z-toast);
  background: var(--gold); color: var(--hammam);
  padding: 0.75rem 1rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 36rem; }
.wrap--prose { max-width: 50rem; }
.wrap--order { max-width: 62rem; }
.muted { color: var(--ink-muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 2.875rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600; font-size: 0.975rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.btn--lg { min-height: 3.25rem; padding: 0.85rem 1.75rem; font-size: 1.025rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--hammam); }
.btn--gold:hover { background: var(--gold-hover); }
.btn--dark { background: var(--ink); color: var(--surface); }
.btn--dark:hover { background: oklch(0.33 0.025 60); }
.btn--outline { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--ghost-light { border-color: oklch(0.95 0.012 85 / 0.35); color: var(--on-dark); background: transparent; }
.btn--ghost-light:hover { border-color: var(--gold); color: var(--gold); }
.btn--light { background: oklch(0.98 0.006 60); color: var(--clay); }
.btn--light:hover { background: oklch(0.93 0.02 60); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: inherit;
  cursor: pointer; text-decoration: none;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.icon-btn:hover { background: oklch(0.6 0.03 70 / 0.14); }
.icon-btn--gold { background: var(--gold); color: var(--hammam); }
.icon-btn--gold:hover { background: var(--gold-hover); }
.icon-btn--sm { width: 2.25rem; height: 2.25rem; }
.icon-btn--sm .icon { width: 1.05rem; height: 1.05rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; text-decoration: none; color: var(--gold-deep);
}
.link-arrow .icon { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }

.linklike {
  background: none; border: 0; padding: 0;
  min-height: 2.75rem;
  color: var(--ink-muted); font-size: 0.9rem;
  text-decoration: underline; text-underline-offset: 0.2em;
  cursor: pointer;
}
.linklike:hover { color: var(--ink); }

/* ---------- Announcement & header ---------- */

.announce {
  background: var(--gold);
  color: var(--hammam);
  font-size: 0.8125rem; font-weight: 500;
  text-align: center;
  padding: 0.45rem var(--gutter);
}

.site-header {
  position: sticky; top: 0;
  z-index: var(--z-sticky);
  background: var(--hammam);
  color: var(--on-dark);
  border-bottom: 1px solid var(--hammam-line);
}
.site-header__bar { display: flex; align-items: center; gap: 0.25rem; min-height: 4rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--on-dark); }
.brand__mark { width: 1.6rem; height: 2rem; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.brand__name { font-family: var(--font-display); font-size: 1.65rem; letter-spacing: 0.05em; line-height: 1; }
.brand__logo { height: 3.5rem; width: auto; }
@media (min-width: 64rem) { .brand__logo { height: 4rem; } }
.footer-logo { height: 7rem; width: auto; }

.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 0.125rem; }
.bag-link { position: relative; }
.bag-count {
  position: absolute; top: 0.15rem; right: 0.05rem;
  min-width: 1.2rem; height: 1.2rem; padding: 0 0.3rem;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--gold); color: var(--hammam);
  font-size: 0.7rem; font-weight: 700; line-height: 1;
}
.bag-link.is-bumped .icon { animation: bump 0.5s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-6deg); } 100% { transform: none; } }

.site-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  top: var(--nav-top, 4rem);
  z-index: var(--z-menu);
  background: var(--hammam);
  padding: 1rem var(--gutter) 2.5rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity 0.25s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
.site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.site-nav ul { display: grid; }
.site-nav a {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--font-display); font-size: 1.65rem; line-height: 1.2;
  text-decoration: none;
  border-bottom: 1px solid var(--hammam-line);
}
.site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav__minor a { font-family: var(--font-body); font-size: 1rem; color: var(--on-dark-muted); }
.nav-search { margin-top: 1.5rem; }
body.menu-open { overflow: hidden; }

.search-field {
  display: flex; align-items: center;
  background: var(--hammam-2);
  border: 1px solid var(--hammam-line);
  border-radius: 999px;
  padding-left: 1rem;
  transition: border-color 0.2s;
}
.search-field:focus-within { border-color: var(--gold); }
.search-field input {
  flex: 1; min-width: 0; min-height: 2.75rem;
  background: transparent; border: 0; outline: none;
  color: var(--on-dark);
}
.search-field input::placeholder { color: var(--on-dark-muted); }
.search-field input::-webkit-search-cancel-button { filter: invert(1); }
.header-search { display: none; }
.header-track { display: none; }

@media (min-width: 64rem) {
  .menu-toggle { display: none; }
  .site-header__bar { min-height: 4.5rem; gap: 2.25rem; }
  .site-nav {
    position: static; inset: auto;
    opacity: 1; visibility: visible; transform: none;
    background: none; padding: 0; overflow: visible; transition: none;
  }
  .site-nav ul { display: flex; align-items: center; gap: 1.6rem; }
  .site-nav a {
    font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500;
    padding: 0.5rem 0; border: 0; white-space: nowrap;
    color: var(--on-dark-muted);
    transition: color 0.2s;
  }
  .site-nav a:hover { color: var(--on-dark); }
  .site-nav__minor, .site-nav__extra, .nav-search { display: none; }
  .header-search { display: flex; width: 13rem; margin-right: 0.5rem; }
  .header-track { display: inline-grid; }
  body.menu-open { overflow: auto; }
}
/* Between laptop and wide screens the top bar is tight: “Our story” stays in the footer and phone menu. */
@media (min-width: 64rem) and (max-width: 79.99rem) { .site-nav__roomy { display: none; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--hammam) url("/img/pattern.svg") repeat;
  background-size: 7.5rem;
  color: var(--on-dark);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 60% at 78% 45%, oklch(0.58 0.11 70 / 0.3), transparent 70%),
    linear-gradient(to bottom, oklch(0.2 0.02 60 / 0.55), var(--hammam) 96%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid; gap: 3rem; align-items: center;
  padding-block: clamp(2.75rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
}
@media (min-width: 56rem) { .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }

.hero__kicker {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--gold); font-weight: 500; font-size: 0.975rem;
  margin-bottom: 1.25rem;
}
.hero__title {
  font-size: clamp(2.65rem, 1.55rem + 4.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 13ch;
}
.hero__lede {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--on-dark-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
  margin-top: 2.25rem !important;
  font-size: 0.925rem; color: var(--on-dark-muted);
}
.hero__trust li { display: flex; align-items: center; gap: 0.5rem; }
.hero__trust .icon { color: var(--gold); }

.hero__media { position: relative; margin: 0; justify-self: center; width: min(100%, 22rem); }
@media (min-width: 56rem) { .hero__media { width: min(100%, 30rem); } }
.hero__media::before {
  content: "";
  position: absolute; inset: -0.9rem;
  border: 1px solid oklch(0.78 0.105 82 / 0.45);
  border-radius: 999px 999px calc(var(--radius-lg) + 0.9rem) calc(var(--radius-lg) + 0.9rem);
  pointer-events: none;
}
.hero__arch {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  box-shadow: 0 2rem 5rem oklch(0.1 0.02 60 / 0.55);
  background: var(--hammam-2);
}
.hero__arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__arch--logo { display: grid; place-items: center; }
.hero__arch--logo img { width: 72%; height: auto; object-fit: contain; }

/* Hand-arranged collage of real product photos */
.collage { position: relative; justify-self: center; width: min(100%, 24rem); aspect-ratio: 1 / 1.08; margin-top: 0.5rem; }
@media (min-width: 56rem) { .collage { width: min(100%, 32rem); margin-top: 0; } }
.collage__item { position: absolute; animation: settle 1.1s var(--ease-out) both; }
.collage__item:nth-child(1) { left: 0; top: 18%; width: 58%; z-index: 3; --tilt: -5deg; animation-delay: 0.15s; }
.collage__item:nth-child(2) { right: 2%; top: 0; width: 46%; z-index: 2; --tilt: 6deg; animation-delay: 0.3s; }
.collage__item:nth-child(3) { right: 9%; bottom: 0; width: 44%; z-index: 4; --tilt: -2.5deg; animation-delay: 0.45s; }
.collage--1 .collage__item:nth-child(1) { left: 16%; top: 8%; width: 68%; }
.collage__item:hover, .collage__item:focus-within { z-index: 6; }

.polaroid {
  position: relative; display: block;
  padding: 0.55rem 0.55rem 0;
  border-radius: 3px;
  background: oklch(0.975 0.008 85);
  color: oklch(0.3 0.03 60);
  text-decoration: none;
  transform: rotate(var(--tilt, 0deg));
  box-shadow: 0 1.5rem 3rem oklch(0.08 0.02 60 / 0.55), 0 2px 4px oklch(0.08 0.02 60 / 0.3);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.polaroid:hover, .polaroid:focus-visible {
  transform: rotate(0deg) translateY(-0.4rem) scale(1.02);
  box-shadow: 0 2rem 4rem oklch(0.08 0.02 60 / 0.6), 0 2px 4px oklch(0.08 0.02 60 / 0.3);
}
/* A strip of gold washi tape holding each print */
.polaroid::before {
  content: "";
  position: absolute; top: -0.7rem; left: 50%; z-index: 1;
  width: 38%; height: 1.35rem;
  transform: translateX(-50%) rotate(calc(var(--tilt, 0deg) * -0.8 - 2deg));
  background: oklch(0.84 0.075 84 / 0.72);
  clip-path: polygon(2% 8%, 98% 0, 100% 45%, 97% 100%, 1% 92%, 0 50%);
}
.polaroid__photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: oklch(0.99 0 0); }
.polaroid__photo img { width: 100%; height: 100%; object-fit: cover; }
.polaroid__caption {
  display: block;
  padding: 0.45rem 0.25rem 0.65rem;
  font-family: var(--font-hand);
  font-size: clamp(0.95rem, 0.8rem + 0.55vw, 1.3rem);
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}

.collage__note {
  position: absolute; top: 0; left: 1%; z-index: 5;
  font-family: var(--font-hand);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  color: var(--gold);
  transform: rotate(-7deg);
  animation: rise 0.8s var(--ease-out) 0.9s both;
}
.collage__arrow, .collage__spark {
  position: absolute; z-index: 5;
  fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}
.collage__arrow { top: 3%; left: 30%; width: clamp(2.4rem, 7vw, 3.6rem); }
.collage__spark { top: 55%; right: -2%; width: clamp(1.6rem, 4vw, 2.2rem); stroke-width: 1.8; }
.collage__arrow path, .collage__spark path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 0.9s var(--ease-out) 1.1s both; }
.collage__spark path { animation-delay: 1.4s; }

@keyframes settle { from { opacity: 0; transform: translateY(-1.25rem) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@keyframes rise { from { opacity: 0; transform: translateY(1.1rem); } to { opacity: 1; transform: none; } }
@keyframes arch-reveal {
  from { opacity: 0; clip-path: inset(35% 0 0 0 round 999px 999px 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0 round 999px 999px 0 0); }
}
.hero__copy > * { animation: rise 0.9s var(--ease-out) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.08s; }
.hero__copy > :nth-child(3) { animation-delay: 0.16s; }
.hero__copy > :nth-child(4) { animation-delay: 0.24s; }
.hero__copy > :nth-child(5) { animation-delay: 0.32s; }
.hero__arch { animation: arch-reveal 1.3s var(--ease-out) 0.1s both; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-top: 0; }
.section__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.section__title { font-size: clamp(2rem, 1.45rem + 2.1vw, 3.25rem); }
.section__lede { margin-top: 0.7rem; max-width: 52ch; color: var(--ink-muted); }

.rail {
  position: relative;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(10.5rem, 1fr);
  gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 0.5rem;
  scrollbar-width: thin;
}
.rail > li { scroll-snap-align: start; }
@media (min-width: 56rem) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); overflow: visible; margin-inline: 0; padding: 0; }
}
.rail__item { display: grid; gap: 0.3rem; text-align: center; text-decoration: none; }
.rail__arch {
  display: block;
  aspect-ratio: 3 / 4;
  margin-bottom: 0.65rem;
  overflow: hidden;
  border-radius: var(--arch);
  background: var(--surface-sunk);
}
.rail__arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.rail__item:hover .rail__arch img { transform: scale(1.05); }
.rail__name { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; }
.rail__count { font-size: 0.875rem; color: var(--ink-muted); }

/* ---------- Product cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(0.75rem, 2vw, 1.5rem);
}
@media (min-width: 48rem) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card__media {
  position: relative; display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--arch);
  background: var(--surface-sunk);
}
.card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.5s var(--ease-out), transform 0.9s var(--ease-out);
}
.card__alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__alt { opacity: 1; }
  .card:hover .card__media img:first-child { transform: scale(1.04); }
}
.badge {
  position: absolute; left: 50%; bottom: 0.75rem;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--clay); color: oklch(0.98 0.006 60);
  font-size: 0.75rem; font-weight: 600;
}
.badge--muted { background: var(--ink); color: var(--surface); }
.card__body { display: flex; flex-direction: column; flex: 1; gap: 0.3rem; padding-top: 0.9rem; }
.card__title { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.3rem); line-height: 1.2; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__tagline {
  font-size: 0.875rem; line-height: 1.45; color: var(--ink-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 30rem) { .card__tagline { display: none; } }
.card__foot { margin-top: auto; padding-top: 0.4rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.price s { display: block; font-size: 0.85em; font-weight: 400; color: var(--ink-muted); }
.price--pending { font-size: 0.9rem; font-weight: 500; color: var(--ink-muted); }
.product__price--pending { font-size: 1.25rem; font-weight: 500; color: var(--ink-muted); }
[data-add-to-cart][aria-busy="true"] .icon-btn { opacity: 0.6; }

/* ---------- Ritual ---------- */

.ritual {
  background: var(--hammam) url("/img/pattern.svg") repeat;
  background-size: 7.5rem;
  color: var(--on-dark);
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.ritual__intro { max-width: 40rem; }
.ritual__title { font-size: clamp(2.2rem, 1.55rem + 2.7vw, 3.75rem); }
.ritual__intro p { margin-top: 1rem; font-size: 1.075rem; color: var(--on-dark-muted); }
.ritual__steps { display: grid; gap: 2.5rem; margin-top: 3rem !important; }
@media (min-width: 40rem) { .ritual__steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .ritual__steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.ritual__step { padding-top: 1.25rem; border-top: 1px solid var(--hammam-line); }
.ritual__num { display: block; margin-bottom: 1rem; font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--gold); }
.ritual__step h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.ritual__step p { font-size: 0.975rem; color: var(--on-dark-muted); }
.ritual__step a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 1rem;
  color: var(--gold); font-weight: 600; text-decoration: none;
}
.ritual__step a:hover .icon { transform: translateX(3px); }
.ritual__step a .icon { transition: transform 0.25s var(--ease-out); }

/* ---------- Promise ---------- */

.promise { padding-block: clamp(3.5rem, 8vw, 6rem); border-bottom: 1px solid var(--line); }
.promise__row { display: grid; gap: 2rem; text-align: center; }
@media (min-width: 56rem) { .promise__row { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; } }
.promise__word { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); color: var(--gold-deep); }
.promise__item p { margin: 0.75rem auto 0; max-width: 30ch; color: var(--ink-muted); }
.promise__star { justify-self: center; align-self: center; color: var(--gold); width: 1.4rem; height: 1.4rem; }

/* ---------- Ordering facts ---------- */

.ordering { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .ordering { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; align-items: start; } }
.ordering__copy p { margin: 1rem 0 1.75rem; max-width: 44ch; color: var(--ink-muted); }
.facts { display: grid; margin: 0; }
@media (min-width: 40rem) { .facts { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.facts--single { grid-template-columns: 1fr !important; }
.facts > div { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.facts dt { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.05rem; }
.facts dt .icon { color: var(--gold-deep); }
.facts dd { margin: 0.4rem 0 0; font-size: 0.95rem; color: var(--ink-muted); }

/* ---------- Instagram band ---------- */

.band { background: var(--clay); color: oklch(0.97 0.01 60); }
.band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.band__title { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem); }
.band p { margin-top: 0.5rem; opacity: 0.92; }

/* ---------- Footer ---------- */

.site-footer { background: var(--hammam); color: var(--on-dark-muted); font-size: 0.95rem; }
.site-footer__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  padding-block: 3.5rem 2.5rem;
}
.site-footer h2 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--on-dark); margin-bottom: 0.9rem; }
.site-footer ul { display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__brand p { margin-top: 1rem; max-width: 32ch; }
.site-footer .social { display: flex; gap: 0.35rem; margin-top: 1.1rem; }
.site-footer .social .icon-btn { border-color: var(--hammam-line); color: var(--on-dark); }
.site-footer .social .icon-btn:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--hammam-line);
  font-size: 0.85rem;
}
.site-footer__secure { display: inline-flex; align-items: center; gap: 0.4rem; }
.site-footer__secure .icon { width: 1rem; height: 1rem; color: var(--gold); }

/* ---------- Page scaffolding ---------- */

.page-body { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.page-head { padding-block: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem); }
.page-head--flush { padding-inline: 0; }
.page-head--center { text-align: center; }
.page-head--center .page-lede { margin-inline: auto; }
.page-title { font-size: clamp(2.2rem, 1.65rem + 2.3vw, 3.5rem); }
.page-lede { margin-top: 0.75rem; max-width: 60ch; color: var(--ink-muted); font-size: 1.05rem; text-wrap: pretty; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.9rem; font-size: 0.875rem; color: var(--ink-muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }
.crumbs--product { padding-block: 1.25rem 0.75rem; }

.notice {
  display: flex; align-items: flex-start; gap: 0.7rem;
  margin-block: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid; border-radius: var(--radius);
  font-size: 0.95rem;
}
.notice .icon { margin-top: 0.15rem; }
.notice--success { background: var(--success-soft); border-color: oklch(0.8 0.06 155); color: oklch(0.32 0.07 155); }
.notice--error { background: var(--danger-soft); border-color: oklch(0.82 0.07 28); color: oklch(0.4 0.13 28); }
.notice--info { background: var(--gold-tint); border-color: oklch(0.85 0.06 82); color: oklch(0.34 0.05 70); }

.empty { display: grid; justify-items: center; gap: 1rem; padding-block: clamp(3rem, 8vw, 5.5rem); text-align: center; }
.empty__art { width: 4rem; height: 4rem; color: var(--gold-deep); stroke-width: 1.1; }
.empty h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem); }
.empty p { max-width: 42ch; color: var(--ink-muted); }

/* ---------- Forms ---------- */

.input {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: oklch(0.5 0.02 62); }
.input:hover { border-color: oklch(0.6 0.02 65); }
.input:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px oklch(0.78 0.105 82 / 0.4); }
textarea.input { resize: vertical; line-height: 1.5; }
select.input {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23574a3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
}

.field { display: grid; gap: 0.4rem; align-content: start; }
.field label { font-weight: 600; font-size: 0.925rem; }
.field__hint { font-size: 0.85rem; color: var(--ink-muted); }
.field__error { font-size: 0.875rem; font-weight: 500; color: var(--danger); }
.field--error .input { border-color: var(--danger); }
.optional { font-weight: 400; color: var(--ink-muted); }
.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 40rem) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }

/* ---------- Shop listing ---------- */

.toolbar { display: grid; gap: 1rem; padding-block: 1rem; border-block: 1px solid var(--line); }
@media (min-width: 60rem) { .toolbar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.chips { position: relative; display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.15rem; scrollbar-width: none; }
.chip {
  display: inline-flex; align-items: center;
  min-height: 2.5rem; padding: 0.4rem 1rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  white-space: nowrap; text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: border-color 0.2s, background-color 0.2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.toolbar__form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.toolbar__form .input { min-height: 2.75rem; flex: 1 1 9rem; width: auto; }
.toolbar__form .btn { min-height: 2.75rem; }
.result-count { margin-block: 1.25rem 1.5rem; font-size: 0.9rem; color: var(--ink-muted); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin-top: 3rem; font-size: 0.95rem; }

/* ---------- Product page ---------- */

.product { display: grid; gap: 2rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
@media (min-width: 56rem) { .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 4rem; align-items: start; } }
.gallery { display: grid; gap: 0.75rem; }
@media (min-width: 56rem) { .gallery { position: sticky; top: 6rem; } }
.gallery__main { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); background: var(--surface-sunk); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s var(--ease-out); }
.gallery__main img.is-swapping { opacity: 0.35; }
.gallery__thumbs { position: relative; display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.2rem; }
.gallery__thumb {
  flex: none; width: 4.5rem; aspect-ratio: 4 / 5;
  padding: 0; overflow: hidden;
  border: 2px solid transparent; border-radius: 0.5rem;
  background: var(--surface-sunk); cursor: pointer;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-pressed="true"] { border-color: var(--gold-deep); }

.product__cat { font-size: 0.925rem; font-weight: 600; color: var(--gold-deep); text-decoration: none; }
.product__cat:hover { text-decoration: underline; }
.product__title { margin-top: 0.4rem; font-size: clamp(2.2rem, 1.65rem + 2.1vw, 3.4rem); }
.product__tagline { margin-top: 0.75rem; max-width: 44ch; font-size: 1.1rem; color: var(--ink-muted); }
.product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.75rem; margin-top: 1.5rem; font-size: 1.65rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.product__price s { font-size: 1.05rem; font-weight: 400; color: var(--ink-muted); }
.save { padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--clay-soft); color: var(--clay); font-size: 0.85rem; font-weight: 600; }
.product__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.6rem; font-size: 0.925rem; }
.product__size { color: var(--ink-muted); }
.stock { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.stock::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--success); }
.stock--low { color: var(--clay); }
.stock--out { color: var(--ink-muted); }

.buy { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.buy .btn[disabled] { cursor: not-allowed; }
.product__cats { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
.price__from { font-weight: 400; color: var(--ink-muted); }

/* Size / pack choices */
.choices { min-width: 0; margin: 1.5rem 0 0; padding: 0; border: 0; }
.choices__legend { margin-bottom: 0.7rem; padding: 0; font-weight: 600; font-size: 0.95rem; }
.choices__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.25rem, 1fr)); gap: 0.6rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__body {
  display: grid; gap: 0.15rem; align-content: start;
  height: 100%; padding: 0.85rem 0.75rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface-raised); text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.choice:hover .choice__body { border-color: var(--ink); }
.choice input:checked + .choice__body { border-color: var(--gold-deep); box-shadow: 0 0 0 1px var(--gold-deep); background: var(--gold-tint); }
.choice input:focus-visible + .choice__body { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.choice input:disabled { cursor: not-allowed; }
.choice input:disabled + .choice__body { opacity: 0.55; }
.choice__label { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.choice__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.choice__was { font-size: 0.8rem; color: var(--clay); text-decoration: line-through; }
.choice__note { font-size: 0.8rem; color: var(--ink-muted); }

/* What's inside a package */
.inside { margin-top: 1.75rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.inside__title { margin-bottom: 0.9rem; font-size: 1.35rem; }
.inside__list { display: grid; gap: 0.75rem; }
.inside__item { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; }
.inside__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 0.35rem 0.35rem; background: var(--surface-sunk); }
.inside__img img { width: 100%; height: 100%; object-fit: cover; }
.inside__name a { font-weight: 600; text-decoration: none; }
.inside__name a:hover { text-decoration: underline; }
.inside__qty { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.badge--package { top: 1.4rem; bottom: auto; background: var(--hammam); color: var(--gold); }
.inside__tagline { display: block; font-size: 0.85rem; color: var(--ink-muted); }

/* "Trending now" carousel */
.carousel {
  position: relative; /* keeps hidden screen-reader labels inside the scroller, so the page can’t scroll sideways */
  display: grid; grid-auto-flow: column; grid-auto-columns: min(88%, 30rem);
  gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 0.25rem;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
@media (min-width: 48rem) { .carousel { grid-auto-columns: calc((100% - 2 * var(--gutter) - 1rem) / 2); } }
@media (min-width: 72rem) { .carousel { grid-auto-columns: calc((100% - 1rem) / 2); margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } }

.trend {
  scroll-snap-align: start;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface-raised);
}
.trend__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; min-width: 0; padding: 1.25rem 1.1rem; }
.trend__badge { padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--gold-deep); color: oklch(0.98 0.006 80); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.trend__name { margin-top: 0.35rem; font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem); line-height: 1.15; overflow-wrap: anywhere; }
.trend__name a { text-decoration: none; }
.trend__name a:hover { text-decoration: underline; }
.trend__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.trend__price s { font-weight: 400; font-size: 0.95rem; color: var(--ink-muted); }
.trend__price--pending { font-weight: 500; font-size: 0.95rem; color: var(--ink-muted); }
.trend__size { font-size: 0.85rem; color: var(--ink-muted); }
.trend__action { margin-top: auto; padding-top: 0.75rem; }
.trend__action .btn { min-height: 2.6rem; padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.trend__media { display: block; min-height: 100%; background: var(--surface-sunk); }
.trend__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
@media (hover: hover) { .trend:hover .trend__media img { transform: scale(1.04); } }

.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.carousel__dots { display: flex; flex-wrap: wrap; justify-content: center; }
.carousel__dot { display: grid; place-items: center; width: 1.6rem; height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; }
.carousel__dot::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--line-strong); transition: width 0.3s var(--ease-out), background-color 0.3s; }
.carousel__dot[aria-current="true"]::before { width: 1.25rem; background: var(--ink); }
.carousel__arrow { display: none; border: 1px solid var(--line-strong); }
.carousel__arrow:disabled { opacity: 0.35; cursor: default; }
@media (min-width: 48rem) { .carousel__arrow { display: inline-grid; } }
.line__option { font-weight: 600; color: var(--ink); }
.buy .btn { flex: 1 1 12rem; }
.product__wa { margin-top: 0.75rem; }
.qty {
  display: inline-flex; align-items: center;
  height: 3.25rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface-raised);
}
.qty button { display: grid; place-items: center; width: 2.75rem; height: 100%; border: 0; border-radius: 999px; background: none; cursor: pointer; }
.qty button:hover { background: var(--surface-sunk); }
.qty input { width: 2.5rem; border: 0; background: transparent; text-align: center; font-weight: 600; appearance: textfield; -moz-appearance: textfield; }
.qty input:focus { outline: none; }
.qty:focus-within { border-color: var(--gold-deep); }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 2.75rem; }
.qty--sm button { width: 2.5rem; }
.qty .icon { width: 1rem; height: 1rem; }

.assurances { display: grid; gap: 0.7rem; margin-top: 1.75rem !important; font-size: 0.95rem; color: var(--ink-muted); }
.assurances li { display: flex; gap: 0.65rem; align-items: center; }
.assurances .icon { color: var(--gold-deep); }

.accordion { margin-top: 2rem; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.5rem; padding: 0.9rem 0;
  font-family: var(--font-display); font-size: 1.3rem;
  cursor: pointer; list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform 0.3s var(--ease-out); }
.accordion details[open] summary .icon { transform: rotate(45deg); }
.accordion__body { padding-bottom: 1.4rem; max-width: 65ch; }
.prose p + p { margin-top: 0.9rem; }
.prose ol, .prose ul { margin: 0; padding-left: 1.3rem; }
.prose li + li { margin-top: 0.45rem; }
.prose a { color: var(--gold-deep); font-weight: 600; }

/* ---------- Bag ---------- */

.cart { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .cart { grid-template-columns: minmax(0, 1fr) 22rem; gap: 3.5rem; align-items: start; } }
.lines { border-top: 1px solid var(--line) !important; }
.line { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .line { grid-template-columns: 7rem minmax(0, 1fr) auto; gap: 1.25rem; } }
.line__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 0.5rem 0.5rem; background: var(--surface-sunk); }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; text-decoration: none; }
.line__name:hover { text-decoration: underline; }
.line__meta { margin-top: 0.2rem; font-size: 0.9rem; color: var(--ink-muted); }
.line__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.8rem; }
.line__total { grid-column: 2; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 40rem) { .line__total { grid-column: auto; text-align: right; } }
.cart__continue { margin-top: 1.5rem; }

.summary { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
@media (min-width: 56rem) { .summary { position: sticky; top: 6rem; } }
.summary__title { margin-bottom: 1rem; font-size: 1.6rem; }
.summary__rows { display: grid; gap: 0.6rem; margin: 0; }
.summary__rows > div { display: flex; justify-content: space-between; gap: 1rem; }
.summary__rows dt { color: var(--ink-muted); }
.summary__rows dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.summary__total { margin-top: 0.35rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 1.15rem; font-weight: 700; }
.summary__total dt { color: var(--ink); }
.summary .btn { margin-top: 1.25rem; }
.summary__note { display: flex; justify-content: center; align-items: center; gap: 0.4rem; margin-top: 0.9rem; font-size: 0.85rem; color: var(--ink-muted); text-align: center; }
.summary__note .icon { width: 1rem; height: 1rem; }
.summary__edit { display: block; margin-top: 0.4rem; text-align: center; font-size: 0.9rem; color: var(--ink-muted); }
.progress { margin-top: 1.1rem; font-size: 0.875rem; }
.progress progress {
  width: 100%; height: 0.4rem; margin-top: 0.45rem;
  appearance: none; border: 0; border-radius: 999px; overflow: hidden;
  background: var(--line);
}
.progress progress::-webkit-progress-bar { background: var(--line); }
.progress progress::-webkit-progress-value { background: var(--gold-deep); border-radius: 999px; }
.progress progress::-moz-progress-bar { background: var(--gold-deep); border-radius: 999px; }

/* ---------- Checkout ---------- */

.checkout { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .checkout { grid-template-columns: minmax(0, 1fr) 24rem; gap: 3.5rem; align-items: start; } }
.step { min-width: 0; margin: 0; padding: 0 0 2rem; border: 0; }
.step + .step { padding-top: 2rem; border-top: 1px solid var(--line); }
.step__legend { float: left; width: 100%; display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; padding: 0; font-family: var(--font-display); font-size: 1.6rem; }
.step__legend + * { clear: both; }
.step__num { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--surface); font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; }

.pay-options { display: grid; gap: 0.75rem; }
.pay-option {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 1.1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface-raised);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.pay-option:hover { border-color: var(--ink); }
.pay-option:has(input:checked) { border-color: var(--gold-deep); box-shadow: 0 0 0 1px var(--gold-deep); background: var(--gold-tint); }
.pay-option:has(input:focus-visible) { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.pay-option input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--gold-deep); }
.pay-option__body { flex: 1; }
.pay-option__title { display: block; font-weight: 600; }
.pay-option__text { display: block; margin-top: 0.2rem; font-size: 0.9rem; color: var(--ink-muted); }
.pay-option__icon { color: var(--gold-deep); width: 1.5rem; height: 1.5rem; }
.pay-options--error .pay-option { border-color: var(--danger); }
.networks { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.networks span { padding: 0.15rem 0.55rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.test-note { margin-top: 0.75rem; }

.mini-lines { display: grid; gap: 0.9rem; margin-bottom: 1.1rem !important; }
.mini-line { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; font-size: 0.925rem; }
.mini-line__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 0.35rem 0.35rem; background: var(--surface-sunk); }
.mini-line__img img { width: 100%; height: 100%; object-fit: cover; }
.mini-line__name { display: block; font-weight: 600; line-height: 1.3; }
.mini-line__qty { display: block; font-size: 0.85rem; color: var(--ink-muted); }
.mini-line__total { font-variant-numeric: tabular-nums; }

/* ---------- Order status ---------- */

.order-hero { padding-block: clamp(2rem, 5vw, 3.5rem) 1rem; text-align: center; }
.order-hero .page-lede { margin-inline: auto; }
.order-hero__icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--success-soft); color: var(--success); }
.order-hero__icon--muted { background: var(--surface-sunk); color: var(--ink-muted); }
.order-hero__icon .icon { width: 1.6rem; height: 1.6rem; stroke-width: 2; }
.order-number {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 1.25rem;
  padding: 0.25rem 0.3rem 0.25rem 1rem;
  border: 1px dashed var(--line-strong); border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.order-number strong { letter-spacing: 0.05em; }

.track { display: grid; grid-template-columns: repeat(5, 1fr); margin: 2rem 0 2.5rem !important; }
.track li { position: relative; padding: 1.8rem 0.2rem 0; text-align: center; font-size: 0.8rem; line-height: 1.3; color: var(--ink-muted); }
.track li::before {
  content: ""; position: absolute; top: 0.3rem; left: 50%; z-index: 1;
  width: 1rem; height: 1rem; transform: translateX(-50%);
  border: 2px solid var(--line-strong); border-radius: 50%;
  background: var(--surface);
}
.track li::after { content: ""; position: absolute; top: 0.75rem; right: 50%; width: 100%; height: 2px; background: var(--line); }
.track li:first-child::after { display: none; }
.track li.is-done { color: var(--ink); }
.track li.is-done::before { border-color: var(--gold-deep); background: var(--gold-deep); }
.track li.is-done::after { background: var(--gold-deep); }
.track li.is-current { font-weight: 600; }
.track li.is-current::before { box-shadow: 0 0 0 5px oklch(0.78 0.105 82 / 0.35); }
@media (min-width: 40rem) { .track li { font-size: 0.875rem; } }

.pay-callout {
  display: grid; gap: 1.25rem;
  margin-bottom: 2rem; padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--hammam); color: var(--on-dark);
}
@media (min-width: 48rem) { .pay-callout { grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: 1.75rem 2rem; } }
.pay-callout__title { font-size: 1.6rem; margin-bottom: 0.4rem; }
.pay-callout p { color: var(--on-dark-muted); max-width: 52ch; }
.pay-callout p strong { color: var(--on-dark); }
.pay-callout__actions { display: grid; gap: 0.6rem; }
.pay-callout .btn--outline { border-color: var(--hammam-line); color: var(--on-dark); }
.pay-callout .btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.pay-callout :focus-visible { outline-color: var(--gold); }

.order-grid { display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .order-grid { grid-template-columns: minmax(0, 1fr) 22rem; gap: 2rem; align-items: start; } }
.order-side { display: grid; gap: 1.25rem; }
.panel { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.panel__title { margin-bottom: 0.9rem; font-size: 1.4rem; }
.panel__line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.panel__notes { margin-top: 0.75rem; }
.panel__buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.address { font-style: normal; line-height: 1.65; }
.order-foot { margin-top: 2rem; text-align: center; font-size: 0.9rem; color: var(--ink-muted); }
.pill { display: inline-flex; align-items: center; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--surface-sunk); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.pill--paid { background: var(--success-soft); color: oklch(0.36 0.08 155); }
.pill--failed { background: var(--danger-soft); color: oklch(0.42 0.14 28); }
.pill--pending, .pill--unpaid { background: var(--gold-tint); color: oklch(0.4 0.07 70); }
.pill--refunded { background: var(--surface-sunk); color: var(--ink-muted); }

/* ---------- Content pages ---------- */

.form-grid.panel { gap: 1.15rem; }
.prose-section { padding-block: 1.5rem; }
.prose-section h2 { margin-bottom: 1rem; font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem); }
.prose-section > p { max-width: 65ch; margin-bottom: 1.25rem; text-wrap: pretty; }
.table-wrap { position: relative; overflow-x: auto; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 0.975rem; }
.fee-table th, .fee-table td { padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--line); text-align: left; }
.fee-table thead th { font-size: 0.85rem; color: var(--ink-muted); font-weight: 600; }
.fee-table tbody th { font-weight: 500; }
.fee-table td, .fee-table thead th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.75rem; }
.contact-actions--start { justify-content: flex-start; margin-top: 0.5rem; }

.story-hero { background: var(--hammam) url("/img/pattern.svg"); background-size: 7.5rem; color: var(--on-dark); }
.story-hero__grid { display: grid; gap: 3rem; align-items: center; padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem); }
@media (min-width: 56rem) { .story-hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }
.story-hero__title { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.25rem); max-width: 16ch; }
.story-hero__text { margin: 1.5rem 0 2rem; max-width: 55ch; color: var(--on-dark-muted); font-size: 1.075rem; }
.story-hero__media::before { display: block; }

.error-page { display: grid; justify-items: center; gap: 0.5rem; padding-block: clamp(3rem, 10vw, 6rem); text-align: center; }
.error-page__mark { width: 3rem; height: 3.75rem; margin-bottom: 1rem; color: var(--gold-deep); stroke-width: 1.3; }

/* ---------- Simulated payment ---------- */

.mock {
  display: grid; place-items: center;
  min-height: 100vh; min-height: 100dvh;
  padding: 1.5rem var(--gutter);
  background: var(--hammam) url("/img/pattern.svg"); background-size: 7.5rem;
  color: var(--on-dark);
}
.mock__device {
  width: min(100%, 24rem);
  padding: 2rem 1.5rem;
  border: 1px solid var(--hammam-line); border-radius: 2rem;
  background: var(--hammam-2);
  text-align: center;
  box-shadow: 0 2rem 5rem oklch(0.1 0.02 60 / 0.5);
}
.mock__badge { display: inline-block; margin-bottom: 1.5rem; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--gold); color: var(--hammam); font-size: 0.8rem; font-weight: 600; }
.mock__icon { width: 2.5rem; height: 2.5rem; margin: 0 auto 1rem; color: var(--gold); }
.mock__title { font-size: 1.75rem; }
.mock__desc { margin-top: 0.9rem; color: var(--on-dark-muted); }
.mock__desc strong { color: var(--on-dark); }
.mock__note { margin-top: 1rem; font-size: 0.85rem; color: var(--on-dark-muted); }
.mock__actions { display: grid; gap: 0.6rem; margin-top: 1.75rem; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: var(--z-toast);
  display: flex; align-items: center; gap: 1rem;
  width: max-content; max-width: calc(100vw - 2rem);
  padding: 0.7rem 0.7rem 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--hammam); color: var(--on-dark);
  box-shadow: 0 0.75rem 2.5rem oklch(0.1 0.02 60 / 0.35);
  font-size: 0.925rem;
  opacity: 0; transform: translate(-50%, 1rem);
  transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast[data-type="error"] { background: oklch(0.38 0.12 28); }
.toast a { flex: none; padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--gold); color: var(--hammam); font-weight: 600; text-decoration: none; }

/* ---------- Stars, reviews and feedback ---------- */

.stars { display: inline-flex; gap: 0.1rem; color: var(--line-strong); vertical-align: middle; }
.stars .icon { width: 1.05rem; height: 1.05rem; fill: currentColor; stroke: none; }
.stars .icon.is-on { color: var(--gold); }
.stars--lg .icon { width: 1.45rem; height: 1.45rem; }

.product__rating { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.8rem; font-size: 0.925rem; color: var(--ink-muted); text-decoration: none; }
.product__rating:hover span { color: var(--ink); text-decoration: underline; }

.section__note { margin-top: 0.6rem; max-width: 52ch; color: var(--ink-muted); }

.reviews { display: grid; gap: 0; }
.review { display: grid; gap: 0.55rem; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.review:first-child { padding-top: 0; border-top: 0; }
.review__about { font-size: 0.875rem; color: var(--ink-muted); }
.review__about a { color: var(--gold-deep); font-weight: 600; }
.review__body { margin: 0; font-size: 1.02rem; line-height: 1.6; max-width: 62ch; }
.review__body p + p { margin-top: 0.6rem; }
.review__by { font-size: 0.875rem; color: var(--ink-muted); }
.review__name { font-weight: 600; color: var(--ink); }

.rating-summary__score { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; }
.rating-summary__count { color: var(--ink-muted); font-size: 0.925rem; }
.rating-summary__empty { color: var(--ink-muted); }

/* Reviews page */
.reviews-page { display: grid; gap: 2.5rem; padding-bottom: clamp(3rem, 8vw, 5rem); }
@media (min-width: 56rem) { .reviews-page { grid-template-columns: 17rem minmax(0, 1fr); gap: 4rem; align-items: start; } }
.rating-summary { display: grid; gap: 0.7rem; align-content: start; justify-items: start; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface-sunk); }
@media (min-width: 56rem) { .rating-summary { position: sticky; top: 6rem; } }
.rating-summary .btn { margin-top: 0.5rem; }
.rating-bars { display: grid; gap: 0.35rem; width: 100%; margin-top: 0.3rem; }
.rating-bars li { display: grid; grid-template-columns: 2.4rem 1fr 1.8rem; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.rating-bars__label { display: inline-flex; align-items: center; gap: 0.2rem; }
.rating-bars__label .icon { width: 0.85rem; height: 0.85rem; fill: var(--gold); stroke: none; }
.rating-bars__n { text-align: right; color: var(--ink-muted); }
.rating-bars progress { width: 100%; height: 0.45rem; border: 0; border-radius: 999px; overflow: hidden; background: var(--line); appearance: none; }
.rating-bars progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
.rating-bars progress::-webkit-progress-value { background: var(--gold); border-radius: 999px; }
.rating-bars progress::-moz-progress-bar { background: var(--gold); border-radius: 999px; }
.reviews-page__list .empty { padding-block: 1rem 2.5rem; }
.write-review { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); max-width: 38rem; scroll-margin-top: 6rem; }
.write-review__title { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); margin-bottom: 1.25rem; }

/* Product page reviews */
.product-reviews { scroll-margin-top: 5rem; }
.product-reviews__grid { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .product-reviews__grid { grid-template-columns: 16rem minmax(0, 1fr); gap: 4rem; align-items: start; } }
.product-reviews__summary { display: grid; gap: 0.6rem; justify-items: start; align-content: start; }
.product-reviews__summary .btn { margin-top: 0.6rem; }
.product-reviews__empty { max-width: 34ch; color: var(--ink-muted); }

/* Review form */
.review-form { display: grid; gap: 1.1rem; }
.review-form__row { display: grid; gap: 1.1rem; }
@media (min-width: 36rem) { .review-form__row { grid-template-columns: 1fr 1fr; } }
.review-form__note { font-size: 0.85rem; color: var(--ink-muted); }
.review-form__error { margin: 0; }
.rate-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.rate-field legend { padding: 0; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.925rem; }
.rate { display: flex; gap: 0.15rem; }
.rate__star { position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--line-strong); cursor: pointer; }
.rate__star input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.rate__star .icon { width: 2rem; height: 2rem; fill: currentColor; stroke: none; transition: transform 0.15s var(--ease-out), color 0.15s; }
.rate__star:has(input:focus-visible) { outline: 2px solid var(--gold-deep); outline-offset: 1px; border-radius: 6px; }
/* Stars up to the chosen one light up; while hovering, up to the hovered one. */
.rate__star:has(input:checked), .rate__star:has(~ .rate__star input:checked) { color: var(--gold); }
@media (hover: hover) {
  .rate:hover .rate__star { color: var(--line-strong); }
  .rate:hover .rate__star:hover, .rate:hover .rate__star:has(~ .rate__star:hover) { color: var(--gold); }
  .rate__star:hover .icon { transform: scale(1.12); }
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Feedback button and popup */
.feedback-fab {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: var(--z-sticky);
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 2.9rem; padding: 0.6rem 1.05rem 0.6rem 0.9rem;
  border-radius: 999px;
  background: var(--hammam); color: var(--on-dark);
  box-shadow: 0 0.5rem 1.75rem oklch(0.1 0.02 60 / 0.28);
  font-weight: 600; font-size: 0.925rem; text-decoration: none;
  transition: transform 0.2s var(--ease-out), background-color 0.2s;
}
.feedback-fab .icon { color: var(--gold); }
.feedback-fab:hover { background: var(--hammam-2); transform: translateY(-2px); }
.feedback-fab:focus-visible { outline-color: var(--gold); }
body.menu-open .feedback-fab { display: none; }

.sheet {
  width: min(100% - 1.5rem, 34rem); max-height: min(100dvh - 1.5rem, 52rem);
  margin: auto; padding: 0;
  border: 0; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1.5rem 4rem oklch(0.1 0.02 60 / 0.4);
  overflow: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: oklch(0.15 0.02 60 / 0.55); backdrop-filter: blur(2px); }
.sheet[open] { animation: sheet-in 0.3s var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(1rem); } }
@media (max-width: 35.99rem) {
  .sheet { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .sheet[open] { animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(100%); } }
}
.sheet__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1rem 0.75rem 1.4rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.sheet__title { font-size: 1.5rem; }
.sheet__body { padding: 1.1rem 1.4rem 1.5rem; }
.sheet__lede { margin-bottom: 1.1rem; color: var(--ink-muted); font-size: 0.95rem; }
.sheet__done { display: grid; justify-items: center; gap: 0.8rem; padding-block: 2.5rem; text-align: center; }
.sheet__done h3 { font-size: 1.8rem; }
.sheet__done p { max-width: 32ch; color: var(--ink-muted); }
.sheet__done-icon { width: 3rem; height: 3rem; padding: 0.6rem; border-radius: 999px; background: var(--success-soft); color: var(--success); stroke-width: 2; }
body.sheet-open { overflow: hidden; }

/* Before & after */
.compares { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .compares { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .compares { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.compare { margin: 0; display: grid; gap: 0.7rem; }
.compare__caption { font-size: 0.95rem; color: var(--ink-muted); }
/* Without the script: before and after side by side. */
.compare__frame { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.compare__frame > .compare__img { order: 2; }
.compare__before { order: 1; }
.compare__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--surface-sunk); }
.compare__tag, .compare__handle { display: none; }
/* With the script: one frame, drag to reveal. */
.compare.is-ready .compare__frame { display: block; overflow: hidden; border-radius: var(--radius-lg); --pos: 50%; touch-action: pan-y; user-select: none; }
.compare.is-ready .compare__img { display: block; border-radius: 0; }
.compare.is-ready .compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare.is-ready .compare__before .compare__img { height: 100%; }
.compare.is-ready .compare__tag {
  position: absolute; top: 0.75rem; display: block; padding: 0.25rem 0.65rem; border-radius: 999px;
  background: oklch(0.2 0.02 60 / 0.72); color: var(--on-dark); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  pointer-events: none;
}
.compare__tag--before { left: 0.75rem; }
.compare__tag--after { right: 0.75rem; }
.compare.is-ready .compare__frame::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--surface-raised); box-shadow: 0 0 0.5rem oklch(0.1 0.02 60 / 0.35); pointer-events: none;
}
.compare.is-ready .compare__handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem; border-radius: 999px;
  background: var(--surface-raised); color: var(--ink); box-shadow: 0 0.25rem 1rem oklch(0.1 0.02 60 / 0.3); pointer-events: none;
}
.compare__handle .icon { width: 0.95rem; height: 0.95rem; }
.compare__range { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.compare.is-ready .compare__frame { cursor: ew-resize; }
.compare.is-ready .compare__frame:has(.compare__range:focus-visible) { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile Money by transfer */
.transfer-steps { display: grid; gap: 0.45rem; margin: 1rem 0 0.9rem; padding-left: 1.2rem; }
.transfer-steps li { padding-left: 0.25rem; }
.transfer-form { display: grid; gap: 0.45rem; text-align: left; }
.transfer-form label { font-weight: 600; font-size: 0.9rem; }
