/* ==========================================================================
   LAAN JEWELRY — Components & page sections
   ========================================================================== */

/* ---------- Header / nav -------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--ivory) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2), background var(--dur-2);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); min-height: 72px;
}
/* Circular logo badge: deep-green disc with gold cursive "Laan" */
.brand {
  --logo-size: 58px;
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--logo-size); height: var(--logo-size);
  border-radius: 50%; overflow: hidden; direction: ltr; unicode-bidi: isolate;
  background:
    radial-gradient(120% 120% at 50% 30%, #12563a 0%, var(--emerald-deep) 55%, var(--emerald-ink) 100%);
  border: 1px solid rgba(201,168,110,.45);
  box-shadow: inset 0 1px 6px rgba(0,0,0,.5), 0 4px 14px rgba(0,0,0,.35);
  font-family: var(--f-script); font-weight: 400;
  font-size: calc(var(--logo-size) * .5); line-height: 1;
  letter-spacing: 0;
  color: var(--gold-soft);
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.brand:hover { transform: translateY(-1px); box-shadow: inset 0 1px 6px rgba(0,0,0,.5), 0 8px 20px rgba(0,0,0,.45); }
.brand .brand-mark { color: inherit; }
html[dir="rtl"] .brand { font-family: var(--f-script); }

.nav-links { display: flex; align-items: center; gap: var(--s-6); }
.nav-links a { font-size: var(--t-sm); letter-spacing: .04em; color: var(--cocoa); position: relative; padding-block: 6px; }
.nav-links a::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: inline-start; transition: transform var(--dur-2) var(--ease-out); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: var(--s-3); }

/* Language switcher */
.lang-switch { display: inline-flex; align-items: center; background: var(--sand); border-radius: var(--r-pill); padding: 3px; }
.lang-switch button {
  min-height: 34px; padding: 0 12px; border-radius: var(--r-pill);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .05em; color: var(--mocha);
  transition: background var(--dur-2), color var(--dur-2);
}
.lang-switch button[aria-pressed="true"] { background: var(--cream); color: var(--ink); box-shadow: var(--sh-sm); }

/* Language dropdown (globe icon) */
.lang-menu { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: var(--r-pill); background: var(--sand); color: var(--cocoa); border: 0; cursor: pointer; font: inherit; font-size: var(--t-xs); font-weight: 700; letter-spacing: .05em; transition: background var(--dur-2), color var(--dur-2); }
.lang-btn:hover { color: var(--ink); }
.lang-globe { width: 20px; height: 20px; flex: none; }
.lang-caret { width: 13px; height: 13px; opacity: .65; transition: transform var(--dur-2) var(--ease-out); }
.lang-menu.is-open .lang-caret { transform: rotate(180deg); }
.lang-pop {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 172px;
  background: var(--cream); border: 1px solid var(--line-strong); border-radius: var(--r);
  box-shadow: var(--sh-lg); padding: 6px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out), visibility var(--dur-2);
  z-index: calc(var(--z-nav) + 5);
}
.lang-menu.is-open .lang-pop { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-pop button { display: flex; align-items: center; gap: 10px; text-align: start; padding: 10px 14px; border-radius: var(--r-sm); background: transparent; border: 0; cursor: pointer; font: inherit; font-size: var(--t-sm); color: var(--cocoa); transition: background var(--dur-1), color var(--dur-1); }
.lang-pop button:hover { background: var(--sand); color: var(--ink); }
.lang-pop button[aria-pressed="true"] { background: var(--sand); color: var(--gold-deep); font-weight: 700; }
.lang-pop button[aria-pressed="true"]::after { content: "✓"; margin-inline-start: auto; color: var(--gold-deep); }
/* inside the mobile drawer: full-width trigger, popover opens upward above it */
.drawer .lang-menu { align-self: stretch; }
.drawer .lang-btn { width: 100%; justify-content: flex-start; }
.drawer .lang-pop { inset-inline-start: 0; top: auto; bottom: calc(100% + 8px); }

/* Hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-sm); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 22px; height: 2px; background: var(--ink); transition: transform var(--dur-2) var(--ease), opacity var(--dur-1); }
.nav-toggle span::before { transform: translateY(-7px); } .nav-toggle span::after { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(-1px); }

/* Mobile drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(43,29,20,.5); opacity: 0; visibility: hidden; transition: opacity var(--dur-2), visibility var(--dur-2); z-index: var(--z-drawer); }
.drawer-scrim.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; width: min(84vw, 360px);
  background: var(--cream); z-index: calc(var(--z-drawer) + 1);
  transform: translateX(100%); transition: transform var(--dur-3) var(--ease-out);
  padding: calc(env(safe-area-inset-top) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: var(--s-4);
  box-shadow: var(--sh-lg);
}
html[dir="rtl"] .drawer { inset-inline-end: 0; transform: translateX(-100%); }
.drawer.is-open { transform: translateX(0); }
/* The RTL closed rule above outranks `.drawer.is-open` on specificity, so
   without this the mobile menu could never slide on-screen in Arabic/Kurdish —
   it stayed translated off-canvas even when opened. Match that specificity for
   the open state so the drawer actually appears in RTL. */
html[dir="rtl"] .drawer.is-open { transform: translateX(0); }
.drawer a { font-family: var(--f-display); font-size: 1.6rem; color: var(--ink); padding-block: 8px; border-bottom: 1px solid var(--line); }
html[dir="rtl"] .drawer a { font-family: var(--f-arabic); font-size: 1.3rem; }

/* Mobile bottom nav */
.bottom-nav {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: var(--z-nav);
  display: none; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  padding-block-end: env(safe-area-inset-bottom);
}
.bottom-nav a { display: grid; justify-items: center; gap: 3px; padding: 10px 0 8px; font-size: 10px; letter-spacing: .04em; color: var(--taupe); }
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a[aria-current="page"] { color: var(--gold-deep); }

/* ---------- Hero (full-bleed photographic · clean editorial) ------------- */
.hero-home {
  position: relative; isolation: isolate;
  min-height: clamp(540px, 90vh, 820px);
  display: grid; place-items: center; text-align: center;
}
/* On the homepage the photo runs to the very top, behind the (transparent) header. */
.home .hero-home { margin-top: -72px; }
.hero-home-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-home-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%;
  transform: scale(1.12); animation: heroKenBurns 2.4s var(--ease-out) forwards; }
