/* ==========================================================================
   Bibi Boutique — storefront styles
   Mobile-first. Hover rules live inside (hover:hover) and (pointer:fine).
   Logical properties (inline/block) so Arabic RTL mirrors automatically.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --blush-50: #FBF5F6;
  --blush-100: #F6E9EB;
  --blush-200: #F0DCDF;
  --blush-300: #E6C4C9;
  --rose-500: #C48A94;
  --rose-600: #A86C77;
  --gold-100: #F6EEDD;
  --gold-200: #EBDDBF;
  --gold-300: #DCC394;
  --gold-500: #A8844A;
  --gold-700: #83643A;
  --gold-800: #6A4E2B;
  --ink: #2B211B;
  --ink-2: #6B5D54;
  --ink-3: #8C7D74;
  --line: #EADFD9;
  --line-2: #F3EAE6;
  --surface: #FFFFFF;
  --bg: #FBF5F6;
  --cream: #FFFBF7;
  --sale: #A3263F;
  --ok: #2F7A55;
  --warn: #9A6412;

  --gold-grad: linear-gradient(120deg, #7E5F35 0%, #B8925A 28%, #EBD6A6 48%, #C9A86A 62%, #83643A 100%);
  --blush-grad: radial-gradient(120% 90% at 50% 0%, #FFF8F8 0%, #F6E6E9 45%, #EED6DA 100%);

  --font-display: "Cormorant Garamond", "Bodoni Moda", "Times New Roman", serif;
  --font-ui: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-xs: 6px;
  --r-s: 10px;
  --r: 16px;
  --r-l: 24px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(43, 33, 27, .05), 0 2px 10px rgba(43, 33, 27, .05);
  --shadow-2: 0 10px 30px rgba(84, 56, 38, .10), 0 2px 8px rgba(84, 56, 38, .06);
  --shadow-3: 0 30px 70px rgba(84, 56, 38, .20), 0 6px 18px rgba(84, 56, 38, .08);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);

  --announce-h: 34px;
  --header-h: 60px;
  --tabbar-h: 60px;
  --gutter: 16px;
  --maxw: 1320px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  --z-header: 40;
  --z-tabbar: 45;
  --z-sticky: 30;
  --z-layer: 100;
  --z-toast: 200;
}
html[lang="ar"] {
  --font-display: "Amiri", "Times New Roman", serif;
  --font-ui: "Tajawal", "Segoe UI", system-ui, sans-serif;
}
@media (min-width: 768px) { :root { --gutter: 28px; --header-h: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button, a, [role="button"], label, summary, .chip, .tab {
  touch-action: manipulation;
}
button, [role="button"], .chip, .tab, .btn, .tabbar a, .icon-btn {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, select, textarea { font: inherit; font-size: 16px; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-700); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold-200); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-s); transition: top .2s; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.02;
}
.eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-800);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.h-section {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 500;
  letter-spacing: -.005em;
}
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.tnum { font-variant-numeric: tabular-nums; }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.site-main { flex: 1; outline: none; padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }
@media (min-width: 1024px) { .site-main { padding-bottom: 0; } }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 40px; }
@media (min-width: 768px) { .section { padding-block: 64px; } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head .link-more { font-size: 14px; color: var(--gold-800); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding-block: 10px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line); border: 0; margin: 16px 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #FFF8F3;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid transparent;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .16s var(--ease-out), background-color .2s, box-shadow .25s, color .2s, opacity .2s;
  white-space: nowrap;
}
html[lang="ar"] .btn { letter-spacing: 0; font-size: 15px; }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn .ico { width: 18px; height: 18px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 12px; }
.btn-gold { --btn-bg: var(--gold-grad); --btn-fg: #2B1D0E; background: var(--gold-grad); background-size: 200% 100%; box-shadow: 0 8px 22px rgba(131, 100, 58, .28); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.btn-soft { --btn-bg: var(--surface); --btn-fg: var(--ink); border-color: var(--line); }
.btn-link { min-height: 44px; padding: 0 4px; background: none; color: var(--gold-800); letter-spacing: .04em; text-transform: none; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.btn::after { /* sheen sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::before {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--btn-fg) var(--btn-fg) transparent transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::after { transform: translateX(120%); transition: transform .8s var(--ease-out); }
  .btn:hover { box-shadow: 0 10px 26px rgba(43, 33, 27, .18); }
  .btn-gold:hover { background-position: 100% 0; }
  .btn-ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; background: var(--ink); color: #fff; }
  .btn-soft:hover { border-color: var(--ink-3); }
}

.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink);
  transition: background-color .2s, transform .16s var(--ease-out);
}
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--blush-100); } }
.badge-count {
  position: absolute; top: 4px; inset-inline-end: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--sale); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
  font-variant-numeric: tabular-nums;
  transform-origin: center;
}
.badge-count.bump { animation: bump .5s var(--spring); }
@keyframes bump { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------- Chips / pills ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; color: var(--ink); white-space: nowrap; scroll-snap-align: start;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s var(--ease-out);
}
.chip:active { transform: scale(.96); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .x { width: 14px; height: 14px; opacity: .7; }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink-3); } }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: var(--r-xs);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--surface); color: var(--ink);
}
.tag { white-space: nowrap; }
.tag svg { width: 14px; height: 14px; flex: none; }
.tag-sale { background: var(--sale); color: #fff; }
.tag-new { background: var(--ink); color: #fff; }
.tag-gold { background: var(--gold-grad); color: #2B1D0E; }
.tag-flash { background: #FCE7EA; color: var(--sale); }
html[lang="ar"] .tag { letter-spacing: 0; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field .req { color: var(--sale); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface);
  font-size: 16px; line-height: 1.4; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 110px; resize: vertical; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B5D54' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-inline-end: 40px;
}
html[dir="rtl"] .select { background-position: left 16px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold-700); box-shadow: 0 0 0 3px rgba(168, 132, 74, .18); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--sale); }
.field-error { font-size: 13px; color: var(--sale); }
.field-help { font-size: 13px; color: var(--ink-2); }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.input-group { position: relative; display: flex; }
.input-group .input { padding-inline-end: 56px; }
.input-group .icon-btn { position: absolute; inset-inline-end: 3px; top: 3px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin: 0; }

.choice {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.choice input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--cream); }
.choice .choice-body { flex: 1; display: grid; gap: 2px; }
.choice .choice-title { font-weight: 500; }
.choice .choice-sub { font-size: 13px; color: var(--ink-2); }
.choice .choice-price { font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Price / rating ---------- */
.price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.price .now { font-weight: 600; color: var(--ink); }
.price.is-sale .now { color: var(--sale); }
.price .was { color: var(--ink-3); text-decoration: line-through; font-size: .86em; }
.price .off { font-size: 12px; font-weight: 600; color: var(--sale); }
.stars { display: inline-flex; gap: 1px; color: var(--gold-500); }
.stars svg { width: 14px; height: 14px; }
.stars .empty { color: var(--blush-300); }

