/* خزانة ستور — a store layout: announcement bar, dark header, sections strip, banners, product grid */
:root {
  /* the brand: Khazana's logo — the dark square, the gold door, the blue door */
  --brand: #18171f;
  --brand-2: #24232e;
  --gold: #e0a617;
  --gold-ink: #18171f;
  --blue: #4ba3e7;
  --blue-deep: #1f6fb2;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --sunk: #f0efec;
  --ink: #18171f;
  --muted: #64626b;
  --line: #e6e4df;
  --accent: #18171f;
  --accent-ink: #ffffff;
  --accent-soft: #fcf0d2;
  --wa: #1f9d55;
  --bad: #b3261e;
  --ok: #1f7a4a;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(24 23 31 / .06), 0 10px 28px rgb(24 23 31 / .08);
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--font); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(26px, 4.6vw, 40px); }
h2 { font-size: clamp(20px, 3vw, 26px); }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.ic { flex: none; display: inline-block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
section { padding: 28px 0; }

/* ---------- the shared chrome ---------- */
#site-head { min-height: 190px; }
.promo { background: var(--gold); color: var(--gold-ink); font-size: 14px; font-weight: 600; overflow: hidden; white-space: nowrap; height: 36px; display: flex; align-items: center; }
.promo-track { display: inline-flex; gap: 48px; padding-inline-start: 48px; animation: promo 40s linear infinite; }
.promo-track span { display: inline-flex; align-items: center; gap: 8px; }
@keyframes promo { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .promo-track { animation: none; } }

.top { position: sticky; top: 0; z-index: 20; background: var(--brand); color: #fff; }
.top .wrap { display: flex; align-items: center; height: 64px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand b { color: var(--gold); font-weight: 700; }
.brand-mark { width: 38px; height: 38px; }
.top .brand-mark { outline: 1px solid rgb(255 255 255 / .14); border-radius: 10px; }
.top-links { display: flex; gap: 22px; margin-inline-start: 12px; flex: 1; }
.top-links a { text-decoration: none; color: rgb(255 255 255 / .78); font-weight: 500; font-size: 15px; }
.top-links a:hover { color: #fff; }
@media (max-width: 720px) { .top-links { display: none; } .top .btn { margin-inline-start: auto; } }

.cats { background: var(--surface); border-bottom: 1px solid var(--line); }
.cats .wrap { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.cat { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; border: 1px solid transparent; }
.cat:hover { background: var(--sunk); }
.cat.on { background: var(--accent-soft); border-color: #f1d995; }
.cat-art { width: 40px; height: 40px; display: grid; place-items: center; }
.cat-art svg { width: 100%; height: 100%; }
.cat.soon { color: var(--muted); cursor: default; }
.cat.soon small { background: var(--blue); color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 999px; font-weight: 600; }
.cat-soon-art { background: var(--sunk); border-radius: 10px; color: var(--muted); }

.foot { background: var(--brand); color: rgb(255 255 255 / .75); margin-top: 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.foot .brand { color: #fff; margin-bottom: 12px; }
.foot h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.foot-grid a, .foot-grid span { display: block; text-decoration: none; margin-bottom: 8px; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgb(255 255 255 / .1); padding-top: 16px; padding-bottom: 24px; font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

.fab-wa { position: fixed; bottom: 18px; left: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / .22); }
.fab-wa:hover { transform: scale(1.05); }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .08s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #2d2b37; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #efb42a; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--sunk); }
.btn-light { background: #fff; color: var(--brand); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #188547; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 4px 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.chip .ic { color: var(--blue-deep); }

/* ---------- home: banner slider ---------- */
.slider { position: relative; margin-top: 20px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 20px; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; min-height: 340px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; padding: 32px 40px; color: #fff; background: var(--brand); position: relative; overflow: hidden; text-decoration: none; }
.slide.gold { background: var(--gold); color: var(--gold-ink); }
.slide.blue { background: var(--blue-deep); }
.slide h2 { font-size: clamp(24px, 4vw, 40px); margin-bottom: 8px; }
.slide p { opacity: .85; font-size: 17px; }
.slide .from { font-size: 15px; opacity: .85; }
.slide .big { font-size: clamp(36px, 6vw, 64px); font-weight: 700; line-height: 1.05; display: block; margin: 4px 0 16px; }
.slide .big small { font-size: .38em; font-weight: 600; }
.slide-art { background: rgb(255 255 255 / .1); border-radius: 18px; height: 100%; min-height: 260px; display: grid; place-items: center; padding: 18px; }
.slide.gold .slide-art { background: rgb(255 255 255 / .35); }
.slide-art svg { width: 100%; height: 100%; max-height: 300px; }
.slide-art.has-photo { padding: 0; overflow: hidden; }
.slide-art.has-photo img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; }
.slider .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--brand); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; }
.slider .arrow.prev { right: -12px; } .slider .arrow.next { left: -12px; }
.slider .arrow.next .ic { transform: scaleX(1); } .slider .arrow.prev .ic { transform: scaleX(-1); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: #cfcdc7; padding: 0; cursor: pointer; transition: width .2s; }
.dots button[aria-current="true"] { width: 22px; background: var(--gold); }
@media (max-width: 760px) {
  .slide { grid-template-columns: 1fr; padding: 24px 22px; min-height: 0; }
  .slide-art { min-height: 0; height: 190px; order: -1; padding: 12px; }
  .slide-art svg { max-height: 100%; }
  .slide p { font-size: 15px; }
  .slider .arrow { display: none; }
}

/* ---------- home: round shortcuts ---------- */
.rounds { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding: 6px 2px; }
.round { flex: none; width: 104px; text-align: center; text-decoration: none; font-weight: 600; font-size: 14px; }
.round i { display: block; width: 92px; height: 92px; margin: 0 auto 8px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.round:hover i { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }

/* ---------- home: section heads, product cards ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head a { color: var(--blue-deep); font-weight: 600; text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; gap: 2px; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .pgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard .art { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(180deg, #f4f2ee, #ebe8e2); }
.pcard .art svg, .pcard .art img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; }
.pcard .art img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; right: 10px; background: var(--blue-deep); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.badge.gold { background: var(--gold); color: var(--gold-ink); }
.pcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .title { font-weight: 600; font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; }
.pcard .meta { font-size: 13px; color: var(--muted); }
.pcard .price { margin-top: auto; font-size: 22px; font-weight: 700; }
.pcard .price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.pcard .note { font-size: 12px; color: var(--ok); font-weight: 600; display: flex; align-items: center; gap: 4px; }
@media (max-width: 720px) { .pcard .price { font-size: 18px; } .pcard .body { padding: 10px; } }

/* ---------- home: wide promo ---------- */
.wide { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 20px; background: var(--brand); color: #fff; border-radius: 20px; padding: 28px 36px; overflow: hidden; }
.wide .big { font-size: clamp(30px, 5vw, 52px); font-weight: 700; line-height: 1.1; color: var(--gold); }
.wide .wide-art { height: 220px; display: grid; place-items: center; }
.wide .wide-art svg { height: 100%; width: 100%; }
@media (max-width: 720px) { .wide { grid-template-columns: 1fr; padding: 24px 22px; } .wide .wide-art { height: 160px; order: -1; } }

/* ---------- promises, steps, faq ---------- */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.promise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.promise .ic { color: var(--blue-deep); margin-top: 3px; }
.promise b { display: block; font-size: 15px; }
.promise span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .promises { grid-template-columns: 1fr; } }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--gold); color: var(--brand); font-weight: 700; margin-bottom: 10px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: left; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* ---------- product (model) page ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding: 16px 0 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: 1fr 1fr 320px; gap: 24px; align-items: start; padding-top: 12px; }
@media (max-width: 1080px) { .product { grid-template-columns: 1fr 1fr; } .buybox { grid-column: 1 / -1; } }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } }
.preview { position: sticky; top: 80px; background: linear-gradient(180deg, #f4f2ee, #ebe8e2); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; place-items: center; min-height: 380px; }
.preview svg { width: 100%; max-height: 60vh; }
.preview .badge { top: 14px; right: 14px; }
.layout-note { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.gallery { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; }
.gallery img[aria-current="true"], .gallery .thumb-draw[aria-current="true"] { border-color: var(--gold); }
.gallery .thumb-draw { width: 76px; height: 76px; flex: none; border-radius: 10px; border: 2px solid var(--line); background: var(--sunk); font: 600 13px var(--font); color: var(--ink); cursor: pointer; }
.preview img { width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 760px) { .preview { position: relative; top: 0; min-height: 0; } }

.info h1 { font-size: clamp(24px, 3.4vw, 30px); margin-bottom: 6px; }
.info .chips { margin: 10px 0 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.panel h3 { margin-bottom: 12px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font: 500 14px var(--font); color: var(--ink); }
.swatch i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .14); }
.swatch[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--accent-soft); }

.dim { display: grid; grid-template-columns: 80px 1fr 104px; align-items: center; gap: 12px; padding: 6px 0; }
.dim label { font-weight: 600; }
.dim input[type=range] { width: 100%; accent-color: var(--gold); }
.num { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; direction: ltr; }
.num input { width: 100%; border: 0; padding: 10px 8px; font: 600 16px var(--font); text-align: center; background: transparent; color: var(--ink); -moz-appearance: textfield; }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num span { padding: 0 10px; color: var(--muted); font-size: 13px; }
.num.bad { border-color: var(--bad); }
.dim .range-note { grid-column: 2 / 4; font-size: 13px; color: var(--muted); margin-top: -6px; }
.dim .range-note.bad { color: var(--bad); }
@media (max-width: 420px) { .dim { grid-template-columns: 66px 1fr 92px; gap: 8px; } }

.buybox { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.buybox .label { font-size: 14px; color: var(--muted); }
.buybox .price { font-size: 34px; font-weight: 700; line-height: 1.2; }
.buybox .price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.buybox .deposit { font-size: 14px; margin: 6px 0 14px; padding: 8px 12px; background: var(--accent-soft); border-radius: 10px; }
.buybox ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; display: grid; gap: 8px; }
.buybox li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.buybox li .ic { color: var(--blue-deep); margin-top: 2px; }
@media (max-width: 1080px) { .buybox { position: static; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; position: relative; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: 400 16px var(--font); color: var(--ink); }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .num input:focus { outline: 2px solid var(--accent-soft); border-color: var(--gold); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: 13px; display: none; }
.field.bad .err { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--gold); background: var(--accent-soft); }
.choice input { accent-color: var(--brand); width: 18px; height: 18px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-error { color: var(--bad); font-weight: 500; display: none; margin: 0; }
.form-error.on { display: block; }

/* ---------- thanks, 404 ---------- */
.thanks { max-width: 640px; margin: 0 auto; padding: 40px 16px; }
.check { width: 64px; height: 64px; border-radius: 50%; background: #e3f2e9; color: var(--ok); display: grid; place-items: center; font-size: 32px; margin-bottom: 16px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; margin: 20px 0; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: left; }
.next { padding: 0 20px 0 0; }
.next li { margin-bottom: 8px; }