/* slow, quiet zoom-out on the hero photo the moment the page opens — the first
   thing shoppers see is in gentle motion, then it keeps drifting imperceptibly. */
@keyframes heroKenBurns { to { transform: scale(1.02); } }
/* warm legibility wash — a soft centred vignette behind the text plus deeper
   top (header) & bottom edges, so white type stays legible over any photo. */
.hero-home-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(72% 62% at 50% 50%, rgba(34,22,12,.44) 0%, transparent 74%),
    linear-gradient(180deg, rgba(34,22,12,.52) 0%, rgba(34,22,12,.24) 28%, rgba(34,22,12,.28) 56%, rgba(34,22,12,.66) 100%);
}
.hero-home-inner {
  position: relative; z-index: 1;
  display: grid; justify-items: center; gap: clamp(18px, 3.5vw, 26px);
  padding: clamp(40px, 10vh, 120px) var(--gutter) clamp(72px, 12vh, 132px);
  max-width: 900px;
}
.hero-home .eyebrow { color: #f3e7d3; letter-spacing: .32em; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.hero-home h1 { display: grid; gap: clamp(6px, 2.2vw, 16px); color: #fff; text-shadow: 0 2px 26px rgba(0,0,0,.38); }
.hero-home-l1 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.6rem, 4.4vw, 3.1rem); letter-spacing: .06em; line-height: 1.1;
  text-transform: uppercase;
}
.hero-home-l2 {
  font-family: var(--f-script); font-weight: 400; font-style: normal;
  font-size: clamp(3.2rem, 10vw, 6.4rem); line-height: .92; letter-spacing: 0;
  color: #f7ecd6; direction: ltr; unicode-bidi: isolate; margin-top: 0;
}
html[dir="rtl"] .hero-home-l1 { font-family: var(--f-arabic); letter-spacing: 0; }
html[dir="rtl"] .hero-home-l2 { font-family: var(--f-script); }
/* circular brand medallion overhanging the hero base */
.hero-medallion {
  /* `left` on purpose, not inset-inline-start: the transform below is not
     direction-aware, so under RTL the logical inset and translateX pull the
     same way and the medallion lands a full width off-centre. */
  position: absolute; left: 50%; inset-block-end: 0; z-index: 4;
  /* two transforms are in play: translate(-50%,50%) parks the disc straddling
     the hero's base edge, and a scale is layered on for hover/intro. They're
     combined explicitly everywhere so neither ever cancels the other out. */
  transform: translate(-50%, 50%) scale(1);
  width: clamp(84px, 11vw, 116px); aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; line-height: 0;
  background: radial-gradient(120% 120% at 50% 30%, #fffaf1 0%, #f2e4cd 100%);
  border: 1px solid rgba(184,135,63,.55);
  box-shadow: 0 14px 34px rgba(38,25,14,.28), inset 0 1px 3px rgba(255,255,255,.8);
  font-family: var(--f-script); color: var(--gold-deep);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
  animation: medallionIn 720ms var(--ease-out) 900ms both;
}
/* The cursive "L" (Great Vibes) has lopsided vertical metrics, so grid/place-
   items centred it low. Center the glyph on its own optical middle instead. */
.hero-medallion .brand-mark { display: block; line-height: 1; transform: translateY(-0.07em); }
.hero-medallion:hover { transform: translate(-50%, 50%) scale(1.05); box-shadow: 0 18px 42px rgba(38,25,14,.34), inset 0 1px 3px rgba(255,255,255,.8); }
/* pop the disc in AFTER the hero text has settled — keeps the parking transform */
@keyframes medallionIn {
  from { opacity: 0; transform: translate(-50%, 50%) scale(0); }
  60%  { opacity: 1; transform: translate(-50%, 50%) scale(1.08); }
  to   { opacity: 1; transform: translate(-50%, 50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-home-media img { animation: none; transform: scale(1.02); }
  .hero-medallion { animation: none; }
}
html[dir="rtl"] .hero-medallion { font-family: var(--f-script); }
/* the section after the hero gets extra top room so the medallion never collides */
.hero-home + .section { padding-top: clamp(80px, 9vw, 128px); }
@media (max-width: 560px) { .hero-home { min-height: clamp(460px, 76vh, 640px); } }

/* Transparent header sitting over the photographic hero (homepage only),
   turning solid on scroll. Scoped to body.home so other pages are unaffected. */
.home .site-header:not(.is-scrolled) {
  background: transparent; backdrop-filter: none; border-bottom-color: transparent;
}
.home .site-header:not(.is-scrolled) .nav-links a { color: #f3e7d3; }
.home .site-header:not(.is-scrolled) .nav-links a[aria-current="page"] { color: #fff; }
.home .site-header:not(.is-scrolled) .nav-links a::after { background: #f7ecd6; }
.home .site-header:not(.is-scrolled) .nav-toggle span,
.home .site-header:not(.is-scrolled) .nav-toggle span::before,
.home .site-header:not(.is-scrolled) .nav-toggle span::after { background: #fbf3e6; }
.home .site-header:not(.is-scrolled) .lang-btn { background: rgba(255,255,255,.16); color: #fbf3e6; }
.home .site-header:not(.is-scrolled) .cart-btn { color: #fbf3e6; }

/* ---------- Hero (still-life · jewelry-forward) --------------------------- */
.hero-still {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(500px, 86vh, 820px);
  display: grid; align-items: end; justify-items: center; text-align: center;
  background: #06101a; /* fallback before the shader paints */
}
.hero-still-media { position: absolute; inset: 0; z-index: -2; }
.hero-still-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
/* animated shader canvas sits behind the legibility wash */
.hero-still .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
/* Legibility wash: darker top (under the sticky header) and bottom (under the
   text), lighter middle so the jewelry keeps its sparkle. */
.hero-still::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,13,22,.62) 0%, rgba(6,13,22,.18) 26%, rgba(6,13,22,.20) 52%, rgba(6,13,22,.78) 100%),
    radial-gradient(140% 70% at 50% 116%, rgba(6,13,22,.9), transparent 62%);
}
.hero-still-inner {
  position: relative; z-index: 1;
  display: grid; justify-items: center; gap: 16px;
  padding-block: clamp(48px, 12vh, 128px) clamp(64px, 14vh, 150px);
}
.hero-still .eyebrow { color: var(--gold-soft); text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.hero-wordmark {
  direction: ltr; unicode-bidi: isolate;
  font-family: var(--f-script); font-weight: 400; letter-spacing: 0;
  color: var(--gold-soft);
  font-size: clamp(4.2rem, 15vw, 9.5rem); line-height: .82;
  text-shadow: 0 6px 34px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.5);
  margin-block: -6px;
}
html[dir="rtl"] .hero-wordmark { font-family: var(--f-script); }
.hero-still-sub {
  color: #edf2ef; font-size: var(--t-md); max-width: 42ch;
  text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
/* subtle scroll cue */
.hero-still-scroll {
  position: absolute; z-index: 1; inset-block-end: 18px; inset-inline-start: 50%;
  transform: translateX(-50%); width: 22px; height: 34px;
  border: 1.5px solid rgba(241,246,243,.5); border-radius: 12px;
}
.hero-still-scroll::after {
  content: ""; position: absolute; inset-inline-start: 50%; inset-block-start: 7px;
  width: 3px; height: 7px; border-radius: 2px; background: var(--gold-soft);
  transform: translateX(-50%); animation: heroScroll 1.8s var(--ease) infinite;
}
@keyframes heroScroll { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 10px); } }
@media (prefers-reduced-motion: reduce) { .hero-still-scroll::after { animation: none; } }
@media (max-width: 560px) { .hero-still { min-height: clamp(440px, 74vh, 620px); } .hero-still-scroll { display: none; } }

/* ---------- Hero (dark, shader background) -------------------------------- */
.hero--dark { position: relative; overflow: hidden; background: var(--espresso); color: var(--on-dark);
  padding-block: clamp(56px, 10vw, 130px); isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
/* legibility scrim — stronger on the text side, direction-aware */
.hero--dark::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to right, rgba(5,14,22,.74) 0%, rgba(5,14,22,.44) 42%, rgba(5,14,22,.06) 70%),
    linear-gradient(to top, rgba(5,14,22,.58), transparent 40%); }
html[dir="rtl"] .hero--dark::before { background:
    linear-gradient(to left, rgba(5,14,22,.74) 0%, rgba(5,14,22,.44) 42%, rgba(5,14,22,.06) 70%),
    linear-gradient(to top, rgba(5,14,22,.58), transparent 40%); }
.hero--dark .wrap { position: relative; z-index: 2; }
.hero--dark .eyebrow { color: var(--gold-soft); }
.hero--dark h1 { color: var(--on-dark); text-shadow: 0 1px 30px rgba(0,0,0,.25); }
.hero--dark h1 .accent { color: var(--gold-soft); }
.hero--dark .lead { color: #ece0cf; }
.hero--dark .hero-media { box-shadow: 0 30px 80px rgba(0,0,0,.45); border: 1px solid rgba(207,160,96,.55); }
.hero--dark .hero-badge { background: color-mix(in srgb, var(--gold) 92%, transparent); color: #241811; font-weight: 500; }
.btn--light { --btn-bg: #f2f6f4; --btn-fg: #0a1620; }
.btn--light:hover { --btn-bg: #fff; }

.hero { position: relative; padding-block: clamp(48px, 9vw, 110px) clamp(40px, 7vw, 96px); overflow: hidden; }
.hero::before { /* soft radial glow */
  content: ""; position: absolute; inset-block-start: -20%; inset-inline-end: -10%;
  width: 60vmax; height: 60vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,138,79,.16), transparent 60%);
  pointer-events: none;
}
.hero-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-block: .2em .1em; }
.hero h1 .accent { color: var(--gold-deep); font-style: italic; }
.hero-media { position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); background: var(--sand); }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; inset-block-end: 18px; inset-inline-start: 18px;
  background: color-mix(in srgb, var(--espresso) 88%, transparent); color: var(--on-dark);
  padding: 10px 16px; border-radius: var(--r-pill); font-size: var(--t-xs); letter-spacing: .1em; backdrop-filter: blur(6px);
}

/* ---------- Section headers ---------------------------------------------- */
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); }
.section-head.center { justify-items: center; }
.section-head h2 { max-width: 20ch; }

/* ---------- Product grid & cards ----------------------------------------- */
.product-grid { display: grid; gap: clamp(16px, 3vw, 32px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card { display: flex; flex-direction: column; gap: var(--s-3); }
.card-media {
  position: relative; aspect-ratio: 3/4; border-radius: 0; overflow: hidden;
  background: var(--sand);
  /* whisper of emerald hairline — the deliberate accent, stronger on hover */
  border: 1px solid color-mix(in srgb, var(--emerald) 16%, var(--line));
  box-shadow: var(--sh-sm);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.card:hover .card-media {
  border-color: color-mix(in srgb, var(--emerald) 52%, transparent);
  box-shadow: var(--sh-md);
}
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-out); }
.card-media .card-vid { background: var(--sand); }
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.05); }
.card-media .tag { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; background: color-mix(in srgb, var(--cream) 90%, transparent); color: var(--cocoa); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-pill); }