/* ---------- Announcement bar ---------- */
.announce {
  position: relative; z-index: calc(var(--z-header) + 1);
  height: var(--announce-h);
  padding-top: var(--safe-t);
  box-sizing: content-box;
  background: var(--ink); color: #F6E9D8;
  font-size: 12.5px; letter-spacing: .08em;
  overflow: hidden;
}
html[lang="ar"] .announce { letter-spacing: 0; font-size: 13px; }
.announce-track { position: relative; height: var(--announce-h); }
.announce-item {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding-inline: 16px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(100%);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.announce-item.is-in { opacity: 1; transform: translateY(0); }
.announce-item.is-out { opacity: 0; transform: translateY(-100%); }
.announce-item svg { width: 14px; height: 14px; color: var(--gold-300); flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(251, 245, 246, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, transform .35s var(--ease-out), background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(251, 245, 246, .92); }
@media (max-width: 1023px) {
  .site-header.is-hidden { transform: translateY(-100%); }
}
.header-inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.header-start, .header-end { display: flex; align-items: center; gap: 2px; }
.header-end { justify-content: flex-end; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-700); }
.brand-mono { width: 34px; height: 28px; flex: none; }
.brand-word { display: grid; line-height: 1; }
.brand-name { font-family: "Cormorant Garamond", serif; font-size: 19px; font-weight: 500; letter-spacing: .3em; margin-inline-end: -.3em; white-space: nowrap; }
.brand-tag { font-size: 8.5px; letter-spacing: .42em; color: var(--gold-800); margin-top: 4px; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 420px) { .brand-name { font-size: 16px; letter-spacing: .24em; } .brand-tag { display: none; } .brand-mono { width: 28px; height: 23px; } }
@media (min-width: 768px) { .brand-name { font-size: 22px; } .brand-mono { width: 40px; height: 32px; } }
.nav-desktop { display: none; }
@media (max-width: 1023px) { .hide-mobile { display: none !important; } }
@media (min-width: 1024px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 24px; }
  .nav-desktop { display: flex; justify-content: center; gap: 4px; }
  .hide-desktop { display: none !important; }
}
.nav-link {
  position: relative; display: inline-flex; align-items: center; height: var(--header-h); padding: 0 12px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
html[lang="ar"] .nav-link { letter-spacing: 0; font-size: 15px; }
.nav-link::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 18px; height: 1px; background: var(--gold-700);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-sale { color: var(--sale); }
.nav-link { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-link { padding: 0 9px; letter-spacing: .1em; font-size: 12.5px; }
  .nav-link.nav-opt { display: none; }
  .brand-name { font-size: 19px; letter-spacing: .24em; }
}
@media (hover: hover) and (pointer: fine) { .nav-link:hover::after { transform: scaleX(1); } }
.lang-btn { font-size: 13px; font-weight: 600; width: auto; padding: 0 10px; border-radius: var(--r-pill); }

/* Mega menu */
.mega {
  position: absolute; inset-inline: 0; top: 100%;
  background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease-out), transform .3s var(--ease-out), visibility 0s .3s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (max-width: 1023px) { .mega { display: none; } }
.mega-inner { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding-block: 28px; }
.mega-links { display: grid; gap: 4px; align-content: start; }
.mega-links a { padding: 8px 0; font-size: 15px; color: var(--ink-2); }
.mega-links a:hover { color: var(--ink); }
.mega-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.mega-cat { display: grid; gap: 8px; text-align: center; font-size: 14px; }
.mega-cat .thumb { aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden; background: var(--blush-100); }
.mega-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .mega-cat:hover img { transform: scale(1.06); } }

/* ---------- Tab bar (mobile app navigation) ---------- */
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-tabbar);
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255, 251, 247, .9);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
  border-top: 1px solid var(--line);
  transition: transform .35s var(--ease-out);
}
.tabbar.is-hidden { transform: translateY(110%); }
@media (min-width: 1024px) { .tabbar { display: none; } }
.tabbar a {
  position: relative; display: grid; place-items: center; align-content: center; gap: 3px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .04em; color: var(--ink-3);
  transition: color .2s;
}
.tabbar a svg { width: 23px; height: 23px; transition: transform .25s var(--spring); }
.tabbar a:active svg { transform: scale(.86); }
.tabbar a.is-active { color: var(--ink); }
.tabbar a.is-active svg { transform: translateY(-1px); }
.tabbar a.is-active::before {
  content: ""; position: absolute; top: 0; width: 26px; height: 2px; border-radius: 2px; background: var(--gold-grad);
}
.tabbar .badge-count { top: 6px; inset-inline-end: calc(50% - 22px); }
html[lang="ar"] .tabbar a { font-size: 11.5px; letter-spacing: 0; }

/* ---------- Layers: scrim, drawer, sheet, modal ---------- */
.scrim {
  position: fixed; inset: 0; z-index: var(--z-layer);
  background: rgba(32, 22, 16, .44);
  opacity: 0; transition: opacity .3s var(--ease-out);
}
.scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: calc(var(--z-layer) + 1);
  width: min(440px, 92vw);
  background: var(--cream);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-3);
  transition: transform .42s var(--ease-out);
  padding-top: var(--safe-t);
}
.drawer.from-end { inset-inline-end: 0; transform: translateX(100%); }
.drawer.from-start { inset-inline-start: 0; transform: translateX(-100%); }
html[dir="rtl"] .drawer.from-end { transform: translateX(-100%); }
html[dir="rtl"] .drawer.from-start { transform: translateX(100%); }
.drawer.is-open { transform: none !important; }
.layer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--line);
}
html[dir="rtl"] .layer-head { padding: 8px 20px 8px 12px; }
.layer-title { font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.layer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px; }
.layer-foot { padding: 16px 20px calc(16px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--surface); }

