/* =====================================================================
   IDEA PREMIUM — storefront
   Mobile-first · RTL/LTR via logical properties · no framework
   ===================================================================== */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Bold.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --cream: #F8F4EE;
  --cream-2: #F1EAE0;
  --paper: #FFFDF9;
  --sand: #E9DFD0;
  --line: #E2D7C6;
  --line-strong: #CDBFA9;
  --ink: #1E1B18;
  --ink-2: #3F3832;
  --muted: #6B6258;
  --gold: #B39462;
  --gold-soft: #EADCC2;
  --gold-ink: #7A5F32;
  --ok: #33634A;
  --ok-bg: #E4EFE6;
  --warn: #8A5A12;
  --warn-bg: #F5E9D2;
  --danger: #9C3D32;
  --danger-bg: #F6E3DF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30, 27, 24, .04), 0 8px 24px rgba(30, 27, 24, .06);
  --gutter: 16px;
  --maxw: 1200px;
  --header-h: 64px;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Arabic: licensed brand font slot first ("IP Arabic", add an @font-face when available), then high-quality system fonts */
  --arabic: "IP Arabic", "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--arabic); line-height: 1.75; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 400; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 48px; }
@media (min-width: 1024px) { .section { padding-block: 80px; } }
.section--alt { background: var(--cream-2); }

/* ---------- type ---------- */
.display, .h1, .h2, .h3 { font-family: var(--serif); font-weight: 400; }
html[lang="ar"] .display, html[lang="ar"] .h1, html[lang="ar"] .h2, html[lang="ar"] .h3 { font-family: var(--arabic); font-weight: 600; letter-spacing: 0; }
.display { font-size: clamp(2.35rem, 7.5vw, 4.5rem); line-height: 1.04; }
.h1 { font-size: clamp(2rem, 5.4vw, 3rem); }
.h2 { font-size: clamp(1.65rem, 4vw, 2.4rem); }
.h3 { font-size: 1.35rem; }
html[lang="ar"] .display { font-size: clamp(2rem, 6.4vw, 3.6rem); line-height: 1.25; }
html[lang="ar"] .h1 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); line-height: 1.35; }
html[lang="ar"] .h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); line-height: 1.4; }
html[lang="ar"] .h3 { font-size: 1.2rem; line-height: 1.45; }
.eyebrow { display: inline-block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 12px; font-weight: 600; }
html[lang="ar"] .eyebrow { letter-spacing: .02em; font-size: .85rem; }
.lead { font-size: 1.075rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head .h2 { margin: 0; }
.link-arrow { font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; white-space: nowrap; }
.link-arrow:hover { border-color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--cream); }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .9rem; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--sand); border-color: var(--sand); color: var(--muted); cursor: not-allowed; transform: none; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkbtn { background: none; border: 0; padding: 6px 2px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .9rem; min-height: 32px; }
.linkbtn:hover { color: var(--ink); }

