/* Rawaq demo stores — one structure, four identities. Brand tokens arrive in each page's :root style.
   Motion rule for every Rawaq page: content never fades; it slides or is revealed by a mask. */

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------- base ---------- */
:root { --err: #A8321E; --ok: #2F6B4F; --r-field: min(var(--r), 14px); --ease: cubic-bezier(.22, 1, .36, 1); --ease-x: cubic-bezier(.16, 1, .3, 1); --head: 72px; }
.is-dark { --err: #F0A28F; --ok: #8FD3AE; }
html, body { background: var(--bg); color: var(--ink); }
/* no page scrollbar on any device: the page still scrolls with the wheel, touch, keys and Lenis */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; width: 0; height: 0; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; font-family: var(--font-b); font-size: 1.0625rem; line-height: 1.8; letter-spacing: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
svg { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip:focus { top: 12px; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 900px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.no-scroll { overflow: hidden; }

/* ---------- type ---------- */
.h1 { font-family: var(--font-d); font-weight: var(--d-weight); font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.3rem); line-height: 1.28; }
.h1--page { font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); }
.h1--pdp { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); line-height: 1.35; }
.h2 { font-family: var(--font-d); font-weight: var(--d-weight); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.32; }
.h3 { font-family: var(--font-d); font-weight: var(--d-weight); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.4; }
.eyebrow { font-size: .875rem; font-weight: 600; color: var(--accent); margin: 0 0 .8rem; }
.lede { color: var(--ink-2); font-size: 1.0625rem; max-width: 38rem; }
.fine { font-size: .8125rem; color: var(--muted); line-height: 1.7; margin: 12px 0 0; }
.ltrnum { font-size: 1.25rem; font-weight: 600; unicode-bidi: isolate; }

/* ---------- Rawaq demo bar (Rawaq's own colours, not the brand's) ---------- */
.dbar { background: #161A22; color: #E9E1D3; font-size: .8125rem; line-height: 1.5; }
.dbar__in { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding-block: 8px; }
.dbar a { display: inline-flex; align-items: center; gap: 6px; color: #D9A682; font-weight: 600; text-decoration: none; min-height: 32px; }
.dbar a:hover { color: #F1C9A8; }
.dbar svg { width: 16px; height: 16px; }
.ann { margin: 0; background: var(--accent); color: var(--on-accent); text-align: center; font-size: .8125rem; font-weight: 500; line-height: 1.5; padding: 7px 16px; }

/* ---------- header (solid, never blurred) ---------- */
.hd { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.hd__in { display: flex; align-items: center; gap: 28px; min-height: var(--head); }
.wm { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; padding-block: 6px; margin: 0; flex: none; }
.wm__ar { font-family: var(--font-logo); font-weight: var(--d-weight); font-size: 1.9rem; line-height: 1.1; }
.wm__lat { font-family: var(--font-b); font-size: .625rem; font-weight: 600; letter-spacing: .34em; margin-top: 5px; color: var(--muted); }
.hd__nav { flex: 1; display: flex; gap: 4px 26px; align-items: center; }
.hd__nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; white-space: nowrap; transition: color .2s; }
.hd__nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 8px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.hd__nav a:hover { color: var(--ink); }
.hd__nav a:hover::after, .hd__nav a[aria-current="page"]::after { transform: scaleX(1); }
.hd__nav a[aria-current="page"] { color: var(--ink); }
.cartbtn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; transition: border-color .2s; }
.cartbtn:hover { border-color: var(--ink); }
.cartbtn svg { width: 22px; height: 22px; }
.cartbtn__n { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center; transform: scale(0); transition: transform .3s var(--ease); }
.cartbtn.has-items .cartbtn__n { transform: none; }
.cartbtn.bump .cartbtn__n { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: translateY(-5px); } }
@media (max-width: 899px) {
  :root { --head: 64px; }
  .hd__in { flex-wrap: wrap; gap: 0 16px; justify-content: space-between; }
  .hd__nav { order: 3; flex-basis: 100%; gap: 22px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); margin-inline: -20px; padding-inline: 20px; }
  .hd__nav::-webkit-scrollbar { display: none; }
  .wm__ar { font-size: 1.6rem; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r); border: 1px solid transparent; text-decoration: none; font-family: var(--font-b); font-weight: 600; font-size: .9375rem; line-height: 1.2; cursor: pointer; white-space: nowrap; transition: background-color .22s, color .22s, border-color .22s, box-shadow .3s var(--ease); }
.btn svg { width: 19px; height: 19px; transition: transform .3s var(--ease); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 84%, var(--ink)); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.btn--ghost:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
[dir="rtl"] .btn:hover .flip { transform: scaleX(-1) translateX(3px); }
.btn:active { box-shadow: none; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .875rem; }
.btn--lg { min-height: 58px; font-size: 1rem; }
.btn--wide { width: 100%; }
.btn--grow { flex: 1; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.iconbtn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.lnk { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: .35em; white-space: nowrap; }
.lnk:hover { color: var(--accent); }

/* ---------- hero: the photo is revealed by a mask, the lines rise out of masks ---------- */
.hero { position: relative; display: grid; align-items: center; min-height: min(84svh, 800px); overflow: clip; }
.hero__media { position: absolute; inset: 0; background: var(--surface-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: wipe 1.6s var(--ease-x) both; }
.hero--scrim .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(10, 11, 13, 0) 30%, rgba(10, 11, 13, .82) 78%); }
.hero__in { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 120px); }
.hero__copy { max-width: 34rem; }
.hero--end .hero__copy { margin-inline-start: auto; max-width: 30rem; }
@media (min-width: 900px) {
  .hero .h1 .ml { white-space: nowrap; }
  /* Abaq: the bottles and blossoms reach into the copy side, so a soft wash of the page colour sits behind the text */
  [data-brand="abaq"] .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(247, 240, 236, 0) 42%, rgba(247, 240, 236, .92) 64%); }
}
.hero--scrim .hero__copy { color: #F2F3F5; }
.hero .h1 { margin-bottom: 1.1rem; }
.hero__sub { color: var(--ink-2); font-size: 1.125rem; max-width: 30rem; margin-bottom: 1.8rem; }
.hero--scrim .hero__sub { color: #D3D7DD; }
.ml { display: block; overflow: clip; padding-block: .08em .2em; margin-block: -.08em -.2em; }
.ml > span { display: block; animation: rise 1.15s var(--ease-x) both; }
.ml:nth-child(1) > span { animation-delay: .25s; } .ml:nth-child(2) > span { animation-delay: .37s; }
.hero .eyebrow, .hero__sub, .hero .row { animation: wipeup 1s var(--ease-x) both; }
.hero .eyebrow { animation-delay: .15s; } .hero__sub { animation-delay: .55s; } .hero .row { animation-delay: .7s; }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { transform: translateY(108%); } }
@keyframes wipeup { from { clip-path: inset(100% 0 0 0); transform: translateY(14px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@media (max-width: 899px) {
  .hero { display: block; min-height: 0; }
  .hero__media { position: relative; aspect-ratio: 4 / 3.3; }
  .hero--scrim .hero__media::after { background: linear-gradient(to top, rgba(10, 11, 13, .55), rgba(10, 11, 13, 0) 45%); }
  .hero__in { padding-block: 28px 44px; }
  .hero--end .hero__copy { margin-inline-start: 0; }
  .hero--scrim .hero__copy { color: var(--ink); }
  .hero--scrim .hero__sub { color: var(--ink-2); }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(56px, 7vw, 104px); }
.sec--tight { padding-block: clamp(24px, 4vw, 56px); }
.phead { padding-block: clamp(32px, 5vw, 64px) 0; }
.phead .lede { margin-top: 1rem; }
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(22px, 3vw, 40px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .8125rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--accent); }
.catrow { border-block: 1px solid var(--line); }
.catrow__in { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 32px; list-style: none; margin: 0 auto; padding-block: 8px; }
.catrow a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; font-weight: 500; transition: color .2s; }
.catrow a:hover { color: var(--accent); }

/* ---------- product grid + card ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 30px) clamp(12px, 1.6vw, 26px); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-card); background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.card:hover .card__media::after { transform: scaleX(1); }
.card__badge { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 11px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .75rem; font-weight: 600; line-height: 1.5; }
.card__badge--sale { background: var(--accent); color: var(--on-accent); }
.card__body { display: grid; gap: 4px; }
.card__name { font-family: var(--font-b); font-size: 1rem; font-weight: 600; line-height: 1.55; }
.card__name a { text-decoration: none; display: inline-block; padding-block: 2px; }
.card__name a:hover { color: var(--accent); }
.card__short { font-size: .875rem; color: var(--muted); line-height: 1.65; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__price { margin: 2px 0 0; font-weight: 700; }
.price__was { color: var(--muted); font-weight: 400; font-size: .9em; margin-inline-start: 8px; }
.price__from { color: var(--muted); font-weight: 400; font-size: .85em; }
@media (max-width: 719px) { .card__short { display: none; } .card__name { font-size: .9375rem; } }

/* ---------- story band ---------- */
.story { background: var(--surface-2); }
.story__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 84px); align-items: center; padding-block: clamp(56px, 7vw, 108px); }
.story--portrait .story__in { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
.story__media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 10; }
.story--portrait .story__media { aspect-ratio: 4 / 5; max-width: 460px; }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__copy .h2 { margin-bottom: 1rem; }
.story__copy .btn { margin-top: .6rem; }
@media (max-width: 899px) { .story__in, .story--portrait .story__in { grid-template-columns: 1fr; } }

