﻿/* ---------- Fonts ---------- */
/* Kalameh files go in /fonts (see fonts/README.md). Vazirmatn is the fallback until then. */
@font-face { font-family: "Kalameh"; src: url("../fonts/Kalameh-Light.woff2") format("woff2"), url("../fonts/Kalameh-Light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Kalameh"; src: url("../fonts/Kalameh-Regular.woff2") format("woff2"), url("../fonts/Kalameh-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kalameh"; src: url("../fonts/Kalameh-Bold.woff2") format("woff2"), url("../fonts/Kalameh-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Kalameh"; src: url("../fonts/Kalameh-Black.woff2") format("woff2"), url("../fonts/Kalameh-Black.woff") format("woff"); font-weight: 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --white: #ffffff;
  --mist: #f6f3f2;
  --ink: #2a1f28;
  --ink-soft: #6e6168;
  --rose: #8c5a6e;
  --line: #e6dfdd;
  --gold: #cdac2a;
  /* Hamburger menus: see-through white, blurred so the text stays readable */
  --menu-glass: linear-gradient(150deg, rgb(255 255 255 / .5), rgb(255 255 255 / .26));
  --menu-glass-blur: blur(26px) saturate(180%);
  --menu-glass-edge: rgb(255 255 255 / .55);
  --menu-glass-line: rgb(42 31 40 / .1);
  /* Warmer and less see-through than the glass, so names read clearly over the hero video */
  --menu-sheet: linear-gradient(160deg, rgb(255 252 250 / .9), rgb(250 245 243 / .82));

  --font: "Kalameh", "Vazirmatn", system-ui, sans-serif;
  --latin: "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4vw, 3rem);
  --step-hero: clamp(3.4rem, 11vw, 9.5rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.8;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; }
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.section-title { font-size: var(--step-3); font-weight: 900; line-height: 1.25; }
.section-lede { margin-top: 12px; color: var(--ink-soft); font-size: var(--step-1); max-width: 40ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  font-weight: 700; font-size: var(--step-0);
  border: 1px solid transparent;
  /* Hover fill sweeps in from the reading start (right, in RTL) */
  background-image: linear-gradient(var(--btn-fill), var(--btn-fill));
  background-repeat: no-repeat; background-position: right; background-size: 0% 100%;
  transition: background-size .45s var(--ease), color .3s, border-color .3s, transform .15s;
}
.btn:hover { background-size: 100% 100%; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--light { --btn-fill: var(--mist); background-color: var(--white); color: var(--ink); }
.btn--dark { --btn-fill: var(--rose); background-color: var(--ink); color: var(--white); }
.btn--outline { --btn-fill: var(--ink); border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--white);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.site-header.is-solid { background: var(--white); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
/* Gold reading-progress line, only once the header is solid */
.site-header__progress {
  position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; opacity: 0; transition: opacity .3s;
}
.site-header.is-solid .site-header__progress { opacity: 1; }

.nav {
  height: var(--header-h);
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.nav__group { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); font-size: var(--step--1); font-weight: 700; }
.nav__group--end { justify-content: flex-end; }
.nav__group--start { gap: 4px; }
.nav__group a { padding: 10px 0; position: relative; }
.nav__group a:not(.icon-link)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transition: transform .25s var(--ease);
}
.nav__group a:hover::after { transform: scaleX(1); }
/* English links (About, Contact) share the greeting's Latin face */
.nav__group--end a:lang(en) { font-family: "Jost", var(--latin); font-weight: 400; font-size: .95rem; letter-spacing: .02em; }

.brand { display: flex; align-items: center; }
.brand__logo { height: 34px; width: auto; transition: filter .3s; }
/* White over the hero photo, original gold once the header turns solid */
.site-header:not(.is-solid) .brand__logo { filter: brightness(0) invert(1); }

.icon-link { display: inline-grid; place-items: center; width: 44px; height: 44px; }
.icon-link svg, .contact svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.nav__toggle { display: none; }
.nav__account-mobile, .nav__search-mobile, .nav__cart-mobile { display: none; }

/* Cart: a bag icon with the item count in a small dark disc at its top corner (js/cart.js) */
.cart-link { position: relative; }
.cart-link__count {
  position: absolute; top: 6px; inset-inline-end: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  display: grid; place-items: center; background: var(--ink); color: var(--white);
  font-size: .6875rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
.cart-link__count[hidden] { display: none; }
/* Over the hero the header is white text: the disc turns white so it stays visible */
.site-header:not(.is-solid):not(.menu-open) .cart-link__count { background: var(--white); color: var(--ink); }
/* A product was just added: the bag gives one small nod */
.cart-link.is-bumped svg { animation: cart-bump .5s var(--ease); }
@keyframes cart-bump { 30% { transform: translateY(-3px) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .cart-link.is-bumped svg { animation: none; } }
.search-trigger { background: none; border: 0; padding: 0; }
/* "Hi username" beside the search icon once a member is signed in */
.nav__greeting {
  margin: 0; margin-inline-start: 6px; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: "Jost", var(--latin); font-weight: 400; font-size: .95rem; letter-spacing: .02em;
}
.nav__greeting[hidden] { display: none; }
.nav__greeting--mobile { display: none; }

/* Account trigger: a small gold dot marks a signed-in customer */
.account-trigger { position: relative; background: none; border: 0; padding: 0; }
.account-trigger__dot {
  position: absolute; top: 10px; inset-inline-end: 9px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); transform: scale(0); transition: transform .35s var(--ease);
}
.account-trigger.is-signed-in .account-trigger__dot { transform: scale(1); }
.mobile-menu { display: none; }
html.menu-lock { overflow: hidden; }

/* Category menu: hamburger beside the account icon, a list of names dropping from its edge */
.shop-menu { position: relative; }
.shop-menu__toggle { background: none; border: 0; padding: 0; }
.shop-menu__toggle path { transition: transform .3s var(--ease), opacity .2s; transform-box: view-box; transform-origin: 12px 12px; }
.shop-menu__toggle[aria-expanded="true"] path:nth-child(1) { transform: rotate(45deg) translateY(5px); }
.shop-menu__toggle[aria-expanded="true"] path:nth-child(2) { opacity: 0; }
.shop-menu__toggle[aria-expanded="true"] path:nth-child(3) { transform: rotate(-45deg) translateY(-5px); }
.shop-menu__panel {
  /* No sheet behind it: the names sit straight on the page in the header's colour
     (white over the hero, ink once the header is solid) */
  position: absolute; top: calc(100% + 6px); inset-inline-start: 4px; width: 220px;
  color: inherit;
}
.site-header:not(.is-solid) .shop-menu__panel { text-shadow: 0 1px 14px rgb(42 31 40 / .6); }
.shop-menu__panel:not([hidden]) { animation: shop-menu-in .35s var(--ease); }
@keyframes shop-menu-in { from { opacity: 0; transform: translateY(-8px); } }
/* Rows arrive one after another as the list opens */
.shop-menu__panel:not([hidden]) .menu-cat, .mobile-menu:not([hidden]) .menu-cat { animation: menu-row-in .5s var(--ease) backwards; }
.shop-menu__panel li:nth-child(2) .menu-cat, .mobile-menu__cats li:nth-child(2) .menu-cat { animation-delay: .05s; }
.shop-menu__panel li:nth-child(3) .menu-cat, .mobile-menu__cats li:nth-child(3) .menu-cat { animation-delay: .1s; }
.shop-menu__panel li:nth-child(4) .menu-cat, .mobile-menu__cats li:nth-child(4) .menu-cat { animation-delay: .15s; }
@keyframes menu-row-in { from { opacity: 0; transform: translateX(12px); } }
@media (prefers-reduced-motion: reduce) {
  .shop-menu__panel:not([hidden]), .mobile-menu:not([hidden]),
  .shop-menu__panel:not([hidden]) .menu-cat, .mobile-menu:not([hidden]) .menu-cat,
  .shop-menu__panel:not([hidden]) .menu-sub, .mobile-menu:not([hidden]) .menu-sub { animation: none; }
}

/* Category row shared by the desktop list and the mobile menu: just the name */
.menu-cat { display: flex; align-items: center; padding: 8px 0; }
.nav__group a.menu-cat { padding: 8px 0; }
.nav__group a.menu-cat::after { content: none; }
.menu-cat__text { display: grid; line-height: 1.5; }
/* On hover the name grows a touch, from the reading start (right) so it stays anchored to the edge */
.menu-cat__name {
  position: relative; justify-self: start; font-size: var(--step-1); font-weight: 700;
  transform-origin: right center; transition: transform .3s var(--ease);
}
.menu-cat:hover .menu-cat__name, .menu-cat:focus-visible .menu-cat__name { transform: scale(1.08); }
/* Accessories' three kinds, indented under it in a lighter, smaller voice */
.menu-subs { display: grid; padding-inline-start: 16px; margin-top: -2px; margin-bottom: 4px; }
.menu-sub {
  display: block; justify-self: start; padding: 4px 0; font-size: var(--step-0); font-weight: 400; opacity: .82;
  transform-origin: right center; transition: transform .3s var(--ease), opacity .2s;
}
.nav__group a.menu-sub { padding: 4px 0; }
.nav__group a.menu-sub::after { content: none; }
.menu-sub:hover, .menu-sub:focus-visible { opacity: 1; transform: scale(1.06); }
/* The kinds of لباس and اکسسوری stay folded away until they're asked for: with a mouse, when the pointer
   (or keyboard focus) reaches the category; on touch screens, when it is tapped (.is-open, main.js) */
.menu-subs {
  max-height: 0; opacity: 0; overflow: hidden; visibility: hidden; margin-block: 0;
  transition: max-height .4s var(--ease), opacity .3s, margin .4s var(--ease), visibility 0s .4s;
}
li.is-open > .menu-subs {
  max-height: 28rem; opacity: 1; visibility: visible; margin-block: -2px 4px;
  transition: max-height .45s var(--ease), opacity .35s .05s, margin .45s var(--ease), visibility 0s;
}
/* Keyboard focus only (:focus-visible): opening the menu with the mouse focuses لباس, which must not
   hold its kinds open; they should open on hover like اکسسوری's */
@media (hover: hover) {
  li:hover > .menu-subs, li:has(:focus-visible) > .menu-subs {
    max-height: 28rem; opacity: 1; visibility: visible; margin-block: -2px 4px;
    transition: max-height .45s var(--ease), opacity .35s .05s, margin .45s var(--ease), visibility 0s;
  }
}
/* A small chevron after اکسسوری on touch screens says it opens; it turns when open */
@media (hover: none) {
  li:has(> .menu-subs) > .menu-cat .menu-cat__text::after {
    content: ""; position: absolute; inset-inline-end: -28px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
    border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .3s var(--ease);
  }
  li.is-open > .menu-cat .menu-cat__text::after { transform: translateY(4px) rotate(-135deg); }
  li:has(> .menu-subs) > .menu-cat .menu-cat__text { position: relative; }
}
/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  color: var(--white); overflow: hidden; isolation: isolate;
  background: #3b3236;
}
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(20 12 18 / .5) 0%, rgb(20 12 18 / .25) 35%, rgb(20 12 18 / .3) 60%, rgb(20 12 18 / .65) 100%);
}
.hero__content { padding: calc(var(--header-h) + 24px) var(--gutter) 96px; display: grid; justify-items: center; }

.hero__kicker {
  font-family: var(--latin); font-size: 0.8rem; letter-spacing: 1.1em; margin-inline-end: -1.1em;
  opacity: 0; animation: fade 1s .2s var(--ease) forwards;
}
.hero__title { font-size: var(--step-hero); font-weight: 900; line-height: 1.15; margin-top: 8px; }
.hero__title[lang="en"] { font-family: "Allura", cursive; font-size: clamp(2.8rem, 13vw, 10rem); font-weight: 400; line-height: 1.3; white-space: nowrap; }
/* The headline rises from behind a horizon line, as in the reference */
.reveal { display: block; overflow: hidden; padding-inline: .1em; }
.reveal__line { display: block; transform: translateY(105%); animation: rise 1.4s .35s var(--ease) forwards; }
.hero__cta { margin-top: 32px; opacity: 0; animation: fade 1s 1.4s var(--ease) forwards; }
/* Bare text link: grows a touch on hover while a hairline draws in beneath, like the header links */
.hero__cta {
  position: relative; padding: 10px 0; color: var(--white);
  font-family: "Jost", var(--latin); font-weight: 300; font-size: .95rem; letter-spacing: .3em; text-transform: uppercase;
  margin-inline-end: -.3em; /* cancel the trailing tracking so the word stays optically centred */
  transition: transform .3s var(--ease);
}
.hero__cta::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease);
}
.hero__cta:hover, .hero__cta:focus-visible { transform: scale(1.08); }
.hero__cta:hover::after, .hero__cta:focus-visible::after { transform: scaleX(1); }

/* Product slider (js/hero-stack.js), in place of the headline: "Autumn collection" above it, then one photo in the
   middle, two on each side of it, each smaller than the one before, and an arrow beyond each end.
   --tile and --reach (set by the script) are the middle photo's size and how far out from the centre the last
   small photo goes (see SLOTS / REACH in the script) */
.hero.has-stack .hero__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero.has-stack .hero__cta { animation: none; opacity: 0; }
.hero-stack { --tile: 120px; --reach: calc(var(--tile) * 1.67); width: min(100vw - 2 * var(--gutter), var(--max)); }
.hero-stack[hidden] { display: none; }
.hero-stack__words {
  margin: 4px 0 0; text-align: center;
  font-family: "Allura", cursive; font-size: clamp(2.4rem, 6.5vw, 6rem); line-height: 1.2; white-space: nowrap;
}
.hero-stack__slider { position: relative; height: calc(var(--tile) * 1.5); margin-top: 8px; }
.hero-stack__tiles { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hero-stack__tile {
  position: absolute; top: calc(50% - var(--tile) / 2); left: calc(50% - var(--tile) / 2);
  width: var(--tile); height: var(--tile); opacity: 0;
}
.hero-stack__tile a { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 4px; background: #e9e2df; box-shadow: 0 14px 30px rgb(20 12 18 / .35); }
.hero-stack__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hero-stack__tile a:hover img, .hero-stack__tile a:focus-visible img { transform: scale(1.06); }
.hero-stack__tile a:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.hero-stack__arrow {
  position: absolute; top: 50%; z-index: 5; translate: 0 -50%;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid rgb(255 255 255 / .55); border-radius: 50%; background: none; color: var(--white);
  cursor: pointer; transition: border-color .3s, scale .3s var(--ease);
}
.hero-stack__arrow:hover, .hero-stack__arrow:focus-visible { border-color: var(--white); scale: 1.08; }
.hero-stack__arrow:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.hero-stack__arrow--left { right: calc(50% + var(--reach) + 12px); }
.hero-stack__arrow--right { left: calc(50% + var(--reach) + 12px); }

.hero__scroll { position: absolute; bottom: 24px; inset-inline-start: 50%; translate: 50% 0; width: 44px; height: 56px; display: grid; place-items: center; }
.hero__scroll span { width: 1px; height: 40px; background: rgb(255 255 255 / .7); transform-origin: top; animation: drip 2.2s 2s ease-in-out infinite; }

@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Collection ---------- */
.collection { padding-block: clamp(72px, 10vw, 140px); }

/* Tagline scene: a tall track whose inner frame sticks to the viewport, so the sentence
   stays put while its words surface one by one (scrubbed from main.js via --p) */
.tagline-scene { height: 240vh; }
.tagline-scene__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; place-items: center; padding: var(--header-h) var(--gutter) 0;
}
@media (prefers-reduced-motion: reduce) {
  .tagline-scene { height: auto; }
  .tagline-scene__pin { position: static; height: auto; padding-block: clamp(96px, 14vw, 180px) 0; }
}
.tagline {
  max-width: 22ch; margin-inline: auto; text-align: center;
  font-family: var(--latin); font-weight: 300; font-size: clamp(1.6rem, 4.2vw, 3.2rem);
  line-height: 1.25; letter-spacing: -.01em; color: var(--ink);
}
.tagline em { font-family: "Allura", cursive; font-style: normal; font-size: 1.35em; color: var(--rose); }
/* --p: word arriving (0 → 1), --q: word leaving upward (0 → 1) */
.tagline__word { display: inline-block; white-space: pre; opacity: calc(var(--p, 1) * (1 - var(--q, 0))); transform: translateY(calc((1 - var(--p, 1)) * .45em - var(--q, 0) * .45em)); filter: blur(calc((1 - var(--p, 1) + var(--q, 0)) * 6px)); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease), filter 1.3s var(--ease); }

/* Categories: a tall track whose sticky frame holds a strip of full-screen panels.
   main.js slides the strip sideways (--x) as you scroll and drifts each giant word (--d)
   a little faster than its panel, so the cut-out photo seems to stand in front of it. */
.cat-scroll { height: 440vh; }
.cat-scroll__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cat-scroll__track { display: flex; height: 100%; transform: translateX(var(--x, 0px)); will-change: transform; }
.cat-panel {
  position: relative; flex: none; width: 100%; height: 100%; overflow: hidden;
  display: grid; place-items: center; color: var(--ink);
  scroll-margin-top: 0;
}
.cat-panel--clothes { --word: #8c5a6e; }
.cat-panel--bags { --word: #9a7a4e; }
.cat-panel--shoes { --word: #4a5470; }
.cat-panel--accessories { --word: #6a7352; }
/* A longer word than the others, so a smaller size keeps it about as wide */
.cat-panel--accessories .cat-panel__word { font-size: 14vw; }
.cat-panel__word {
  position: absolute; inset-inline: 0; top: 50%; text-align: center; white-space: nowrap;
  font-family: "Jost", var(--latin); font-weight: 300; text-transform: uppercase;
  font-size: 21vw; line-height: 1; letter-spacing: .02em; color: var(--word);
  transform: translate(var(--d, 0px), -58%);
}
.cat-panel__img {
  position: absolute; bottom: 0; left: 50%; translate: -50% 0;
  height: min(82%, 120vw); width: auto; max-width: none;
  filter: drop-shadow(0 24px 30px rgb(42 31 40 / .18));
  transition: transform .9s var(--ease); transform-origin: bottom center;
}
.cat-panel:hover .cat-panel__img { transform: scale(1.03); }

/* Name sits at the reading-start corner, out of the photo's way */
.cat-panel__label {
  position: absolute; inset-inline-start: var(--gutter); bottom: clamp(32px, 7vh, 72px);
  display: grid; justify-items: start; text-align: start;
}
/* Persian name answers the giant English word: the same light weight and the panel's own colour */
.cat-panel__name {
  font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 300; line-height: 1.1; color: var(--word);
  transition: transform .6s var(--ease);
}
.cat-panel:hover .cat-panel__name, .cat-panel:focus-visible .cat-panel__name { transform: translateX(-8px); }
.cat-panel:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; }

.cat-scroll__progress {
  position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--gold);
  transform: scaleX(var(--t, 0)); transform-origin: right;
}

@media (max-width: 820px) {
  .cat-panel__word { font-size: 24vw; top: 38%; }
  .cat-panel--accessories .cat-panel__word { font-size: 16vw; }
  .cat-panel__img { height: 68%; }
  .cat-panel__label { bottom: auto; top: calc(var(--header-h) + 20px); }
}

/* No sideways motion: the panels simply stack */
@media (prefers-reduced-motion: reduce) {
  .cat-scroll { height: auto; }
  .cat-scroll__pin { position: static; height: auto; }
  .cat-scroll__track { flex-direction: column; transform: none; }
  .cat-panel { height: 90vh; height: 90svh; }
  .cat-panel__word { transform: translateY(-58%); }
  .cat-scroll__progress { display: none; }
}

/* Showcase: four products in a row, each cut out and standing on the page */
.products { --gap: clamp(12px, 1.6vw, 24px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
/* Sliding: every set of four fills the viewport's width, the sets queue up sideways and the
   track moves one set at a time (--page, from main.js). RTL: later sets wait on the left */
.best__viewport { min-width: 0; overflow: clip; padding-top: 12px; margin-top: -12px; }
.products.is-sliding {
  grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--gap)) / 4);
  transform: translateX(calc(var(--page, 0) * (100% + var(--gap)))); transition: transform .8s var(--ease);
}
.best__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: clamp(24px, 3vw, 36px); }
.best__nav[hidden] { display: none; }
.best__arrow {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink);
  transition: background-color .25s, color .25s;
}
.best__arrow:hover { background: var(--mist); color: var(--rose); }
.best__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
/* Thin bars for the sets; the one on screen is longer and darker */
.best__dots { display: flex; gap: 6px; }
.best__dot { width: 18px; height: 20px; padding: 0; border: 0; background: none; position: relative; }
.best__dot::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line); transition: background-color .3s; }
.best__dot[aria-current="true"] { width: 34px; }
.best__dot[aria-current="true"]::before { background: var(--ink); }
.best__dot { transition: width .4s var(--ease); }
.best__nav:not([hidden]) + .best__more { margin-top: 12px; }
.product { position: relative; text-align: center; }
.product[hidden] { display: none; }
/* No tile behind the item: the cut-out stands on the page itself, as in the shop */
.product__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
/* A soft oval shadow on the floor; it tightens as the item lifts */
.product__img::after {
  content: ""; position: absolute; inset-inline: 22%; bottom: 7%; height: 5%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(42 31 40 / .16), transparent); transition: transform .6s var(--ease), opacity .6s;
}
/* Only the background-removed cut is shown; the original photo stays for search thumbnails */
.product__img img:not(.product__cut, .product__second) { display: none; }
/* The second photo: hidden until hover, then it takes the cut-out's place (as in the shop) */
.product__img .product__second {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform 1s var(--ease);
}
.product.has-second:hover .product__second, .product.has-second:focus-within .product__second { opacity: 1; transform: none; }
.product.has-second:hover .product__cut, .product.has-second:focus-within .product__cut { opacity: 0; }
.product.has-second:hover .product__img::after, .product.has-second:focus-within .product__img::after { opacity: 0; }
.product__img .stock-badge { z-index: 3; }
.product__img .product__cut {
  position: absolute; inset: 5% 6% 8%; z-index: 1; width: 88%; height: 87%; object-fit: contain; object-position: bottom;
  transition: transform .6s var(--ease), opacity .5s var(--ease);
}
.product:hover .product__cut, .product:focus-within .product__cut { transform: translateY(-8px) scale(1.03); }
.product:hover .product__img::after, .product:focus-within .product__img::after { transform: scaleX(.8); opacity: .7; }
.product__name { margin-top: 18px; font-size: var(--step-0); font-weight: 700; }
.product .swatches { margin-top: 6px; }
.product__price { color: var(--ink-soft); font-size: var(--step--1); }
/* On hover the price slides up and an Instagram order link takes its place */
.product__meta { display: grid; overflow: hidden; line-height: 1.8; }
.product__meta > * { grid-area: 1 / 1; transition: transform .45s var(--ease), opacity .35s; }
.product__order { font-size: var(--step--1); font-weight: 700; color: var(--rose); transform: translateY(100%); opacity: 0; }
/* "Add to cart" is a button; it looks like the link it sits in place of */
button.product__order, button.shop-item__order { background: none; border: 0; padding-inline: 0; font-family: inherit; cursor: pointer; }
.product__order:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) {
  .product:hover .product__price, .product:focus-within .product__price { transform: translateY(-100%); opacity: 0; }
  .product:hover .product__order, .product:focus-within .product__order { transform: none; opacity: 1; }
}
@media (hover: none) {
  .product__meta { grid-template-rows: auto auto; }
  .product__order { grid-area: 2 / 1; transform: none; opacity: 1; }
}
/* Link to the full shop: the same bare, tracked Latin link as the hero's Start shopping, in ink */
.best { display: grid; }
.best__more {
  justify-self: center; position: relative; margin-top: clamp(32px, 4vw, 48px); padding: 10px 0;
  font-family: "Jost", var(--latin); font-weight: 300; font-size: .95rem; letter-spacing: .3em; text-transform: uppercase;
  margin-inline-end: -.3em; color: var(--ink); transition: transform .3s var(--ease);
}
.best__more::after {
  content: ""; position: absolute; inset-inline: 0 .3em; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease);
}
.best__more:hover, .best__more:focus-visible { transform: scale(1.08); }
.best__more:hover::after, .best__more:focus-visible::after { transform: scaleX(1); }.best__note { margin-top: 40px; color: var(--ink-soft); font-size: var(--step--1); text-align: center; }