/* ---------- announcement + header ---------- */
.announce { background: var(--ink); color: #EFE6D6; font-size: .8rem; letter-spacing: .06em; text-align: center; padding: 8px var(--gutter); }
html[lang="ar"] .announce { letter-spacing: 0; font-size: .85rem; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(248, 244, 238, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: 8px; }
.header__start, .header__end { display: flex; align-items: center; gap: 4px; }
.header__end { justify-content: flex-end; }
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; direction: ltr; }
.logo__main { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .08em; }
.logo__sub { font-family: var(--sans); font-size: .56rem; letter-spacing: .5em; color: var(--gold-ink); margin-top: 4px; padding-inline-start: .5em; font-weight: 600; }
@media (min-width: 1024px) { .logo__main { font-size: 2rem; } }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; background: transparent; border: 0; cursor: pointer; text-decoration: none; position: relative; }
.iconbtn:hover { background: var(--cream-2); }
.iconbtn svg { width: 22px; height: 22px; }
.badge-count { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #fff; font-size: .7rem; font-weight: 700; line-height: 19px; text-align: center; font-family: var(--sans); }
.nav { display: none; }
.nav a { text-decoration: none; font-size: .95rem; padding: 8px 2px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.pick { position: relative; }
.pick > summary { list-style: none; }
.pick > summary::-webkit-details-marker { display: none; }
.pick__btn { font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.pick__menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 230px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px; z-index: 50; }
.pick__menu a, .pick__menu span { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: .92rem; }
.pick__menu a:hover { background: var(--cream-2); }
.pick__menu .is-current { color: var(--muted); }
.lang-link { font-size: .9rem; font-weight: 600; }
.hide-sm { display: none !important; }
.mobile-logo { justify-self: center; }
@media (min-width: 1024px) {
  .header__row { grid-template-columns: auto 1fr auto; gap: 32px; }
  .header__start { order: 0; }
  .nav { display: flex; gap: 28px; justify-content: center; }
  .menu-toggle { display: none !important; }
  .hide-sm { display: inline-flex !important; }
  .mobile-logo { display: none; }
}

/* mobile drawer (details/summary → works without JS) */
.drawer > summary { list-style: none; }
.drawer > summary::-webkit-details-marker { display: none; }
.drawer__panel { position: absolute; inset-inline: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px var(--gutter) 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; z-index: 45; }
.drawer__panel nav a { display: flex; align-items: center; min-height: 52px; font-size: 1.15rem; text-decoration: none; border-bottom: 1px solid var(--line); }
html:not([lang="ar"]) .drawer__panel nav a { font-family: var(--serif); font-size: 1.35rem; }
.drawer__meta { display: grid; gap: 10px; margin-top: 18px; }
.drawer__meta a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .95rem; }

/* ---------- alerts ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper); margin-bottom: 20px; font-size: .95rem; }
.notice--success { background: var(--ok-bg); border-color: #C8DDCC; color: #22432F; }
.notice--error { background: var(--danger-bg); border-color: #EBC9C2; color: #6E2A22; }
.notice--info { background: var(--paper); }
.notice--warn { background: var(--warn-bg); border-color: #EAD6AF; color: #5E3E0C; }
.notice a { font-weight: 600; }
.flash-area { padding-top: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #FBF8F3 0%, #F1E8DA 55%, #E9DCC7 100%); }
.hero__grid { display: grid; gap: 32px; align-items: center; padding-block: 44px 52px; }
.hero__copy { position: relative; z-index: 1; max-width: 640px; }
.hero__copy .lead { margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 560px; background: var(--sand); }
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__placeholder { position: absolute; inset: 0; display: grid; place-items: center; background:
  radial-gradient(120% 80% at 70% 20%, rgba(255,255,255,.75), transparent 60%),
  radial-gradient(80% 60% at 20% 90%, rgba(179,148,98,.28), transparent 70%),
  linear-gradient(170deg, #F4ECDF, #E5D6BE); }
.hero__placeholder svg { width: 42%; max-width: 220px; opacity: .85; }
.hero__ring { position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(179,148,98,.35); inset-inline-end: -180px; top: -160px; pointer-events: none; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; padding-block: 72px 88px; gap: 56px; }
}
@media (max-width: 599px) { .hero__art { aspect-ratio: 5 / 4; } .hero__actions .btn { flex: 1 1 100%; } }

/* ---------- product grid + card ---------- */
.grid { display: grid; gap: 28px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 1200px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 389px) { .grid { gap: 24px 12px; } }
.grid--offers { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .grid--offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid--offers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 5; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card__tags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.card__body { display: flex; flex-direction: column; flex: 1; padding-top: 14px; gap: 6px; }
.card__title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; margin: 0; }
html[lang="ar"] .card__title { font-family: var(--arabic); font-size: 1.05rem; font-weight: 600; line-height: 1.5; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__link { position: relative; }
.card__short { font-size: .88rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; display: grid; gap: 10px; padding-top: 6px; }
.card__cta { position: relative; z-index: 2; }
.card__cta .btn { width: 100%; min-height: 46px; padding-inline: 12px; font-size: .9rem; }
@media (max-width: 389px) { .card__cta .btn { font-size: .82rem; padding-inline: 8px; } .card__title { font-size: 1.1rem; } }
.card--offer .card__media { aspect-ratio: 16 / 11; }
.card--offer .card__items { font-size: .85rem; color: var(--ink-2); margin: 0; padding: 0; list-style: none; }
.card--offer .card__items li { display: inline; }
.card--offer .card__items li:not(:last-child)::after { content: " · "; color: var(--gold); }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price__now { font-weight: 700; font-size: 1.02rem; font-family: var(--sans); }
html[lang="ar"] .price__now { font-family: var(--arabic); }
.price__from { font-size: .78rem; color: var(--muted); font-weight: 400; }
.price__was { color: var(--muted); text-decoration: line-through; font-size: .88rem; }
.price--lg .price__now { font-size: 1.6rem; }
.price--lg .price__was { font-size: 1.05rem; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); line-height: 1.4; white-space: nowrap; }
.chip--gold { background: var(--gold-soft); border-color: transparent; color: var(--gold-ink); }
.chip--save { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.stock { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock--available { color: var(--ok); }
.stock--limited { color: var(--warn); }
.stock--out_of_stock, .stock--unavailable { color: var(--danger); }

/* ---------- editorial blocks ---------- */
.intro-block { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .intro-block { grid-template-columns: 1fr 1fr; gap: 64px; } }
.intro-art { border-radius: 24px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--sand); position: relative; }
.intro-art img { width: 100%; height: 100%; object-fit: cover; }
.benefits { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.benefit { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.benefit__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); margin-bottom: 14px; }
.benefit__icon svg { width: 22px; height: 22px; }
.benefit h3 { font-size: 1.05rem; font-weight: 600; font-family: var(--sans); margin-bottom: 6px; letter-spacing: 0; }
html[lang="ar"] .benefit h3 { font-family: var(--arabic); }
.benefit p { margin: 0; color: var(--muted); font-size: .92rem; }
.promo { position: relative; overflow: hidden; border-radius: 28px; background: var(--ink); color: #F3EBDD; display: grid; gap: 24px; padding: 36px 24px; }
.promo .eyebrow { color: var(--gold); }
.promo .lead { color: #D9CFBF; }
.promo__art { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: #2B2622; }
.promo__art img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .promo { grid-template-columns: 1.1fr .9fr; padding: 56px; align-items: center; } }
.promo__deco { position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(179,148,98,.4); inset-inline-end: -120px; bottom: -200px; pointer-events: none; }
.cta-band { text-align: center; }
.cta-band .lead { margin-inline: auto; }

/* ---------- product page ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding-block: 16px 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp { display: grid; gap: 28px; padding-block: 20px 56px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; padding-block: 32px 80px; } .pdp__info { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } }
.gallery__main { border-radius: 20px; overflow: hidden; background: var(--sand); aspect-ratio: 1 / 1; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery__thumb { flex: 0 0 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); padding: 0; background: var(--sand); cursor: pointer; opacity: .75; transition: opacity .2s, border-color .2s; }
.gallery__thumb[aria-current="true"] { opacity: 1; border-color: var(--ink); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__title { margin-bottom: 8px; }
.pdp__short { color: var(--ink-2); font-size: 1.02rem; }
.pdp__buy { display: grid; gap: 18px; padding: 22px 0; border-block: 1px solid var(--line); margin-block: 20px; }
.options { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.options legend { font-weight: 600; font-size: .9rem; margin-bottom: 10px; padding: 0; }
.options__list { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt label { display: flex; flex-direction: column; gap: 2px; min-width: 104px; min-height: 52px; justify-content: center; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); cursor: pointer; transition: border-color .15s, box-shadow .15s; font-size: .92rem; }
.opt label small { color: var(--muted); font-size: .78rem; }
.opt input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }
.opt input:disabled + label { opacity: .55; text-decoration: line-through; cursor: not-allowed; }
.buyrow { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: stretch; }
.buyrow .btn { width: 100%; }
.buyrow__now { grid-column: 1 / -1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); height: 50px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 1.25rem; line-height: 1; border-radius: 999px; }
.qty button:hover { background: var(--cream-2); }
.qty input { width: 44px; text-align: center; border: 0; background: transparent; font-weight: 600; -moz-appearance: textfield; appearance: textfield; height: 100%; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 40px; }
.qty--sm button { width: 36px; font-size: 1.05rem; }
.qty--sm input { width: 34px; }
.buy-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--muted); }
.buy-meta span { display: inline-flex; align-items: center; gap: 6px; }
.buy-meta svg { width: 16px; height: 16px; }
.details { border-bottom: 1px solid var(--line); }
.details > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-weight: 600; }
.details > summary::-webkit-details-marker { display: none; }
.details > summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; color: var(--muted); transition: transform .2s; }
.details[open] > summary::after { transform: rotate(45deg); }
.details__body { padding-bottom: 20px; color: var(--ink-2); white-space: pre-line; }
.prose { color: var(--ink-2); white-space: pre-line; }
.includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.includes li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.includes .qtyx { font-weight: 700; color: var(--gold-ink); font-family: var(--sans); white-space: nowrap; }
.reviews { display: grid; gap: 14px; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- cart ---------- */
.page-head { padding-block: 32px 8px; }
@media (min-width: 1024px) { .page-head { padding-block: 56px 16px; } }
.cart { display: grid; gap: 28px; padding-block: 12px 64px; }
@media (min-width: 960px) { .cart { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; } .summary { position: sticky; top: calc(var(--header-h) + 20px); } }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .line { grid-template-columns: 110px minmax(0, 1fr); gap: 20px; } }
.line__img { border-radius: 12px; overflow: hidden; background: var(--sand); aspect-ratio: 4 / 5; }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__top { display: flex; justify-content: space-between; gap: 12px; }
.line__name { font-weight: 600; margin: 0; line-height: 1.35; }
.line__name a { text-decoration: none; }
.line__meta { font-size: .85rem; color: var(--muted); margin: 2px 0 0; }
.line__total { font-weight: 700; white-space: nowrap; text-align: end; }
.line__total .price__was { display: block; font-weight: 400; }
.line__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.line__msg { grid-column: 1 / -1; margin: 4px 0 0; font-size: .88rem; color: var(--danger); }
.line--problem { background: linear-gradient(90deg, transparent, rgba(156,61,50,.04)); }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.summary h2 { font-size: 1.35rem; }
.totals { display: grid; gap: 10px; margin: 16px 0; font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; gap: 16px; }
.totals dt, .totals dd { margin: 0; }
.totals dd { text-align: end; font-weight: 600; white-space: nowrap; }
.totals .is-discount dd { color: var(--ok); }
.totals .is-free dd { color: var(--gold-ink); letter-spacing: .08em; font-size: .85rem; }
html[lang="ar"] .totals .is-free dd { letter-spacing: 0; font-size: .95rem; }
.totals .grand { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; font-size: 1.15rem; }
.totals .grand dd { font-size: 1.3rem; }
.free-meter { font-size: .85rem; color: var(--ink-2); background: var(--gold-soft); border-radius: 10px; padding: 10px 12px; }
.coupon-form { display: flex; gap: 8px; margin-top: 8px; }
.coupon-form input { flex: 1; min-width: 0; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--ok-bg); border-radius: 10px; padding: 8px 12px; font-size: .9rem; }
.upsell { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; border: 1px dashed var(--gold); border-radius: 16px; padding: 14px; margin-top: 24px; background: #FCF8F1; }
.upsell__img { border-radius: 10px; overflow: hidden; background: var(--sand); aspect-ratio: 1 / 1; }
.upsell__img img { width: 100%; height: 100%; object-fit: cover; }
.upsell p { margin: 0; }
.upsell__act { grid-column: 1 / -1; }
@media (min-width: 600px) { .upsell { grid-template-columns: 72px minmax(0, 1fr) auto; } .upsell__act { grid-column: auto; } }
.empty { text-align: center; padding: 72px 0 96px; }
.empty svg { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--gold); }
.sticky-cta { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: rgba(255, 253, 249, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; }
.sticky-cta__total { display: grid; line-height: 1.25; }
.sticky-cta__total small { color: var(--muted); font-size: .75rem; }
.sticky-cta .btn { flex: 1; }
@media (min-width: 960px) { .sticky-cta { display: none; } }
body.has-sticky { padding-bottom: 84px; }
@media (min-width: 960px) { body.has-sticky { padding-bottom: 0; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field .label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field .opt-tag { font-weight: 400; color: var(--muted); font-size: .82rem; }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); transition: border-color .15s, box-shadow .15s; font-size: 1rem; }
.input, .select { height: 52px; }
.textarea { min-height: 96px; resize: vertical; }
html[dir="rtl"] .kv dd.ltr { text-align: right; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 44px; }
html[dir="rtl"] .select { background-position: 16px 50%, 22px 50%; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(30,27,24,.08); }
.is-invalid { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .85rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; line-height: 1.55; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--ink); }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fixed-field { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 12px; background: var(--cream-2); font-weight: 600; }
.paybox { display: flex; gap: 14px; align-items: center; border: 1px solid var(--ink); border-radius: 14px; padding: 16px; background: var(--paper); }
.paybox svg { width: 28px; height: 28px; flex: 0 0 auto; color: var(--gold-ink); }
.paybox p { margin: 0; }

.checkout { display: grid; gap: 28px; padding-block: 12px 64px; grid-template-areas: "form" "summary" "actions"; }
.checkout__form { grid-area: form; }
.checkout__summary { grid-area: summary; }
.checkout__actions { grid-area: actions; }
@media (min-width: 960px) {
  .checkout { grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "form summary" "actions summary"; gap: 0 56px; align-items: start; }
  .checkout__summary { position: sticky; top: calc(var(--header-h) + 20px); }
}
.fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.fieldset legend { font-family: var(--serif); font-size: 1.5rem; padding: 0; margin-bottom: 16px; }
html[lang="ar"] .fieldset legend { font-family: var(--arabic); font-weight: 600; font-size: 1.25rem; }
.two { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .two { grid-template-columns: 1fr 1fr; } }
.mini-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .92rem; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; }
.mini-lines .q { color: var(--muted); white-space: nowrap; }

/* ---------- success ---------- */
.success { max-width: 760px; margin-inline: auto; padding-block: 40px 72px; }
.success__head { text-align: center; margin-bottom: 32px; }
.success__mark { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
.success__mark svg { width: 30px; height: 30px; }
.order-no { display: inline-block; font-family: var(--sans); font-weight: 700; letter-spacing: .08em; font-size: 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 10px 22px; margin-top: 8px; direction: ltr; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-bottom: 20px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 14px; }
.kv { display: grid; gap: 8px; margin: 0; }
.kv div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.success__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ---------- country chooser / switch ---------- */
.chooser { min-height: 100vh; display: grid; place-items: center; padding: 40px var(--gutter); background: radial-gradient(90% 60% at 50% 0%, #FFFDF9 0%, var(--cream) 55%, #EFE5D6 100%); }
.chooser__inner { width: 100%; max-width: 760px; text-align: center; }
.chooser .logo { margin-bottom: 36px; }
.chooser .logo__main { font-size: 2.6rem; }
.chooser__title { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 8px; }
.chooser__title [lang="ar"] { font-family: var(--arabic); font-weight: 600; }
.chooser__intro { color: var(--muted); margin-bottom: 32px; }
.chooser__cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .chooser__cards { grid-template-columns: 1fr 1fr; } }
.country { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px; display: grid; gap: 18px; text-align: center; box-shadow: var(--shadow); }
.country__name { display: grid; gap: 2px; }
.country__name [lang="ar"] { font-family: var(--arabic); font-size: 1.3rem; font-weight: 600; }
.country__name [lang="en"] { font-family: var(--serif); font-size: 1.5rem; }
.country__cur { font-size: .78rem; letter-spacing: .2em; color: var(--gold-ink); font-weight: 600; }
.country__langs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.country__langs .btn { padding-inline: 10px; }
.dialog-card { max-width: 560px; margin: 48px auto 80px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 32px 24px; text-align: center; box-shadow: var(--shadow); }
.dialog-card .actions { display: grid; gap: 10px; margin-top: 24px; }
@media (min-width: 600px) { .dialog-card { padding: 44px; } .dialog-card .actions { grid-template-columns: 1fr 1fr; } }

/* ---------- info pages ---------- */
.page-body { max-width: 760px; padding-block: 8px 72px; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.contact-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; }
.contact-list a:hover { border-color: var(--ink); }
.contact-list .v { font-weight: 600; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #D8CEBF; padding-block: 56px 28px; margin-top: 0; }
.footer a { color: #EFE6D6; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer .logo { align-items: flex-start; color: #F3EBDD; }
.footer .logo__sub { color: var(--gold); }
.footer h2 { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 600; }
html[lang="ar"] .footer h2 { letter-spacing: 0; font-size: .9rem; font-family: var(--arabic); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer .cod-pill { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; border: 1px solid rgba(179,148,98,.5); color: #EFE6D6; border-radius: 999px; padding: 8px 14px; font-size: .82rem; }
.footer .cod-pill svg { width: 16px; height: 16px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .82rem; color: #A89D8E; }
.footer__line { margin-top: 14px; }
.footer__follow { margin-top: 22px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; font-size: .85rem; text-transform: capitalize; }

/* ---------- floating whatsapp ---------- */
.wa-float { position: fixed; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 35; display: inline-flex; align-items: center; gap: 10px; height: 52px; min-width: 52px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; box-shadow: 0 6px 20px rgba(30,27,24,.25); font-weight: 600; font-size: .9rem; }
.wa-float svg { width: 22px; height: 22px; flex: 0 0 auto; }
.wa-float span { display: none; }
@media (min-width: 1024px) { .wa-float span { display: inline; } .wa-float { inset-inline-end: 24px; bottom: 24px; } }
@media (max-width: 1023px) { .wa-float { padding: 0; width: 52px; justify-content: center; } }
body.has-sticky .wa-float { bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { body.has-sticky .wa-float { bottom: 24px; } }

/* ---------- motion ---------- */
.reveal { animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .header, .footer, .wa-float, .announce, .sticky-cta { display: none !important; } body { background: #fff; } }

/* <picture> wrappers must fill their fixed-ratio frames so object-fit: cover works */
.card__media picture, .gallery__main picture, .line__img picture, .upsell__img picture,
.hero__art picture, .intro-art picture, .promo__art picture, .gallery__thumb picture { display: block; width: 100%; height: 100%; }

/* ---------------------------------------------------------------- Phase 6: CMS content */
.only-sm { display: block; }
@media (min-width: 1024px) { .only-sm { display: none !important; } }
.logo__img { display: inline-flex; align-items: center; height: 40px; max-width: 170px; }
.logo__img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }
.logo__img picture { display: contents; }
@media (min-width: 1024px) { .logo__img { height: 46px; } }
.footer .logo__img { height: 44px; }
.footer__static { color: #CFC5B6; line-height: 1.6; }
.promo--noimg { grid-template-columns: 1fr !important; }
.hero--banner .hero__copy .display { max-width: 18ch; }

/* products page promotion strip */
.strip { display: grid; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 8px; box-shadow: var(--shadow); }
.strip__img { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 9; background: var(--cream-2); }
.strip__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip__body p { margin: 0; }
.strip__body .h3 { margin-bottom: 4px; }
@media (min-width: 700px) { .strip { grid-template-columns: 200px minmax(0, 1fr) auto; padding: 18px 22px; } .strip--noimg { grid-template-columns: minmax(0, 1fr) auto; } }

/* about */
.about-block { margin-block: 40px; }
.about-block .benefits { margin-top: 18px; }
.about-figure { margin: 40px 0; }
.about-figure img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.about-figure figcaption { margin-top: 8px; }
.page-body .intro-art { border-radius: var(--radius); overflow: hidden; }
.page-body .intro-art img { width: 100%; height: auto; display: block; }

/* contact */
.li-static { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.li-static .v { font-weight: 600; text-align: end; }
.social--page a { border-color: var(--line-strong); color: var(--ink); text-decoration: none; }
.social--page a:hover { border-color: var(--ink); }
.contact-form-wrap { margin-top: 40px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; }
@media (min-width: 600px) { .contact-form-wrap { padding: 32px; } }
.contact-form { display: grid; gap: 4px; margin-top: 12px; }
.contact-form .btn { justify-self: start; min-width: 200px; }
@media (max-width: 599px) { .contact-form .btn { justify-self: stretch; } }

/* reviews */
.rating-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--ink-2); }
.review__text { white-space: pre-line; overflow-wrap: anywhere; }
.review-form-box { margin-top: 24px; }
.review-form-box > summary { list-style: none; display: inline-flex; cursor: pointer; }
.review-form-box > summary::-webkit-details-marker { display: none; }
.review-form { margin-top: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 4px; max-width: 640px; }
.rating-input { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.rating-input legend { font-weight: 600; margin-bottom: 6px; width: 100%; padding: 0; }
.rating-input__opt { position: relative; }
.rating-input__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rating-input__opt span[aria-hidden] { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--gold); letter-spacing: 1px; background: #fff; }
.rating-input__opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--gold-soft); }
.rating-input__opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.rating-input.is-invalid .rating-input__opt span[aria-hidden] { border-color: var(--danger); }

/* promotional popup — calm: one at a time, easy to dismiss, never over the country selector */
.popup { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; }
.popup[hidden] { display: none; }
.popup__backdrop { position: absolute; inset: 0; background: rgba(30, 27, 24, .45); }
.popup__card { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--paper); border-radius: 22px; box-shadow: 0 24px 64px rgba(30, 27, 24, .25); }
.popup.is-open .popup__card { animation: popup-in .35s var(--ease); }
@keyframes popup-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.popup__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.popup__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.popup__body { padding: 22px 22px 26px; }
.popup__body p { color: var(--ink-2); overflow-wrap: anywhere; }
.popup__body .btn { width: 100%; justify-content: center; margin-top: 6px; }
.popup__close { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 253, 249, .92); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(30, 27, 24, .12); display: inline-flex; align-items: center; justify-content: center; }
.popup__close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
body.has-popup { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .popup.is-open .popup__card { animation: none; } }

/* admin-only preview page */
.preview-bar { background: var(--gold-soft); color: var(--gold-ink); text-align: center; padding: 8px 16px; font-size: .85rem; font-weight: 600; }
.popup-demo { min-height: 80vh; position: relative; background: var(--cream-2); }
.popup-demo .popup { position: absolute; }
.popup-demo .popup__close { cursor: default; }
.review-form-box[open] > summary { background: var(--ink); color: var(--paper); }

/* Phase 7 — tracking test mode badge (only when test mode is on) */
.tracking-test-badge { position: fixed; inset-inline-start: 12px; bottom: 12px; z-index: 90; background: #1F1D1B; color: #fff; font-size: .75rem; padding: 6px 10px; border-radius: 999px; opacity: .88; pointer-events: none; }