/* ---------- perks ---------- */
.perks { border-top: 1px solid var(--line); }
.perks__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0 auto; padding-block: clamp(36px, 5vw, 64px); }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perk__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); flex: none; }
.perks h3 { font-family: var(--font-b); font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.perks p { color: var(--muted); font-size: .9375rem; margin: 0; line-height: 1.65; }
@media (max-width: 719px) { .perks__in { grid-template-columns: 1fr; } }

/* ---------- Rawaq box (Rawaq's own colours) ---------- */
.rq { padding-block: clamp(40px, 6vw, 88px); }
.rq__box { background: #161A22; color: #F1EBE1; border-radius: 18px; padding: clamp(26px, 4vw, 48px); display: grid; gap: 12px; }
.rq__k { margin: 0; color: #D9A682; font-size: .8125rem; font-weight: 600; }
.rq .h3 { color: #F8F4EE; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
.rq p { margin: 0; color: rgba(241, 235, 225, .8); max-width: 42rem; }
.rq .row { margin-top: 8px; }
.rq .btn--primary { background: #8E4B24; color: #F8F4EE; }
.rq .btn--primary:hover { background: #723B1C; }
.rq .btn--ghost { color: #F1EBE1; border-color: rgba(241, 235, 225, .35); }
.rq .btn--ghost:hover { border-color: #F1EBE1; background: rgba(241, 235, 225, .06); }

/* ---------- shop toolbar + chips ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 500; font-size: .9rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"], .chip--radio:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip--radio { position: relative; }
.chip--radio input, .opt input, .mpick input, .pay input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.chip--radio:has(input:focus-visible), .opt:has(input:focus-visible), .mpick:has(input:focus-visible), .pay:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--muted); }
.sort select, .fld select { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--surface); color: var(--ink); }
.count { font-size: .875rem; color: var(--muted); margin: 6px 0 20px; }

/* ---------- product page ---------- */
.pdp { padding-block: clamp(20px, 3vw, 40px) 0; }
.pdp__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 76px); align-items: start; }
.pdp__media { position: sticky; top: calc(var(--head) + 20px); border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 5; }
.pdp__media img { width: 100%; height: 100%; object-fit: cover; animation: wipe 1.2s var(--ease-x) both; }
.pdp__info { display: flex; flex-direction: column; gap: 20px; padding-top: 6px; }
.pdp__info .lede { margin: 0; }
.pbadge { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: .8125rem; font-weight: 600; }
.pdp__price { margin: -8px 0 0; font-size: 1.5rem; font-weight: 700; }
.opts { border: 0; margin: 0; padding: 0; min-width: 0; }
.opts legend { padding: 0; font-size: .9375rem; color: var(--ink-2); }
.opts legend b { color: var(--ink); font-weight: 600; }
.opts__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.opt { position: relative; cursor: pointer; }
.opt__t { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 56px; min-height: 48px; padding: 4px 16px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--surface); font-weight: 600; font-size: .9375rem; line-height: 1.3; transition: border-color .2s, box-shadow .2s; }
.opt__t small { font-weight: 400; font-size: .75rem; color: var(--muted); }
.opt:hover .opt__t { border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.opt input:checked ~ .opt__t { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt--out { cursor: not-allowed; }
.opt--out .opt__t { color: var(--muted); border-style: dashed; text-decoration: line-through; text-decoration-thickness: 1px; }
.opt--color { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding-block: 6px; padding-inline: 7px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.opt--color .opt__t { min-width: 0; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none !important; font-weight: 500; }
.opt--color:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt__sw { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16); flex: none; }
.buy { display: flex; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--surface); }
.qty__b { display: grid; place-items: center; width: 46px; height: 50px; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.qty__b svg { width: 18px; height: 18px; }
.qty input { width: 40px; border: 0; background: transparent; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pdp__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9375rem; color: var(--ink-2); }
.pdp__perks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.pdp__perks svg { color: var(--accent); margin-top: 3px; }
.pdp__perks a { color: var(--ink); font-weight: 600; }
.acc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; list-style: none; font-weight: 700; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { transition: transform .3s var(--ease); }
.acc[open] summary svg { transform: rotate(180deg); }
.acc__b { padding-bottom: 18px; }
.spec { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.spec th, .spec td { text-align: start; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 42%; font-weight: 500; color: var(--muted); padding-inline-end: 16px; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dots li { position: relative; padding-inline-start: 20px; color: var(--ink-2); line-height: 1.7; }
.dots li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 899px) {
  .pdp__in { grid-template-columns: 1fr; }
  .pdp__media { position: relative; top: 0; }
}

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(8, 9, 11, .45); }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 90; width: min(430px, 92vw); display: flex; flex-direction: column; background: var(--bg); box-shadow: 0 0 60px rgba(0, 0, 0, .25); transform: translateX(-102%); transition: transform .5s var(--ease); }
.drawer.is-open { transform: none; }
.drawer__hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__hd h2 { font-family: var(--font-d); font-weight: var(--d-weight); font-size: 1.4rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 4px 20px; overscroll-behavior: contain; }
.drawer__ft { padding: 18px 20px max(18px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__ft:empty { display: none; }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line__img { display: block; width: 76px; aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-weight: 700; text-decoration: none; line-height: 1.5; display: inline-block; }
.line__name:hover { color: var(--accent); }
.line__opts { margin: 2px 0 8px; font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.line__qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-field); }
.line__qty button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; }
.line__qty button svg { width: 15px; height: 15px; }
.line__qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: .9rem; }
.line__end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.line__price { margin: 0; font-weight: 700; white-space: nowrap; }
.line__rm { border: 0; background: none; color: var(--muted); font-size: .8125rem; text-decoration: underline; cursor: pointer; padding: 6px 0; }
.line__rm:hover { color: var(--err); }
.empty { text-align: center; padding: 44px 8px; color: var(--muted); }
.empty svg { width: 42px; height: 42px; margin: 0 auto 12px; color: var(--accent); }
.empty p { margin-bottom: 18px; }
.meter { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: right; transition: transform .6s var(--ease); }
.shipnote { font-size: .875rem; color: var(--ink-2); margin: 0; }
.sum__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; margin: 0; }
.sum__row b { font-weight: 700; }
.sum__row--total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 1.15rem; }

/* ---------- cart page, checkout, thanks ---------- */
.cartpage, .co { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.sumcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(20px, 2.4vw, 28px); display: grid; gap: 10px; }
.sumcard .h3 { margin-bottom: 4px; }
.cartpage .sumcard, .co .sumcard { position: sticky; top: calc(var(--head) + 20px); }
.sum__lines { display: grid; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sum__line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: .9rem; }
.sum__line img { width: 52px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--r-card) / 2); }
.sum__line small { display: block; color: var(--muted); font-size: .8rem; }
@media (max-width: 899px) { .cartpage, .co { grid-template-columns: 1fr; } .cartpage .sumcard, .co .sumcard { position: static; } .co .sumcard { order: -1; } }
.co__set { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.co__set legend { padding: 0; margin-bottom: 16px; }
.fld { margin-bottom: 18px; }
.fld label, .fld__l { display: block; font-weight: 600; font-size: .9375rem; margin: 0 0 7px; }
.opt-l { font-weight: 400; color: var(--muted); font-size: .8125rem; margin-inline-start: 6px; }
.fld input, .fld textarea, .fld select { width: 100%; min-height: 52px; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--surface); color: var(--ink); }
.fld textarea { min-height: 84px; resize: vertical; line-height: 1.7; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--muted); opacity: .8; }
.fld input:focus-visible, .fld textarea:focus-visible, .fld select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.fld__err { color: var(--err); font-size: .875rem; font-weight: 600; margin: 7px 0 0; }
.fld.is-bad input, .fld.is-bad textarea { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.alert { margin: 0 0 22px; padding: 12px 16px; border-radius: var(--r-field); background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); font-weight: 600; }
.pay { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--surface); margin-bottom: 10px; cursor: pointer; }
.pay::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 3px; border-radius: 50%; border: 1.5px solid var(--muted); }
.pay:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay:has(input:checked)::before { border: 6px solid var(--accent); }
.pay span { display: grid; gap: 2px; }
.pay small { color: var(--muted); font-size: .8125rem; }
.pay--off { cursor: not-allowed; color: var(--muted); }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.thx { padding-bottom: clamp(16px, 2vw, 28px); }
.thx__in { max-width: 1040px; }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 18px 0 36px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; }
.steps span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); font-size: .85rem; font-weight: 700; }
.steps .is-done { color: var(--ink); }
.steps .is-done span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.thx__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.wamsg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(20px, 2.4vw, 28px); display: grid; gap: 12px; }
.wamsg .fine { margin: 0; }
.wamsg__pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .9rem; line-height: 1.75; background: #D9FDD3; color: #111B21; border-radius: 14px 14px 4px 14px; padding: 14px 16px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
@media (max-width: 899px) { .thx__grid { grid-template-columns: 1fr; } }