/* ---------- Contact ---------- */
/* The address leads in big type at the reading start; hours, phone and Instagram sit in a quiet card beside it */
.contact { padding-block: clamp(72px, 10vw, 140px); }
/* Shop by Brand (after the ecommerce32 component): a centred head, then one card per brand.
   Logos sit grey and faded and come to full ink on hover, like the component */
.brands { padding-block: clamp(64px, 9vw, 120px) 0; font-family: "Jost", var(--latin); }
.brands__head { max-width: 40rem; margin: 0 auto clamp(32px, 5vw, 48px); text-align: center; }
.brands__badge { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--mist); font-size: .8125rem; font-weight: 500; }
.brands__title { margin-top: 14px; font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.brands__lede { margin-top: 10px; color: var(--ink-soft); font-size: var(--step-1); }
.brands__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
/* Four cards a row (three on tablets); a shorter last row sits centred */
.brands__grid li { flex: 0 1 calc((100% - 48px) / 4); max-width: 260px; }
@media (max-width: 900px) { .brands__grid li { flex-basis: calc((100% - 32px) / 3); } }
.brand-card {
  display: grid; justify-items: center; gap: 4px; padding: 28px 20px 22px; height: 100%;
  border: 1px solid var(--line); border-radius: 14px; background: var(--white); text-align: center;
  transition: border-color .25s, box-shadow .25s;
}
.brand-card:hover, .brand-card:focus-visible { border-color: var(--ink); box-shadow: 0 10px 28px rgb(42 31 40 / .1); }
.brand-card__logo { display: grid; place-items: center; height: 56px; margin-bottom: 10px; }
.brand-mark { color: var(--ink-soft); opacity: .55; transition: opacity .3s, color .3s; line-height: 1; white-space: nowrap; }
.brand-card:hover .brand-mark, .brand-card:focus-visible .brand-mark { opacity: 1; color: var(--ink); }
/* Logo files (dark on transparent): faded at rest, full on hover, like the type marks */
.brand-logo { height: 44px; width: auto; max-width: 100%; object-fit: contain; opacity: .5; transition: opacity .3s; }
.brand-card:hover .brand-logo, .brand-card:focus-visible .brand-logo { opacity: 1; }
/* A long, low wordmark (Bershka, Pull&Bear, Mango, Stradivarius) reads as big as the others at a smaller height */
.brand-logo--wide { height: 32px; }
/* A stacked logo (Rimas: monogram over the name) takes the box's full height so the name stays legible */
.brand-logo--tall { height: 56px; }
/* Each name set close to the feel of its logo, until real logo files are added */
.brand-mark--zara { font-family: "Bodoni Moda", Georgia, serif; font-weight: 500; font-size: 2.6rem; letter-spacing: .02em; }
.brand-mark--bershka { font-family: "Jost", var(--latin); font-weight: 700; font-size: 2rem; letter-spacing: -.02em; }
.brand-mark--pullandbear { font-family: "Jost", var(--latin); font-weight: 500; font-size: 1.35rem; letter-spacing: .08em; }
.brand-card__name { font-weight: 500; }
.brand-card__count { font-size: .8125rem; color: var(--ink-soft); }
.brand-card__count[hidden] { display: none; }
@media (max-width: 560px) {
  .brands__grid { gap: 10px; }
  /* Two cards a row; an odd last card sits centred under them */
  .brands__grid li { flex: 0 0 calc(50% - 5px); min-width: 0; }
  .brand-card { padding: 20px 8px 16px; }
  .brand-mark--zara { font-size: 1.6rem; }
  .brand-logo { height: 30px; }
  .brand-logo--wide { height: 22px; }
  .brand-logo--tall { height: 48px; }
  .brand-mark--bershka { font-size: 1.2rem; }
  .brand-mark--pullandbear { font-size: .72rem; letter-spacing: .04em; }
}

/* Visit us: one white card (after the contact-card component). Wide side: title, a line of copy, address and hours;
   narrow side, past a thin rule: the map links. Gold plus marks pin the four corners */
.visit { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); background: var(--white); border: 1px solid var(--line); }
.visit__pin { position: absolute; width: 22px; height: 22px; }
.visit__pin::before, .visit__pin::after { content: ""; position: absolute; background: var(--gold); }
.visit__pin::before { inset: 10px 0; }
.visit__pin::after { inset: 0 10px; }
.visit__pin--ts { top: -11px; inset-inline-start: -11px; }
.visit__pin--te { top: -11px; inset-inline-end: -11px; }
.visit__pin--bs { bottom: -11px; inset-inline-start: -11px; }
.visit__pin--be { bottom: -11px; inset-inline-end: -11px; }
.visit__main { padding: clamp(28px, 5vw, 56px); }
.visit__title { margin-top: 8px; font-size: var(--step-3); font-weight: 900; line-height: 1.25; }
.visit__lede { margin-top: 12px; max-width: 46ch; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.7; }
.visit__info { margin-top: clamp(24px, 4vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.visit__item { display: flex; align-items: flex-start; gap: 14px; }
.visit__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.visit__icon svg { width: 22px; height: 22px; }
.visit__item dt { font-weight: 700; }
.visit__item dd { margin-top: 2px; color: var(--ink-soft); line-height: 1.7; }
.visit__item address { font-style: normal; }
/* English card (Get in touch): the Latin face of the header and footer links */
.contact[lang="en"] { font-family: "Jost", var(--latin); }
.contact[lang="en"] .visit__title { font-weight: 600; letter-spacing: -.01em; }
.contact[lang="en"] .visit__item dt, .contact[lang="en"] .visit__side-title { font-weight: 500; }
.visit__item--wide { grid-column: 1 / -1; }
/* Map links under the address: the address line sets the width (fit-content), and the two links split it
   into equal halves, so together they're exactly as wide as the address */
.visit__address { flex: 1; min-width: 0; }
.visit__address dd { width: fit-content; max-width: 100%; }
.visit__maps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.visit__maps .btn { min-height: 44px; padding-inline: 10px; border-radius: 12px; font-size: var(--step--1); text-align: center; line-height: 1.3; }
.visit__maps .btn--outline { background-color: var(--white); }
.visit__item dd a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.visit__item dd a:hover, .visit__item dd a:focus-visible { color: var(--rose); text-decoration-color: currentColor; }
/* The open/closed pill sits on white here, so a thin border outlines it; its dot stays a fixed size when the text wraps */
.visit .contact__status { background: var(--white); border: 1px solid var(--line); font-size: .8125rem; line-height: 1.6; padding: 4px 12px; }
.visit .contact__status::before { flex: none; }
.visit__side {
  display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(28px, 4vw, 44px);
  background: var(--white); border-inline-start: 1px solid var(--line);
}
.visit__side-title { font-size: var(--step-1); font-weight: 900; }
/* Message form: fills the side panel (the map links sit under the address) */
.visit__form { display: grid; gap: 14px; }
.visit__form .field input, .visit__form .field textarea { min-height: 44px; padding: 10px 14px; border-radius: 10px; }
.visit__form .btn { margin-top: 2px; }
.visit__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.visit__sent { font-size: var(--step--1); color: #2e6b45; font-weight: 500; }
.visit__sent:empty { display: none; }
.visit__side .btn { width: 100%; border-radius: 12px; }
@media (max-width: 900px) {
  .visit { grid-template-columns: 1fr; }
  .visit__side { border-inline-start: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .visit__info { grid-template-columns: 1fr; }
  /* The address column is narrow on phones: the links drop "Open in" so each stays on one line */
  .visit__maps-verb { display: none; }
  .visit__maps .btn { padding-inline: 6px; }
}
.contact__script { text-align: right; /* Latin, but it sits at the Persian reading start */ font-family: "Allura", cursive; font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1; color: var(--rose); }

/* Open now / closed: a small pill with a dot, gold while open */
.contact__status { display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 10px; padding: 3px 12px 3px 14px; border-radius: 999px; background: var(--white); font-size: var(--step--1); font-weight: 400; color: var(--ink-soft); }
.contact__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); }
.contact__status.is-open { color: var(--ink); }
.contact__status.is-open::before { background: var(--gold); box-shadow: 0 0 0 4px rgb(205 172 42 / .2); }
.contact__status[hidden] { display: none; }

/* ---------- Product search ---------- */
.search {
  position: fixed; inset: 0 0 auto; margin: 0; width: 100%; max-width: none; max-height: 100dvh;
  padding: 0; border: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--white); color: var(--ink);
}
.search[open] { animation: sheet-in .4s var(--ease); }
.search.is-closing { animation: sheet-out .22s ease-in forwards; }
.search::backdrop { background: rgb(20 12 18 / .45); animation: fade-in .3s ease; }
.search.is-closing::backdrop { animation: fade-out .22s ease-in forwards; }
@keyframes sheet-in { from { transform: translateY(-100%); } }
@keyframes sheet-out { to { transform: translateY(-100%); } }
.search [hidden] { display: none !important; }

.search__inner { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; padding-block: 20px 36px; }
.search__bar { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--ink); }
.search__icon { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.search__input {
  flex: 1; min-width: 0; min-height: 64px; border: 0; background: none; color: var(--ink);
  font: inherit; font-size: var(--step-2); font-weight: 700;
}
.search__input::placeholder { color: #b3a9ae; font-weight: 400; }
.search__input:focus-visible { outline: none; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__bar:focus-within { border-bottom-color: var(--rose); box-shadow: 0 1px 0 var(--rose); }
.search__close { flex: none; min-height: 44px; padding: 0 4px; background: none; border: 0; font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.search__close:hover { color: var(--ink); }

.search__suggest { margin-top: 24px; }
.search__label { font-size: var(--step--1); color: var(--ink-soft); }
.search__chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.search__chips button {
  min-height: 40px; padding: 0 16px; background: none; border: 1px solid var(--line);
  font-size: var(--step--1); font-weight: 700; transition: border-color .2s, background-color .2s;
}
.search__chips button:hover { border-color: var(--ink); }

.search__status { margin-top: 18px; font-size: var(--step--1); color: var(--ink-soft); }
.search__status:empty { display: none; }
.search__results { margin-top: 8px; display: grid; }
.search__results li { animation: result-in .4s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes result-in { from { opacity: 0; transform: translateY(8px); } }
.search__result {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 10px 8px; text-align: start;
  background: none; border: 0; border-bottom: 1px solid var(--line); transition: background-color .2s;
}
.search__result:hover, .search__result:focus-visible { background: var(--mist); outline: none; }
.search__result img { flex: none; width: 56px; height: 72px; object-fit: cover; background: #faf8f7; }
.search__result-text { display: grid; }
.search__result-text strong { font-weight: 700; }
.search__result-text span { font-size: var(--step--1); color: var(--ink-soft); }

/* The product a search jumped to gets a brief gold frame */
.product.is-found .product__img { animation: found 1.8s var(--ease); }
@keyframes found { 0%, 60% { box-shadow: 0 0 0 3px var(--gold); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* ---------- Account panel ---------- */
html.has-dialog { overflow: hidden; }
.account [hidden] { display: none !important; }
/* A centred card split in two: the form on the reading side, a campaign photo opposite */
.account {
  position: fixed; inset: 0; margin: auto;
  width: min(1080px, 100% - 32px); height: min(760px, 100% - 32px); max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: 28px; overflow: hidden;
  background: var(--white); color: var(--ink); box-shadow: 0 40px 90px -30px rgb(20 12 18 / .55);
}
.account[open] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); animation: card-in .5s var(--ease); }
.account.is-closing { animation: card-out .28s ease-in forwards; }
.account::backdrop { background: rgb(42 31 40 / .55); backdrop-filter: blur(6px); animation: fade-in .3s ease; }
.account.is-closing::backdrop { animation: fade-out .28s ease-in forwards; }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes card-out { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.account__media { grid-column: 2; grid-row: 1; position: relative; background: var(--mist); }
.account__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.account__close {
  position: absolute; z-index: 2; top: 20px; inset-inline-end: 20px;
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgb(42 31 40 / .28); color: var(--white); backdrop-filter: blur(8px); transition: background-color .2s;
}
.account__close:hover { background: rgb(42 31 40 / .45); }
.account__close:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.account__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.account__body {
  grid-column: 1; grid-row: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4.5vw, 56px);
}
.account__head { margin-bottom: 28px; }
.account__title { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 900; line-height: 1.2; }
.account__switch { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgb(42 31 40 / .1); text-align: center; color: var(--ink-soft); }
.account__switch button { background: none; border: 0; padding: 0; font-weight: 700; color: var(--rose); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.account__switch button:hover { text-decoration-color: currentColor; }
.account__note { margin-bottom: 20px; padding: 12px 16px; border-radius: 12px; background: var(--mist); border-inline-start: 3px solid var(--gold); font-size: var(--step--1); font-weight: 700; }

@media (max-width: 820px) {
  .account[open] { grid-template-columns: minmax(0, 1fr); }
  .account__media { display: none; }
  .account__close { background: var(--mist); color: var(--ink); }
  .account__close:hover { background: var(--line); }
  .account__close:focus-visible { outline-color: var(--ink); }
  .account__head { padding-inline-end: 52px; }
}
@media (max-width: 560px) {
  .account { width: 100%; height: 100%; border-radius: 0; }
}

.account__form { display: grid; gap: 18px; }
.account__form:not([hidden]) { animation: fade-in .35s ease; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row .field--age { max-width: 120px; }
.field-row:has(.field--age) { grid-template-columns: 1fr auto; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: var(--step--1); font-weight: 700; padding: 0; }
.field input:not([type="radio"]), .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; line-height: 1.7; }
.field input[dir="ltr"] { text-align: left; font-family: var(--latin); }
.field input::placeholder, .field textarea::placeholder { color: #b3a9ae; }
.field input:hover, .field textarea:hover { border-color: #cfc5c3; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgb(140 90 110 / .18); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__hint { font-size: .8125rem; color: var(--ink-soft); }
.field__optional { font-weight: 400; color: var(--ink-soft); }
.field__error { font-size: .8125rem; color: #b3261e; font-weight: 700; }
.field__error:empty { display: none; }
.field__error:not(:empty) { animation: fade-in .25s ease; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: grid; place-items: center; min-height: 50px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700;
  transition: background-color .25s, color .25s, border-color .25s;
}
.choice label:hover span { border-color: #cfc5c3; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 3px; }

.password { position: relative; }
.password input { padding-right: 52px; }
.password__toggle {
  position: absolute; right: 5px; top: 50%; translate: 0 -50%; display: grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink-soft); transition: background-color .2s, color .2s;
}
.password__toggle:hover { background: var(--mist); color: var(--ink); }
.password__toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.password__toggle .eye-off, .password__toggle[aria-pressed="true"] .eye-on { display: none; }
.password__toggle[aria-pressed="true"] .eye-off { display: block; }

.form__error { font-size: var(--step--1); font-weight: 700; color: #b3261e; }
.form__error:empty { display: none; }
.account__submit { width: 100%; margin-top: 6px; border-radius: 12px; }
.btn.is-busy { cursor: progress; opacity: .8; }


/* ---------- Account page (/account) ---------- */
.acct-page { background: var(--mist); }
.acct-bar { position: sticky; top: 0; z-index: 10; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.acct-bar__in { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.acct-bar__brand img { height: 28px; width: auto; }
.acct-bar__back { font-size: var(--step--1); font-weight: 700; padding: 10px 0; }
.acct-bar__back:hover { color: var(--rose); }

/* Hero: the greeting on milky ground at the reading start, the photo beside it (as on /shop) */
[data-acct][hidden] { display: none; }
.acct-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(62svh, 560px); background: #f4efe7; }
.acct-hero__content { display: grid; align-content: center; justify-items: start; padding: 48px var(--gutter); }
.acct-hero .hero__kicker { color: var(--ink-soft); margin-inline-end: 0; }
.acct-hero .acct__hello { margin-top: 10px; }
.acct-hero__img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 40%; }
@media (max-width: 820px) {
  .acct-hero { grid-template-columns: 1fr; grid-template-rows: auto 32svh; min-height: 0; }
  .acct-hero__content { padding: 40px var(--gutter) 32px; }
  .acct-hero__img { object-position: center 65%; }
}
.acct { padding-block: 0 96px; }
/* The greeting is the one loud thing on the page; everything under it stays quiet */
.acct__hello { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.acct__since { margin-top: 10px; color: var(--ink-soft); font-size: var(--step-1); }

.acct__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(40px, 6vw, 72px); }
.acct__nav { position: sticky; top: calc(68px + 32px); align-self: start; display: grid; justify-items: start; }
.acct__nav a, .acct__nav button {
  position: relative; padding: 10px 0; padding-inline-start: 18px; font-weight: 700; color: var(--ink-soft);
  background: none; border: 0; text-align: start; transition: color .2s;
}
.acct__nav a:hover, .acct__nav button:hover, .acct__nav a[aria-current="true"] { color: var(--ink); }
/* Gold marker on the section in view, the same gold as the reading-progress line */
.acct__nav a::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .3s var(--ease);
}
.acct__nav a[aria-current="true"]::before { transform: scale(1); }
.acct__nav button { margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--rose); align-self: stretch; }
.acct__nav button:hover { color: var(--ink); }

.acct__section { scroll-margin-top: calc(68px + 24px); }
.acct__section + .acct__section { margin-top: clamp(56px, 8vw, 96px); }
.acct__head { margin-bottom: 20px; }
.acct__head h2 { font-size: var(--step-2); font-weight: 900; line-height: 1.3; }
.acct__sum { margin-top: 4px; color: var(--ink-soft); }
.acct__sum:empty { display: none; }

.orders { background: var(--white); border-radius: 16px; }
.orders[hidden] { display: none; }
.order { display: grid; grid-template-columns: 11em minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 20px 24px; }
.order + .order { border-top: 1px solid var(--line); }
.order__date { font-weight: 700; }
.order__num { display: block; font-size: .8125rem; font-weight: 400; color: var(--ink-soft); }
.order__items { overflow-wrap: anywhere; white-space: pre-line; max-width: 60ch; }
.order__total { font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Payment state of a site order, under its total */
.order__pay { display: block; width: fit-content; margin-top: 4px; margin-inline-start: auto; padding: 0 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; line-height: 1.9; }
.order__pay--pending { background: rgb(205 172 42 / .22); color: var(--ink); }
.order__pay--cancelled { background: var(--mist); color: var(--ink-soft); }
.order.is-cancelled .order__items, .order.is-cancelled .order__total { color: var(--ink-soft); }
.order.is-cancelled .order__total { text-decoration: line-through; text-decoration-color: rgb(42 31 40 / .35); }
.order.is-cancelled .order__pay { text-decoration: none; }
.order__pay-now { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; }
.order__pay-now .btn { min-height: 44px; border-radius: 12px; }
.order__pay-msg { font-size: .875rem; color: var(--ink-soft); }
.order__pay-msg:empty { display: none; }

/* Order stages: four steps on a line that fills from the right as the shop moves the order along */
.track { grid-column: 1 / -1; margin-top: 16px; padding-top: 20px; border-top: 1px dashed var(--line); }
.track__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.track__steps::before, .track__steps::after {
  content: ""; position: absolute; top: 27px; inset-inline: 12.5%; height: 2px; background: var(--line);
}
.track__steps::after {
  background: var(--ink); transform-origin: right; transform: scaleX(var(--progress));
  animation: track-fill 1.1s var(--ease) .15s backwards;
}
@keyframes track-fill { from { transform: scaleX(0); } }
.track__step { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; text-align: center; }
.track__icon {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--line); color: var(--ink-soft);
}
.track__icon > svg:first-child { width: 34px; height: 34px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.track__label { font-size: .8125rem; line-height: 1.5; color: var(--ink-soft); }
.track__step.is-todo .track__icon { opacity: .5; }
.track__step.is-todo .track__label { opacity: .6; }
.track__step.is-done .track__icon { border-color: var(--ink); color: var(--ink); }
.track__step.is-done .track__label { color: var(--ink); }
/* The stage the order is at: filled, larger type, and its drawing in motion */
.track__step.is-current .track__icon { background: var(--ink); border-color: var(--ink); color: var(--white); box-shadow: 0 0 0 5px rgb(205 172 42 / .25); }
.track__step.is-current .track__label { color: var(--ink); font-weight: 900; font-size: var(--step--1); }
.track__note { margin-top: 14px; font-size: var(--step--1); color: var(--ink-soft); }

/* Gold tick badge on every stage the order has reached; it draws itself in */
.track__tick {
  position: absolute; top: -3px; inset-inline-end: -3px; width: 20px; height: 20px; padding: 2px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--white);
  fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  animation: tick-pop .4s var(--ease) backwards;
}
.track__tick path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw .45s ease-out backwards; }
.track__step:nth-child(2) .track__tick, .track__step:nth-child(2) .track__tick path { animation-delay: .35s; }
.track__step:nth-child(3) .track__tick, .track__step:nth-child(3) .track__tick path { animation-delay: .6s; }
.track__step:nth-child(4) .track__tick, .track__step:nth-child(4) .track__tick path { animation-delay: .85s; }
@keyframes tick-pop { from { transform: scale(0); } }
@keyframes draw { from { stroke-dashoffset: 1; } }

/* Drawings rest still on reached and future stages */
.track__step:not(.is-current) .i-drop, .track__step:not(.is-current) .i-spark { opacity: 0; }
.i-bag, .i-tag, .i-dress, .i-box { transform-box: view-box; }
.i-bag { transform-origin: 24px 40px; }
.i-tag, .i-dress { transform-origin: 24px 4px; }
.i-check { stroke-dasharray: 1; }

/* 1. ثبت سفارش: the diamond drops into the bag, the bag dips as it lands */
.is-current .i-drop { animation: bag-drop 2.4s cubic-bezier(.5, 0, .6, 1) infinite; }
.is-current .i-bag { animation: bag-catch 2.4s ease-out infinite; }
@keyframes bag-drop {
  0% { transform: translateY(-4px); opacity: 0; }
  12% { opacity: 1; }
  52% { transform: translateY(17px); opacity: 1; }
  60%, 100% { transform: translateY(20px); opacity: 0; }
}
@keyframes bag-catch { 0%, 50%, 76%, 100% { transform: none; } 58% { transform: scale(1.05, .92); } }

/* 2. تایید فروشگاه: the tag swings and the check writes itself */
.is-current .i-tag { animation: tag-swing 2.8s ease-in-out infinite; }
.is-current .i-check { animation: check-write 2.8s ease-out infinite; }
@keyframes tag-swing { 0%, 100% { transform: rotate(7deg); } 50% { transform: rotate(-7deg); } }
@keyframes check-write { 0%, 15% { stroke-dashoffset: 1; } 45%, 100% { stroke-dashoffset: 0; } }

/* 3. ارسال: the parcel rides along while the speed lines stream off behind it */
.is-current .i-box { animation: box-ride .5s ease-in-out infinite alternate; }
.is-current .i-speed path { animation: speed 1s linear infinite; }
.is-current .i-speed path:nth-child(2) { animation-delay: -.35s; }
.is-current .i-speed path:nth-child(3) { animation-delay: -.7s; }
@keyframes box-ride { from { transform: translate(0, 0); } to { transform: translate(-1px, -2px); } }
@keyframes speed { from { transform: translateX(-4px); opacity: 1; } to { transform: translateX(8px); opacity: 0; } }

/* 4. تکمیل سفارش: the dress sways on its hanger between two twinkling sparkles */
.is-current .i-dress { animation: dress-sway 3s ease-in-out infinite; }
.is-current .i-spark { transform-box: fill-box; transform-origin: center; stroke: var(--gold); animation: twinkle 1.8s ease-in-out infinite; }
.is-current .i-spark--late { animation-delay: .9s; }
@keyframes dress-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(.3) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .is-current .i-drop, .is-current .i-spark { animation: none; opacity: 0; }
  .is-current .i-check { animation: none; stroke-dashoffset: 0; }
}

.acct__empty { background: var(--white); border-radius: 16px; padding: clamp(28px, 5vw, 48px); display: grid; justify-items: start; gap: 6px; color: var(--ink-soft); }
.acct__empty[hidden] { display: none; }
.acct__empty-title { color: var(--ink); font-size: var(--step-1); font-weight: 900; }
.acct__empty .btn { margin-top: 16px; border-radius: 12px; }
.acct__status { margin-top: 12px; font-size: var(--step--1); color: var(--ink-soft); }
.acct__status:empty { display: none; }

.acct__form { display: grid; gap: 18px; max-width: 440px; background: var(--white); border-radius: 16px; padding: clamp(20px, 4vw, 32px); }
.acct__submit { justify-self: start; border-radius: 12px; }
.acct__done { font-size: var(--step--1); font-weight: 700; color: #2e6b45; }
.acct__done:empty { display: none; }

@media (max-width: 820px) {
  .acct__grid { grid-template-columns: 1fr; }
  /* The nav becomes a row of tabs under the greeting */
  .acct__nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 24px; }
  .acct__nav button { margin: 0; padding-top: 10px; border: 0; margin-inline-start: auto; }
  .order { grid-template-columns: 1fr auto; padding: 18px 20px; }
  .order__items { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 420px) {
  .track__icon { width: 48px; height: 48px; }
  .track__icon > svg:first-child { width: 28px; height: 28px; }
  .track__steps::before, .track__steps::after { top: 23px; }
  .track__label, .track__step.is-current .track__label { font-size: .75rem; }
}

/* ---------- Cart and checkout (/checkout) ---------- */
/* Same quiet ground as the account page: white panels on mist, the total the one heavy number */
.checkout { padding-block: clamp(32px, 5vw, 56px) 96px; }
.checkout__title { font-size: var(--step-3); font-weight: 900; line-height: 1.25; }
.checkout__count { margin-top: 4px; color: var(--ink-soft); }
.checkout__count:empty { display: none; }
.checkout .acct__status { margin-top: 24px; }
.checkout__empty { margin-top: 28px; max-width: 560px; }
.checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: clamp(24px, 4vw, 40px); }
.checkout__grid[hidden], .checkout__done[hidden] { display: none; }
.checkout__h { margin-bottom: 12px; font-size: var(--step-1); font-weight: 900; }
.checkout__ship { margin-top: clamp(32px, 5vw, 48px); }
.checkout__ship[hidden] { display: none; }
.checkout__panel { display: grid; gap: 18px; padding: clamp(20px, 4vw, 32px); background: var(--white); border-radius: 16px; }

/* Cart lines: photo, name and unit price, quantity, line total */
.cart { background: var(--white); border-radius: 16px; }
.cart__line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 9.5em; gap: 16px 20px; align-items: center; padding: 16px 20px; }
.cart__line + .cart__line { border-top: 1px solid var(--line); }
.cart__thumb { width: 72px; aspect-ratio: 3 / 4; display: grid; place-items: end center; background: #f4efe7; border-radius: 10px; overflow: hidden; }
.cart__thumb img { width: 86%; height: 92%; object-fit: contain; object-position: bottom; }
.cart__name { font-weight: 700; line-height: 1.6; }
.cart__unit { font-size: .875rem; color: var(--ink-soft); }
.cart__color { display: flex; align-items: center; gap: 5px; font-size: .875rem; color: var(--ink-soft); }
.cart__color-name { color: var(--ink); }
.cart__dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgb(42 31 40 / .16); }
.cart__line.is-out .cart__thumb img { opacity: .45; filter: grayscale(.6); }
.cart__line.is-out .cart__unit { color: #b3261e; font-weight: 700; }
.cart__end { display: grid; justify-items: end; gap: 2px; }
.cart__total { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart__remove { padding: 2px 0; border: 0; background: none; font-size: .8125rem; color: var(--ink-soft); }
.cart__remove:hover { color: #b3261e; text-decoration: underline; text-underline-offset: 3px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty__btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 1.125rem; line-height: 1; transition: background-color .2s; }
.qty__btn:hover:not(:disabled) { background: var(--mist); }
.qty__btn:disabled { color: #cfc5c3; cursor: default; }
.qty__value { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.checkout__main .form__error { margin-top: 10px; }

/* Summary: stays in view beside the cart on wide screens */
.checkout__summary { position: sticky; top: calc(68px + 24px); display: grid; gap: 16px; padding: clamp(20px, 3vw, 28px); background: var(--white); border-radius: 16px; }
.checkout__summary .checkout__h { margin: 0; }
.checkout__sums { display: grid; gap: 10px; }
.checkout__sums > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.checkout__sums dt { color: var(--ink-soft); }
.checkout__sums dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.checkout__total { padding-top: 14px; border-top: 1px solid var(--line); }
.checkout__total dt { color: var(--ink); font-weight: 700; }
.checkout__total dd { font-size: var(--step-1); font-weight: 900; }
.checkout__submit { width: 100%; border-radius: 12px; }
.checkout__submit:disabled { opacity: .5; cursor: not-allowed; }
.checkout__summary .form__error { margin-bottom: 10px; }
.checkout__pay-note { margin-top: 12px; font-size: .8125rem; line-height: 1.8; color: var(--ink-soft); }
.checkout__signin { display: grid; gap: 14px; color: var(--ink-soft); font-size: .9375rem; }
.checkout__signin[hidden], [data-place][hidden] { display: none; }

/* Order placed: the bag from the account page's first order stage, the diamond dropping into it */
.checkout__done { margin-top: clamp(24px, 4vw, 40px); max-width: 620px; padding: clamp(28px, 5vw, 48px); background: var(--white); border-radius: 16px; outline: none; }
.checkout__done-icon { width: 64px; height: 64px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.checkout__done-icon .i-drop { stroke: var(--gold); animation: done-drop 1s var(--ease) both; }
@keyframes done-drop { from { transform: translateY(-10px); opacity: 0; } }
.checkout__done-title { margin-top: 12px; font-size: var(--step-2); font-weight: 900; line-height: 1.4; }
.checkout__done p { margin-top: 8px; color: var(--ink-soft); max-width: 52ch; }
.checkout__pay { display: grid; gap: 10px; margin-top: 20px; max-width: 360px; }
.checkout__pay[hidden] { display: none; }
.checkout__done p.checkout__pay-state { margin-top: 0; font-size: .875rem; }
.checkout__done-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.checkout__done-actions .btn { border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .checkout__done-icon .i-drop { animation: none; } }
.checkout__method[hidden], [data-cardpay][hidden] { display: none; }
/* Discount code: a field and its button on one line; once applied, the code and a way to remove it */
.checkout__code { margin-bottom: 14px; }
.checkout__code-row { display: flex; gap: 8px; }
.checkout__code-row[hidden], .checkout__code-on[hidden], .checkout__sums > div[hidden] { display: none; }
.checkout__code-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.checkout__code-apply { flex: none; min-height: 48px; padding-inline: 18px; border-radius: 12px; }
.checkout__code-on { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
  padding: 10px 14px; border-radius: 12px; background: rgb(46 107 69 / .1); color: #24553a; font-size: .875rem; font-weight: 700; }
.checkout__code-remove { padding: 0; border: 0; background: none; font: inherit; font-size: .8125rem; font-weight: 400;
  color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.checkout__code-remove:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.checkout__method { margin-bottom: 14px; }
.checkout__method .choice span { border-radius: 12px; }

/* Card-to-card (js/card-pay.js): the shop's card drawn as a bank card, then the transfer's tracking number */
.cardpay { display: grid; gap: 14px; margin-top: 20px; max-width: 420px; }
.cardpay[hidden], .cardpay [hidden] { display: none; }
.cardpay p { margin: 0; }
.checkout__done .cardpay p { margin-top: 0; }
.cardpay__amount { color: var(--ink-soft); line-height: 1.8; }
.cardpay__amount strong { color: var(--ink); font-weight: 900; }
.cardpay__rial { font-size: .8125rem; }
.cardpay__card {
  position: relative; display: grid; grid-template-rows: auto 1fr auto auto; gap: 6px;
  aspect-ratio: 1.586; max-width: 360px; padding: 20px 22px; border-radius: 16px; color: var(--white); overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgb(140 90 110 / .55), transparent 60%), var(--ink);
}
.cardpay__bank { font-weight: 700; font-size: .9375rem; color: rgb(255 255 255 / .85); }
.cardpay__chip { align-self: center; width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #e3c95a, var(--gold)); box-shadow: inset 0 0 0 1px rgb(42 31 40 / .25); }
.checkout__done .cardpay__number, .cardpay__number {
  font-family: var(--latin); font-size: clamp(1.15rem, 5vw, 1.45rem); font-weight: 700; letter-spacing: .08em;
  font-variant-numeric: tabular-nums; text-align: left; color: var(--white); white-space: nowrap;
}
.checkout__done .cardpay__holder, .cardpay__holder { font-size: .875rem; color: rgb(255 255 255 / .8); }
.cardpay__sheba { display: grid; gap: 2px; max-width: 360px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.cardpay__sheba-label { font-size: .8125rem; font-weight: 700; color: var(--ink-soft); }
.cardpay__sheba-value, .checkout__done .cardpay__sheba-value { margin: 0; font-family: var(--latin); font-size: .9375rem; font-weight: 700; letter-spacing: .03em; color: var(--ink); text-align: left; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cardpay__copies { display: flex; flex-wrap: wrap; gap: 8px; }
.cardpay__copy { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font: inherit; font-size: .8125rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.cardpay__copy:hover { border-color: var(--ink); }
.cardpay__copy:focus-visible, .cardpay__edit:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.cardpay__live { min-height: 0; font-size: .8125rem; color: #2e6b45; font-weight: 700; }
.cardpay__live:empty { display: none; }
.cardpay__form { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.cardpay__step { font-weight: 700; color: var(--ink); }
.checkout__done .cardpay__step { color: var(--ink); }
.cardpay__form .field-row { grid-template-columns: 1.4fr 1fr; }
.cardpay__submit { border-radius: 12px; }
.cardpay__sent { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: rgb(46 107 69 / .1); }
.cardpay__sent p, .checkout__done .cardpay__sent p { color: #24553a; line-height: 1.8; }
.cardpay__edit { justify-self: start; padding: 0; border: 0; background: none; font: inherit; font-size: .8125rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cardpay__hint, .checkout__done .cardpay__hint { font-size: .8125rem; color: var(--ink-soft); line-height: 1.8; }
.order__cardpay { grid-column: 1 / -1; margin-top: 10px; }
/* Product page: a sentence about the product (written by the server, seo.py) */
.pdp__desc { margin-top: 18px; max-width: 52ch; font-size: .9375rem; line-height: 1.9; color: var(--ink-soft); }
/* Shop cards as the server sends them, before js/shop.js redraws them: the name is a link */
.shop-item__name a { color: inherit; }
.cardpay__discount { display: block; margin-top: 2px; font-size: .8125rem; font-weight: 700; color: #2e6b45; }
/* Receipt photo: the file input stays reachable by keyboard; the label is the visible drop spot */
.cardpay__label { font-size: var(--step--1); font-weight: 700; }
.cardpay__receipt { position: relative; }
.cardpay__receipt input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.cardpay__pick {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1px dashed #cfc5c3; border-radius: 12px;
  background: var(--mist); font-size: .875rem; font-weight: 700; color: var(--ink-soft); cursor: pointer; overflow-wrap: anywhere;
}
.cardpay__pick:hover { border-color: var(--ink); color: var(--ink); }
.cardpay__receipt input[type="file"]:focus-visible + .cardpay__pick { outline: 2px solid var(--rose); outline-offset: 2px; }
.cardpay__thumb { width: 40px; height: 52px; flex: none; object-fit: cover; border-radius: 6px; background: var(--white); }
.cardpay__thumb[hidden] { display: none; }

/* Card-to-card discount: told above the cart, beside the choice, and as its own line in the sum */
.checkout__offer { margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: rgb(205 172 42 / .18); font-size: .9375rem; font-weight: 700; color: var(--ink); }
.checkout__offer[hidden], .checkout__discount[hidden] { display: none; }
.checkout__off { display: block; font-size: .75rem; font-weight: 700; opacity: .8; }
.checkout__method .field__hint { margin-top: 2px; }
.checkout__sums .checkout__discount.is-on dt, .checkout__sums .checkout__discount.is-on dd { color: #2e6b45; font-weight: 700; }
.checkout__total dd { transition: color .2s; }
.checkout__total.is-preview dd { color: #2e6b45; }
@media (max-width: 420px) { .cardpay__form .field-row { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .checkout__grid { grid-template-columns: 1fr; }
  .checkout__summary { position: static; }
}
@media (max-width: 560px) {
  /* Photo and name on top; quantity and total on a row beneath */
  .cart__line { grid-template-columns: 64px minmax(0, 1fr); padding: 16px; }
  .cart__thumb { width: 64px; grid-row: span 2; }
  .cart__line > .qty, .cart__line > span { grid-column: 2; justify-self: start; }
  .cart__end { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: space-between; align-items: center; width: 100%; }
  .checkout .field-row { grid-template-columns: 1fr; }
}

/* ---------- Shop page (/shop) ---------- */
.shop-page { --bar-h: 68px; --cats-h: 52px; }
.shop-bar { position: fixed; inset: 0 0 auto; z-index: 30; transition: background-color .3s, box-shadow .3s; }
.shop-bar.is-solid { background: var(--white); box-shadow: 0 1px 0 var(--line); }
.shop-bar__in { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.shop-bar__brand img { height: 28px; width: auto; }
.shop-bar__links { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); font-size: var(--step--1); font-weight: 700; }
.shop-bar__links .cart-link { margin-inline-end: -10px; padding: 0; }
.shop-bar__links a { padding: 10px 0; transition: color .2s; }
.shop-bar__links a:hover { color: var(--rose); }

/* Hero: full screen like the home page's, the photo under the same dark shade, the script title in white */
.shop-hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center;
  color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate;
}
.shop-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(20 12 18 / .5) 0%, rgb(20 12 18 / .25) 35%, rgb(20 12 18 / .3) 60%, rgb(20 12 18 / .65) 100%);
}
.shop-hero__content { display: grid; justify-items: center; padding: calc(var(--bar-h) + 24px) var(--gutter) 96px; }
.shop-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.shop-hero__title { margin-top: 8px; font-family: "Allura", cursive; font-weight: 400; font-size: clamp(2.8rem, 13vw, 10rem); line-height: 1.3; white-space: nowrap; }
/* Over the hero the bar is clear, so its links are white; solid once the products start */
.shop-bar:not(.is-solid) .shop-bar__links { color: var(--white); }
.shop-bar:not(.is-solid) .shop-bar__links a:hover { color: rgb(255 255 255 / .75); }
/* The hero's scroll cue lands on the products, clear of the bar and the category strip */
.shop { scroll-margin-top: calc(var(--bar-h) + var(--cats-h)); }
/* Thin category bar under the header; a short line slides to the category on screen */
.shop-cats {
  position: sticky; top: var(--bar-h); z-index: 20; height: var(--cats-h); overflow-x: auto; scrollbar-width: none;
  background: rgb(255 255 255 / .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.shop-cats::-webkit-scrollbar { display: none; }
.shop-cats__in { position: relative; height: 100%; display: flex; justify-content: center; align-items: center; gap: clamp(24px, 5vw, 56px); width: max-content; min-width: min(100% - 2 * var(--gutter), var(--max)); }
.shop-cats__link { display: inline-flex; align-items: center; gap: 6px; height: 100%; font-size: .9375rem; color: var(--ink-soft); white-space: nowrap; transition: color .25s; }
.shop-cats__link:hover, .shop-cats__link[aria-current="true"] { color: var(--ink); }
.shop-cats__mark {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--gold); opacity: 0;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
}
.shop-cats__mark.is-on { opacity: 1; }

.shop { padding-block: clamp(48px, 7vw, 88px) clamp(64px, 9vw, 120px); }
.shop__status { text-align: center; color: var(--ink-soft); }
/* Showing one brand: its name, the count, and the way back to everything */
.shop__brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin-bottom: clamp(32px, 5vw, 56px); padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: var(--step-1); }
.shop__brand[hidden] { display: none; }
.shop__brand-name { font-family: "Jost", var(--latin); font-weight: 600; }
.shop__brand-all { margin-inline-start: auto; font-size: var(--step--1); font-weight: 700; color: var(--rose); }
.shop__brand-all:hover { text-decoration: underline; text-underline-offset: 4px; }
.shop__status:empty { display: none; }
.shop-group { scroll-margin-top: calc(var(--bar-h) + var(--cats-h) + 24px); }
.shop-group + .shop-group { margin-top: clamp(64px, 9vw, 112px); }
.shop-group__title { margin-bottom: clamp(20px, 3vw, 36px); font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; line-height: 1.2; }
.shop-group__empty { padding: 28px 0; border-block: 1px solid var(--line); color: var(--ink-soft); }
.shop-group__empty a { color: var(--rose); font-weight: 700; }
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px); }

/* Product: the cut-out stands on the page itself; the second photo takes over on hover */
.shop-item { text-align: center; }
.shop-item__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.shop-item__media:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.shop-item__cut {
  position: absolute; inset: 3% 5% 0; width: 90%; height: 97%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 18px 22px rgb(42 31 40 / .12)); transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.shop-item__second {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform 1s var(--ease);
}
/* Only while the colour on show has a second photo of its own (has-second): another colour's photo is never covered */
.shop-item.has-second:hover .shop-item__second, .shop-item.has-second:focus-within .shop-item__second { opacity: 1; transform: none; }
.shop-item.has-second:hover .shop-item__cut, .shop-item.has-second:focus-within .shop-item__cut { opacity: 0; transform: scale(.97); }
.shop-item__name { margin-top: 18px; font-size: 1.0625rem; font-weight: 400; line-height: 1.6; }

/* Sold out (home showcase and shop): a small dark label at the photo's reading-start corner,
   and the cut-out faded back so it reads as unavailable at a glance */
.stock-badge {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  padding: 2px 12px; border-radius: 999px; background: var(--ink); color: var(--white);
  font-size: .75rem; font-weight: 700; line-height: 1.8; pointer-events: none;
}
.product.is-out .product__cut, .shop-item.is-out .shop-item__cut { opacity: .45; filter: grayscale(.6); }
/* "Tell me when it's back": an outlined pill under the sold-out item; filled once asked */
.shop-item__notify { margin-top: 10px; display: grid; justify-items: center; gap: 4px; }
.shop-item__notify[hidden] { display: none; }
.shop-item__notify-btn {
  padding: 6px 16px; border: 1px solid var(--ink); border-radius: 999px; background: none;
  font-size: .8125rem; font-weight: 700; transition: background-color .2s, color .2s;
}
.shop-item__notify-btn:hover { background: var(--ink); color: var(--white); }
.shop-item__notify-btn.is-on { border-color: var(--line); color: var(--ink-soft); }
.shop-item__notify-btn.is-on:hover { background: none; color: var(--ink); border-color: var(--ink); }
.shop-item__notify-btn[disabled] { opacity: .6; cursor: progress; }
.shop-item__notify-done { font-size: .8125rem; color: var(--rose); min-height: 0; }
.shop-item__notify-done:empty { display: none; }
.product.is-out .product__price, .shop-item.is-out .shop-item__price { text-decoration: line-through; text-decoration-color: rgb(42 31 40 / .35); }
.shop-item__price { margin-top: 2px; font-size: .9375rem; font-weight: 300; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
/* Colour dots (shop cards and the product page): the chosen one gets a thin ring a step away from it;
   a hairline inside every dot keeps pale ones (Ekru, Bej) visible on white */
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 8px; }
.swatch {
  position: relative; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
}
.swatch::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgb(42 31 40 / .16);
}
.swatch::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid transparent; transition: border-color .2s;
}
.swatch:hover::after { border-color: var(--line); }
.swatch[aria-pressed="true"]::after { border-color: var(--ink); }
.swatch:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
/* A colour that's sold out: faded, with a diagonal line through it */
.swatch.is-out::before {
  opacity: .45;
  background: linear-gradient(to top left, transparent calc(50% - .75px), var(--ink) calc(50% - .75px), var(--ink) calc(50% + .75px), transparent calc(50% + .75px)), var(--swatch);
}
button.shop-item__order:disabled { color: var(--ink-soft); cursor: default; text-decoration: none; opacity: 1; }
.pdp__cta:disabled { background: var(--mist); background-image: none; color: var(--ink-soft); cursor: default; transform: none; }
.shop-item__order { display: inline-block; margin-top: 6px; padding: 4px 0; font-size: .8125rem; font-weight: 700; color: var(--rose); transition: opacity .3s; }
.shop-item__order:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) {
  .shop-item__order { opacity: 0; }
  .shop-item:hover .shop-item__order, .shop-item:focus-within .shop-item__order { opacity: 1; }
}

/* ---------- Product page (/product): the photo in the chosen colour on a soft stage, the colours under it,
   details beside it (beneath it on phones) ---------- */
.pdp { padding-block: calc(var(--bar-h) + clamp(28px, 4vw, 56px)) clamp(64px, 9vw, 120px); }
.pdp > .shop__status { padding-top: 24px; }
.pdp__layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pdp__layout[hidden] { display: none; }
.pdp__stage {
  position: relative; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--bar-h) - 96px); min-height: 320px;
  background: var(--mist); overflow: hidden;
}
.pdp__photo {
  position: absolute; inset: 6% 8% 0; width: 84%; height: 94%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 22px 26px rgb(42 31 40 / .14));
}
.pdp__layout.is-out .pdp__photo { opacity: .45; filter: grayscale(.6); }
/* A full photo (second, third) fills the stage instead of standing in it like the cut-out */
.pdp__photo.is-full { inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; filter: none; }
/* The product's own photos under the stage: small thumbnails, the one on show outlined */
.pdp__views { display: flex; gap: 8px; margin-top: 10px; }
.pdp__views[hidden] { display: none; }
.pdp__view { width: 64px; aspect-ratio: 3 / 4; padding: 0; border: 0; background: var(--mist); cursor: pointer; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s; }
.pdp__view img { width: 100%; height: 100%; object-fit: cover; }
.pdp__view img.is-cut { object-fit: contain; object-position: bottom; padding: 8% 6% 0; }
.pdp__view:hover { box-shadow: inset 0 0 0 1px var(--line); }
.pdp__view[aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--ink); }
.pdp__view:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pdp__shades { margin-top: clamp(20px, 3vw, 32px); }
.pdp__shades[hidden] { display: none; }
.pdp__shades-title { margin-bottom: 14px; font-size: var(--step-0); font-weight: 700; }
.pdp__shades-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px; }
.pdp__shade { display: grid; gap: 8px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: start; }
.pdp__shade img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: contain; object-position: bottom; padding: 10% 8% 0;
  background: var(--mist); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s;
}
.pdp__shade:hover img { box-shadow: inset 0 0 0 1px var(--line); }
.pdp__shade[aria-current="true"] img { box-shadow: inset 0 0 0 1.5px var(--ink); }
.pdp__shade:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pdp__shade-name { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--ink-soft); }
.pdp__shade[aria-current="true"] .pdp__shade-name { color: var(--ink); }
.pdp__shade.is-out img { opacity: .5; filter: grayscale(.5); }
.pdp__shade-out { margin-top: -6px; font-size: .75rem; color: var(--ink-soft); }
.pdp__shade-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgb(42 31 40 / .16); }

.pdp__info { position: sticky; top: calc(var(--bar-h) + 32px); display: grid; gap: 6px; justify-items: start; }
.pdp__back { display: inline-block; margin-bottom: clamp(14px, 2vw, 24px); font-size: var(--step--1); font-weight: 700; color: var(--rose); }
.pdp__back:hover { text-decoration: underline; text-underline-offset: 4px; }
.pdp__brand { font-family: "Jost", var(--latin); font-size: .9375rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); }
.pdp__brand[hidden] { display: none; }
.pdp__name { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 300; line-height: 1.3; }
.pdp__price { font-size: var(--step-1); font-weight: 300; font-variant-numeric: tabular-nums; }
.pdp__layout.is-out .pdp__price { text-decoration: line-through; text-decoration-color: rgb(42 31 40 / .35); color: var(--ink-soft); }
.pdp__color { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); width: 100%; }
.pdp__color[hidden] { display: none; }
.pdp__color-label { font-size: var(--step--1); color: var(--ink-soft); }
.pdp__color-label span { color: var(--ink); }
.pdp__swatches { justify-content: flex-start; margin-top: 6px; margin-inline-start: -4px; }
.pdp__actions { margin-top: 22px; width: 100%; }
.pdp__cta { width: 100%; max-width: 360px; border-radius: 12px; }
.pdp__note { margin-top: 14px; font-size: var(--step--1); color: var(--ink-soft); }

@media (max-width: 820px) {
  .pdp__layout { grid-template-columns: 1fr; }
  .pdp__info { position: static; }
  .pdp__cta { max-width: none; }
  .pdp__shades-list { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
}

@media (max-width: 820px) {
  .shop-page { --bar-h: 60px; --cats-h: 48px; }
  .shop-cats__in { justify-content: flex-start; padding-inline: var(--gutter); min-width: 100%; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .shop-bar__links a:first-child { display: none; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 60; bottom: 24px; inset-inline-start: 50%; translate: 50% 0;
  padding: 10px 20px; background: var(--ink); color: var(--white); font-size: var(--step--1); font-weight: 700;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease);
}
.toast.is-visible { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
/* Centred column: logo, links, WhatsApp and Instagram; then a striped gold band and the copyright */
.site-footer { background: var(--white); color: var(--ink); border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 80px); overflow: hidden; }
.site-footer__top { display: flex; flex-direction: column; align-items: center; gap: 32px; padding-bottom: clamp(40px, 6vw, 56px); text-align: center; }
/* The logo file is gold; brightness(0) turns every visible pixel black and keeps the see-through parts */
.site-footer__brand { height: 64px; width: auto; filter: brightness(0); }

/* English links, set like the English links in the header */
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-family: "Jost", var(--latin); font-weight: 400; font-size: 1rem; letter-spacing: .02em; }
.site-footer__nav a { position: relative; isolation: isolate; padding: 6px 14px; color: var(--ink-soft); transition: color .2s; }
.site-footer__nav a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px; background: var(--mist);
  transform: scale(.4); opacity: 0; transition: transform .35s var(--ease), opacity .25s;
}
.site-footer__nav a:hover, .site-footer__nav a:focus-visible { color: var(--ink); }
.site-footer__nav a:hover::before, .site-footer__nav a:focus-visible::before { transform: none; opacity: 1; }

.site-footer__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.site-footer__social a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding-inline: 18px 22px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 700;
  transition: background-color .25s, color .25s, border-color .25s;
}
.site-footer__social span:lang(en) { font-family: "Jost", var(--latin); font-weight: 400; letter-spacing: .02em; }
.site-footer__social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__social a:hover, .site-footer__social a:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Woven-ribbon band: thin gold diagonals that drift once when the footer comes into view */
.site-footer__band {
  height: 48px; border-block: 1px solid rgb(205 172 42 / .3);
  background: repeating-linear-gradient(315deg, rgb(205 172 42 / .4) 0 1px, transparent 0 50%) 0 0 / 10px 10px;
}
.site-footer.is-in .site-footer__band { animation: footer-band 20s linear forwards; }
@keyframes footer-band { to { background-position-x: 400px; } }
/* Category links and the shop in a sentence, quiet under the social buttons */
.site-footer__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; padding-bottom: 12px; font-size: .875rem; }
.site-footer__cats a { padding: 4px 10px; border-radius: 999px; color: var(--ink-soft); transition: color .2s, background-color .2s; }
.site-footer__cats a:hover, .site-footer__cats a:focus-visible { color: var(--ink); background: var(--mist); }
.site-footer__about { padding-bottom: clamp(28px, 4vw, 40px); font-size: .8125rem; line-height: 1.9; color: var(--ink-soft); text-align: center; max-width: 60ch; }
.site-footer__copy { padding-block: 22px; font-size: var(--step--1); color: var(--ink-soft); text-align: center; }
.site-footer__copy:lang(en) { font-family: "Jost", var(--latin); letter-spacing: .02em; }

/* One staggered entrance; footer.js adds data-reveal, so without JS everything is simply shown */
.site-footer[data-reveal] .site-footer__top > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 100ms + 100ms);
}
.site-footer[data-reveal].is-in .site-footer__top > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .site-footer[data-reveal] .site-footer__top > * { transform: none; transition: opacity .3s; transition-delay: 0s; }
  .site-footer.is-in .site-footer__band { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
}

@media (max-width: 820px) {
  /* Compact header: shorter bar, smaller logo, full 44px tap targets */
  :root { --header-h: 60px; }
  .nav { grid-template-columns: 1fr auto auto auto auto auto; gap: 0; }
  .nav__greeting--mobile { display: block; max-width: 11ch; margin-inline-start: 20px; font-size: .9rem; }
  .nav__group { display: none; }
  .nav__account-mobile, .nav__search-mobile, .nav__cart-mobile { display: inline-grid; width: 44px; }
  .nav__search-mobile { margin-inline-end: -10px; } /* icon lines up with the page edge, tap area doesn't shrink */
  .brand { justify-self: start; }
  .brand__logo { height: 28px; }
  .nav__toggle {
    display: grid; place-content: center; gap: 7px;
    width: 44px; height: 44px; background: none; border: 0;
  }

  /* Solid state is frosted glass, matching the menu. Drawn on ::before because backdrop-filter
     on the header itself would trap the fixed full-screen menu inside the header's box */
  .site-header { transition: background-color .3s, color .3s, box-shadow .3s, transform .35s var(--ease); }
  .site-header.is-solid, .site-header.menu-open { background: transparent; }
  .site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
    background: rgb(255 255 255 / .72);
    -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  }
  .site-header.is-solid::before, .site-header.menu-open::before { opacity: 1; }
  /* Slides away while scrolling down, back on the first scroll up (see main.js) */
  .site-header.is-tucked { transform: translateY(-100%); box-shadow: none; }
  .nav__toggle-bar { width: 24px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { transform: translateY(4.25px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-4.25px) rotate(-45deg); }

  /* Full-screen sheet under the header; the page behind it doesn't scroll (see main.js) */
  .mobile-menu:not([hidden]) {
    position: fixed; inset: var(--header-h) 0 0; overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column; padding: 8px var(--gutter) 0;
    background: var(--menu-sheet); color: var(--ink); border-top: 1px solid var(--menu-glass-edge);
    -webkit-backdrop-filter: var(--menu-glass-blur); backdrop-filter: var(--menu-glass-blur);
    animation: mobile-menu-in .35s var(--ease);
  }
  .mobile-menu__cats { display: grid; }
  .mobile-menu .menu-cat { padding: 12px 0; }
  .mobile-menu .menu-cat__name { font-size: var(--step-2); font-weight: 900; }
  .mobile-menu .menu-sub { padding: 6px 0; font-size: var(--step-1); }
  .mobile-menu__links { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--ink); }
  .mobile-menu__links a { display: block; padding: 12px 0; font-size: var(--step-1); font-weight: 700; }
  .mobile-menu__contact {
    margin: auto calc(-1 * var(--gutter)) 0; padding: 20px var(--gutter) max(24px, env(safe-area-inset-bottom));
    display: grid; gap: 4px; background: rgb(42 31 40 / .05); font-size: var(--step--1);
  }
  .mobile-menu__contact a { display: flex; align-items: center; gap: 12px; min-height: 44px; }
  .mobile-menu__contact svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .site-header.menu-open { color: var(--ink); }
  .site-header.menu-open .brand__logo { filter: none; }
  @keyframes mobile-menu-in { from { opacity: 0; transform: translateY(-8px); } }

  .product__name { margin-top: 12px; font-size: var(--step--1); }
}
@media (max-width: 480px) {
}
/* Phones: all four stay in one row, so the type and spacing shrink with the cards */
@media (max-width: 560px) {
  .products { --gap: 8px; }
  .product__name { margin-top: 8px; font-size: .75rem; line-height: 1.5; }
  .product__price, .product__order { font-size: .6875rem; }
  /* "سفارش در اینستاگرام" would wrap onto two lines; the link still opens Instagram */
  .product__order-via { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__scroll span { animation: none; }
}