.sheet {
  position: fixed; inset-inline: 0; bottom: 0; z-index: calc(var(--z-layer) + 1);
  max-height: 88dvh; display: flex; flex-direction: column;
  background: var(--cream); border-radius: var(--r-l) var(--r-l) 0 0;
  box-shadow: var(--shadow-3);
  transform: translateY(100%); transition: transform .42s var(--ease-out);
}
.sheet.is-open { transform: none; }
.sheet.is-dragging { transition: none; }
.sheet-handle { display: grid; place-items: center; height: 22px; cursor: grab; touch-action: none; }
.sheet-handle::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: var(--blush-300); }
.sheet .layer-head { min-height: 52px; padding-top: 0; border-bottom: 0; }
.sheet .layer-body { padding-top: 4px; }
@media (min-width: 768px) {
  .sheet.as-modal-desktop {
    inset: auto; left: 50%; top: 50%; bottom: auto;
    width: min(560px, 92vw); max-height: 86vh; border-radius: var(--r-l);
    transform: translate(-50%, -46%) scale(.96); opacity: 0;
    transition: transform .35s var(--ease-out), opacity .25s;
  }
  .sheet.as-modal-desktop.is-open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet.as-modal-desktop .sheet-handle { display: none; }
  .sheet.as-modal-desktop .layer-head { padding-top: 8px; }
  .sheet.wide { width: min(860px, 94vw); }
}

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; z-index: var(--z-toast);
  inset-inline: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
  display: grid; gap: 8px; justify-items: center; pointer-events: none;
}
@media (min-width: 1024px) { .toasts { bottom: 24px; inset-inline: auto 24px; justify-items: end; } html[dir="rtl"] .toasts { inset-inline: 24px auto; } }
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  max-width: 440px; min-height: 52px; padding: 10px 10px 10px 16px;
  background: var(--ink); color: #FFF8F2; border-radius: var(--r);
  box-shadow: var(--shadow-3); font-size: 14.5px;
  animation: toast-in .45s var(--spring) both;
}
.toast.is-leaving { animation: toast-out .25s var(--ease-in) both; }
.toast .t-ico { width: 20px; height: 20px; flex: none; color: var(--gold-300); }
.toast.error .t-ico { color: #F3A1AE; }
.toast .t-msg { flex: 1; }
.toast .t-action { color: var(--gold-300); font-weight: 600; padding: 8px 10px; border-radius: var(--r-s); letter-spacing: .06em; text-transform: uppercase; font-size: 12.5px; }
.toast .t-thumb { width: 36px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--blush-100); flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- Search ---------- */
.search-layer {
  position: fixed; inset: 0; z-index: calc(var(--z-layer) + 1);
  background: var(--cream); display: flex; flex-direction: column;
  padding-top: var(--safe-t);
  opacity: 0; transform: translateY(-12px); transition: opacity .25s, transform .35s var(--ease-out);
}
.search-layer.is-open { opacity: 1; transform: none; }
@media (min-width: 1024px) {
  .search-layer { inset: 0 0 auto 0; max-height: 80vh; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-3); }
}
.search-bar { display: flex; align-items: center; gap: 8px; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); }
.search-bar form { flex: 1; position: relative; display: flex; align-items: center; }
.search-bar .ico-search { position: absolute; inset-inline-start: 14px; width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.search-bar input {
  width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); font-size: 16px;
}
html[dir="rtl"] .search-bar input { padding: 0 44px 0 16px; }
.search-bar input:focus { outline: none; border-color: var(--gold-700); }
.search-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px var(--gutter) calc(24px + var(--safe-b)); }
.search-group + .search-group { margin-top: 24px; }
.search-group h3 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
html[lang="ar"] .search-group h3 { letter-spacing: 0; font-size: 14px; }
.search-results { display: grid; gap: 4px; }
.search-hit { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: var(--r-s); }
.search-hit img { width: 48px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--blush-100); flex: none; }
.search-hit .name { font-size: 15px; }
.search-hit mark { background: var(--gold-100); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-hit:active, .search-hit:focus-visible { background: var(--blush-100); }
@media (hover: hover) and (pointer: fine) { .search-hit:hover { background: var(--blush-100); } }

/* ---------- Product card ---------- */
.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
.grid-products.dense { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
@media (min-width: 768px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } .grid-products.dense { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-products.dense { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.card { position: relative; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card-top { position: relative; perspective: 900px; }
.card-media {
  display: block; position: relative; aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden;
  background: var(--blush-100);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  will-change: transform;
}
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease-out), transform .8s var(--ease-out); }
.card-media .img-alt { opacity: 0; }
.card-media .glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .55), transparent 55%);
  mix-blend-mode: soft-light; transition: opacity .4s;
}
.card-badges { position: absolute; top: 10px; inset-inline-start: 10px; display: grid; gap: 4px; justify-items: start; z-index: 2; }
.card-wish {
  position: absolute; top: 6px; inset-inline-end: 6px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--ink); transition: transform .2s var(--spring), color .2s;
}
.card-wish svg { width: 19px; height: 19px; }
.card-wish.is-on { color: var(--sale); }
.card-wish.is-on svg { fill: currentColor; }
.card-wish:active { transform: scale(.85); }
.card-wish.pop svg { animation: heart-pop .5s var(--spring); }
@keyframes heart-pop { 0% { transform: scale(.6); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
.card-quick {
  position: absolute; bottom: 8px; inset-inline-end: 8px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1);
  transition: transform .2s var(--spring), background-color .2s;
}
.card-quick svg { width: 19px; height: 19px; }
.card-quick:active { transform: scale(.88); }
.card-soldout { position: absolute; inset: auto 0 0 0; padding: 8px; text-align: center; background: rgba(255, 255, 255, .86); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; z-index: 1; }
.card-info { display: grid; gap: 4px; padding-inline: 2px; }
.card-name { font-size: 14.5px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card .price { font-size: 15px; }
.swatches { display: flex; gap: 5px; align-items: center; }
.swatch-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.swatches .more { font-size: 11px; color: var(--ink-2); }
.card-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); }
.card-low { font-size: 12px; color: var(--warn); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-media { box-shadow: var(--shadow-2); }
  .card:hover .card-media .img-alt { opacity: 1; }
  .card:hover .card-media .glare { opacity: 1; }
  .card-quick { opacity: 0; transform: translateY(8px); }
  .card:hover .card-quick, .card-quick:focus-visible { opacity: 1; transform: none; }
  .card-quick:hover { background: var(--ink); color: #fff; }
}
.grid-products.dense .card-wish { width: 34px; height: 34px; }
.grid-products.dense .card-quick { display: none; }
.grid-products.dense .card-name { font-size: 13px; }
.grid-products.dense .card .price { font-size: 13.5px; }

/* rails (horizontal scrolling product rows) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 768px) { .rail { grid-auto-columns: 30%; gap: 20px; } }
@media (min-width: 1200px) { .rail { grid-auto-columns: calc(25% - 15px); } }
.rail-wrap { position: relative; }
.rail-nav { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .rail-nav { display: flex; gap: 8px; }
  .rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface); transition: background-color .2s; }
  .rail-nav button:hover { background: var(--blush-100); }
  .rail-nav svg { width: 18px; height: 18px; }
  html[dir="rtl"] .rail-nav svg { transform: scaleX(-1); }
}

/* ---------- Home: hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(88svh, 820px);
  background: var(--blush-grad);
  display: grid;
}
.hero-canvas { position: absolute; inset: 0; z-index: -1; }
.hero-canvas canvas { width: 100% !important; height: 100% !important; }
.hero-fallback { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; perspective: 800px; }
.hero-fallback img { width: min(46vw, 300px); animation: float3d 7s var(--ease-io) infinite; filter: drop-shadow(0 30px 30px rgba(131, 100, 58, .25)); }
@keyframes float3d { 0%, 100% { transform: rotateY(-14deg) translateY(0); } 50% { transform: rotateY(14deg) translateY(-12px); } }
.hero-inner {
  display: grid; align-content: end; gap: 18px;
  padding-block: 36px 40px;
  min-height: inherit;
}
.hero-copy { max-width: 560px; display: grid; gap: 16px; }
.hero h1 { font-size: clamp(44px, 11vw, 96px); }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero p.lead { font-size: 17px; color: var(--ink-2); max-width: 440px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hero-ctas .btn { flex: 1 1 auto; }
.hero-scroll { position: absolute; bottom: 18px; inset-inline-end: var(--gutter); display: none; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-800); }
.hero-scroll::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--gold-700), transparent); animation: scrollcue 2.2s var(--ease-io) infinite; transform-origin: top; }
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 767px) {
  .hero { min-height: calc(100svh - var(--header-h) - var(--announce-h) - var(--tabbar-h) - var(--safe-t) - var(--safe-b)); min-height: max(560px, calc(100svh - var(--header-h) - var(--announce-h) - var(--tabbar-h) - var(--safe-t) - var(--safe-b))); }
  .hero-copy { text-align: center; justify-items: center; margin-inline: auto; }
  .hero-ctas { width: 100%; }
}
@media (min-width: 768px) {
  .hero-inner { align-content: center; padding-block: 64px; }
  .hero-copy { margin-inline-end: auto; }
  .hero-ctas .btn { flex: 0 0 auto; }
  .hero-scroll { display: flex; }
}
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--gold-700); }
@media (min-width: 768px) { .hero-meta { justify-content: flex-start; } }

/* category circles */
.cat-circles { display: grid; grid-auto-flow: column; grid-auto-columns: 84px; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px var(--gutter) 6px; margin-inline: calc(var(--gutter) * -1); scroll-snap-type: x proximity; }
.cat-circles::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .cat-circles { grid-auto-flow: row; grid-template-columns: repeat(10, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; } }
.cat-circle { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 12.5px; line-height: 1.25; scroll-snap-align: start; }
.cat-circle .ring {
  position: relative; width: 78px; height: 78px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 210deg, #EBD6A6, #A8844A, #F3E4C2, #83643A, #EBD6A6);
  transition: transform .4s var(--spring);
}
.cat-circle .ring > span { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--blush-100); border: 2px solid var(--cream); }
.cat-circle img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25) translateY(6%); }
.cat-circle:active .ring { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .cat-circle:hover .ring { transform: translateY(-4px) rotate(-6deg); } }
@media (min-width: 1024px) { .cat-circle .ring { width: 96px; height: 96px; } .cat-circle { font-size: 13.5px; } }

