/* Ghaliya, an Arabian perfume house. One stylesheet for English (ltr) and
   Arabic (rtl). Layout uses logical properties so it mirrors on its own, and
   [dir="rtl"] rules only override what truly differs (Arabic faces, no
   letter-spacing, the side a drawer slides from). */

:root {
  --black: #16110C;
  --black-2: #1E1710;
  --black-3: #2A2017;
  --ivory: #ECE2D0;
  --ivory-2: #E0D2B8;
  --paper: #F6EFE0;
  --ink: #271E14;
  --ink-soft: #6E6049;
  --amber: #BE7A2A;
  --amber-text: #8F5616;
  --gold: #C6A15B;
  --gold-soft: #DBBD7E;
  --oxblood: #883039;
  --line-dark: rgba(236,226,208,0.14);
  --line-dark-2: rgba(236,226,208,0.07);
  --line: rgba(39,30,20,0.15);
  --line-2: rgba(39,30,20,0.08);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Jost", ui-sans-serif, system-ui, sans-serif;
  --ar-serif: "Reem Kufi", "Playfair Display", serif;
  --ar-sans: "Almarai", "Jost", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(20px, 5vw, 64px);
  --gut: clamp(46px, 8vw, 130px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--black); color: var(--ivory);
  font-family: var(--sans); font-size: 17px; line-height: 1.7; font-weight: 300;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
[dir="rtl"] body { font-family: var(--ar-sans); line-height: 1.95; font-weight: 400; }

img { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--amber); color: var(--black); }
body.noscroll { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: var(--ar-serif); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--gut); }
.section--paper { background: var(--paper); color: var(--ink); }

.kicker { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold); display: inline-flex; align-items: center; gap: .7em; }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
[dir="rtl"] .kicker { font-family: var(--ar-serif); font-style: normal; }
.section--paper .kicker { color: var(--amber-text); }

.display { font-size: clamp(1.9rem, 4.3vw, 3.2rem); line-height: 1.12; font-weight: 500; letter-spacing: -.01em; }
[dir="rtl"] .display { letter-spacing: 0; line-height: 1.35; }
.lat { direction: ltr; unicode-bidi: isolate; }
.num { direction: ltr; unicode-bidi: isolate; font-feature-settings: "tnum" 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--sans); font-weight: 500; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 1em 1.8em; background: var(--gold); color: var(--black);
  border: 1px solid var(--gold); border-radius: 1px; cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
[dir="rtl"] .btn { font-family: var(--ar-sans); letter-spacing: 0; text-transform: none; font-weight: 700; }
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: var(--line-dark); }
.btn--ghost:hover { background: var(--ivory); color: var(--black); border-color: var(--ivory); }
.section--paper .btn--ghost { color: var(--ink); border-color: var(--line); }
.section--paper .btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

.ulink { display: inline-flex; align-items: center; gap: .5em; font-weight: 500; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); position: relative; padding-block: .25em; }
[dir="rtl"] .ulink { font-family: var(--ar-sans); letter-spacing: 0; text-transform: none; font-size: .95rem; }
.ulink::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(1); transform-origin: inline-start; transition: transform .5s var(--ease); opacity: .5; }
.ulink:hover::after { transform: scaleX(0); transform-origin: inline-end; }
.ulink .arr { transition: transform .4s var(--ease); }
.ulink:hover .arr { transform: translateX(4px); }
[dir="rtl"] .ulink .arr, [dir="rtl"] .ulink:hover .arr { transform: scaleX(-1); }

