/* Spazio Home — the shop. Jost, self-hosted; charcoal, ivory and brass from the logo. */
@font-face { font-family: 'Jost'; src: url(../fonts/jost-latin-200-normal.woff2) format('woff2'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'Jost'; src: url(../fonts/jost-latin-300-normal.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Jost'; src: url(../fonts/jost-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jost'; src: url(../fonts/jost-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
/* Tajawal, Arabic letters only (the Arabic version, js/i18n.js): Jost has none, so the browser takes them from here and
   the Latin (rug names, sizes, prices) stays in Jost. Self-hosted from Fontsource, OFL (fonts/LICENSE-tajawal.txt). */
@font-face { font-family: 'Tajawal'; src: url(../fonts/tajawal-arabic-400-normal.woff2) format('woff2'); font-weight: 200 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; src: url(../fonts/tajawal-arabic-500-normal.woff2) format('woff2'); font-weight: 500 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; src: url(../fonts/tajawal-arabic-700-normal.woff2) format('woff2'); font-weight: 700 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

html.i18n-wait body { visibility: hidden; }
html[lang="ar"] { --sans: 'Jost', 'Tajawal', 'Futura', system-ui, sans-serif; }
html[lang="ar"] body * { letter-spacing: 0 !important; }

:root {
  --char: #1c1f22;
  --char-2: #24282b;
  --char-3: #2e3236;
  --ivory: #f3eee6;
  --paper: #f8f5ef;
  --stone: #e8e2d8;
  --sand: #d8d0c3;
  --gold: #c8a455;
  --gold-ink: #785f26;
  --ink: #1c1f22;
  --muted: #69635a;
  --muted-inv: rgba(243, 238, 230, 0.62);
  --line: rgba(28, 31, 34, 0.13);
  --line-inv: rgba(243, 238, 230, 0.16);
  --ok: #4f7d4c;
  --bad: #a9503a;
  --wa: #1f7a4d;
  --sans: 'Jost', 'Futura', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --top-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--char); scroll-behavior: smooth; }
html.locked { overflow: hidden; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 300 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--char); }
:focus-visible { outline: 1.5px solid var(--gold-ink); outline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 200; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 5.4vw, 84px); }
h2 { font-size: clamp(36px, 4.6vw, 72px); }
h3 { font-size: 22px; font-weight: 400; letter-spacing: 0; }
em { font-style: normal; color: var(--gold-ink); }
.kicker { font: 500 11px/1.4 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; margin: 0 0 18px; color: var(--muted); }
.lede { max-width: 34em; color: var(--muted); font-size: 17px; margin: 18px 0 0; }
.mini-h { font: 500 11px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 14px; color: var(--ink); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--char); color: var(--ivory); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons, links, payment marks ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 28px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 500 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease); }
.btn:hover { background: var(--ink); color: var(--ivory); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-dark { background: var(--char); color: var(--ivory); border-color: var(--char); }
.btn-dark:hover { background: var(--char-3); }
.btn-light { background: var(--ivory); color: var(--char); border-color: var(--ivory); }
.btn-light:hover { background: var(--gold); border-color: var(--gold); color: var(--char); }
.btn-ghost-light { color: var(--ivory); border-color: rgba(243, 238, 230, 0.55); }
.btn-ghost-light:hover { background: var(--ivory); color: var(--char); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #18633e; border-color: #18633e; color: #fff; }
.btn-full { width: 100%; }
.btn-grow { flex: 1; }
.btn.busy { pointer-events: none; opacity: 0.7; }
.link { border: 0; background: none; padding: 0; font: 400 12px/1.4 var(--sans); letter-spacing: 0.08em; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }
.link-arrow { font: 500 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid currentColor; white-space: nowrap; }
.link-arrow::after { content: ' →'; }
.pay-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pm { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; font: 500 11px/1 var(--sans); letter-spacing: 0.08em; color: var(--muted); background: rgba(255, 255, 255, 0.4); }
.x { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font: 300 24px/1 var(--sans); display: grid; place-items: center; }
.x:hover { border-color: var(--ink); }
.x-light { color: var(--ivory); border-color: var(--line-inv); }

/* ---------- announce + header ---------- */
.announce { background: var(--char); color: var(--muted-inv); text-align: center; font: 400 11px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; padding: 9px var(--gutter); }
.announce span { color: var(--gold); margin: 0 6px; }
.top { position: sticky; top: 0; z-index: 50; height: var(--top-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter); background: rgba(243, 238, 230, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: background 0.4s, border-color 0.4s, color 0.4s; }
.top a, .top button { text-decoration: none; }
.top-nav { display: flex; gap: 28px; font: 400 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.top-nav a:hover, .top-wa:hover { color: var(--gold-ink); }
.top-logo { position: relative; display: block; width: 140px; }
.top-logo img { width: 140px; height: auto; transition: opacity 0.4s; }
.top-logo .on-dark { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; }
.top-act { display: flex; justify-content: flex-end; align-items: center; gap: 24px; font: 400 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.top-bag { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 0; letter-spacing: inherit; text-transform: inherit; font-size: inherit; }
.top-bag b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--char); color: var(--ivory); font: 500 11px/1 var(--sans); letter-spacing: 0; transition: transform 0.3s var(--ease), background 0.3s; }
/* The Arabic / English button (js/i18n.js), the last thing on the right. Arabic letters are never spaced apart or set in
   capitals, so the button and the Arabic page drop the letter-spacing. */
.top-lang { display: inline-flex; align-items: center; border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; padding: 6px 14px; font: 400 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: background 0.3s, color 0.3s; }
.top-lang:hover { background: var(--char); color: var(--ivory); border-color: var(--char); }
.top.over .top-lang:hover { background: var(--ivory); color: var(--char); border-color: var(--ivory); }
.top-lang:lang(ar) { font: 500 14px/1 'Tajawal', var(--sans); letter-spacing: 0; padding: 5px 14px 7px; }
.co-top .co-secure { margin-inline-start: auto; margin-inline-end: 20px; }
.top-bag b.bump { transform: scale(1.3); background: var(--gold); color: var(--char); }
body.home .hero { margin-top: calc(var(--top-h) * -1); }
.top.over { background: transparent; border-color: transparent; color: var(--ivory); backdrop-filter: none; -webkit-backdrop-filter: none; }
.top.over .top-logo > img { opacity: 0; }
.top.over .top-logo .on-dark { opacity: 1; }
.top.over .top-bag b { background: var(--ivory); color: var(--char); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; color: var(--ivory); overflow: hidden; background: var(--char); }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.6s var(--ease), transform 8s linear; }
.hero-slides img.on { opacity: 1; transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 22, 24, 0.48) 0%, rgba(20, 22, 24, 0) 24%, rgba(20, 22, 24, 0) 40%, rgba(20, 22, 24, 0.78) 100%), linear-gradient(90deg, rgba(20, 22, 24, 0.42) 0%, rgba(20, 22, 24, 0) 60%); }
.hero-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(70px, 12vh, 130px); max-width: 760px; }
.hero-copy .kicker { color: var(--muted-inv); }
.hero h1 { font-size: clamp(48px, 7.6vw, 124px); line-height: 0.96; }
.hero h1 em { color: var(--gold); }
.hero-lede { max-width: 30em; font-size: 17px; color: rgba(243, 238, 230, 0.82); margin: 22px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cap { position: absolute; right: var(--gutter); bottom: clamp(70px, 12vh, 130px); display: grid; gap: 4px; text-align: right; text-decoration: none; font-size: 13px; color: var(--muted-inv); }
.hero-cap b { font: 300 22px/1.1 var(--sans); color: var(--ivory); }
.hero-cap:hover b { color: var(--gold); }
.hero-dots { position: absolute; left: var(--gutter); bottom: 21px; display: flex; gap: 6px; }
.hero-dots button { border: 0; background: none; padding: 21px 0; width: 44px; }
.hero-dots i { display: block; height: 2px; background: rgba(243, 238, 230, 0.3); }
.hero-dots [aria-selected='true'] i { background: var(--ivory); }

/* ---------- sections ---------- */
main > section { padding: clamp(80px, 12vh, 150px) var(--gutter); }
.sec-head { margin-bottom: clamp(36px, 6vh, 64px); }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* collections rail */
.cols-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: clamp(14px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 12px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.cols-rail::-webkit-scrollbar { display: none; }
.col { scroll-snap-align: start; text-decoration: none; display: grid; gap: 4px; text-align: center; }
.col-arch { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 999px 999px 6px 6px; overflow: hidden; background: var(--stone); margin-bottom: 12px; }
.col-arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s, transform 1.2s var(--ease); }
.col-flat { opacity: 0; }
.col:hover .col-arch img { transform: scale(1.05); }
.col:hover .col-flat { opacity: 1; }
.col b { font: 300 22px/1.2 var(--sans); }
.col small { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* feature */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; background: var(--paper); }
.feature-img { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.feature-img:hover img { transform: scale(1.03); }
.feature-copy h2 { font-size: clamp(56px, 7vw, 110px); margin-bottom: 4px; }
.feature-copy .link-arrow { display: inline-block; margin-top: 30px; }
.feature-rail { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); }

/* product grid + cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 4vh, 48px) clamp(14px, 2vw, 28px); }
.card { position: relative; }
.card-img { position: relative; display: block; aspect-ratio: 600 / 860; overflow: hidden; background: var(--stone); border-radius: 3px; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s, transform 1.2s var(--ease); }
.card-alt { opacity: 0; transform: scale(1.06); }
.card-img:hover .card-alt { opacity: 1; transform: scale(1); }
.tag { position: absolute; left: 10px; top: 10px; background: var(--ivory); padding: 5px 10px; border-radius: 999px; font: 500 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.card-meta { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-top: 14px; }
.card-t { font: 400 16px/1.3 var(--sans); text-decoration: none; }
.card-t:hover { color: var(--gold-ink); }
.card-c { grid-row: 2; font-size: 13px; color: var(--muted); }
.card-p { grid-row: 1 / 3; grid-column: 2; font: 400 14px/1.3 var(--sans); text-align: right; white-space: nowrap; }

/* look closer */
.closer { position: relative; min-height: 110vh; padding: 0 !important; display: grid; align-items: end; color: var(--ivory); overflow: hidden; background: var(--char); }
.closer-img { position: absolute; inset: 0; overflow: hidden; }
.closer-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.32); transform-origin: 50% 60%; will-change: transform; }
.closer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 22, 24, 0.82) 0%, rgba(20, 22, 24, 0.1) 60%); }
.closer-copy { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(70px, 12vh, 140px); max-width: 860px; }
.closer-copy .kicker, .closer-copy .lede { color: var(--muted-inv); }
.closer-copy em { color: var(--gold); }
.closer-copy .btn { margin-top: 30px; }

