/* new Saudi riyal sign (U+20C1) — SIL OFL font by Emran Alhaddad, only for that one character */
@font-face { font-family: "SARSym"; src: url("fonts/sar/regular.woff2") format("woff2"), url("fonts/sar/regular.woff") format("woff"); font-weight: 100 599; font-display: swap; unicode-range: U+20C1; }
@font-face { font-family: "SARSym"; src: url("fonts/sar/bold.woff2") format("woff2"), url("fonts/sar/bold.woff") format("woff"); font-weight: 600 900; font-display: swap; unicode-range: U+20C1; }
/* Storefront — RTL, responsive, CSS only. Colours/font come from the store's design (--brand, --accent, --font). */
:root {
  --brand: #5b2eff; --accent: #ff7a1a; --font: 'IBM Plex Sans Arabic';
  --ink: #16141f; --muted: #6c6879; --line: #ebe9f0; --bg: #ffffff; --soft: #f6f5f8; --ok: #0e9f6e; --bad: #d23a3a;
  --radius: 16px; --shadow: 0 1px 2px rgba(22,20,31,.04), 0 10px 30px -18px rgba(22,20,31,.25);
  --head-bg: rgba(255,255,255,.88); --head-ink: var(--ink); --foot-bg: #16141f; --foot-ink: #d9d6e3;
  --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff);
  --brand-deep: color-mix(in srgb, var(--brand) 78%, #000);
  --card: #fff; --field: #fff; --bar-bg: rgba(255,255,255,.96); --brand-fg: var(--brand);
  --ok-soft: #e8f8f1; --ok-text: #08603f; --bad-soft: #fdecec; --bad-text: #95201f;
}
.theme-souq { --bg: #fbf6ee; --soft: #f4ebdd; --line: #eadcc6; --radius: 10px; --ink: #2a2118; --muted: #7a6a58; --head-bg: rgba(251,246,238,.92);
  --foot-bg: #2a2118; --foot-ink: #eadcc6; --shadow: 0 1px 0 rgba(42,33,24,.06); }
.theme-minimal { --radius: 3px; --shadow: none; --soft: #f5f5f5; --line: #e6e6e6; --ink: #111; --foot-bg: #fff; --foot-ink: #333; }
.theme-bold { --radius: 22px; --ink: #0d0c14; --head-bg: #0d0c14; --head-ink: #fff; --foot-bg: #0d0c14; --shadow: 0 14px 34px -20px rgba(13,12,20,.5); }
.theme-luxe { --bg: #0f0e13; --soft: #1a1820; --line: #2a2732; --ink: #f3efe6; --muted: #a9a3b4; --radius: 6px; --head-bg: rgba(15,14,19,.92); --head-ink: #f3efe6;
  --foot-bg: #09080c; --foot-ink: #bdb6c8; --shadow: none; --brand-soft: color-mix(in srgb, var(--brand) 18%, #0f0e13); }
.theme-soft { --bg: color-mix(in srgb, var(--brand) 4%, #fff); --soft: color-mix(in srgb, var(--brand) 9%, #fff); --line: color-mix(in srgb, var(--brand) 14%, #fff);
  --radius: 26px; --head-bg: rgba(255,255,255,.8); --foot-bg: color-mix(in srgb, var(--brand) 88%, #000); --foot-ink: #fff; }
.theme-classic { --radius: 8px; --soft: #f4f4f2; --line: #e2e2dc; --ink: #1d1d1b; --foot-bg: #f4f4f2; --foot-ink: #3a3a36; --shadow: 0 1px 0 rgba(0,0,0,.05); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "SARSym", var(--font), 'IBM Plex Sans Arabic', Tahoma, system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 15px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-fg); }
h1 { font-size: 1.75rem; margin: .3em 0 .6em; line-height: 1.3; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin: .2em 0 .6em; line-height: 1.35; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { width: 100%; padding: .75em .95em; border: 1px solid var(--line); border-radius: calc(var(--radius) * .7); background: var(--field); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-fg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
input[type=radio], input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand-fg); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.main { min-height: 60vh; padding-top: 22px; padding-bottom: 56px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .bad { color: var(--bad); } .ok { color: var(--ok); }
.empty { padding: 56px 16px; text-align: center; color: var(--muted); background: var(--soft); border-radius: var(--radius); }
.center-text { text-align: center; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.5em; border-radius: calc(var(--radius) * .75); border: 0; background: var(--brand); color: #fff;
  font-weight: 700; cursor: pointer; transition: background .15s, transform .08s, box-shadow .15s; box-shadow: 0 10px 22px -14px var(--brand); }
.btn:hover { background: var(--brand-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--brand-fg); border: 1.5px solid currentColor; box-shadow: none; }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.sm { padding: .5em 1em; font-size: .88rem; }
.btn.big { padding: 1em 1.8em; font-size: 1.05rem; }
.btn.block { width: 100%; margin: 0; }
.btn.light { background: var(--card); color: var(--ink); box-shadow: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand-fg); cursor: pointer; }
.linkish.bad { color: var(--bad); }
.inline-form { display: inline; }
.default-submit { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- header ---------- */
.announce { color: #fff; text-align: center; font-size: .88rem; padding: .55em 16px; font-weight: 500; }
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.top { background: var(--head-bg); color: var(--head-ink); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.theme-bold .top { border-bottom-color: #23212f; }
.top-row { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { font-weight: 800; font-size: 1.35rem; color: var(--brand-fg); white-space: nowrap; letter-spacing: -.01em; }
.theme-bold .brand { color: #fff; }
.brand img { max-height: 52px; width: auto; }
.search { flex: 1; display: flex; max-width: 560px; position: relative; margin-inline: auto; }
.search input { border-radius: 999px; padding: .8em 1.2em; padding-inline-end: 3.4em; background: var(--soft); border-color: transparent; }
.search input:focus { background: var(--field); }
.search button { position: absolute; inset-inline-end: 5px; top: 50%; transform: translateY(-50%); border: 0; background: var(--brand); color: #fff; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.search button .ic { width: 18px; height: 18px; }
.search.wide { margin: 16px auto; }
.icons { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.icons a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 12px; font-weight: 500; font-size: .92rem; position: relative; }
.icons a:hover { background: var(--soft); color: inherit; }
.theme-bold .icons a:hover { background: #23212f; }
.cart-link b { position: absolute; top: 2px; inset-inline-start: 22px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; line-height: 19px; text-align: center; border: 2px solid var(--bg); }
.menu { border-top: 1px solid var(--line); }
.theme-bold .menu { border-top-color: #23212f; }
.menu .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.menu a { white-space: nowrap; font-weight: 500; padding: 6px 14px; border-radius: 999px; font-size: .93rem; }
.menu a:hover { background: var(--brand-soft); color: var(--brand-fg); }
@media (max-width: 760px) {
  .top-row { flex-wrap: wrap; gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .icons .lbl { display: none; }
  h1 { font-size: 1.4rem; }
}

/* ---------- flash ---------- */
.flash { padding: .9em 1.1em; border-radius: calc(var(--radius) * .7); margin-bottom: 16px; font-weight: 500; }
.flash.ok { background: var(--ok-soft); color: var(--ok-text); } .flash.bad { background: var(--bad-soft); color: var(--bad-text); }

/* ---------- home: hero (store without slider) ---------- */
.hero { position: relative; overflow: hidden; border-radius: calc(var(--radius) * 1.4); padding: clamp(36px, 7vw, 84px) clamp(24px, 6vw, 72px); margin-bottom: 8px; color: #fff;
  background: var(--brand); background-image: radial-gradient(640px 340px at 0% 0%, rgba(255,255,255,.22), transparent 70%), linear-gradient(135deg, var(--brand), var(--brand-deep)); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.18) 1px, transparent 0) 0 0/22px 22px; mask-image: linear-gradient(90deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); pointer-events: none; }
.hero h2 { font-size: clamp(1.8rem, 4.6vw, 3.1rem); margin: 0 0 .3em; line-height: 1.2; max-width: 680px; position: relative; z-index: 1; }
.hero p { font-size: 1.08rem; max-width: 560px; opacity: .92; margin: 0 0 1.4em; position: relative; z-index: 1; }
.hero .btn { background: #fff; color: var(--brand-deep); position: relative; z-index: 1; box-shadow: 0 14px 30px -16px rgba(0,0,0,.6); }
.hero .btn:hover { background: #f3f0ff; }
.theme-minimal .hero { background: var(--soft); color: var(--ink); } .theme-minimal .hero::after { display: none; } .theme-minimal .hero .btn { background: var(--ink); color: #fff; }

/* ---------- home blocks ---------- */
.slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: calc(var(--radius) * 1.2); scrollbar-width: none; }
.slider::-webkit-scrollbar, .menu .wrap::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; aspect-ratio: 16 / 6; background: var(--soft); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-text { position: absolute; inset: auto 0 0 0; padding: 6% 6% 5%; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); }
.slide-text h2 { font-size: clamp(1.3rem, 3.6vw, 2.5rem); margin: 0 0 .2em; }
.slide-text p { margin: 0 0 .9em; }
.cover-link { position: absolute; inset: 0; }
.dots { display: flex; justify-content: center; gap: 7px; margin: 12px 0 0; }
.dots a { width: 9px; height: 9px; border-radius: 99px; background: var(--line); transition: width .2s, background .2s; }
.dots a:hover, .dots a:focus { width: 22px; background: var(--brand); }
@media (max-width: 760px) { .slide { aspect-ratio: 4 / 3; } }
.block { margin: 48px 0; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.block-head .block-title { margin: 0; }
.block-head a { color: var(--brand-fg); font-size: .92rem; font-weight: 600; white-space: nowrap; }
.block-title { font-size: 1.45rem; margin-bottom: 16px; letter-spacing: -.01em; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.cats .cat { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 600; }
.cat-img { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 2rem; font-weight: 800; color: var(--brand-fg); transition: transform .2s; }
.theme-minimal .cat-img, .theme-souq .cat-img { border-radius: var(--radius); }
.cats .cat:hover .cat-img { transform: translateY(-3px); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chips .cat { padding: .45em 1.1em; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 500; }
.chips .cat.on, .chips .cat:hover { border-color: var(--brand-fg); color: var(--brand-fg); background: var(--brand-soft); }
.banner img { width: 100%; border-radius: calc(var(--radius) * 1.2); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.feature { background: var(--soft); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 14px; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--card); color: var(--brand-fg); flex-shrink: 0; box-shadow: var(--shadow); }
.feature div { display: flex; flex-direction: column; }
.feature small { color: var(--muted); }
.text-block p { max-width: 760px; margin-inline: auto; color: var(--muted); font-size: 1.05rem; }

/* ---------- product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 18px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; } }
.card { position: relative; background: transparent; display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 1; background: var(--soft); display: block; border-radius: var(--radius); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 800; color: var(--brand-fg);
  background: radial-gradient(circle at 30% 20%, #fff, transparent 60%), linear-gradient(140deg, var(--brand-soft), color-mix(in srgb, var(--accent) 14%, #fff)); }
.noimg.big { aspect-ratio: 1; font-size: 6rem; border-radius: var(--radius); }
.tag { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--accent); color: #fff; font-size: .76rem; font-weight: 700; padding: .25em .75em; border-radius: 999px; }
.tag.dark { background: var(--ink); }
.tag.inline { position: static; display: inline-block; vertical-align: middle; }
.heart { position: absolute; top: 10px; inset-inline-end: 10px; }
.heart button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card); cursor: pointer; font-size: 1.1rem; color: var(--muted); box-shadow: 0 4px 12px -6px rgba(0,0,0,.35); }
.heart button.on { color: #e11d48; }
.card-body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-title { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 800; color: var(--ink); margin-top: auto; font-size: 1.05rem; }
.price del { color: var(--muted); font-weight: 400; font-size: .85em; margin-inline-start: 4px; }
.price.big { font-size: 1.9rem; margin: 6px 0; color: var(--brand-fg); }
.stars { color: #f5a524; } .stars span { color: var(--muted); font-size: .85em; } .stars.small { font-size: .85rem; }
.theme-minimal .card-img, .theme-minimal .btn { border-radius: var(--radius); }
.theme-souq .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; } .theme-souq .card-body { padding: 10px 6px 4px; }

/* ---------- listing ---------- */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.sort { display: flex; gap: 8px; } .sort select { width: auto; border-radius: 999px; }
.intro { color: var(--muted); max-width: 800px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--brand-fg); }

/* ---------- pager ---------- */
.pager, nav.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 32px 0; }
.pager a, .pager span, .pagination a, .pagination span { min-width: 40px; text-align: center; padding: .45em .9em; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.pager .on, .pager .active, .pager .current, .pagination .active { background: var(--brand); border-color: var(--brand-fg); color: #fff; }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 880px) { .product { grid-template-columns: 1fr; gap: 20px; } }
.gallery { position: sticky; top: 100px; }
@media (max-width: 880px) { .gallery { position: static; } }
.main-img { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: calc(var(--radius) * 1.2); background: var(--soft); scrollbar-width: none; }
.main-img img { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; border: 2px solid transparent; }
.thumbs a:hover img, .thumbs a:focus img { border-color: var(--brand-fg); }
.info h1 { margin-top: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.offer-badge { display: inline-block; background: color-mix(in srgb, var(--accent) 14%, #fff); color: color-mix(in srgb, var(--accent) 70%, #000); padding: .35em .9em; border-radius: 999px; font-size: .85rem; font-weight: 600; margin: 4px 0; }
.buy { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; margin-bottom: 10px; }
.variants, .slots { display: grid; gap: 8px; }
.slots { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.variant, .slot { display: flex; align-items: center; gap: 10px; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: calc(var(--radius) * .75); cursor: pointer; background: var(--card); transition: border-color .15s; }
.variant:hover, .slot:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.variant span { flex: 1; } .variant b { white-space: nowrap; }
.variant:has(input:checked), .slot:has(input:checked) { border-color: var(--brand-fg); background: var(--brand-soft); }
.variant.off { opacity: .5; cursor: not-allowed; }
.variant small, .slot small { color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 9px; margin: 8px 0; }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn { flex: 1; }
.qty { width: 92px; text-align: center; }
.date-pick { display: flex; gap: 8px; align-items: end; margin: 12px 0; }
.date-pick label { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.soldout { background: var(--soft); padding: .9em 1.1em; border-radius: var(--radius); font-weight: 700; margin: 12px 0; }
.alert-form { margin-bottom: 12px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 18px; }
.trust span { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: .8rem; color: var(--muted); padding: 10px 6px; background: var(--soft); border-radius: calc(var(--radius) * .7); }
.trust .ic { color: var(--brand-fg); }
.desc { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.prose { line-height: 1.9; } .prose img { border-radius: 12px; margin: 14px 0; } .prose h2 { margin-top: 1.4em; } .prose a { color: var(--brand-fg); text-decoration: underline; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.review { margin: 0; background: var(--soft); border-radius: var(--radius); padding: 18px 20px; }
.review p { margin: .4em 0; } .review footer { color: var(--muted); font-size: .85rem; }
.reply { margin-top: 8px; font-size: .9rem; background: var(--card); padding: 9px 12px; border-radius: 10px; }

/* ---------- boxes, cart, checkout ---------- */
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.box.narrow { max-width: 470px; margin-inline: auto; }
.box.left { text-align: start; }
.cart-grid, .checkout { display: grid; grid-template-columns: 1fr 370px; gap: 28px; align-items: start; }
@media (max-width: 880px) { .cart-grid, .checkout { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 84px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--soft); }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-total { text-align: end; font-weight: 700; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 560px) { .line { grid-template-columns: 64px 1fr; } .line-img { width: 64px; height: 64px; } .line-qty, .line-total { grid-column: 2; } .line-total { flex-direction: row; justify-content: space-between; } }
.cart-lines .btn { margin-top: 12px; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 100px; box-shadow: var(--shadow); }
.summary dl, .totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 14px 0; }
.summary dd, .totals dd { margin: 0; text-align: end; }
.total { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 10px; }
.coupon { display: flex; gap: 8px; } .coupon-on { display: flex; justify-content: space-between; align-items: center; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.co-main .variant { margin-bottom: 8px; }
.saved { margin-bottom: 14px; }
details.more { margin: 10px 0; } details.more summary, details.box summary { cursor: pointer; }

/* ---------- thanks / track / account ---------- */
.center-box { max-width: 580px; margin: 34px auto; text-align: center; }
.big-ico { width: 80px; height: 80px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-fg); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; margin: 0 auto 12px; box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 5%, transparent); }
.track-steps { display: flex; list-style: none; padding: 0; margin: 18px 0; counter-reset: s; }
.track-steps li { flex: 1; text-align: center; font-size: .85rem; color: var(--muted); position: relative; padding-top: 32px; }
.track-steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(50%); width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: #fff; line-height: 26px; font-size: .8rem; z-index: 1; }
.track-steps li::after { content: ""; position: absolute; top: 12px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line); }
.track-steps li:last-child::after { display: none; }
.track-steps li.done { color: var(--ink); font-weight: 700; } .track-steps li.done::before, .track-steps li.done::after { background: var(--brand); }
.acc-nav { display: flex; gap: 6px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; padding: 5px; background: var(--soft); border-radius: 14px; width: fit-content; max-width: 100%; }
.acc-nav a { font-weight: 500; padding: 6px 14px; border-radius: 10px; }
.acc-nav a:hover { background: var(--card); color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stats .box { display: flex; flex-direction: column; gap: 2px; margin: 0; } .stats b { font-size: 1.45rem; }
.table { width: 100%; border-collapse: collapse; } .table th, .table td { text-align: start; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.table th { font-size: .84rem; color: var(--muted); font-weight: 500; }
.addr { display: flex; justify-content: space-between; gap: 12px; } .addr .actions { display: flex; flex-direction: column; gap: 6px; align-items: end; }
.rate { display: flex; flex-direction: column; gap: 2px; color: #f5a524; margin-bottom: 8px; }
.otp { font-size: 1.6rem; letter-spacing: .5em; text-align: center; }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
code { background: var(--soft); padding: .3em .6em; border-radius: 6px; font-size: 1.05rem; }
.copy-box { display: block; padding: .8em; user-select: all; overflow-wrap: anywhere; }
.contact-list { list-style: none; padding: 0; } .contact-list li { padding: 6px 0; }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 16px; transition: box-shadow .2s; }
.post-card:hover { box-shadow: var(--shadow); color: inherit; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card strong, .post-card small { padding: 0 16px; } .post-card:not(:has(img)) { padding-top: 16px; }
.post { max-width: 760px; margin: 0 auto; }
.post-cover { width: 100%; border-radius: var(--radius); margin: 12px 0 20px; }
.toc ol { margin: 6px 0 0; padding-inline-start: 20px; } .toc .lv3 { margin-inline-start: 14px; font-size: .92em; }
.faq details { margin-bottom: 8px; }

/* ---------- footer ---------- */
.foot { background: var(--foot-bg); color: var(--foot-ink); margin-top: 56px; padding-top: 44px; }
.theme-minimal .foot { border-top: 1px solid var(--line); }
.foot a:hover { color: #fff; }
.theme-minimal .foot a:hover { color: var(--brand-fg); }
.foot strong { color: inherit; font-size: 1.05rem; filter: brightness(1.3); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 22px; } }
.foot ul { list-style: none; padding: 0; margin: 10px 0; } .foot li { padding: 4px 0; opacity: .85; }
.foot p { margin: 8px 0; opacity: .8; max-width: 380px; }
.foot .muted { color: inherit; opacity: .65; }
.pays { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.theme-minimal .pays { border-top-color: var(--line); }
.pays span { background: #fff; color: #2b2838; border-radius: 8px; padding: .3em .8em; font-size: .78rem; font-weight: 700; }
.copy { opacity: .6; font-size: .82rem; padding-top: 16px; padding-bottom: 26px; }
.wa-float { position: fixed; bottom: 20px; inset-inline-start: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); z-index: 30; }
.wa-float:hover { color: #fff; }

/* ---------- mobile tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; inset-inline: 0; z-index: 40; background: var(--bar-bg); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: var(--muted); padding: 4px 0; position: relative; }
  .tabbar a.on, .tabbar a:hover { color: var(--brand-fg); }
  .tabbar b { position: absolute; top: 0; inset-inline-start: 52%; min-width: 17px; height: 17px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .66rem; line-height: 17px; text-align: center; }
  body { padding-bottom: 68px; }
  .wa-float { bottom: 84px; }
}

/* ---------- closed store ---------- */
.closed { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px; background: var(--soft); }
.closed img { max-height: 90px; width: auto; }
.closed p { font-size: 1.15rem; color: var(--muted); max-width: 460px; }

/* ---------- luxe theme ---------- */
.theme-luxe input, .theme-luxe select, .theme-luxe textarea { background: #17151d; border-color: var(--line); color: var(--ink); }
.theme-luxe .search input { background: #1a1820; }
.theme-luxe .box, .theme-luxe .summary, .theme-luxe .buy, .theme-luxe .variant, .theme-luxe .slot, .theme-luxe .post-card, .theme-luxe .pager a, .theme-luxe .chips .cat,
.theme-luxe .heart button, .theme-luxe .feature .ico, .theme-luxe .reply, .theme-luxe .tabbar { background: #17151d; color: var(--ink); }
.theme-luxe .brand, .theme-luxe h1, .theme-luxe .block-title, .theme-luxe .hero h2 { letter-spacing: .01em; }
.theme-luxe .brand { color: var(--brand); }
.theme-luxe .btn { color: #0f0e13; box-shadow: none; }
.theme-luxe .btn:hover { color: #0f0e13; background: var(--accent); }
.theme-luxe .btn.ghost { color: var(--brand); }
.theme-luxe .hero { background: #15131a; color: var(--ink); border: 1px solid var(--line); background-image: radial-gradient(700px 320px at 0 0, color-mix(in srgb, var(--brand) 35%, transparent), transparent 70%); }
.theme-luxe .hero .btn { background: var(--brand); color: #0f0e13; }
.theme-luxe .hero::after { opacity: .35; }
.theme-luxe .price, .theme-luxe .price.big { color: var(--brand); }
.theme-luxe .cart-link b { border-color: var(--bg); }
.theme-luxe .icons a:hover, .theme-luxe .menu a:hover { background: #1f1c26; color: var(--brand); }
.theme-luxe .noimg { background: radial-gradient(circle at 30% 20%, #2a2632, #15131a 70%); }
.theme-luxe .pays span { background: #1f1c26; color: var(--ink); }
.theme-luxe .flash.ok { background: #102a20; color: #8ff0c5; } .theme-luxe .flash.bad { background: #2c1214; color: #ffb3b3; }

/* ---------- soft theme ---------- */
.theme-soft .btn { border-radius: 999px; }
.theme-soft .card-img, .theme-soft .box, .theme-soft .summary { border: 0; }
.theme-soft .card { background: var(--card); border-radius: var(--radius); padding: 10px; box-shadow: 0 16px 34px -26px color-mix(in srgb, var(--brand) 60%, #000); }
.theme-soft .card-body { padding: 10px 6px 4px; }
.theme-soft .card-img { border-radius: calc(var(--radius) - 8px); }
.theme-soft .hero { background-image: radial-gradient(500px 260px at 100% 100%, rgba(255,255,255,.35), transparent 70%), linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); }
.theme-soft .foot a:hover { color: #fff; }

/* ---------- classic theme ---------- */
.theme-classic .top-row { flex-wrap: wrap; justify-content: space-between; }
@media (min-width: 761px) {
  .theme-classic .top-row { padding-top: 14px; }
  .theme-classic .brand { order: -1; flex-basis: 100%; text-align: center; font-size: 1.7rem; }
  .theme-classic .brand img { margin: 0 auto; }
  .theme-classic .search { margin: 0; }
}
.theme-classic .menu .wrap { justify-content: center; }
.theme-classic .card { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); overflow: hidden; }
.theme-classic .card-img { border-radius: 0; }
.theme-classic .card-body { padding: 12px 14px 14px; }
.theme-classic .block-title, .theme-classic .block-head { justify-content: center; text-align: center; }
.theme-classic .block-head { flex-direction: column; }
.theme-classic .foot a:hover { color: var(--brand-fg); }
.theme-classic .pays { border-top-color: var(--line); }
.pays .pm-img { display: inline-flex; align-items: center; justify-content: center; height: 32px; min-width: 50px; padding: 4px 9px; background: #fff; }
.pays .pm-img img { height: 20px; width: auto; max-width: 76px; object-fit: contain; display: block; }
.theme-luxe .pays .pm-img { background: #fff; }
/* account forms: phone + password */
.acc-form .field { margin-bottom: 14px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-left: 72px; }
.pw-eye { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--brand-fg); font: inherit; font-size: .82rem; cursor: pointer; padding: 6px 8px; }
.forgot { margin-top: 14px; text-align: center; } .forgot summary { cursor: pointer; }

/* ---------- product cards & buy buttons (v1.6) ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; transition: box-shadow .2s ease, border-color .2s ease; }
@media (hover: hover) { .card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); } }
.card .card-img { border-radius: calc(var(--radius) * .7); }
.card .heart { top: 16px; inset-inline-end: 16px; }
.card .tag { top: 10px; inset-inline-start: 10px; }
.tag.kind { top: auto; bottom: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgba(17,16,24,.72); backdrop-filter: blur(6px); font-weight: 600; }
.tag.kind .ic { width: 13px; height: 13px; }
.card-body { padding: 12px 6px 4px; gap: 6px; }
.card-title { font-weight: 600; line-height: 1.5; min-height: 3em; }
.card .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 1.08rem; }
.card .price .now, .card .price del { white-space: nowrap; }
.card .price del { margin: 0; font-size: .82rem; }
.card-buy { margin: 0; }
.btn.add { width: 100%; margin-top: 6px; padding: .72em 1em; font-size: .93rem; font-weight: 700; border-radius: calc(var(--radius) * .6); box-shadow: 0 10px 20px -14px var(--brand); }
.btn.add .ic { width: 18px; height: 18px; }
.btn.add.alt { background: var(--brand-soft); color: var(--brand-fg); box-shadow: none; }
.btn.add.alt:hover { background: var(--brand); color: #fff; }
.btn.add.off { background: var(--soft); color: var(--muted); box-shadow: none; }
@media (max-width: 560px) {
  .card { padding: 6px; }
  .card-body { padding: 10px 4px 2px; }
  .card .price { font-size: 1rem; }
  .btn.add { font-size: .85rem; padding: .7em .5em; gap: .35em; }
  .btn.add .ic { width: 16px; height: 16px; }
}

/* product page: price, quantity, two clear actions */
.product .price.big { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.product .price.big del { font-size: 1.1rem; }
.buy-row { align-items: stretch; }
.stepper { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: calc(var(--radius) * .75); overflow: hidden; background: var(--field); flex-shrink: 0; }
.stepper input { width: 46px; border: 0; border-radius: 0; text-align: center; font-weight: 700; padding: 0; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.st-btn { width: 44px; border: 0; background: transparent; color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.st-btn:hover { background: var(--soft); color: var(--brand-fg); }
.btn.add-cart { background: var(--card); color: var(--brand-fg); border: 2px solid var(--brand); box-shadow: none; }
.btn.add-cart:hover { background: var(--brand-soft); color: var(--brand-fg); }
.btn.buy-now { font-size: 1.12rem; padding: 1.05em 1.8em; box-shadow: 0 16px 30px -16px var(--brand); }
.btn .ic { width: 20px; height: 20px; }
.buy-bar { display: none; }
@media (max-width: 760px) {
  .buy-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; inset-inline: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 39;
    padding: 10px 16px; background: var(--bar-bg); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(0,0,0,.35); }
  .buy-bar .bb-price { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
  .buy-bar .bb-price b { font-size: 1.15rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buy-bar .bb-price del { font-size: .8rem; color: var(--muted); }
  .buy-bar .btn { padding: .85em 1.6em; font-size: 1rem; font-weight: 700; flex-shrink: 0; }
  body:has(.buy-bar) { padding-bottom: 140px; }
  body:has(.buy-bar) .wa-float { bottom: 150px; }
}

/* store features: compact row on phones */
@media (max-width: 560px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .feature { flex-direction: column; text-align: center; padding: 14px 6px; gap: 8px; font-size: .82rem; }
  .feature .ico { width: 40px; height: 40px; border-radius: 12px; }
  .feature small { font-size: .72rem; }
}

/* luxe keeps its dark surfaces */
.theme-luxe .card { background: #17151d; border-color: #2a2632; }
.theme-luxe .btn.add.alt, .theme-luxe .btn.add-cart { background: transparent; color: var(--brand); border-color: var(--brand); }
.theme-luxe .btn.add.alt:hover { background: var(--brand); color: #0f0e13; }
.theme-luxe .buy-bar .bb-price b { color: var(--ink); }

.pays .pm-img.pm-tile, .theme-luxe .pays .pm-img.pm-tile { padding: 0; background: transparent; height: 32px; min-width: 0; overflow: hidden; border-radius: 7px; }
.pays .pm-img.pm-tile img { height: 32px; width: auto; max-width: 110px; object-fit: cover; }

/* ---------- night mode (the merchant can turn it off in التصميم; luxe is dark already) ---------- */
html[data-theme="dark"] body:not(.theme-luxe) {
  color-scheme: dark;
  --bg: #121117; --soft: #1b1a22; --line: #2c2a36; --ink: #eeecf3; --muted: #a7a3b4;
  --card: #1a1921; --field: #15141b; --bar-bg: rgba(18,17,23,.96);
  --head-bg: rgba(18,17,23,.9); --head-ink: #eeecf3; --foot-bg: #0b0a0f; --foot-ink: #c9c5d4;
  --brand-soft: color-mix(in srgb, var(--brand) 20%, #121117);
  --brand-fg: color-mix(in srgb, var(--brand) 62%, #fff);
  --ok-soft: #102a20; --ok-text: #8ff0c5; --bad-soft: #2c1214; --bad-text: #ffb3b3;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 10px 30px -18px rgba(0,0,0,.8);
}
html[data-theme="dark"] body.theme-minimal .hero .btn { background: var(--ink); color: #121117; }
html[data-theme="dark"] body:not(.theme-luxe) .noimg { background: radial-gradient(circle at 30% 20%, #2a2833, #15141b 70%); }
html[data-theme="dark"] body:not(.theme-luxe) .icons a:hover, html[data-theme="dark"] body:not(.theme-luxe) .menu a:hover { background: var(--soft); }
html[data-theme="dark"] body:not(.theme-luxe) .pays span:not(.pm-img) { background: #24222c; color: var(--ink); }
html[data-theme="dark"] body:not(.theme-luxe) .card img, html[data-theme="dark"] body:not(.theme-luxe) .gallery img { background-color: #fff; }

/* day/night switch */
.tt-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--head-ink); cursor: pointer; padding: 0; }
.tt-btn:hover { background: var(--soft); color: var(--brand-fg); }
.theme-toggle .tt-sun { display: none; }
html[data-theme="dark"] .theme-toggle .tt-sun { display: block; }
html[data-theme="dark"] .theme-toggle .tt-moon { display: none; }

/* digital products: details, what you get, consent, free */
.dg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.dg-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: .88rem; }
.dg-chips .ic { width: 16px; height: 16px; color: var(--brand-fg); }
.dg-chips small { color: var(--muted); }
.dg-get { margin: 14px 0 4px; padding: 16px 18px; border-radius: var(--radius); background: var(--brand-soft); }
.dg-get strong { display: block; margin-bottom: 8px; }
.dg-get ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 7px; }
.dg-get li { display: flex; gap: 8px; align-items: flex-start; }
.dg-get li .ic { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--ok, #0e9f76); }
.dg-when { display: flex; gap: 6px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin: 0 0 10px; }
.dg-when .ic { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--brand-fg); }
.dg-get .btn .ic { width: 16px; height: 16px; }
.checkout .consent { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 12px; font-size: .88rem; line-height: 1.6; }
.checkout .consent input { margin-top: 5px; flex-shrink: 0; }
.free-note { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; font-weight: 600; color: var(--ok-text); }
.free-note .ic { width: 20px; height: 20px; }
.theme-luxe .dg-chips span { background: #17151d; border-color: #2a2632; }
.btn.add-cart { white-space: nowrap; }
@media (max-width: 560px) { .buy-row .btn.add-cart { padding: .9em 1em; font-size: .98rem; } .stepper input { width: 38px; } .st-btn { width: 38px; } }

/* gifts & updates for digital products */
.gift-box { margin: 4px 0 2px; border: 1px dashed var(--line); border-radius: calc(var(--radius) * .75); padding: 10px 14px; background: var(--card); }
.gift-box summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-fg); list-style: none; }
.gift-box summary::-webkit-details-marker { display: none; }
.gift-box summary .ic { width: 18px; height: 18px; }
.gift-box[open] summary { margin-bottom: 10px; }
.gift-box .field { margin-bottom: 10px; }
.gift-send { margin: 0 0 12px; padding: 14px 16px; border-radius: calc(var(--radius) * .75); background: var(--brand-soft); }
.gift-send p { margin: 4px 0 10px; }
.gift-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gift-hero { text-align: center; padding: 26px 18px 10px; }
.gift-hero .gift-ico { font-size: 3.2rem; line-height: 1; }
.gift-hero h1 { margin: 10px 0 8px; }
.gift-hero blockquote { margin: 10px auto 0; max-width: 520px; padding: 14px 18px; border-radius: var(--radius); background: var(--brand-soft); font-size: 1.05rem; line-height: 1.8; }
.dg-update { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok-text); font-size: .92rem; }

/* courses */
.course { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .course { grid-template-columns: 1fr; } .course-side { order: 2; } }
.course-side { position: sticky; top: 90px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.course-side h2 { font-size: 1.05rem; margin: 0 0 10px; }
.cprog { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 8px 0 4px; }
.cprog span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.cprog.big { height: 10px; }
.lesson-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; max-height: 60vh; overflow: auto; }
.lesson-list a, .lesson-list span { display: grid; grid-template-columns: 28px 1fr; gap: 2px 8px; padding: 9px 10px; border-radius: 10px; color: var(--ink); }
.lesson-list a:hover { background: var(--soft); }
.lesson-list i { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .8rem; font-weight: 700; background: var(--soft); color: var(--muted); }
.lesson-list b { font-weight: 600; font-size: .92rem; line-height: 1.4; }
.lesson-list small { color: var(--muted); font-size: .76rem; }
.lesson-list li.on a { background: var(--brand-soft); }
.lesson-list li.on i { background: var(--brand); color: #fff; }
.lesson-list li.done i { background: var(--ok-soft); color: var(--ok-text); }
.lesson-list li.locked span { opacity: .55; }
.course-main h1 { font-size: 1.5rem; margin: 0 0 14px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 16px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-body { margin: 10px 0 16px; line-height: 1.9; }
.lesson-file { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin: 10px 0; color: var(--ink); }
.lesson-file span { margin-inline-start: auto; color: var(--brand-fg); font-weight: 600; }
.lesson-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.course-list { display: grid; gap: 12px; margin-top: 14px; }
.course-tile { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); }
.course-tile img, .course-tile .noimg { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; font-size: 2rem; }
.curriculum { margin: 18px 0; }
.curriculum ol { list-style: none; padding: 0; margin: 10px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.curriculum li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); background: var(--card); }
.curriculum li:first-child { border-top: 0; }
.curriculum li i { font-style: normal; color: var(--muted); width: 22px; }
.curriculum li small { margin-inline-start: auto; color: var(--muted); white-space: nowrap; }
.curriculum li a { color: var(--brand-fg); font-weight: 600; font-size: .85rem; white-space: nowrap; }
/* certificate (prints on one A4 landscape page) */
.cert-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cert { background: #fffdf8; color: #2a2230; border-radius: 18px; padding: 14px; box-shadow: 0 20px 50px -30px rgba(0,0,0,.4); max-width: 980px; margin: 0 auto; }
.cert-in { border: 2px solid var(--brand); outline: 1px solid var(--brand); outline-offset: 6px; border-radius: 12px; padding: 48px 40px 30px; text-align: center; }
.cert-store { font-weight: 800; color: var(--brand); letter-spacing: .02em; }
.cert-kind { font-size: 2.4rem; font-weight: 800; margin: 14px 0 6px; }
.cert-lead { color: #6b6170; margin: 10px 0 4px; }
.cert-name { font-size: 2.6rem; font-weight: 800; line-height: 1.3; margin: 6px 0; border-bottom: 2px solid #e8dfd2; display: inline-block; padding: 0 26px 6px; }
.cert-course { font-size: 1.5rem; font-weight: 700; color: var(--brand); margin-top: 6px; }
.cert-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; }
.cert-foot div { display: flex; flex-direction: column; gap: 2px; min-width: 140px; }
.cert-foot small { color: #8a8090; } .cert-seal { font-size: 2.8rem; }
.cert-verify { margin-top: 18px; font-size: .74rem; color: #9a90a0; word-break: break-all; }
@media (max-width: 600px) { .cert-in { padding: 30px 14px 20px; } .cert-kind { font-size: 1.7rem; } .cert-name { font-size: 1.7rem; } .cert-course { font-size: 1.15rem; } .cert-foot div { min-width: 0; } }
@media print {
  header, footer, nav, .tabbar, .no-print, .wa-float, .buy-bar, .ann, .announcement, .flash { display: none !important; }
  body { background: #fff !important; padding: 0 !important; }
  .cert { box-shadow: none; max-width: none; padding: 0; }
  @page { size: A4 landscape; margin: 12mm; }
}
html[data-theme="dark"] .cert { background: #fffdf8; color: #2a2230; }
/* season strip + guarantee */
.season-strip { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 9px 14px; background: var(--sc); color: #fff; font-weight: 600; font-size: .92rem; text-align: center; }
.season-strip small { opacity: .85; font-weight: 400; }
.season-code { font: inherit; font-family: ui-monospace, monospace; letter-spacing: .06em; background: rgba(255,255,255,.18); color: #fff; border: 1.5px dashed rgba(255,255,255,.75); border-radius: 8px; padding: 3px 12px; cursor: pointer; }
.season-code:hover, .season-code.ok { background: #fff; color: var(--sc); border-style: solid; }
.foot .guarantee { display: flex; gap: 12px; align-items: center; margin: 6px auto 4px; padding: 12px 16px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 14px; background: color-mix(in srgb, currentColor 5%, transparent); color: inherit; text-decoration: none; max-width: 560px; }
.foot .guarantee b { color: inherit; }
.guarantee svg { width: 34px; height: 34px; flex: none; color: #16a34a; fill: none; stroke: currentColor; stroke-width: 1.8; }
.guarantee span { display: flex; flex-direction: column; gap: 2px; }
.guarantee small { opacity: .75; font-size: .8rem; }
.trust .trust-g { color: #16a34a; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.guarantee-note { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, #16a34a 9%, transparent); }
.guarantee-note svg { width: 20px; height: 20px; flex: none; color: #16a34a; fill: none; stroke: currentColor; stroke-width: 2; }
/* deposit + group buying */
.deposit-box { margin: 12px 0; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, transparent); background: color-mix(in srgb, var(--brand) 6%, transparent); display: flex; flex-direction: column; gap: 3px; }
.deposit-box span { font-size: .88rem; opacity: .8; }
.group-box { margin: 14px 0; padding: 16px; border-radius: 16px; color: inherit; background: color-mix(in srgb, var(--brand) 9%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.group-box p { margin: 8px 0; font-size: .92rem; line-height: 1.7; }
.g-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.g-top b { font-size: 1.5rem; color: var(--brand); }
.g-top del { opacity: .55; }
.g-tag { font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; color: inherit; background: color-mix(in srgb, var(--brand) 20%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 50%, transparent); }
.g-bar { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 14%, transparent); overflow: hidden; }
.g-bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .6s; }
.g-count { font-size: .85rem; margin-top: 6px; font-weight: 600; }
.g-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.g-actions form { margin: 0; }
.g-joined { display: inline-flex; align-items: center; padding: 0 14px; border-radius: 12px; font-weight: 700; color: #15803d; background: #dcfce7; min-height: 44px; }
.g-code { --sc: var(--brand); color: var(--brand); border-color: var(--brand); background: transparent; font-size: 1.1rem; padding: 6px 16px; }
.deposit-note { font-size: .84rem; margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 7%, transparent); }
.theme-luxe { --bar-bg: rgba(15,14,19,.94); }

/* ---------- banners & slider: any size, no crop or stretch by default (all themes) ----------
   d-auto/m-auto  = original image ratio, responsive (default)
   d-fixed/m-fixed = chosen ratio (--bn-ratio / --bn-m-ratio); --bn-fit: contain (whole image, no crop) or cover (fill) */
body { overflow-x: clip; }
.bn { margin-top: var(--bn-mt, var(--bn-gap, 48px)); margin-bottom: var(--bn-mb, var(--bn-gap, 48px)); }
.bn-slider-wrap { margin-top: var(--bn-mt, 0px); margin-bottom: var(--bn-mb, 0px); }
.bn-full { width: 100vw; margin-inline: calc(50% - 50vw); --bn-r-def: 0px; }
.bn .slider { border-radius: var(--bn-r, var(--bn-r-def, calc(var(--radius) * 1.2))); width: var(--bn-w, 100%); margin-inline: auto; align-items: flex-start; }
.bn > .bn-frame { width: var(--bn-w, 100%); margin-inline: auto; }
.bn-frame { position: relative; overflow: hidden; background: var(--bn-bg, transparent); border-radius: var(--bn-r, var(--bn-r-def, calc(var(--radius) * 1.2))); }
.bn .slider .bn-frame { border-radius: 0; aspect-ratio: auto; background: var(--bn-bg, var(--soft)); }
.bn-frame picture { display: contents; }
.bn-frame img, .banner .bn-frame img { display: block; width: 100%; border-radius: 0; }
.bn-frame > a { display: block; }
@media (min-width: 761px) {
  .bn-frame.d-auto img { height: auto; max-height: var(--bn-maxh, none); object-fit: contain; }
  .bn-frame.d-fixed, .bn .slider .bn-frame.d-fixed { aspect-ratio: var(--bn-ratio); max-height: var(--bn-maxh, none); }
  .bn-frame.d-fixed img, .bn-frame.d-fixed > a { height: 100%; }
  .bn-frame.d-fixed img { object-fit: var(--bn-fit, contain); }
}
@media (max-width: 760px) {
  .bn-frame.m-auto img { height: auto; max-height: var(--bn-maxh, none); object-fit: contain; }
  .bn-frame.m-fixed, .bn .slider .bn-frame.m-fixed { aspect-ratio: var(--bn-m-ratio, var(--bn-ratio)); max-height: var(--bn-maxh, none); }
  .bn-frame.m-fixed img, .bn-frame.m-fixed > a { height: 100%; }
  .bn-frame.m-fixed img { object-fit: var(--bn-fit, contain); }
  .bn { --bn-gap: 32px; }
}

/* currency picker + note (1.25) */
.cur-pick { position: relative; display: inline-flex; align-items: center; }
.cur-pick select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 13px; font-weight: 600; color: inherit; background: transparent; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 999px; padding: 5px 12px; cursor: pointer; direction: ltr; }
.cur-pick select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cur-pick .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cur-note { font-size: 12.5px; opacity: .75; margin: 10px 0 0; line-height: 1.6; }
/* «محتوى HTML» section: the merchant's own markup between the home sections */
.html-block { overflow-wrap: anywhere; }
.html-block img, .html-block video { max-width: 100%; height: auto; }
.html-block iframe { max-width: 100%; border: 0; }
.html-block.html-full { width: 100vw; margin-inline: calc(50% - 50vw); }
@media (max-width: 768px) { .html-only-desktop { display: none !important; } }
@media (min-width: 769px) { .html-only-mobile { display: none !important; } }
.html-block > [class^="hx-"] + style + [class^="hx-"] { margin-top: 16px; }
/* platform-run parts of «محتوى HTML» (assets/blocks.js) */
.hb-grid { margin-top: 4px; }
.hb-cd { display: inline-flex; gap: 8px; direction: rtl; }
.hb-cd-u { display: grid; place-items: center; min-width: 58px; padding: 8px 6px; border-radius: 12px; background: rgba(127,127,127,.12); }
.hb-cd-u b { font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hb-cd-u small { font-size: .72rem; opacity: .75; }
.hb-slider { position: relative; }
.hb-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; }
.hb-track::-webkit-scrollbar { display: none; }
.hb-slide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
.hb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #111; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.hb-prev { right: 10px; } .hb-next { left: 10px; }
.hb-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.hb-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(127,127,127,.4); cursor: pointer; transition: width .2s; }
.hb-dots button.on { width: 22px; background: var(--brand); }
.hb-tabs [data-tab] { cursor: pointer; }
.hb-tabs [data-tab].on { border-color: var(--brand); color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .hb-dots button { transition: none; } }
/* «معاينة قبل الاعتماد» */
.draft-bar { position: sticky; top: 0; z-index: 60; display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; padding: 8px 14px; background: #1d4ed8; color: #fff; font-size: .86rem; }
.draft-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.draft-bar.safe { background: #b45309; }
/* «عرض إضافي في السلة» */
.cart-main { min-width: 0; display: grid; gap: 16px; align-content: start; }
.upsells { display: grid; gap: 10px; }
.upsell { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px dashed var(--primary, #c2410c); border-radius: var(--radius, 12px); background: var(--card); }
.upsell .up-img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--soft, #f4f4f5); display: block; }
.upsell .up-img img { width: 100%; height: 100%; object-fit: cover; }
.upsell .up-tx { min-width: 0; display: grid; gap: 2px; }
.upsell .up-title { color: var(--primary, #c2410c); font-weight: 600; }
.upsell .up-tx b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upsell .up-price { font-weight: 700; } .upsell .up-price s { color: var(--muted); font-weight: 400; font-size: .85em; margin-inline-start: 4px; }
.upsell .up-tx b, .upsell .up-price { color: var(--text, inherit); }
/* اشتراكات المنتجات */
.sub-pick { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.sub-opt { display: flex; gap: 10px; align-items: flex-start; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: calc(var(--radius) * .75); cursor: pointer; background: var(--card); }
.sub-opt:has(input:checked) { border-color: var(--brand-fg); background: var(--brand-soft); }
.sub-opt input { margin-top: 4px; accent-color: var(--brand); }
.sub-opt span { display: grid; gap: 3px; } .sub-opt small { color: var(--muted); line-height: 1.7; }
.sub-opt select { width: auto; display: inline-block; min-width: 0; margin: 0 4px; font: inherit; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: inherit; }
.sub-tag { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--brand-fg); background: var(--brand-soft); padding: 2px 8px; border-radius: 99px; margin-top: 4px; }
.sub-row .bad { color: var(--bad); margin-top: 4px; } .sub-row .tag.inline { margin-inline-start: 6px; }
/* الهدية والقطّة في إتمام الطلب */
.big-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.big-check input { margin-top: 5px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.big-check span { display: grid; gap: 3px; } .big-check small { line-height: 1.7; }
.gift-fields, .pool-fields { display: none; margin-top: 14px; }
.gift-box:has(input[name=is_gift]:checked) .gift-fields { display: block; }
.pool-box { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pool-box:has(input[name=pool]:checked) .pool-fields { display: grid; }
.voice-field > span { display: block; margin-bottom: 6px; }
.voice-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.voice-row .linkish { cursor: pointer; text-decoration: underline; }
.voice-field audio { width: 100%; margin-top: 8px; height: 38px; }
/* صفحة الهدية والقطّة */
.gift-page, .pool-page { max-width: 760px; margin: 0 auto; }
.gift-kicker { color: var(--brand-fg); font-weight: 600; margin: 0 0 .3em; }
.gift-card { position: relative; overflow: hidden; text-align: center; padding: 2.4em 1.6em 2em; margin-bottom: 18px; border-radius: var(--radius);
  background: var(--brand-soft); border: 1.5px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.gift-ribbon { position: absolute; inset: 0 auto 0 50%; width: 14px; transform: translateX(-50%); background: color-mix(in srgb, var(--brand) 22%, transparent); }
.gift-card > * { position: relative; }
.gift-card h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: .1em 0 .3em; }
.gift-msg { margin: 1.3em auto 0; max-width: 46ch; padding: 1.1em 1.3em; background: var(--card); border-radius: calc(var(--radius) * .75); font-size: 1.1rem; line-height: 1.9; box-shadow: var(--shadow); }
.gift-voice { display: grid; gap: 8px; justify-items: center; margin-top: 1.2em; }
.gift-voice audio { width: min(100%, 360px); }
.pool-head h1 { margin: .1em 0 .5em; }
.pool-amounts { display: flex; gap: 8px; align-items: baseline; } .pool-amounts b { font-size: 1.8rem; color: var(--brand-fg); }
.pool-bar { height: 12px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 10px 0; }
.pool-bar i { display: block; height: 100%; background: var(--brand); border-radius: inherit; transition: width .6s ease; }
.pool-share { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pool-cols { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 860px) { .pool-page { max-width: 1000px; } .pool-cols { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.pool-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
.pool-chips .chip { border: 1px solid var(--line); background: var(--card); color: inherit; border-radius: 99px; padding: .35em .9em; cursor: pointer; font: inherit; font-size: .9rem; }
.pool-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.pool-list li { display: flex; gap: 10px; align-items: center; }
.pool-list .pav { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-fg); font-weight: 700; flex: none; }
.pool-list div { display: grid; flex: 1; } .pool-list small { color: var(--muted); } .pool-list .amt { font-weight: 600; }
.pool-cancel { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .pool-bar i { transition: none; } }