html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.js .reveal.d2 { transition-delay: .1s; }
html.js .reveal.d3 { transition-delay: .2s; }
html.js .reveal.d4 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 60; display: flex; align-items: center; gap: 18px; padding: 16px var(--pad); transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease); }
.nav::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 200%; background: linear-gradient(to bottom, rgba(22,17,12,.55), rgba(22,17,12,0)); z-index: -1; pointer-events: none; }
.nav.scrolled { background: rgba(22,17,12,.93); padding-block: 11px; box-shadow: 0 1px 0 var(--line-dark); backdrop-filter: blur(8px); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .mark { width: 30px; height: 36px; flex: none; color: var(--gold-soft); }
.brand .mark svg { width: 100%; height: 100%; display: block; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.12; }
.brand-en { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; letter-spacing: .04em; color: var(--ivory); }
.brand-ar { font-family: var(--ar-serif); font-size: .92rem; color: var(--gold); }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav-links a { font-size: .82rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory); opacity: .82; transition: opacity .3s, color .3s; }
[dir="rtl"] .nav-links a { letter-spacing: 0; text-transform: none; font-size: .98rem; }
.nav-links a:hover { opacity: 1; color: var(--gold-soft); }
.nav-links .lang { letter-spacing: 0; text-transform: none; }
.lang { display: inline-flex; align-items: center; gap: 7px; }
.lang .globe { width: 16px; height: 16px; }
.lang .globe svg { width: 100%; height: 100%; }
.cart-toggle { position: relative; width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 0; color: var(--ivory); }
.cart-toggle svg { width: 22px; height: 22px; }
.cart-count { position: absolute; inset-block-start: 2px; inset-inline-end: 0; min-width: 17px; height: 17px; padding: 0 4px; background: var(--amber); color: var(--black); font-family: var(--sans); font-size: .68rem; font-weight: 600; border-radius: 9px; display: grid; place-items: center; }
.cart-count[hidden] { display: none !important; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ivory); transition: transform .4s var(--ease), opacity .3s; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
/* scrim keeps the heading and tag readable over the bright amber smoke.
   gradients don't take logical directions, so flip it by hand for rtl. */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(22,17,12,.94) 4%, rgba(22,17,12,.8) 44%, rgba(22,17,12,.3) 100%); }
[dir="rtl"] .hero::after { background: linear-gradient(to left, rgba(22,17,12,.94) 4%, rgba(22,17,12,.8) 44%, rgba(22,17,12,.3) 100%); }
.hero-inner { padding-inline: var(--pad); max-width: 1280px; margin-inline: auto; width: 100%; }
.hero-content { max-width: 32rem; }
.hero .mark-lg { width: 48px; height: 56px; color: var(--gold-soft); margin-block-end: 22px; }
.hero .mark-lg svg { width: 100%; height: 100%; }
.hero-ar { font-family: var(--ar-serif); font-size: clamp(2.6rem, 7vw, 5rem); color: var(--gold-soft); margin: 0; line-height: 1.15; }
.hero h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.1; color: var(--ivory); font-weight: 400; letter-spacing: .34em; margin-block-start: .5em; }
[dir="rtl"] .hero h1 { letter-spacing: .2em; }
.hero-tag { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: rgba(236,226,208,.86); margin-block: clamp(18px, 3vh, 26px) 0; max-width: 34ch; font-weight: 300; }
[dir="rtl"] .hero-tag { font-weight: 400; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: clamp(24px, 4vh, 38px); }

/* ---------------------------------------------------------------- story */
.story-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 86px); align-items: center; }
.story-copy .display { margin-block: 16px 0; }
.story-copy p { color: rgba(236,226,208,.74); margin-block: 1.1em 0; max-width: 46ch; }
.story-copy p:first-of-type { color: var(--ivory); font-size: 1.1rem; }
.signoff { display: flex; align-items: center; gap: 16px; margin-block-start: 32px; }
.signoff .line { width: 46px; height: 1px; background: var(--gold); flex: none; }
.signoff .name { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ivory); }
[dir="rtl"] .signoff .name { font-family: var(--ar-serif); font-style: normal; }
.signoff .role { font-size: .85rem; color: var(--ink-soft); color: rgba(236,226,208,.55); }
.story-photo { aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 90px rgba(22,17,12,.6); }