/* how it works + phone */
.how { background: var(--paper); }
.how-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(36px, 6vw, 100px); align-items: center; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 44px 36px; }
.how-steps b { display: block; font: 500 11px/1 var(--sans); letter-spacing: 0.2em; color: var(--gold-ink); margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.how-steps h3 { margin-bottom: 8px; }
.how-steps p { margin: 0; color: var(--muted); font-size: 15px; }
.phone { width: min(360px, 100%); justify-self: center; border-radius: 38px; padding: 12px; background: var(--char); box-shadow: 0 40px 80px -30px rgba(28, 31, 34, 0.45); }
.phone-top { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px; color: var(--ivory); }
.phone-top b { display: block; font: 400 15px/1.2 var(--sans); }
.phone-top small { font-size: 11px; color: var(--muted-inv); }
.phone-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--char); font: 500 15px/1 var(--sans); }
.phone-chat { display: grid; gap: 8px; align-content: start; min-height: 380px; padding: 16px 12px 18px; border-radius: 28px; background: #ece5d8; }
.msg { position: relative; max-width: 86%; margin: 0; padding: 9px 12px 20px; border-radius: 4px 14px 14px 14px; background: #fff; font: 400 13.5px/1.45 var(--sans); color: var(--ink); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); }
.msg time { position: absolute; right: 10px; bottom: 5px; font-size: 11px; color: var(--muted); }
.msg.me { justify-self: end; background: #d9f2cf; border-radius: 14px 4px 14px 14px; padding-right: 46px; padding-bottom: 9px; }
.msg.soon { opacity: 0.5; background: rgba(255, 255, 255, 0.7); }
.msg.rv { opacity: 0; transform: translateY(12px) scale(0.98); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.msg.rv.in { opacity: 1; transform: none; }
.msg.rv:nth-child(2) { transition-delay: 0.35s; } .msg.rv:nth-child(3) { transition-delay: 0.7s; } .msg.rv:nth-child(4) { transition-delay: 1.05s; } .msg.rv:nth-child(5) { transition-delay: 1.4s; }

/* visit */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; background: var(--char); color: var(--ivory); }
.visit .kicker, .visit .lede { color: var(--muted-inv); }
.visit-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.hours { margin: 28px 0 34px; max-width: 360px; }
.hours div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-inv); font-size: 15px; }
.hours dt { color: var(--muted-inv); }
.hours dd { margin: 0; }

/* footer */
.foot { background: var(--char); color: var(--ivory); padding: clamp(60px, 9vh, 100px) var(--gutter) 28px; border-top: 1px solid var(--line-inv); }
.foot-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.foot-brand img { width: 150px; }
.foot-brand p { color: var(--muted-inv); max-width: 22em; font-size: 14px; }
.foot h4 { font: 500 11px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.foot a { display: block; text-decoration: none; padding: 4px 0; font-size: 14px; color: var(--muted-inv); }
.foot a:hover { color: var(--ivory); }
.foot p { margin: 0 0 4px; font-size: 14px; color: var(--muted-inv); }
.foot-h { display: flex; justify-content: space-between; gap: 12px; max-width: 260px; }
.foot-base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-inv); font-size: 12px; color: var(--muted-inv); }
.foot .pm { color: var(--muted-inv); border-color: var(--line-inv); background: transparent; }