/* Unavailable / sold-out state */
.card-badge {
  position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 2;
  background: rgba(39,26,16,.82); color: #f6efe3; backdrop-filter: blur(4px);
  border: 1px solid rgba(246,239,227,.28);
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--r-pill);
}
.card.is-unavailable .card-media img,
.card.is-unavailable .card-media video { filter: grayscale(.55) brightness(.72); }
.card.is-unavailable .card-name { color: var(--mocha); }
.card.is-unavailable .card-price { color: var(--taupe); font-weight: 600; }
.card-media .vid-dot { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; width: 30px; height: 30px; display: grid; place-items: center; background: color-mix(in srgb, var(--espresso) 78%, transparent); color: var(--on-dark); border-radius: 50%; }
.card-media .vid-dot svg { width: 14px; height: 14px; }
.card-quick {
  position: absolute; inset-inline: 10px; inset-block-end: 10px;
  display: flex; gap: 8px; opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-2), transform var(--dur-2);
}
.card:hover .card-quick, .card:focus-within .card-quick { opacity: 1; transform: none; }
.card-quick { z-index: 2; }
.card-quick .chip { flex: 1; text-align: center; background: color-mix(in srgb, var(--cream) 94%, transparent); border-radius: var(--r-pill); padding: 9px; font-size: var(--t-xs); letter-spacing: .06em; box-shadow: var(--sh-sm); transition: background var(--dur-2); }
.card-quick .chip:hover { background: var(--cream); }
.card-media .stretch { position: absolute; inset: 0; z-index: 1; }
.card-body { display: grid; gap: 2px; }
.card-name { font-family: var(--f-display); font-weight: 500; font-size: var(--t-base); line-height: 1.3; letter-spacing: .01em; color: var(--ink); }
html[dir="rtl"] .card-name { font-family: var(--f-arabic); }
.card-cat { font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); }
.card-price { font-size: var(--t-sm); color: var(--gold-deep); font-weight: 500; }