/* ---------------------------------------------------------------- collection / shop */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-block-end: clamp(30px, 5vw, 54px); }
.head-row .display { margin-block-start: 14px; max-width: 20ch; }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 30px); }
.product { display: flex; flex-direction: column; cursor: pointer; background: var(--black-2); border: 1px solid var(--line-dark-2); transition: border-color .4s var(--ease), transform .4s var(--ease); }
.product:hover { border-color: var(--gold); transform: translateY(-4px); }
.product:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.product-photo { aspect-ratio: 5 / 6; overflow: hidden; background: var(--black-3); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.product:hover .product-photo img { transform: scale(1.05); }
.product-body { padding: 20px clamp(16px, 1.6vw, 24px) 22px; display: flex; flex-direction: column; flex: 1; }
.product-name { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.product-name h3 { font-size: 1.32rem; }
.product-name .ar { font-family: var(--ar-serif); color: var(--gold); font-size: .98rem; }
[dir="rtl"] .product-name .ar { font-family: var(--sans); font-size: .8rem; letter-spacing: .06em; color: var(--gold); direction: ltr; }
.product .notes-line { color: rgba(236,226,208,.6); font-size: .9rem; margin: 8px 0 16px; font-style: italic; }
[dir="rtl"] .product .notes-line { font-style: normal; }
.product-foot { margin-block-start: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { font-size: .92rem; color: rgba(236,226,208,.8); }
.product-price b { font-family: var(--serif); font-weight: 500; color: var(--ivory); font-size: 1.1rem; }
.product .view { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
[dir="rtl"] .product .view { letter-spacing: 0; text-transform: none; font-size: .92rem; }
.product-data { display: none; }

/* ---------------------------------------------------------------- product detail panel (slide-over) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(11,8,5,.66); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.sheet-backdrop.open { opacity: 1; visibility: visible; }
.sheet { position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 95; width: min(520px, 100%); background: var(--paper); color: var(--ink); transform: translateX(100%); visibility: hidden; transition: transform .55s var(--ease), visibility .55s var(--ease); display: flex; flex-direction: column; box-shadow: -30px 0 60px -30px rgba(0,0,0,.5); }
[dir="rtl"] .sheet { transform: translateX(-100%); box-shadow: 30px 0 60px -30px rgba(0,0,0,.5); }
.sheet.open { transform: none; visibility: visible; }
.sheet-scroll { overflow-y: auto; flex: 1; }
.sheet-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-close { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(246,239,224,.9); border: 0; display: grid; place-items: center; color: var(--ink); z-index: 2; }
.sheet-close svg { width: 18px; height: 18px; }
.sheet-body { padding: clamp(24px, 4vw, 38px); }
.sheet-body .ttl { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sheet-body h3 { font-size: 1.9rem; }
.sheet-body .ar { font-family: var(--ar-serif); color: var(--amber-text); font-size: 1.2rem; }
[dir="rtl"] .sheet-body .ar { font-family: var(--sans); font-size: .9rem; letter-spacing: .06em; direction: ltr; }
.sheet-body .desc { color: var(--ink-soft); margin: 14px 0 0; }
.pyramid { margin: 26px 0 0; border-block-start: 1px solid var(--line); }
.pyramid .tier { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 14px 0; border-block-end: 1px solid var(--line-2); align-items: baseline; }
.pyramid .tier .lab { font-family: var(--serif); font-style: italic; font-size: .96rem; color: var(--amber-text); }
[dir="rtl"] .pyramid .tier { grid-template-columns: 70px 1fr; }
[dir="rtl"] .pyramid .tier .lab { font-family: var(--ar-serif); font-style: normal; }
.pyramid .tier .val { font-size: .96rem; color: var(--ink); }
.sizes { margin-block-start: 24px; }
.sizes .lbl { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-block-end: 10px; }
[dir="rtl"] .sizes .lbl { letter-spacing: 0; text-transform: none; }
.size-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.size-opt { border: 1px solid var(--line); background: transparent; padding: .7em 1em; border-radius: 1px; font-size: .9rem; color: var(--ink); display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-width: 7rem; transition: border-color .3s, background .3s; }
.size-opt .sz { font-weight: 500; }
.size-opt .pr { font-size: .82rem; color: var(--ink-soft); }
.size-opt.sel { border-color: var(--amber); background: rgba(190,122,42,.08); }
.size-opt:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sheet-foot { padding: clamp(18px, 3vw, 26px) clamp(24px, 4vw, 38px); border-block-start: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.sheet-foot .price-now { font-family: var(--serif); font-size: 1.5rem; }
.sheet-foot .btn { margin-inline-start: auto; }
[dir="rtl"] .sheet-foot .btn { margin-inline-start: 0; margin-inline-end: auto; }
.sheet .added-flash { color: var(--oxblood); font-size: .85rem; }

/* ---------------------------------------------------------------- notes (materials) */
.notes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.note { position: relative; overflow: hidden; isolation: isolate; min-height: 320px; display: flex; align-items: flex-end; color: var(--ivory); }
.note img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.note::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(22,17,12,.92) 0%, rgba(22,17,12,.8) 50%, rgba(22,17,12,.1) 86%); }
.note:hover img { transform: scale(1.06); }
.note-body { padding: 22px; }
.note-body h3 { font-size: 1.35rem; }
.note-body .ar { font-family: var(--ar-serif); color: var(--gold-soft); font-size: .95rem; display: block; margin-block-start: 2px; }
[dir="rtl"] .note-body .ar { font-family: var(--sans); letter-spacing: .04em; font-size: .82rem; direction: ltr; }
.note-body p { font-size: .88rem; color: rgba(236,226,208,.78); margin: 8px 0 0; }

/* ---------------------------------------------------------------- smoke band */
.band { position: relative; isolation: isolate; color: var(--ivory); text-align: center; }
.band .bg { position: absolute; inset: 0; z-index: -2; }
.band .bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(18,13,9,.6); }
.band .wrap { padding-block: clamp(80px, 13vw, 160px); }
.band .mark { width: 38px; height: 44px; color: var(--gold-soft); margin-inline: auto; margin-block-end: 24px; }
.band .mark svg { width: 100%; height: 100%; }
.band-text { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.5; max-width: 24ch; margin-inline: auto; }
[dir="rtl"] .band-text { font-family: var(--ar-serif); font-style: normal; line-height: 1.7; max-width: 28ch; }
.band-text .em { color: var(--gold-soft); }

/* ---------------------------------------------------------------- bakhoor */
.bakhoor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: stretch; }
.bakhoor-photo { overflow: hidden; min-height: 440px; }
.bakhoor-photo img { width: 100%; height: 100%; object-fit: cover; }
.bakhoor-copy p { color: var(--ink-soft); margin-block: 16px 0; max-width: 44ch; }

