/* Hallmark · macrostructure: Marquee Hero (product-led, multi-page store) · tone: luxury-dark · anchor hue: amber 75
 * theme: custom (vibe: "night vault, velvet charcoal, amber glow, niche perfume"
 * paper oklch(17% 0.012 60) · accent oklch(76% 0.115 75) amber · Amiri display + Tajawal body)
 * nav: N5 floating-center brand · footer: Ft5 statement-minimal
 * Hallmark · pre-emit critique: P5 H4 E5 S5 R4 V5
 * وَهَج — متجر مفاهيمي، استوديو رسملة */

:root {
  --coal:   oklch(17% 0.012 60);
  --coal-2: oklch(21% 0.014 65);
  --velvet: oklch(25% 0.018 70);
  --line:   oklch(32% 0.02 70);
  --amber:  oklch(76% 0.115 75);
  --amber-deep: oklch(64% 0.13 70);
  --ivory:  oklch(93% 0.015 85);
  --sand:   oklch(72% 0.03 80);
  --alert:  oklch(62% 0.16 30);

  --disp: "Amiri", serif;
  --body: "Tajawal", sans-serif;

  --space-xs: 8px; --space-sm: 14px; --space-md: 24px;
  --space-lg: 40px; --space-xl: 64px; --space-2xl: 104px;

  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --dur: 600ms; --dur-fast: 220ms;
  --rule: 1px solid var(--line);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: var(--body);
  font-weight: 300;
  background: var(--coal);
  color: var(--ivory);
  line-height: 1.95;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--disp); font-weight: 700; font-style: normal; line-height: 1.5; overflow-wrap: anywhere; min-width: 0; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }

::selection { background: var(--amber); color: var(--coal); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 44px); }

/* وضع التصوير الآلي فقط (?shot=1): يعطل ارتفاعات svh */
html.shot .hero { min-height: auto; padding-block: 120px 80px; }
html.shot .hero__bottle, html.shot .hero__bottle img { max-height: 760px; }
html.shot .ing { min-height: auto; }
html.shot .ing__bg img { position: static; height: auto; }
html.shot .rv { opacity: 1; transform: none; }

.kick {
  font-size: .8rem; font-weight: 500; letter-spacing: .16em; color: var(--amber);
  margin-bottom: var(--space-sm);
}
.sechead { text-align: center; margin-bottom: var(--space-xl); }

/* ── ظهور هادئ فخم ── */
.rv { opacity: 0; transform: translateY(14px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── أزرار ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 500; font-size: .95rem; letter-spacing: .04em;
  color: var(--coal); background: var(--amber);
  border: 1px solid var(--amber); border-radius: 2px;
  padding: 13px 34px; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--amber-deep); border-color: var(--amber-deep); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--line); border-color: var(--line); color: var(--sand); cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ivory); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); background: transparent; }
.btn--block { width: 100%; }

/* ═══ الناف ═══ */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  background: linear-gradient(to bottom, oklch(17% 0.012 60 / .92), oklch(17% 0.012 60 / 0));
  transition: background var(--dur-fast);
}
.nav.solid, .nav--page { background: oklch(17% 0.012 60 / .96); border-bottom: var(--rule); backdrop-filter: blur(10px); }
.nav__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }
.nav__in--center { grid-template-columns: 1fr; justify-items: center; }
.nav__links { display: flex; gap: clamp(14px, 2.5vw, 30px); font-size: .88rem; font-weight: 400; color: var(--sand); }
.nav__links a { transition: color var(--dur-fast); white-space: nowrap; }
.nav__links a:hover { color: var(--amber); }
.nav__brand {
  display: flex; align-items: center; gap: 9px; justify-self: center;
  font-family: var(--disp); font-weight: 700; font-size: 1.5rem; color: var(--ivory);
}
.nav__brand svg { width: 27px; color: var(--amber); }
.brand__img { height: 46px; width: auto; display: block; }
.brand__img--full { height: 120px; width: auto; }
.nav__side { display: flex; justify-content: flex-end; }
.cartbtn { position: relative; background: none; border: 0; color: var(--ivory); cursor: pointer; padding: 8px; }
.cartbtn svg { width: 23px; height: 23px; }
.cartbtn:hover { color: var(--amber); }
.cartbtn__n {
  position: absolute; top: 0; inset-inline-start: 0;
  min-width: 17px; height: 17px; border-radius: 99px; padding-inline: 4px;
  background: var(--line); color: var(--sand);
  font-style: normal; font-size: .68rem; font-weight: 700;
  display: grid; place-content: center;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.cartbtn__n.on { background: var(--amber); color: var(--coal); }
@media (max-width: 720px) { .nav__links { display: none; } .nav__in { grid-template-columns: 1fr auto 1fr; } }

/* ═══ الهيرو ═══ */
.hero { padding-top: 76px; min-height: 100svh; display: grid; align-items: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 30% 45%, oklch(40% 0.09 70 / .22), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 80px); align-items: center; position: relative; }
.hero__bottle { max-height: calc(100svh - 120px); overflow: hidden; position: relative; }
.hero__bottle img, .hero__bottle video {
  height: 100%; max-height: calc(100svh - 120px); width: 100%; object-fit: cover; display: block;
}
.hero__copy .kick { margin-bottom: var(--space-md); }
.hero__sub { color: var(--sand); max-width: 46ch; margin-block: var(--space-md) var(--space-lg); }
.hero__cta { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__bottle { max-height: 52svh; order: -1; }
  .hero__bottle img { max-height: 52svh; }
  .hero { min-height: auto; padding-bottom: var(--space-xl); }
}