/* touch: show quick actions without hover on coarse pointers */
@media (hover: none) { .card-quick { opacity: 1; transform: none; } }
/* On phones the quick "View / Add to bag" chips are hidden — the whole card is
   already tappable (the .stretch overlay) so shoppers just tap through to the
   product page. Desktop keeps the hover chips. */
@media (max-width: 719.98px) { .card-quick { display: none; } }

/* ---------- Category icon badges (white disc · emerald line icon) --------- */
.cat-icons {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 4vw, 44px); justify-items: center;
}
@media (min-width: 720px) { .cat-icons { grid-template-columns: repeat(4, 1fr); } }
.cat-badge { display: grid; justify-items: center; gap: 16px; text-align: center; }
.cat-ic {
  width: clamp(88px, 13vw, 128px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 25%, #ffffff 0%, #eef3f1 100%);
  box-shadow: var(--sh-md), 0 0 0 1px rgba(201,168,110,.28) inset;
  border: 1px solid rgba(255,255,255,.6);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.cat-ic svg { width: 48%; height: 48%; color: var(--emerald); }
.cat-badge:hover .cat-ic { transform: translateY(-6px); box-shadow: var(--sh-lg), 0 0 0 1px rgba(201,168,110,.5) inset; }
.cat-badge > span:last-child {
  font-family: var(--f-display); font-size: var(--t-md); color: var(--ink);
  letter-spacing: .01em;
}
html[dir="rtl"] .cat-badge > span:last-child { font-family: var(--f-arabic); }

/* ---------- Story / split ------------------------------------------------- */
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.split-media { aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); background: var(--sand); }
.split-media img, .split-media video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Feature list -------------------------------------------------- */
.features { display: grid; gap: 24px; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { display: grid; gap: 10px; padding: 28px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); }
.feature .ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--sand); color: var(--gold-deep); }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: var(--t-md); }