/* perks strip */
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .perks { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.perk { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); }
.perk-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-800); flex: none; }
.perk-ico svg { width: 20px; height: 20px; }
.perk b { display: block; font-size: 14px; font-weight: 500; }
.perk span { font-size: 12.5px; color: var(--ink-2); }

/* flash sale */
.flash { background: linear-gradient(180deg, #FFF 0%, var(--blush-50) 100%); border-block: 1px solid var(--line-2); }
.flash-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 18px; }
.flash-title { display: flex; align-items: center; gap: 10px; }
.flash-title svg { width: 26px; height: 26px; color: var(--sale); }
.countdown { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.countdown .cd-label { font-size: 13px; color: var(--ink-2); margin-inline-end: 6px; }
.countdown .cd-box { min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; perspective: 200px; }
.countdown .cd-sep { color: var(--ink); font-weight: 600; }
.cd-box.tick { animation: flip .5s var(--ease-out); }
@keyframes flip { 0% { transform: rotateX(-80deg); opacity: .3; } 100% { transform: none; opacity: 1; } }

/* 3D occasion carousel */
.ring3d-section { overflow: hidden; background: linear-gradient(180deg, var(--bg), #F4E4E7 60%, var(--bg)); }
.ring3d-stage { position: relative; height: 420px; perspective: 1400px; perspective-origin: 50% 40%; touch-action: pan-y; cursor: grab; margin-top: 8px; }
.ring3d-stage:active { cursor: grabbing; }
.ring3d { position: absolute; left: 50%; top: 24px; width: 200px; height: 290px; margin-left: -100px; transform-style: preserve-3d; will-change: transform; }
.ring3d-item {
  position: absolute; inset: 0; border-radius: var(--r-l); overflow: hidden;
  background: var(--blush-100); box-shadow: 0 20px 40px rgba(84, 56, 38, .18);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: grid; align-content: end;
  transition: filter .4s;
}
.ring3d-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ring3d-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(43, 33, 27, .62)); }
.ring3d-item .ri-label { position: relative; z-index: 1; padding: 16px; color: #fff; }
.ring3d-item .ri-label b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1.1; }
.ring3d-item .ri-label span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.ring3d-floor { position: absolute; left: 50%; bottom: 40px; width: 70%; height: 60px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(131, 100, 58, .22), transparent); filter: blur(6px); }
.ring3d-hint { text-align: center; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 8px; }
.ring3d-hint svg { width: 18px; height: 18px; }
@media (min-width: 768px) { .ring3d-stage { height: 500px; } .ring3d { width: 240px; height: 350px; margin-left: -120px; } }

/* editorial banners */
.editorial { display: grid; gap: 14px; }
@media (min-width: 900px) { .editorial { grid-template-columns: 1.2fr 1fr; gap: 20px; } }
.edit-card {
  position: relative; overflow: hidden; border-radius: var(--r-l);
  min-height: 300px; padding: 26px; display: grid; align-content: end; gap: 10px;
  background: var(--blush-200); isolation: isolate; perspective: 900px;
}
.edit-card .edit-art { position: absolute; z-index: -1; inset-block: 0; inset-inline-end: -4%; width: 62%; display: grid; place-items: center; transition: transform .8s var(--ease-out); }
.edit-card .edit-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 24px rgba(84, 56, 38, .2)); }
.edit-card.dark { background: radial-gradient(120% 120% at 80% 20%, #4A3828 0%, #2B211B 60%); color: #F8EEE4; }
.edit-card.dark .eyebrow { color: var(--gold-300); }
.edit-card.gold { background: linear-gradient(140deg, #F6EEDD, #EBD6A6); }
.edit-card h3 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); font-weight: 500; max-width: 60%; line-height: 1.05; }
.edit-card p { max-width: 55%; font-size: 14.5px; opacity: .85; }
.edit-card .btn { justify-self: start; margin-top: 6px; }
@media (min-width: 900px) { .edit-card { min-height: 420px; padding: 40px; } }

/* rewards card (3D) */
.rewards { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .rewards { grid-template-columns: 1fr 1fr; gap: 56px; } }
.member-card-wrap { perspective: 1100px; display: grid; place-items: center; padding: 10px; }
.member-card {
  position: relative; width: min(100%, 420px); aspect-ratio: 1.586; border-radius: 22px; padding: 22px;
  background: radial-gradient(140% 120% at 0% 0%, #F7E9C8 0%, #CFAE72 35%, #9C7843 70%, #6F5229 100%);
  color: #2B1D0E; box-shadow: 0 30px 60px rgba(84, 56, 38, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
  transform-style: preserve-3d; transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -14deg));
  transition: transform .6s var(--ease-out);
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
}
.member-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .5) 48%, transparent 60%); transform: translateX(var(--shine, -30%)); transition: transform .6s var(--ease-out); pointer-events: none; }
.member-card::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(43, 29, 14, .25); border-radius: 15px; pointer-events: none; }
.member-card .mc-top { display: flex; justify-content: space-between; align-items: start; transform: translateZ(30px); }
.member-card .mc-top img { width: 46px; height: 37px; filter: brightness(.45) sepia(.6); }
.member-card .mc-tier { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; }
.member-card .mc-points { align-self: center; transform: translateZ(40px); }
.member-card .mc-points b { font-family: var(--font-display); font-size: clamp(38px, 9vw, 52px); font-weight: 600; line-height: 1; display: block; }
.member-card .mc-points span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.member-card .mc-bottom { display: flex; justify-content: space-between; align-items: end; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; transform: translateZ(24px); }
.member-card .mc-chip { width: 42px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #F3E2B8, #B9945A); box-shadow: inset 0 0 0 1px rgba(43, 29, 14, .25); }
.rewards-list { display: grid; gap: 14px; margin-block: 18px 24px; }
.rewards-list li { display: flex; gap: 12px; align-items: start; }
.rewards-list .perk-ico { width: 36px; height: 36px; }

/* newsletter */
.newsletter { position: relative; overflow: hidden; border-radius: var(--r-l); padding: 36px 22px; text-align: center; background: var(--ink); color: #F8EEE4; isolation: isolate; }
.newsletter::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, transparent, rgba(220, 195, 148, .22), transparent 40%); animation: slowspin 18s linear infinite; }
@keyframes slowspin { to { transform: rotate(360deg); } }
.newsletter h2 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 46px); font-weight: 500; }
.newsletter p { color: #DCCFC4; margin: 10px auto 20px; max-width: 460px; }
.newsletter form { display: flex; gap: 8px; max-width: 480px; margin-inline: auto; flex-wrap: wrap; justify-content: center; }
.newsletter .input { flex: 1 1 240px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; border-radius: var(--r-pill); }
.newsletter .input::placeholder { color: #BFB1A6; }
.newsletter .eyebrow { color: var(--gold-300); }
.coupon-reveal { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--r); border: 1px dashed var(--gold-300); font-size: 20px; letter-spacing: .2em; font-weight: 600; color: var(--gold-300); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(2) { transition-delay: .05s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: .1s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: .15s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: .2s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: .25s; }
.stagger.is-visible > *:nth-child(7) { transition-delay: .3s; }
.stagger.is-visible > *:nth-child(8) { transition-delay: .35s; }

/* tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; min-height: 46px; padding: 0 14px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
html[lang="ar"] .tab { letter-spacing: 0; font-size: 15px; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 10px; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Page header / breadcrumbs ---------- */
.page-head { padding-block: 22px 10px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(34px, 6vw, 56px); font-weight: 500; }
.page-head p { color: var(--ink-2); margin-top: 6px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.crumbs a { color: var(--ink-2); }
.crumbs span[aria-hidden] { color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--ink); text-decoration: underline; } }

/* ---------- Shop ---------- */
.shop-layout { display: grid; gap: 24px; }
@media (min-width: 1024px) { .shop-layout { grid-template-columns: 250px 1fr; gap: 40px; } }
.shop-toolbar {
  position: sticky; top: var(--header-h); z-index: var(--z-sticky);
  display: flex; align-items: center; gap: 8px; padding-block: 10px;
  background: rgba(251, 245, 246, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line-2);
  transition: top .35s var(--ease-out);
}
.site-header.is-hidden ~ main .shop-toolbar { top: 0; }
.shop-toolbar .count { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.shop-toolbar .sort-select { max-width: 52%; font-size: 14px; padding-inline-start: 14px; }
@media (max-width: 380px) { .shop-toolbar .count { display: none; } }
.tool-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.tool-btn svg { width: 17px; height: 17px; }
.tool-btn .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; }
.sort-select { min-height: 40px; height: 40px; padding-block: 0; border-radius: var(--r-pill); font-size: 14px; width: auto; }
.filters-side { display: none; }
@media (min-width: 1024px) {
  .filters-side { display: block; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding-inline-end: 6px; }
  .shop-toolbar .tool-btn.filter-open { display: none; }
}
.filter-group { border-bottom: 1px solid var(--line); padding-block: 16px; }
.filter-group > summary, .filter-group > h4 { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; list-style: none; min-height: 32px; }
html[lang="ar"] .filter-group > summary { letter-spacing: 0; font-size: 15px; }
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-group > summary svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.filter-group[open] > summary svg { transform: rotate(180deg); }
.filter-opts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.filter-opts.list { display: grid; gap: 0; }
.size-opt { min-width: 48px; min-height: 40px; padding: 0 10px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.size-opt[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.color-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 6px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; }
.color-opt .swatch-dot { width: 24px; height: 24px; }
.color-opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.price-range { display: grid; gap: 12px; padding-top: 14px; }
.price-range .vals { display: flex; justify-content: space-between; font-size: 14px; font-variant-numeric: tabular-nums; }
.dual-range { position: relative; height: 32px; }
.dual-range input[type="range"] { position: absolute; inset: 0; width: 100%; height: 32px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.dual-range input[type="range"]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--shadow-1); cursor: pointer; }
.dual-range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); cursor: pointer; }
.dual-range .track { position: absolute; top: 14px; inset-inline: 0; height: 4px; border-radius: 2px; background: var(--line); }
.dual-range .fill { position: absolute; top: 14px; height: 4px; border-radius: 2px; background: var(--ink); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.load-more { display: grid; justify-items: center; gap: 12px; padding-block: 36px 8px; }
.load-more .progress { width: 200px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.load-more .progress span { display: block; height: 100%; background: var(--ink); }

/* ---------- Empty states ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 56px 20px; }
.empty .empty-art { width: 120px; height: 120px; border-radius: 50%; background: var(--blush-100); display: grid; place-items: center; color: var(--gold-700); }
.empty .empty-art svg { width: 48px; height: 48px; }
.empty h2, .empty h3 { font-family: var(--font-display); font-size: 30px; font-weight: 500; }
.empty p { color: var(--ink-2); max-width: 360px; }

/* ---------- Skeleton ---------- */
.skel { position: relative; overflow: hidden; background: var(--blush-100); border-radius: var(--r-s); }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 20px; padding-bottom: 24px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; padding-top: 12px; } }
.gallery { position: relative; }
@media (max-width: 899px) { .gallery { margin-inline: calc(var(--gutter) * -1); } }
.gallery-main { position: relative; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--blush-100); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { scroll-snap-align: center; aspect-ratio: 3/4; position: relative; overflow: hidden; cursor: zoom-in; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease-out); }
@media (min-width: 900px) {
  .gallery { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: start; position: sticky; top: calc(var(--header-h) + 16px); }
  .gallery-track { border-radius: var(--r-l); }
  .gallery-slide.is-zooming img { transform: scale(2); }
}
.gallery-thumbs { display: none; }
@media (min-width: 900px) {
  .gallery-thumbs { display: grid; gap: 10px; }
  .gallery-thumbs button { aspect-ratio: 3/4; border-radius: var(--r-s); overflow: hidden; background: var(--blush-100); border: 1px solid transparent; transition: border-color .2s, opacity .2s; opacity: .7; }
  .gallery-thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }
  .gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
}
.gallery-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gallery-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--ink-3); transition: width .3s var(--ease-out), background-color .3s; }
.gallery-dots span.is-active { width: 18px; background: var(--ink); }
@media (min-width: 900px) { .gallery-dots { display: none; } }
.gallery-actions { position: absolute; top: 12px; inset-inline-end: 12px; display: grid; gap: 8px; z-index: 2; }
.gallery-actions .icon-btn { background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow-1); }
.gallery-badges { position: absolute; top: 14px; inset-inline-start: 14px; display: grid; gap: 6px; z-index: 2; }
@media (max-width: 899px) { .gallery-badges { inset-inline-start: calc(var(--gutter)); } .gallery-actions { inset-inline-end: var(--gutter); } }
.btn-3d { position: absolute; bottom: 14px; inset-inline-end: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); background: rgba(43, 33, 27, .86); color: #fff; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-3d svg { width: 17px; height: 17px; }
@media (max-width: 899px) { .btn-3d { bottom: 14px; inset-inline-end: var(--gutter); } }