/* ---------- info pages ---------- */
.tblwrap { overflow-x: auto; margin-bottom: 36px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tbl th, .tbl td { text-align: start; padding: 13px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl thead th { font-weight: 600; color: var(--muted); font-size: .8125rem; }
.tbl tbody th { font-weight: 700; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.info__sec { padding: 26px 0; border-top: 1px solid var(--line); }
.info__sec .h3 { margin-bottom: 12px; }

/* ---------- showroom ---------- */
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.mgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 899px) { .mgrid, .mgrid--3 { grid-template-columns: 1fr; } }
.mcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: border-color .3s; }
.mcard:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.mcard__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; }
.mcard__body { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 20px 22px 22px; }
.mcard__type { margin: 0; color: var(--accent); font-size: .8125rem; font-weight: 700; }
.mcard__name { font-family: var(--font-d); font-weight: var(--d-weight); font-size: 1.6rem; line-height: 1.3; }
.mcard__name a { text-decoration: none; }
.mcard__short { margin: 4px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.mcard__end { display: grid; gap: 10px; align-content: end; }
.mcard__price { margin: 0; font-size: 1.25rem; font-weight: 800; }
.mcard__price span, .mhero__price span { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); }
.mhero { padding-block: clamp(20px, 3vw, 40px) clamp(28px, 4vw, 56px); }
.mhero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.mhero__copy .lede { margin-top: 1rem; }
.mhero__price { font-size: 1.9rem; font-weight: 800; margin: 18px 0 22px; }
.mhero__media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.mhero__media img { width: 100%; height: 100%; object-fit: cover; animation: wipe 1.3s var(--ease-x) both; }
@media (max-width: 899px) { .mhero__in { grid-template-columns: 1fr; } .mhero__media { order: -1; } }
.mspecs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.mspecs .h3 { margin-bottom: 10px; }
.spec--lg { font-size: 1rem; }
@media (max-width: 899px) { .mspecs { grid-template-columns: 1fr; } }
.calc { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(20px, 2.4vw, 28px); display: grid; gap: 16px; }
.calc__row { display: grid; gap: 10px; font-weight: 600; }
.calc__row input { width: 100%; accent-color: var(--accent); min-height: 32px; }
.calc__out { margin: 0; display: grid; gap: 2px; }
.calc__out span { font-size: 2rem; font-weight: 800; color: var(--accent); }
.calc__out small { color: var(--muted); font-size: .8125rem; }
.mpicks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mpick { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.mpick:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.mpick__media { aspect-ratio: 16 / 9; border-radius: calc(var(--r-card) / 1.5); overflow: hidden; }
.mpick__media img { width: 100%; height: 100%; object-fit: cover; }
.mpick__t { font-weight: 800; font-size: 1.1rem; line-height: 1.35; }
.mpick__t small { display: block; color: var(--muted); font-weight: 500; font-size: .8125rem; }
@media (max-width: 560px) { .mpicks { grid-template-columns: 1fr; } }
.contact { display: grid; gap: 16px; }
.contact .sumcard p { margin: 0; }
.contact .btn { justify-self: start; }

/* ---------- footer ---------- */
.ft { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(44px, 6vw, 72px) 28px; }
.ft__in { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; }
.ft__brand .wm { align-items: flex-start; margin-bottom: 14px; }
.ft__brand p { color: var(--ink-2); max-width: 26rem; }
.ft__col h2 { font-family: var(--font-b); font-size: .8125rem; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.ft__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ft__col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); text-decoration: none; }
.ft__col a:hover { color: var(--accent); }
.ft__col p { color: var(--ink-2); font-size: .9375rem; }
.ft__credit { color: var(--ink) !important; font-weight: 700; }
@media (max-width: 899px) { .ft__in { grid-template-columns: 1fr; } }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: min(420px, calc(100% - 32px)); display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5); transform: translate(-50%, 180%); transition: transform .5s var(--ease); }
.toast.is-on { transform: translate(-50%, 0); }
.toast svg { color: var(--accent); }