/* ═══ القصة ═══ */
.creed { padding-block: var(--space-2xl); border-block: var(--rule); background: var(--coal-2); }
.creed__in { max-width: 46rem; margin-inline: auto; text-align: center; }
.creed__line { font-family: var(--disp); font-size: clamp(1.3rem, 2.8vw, 2rem); line-height: 2; }
.creed__sig { color: var(--amber); font-size: .85rem; margin-top: var(--space-md); letter-spacing: .08em; }

/* ═══ المجموعة ═══ */
.col { padding-block: var(--space-2xl); }
.col__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 34px); }
.col__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard { display: block; text-align: center; }
.pcard figure { overflow: hidden; background: var(--coal-2); border: var(--rule); position: relative; }
.pcard img { aspect-ratio: 3/4; object-fit: cover; width: 100%; transition: transform 1.1s var(--ease-out), opacity var(--dur); }
.pcard:hover img { transform: scale(1.04); }
.pcard figure::after {
  content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: -70%;
  width: 45%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, oklch(90% 0.06 85 / .13), transparent);
  transition: inset-inline-start .9s var(--ease-out); pointer-events: none;
}
.pcard:hover figure::after { inset-inline-start: 125%; }
.pcard h3 { font-size: 1.55rem; margin-top: var(--space-sm); }
.pcard p { color: var(--sand); font-size: .88rem; }
.pcard__price { display: inline-block; color: var(--amber); font-size: .85rem; font-weight: 500; margin-top: 6px; }
@media (max-width: 860px) { .col__grid, .col__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .col__grid, .col__grid--3 { grid-template-columns: 1fr; } }

/* ═══ المكونات ═══ */
.ing { position: relative; min-height: 78svh; display: grid; align-items: end; overflow: hidden; }
.ing__bg { position: absolute; inset: 0; }
.ing__bg img { width: 100%; height: 100%; object-fit: cover; }
.ing__in {
  position: relative; width: 100%;
  padding-block: var(--space-xl);
  background: linear-gradient(to top, oklch(17% 0.012 60 / .94), oklch(17% 0.012 60 / .25) 80%, transparent);
}
.ing__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); margin-top: var(--space-lg); }
.ing__grid b { display: block; font-family: var(--disp); font-size: 1.25rem; }
.ing__grid span { color: var(--sand); font-size: .85rem; }
@media (max-width: 860px) { .ing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ═══ الإهداء + الصنعة ═══ */
.gifts, .atelier { padding-block: var(--space-2xl); }
.gifts__grid, .atelier__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.gifts__media, .atelier__media { border: var(--rule); }
.gifts__media img, .atelier__media img { aspect-ratio: 16/11; object-fit: cover; width: 100%; }
.gifts__copy p, .atelier__copy p { color: var(--sand); max-width: 44ch; }
.gifts__price { font-family: var(--disp); font-size: 1.7rem; color: var(--amber); margin-block: var(--space-sm) var(--space-md); }
.gifts__note { font-size: .84rem; color: var(--amber); margin-top: var(--space-sm); }
.atelier { border-top: var(--rule); background: var(--coal-2); }
.atelier__facts { margin-top: var(--space-md); display: grid; gap: var(--space-xs); }
.atelier__facts li { position: relative; padding-inline-start: 24px; font-weight: 400; font-size: .92rem; }
.atelier__facts li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .72em;
  width: 13px; height: 1px; background: var(--amber);
}
@media (max-width: 860px) { .gifts__grid, .atelier__grid { grid-template-columns: 1fr; } }