/* 3D viewer */
.viewer3d { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: radial-gradient(100% 80% at 50% 30%, #FFF8F8, #EED9DD); perspective: 1200px; touch-action: pan-y; cursor: grab; }
.viewer3d .v3d-card { position: relative; width: 78%; aspect-ratio: 3/4; transform-style: preserve-3d; will-change: transform; }
.viewer3d .v3d-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 50px rgba(84, 56, 38, .22); background: #FBF3F4; }
.viewer3d .v3d-face img { width: 100%; height: 100%; object-fit: cover; }
.viewer3d .v3d-face.back { transform: rotateY(180deg); }
.viewer3d .v3d-edge { position: absolute; top: 0; bottom: 0; left: 50%; width: 14px; margin-left: -7px; transform: rotateY(90deg); background: linear-gradient(90deg, #D9C2C6, #F1E2E4, #D9C2C6); }
.viewer3d .v3d-shadow { position: absolute; bottom: 5%; width: 60%; height: 30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(84, 56, 38, .25), transparent); }
.viewer3d .v3d-hint { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.viewer3d .v3d-hint svg { width: 16px; height: 16px; }
.viewer3d .v3d-close { position: absolute; bottom: 14px; inset-inline-end: 14px; }

.pdp-info { display: grid; gap: 18px; align-content: start; }
.pdp-title { font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 42px); font-weight: 500; line-height: 1.08; }
.pdp-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.pdp-price { font-size: 24px; }
.pdp-price .off { font-size: 13px; padding: 3px 8px; border-radius: 6px; background: #FCE7EA; }
.pdp-flash { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: var(--r); background: linear-gradient(90deg, #FCE7EA, #FFF3F4); color: var(--sale); font-size: 14px; font-weight: 500; }
.pdp-flash .countdown .cd-box { min-width: 28px; height: 28px; font-size: 13px; background: var(--sale); }
.pdp-flash .countdown .cd-sep { color: var(--sale); }
.opt-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; margin-bottom: 10px; }
.opt-label b { font-weight: 500; }
.opt-label .val { color: var(--ink-2); }
.color-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.color-sw { width: 44px; height: 44px; border-radius: 50%; padding: 4px; border: 1px solid transparent; transition: border-color .2s, transform .2s var(--spring); }
.color-sw span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.color-sw[aria-checked="true"] { border-color: var(--ink); }
.color-sw:active { transform: scale(.9); }
.size-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  position: relative; min-width: 56px; min-height: 48px; padding: 0 14px; border-radius: var(--r-s);
  border: 1px solid var(--line); background: var(--surface); font-size: 15px;
  transition: border-color .2s, background-color .2s, color .2s, transform .15s var(--ease-out);
}
.size-btn:active { transform: scale(.95); }
.size-btn[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-btn.is-out { color: var(--ink-3); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0, 0, 0, .03) 6px 7px), var(--surface); }
.size-btn.is-out::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1px; background: var(--ink-3); transform: rotate(-18deg); }
.size-btn .low { position: absolute; top: -8px; inset-inline-end: -6px; font-size: 10px; padding: 1px 5px; border-radius: 6px; background: #FFF1D6; color: var(--warn); font-weight: 600; }
.size-msg { font-size: 13.5px; margin-top: 8px; min-height: 20px; }
.size-msg.warn { color: var(--warn); }
.size-msg.err { color: var(--sale); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); height: 50px; }
.qty button { width: 44px; height: 100%; display: grid; place-items: center; }
.qty button svg { width: 16px; height: 16px; }
.qty button[disabled] { opacity: .35; }
.qty output { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; }
.qty.sm { height: 38px; }
.qty.sm button { width: 36px; }
.pdp-actions { display: flex; gap: 10px; }
.pdp-actions .btn-add { flex: 1; }
.pdp-actions .icon-btn { width: 50px; height: 50px; border: 1px solid var(--line); background: var(--surface); }
.pdp-actions .icon-btn.is-on { color: var(--sale); }
.pdp-actions .icon-btn.is-on svg { fill: currentColor; }
.pdp-delivery { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pdp-delivery > div { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; font-size: 14px; }
.pdp-delivery > div + div { border-top: 1px solid var(--line-2); }
.pdp-delivery svg { width: 20px; height: 20px; color: var(--gold-700); flex: none; margin-top: 1px; }
.pdp-delivery b { font-weight: 500; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
html[lang="ar"] .accordion summary { letter-spacing: 0; font-size: 15px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.accordion details[open] summary svg { transform: rotate(45deg); }
.accordion .acc-body { padding-bottom: 18px; color: var(--ink-2); font-size: 15px; display: grid; gap: 8px; }
.accordion .acc-body ul { display: grid; gap: 6px; }
.accordion .acc-body li { padding-inline-start: 16px; position: relative; }
.accordion .acc-body li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); }

.sticky-atc {
  position: fixed; inset-inline: 0; bottom: 0; z-index: calc(var(--z-tabbar) + 1);
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter) calc(10px + var(--safe-b));
  background: rgba(255, 251, 247, .95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .4s var(--ease-out);
}
.sticky-atc.is-visible { transform: none; }
.sticky-atc .btn { flex: 1; }
.sticky-atc .s-info { display: grid; line-height: 1.2; min-width: 0; }
.sticky-atc .s-name { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }
@media (min-width: 1024px) { .sticky-atc { display: none; } }

/* reviews */
.reviews-summary { display: grid; gap: 24px; padding: 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line-2); }
@media (min-width: 768px) { .reviews-summary { grid-template-columns: auto 1fr 1fr; align-items: center; gap: 36px; } }
.rs-score { text-align: center; }
.rs-score b { display: block; font-family: var(--font-display); font-size: 56px; font-weight: 500; line-height: 1; }
.rs-bars { display: grid; gap: 6px; font-size: 13px; }
.rs-bar { display: grid; grid-template-columns: 22px 1fr 32px; align-items: center; gap: 8px; }
.rs-bar .bar { height: 6px; border-radius: 3px; background: var(--blush-100); overflow: hidden; }
.rs-bar .bar span { display: block; height: 100%; background: var(--gold-500); border-radius: 3px; }
.fit-meter { display: grid; gap: 8px; font-size: 13px; }
.fit-meter .fm-track { position: relative; height: 6px; border-radius: 3px; background: var(--blush-100); }
.fit-meter .fm-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; margin-left: -8px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); box-shadow: var(--shadow-1); }
.fit-meter .fm-labels { display: flex; justify-content: space-between; color: var(--ink-2); }
.review { padding-block: 18px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.review-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.review-title { font-weight: 500; }
.review .verified { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: 12.5px; }
.review .verified svg { width: 14px; height: 14px; }
.star-input { display: flex; gap: 4px; direction: ltr; }
.star-input button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--blush-300); transition: transform .2s var(--spring), color .15s; }
.star-input button svg { width: 30px; height: 30px; }
.star-input button.is-on { color: var(--gold-500); }
.star-input button:active { transform: scale(.85); }