/* ---------- Dark band (quote) -------------------------------------------- */
.band-dark { background: var(--espresso); color: var(--on-dark); }
.band-dark .eyebrow { color: var(--gold-soft); }
.band-dark h2, .band-dark h3 { color: var(--on-dark); }
.quote { font-family: var(--f-display); font-size: var(--t-lg); font-style: italic; line-height: 1.4; max-width: 30ch; }
html[dir="rtl"] .quote { font-family: var(--f-arabic); font-style: normal; }

/* ---------- Footer -------------------------------------------------------- */
.site-footer {
  position: relative; overflow: hidden; margin-block-start: auto;
  padding-block: clamp(56px, 9vw, 104px) 30px;
  color: #f0e4d2;
  background:
    radial-gradient(120% 140% at 12% -10%, rgba(28,122,82,.30) 0%, transparent 55%),
    radial-gradient(130% 150% at 100% 0%, rgba(120,84,44,.55) 0%, transparent 52%),
    linear-gradient(180deg, rgba(45,31,19,.90) 0%, rgba(31,21,12,.94) 100%),
    url("../img/footer-jewelry.webp") center / cover no-repeat;
  background-color: #241a10;
}
/* warm gold hairline across the very top */
.site-footer::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 20%, var(--gold) 50%, var(--gold-soft) 80%, transparent);
  opacity: .8;
}
/* soft champagne glow drifting behind the footer */
.site-footer::after {
  content: ""; position: absolute; inset-block-end: -40%; inset-inline-start: 50%;
  width: 70vw; height: 70vw; max-width: 720px; max-height: 720px; transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 22%, transparent), transparent 62%);
  pointer-events: none; animation: footerGlow 12s ease-in-out infinite;
}
@keyframes footerGlow { 0%,100% { opacity: .5; transform: translate(-52%, 6%); } 50% { opacity: .9; transform: translate(-48%, -4%); } }
@media (prefers-reduced-motion: reduce) { .site-footer::after { animation: none; } }
.site-footer > .wrap { position: relative; z-index: 1; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer .brand { --logo-size: 84px; }
.site-footer .brand .brand-mark { color: var(--gold-soft); }
.site-footer .muted { color: #d8c8b1 !important; }
.site-footer h4 { font-family: var(--f-body); font-weight: 700; font-size: var(--t-xs); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 16px; }
.footer-links { display: grid; gap: 11px; }
.footer-links a { color: #e6d4bc; font-size: var(--t-sm); font-weight: 600; width: fit-content; position: relative; transition: color var(--dur-1) var(--ease), padding-inline-start var(--dur-1) var(--ease); }
.footer-links a::before { content: ""; position: absolute; inset-inline-start: -14px; inset-block-start: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: 0; transform: translateY(-50%) scale(.4); transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.footer-links a:hover { color: #fff6e9; padding-inline-start: 14px; }
.footer-links a:hover::before { opacity: 1; transform: translateY(-50%) scale(1); }
.footer-bottom { position: relative; z-index: 1; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(230,196,119,.18); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: var(--t-xs); color: #b09a80; }
.social-row { display: flex; gap: 12px; }
.social-row a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(247,241,232,.2); border-radius: 50%; color: var(--on-dark); transition: background var(--dur-2), color var(--dur-2); }
.social-row a:hover { background: var(--gold); color: #241811; }
.social-row svg { width: 18px; height: 18px; }

/* ---------- Forms --------------------------------------------------------- */
.field { display: grid; gap: 6px; margin-bottom: var(--s-4); }
.field label { font-size: var(--t-sm); font-weight: 500; color: var(--cocoa); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  min-height: 52px; padding: 12px 16px; background: var(--cream);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(136,103,52,.16); }
.field .help { font-size: var(--t-xs); color: var(--taupe); }
.field .err { font-size: var(--t-xs); color: var(--danger); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.form-row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

/* ---------- Product detail ------------------------------------------------ */
.pd { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 900px) { .pd { grid-template-columns: 1fr 1fr; align-items: start; } .pd .pd-info { position: sticky; top: 96px; } }
.gallery-main { aspect-ratio: 3/4; border-radius: var(--r-lg); overflow: hidden; background: var(--sand); box-shadow: var(--sh-md); }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 68px; height: 84px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; background: var(--sand); }
.gallery-thumbs button[aria-current="true"] { border-color: var(--gold); }
.gallery-thumbs img, .gallery-thumbs video { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: var(--t-xl); }
.pd-price { font-size: var(--t-md); color: var(--gold-deep); font-weight: 500; margin-block: 8px 4px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px; }
.pd-meta .pill { background: var(--sand); border-radius: var(--r-pill); padding: 6px 14px; font-size: var(--t-xs); letter-spacing: .06em; }
.pd-meta .pill--off { background: rgba(224,121,109,.16); color: #e0796d; border: 1px solid rgba(224,121,109,.35); font-weight: 700; }
.pd-actions { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 480px) { .pd-actions { grid-template-columns: 1fr auto; } }

/* ---- Size selector (product page) ---- */
.pd-sizes { margin-top: 20px; display: grid; gap: 10px; }
.pd-sizes-label { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); font-weight: 700; }
.size-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.size-pill {
  min-width: 46px; min-height: 44px; padding: 0 16px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--cream); color: var(--cocoa);
  border-radius: var(--r-pill); font: inherit; font-size: var(--t-sm); font-weight: 600;
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), transform var(--dur-1) var(--ease);
}
.size-pill:hover { border-color: var(--gold); }
.size-pill.is-active { background: var(--espresso); color: var(--on-dark); border-color: var(--espresso); transform: translateY(-1px); }
.size-custom {
  max-width: 260px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--cream);
  font: inherit; color: var(--ink);
}
.size-custom:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.cart-size { font-size: var(--t-xs); color: var(--taupe); letter-spacing: .02em; }

/* ---------- Empty / loading ---------------------------------------------- */
.empty { text-align: center; padding: 64px 20px; color: var(--mocha); }
.skeleton { background: linear-gradient(90deg, var(--sand) 25%, var(--sand-deep) 37%, var(--sand) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ---------- Filters ------------------------------------------------------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--s-6); }
.filters button { min-height: 42px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: var(--t-sm); color: var(--cocoa); background: transparent; transition: background var(--dur-2), color var(--dur-2), border-color var(--dur-2); }
.filters button[aria-pressed="true"] { background: var(--espresso); color: var(--on-dark); border-color: var(--espresso); }

/* ---------- Values marquee (under hero) ---------------------------------
   Seamless infinite scroll: the track holds the 6 items TWICE, and the
   animation shifts it by exactly one set (-50%), so the loop never jumps.
   Soft gold hairlines top & bottom + a fade at both edges keep it feeling
   crafted rather than a hard-cut ticker. */
.marquee {
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(201,168,110,0), rgba(201,168,110,.35) 18%, rgba(201,168,110,.35) 82%, rgba(201,168,110,0)) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(201,168,110,0), rgba(201,168,110,.35) 18%, rgba(201,168,110,.35) 82%, rgba(201,168,110,0)) bottom / 100% 1px no-repeat,
    var(--espresso);
  color: var(--on-dark);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track {
  display: flex; width: max-content; will-change: transform;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; padding-block: 16px;
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-md);
  letter-spacing: .01em; white-space: nowrap; color: var(--on-dark);
  padding-inline-start: 34px;
}
.marquee-item::before {
  content: "✦"; color: var(--gold-soft); font-size: .6em; opacity: .9;
  margin-inline-end: 34px; transform: translateY(-1px);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee-track { animation-name: marqueeRtl; }
@keyframes marqueeRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 4px 8px; padding-block: 8px; }
}