/* ---------- bag drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-veil { position: absolute; inset: 0; background: rgba(20, 22, 24, 0.42); opacity: 0; transition: opacity 0.4s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--ivory); display: grid; grid-template-rows: auto 1fr auto; transform: translateX(100%); transition: transform 0.42s var(--ease); box-shadow: -20px 0 60px rgba(20, 22, 24, 0.18); }
.drawer.open .drawer-veil { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 28px; font-weight: 300; }
.drawer-body { overflow-y: auto; padding: 6px 22px; overscroll-behavior: contain; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--paper); }
.drawer-foot:empty { display: none; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; aspect-ratio: 600 / 860; object-fit: cover; border-radius: 2px; background: var(--stone); }
.line > div { display: grid; align-content: start; gap: 4px; }
.line-t { font: 400 15px/1.3 var(--sans); text-decoration: none; }
.line-s { font-size: 13px; color: var(--muted); }
.line-r { justify-items: end; text-align: right; font-size: 15px; }
.line .qty { margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; width: max-content; }
.qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 16px; border-radius: 50%; }
.qty button:disabled { opacity: 0.3; cursor: default; }
.qty b { min-width: 22px; text-align: center; font-weight: 400; font-size: 14px; }
.qty-l button { width: 46px; height: 48px; }
.qty-l b { min-width: 28px; }
.sum { display: flex; justify-content: space-between; margin: 0; font-size: 17px; }
.sum b { font-weight: 400; }
.note { margin: 0; font-size: 13px; color: var(--muted); }
.empty { display: grid; justify-items: center; gap: 14px; padding: 60px 0; color: var(--muted); text-align: center; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--char); color: var(--ivory); padding: 13px 20px; border-radius: 999px; font-size: 14px; transition: opacity 0.3s, transform 0.4s var(--ease); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- shop listing ---------- */
.shop main, .pdp main { padding-top: 0; }
.shop-head { padding: clamp(40px, 7vh, 80px) var(--gutter) 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter) 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 9px 18px; font: 400 13px/1 var(--sans); letter-spacing: 0.04em; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--char); color: var(--ivory); border-color: var(--char); }
.tools { position: sticky; top: var(--top-h); z-index: 20; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 22px; padding: 12px var(--gutter); background: rgba(243, 238, 230, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.tools-l, .tools-r { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.sel { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.sel select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231c1f22'/%3E%3C/svg%3E") no-repeat right center; padding: 6px 18px 6px 0; font: 400 14px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--char); width: 16px; height: 16px; }
.count { font-size: 13px; color: var(--muted); }
.grid-shop { padding: 36px var(--gutter) clamp(80px, 12vh, 140px); }
.none { display: grid; justify-items: center; gap: 16px; padding: 60px var(--gutter) 120px; color: var(--muted); }

/* ---------- product page ---------- */
.pdp .crumbs { padding: 26px var(--gutter) 0; margin: 0; }
.pdp-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); gap: clamp(28px, 4.5vw, 80px); padding: 22px var(--gutter) clamp(60px, 10vh, 120px); align-items: start; }
.gal { position: sticky; top: calc(var(--top-h) + 20px); display: grid; grid-template-columns: 74px 1fr; gap: 14px; }
.gal-main { grid-column: 2; grid-row: 1; position: relative; border: 0; padding: 0; background: var(--stone); border-radius: 4px; overflow: hidden; cursor: zoom-in; aspect-ratio: 600 / 860; max-height: calc(100vh - var(--top-h) - 60px); width: 100%; }
.gal-main img { width: 100%; height: 100%; object-fit: contain; background: var(--stone); transition: opacity 0.3s; }
.gal-main.flat img { object-fit: cover; }
.gal-hint { position: absolute; right: 12px; bottom: 12px; background: rgba(243, 238, 230, 0.9); padding: 6px 12px; border-radius: 999px; font: 500 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.gal-thumbs { grid-column: 1; grid-row: 1; display: grid; gap: 10px; align-content: start; max-height: calc(100vh - var(--top-h) - 60px); overflow-y: auto; scrollbar-width: none; }
.gal-thumbs button { border: 1px solid transparent; padding: 0; border-radius: 3px; overflow: hidden; background: var(--stone); aspect-ratio: 3 / 4; opacity: 0.62; transition: opacity 0.2s, border-color 0.2s; }
.gal-thumbs button:hover { opacity: 1; }
.gal-thumbs [aria-selected='true'] { opacity: 1; border-color: var(--ink); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.buy { display: grid; gap: 0; }
.buy-col { font: 500 11px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink); text-decoration: none; margin-bottom: 12px; }
.buy h1 { font-size: clamp(38px, 4vw, 60px); }
.buy-colour { margin: 10px 0 0; color: var(--muted); }
.buy-price { display: flex; align-items: baseline; gap: 16px; margin: 22px 0 26px; }
.buy-price b { font: 300 30px/1 var(--sans); }
.buy-price span { font-size: 13px; color: var(--gold-ink); }
.sizes { border: 0; padding: 0; margin: 0 0 22px; }
.sizes legend { font: 500 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 12px; }
.sizes > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.size { display: grid; gap: 4px; text-align: left; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; background: transparent; transition: border-color 0.2s, background 0.2s; }
.size b { font: 400 15px/1.2 var(--sans); }
.size span { font-size: 13px; color: var(--muted); }
.size:hover:not(:disabled) { border-color: var(--ink); }
.size[aria-pressed='true'] { border-color: var(--char); background: var(--char); color: var(--ivory); }
.size[aria-pressed='true'] span { color: var(--muted-inv); }
.size:disabled { opacity: 0.45; cursor: not-allowed; text-decoration: line-through; }
.buy-row { display: flex; gap: 10px; margin-bottom: 10px; }
.pay-row-l { margin: 16px 0 0; }
.promise { list-style: none; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; }
.promise li { position: relative; padding-left: 24px; }
.promise li::before { content: ''; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 6px; border-left: 1.5px solid var(--gold-ink); border-bottom: 1.5px solid var(--gold-ink); transform: rotate(-45deg); }
.wa-ask { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 30px; font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 4px; width: max-content; }
.wa-ask:hover { border-color: var(--wa); color: var(--wa); }
.wa-dot { width: 8px; height: 8px; border-radius: 50%; background: #3cb371; box-shadow: 0 0 0 4px rgba(60, 179, 113, 0.18); }

/* fit planner (from the concept site) */
.fit { margin: 0 0 26px; padding: 22px 0 0; border-top: 1px solid var(--line); }
.fit-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fit-head .mini-h { margin: 0; }
.fit-presets { display: flex; gap: 6px; }
.fit-presets .chip { padding: 6px 13px; font-size: 12px; }
.fit-plan { background: var(--stone); border-radius: 4px; padding: 6px; }
.fit-svg { display: block; width: 100%; height: auto; max-height: 340px; touch-action: none; user-select: none; -webkit-user-select: none; }
.fit-floor { fill: #efe9df; }
.fit-walls { fill: none; stroke: var(--ink); stroke-width: 7; }
.fit-piece { fill: rgba(243, 238, 230, 0.78); stroke: rgba(28, 31, 34, 0.55); stroke-width: 2; }
.fit-label { font: 400 15px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; fill: rgba(28, 31, 34, 0.55); pointer-events: none; }
.fit-dim { font: 400 17px var(--sans); fill: var(--muted); letter-spacing: 0.04em; }
.fit-dim-rug { fill: var(--gold-ink); font-weight: 500; pointer-events: none; }
.fit-rug { cursor: grab; outline: none; }
.fit-rug.drag { cursor: grabbing; }
.fit-rug image { mix-blend-mode: multiply; }
.fit-rug-base { fill: var(--sand); }
.fit-rug-edge { fill: none; stroke: var(--gold); stroke-width: 3; transition: stroke-width 0.2s; }
.fit-rug:focus-visible .fit-rug-edge, .fit-rug.drag .fit-rug-edge { stroke-width: 6; }
.fit-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin-top: 14px; }
.fit-dims label { display: grid; grid-template-columns: 1fr auto; gap: 4px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.fit-dims output { font: 400 13px var(--sans); letter-spacing: 0.02em; color: var(--ink); text-transform: none; font-variant-numeric: tabular-nums; }
.fit-dims input { grid-column: 1 / -1; width: 100%; accent-color: var(--ink); margin: 2px 0 0; }
.fit-verdict { margin: 16px 0 0; font-size: 15px; line-height: 1.5; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding-left: 16px; position: relative; }
.fit-verdict::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.fit-verdict[data-tone='warn']::before { background: var(--gold); }
.fit-verdict[data-tone='bad']::before { background: var(--bad); }
.fit-try { border: 0; background: none; padding: 0; font: 400 13px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; color: var(--gold-ink); }
.fit-hint { margin: 8px 0 0 16px; font-size: 12px; color: var(--muted); transition: opacity 0.4s; }
.fit-hint.done { opacity: 0; }

.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; font: 500 11px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font: 300 22px/1 var(--sans); transition: transform 0.3s var(--ease); }
.acc[open] summary::after { transform: rotate(45deg); }
.acc p { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.acc p b { color: var(--ink); font-weight: 400; }
.specs { margin: 0 0 18px; }
.specs div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.related { border-top: 1px solid var(--line); }
.buybar { display: none; }

/* full-screen photos */
.viewer { position: fixed; inset: 0; z-index: 110; background: rgba(18, 20, 22, 0.97); display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; color: var(--ivory); }
.viewer .x { position: absolute; top: 16px; right: 16px; z-index: 2; }
.v-stage { height: 100vh; overflow: hidden; display: grid; place-items: center; touch-action: none; cursor: zoom-in; }
.v-stage img { max-width: 100%; max-height: 92vh; object-fit: contain; transition: transform 0.35s var(--ease); user-select: none; -webkit-user-drag: none; }
.v-stage.zoom { cursor: grab; }
.v-stage.zoom img { transition: none; }
.v-nav { border: 0; background: none; color: var(--ivory); font: 200 48px/1 var(--sans); height: 100%; opacity: 0.6; }
.v-nav:hover { opacity: 1; }
.v-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 12px; letter-spacing: 0.2em; color: var(--muted-inv); }

/* ---------- checkout ---------- */
.co-page { background: var(--paper); }
.co-top { display: flex; justify-content: space-between; align-items: center; height: var(--top-h); padding: 0 var(--gutter); background: var(--ivory); border-bottom: 1px solid var(--line); }
.co-top .top-logo img { width: 130px; }
.co-secure { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.co-secure::before { content: ''; width: 10px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; box-shadow: 0 -5px 0 -2.5px var(--paper), 0 -6px 0 -1.5px currentColor; margin-top: 4px; }
.co { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: clamp(28px, 5vw, 80px); max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vh, 56px) var(--gutter) 100px; align-items: start; }
.co-h { font-size: clamp(38px, 4vw, 56px); }
.co-back { margin: 10px 0 30px; font-size: 13px; }
.co-back a { color: var(--muted); text-decoration: none; }
.co-back a:hover { color: var(--ink); }
.co-sec { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 30px); margin-bottom: 16px; display: grid; gap: 14px; }
.co-sec h2 { display: flex; align-items: center; gap: 12px; font: 400 19px/1.2 var(--sans); letter-spacing: 0; margin-bottom: 4px; }
.co-sec h2 b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--char); color: var(--ivory); font: 500 12px/1 var(--sans); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: grid; gap: 6px; }
.fld > span:first-child { font: 500 11px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fld small { font-size: 11px; text-transform: none; letter-spacing: 0.02em; font-weight: 300; }
.fld input, .fld select { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 0 14px; font: 400 16px/1 var(--sans); transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.fld select { appearance: none; -webkit-appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231c1f22'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 36px; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(200, 164, 85, 0.22); }
.fld.bad input, .fld.bad select, .fld input.bad { border-color: var(--bad); background: #fdf6f4; }
.tel { display: flex; }
.tel i { display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; background: var(--stone); font: 400 15px/1 var(--sans); font-style: normal; color: var(--muted); }
.tel input { border-radius: 0 8px 8px 0; }
.opt { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14px; cursor: pointer; }
.opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--char); }
.opt span { display: grid; gap: 3px; }
.opt b { font-weight: 400; }
.opt small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.opt-wa { padding: 14px; border: 1px solid rgba(31, 122, 77, 0.25); border-radius: 8px; background: rgba(31, 122, 77, 0.05); }
.opt-wa input { accent-color: var(--wa); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label, .pay { position: relative; cursor: pointer; }
.seg input, .pay input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; gap: 3px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; transition: border-color 0.2s, box-shadow 0.2s; }
.seg b, .pay b { font-weight: 400; font-size: 15px; }
.seg small, .pay small { font-size: 12.5px; color: var(--muted); }
.seg input:checked + span, .pay:has(input:checked) { border-color: var(--char); box-shadow: inset 0 0 0 1px var(--char); }
.seg input:focus-visible + span, .pay:has(input:focus-visible) { outline: 1.5px solid var(--gold-ink); outline-offset: 2px; }
.slots { border: 0; margin: 0; padding: 0; min-width: 0; }
.slots legend { font: 500 11px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 8px; }
.slots > div { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.slot-day { display: grid; gap: 6px; align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.slot-day > b { font: 500 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.slot-day > span { font-size: 18px; font-weight: 300; margin-bottom: 4px; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: block; text-align: center; padding: 8px 4px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12.5px; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.slot input:checked + span { background: var(--char); color: var(--ivory); border-color: var(--char); }
.slot input:focus-visible + span { outline: 1.5px solid var(--gold-ink); outline-offset: 2px; }
.pays { display: grid; gap: 8px; }
.pay { display: grid; grid-template-columns: 20px 1fr; gap: 4px 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; transition: border-color 0.2s, box-shadow 0.2s; }
.pay::before { content: ''; grid-row: 1; width: 18px; height: 18px; border: 1.5px solid var(--sand); border-radius: 50%; transition: border 0.2s; }
.pay:has(input:checked)::before { border: 5.5px solid var(--char); }
.pay > span { display: grid; gap: 2px; }
.pay-marks { grid-column: 2; display: flex; flex-wrap: wrap; gap: 5px; font-style: normal; margin-top: 6px; }
.co-err { min-height: 1.4em; margin: 6px 0 10px; color: var(--bad); font-size: 14px; }
.btn-pay { min-height: 58px; font-size: 13px; }
.co-fine { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.co-sum { position: sticky; top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.co-sum-toggle { display: none; }
.co-sum-in { padding: 22px; }
.sl { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; font-size: 14px; }
.sl-img { position: relative; }
.sl-img img { width: 58px; aspect-ratio: 600 / 860; object-fit: cover; border-radius: 3px; background: var(--stone); }
.sl-img i { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--char); color: var(--ivory); font: 500 11px/1 var(--sans); font-style: normal; }
.sl > span:nth-child(2) { display: grid; gap: 2px; }
.sl b { font-weight: 400; }
.sl small { color: var(--muted); font-size: 12.5px; }
.co-totals { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.co-totals div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.co-totals dt { color: var(--muted); }
.co-totals dd { margin: 0; }
.co-totals .grand { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 18px; }
.co-totals .grand dt { color: var(--ink); }
.co-totals .grand dd { font-weight: 400; }
.co-eta { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--paper); font-size: 13.5px; }
.co-trust { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.co-trust li { position: relative; padding-left: 22px; }
.co-trust li::before { content: ''; position: absolute; left: 2px; top: 0.45em; width: 9px; height: 5px; border-left: 1.5px solid var(--gold-ink); border-bottom: 1.5px solid var(--gold-ink); transform: rotate(-45deg); }
.empty-co { display: grid; justify-items: center; gap: 16px; padding: 120px var(--gutter); color: var(--muted); }

/* payment sheet */
.sheet { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.sheet-veil { position: absolute; inset: 0; background: rgba(20, 22, 24, 0.5); opacity: 0; transition: opacity 0.3s; }
.sheet-panel { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--ivory); border-radius: 16px; padding: 22px 24px 18px; transform: translateY(24px) scale(0.98); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.3s; }
.sheet.open .sheet-veil { opacity: 1; }
.sheet.open .sheet-panel { transform: none; opacity: 1; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet-head h2 { font: 300 26px/1.1 var(--sans); }
.sheet-demo { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: rgba(200, 164, 85, 0.16); font-size: 13px; }
.sheet-foot { margin: 16px 0 0; text-align: center; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wallets { display: grid; gap: 10px; }
.wallet { height: 52px; border-radius: 10px; transition: opacity 0.2s, transform 0.2s; }
.wallet:active { transform: scale(0.99); }
/* Safari draws the real Apple Pay button from these properties; it is never rendered elsewhere */
.wallet-apple { -webkit-appearance: -apple-pay-button; -apple-pay-button-type: buy; -apple-pay-button-style: black; border: 0; }
.wallet-google { background: #fff; color: var(--ink); border: 1px solid var(--line); font: 400 16px/1 var(--sans); letter-spacing: 0.02em; }
.wallet-google:hover { border-color: var(--ink); }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.demo-card { display: grid; gap: 12px; }
.demo-card .fld input { background: #fff; }
.demo-card .btn { margin-top: 6px; min-height: 54px; }
.paying { display: grid; justify-items: center; gap: 16px; padding: 50px 0; color: var(--muted); }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold-ink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* HyperPay's own widget, tuned towards the brand */
.sheet .wpwl-form { max-width: none; margin: 0; }
.sheet .wpwl-button-pay { width: 100%; background: var(--char); border-color: var(--char); border-radius: 999px; height: 52px; font-family: var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.sheet .wpwl-control { border-radius: 8px; height: 46px; }

/* ---------- order page ---------- */
.order-page { background: var(--paper); }
.ord { max-width: 1120px; margin: 0 auto; padding: clamp(40px, 7vh, 80px) var(--gutter) 100px; }
.ord-checking, .ord-fail { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 80px 0; }
.ord-checking p { color: var(--muted); }
.ord-fail .lede { margin: 0 0 8px; }
.ord-hero { text-align: center; display: grid; justify-items: center; }
.tick svg { width: 64px; height: 64px; fill: none; stroke: var(--ok); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.tick circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw 0.9s var(--ease) forwards; }
.tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.5s 0.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ord-hero .kicker { margin-bottom: 12px; }
.ord-hero .lede { margin-inline: auto; }
.track { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 56px 0; padding: 0; counter-reset: s; }
.track li { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; font-size: 13px; color: var(--muted); padding: 0 6px; }
.track li::before { content: ''; position: absolute; top: 7px; left: -50%; right: 50%; height: 1.5px; background: var(--line); }
.track li:first-child::before { display: none; }
.track li.done::before, .track li.now::before { background: var(--char); }
.track i { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--sand); background: var(--paper); }
.track li.done i { background: var(--char); border-color: var(--char); }
.track li.now i { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(200, 164, 85, 0.22); animation: pulse 2s ease-in-out infinite; }
.track li.done span, .track li.now span { color: var(--ink); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(200, 164, 85, 0.06); } }
.ord-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.ord-wa, .ord-det { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 3vw, 30px); }
.ord-wa > p { margin: 0 0 18px; font-size: 14.5px; color: var(--muted); }
.ord-wa > p b { color: var(--ink); font-weight: 400; }
.phone-sm { width: 100%; max-width: 380px; margin: 0 auto 18px; border-radius: 28px; padding: 9px; box-shadow: none; }
.phone-sm .phone-chat { min-height: 0; border-radius: 20px; }
.ord-facts { margin: 18px 0 0; }
.ord-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ord-facts dt { color: var(--muted); }
.ord-facts dd { margin: 0; }
.ord-demo { margin: 16px 0 0; padding: 10px 12px; border-radius: 8px; background: rgba(200, 164, 85, 0.16); font-size: 13px; }
.ord-act { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- policies ---------- */
.pol { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vh, 80px) var(--gutter) 100px; }
.pol nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 50px; }
.pol section { padding: 0 0 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--top-h) + 20px); }
.pol h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 18px; }
.pol h3 { font-size: 17px; margin: 22px 0 8px; }
.pol p, .pol li { font-size: 15.5px; color: #4b4741; }
.pol ul { padding-left: 20px; }
.pol .ar { direction: rtl; text-align: right; font-family: 'Geeza Pro', 'Noto Naskh Arabic', var(--sans); }

/* ---------- phones and tablets ---------- */
@media (max-width: 1080px) {
  .grid, .feature-rail { grid-template-columns: repeat(3, 1fr); }
  .feature-rail > :nth-child(4) { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --top-h: 60px; }
  .hide-s { display: none !important; }
  .top-logo, .top-logo img { width: 116px; }
  .top-nav { gap: 18px; }
  .grid, .feature-rail { grid-template-columns: repeat(2, 1fr); gap: 30px 12px; }
  .feature-rail > :nth-child(4) { display: block; }
  .feature, .visit, .how-in { grid-template-columns: 1fr; }
  .feature-img { aspect-ratio: 4 / 3; }
  .visit-img { aspect-ratio: 4 / 3; order: -1; }
  .hero-cap { display: none; }
  .hero-copy { bottom: 80px; }
  .cols-rail { grid-auto-columns: 46%; }

  .pdp-in { grid-template-columns: 1fr; padding-top: 12px; }
  .gal { position: static; grid-template-columns: 1fr; margin: 0 calc(var(--gutter) * -1); }
  .gal-main { grid-column: 1; border-radius: 0; max-height: none; }
  .gal-thumbs { grid-column: 1; grid-row: 2; grid-auto-flow: column; grid-auto-columns: 62px; overflow-x: auto; max-height: none; padding: 0 var(--gutter); }
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(243, 238, 230, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.35s var(--ease); }
  .buybar.show { transform: none; }
  .buybar > div { display: grid; min-width: 0; }
  .buybar b { font-weight: 400; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar span { font-size: 13px; color: var(--muted); }
  .buybar .btn { min-height: 44px; padding: 0 20px; }
  .viewer { grid-template-columns: 1fr; }
  .v-nav { display: none; }

  .co { grid-template-columns: 1fr; padding-top: 0; }
  .co-sum { position: sticky; top: 0; z-index: 10; order: -1; margin: 0 calc(var(--gutter) * -1); border-radius: 0; border-inline: 0; border-top: 0; }
  .co-sum-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 15px var(--gutter); border: 0; background: #fff; font-size: 14px; }
  .co-sum-toggle span::after { content: ' ▾'; color: var(--muted); }
  .co-sum-toggle[aria-expanded='true'] span::after { content: ' ▴'; }
  .co-sum-toggle b { font-weight: 400; font-size: 16px; }
  .co-sum-in { display: none; padding: 0 var(--gutter) 18px; max-height: 60vh; overflow-y: auto; }
  .co-sum-in.open { display: block; }
  .co-h { margin-top: 26px; }
  .sheet { place-items: end center; padding: 0; }
  .sheet-panel { width: 100%; border-radius: 18px 18px 0 0; max-height: 92vh; padding-bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); }

  .ord-grid { grid-template-columns: 1fr; }
  .ord-det { order: -1; }
  .track { grid-template-columns: 1fr; gap: 0; margin: 40px auto; max-width: 340px; }
  .track li { grid-template-columns: 16px 1fr; justify-items: start; text-align: left; gap: 14px; padding: 0 0 22px; }
  .track li::before { left: 7px; right: auto; top: -22px; height: 22px; width: 1.5px; }
}
@media (max-width: 560px) {
  .announce { font-size: 11px; letter-spacing: 0.06em; }
  .top { grid-template-columns: auto 1fr auto; gap: 12px; }
  .top-logo { justify-self: center; }
  .how-steps { grid-template-columns: 1fr; gap: 30px; }
  .foot-in { grid-template-columns: 1fr; }
  .f2, .seg { grid-template-columns: 1fr; }
  .tools { gap: 8px 16px; }
  .tools-l { gap: 8px 16px; }
  .fit-dims { grid-template-columns: 1fr; }
  .specs div, .ord-facts div { grid-template-columns: 110px 1fr; }
  .card-meta { grid-template-columns: 1fr; }
  .card-p { grid-row: auto; grid-column: 1; text-align: left; }
  .hero h1 { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Apple HIG: every control is at least 44 x 44 pt where people tap with a finger */
@media (pointer: coarse) {
  .top-nav a, .top-wa, .top-logo, .top-bag, .top-lang { display: inline-flex; align-items: center; min-height: 44px; }
  .chip, .sel select { min-height: 44px; }
  .qty button { width: 44px; height: 44px; }
  .crumbs a, .card-t, .promise a, .opt a, .co-back a, .acc a, .buy-col { display: inline-block; padding: 14px 4px; margin: -14px -4px; }
  .link-arrow { padding-top: 16px; padding-bottom: 16px; }
  .crumbs a { padding-inline: 6px; margin-inline: -6px; }
  .buy-col { padding-block: 15px; margin-block: -15px; }
  .check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
  .wa-ask { min-height: 44px; margin-block: 12px 20px; padding-bottom: 0; border-bottom: 0; text-decoration: underline 1px var(--line); text-underline-offset: 6px; }
  .foot a { padding: 11px 0; }
  .opt { min-height: 44px; align-items: center; }
  .fit-dims input { height: 44px; margin: -10px 0; }
}

/* The Arabic version reads right to left: mirror what is pinned to a side. */
[dir="rtl"] .skip { left: auto; right: 12px; }
[dir="rtl"] .hero-cap { right: auto; left: var(--gutter); text-align: left; }
[dir="rtl"] .hero-dots { left: auto; right: var(--gutter); }
[dir="rtl"] .tag { left: auto; right: 10px; }
[dir="rtl"] .card-p { text-align: left; }
[dir="rtl"] .msg time { right: auto; left: 10px; }
[dir="rtl"] .msg.me { border-radius: 4px 14px 14px 14px; padding-right: 12px; padding-left: 46px; }
[dir="rtl"] .drawer-panel { right: auto; left: 0; transform: translateX(-100%); box-shadow: 20px 0 60px rgba(20, 22, 24, 0.18); }
[dir="rtl"] .drawer.open .drawer-panel { transform: none; }
[dir="rtl"] .line-r { text-align: left; }
[dir="rtl"] .sel select { background-position: left center; padding: 6px 0 6px 18px; }
[dir="rtl"] .fld select { background-position: left 16px center; padding-right: 16px; padding-left: 36px; }
[dir="rtl"] .gal-hint { right: auto; left: 12px; }
[dir="rtl"] .size { text-align: right; }
[dir="rtl"] .promise li, [dir="rtl"] .co-trust li { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .promise li::before, [dir="rtl"] .co-trust li::before { left: auto; right: 2px; }
[dir="rtl"] .fit-verdict { padding-left: 0; padding-right: 16px; }
[dir="rtl"] .fit-verdict::before { left: auto; right: 0; }
[dir="rtl"] .viewer .x { right: auto; left: 16px; }
[dir="rtl"] .tel, [dir="rtl"] .demo-card input[inputmode="numeric"] { direction: ltr; }
[dir="rtl"] .demo-card input[inputmode="numeric"] { text-align: right; }
[dir="rtl"] .link-arrow::after { content: ' ←'; }
[dir="rtl"] .sl-img i { right: auto; left: -7px; }
[dir="rtl"] .track li::before { left: 50%; right: -50%; }
[dir="rtl"] .pol ul { padding-left: 0; padding-right: 20px; }
@media (max-width: 900px) {
  [dir="rtl"] .track li { text-align: right; }
  [dir="rtl"] .track li::before { left: auto; right: 7px; }
}
@media (max-width: 560px) {
  [dir="rtl"] .card-p { text-align: right; }
}