/* ---------- scroll reveal: a slide, never a fade ---------- */
.js [data-rv] { transform: translateY(26px); transition: transform .95s var(--ease); }
.js [data-rv].in { transform: none; }

/* ---------- brand character ---------- */
[data-brand="nawl"] .h1 { line-height: 1.32; }
[data-brand="nawl"] .hero .h1 { font-size: clamp(2.2rem, 1.2rem + 2.4vw, 3.1rem); }
[data-brand="nawl"] .wm__ar { font-weight: 500; }
[data-brand="aqarib"] .h1, [data-brand="aqarib"] .h2 { line-height: 1.45; }
[data-brand="aqarib"] .wm__ar { font-weight: 700; letter-spacing: 0; }
[data-brand="aqarib"] .btn--primary:hover { background: #E0C68F; }
[data-brand="aqarib"] .card__badge { background: #0D0E10; color: var(--accent); border: 1px solid #2A2C31; }
[data-brand="aqarib"] .hero__sub { color: var(--ink-2); }
[data-brand="abaq"] .wm__ar { font-size: 2.2rem; font-weight: 700; }
[data-brand="abaq"] .h1 { line-height: 1.4; }
[data-brand="mihwar"] .h1 { line-height: 1.22; }
[data-brand="mihwar"] .h2 { line-height: 1.3; }
[data-brand="mihwar"] .wm__ar { font-weight: 800; }
@media (max-width: 899px) {
  [data-brand="nawl"] .hero__media img { object-position: 30% 50%; }
  [data-brand="aqarib"] .hero__media img { object-position: 74% 50%; }
  [data-brand="abaq"] .hero__media img { object-position: 72% 50%; }
  [data-brand="mihwar"] .hero__media img { object-position: 70% 50%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-rv] { transform: none; }
}

/* thanks page: the order number and summary are filled in by store.js; their room is kept so nothing jumps */
.thx [data-thx-no]:empty { min-height: 3.4em; }
.thx [data-thx-summary]:empty { min-height: 300px; }
.thx [data-thx-msg]:empty { min-height: 260px; }