/* ---------------------------------------------------------------- visit */
.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.visit-block h4 { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold-soft); margin: 0 0 10px; }
[dir="rtl"] .visit-block h4 { font-family: var(--ar-serif); font-style: normal; }
.visit-block p { color: rgba(236,226,208,.78); margin: 0; }
.visit-block .info-row { display: flex; justify-content: space-between; gap: 14px; padding-block: 6px; border-block-end: 1px solid var(--line-dark-2); }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--black-2); color: var(--ivory); padding-block: clamp(54px, 7vw, 84px) 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(30px, 5vw, 70px); }
.footer .brand-en { color: var(--ivory); }
.footer-blurb { color: rgba(236,226,208,.62); margin: 18px 0 20px; max-width: 38ch; font-size: .95rem; }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--ivory); transition: background .3s, color .3s, border-color .3s; }
.socials a:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; }
.footer-col h5 { font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--gold-soft); margin: 0 0 16px; font-weight: 500; }
[dir="rtl"] .footer-col h5 { font-family: var(--ar-serif); font-style: normal; }
.footer-col a { display: block; color: rgba(236,226,208,.72); font-size: .93rem; padding-block: 5px; transition: color .3s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-start: clamp(40px, 6vw, 62px); padding-block-start: 24px; border-block-start: 1px solid var(--line-dark); font-size: .84rem; color: rgba(236,226,208,.55); }
.credit { display: inline-flex; align-items: center; gap: 12px; }
.credit-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: rgba(236,226,208,.6); }
[dir="rtl"] .credit-label { letter-spacing: 0; text-transform: none; font-size: .92rem; font-family: var(--ar-sans); }
.wlogo { display: inline-flex; align-items: center; gap: 11px; opacity: .9; transition: opacity .4s var(--ease); }
.wlogo:hover { opacity: 1; }
.wlogo-mark { height: 38px; width: auto; display: block; }
.wlogo-word { height: 26px; width: auto; display: block; }