/* ---------- How-to-order steps ------------------------------------------ */
.steps { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 10px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 26px 30px; text-align: center; box-shadow: var(--sh-sm); transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.step:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.step-num { width: 48px; height: 48px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--espresso); color: var(--gold-soft); font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 16%, transparent); }
.step h3 { font-size: var(--t-md); margin-bottom: 8px; }
.step p { margin-inline: auto; }

/* ---------- Instagram gallery ------------------------------------------- */
.ig-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px) { .ig-grid { grid-template-columns: repeat(4, 1fr); } }
.ig-tile { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--sand); display: block; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.ig-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(43,29,20,.5)); opacity: 0; transition: opacity var(--dur-2) var(--ease); }
.ig-tile:hover img { transform: scale(1.08); }
.ig-tile:hover::after { opacity: 1; }
.ig-tile .ig-ic { position: absolute; inset-block-end: 10px; inset-inline-end: 10px; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); z-index: 1; }
.ig-tile .ig-ic svg { width: 22px; height: 22px; }
.ig-tile:hover .ig-ic { opacity: 1; transform: none; }
.ig-follow { text-align: center; margin-top: 28px; }

/* ---------- Floating actions (WhatsApp + back to top) -------------------- */
.fab-stack { position: fixed; inset-inline-end: 18px; inset-block-end: 20px; z-index: 90; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--sh-lg); cursor: pointer; border: 0;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), opacity var(--dur-2) var(--ease); }
.fab svg { width: 26px; height: 26px; }
.fab:hover { transform: translateY(-3px) scale(1.06); }
.fab-wa { background: #25d366; color: #fff; position: relative; }
.fab-wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: fabPulse 2.6s var(--ease) infinite; }
@keyframes fabPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.fab-top { background: var(--espresso); color: var(--gold-soft); opacity: 0; transform: translateY(12px) scale(.8); pointer-events: none; }
.fab-top.is-in { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 860px) { .fab-stack { inset-block-end: 78px; } .fab-wa { display: none; } }
@media (prefers-reduced-motion: reduce) { .fab-wa::after { animation: none; } .fab { transition: none; } }