/* size guide table */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table th { font-weight: 500; background: var(--blush-50); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-hl td { background: var(--gold-100); font-weight: 500; }

/* ---------- Bag ---------- */
.bag-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .bag-layout { grid-template-columns: 1fr 380px; gap: 40px; } }
.ship-progress { padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); display: grid; gap: 10px; font-size: 14px; }
.ship-progress .bar { height: 6px; border-radius: 3px; background: var(--blush-100); overflow: hidden; }
.ship-progress .bar span { display: block; height: 100%; border-radius: 3px; background: var(--gold-grad); transition: width .8s var(--ease-out); }
.ship-progress.done { color: var(--ok); }
.ship-progress svg { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-inline-end: 6px; }
.line-items { display: grid; }
.line-item { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); animation: li-in .4s var(--ease-out); }
.line-item.is-removing { animation: li-out .3s var(--ease-in) forwards; }
@keyframes li-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes li-out { to { opacity: 0; transform: translateX(-24px); } }
.line-item .li-img { aspect-ratio: 3/4; border-radius: var(--r-s); overflow: hidden; background: var(--blush-100); }
.line-item .li-img img { width: 100%; height: 100%; object-fit: cover; }
.line-item .li-body { display: grid; gap: 6px; align-content: start; min-width: 0; }
.line-item .li-top { display: flex; justify-content: space-between; gap: 10px; }
.line-item .li-name { font-size: 15px; line-height: 1.3; }
.line-item .li-opts { font-size: 13px; color: var(--ink-2); }
.line-item .li-actions { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.line-item .li-actions .icon-btn svg { width: 20px; height: 20px; }
.line-item .li-actions .btn-link { font-size: 13px; min-height: 38px; color: var(--ink-2); }
.line-item .li-warn { font-size: 12.5px; color: var(--sale); }
.summary { padding: 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line-2); display: grid; gap: 12px; }
@media (min-width: 960px) { .summary { position: sticky; top: calc(var(--header-h) + 20px); } }
.summary h2 { font-family: var(--font-display); font-size: 26px; font-weight: 500; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
.sum-row.discount { color: var(--ok); }
.sum-row.total { font-size: 18px; font-weight: 600; padding-top: 12px; border-top: 1px solid var(--line); }
.coupon-form { display: flex; gap: 8px; }
.coupon-form .input { min-height: 46px; text-transform: uppercase; }
.coupon-form .btn { min-height: 46px; }
.applied-coupon { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: var(--r-s); background: #EAF5EF; color: var(--ok); font-size: 14px; }
.applied-coupon svg { width: 16px; height: 16px; }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pay-icons span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--ink-2); }
.pay-icons svg { width: 16px; height: 16px; }
.mobile-checkout-bar { position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: var(--z-sticky); margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter); background: rgba(255, 251, 247, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.mobile-checkout-bar .tot { display: grid; line-height: 1.2; }
.mobile-checkout-bar .tot b { font-size: 18px; font-variant-numeric: tabular-nums; }
.mobile-checkout-bar .btn { flex: 1; }
@media (min-width: 960px) { .mobile-checkout-bar { display: none; } }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .checkout-layout { grid-template-columns: 1fr 400px; gap: 48px; } }
.co-steps { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-block: 6px 18px; }
.co-steps span.is-on { color: var(--ink); font-weight: 600; }
.co-steps i { width: 24px; height: 1px; background: var(--line); }
.co-section { padding: 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line-2); display: grid; gap: 16px; }
.co-section + .co-section { margin-top: 16px; }
.co-section h2 { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.co-section h2 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-ui); font-size: 14px; display: grid; place-items: center; flex: none; }
.co-items { display: grid; gap: 12px; max-height: 320px; overflow-y: auto; }
.co-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.co-item .img { position: relative; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--blush-100); }
.co-item .img img { width: 100%; height: 100%; object-fit: cover; }
.co-item .q { position: absolute; top: -1px; inset-inline-end: -1px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.co-item .meta { color: var(--ink-2); font-size: 12.5px; }
.saved-addresses { display: grid; gap: 10px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--gold-100); color: var(--gold-800); font-size: 14px; }
.notice svg { width: 20px; height: 20px; flex: none; }
.notice.error { background: #FCE7EA; color: var(--sale); }
.notice.ok { background: #EAF5EF; color: var(--ok); }

/* ---------- Order / timeline ---------- */
.success-hero { text-align: center; display: grid; justify-items: center; gap: 12px; padding-block: 36px 20px; }
.success-check { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #fff; box-shadow: 0 18px 40px rgba(131, 100, 58, .35); animation: pop-in .7s var(--spring) both; }
.success-check svg { width: 44px; height: 44px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .35s var(--ease-out) forwards; }
@keyframes pop-in { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.order-number { font-variant-numeric: tabular-nums; letter-spacing: .08em; font-weight: 600; }
.timeline { display: grid; gap: 0; position: relative; }
.tl-step { display: grid; grid-template-columns: 28px 1fr; gap: 14px; position: relative; padding-bottom: 20px; }
.tl-step:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.tl-step.is-done:not(:last-child)::before { background: var(--gold-500); }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.tl-dot svg { width: 14px; height: 14px; }
.tl-step.is-done .tl-dot { background: var(--gold-500); border-color: var(--gold-500); color: #fff; }
.tl-step.is-current .tl-dot { border-color: var(--gold-500); box-shadow: 0 0 0 5px rgba(168, 132, 74, .18); }
.tl-step b { font-weight: 500; display: block; }
.tl-step span { font-size: 13px; color: var(--ink-2); }
.status-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--blush-100); color: var(--ink); }
.status-pill.pending { background: #FFF1D6; color: var(--warn); }
.status-pill.confirmed, .status-pill.processing { background: #E8EEF9; color: #2D4F8A; }
.status-pill.shipped { background: var(--gold-100); color: var(--gold-800); }
.status-pill.delivered { background: #EAF5EF; color: var(--ok); }
.status-pill.cancelled { background: #F2EDEB; color: var(--ink-2); }

/* ---------- Account ---------- */
.auth-wrap { max-width: 460px; margin-inline: auto; padding-block: 28px 40px; }
.auth-card { padding: 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-1); display: grid; gap: 16px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--blush-100); border-radius: var(--r-pill); padding: 4px; }
.auth-tabs a { display: grid; place-items: center; min-height: 42px; border-radius: var(--r-pill); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); transition: background-color .25s, color .25s; }
.auth-tabs a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.acct-head { display: grid; gap: 20px; padding-block: 20px; }
@media (min-width: 900px) { .acct-head { grid-template-columns: 1fr 420px; align-items: center; } }
.acct-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .acct-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.acct-tile { display: grid; gap: 10px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); transition: transform .2s var(--ease-out), box-shadow .2s; }
.acct-tile:active { transform: scale(.98); }
.acct-tile svg { width: 26px; height: 26px; color: var(--gold-700); }
.acct-tile b { font-weight: 500; }
.acct-tile span { font-size: 13px; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .acct-tile:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); } }
.list-links { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; }
.list-links a, .list-links button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 16px; font-size: 15px; text-align: start; }
.list-links > * + * { border-top: 1px solid var(--line-2); }
.list-links svg { width: 20px; height: 20px; color: var(--ink-2); }
.list-links .chev { margin-inline-start: auto; width: 16px; height: 16px; }
html[dir="rtl"] .list-links .chev, html[dir="rtl"] .chev-flip { transform: scaleX(-1); }
.order-card { display: grid; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); }
.order-card .oc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-card .oc-thumbs { display: flex; gap: 8px; }
.order-card .oc-thumbs img { width: 48px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--blush-100); }
.address-card { padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); display: grid; gap: 4px; font-size: 14.5px; }
.address-card .ac-actions { display: flex; gap: 6px; margin-top: 8px; }