/* ---------------------------------------------------------------- cart drawer */
.cart-backdrop { position: fixed; inset: 0; z-index: 96; background: rgba(11,8,5,.66); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.cart-backdrop.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 97; width: min(440px, 100%); background: var(--paper); color: var(--ink); transform: translateX(100%); visibility: hidden; transition: transform .5s var(--ease), visibility .5s var(--ease); display: flex; flex-direction: column; }
[dir="rtl"] .cart-drawer { transform: translateX(-100%); }
.cart-drawer.open { transform: none; visibility: visible; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 3vw, 30px); border-block-end: 1px solid var(--line); }
.cart-head h3 { font-size: 1.4rem; }
.cart-close { width: 38px; height: 38px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink); }
.cart-close svg { width: 20px; height: 20px; }
.cart-items { flex: 1; overflow-y: auto; padding: clamp(16px, 2.4vw, 24px) clamp(20px, 3vw, 30px); }
.cart-empty { color: var(--ink-soft); }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-block: 16px; border-block-end: 1px solid var(--line-2); }
.cart-line .l-name { font-family: var(--serif); font-size: 1.06rem; }
.cart-line .l-size { font-size: .82rem; color: var(--ink-soft); grid-column: 1; }
.cart-line .l-total { font-weight: 500; text-align: end; }
.cart-line .l-controls { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-block-start: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty-btn { width: 30px; height: 30px; border: 0; background: transparent; font-size: 1.1rem; color: var(--ink); display: grid; place-items: center; }
.qty-val { min-width: 28px; text-align: center; font-size: .9rem; }
.cart-remove { background: transparent; border: 0; color: var(--oxblood); font-size: .82rem; text-decoration: underline; }
.cart-foot { padding: clamp(18px, 3vw, 26px) clamp(20px, 3vw, 30px); border-block-start: 1px solid var(--line); }
.cart-total-row { display: flex; align-items: baseline; justify-content: space-between; margin-block-end: 16px; }
.cart-total-row .t-label { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
[dir="rtl"] .cart-total-row .t-label { letter-spacing: 0; text-transform: none; }
.cart-total-row .t-val { font-family: var(--serif); font-size: 1.5rem; }
.cart-foot .btn { width: 100%; }

/* ---------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11,8,5,.74); backdrop-filter: blur(3px); }
.modal-card { position: relative; background: var(--paper); color: var(--ink); max-width: 460px; width: 100%; padding: clamp(30px, 4vw, 46px); text-align: center; border-top: 1px solid var(--line); animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal-card .mark { width: 40px; height: 46px; color: var(--gold); margin: 0 auto 18px; }
.modal-card .mark svg { width: 100%; height: 100%; }
.modal-card h3 { font-size: 1.6rem; }
.modal-card p { color: var(--ink-soft); margin: 12px 0 0; font-size: .98rem; }
.modal-extra { margin-block-start: 20px; }
.modal-summary { text-align: start; border: 1px solid var(--line); margin-block-start: 8px; }
.modal-summary .row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 16px; font-size: .92rem; }
.modal-summary .row:not(:last-child) { border-block-end: 1px solid var(--line-2); }
.modal-summary .row .k { color: var(--ink-soft); }
.modal-summary .row .v { font-weight: 500; }
.modal-ref { font-size: .86rem; color: var(--ink-soft); margin-block-start: 14px; }
.modal-ref .code { font-family: var(--serif); font-weight: 500; letter-spacing: .08em; color: var(--ink); }
.modal-close { margin-block-start: 24px; background: var(--ink); color: var(--paper); border: 0; padding: .8em 2em; border-radius: 1px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; transition: background .3s; }
[dir="rtl"] .modal-close { letter-spacing: 0; text-transform: none; }
.modal-close:hover { background: var(--gold); color: var(--black); }

.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--gold); color: var(--black); padding: 10px 16px; z-index: 200; border-radius: 1px; }
.skip:focus { inset-inline-start: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) { .footer-top { grid-template-columns: 1fr 1fr; } .notes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center; gap: 24px; background: rgba(22,17,12,.98); backdrop-filter: blur(10px); transform: translateX(100%); transition: transform .5s var(--ease); pointer-events: none; }
  [dir="rtl"] .nav-links { transform: translateX(-100%); }
  body.menu-open .nav-links { transform: none; pointer-events: auto; }
  /* the overlay is a descendant of the header, so a scrolled header's
     backdrop-filter becomes its containing block and the fixed inset:0
     collapses onto the bar. drop it while open so inset:0 is the viewport. */
  body.menu-open .nav { backdrop-filter: none; transform: none; }
  /* keep the bar (logo, cart, close) above the open overlay */
  .nav .brand, .nav .cart-toggle, .nav-toggle { position: relative; z-index: 56; }
  .nav-links a { font-size: 1.2rem; opacity: 1; }
  .story-grid, .bakhoor-grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .visit-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .products { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .notes-grid { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(to top, rgba(22,17,12,.92) 20%, rgba(22,17,12,.5) 100%); }
}