/* ---------- Responsive nav toggles --------------------------------------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  /* header language menu becomes a compact globe (label + caret hidden) */
  .nav-actions .lang-menu .lang-cur,
  .nav-actions .lang-menu .lang-caret { display: none; }
  .nav-actions .lang-btn { padding: 0; width: 40px; justify-content: center; background: transparent; }
  .bottom-nav { display: grid; }
  main { padding-bottom: 64px; } /* clear bottom nav */
}

/* ---------- Shopping bag (cart) ---------------------------------------- */
.cart-btn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--r-sm); color: var(--cocoa); background: transparent; border: 0; cursor: pointer; transition: color var(--dur-2), transform var(--dur-2) var(--ease-out); }
.cart-btn svg { width: 23px; height: 23px; }
.cart-btn:hover { color: var(--gold-deep); }
.cart-count { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; background: var(--emerald); color: #fff; font-size: 10px; font-weight: 800; line-height: 1; border-radius: var(--r-pill); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
[data-cart-open].is-bump { animation: cartBump .42s var(--ease-out); }
@keyframes cartBump { 30% { transform: scale(1.2); } 60% { transform: scale(.92); } 100% { transform: scale(1); } }

/* bottom-nav bag button (matches the nav links) */
.bn-cart { position: relative; display: grid; justify-items: center; gap: 3px; padding: 10px 0 8px; font-size: 10px; letter-spacing: .04em; color: var(--taupe); background: none; border: 0; cursor: pointer; font-family: inherit; }
.bn-cart svg { width: 22px; height: 22px; }
.bn-cart .cart-count { top: 4px; inset-inline-end: calc(50% - 22px); }

/* slide-in drawer */
.cart-scrim { position: fixed; inset: 0; background: rgba(39,26,16,.5); opacity: 0; visibility: hidden; transition: opacity var(--dur-2), visibility var(--dur-2); z-index: var(--z-drawer); }
.cart-scrim.is-open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; inset-block: 0; inset-inline-end: 0; width: min(93vw, 420px); background: var(--cream); z-index: calc(var(--z-drawer) + 1); transform: translateX(100%); transition: transform var(--dur-3) var(--ease-out); display: flex; flex-direction: column; box-shadow: var(--sh-lg); }
html[dir="rtl"] .cart-drawer { transform: translateX(-100%); }
.cart-drawer.is-open { transform: translateX(0); }
/* Same RTL specificity fix as the nav drawer — without it the bag panel stays
   off-screen in Arabic/Kurdish. */