/* ═══ الفوتر ═══ */
.ft { border-top: var(--rule); padding-block: var(--space-xl); }
.ft__in { display: grid; gap: var(--space-sm); justify-items: center; text-align: center; }
.ft__note { color: var(--sand); font-size: .82rem; max-width: 50ch; }
.ft__credit { font-size: .82rem; color: var(--sand); }
.ft__credit a { color: var(--amber); }

/* ═══ دُرج السلة ═══ */
.scrim {
  position: fixed; inset: 0; z-index: 70; background: oklch(10% 0.01 60 / .6);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-fast);
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 71;
  width: min(420px, 92vw);
  background: var(--coal-2); border-inline-start: var(--rule);
  display: flex; flex-direction: column;
  transform: translateX(calc(-1 * var(--drawer-dir, -100%)));
  transition: transform .45s var(--ease-out);
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
html[dir="rtl"] .drawer.open { transform: none; }
.drawer__hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-md); border-bottom: var(--rule);
  font-family: var(--disp); font-size: 1.25rem;
}
.drawer__x { background: none; border: 0; color: var(--sand); font-size: 1rem; cursor: pointer; padding: 6px 10px; }
.drawer__x:hover { color: var(--ivory); }
.drawer__empty { padding: var(--space-lg) var(--space-md); color: var(--sand); }
.drawer__list { flex: 1; overflow-y: auto; padding: var(--space-sm) var(--space-md); display: grid; gap: var(--space-sm); align-content: start; }
.crow { display: grid; grid-template-columns: 58px 1fr auto; gap: var(--space-sm); align-items: center; border-bottom: var(--rule); padding-bottom: var(--space-sm); }
.crow img { width: 58px; height: 74px; object-fit: cover; border: var(--rule); }
.crow__t b { font-family: var(--disp); font-size: 1.1rem; display: block; }
.crow__t span { font-size: .8rem; color: var(--sand); }
.crow__q { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.qbtn {
  width: 26px; height: 26px; border: var(--rule); background: none; color: var(--ivory);
  border-radius: 2px; cursor: pointer; font-size: 1rem; line-height: 1;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.qbtn:hover { border-color: var(--amber); color: var(--amber); }
.drawer__ft { padding: var(--space-md); border-top: var(--rule); display: grid; gap: var(--space-sm); }
.drawer__total { display: flex; justify-content: space-between; font-size: 1.05rem; }
.drawer__total b { font-family: var(--disp); font-size: 1.3rem; color: var(--amber); }
.drawer__note { font-size: .74rem; color: var(--sand); text-align: center; }

/* ═══ صفحة المنتج ═══ */
.pd { padding-top: 76px; }
.pd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); padding-block: var(--space-xl); align-items: start; }
.pd__media { position: sticky; top: 96px; border: var(--rule); background: var(--coal-2); }
.pd__media img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.pd__crumb { font-size: .82rem; color: var(--sand); margin-bottom: var(--space-sm); }
.pd__crumb a { color: var(--amber); }
.pd__tag { color: var(--amber); font-size: 1rem; margin-top: var(--space-xs); letter-spacing: .04em; }
.pd__desc { color: var(--sand); margin-top: var(--space-md); max-width: 48ch; }
.pd__pyh { font-size: .8rem; letter-spacing: .14em; color: var(--amber); margin-bottom: var(--space-sm); }
.pd__pyramid { margin-top: var(--space-lg); }
.pyr {
  display: block; width: 100%; text-align: start; font: inherit; color: inherit;
  background: none; border: 0; border-top: var(--rule); cursor: pointer;
  padding: var(--space-sm) 0;
}
.pyr:last-child { border-bottom: var(--rule); }
.pyr b { font-family: var(--disp); font-size: 1.15rem; transition: color var(--dur-fast); }
.pyr span {
  display: block; color: var(--sand); font-size: .88rem;
  max-height: 0; overflow: clip; opacity: 0;
  transition: max-height .45s var(--ease-out), opacity .45s var(--ease-out), margin .45s;
}
.pyr.open b { color: var(--amber); }
.pyr.open span { max-height: 3.5em; opacity: 1; margin-top: 4px; }
.pd__buy { margin-top: var(--space-lg); display: grid; gap: var(--space-sm); }
.pd__sizes { display: flex; gap: var(--space-xs); }
.sizebtn {
  font: inherit; font-size: .88rem; color: var(--sand);
  background: none; border: var(--rule); border-radius: 2px;
  padding: 9px 20px; cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.sizebtn.on { border-color: var(--amber); color: var(--amber); }
.pd__price { font-family: var(--disp); font-size: 1.9rem; color: var(--amber); }
.pd__facts { font-size: .78rem; color: var(--sand); text-align: center; }
.pd__rel { padding-block: var(--space-xl) var(--space-2xl); border-top: var(--rule); }
.pd__relh { text-align: center; margin-bottom: var(--space-lg); font-size: 1.6rem; }
@media (max-width: 860px) {
  .pd__grid { grid-template-columns: 1fr; }
  .pd__media { position: static; }
}

/* ═══ إتمام الطلب ═══ */
.co { padding-top: calc(76px + var(--space-lg)); padding-bottom: var(--space-2xl); min-height: 70svh; }
.co__h { text-align: center; margin-bottom: var(--space-xl); font-size: clamp(1.9rem, 4vw, 2.8rem); }
.co__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 64px); align-items: start; max-width: 1000px; margin-inline: auto; }
.co__sum { background: var(--coal-2); border: var(--rule); padding: var(--space-lg); }
.co__sum h2, .co__form h2 { font-size: 1.3rem; margin-bottom: var(--space-md); }
.co__row { display: flex; justify-content: space-between; gap: var(--space-sm); padding-block: 9px; border-bottom: var(--rule); font-size: .92rem; }
.co__row b { font-weight: 500; }
.co__row--ship { color: var(--sand); }
.co__row--total { border-bottom: 0; font-size: 1.05rem; margin-top: var(--space-xs); }
.co__row--total b { font-family: var(--disp); font-size: 1.4rem; color: var(--amber); }
.co__form { display: grid; gap: var(--space-sm); }
.field { display: grid; gap: 5px; }
.field label { font-size: .84rem; font-weight: 500; color: var(--sand); }
.field input, .field select {
  font: inherit; font-size: .92rem; color: var(--ivory);
  background: var(--coal-2); border: var(--rule); border-radius: 2px;
  padding: 11px 13px; width: 100%;
  transition: border-color var(--dur-fast);
}
.field input:hover, .field select:hover { border-color: var(--sand); }
.field select option { background: var(--coal-2); }
.field input::placeholder { color: var(--sand); opacity: .5; }
.field .invalid, .field input.invalid, .field select.invalid { border-color: var(--alert); }
.co__payh { margin-top: var(--space-sm); }
.co__pay { display: grid; gap: var(--space-xs); }
.payopt {
  display: flex; align-items: center; gap: 10px;
  border: var(--rule); border-radius: 2px; padding: 11px 13px;
  font-size: .9rem; cursor: pointer;
  transition: border-color var(--dur-fast);
}
.payopt:hover { border-color: var(--sand); }
.payopt input { accent-color: var(--amber); }
.co__err { color: var(--alert); font-size: .85rem; font-weight: 500; }
.co__done { text-align: center; max-width: 34rem; margin-inline: auto; display: grid; justify-items: center; gap: var(--space-sm); }
.co__done svg { width: 64px; color: var(--amber); margin-bottom: var(--space-sm); }
.co__done p { color: var(--sand); }
.co__done .btn--ghost { margin-top: var(--space-md); }
.co__empty { text-align: center; color: var(--sand); }
.co__empty a { color: var(--amber); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 820px) { .co__grid { grid-template-columns: 1fr; } }