/* ---------- Info pages ---------- */
.prose { max-width: 760px; display: grid; gap: 16px; font-size: 16.5px; color: var(--ink); }
.prose h2 { font-family: var(--font-display); font-size: 30px; font-weight: 500; margin-top: 12px; }
.prose h3 { font-size: 18px; font-weight: 500; margin-top: 6px; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.75; }
.prose ul { display: grid; gap: 8px; padding-inline-start: 20px; list-style: disc; }
.prose a { color: var(--gold-800); text-decoration: underline; text-underline-offset: 3px; }
.about-hero { display: grid; gap: 28px; align-items: center; padding-block: 28px; }
@media (min-width: 900px) { .about-hero { grid-template-columns: 1fr 1fr; gap: 64px; } }
.about-hero .logo-disc { aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-3); max-width: 440px; justify-self: center; animation: float3d 9s var(--ease-io) infinite; }
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 48px; } }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); }
.contact-card .perk-ico { width: 44px; height: 44px; }

/* ---------- Footer ---------- */
.site-footer { background: #241B16; color: #D9CBC0; padding-block: 48px calc(var(--tabbar-h) + var(--safe-b) + 28px); margin-top: 40px; }
@media (min-width: 1024px) { .site-footer { padding-bottom: 36px; } }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; } }
.footer-brand { display: grid; gap: 14px; max-width: 360px; }
.footer-brand .brand { color: var(--gold-300); }
.footer-brand .brand-tag { color: var(--gold-300); }
.footer-col h4 { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #F2E6DA; margin-bottom: 12px; font-weight: 500; }
html[lang="ar"] .footer-col h4 { letter-spacing: 0; font-size: 14px; }
.footer-col a { display: block; padding-block: 7px; font-size: 14.5px; color: #CDBEB2; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { color: #fff; } }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); display: grid; place-items: center; color: #F2E6DA; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #A8988C; }
.footer-bottom .pay-icons span { background: transparent; border-color: rgba(255, 255, 255, .16); color: #CDBEB2; }

/* ---------- Install / offline ---------- */
.install-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.install-card img { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.install-card .ic-text { flex: 1; font-size: 14px; line-height: 1.35; }
.install-card .ic-text b { display: block; font-weight: 500; font-size: 15px; }
.install-banner { position: fixed; z-index: calc(var(--z-tabbar) + 2); inset-inline: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px); animation: toast-in .5s var(--spring) both; }
@media (min-width: 1024px) { .install-banner { inset-inline: auto 24px; bottom: 24px; width: 400px; } }
.ios-steps { display: grid; gap: 14px; counter-reset: s; }
.ios-steps li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.ios-steps li::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.ios-steps svg { width: 20px; height: 20px; display: inline; vertical-align: -4px; color: #2F7BF6; }
.offline-bar { position: fixed; top: calc(var(--safe-t) + 8px); left: 50%; transform: translateX(-50%); z-index: var(--z-toast); padding: 8px 16px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: 13px; box-shadow: var(--shadow-2); display: flex; gap: 8px; align-items: center; }
.offline-bar svg { width: 16px; height: 16px; }

/* ---------- Fly-to-bag ---------- */
.fly-img { position: fixed; z-index: var(--z-toast); border-radius: 12px; object-fit: cover; pointer-events: none; box-shadow: var(--shadow-3); }

/* ---------- Splash ---------- */
.splash { min-height: 60vh; display: grid; place-items: center; align-content: center; gap: 16px; color: var(--gold-700); }
.splash img { animation: splash 1.6s var(--ease-io) infinite; }
.splash span { font-family: "Cormorant Garamond", serif; letter-spacing: .4em; font-size: 15px; }
@keyframes splash { 0%, 100% { opacity: .5; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- View transitions ---------- */
::view-transition-old(root) { animation: vt-out .18s var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.page-enter { animation: vt-in .4s var(--ease-out) both; }

/* ---------- Standalone (installed app) tweaks ---------- */
@media (display-mode: standalone) {
  .announce { font-size: 12px; }
  body { overscroll-behavior-y: none; }
}

/* ---------- RTL tweaks ---------- */
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
html[dir="rtl"] .nav-link::after { transform-origin: right; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .stagger > * { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .announce, .site-header, .tabbar, .site-footer, .toasts, #layers, .btn { display: none !important; }
  body { background: #fff; }
}

/* ---------- additions ---------- */
.hero-fallback { transition: opacity .8s var(--ease-out); }
.hero-fallback.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 767px) { .hero-fallback { align-items: start; padding-top: 6vh; } .hero-fallback img { width: min(52vw, 220px); } }
.member-card .mc-mono { width: 46px; height: 37px; color: #3B2A14; }