html[dir="rtl"] .cart-drawer.is-open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 20px) var(--gutter) 15px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1.4rem; }
.cart-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px var(--gutter); }
.cart-empty { text-align: center; color: var(--mocha); padding: 56px 16px; }
.cart-item { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { flex: none; width: 56px; aspect-ratio: 3/4; border-radius: var(--r-sm); overflow: hidden; background: var(--sand); display: block; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cart-name { font-family: var(--f-display); font-size: 1rem; color: var(--ink); line-height: 1.2; }
.cart-name:hover { color: var(--gold-deep); }
.cart-line-price { font-size: var(--t-sm); color: var(--gold-deep); }
.cart-qty { flex: none; display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 2px; }
.cart-qty button { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; font-size: 1.05rem; color: var(--ink); background: transparent; border: 0; cursor: pointer; line-height: 1; transition: background var(--dur-1); }
.cart-qty button:hover { background: var(--sand); }
.cart-qty [data-qty] { min-width: 22px; text-align: center; font-size: var(--t-sm); font-variant-numeric: tabular-nums; color: var(--ink); }
.cart-remove { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--taupe); background: transparent; border: 0; cursor: pointer; transition: color var(--dur-2); }
.cart-remove:hover { color: #e79086; }
.cart-remove svg { width: 17px; height: 17px; }
.cart-foot { padding: 15px var(--gutter) calc(env(safe-area-inset-bottom) + 18px); border-top: 1px solid var(--line); display: grid; gap: 11px; background: var(--cream); }
.cart-total-row { display: flex; align-items: baseline; justify-content: space-between; font-size: var(--t-md); color: var(--mocha); }
.cart-total-row strong { font-family: var(--f-display); font-size: 1.35rem; color: var(--ink); }
.cart-note { font-size: var(--t-xs); color: var(--mocha); margin: 0; }
.cart-foot .btn--ghost { color: var(--cocoa); border-color: var(--line-strong); }

/* add-to-bag chip on product cards */
.card-quick .chip--add { border: 0; cursor: pointer; font-family: inherit; color: #fff; background: var(--emerald); }
.card-quick .chip--add:hover { background: var(--emerald-soft); }

/* ---------- Stock "how many left" line on product cards ----------------- */
.card-stock { font-size: var(--t-xs); letter-spacing: .02em; color: var(--taupe); }
.card-stock.is-low { color: var(--gold-deep); font-weight: 700; }
/* product page pill variant for low stock */
.pd-meta .pill--low { border-color: color-mix(in srgb, var(--gold) 55%, transparent); color: var(--gold-deep); background: color-mix(in srgb, var(--gold) 12%, transparent); font-weight: 700; }

/* ---------- Homepage swipe rails (New Arrivals · Season Favourites) -------
   On phones each of these two rows becomes ONE horizontal, finger-swipeable
   line of products (instead of a 2-up grid) so the shopper flicks left/right
   through the pieces. On tablet/desktop it reverts to the normal grid. */
@media (max-width: 719.98px) {
  .product-grid.home-rail {
    display: flex;
    grid-template-columns: none;              /* drop the grid tracks */
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* full-bleed to the screen edges, but keep a gutter of padding so the first
       and last card don't touch the sides */
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: 6px;
    scroll-padding-inline: var(--gutter);
  }
  .product-grid.home-rail::-webkit-scrollbar { display: none; }
  .product-grid.home-rail > .card {
    flex: 0 0 68%;
    max-width: 68%;
    scroll-snap-align: start;
  }
}

/* ---------- Search: header controls ------------------------------------- */
/* Desktop shows the full bar (with its magnifier icon); mobile shows just the
   icon. The magnifier lives inside the bar, so "the bar and the icon" on desktop
   is the bar itself, and the phone gets the compact icon. */
.search-inline {
  display: none; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px 0 12px; min-width: 210px;
  border-radius: var(--r-pill); background: var(--sand); color: var(--taupe);
  border: 1px solid transparent; cursor: pointer; font: inherit; font-size: var(--t-sm);
  text-align: start;
  transition: background var(--dur-2), border-color var(--dur-2), color var(--dur-2);
}
.search-inline:hover { background: var(--cream); border-color: var(--line-strong); color: var(--cocoa); }
.search-inline svg { width: 18px; height: 18px; flex: none; color: var(--gold-deep); }
.search-inline-ph { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.search-trigger {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: var(--r-sm); color: var(--cocoa); background: transparent; border: 0; cursor: pointer;
  transition: color var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.search-trigger svg { width: 22px; height: 22px; }
.search-trigger:hover { color: var(--gold-deep); }

@media (min-width: 861px) {
  .search-inline { display: inline-flex; }
  .search-trigger { display: none; }
}

/* legible over the transparent home hero header */
.home .site-header:not(.is-scrolled) .search-trigger { color: #fbf3e6; }
.home .site-header:not(.is-scrolled) .search-inline { background: rgba(255,255,255,.16); color: #f0e5d2; border-color: transparent; }
.home .site-header:not(.is-scrolled) .search-inline svg,
.home .site-header:not(.is-scrolled) .search-inline .search-inline-ph { color: #fbf3e6; }

/* ---------- Search: animated overlay panel ------------------------------ */
.search-overlay { position: fixed; inset: 0; z-index: calc(var(--z-drawer) + 5); }
.search-overlay[hidden] { display: none; }
.search-scrim { position: absolute; inset: 0; background: rgba(43,29,20,.5); opacity: 0; transition: opacity var(--dur-2); }
.search-overlay.is-open .search-scrim { opacity: 1; }
.search-panel {
  position: relative; margin: 0 auto; width: min(720px, 100%);
  max-height: 86vh; display: flex; flex-direction: column;
  background: var(--cream); box-shadow: var(--sh-lg);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: calc(env(safe-area-inset-top) + 16px) clamp(16px, 4vw, 28px) 20px;
  transform: translateY(-18px); opacity: 0;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2);
}
.search-overlay.is-open .search-panel { transform: none; opacity: 1; }

.search-bar { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); background: var(--ivory); border-radius: var(--r-pill); padding: 0 8px 0 14px; }
.search-bar:focus-within { border-color: color-mix(in srgb, var(--emerald) 45%, var(--line-strong)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--emerald) 14%, transparent); }
.search-bar-ic { display: grid; place-items: center; color: var(--gold-deep); }
.search-bar-ic svg { width: 20px; height: 20px; }
.search-field { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: var(--t-base); padding: 14px 4px; color: var(--ink); outline: none; }
.search-close { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: transparent; border: 0; cursor: pointer; color: var(--mocha); transition: background var(--dur-1), color var(--dur-1); }
.search-close:hover { background: var(--sand); color: var(--ink); }
.search-close svg { width: 20px; height: 20px; }

.search-results { margin-top: 14px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.search-hint { color: var(--taupe); text-align: center; padding: 28px 12px; font-size: var(--t-sm); }
.search-list { display: flex; flex-direction: column; gap: 2px; }
.search-row { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--r); transition: background var(--dur-1); }
.search-row:hover, .search-row:focus-visible { background: var(--sand); outline: none; }
.search-thumb { width: 52px; height: 52px; flex: none; border-radius: var(--r-sm); overflow: hidden; background: var(--sand); }
.search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--sand), var(--cream)); }
.search-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.search-row-name { font-family: var(--f-display); font-size: var(--t-base); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[dir="rtl"] .search-row-name { font-family: var(--f-arabic); }
.search-row-cat { font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--taupe); }
.search-row-go { flex: none; color: var(--gold-deep); opacity: 0; transition: opacity var(--dur-1); }
.search-row:hover .search-row-go { opacity: 1; }
html[dir="rtl"] .search-row-go { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  .search-panel { transition: opacity var(--dur-1); transform: none; }
}
