/* Sadeem — main stylesheet.
   THEME: every color/font/radius is a CSS variable in :root below. Re-theme here, or let
   sync-brand.py write overrides into css/brand.css (loaded after this file). */
:root {
  --c-primary: #6a3fe0;          /* Nebula Violet: buttons, links, active */
  --c-primary-strong: #6a3fe0;   /* links/text (6.2:1 on white) */
  --c-primary-hover: #3b2ab8;    /* Deep Indigo */
  --c-primary-soft: #efe9ff;
  --c-on-primary: #ffffff;
  --c-accent: #ffa83a;           /* Star Amber: CTAs, always with dark text */
  --c-accent-hover: #f39a24;
  --c-accent-text: #a85400;      /* amber-family text on light */
  --c-on-accent: #15102e;
  --c-bg: #f7f5fb;
  --c-surface: #ffffff;
  --c-surface-2: #ece8f7;
  --c-text: #1c1838;
  --c-muted: #5e5878;
  --c-border: #ddd6ef;
  --c-success: #11704f;
  --c-danger: #b42335;
  --c-warn-bg: #fff4dc;
  --c-warn-text: #6b4500;
  --c-hero-1: #15102e;
  --c-hero-2: #3a2595;
  --font-body: "IBM Plex Sans Arabic", "Readex Pro", "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", "Dubai", system-ui, -apple-system, Arial, sans-serif;
  --font-heading: "Readex Pro", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(20 10 60 / .06), 0 8px 24px rgb(20 10 60 / .07);
  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-primary-strong: #cbb8ff; --c-primary-soft: #2b2257; --c-bg: #15102e; --c-surface: #221a47;
    --c-surface-2: #2b2257; --c-text: #ffffff; --c-muted: #a9a3c4; --c-border: #3a3070; --c-accent-text: #ffa83a;
    --c-success: #4fd1a1; --c-danger: #ff7b8a; --c-warn-bg: #3a2a08; --c-warn-text: #ffd889;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --c-primary-strong: #cbb8ff; --c-primary-soft: #2b2257; --c-bg: #15102e; --c-surface: #221a47;
  --c-surface-2: #2b2257; --c-text: #ffffff; --c-muted: #a9a3c4; --c-border: #3a3070; --c-accent-text: #ffa83a;
  --c-success: #4fd1a1; --c-danger: #ff7b8a; --c-warn-bg: #3a2a08; --c-warn-text: #ffd889;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font-body);
  font-size: 1rem; line-height: 1.7; min-height: 100vh; display: flex; flex-direction: column;
}
:lang(en) body { line-height: 1.55; }
main { flex: 1; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--c-accent); color: var(--c-on-accent); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(28px, 5vw, 56px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.muted { color: var(--c-muted); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 10px 20px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  font-family: var(--font-heading); font-weight: 600; text-decoration: none; transition: background .15s, transform .1s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-accent { background: var(--c-accent); color: var(--c-on-accent); }
.btn-accent:hover { background: var(--c-accent-hover); }
.btn-primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn-primary:hover { background: var(--c-primary-hover); }
.btn-ghost { background: transparent; border-color: var(--c-border); color: var(--c-text); }
.btn-ghost:hover { border-color: var(--c-primary); }
.btn-wa { background: #1f8f4e; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--c-text); position: relative; text-decoration: none;
}
.icon-btn:hover { background: var(--c-surface-2); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- header ---------- */
#site-header { min-height: var(--header-h); }
.topbar { background: var(--c-warn-bg); color: var(--c-warn-text); font-size: .85rem; text-align: center; padding: 6px var(--gutter); }
.header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--c-surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-border); }
.header-row { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-text); font-weight: 800; font-size: 1.35rem; }
.brand img { height: 36px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-light { display: none; } :root:not([data-theme="light"]) .brand .logo-dark { display: block; } }
.nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav a { color: var(--c-text); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-family: var(--font-heading); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--c-primary-soft); color: var(--c-primary-strong); }
.header-search { flex: 1; max-width: 360px; margin-inline-start: auto; position: relative; }
.header-search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--c-border); background: var(--c-surface-2); padding-inline: 16px 44px; }
.header-search button { position: absolute; inset-inline-end: 2px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; }
.header-tools { display: flex; gap: 2px; align-items: center; }
.lang-btn { font-weight: 800; font-size: .9rem; width: auto; padding-inline: 10px; }
.badge-count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 20px; height: 20px; border-radius: 10px; background: var(--c-accent); color: var(--c-on-accent); font-size: .72rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.badge-count:empty { display: none; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 8px var(--gutter) 16px; margin: 0; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .header-search { order: 10; flex-basis: 100%; max-width: none; margin: 0 0 10px; }
  .header-row { flex-wrap: wrap; }
  .header-tools { margin-inline-start: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(110% 90% at 85% 15%, #3a2595 0, transparent 60%), radial-gradient(60% 60% at 80% 30%, #b05cf044 0, transparent 70%), radial-gradient(80% 70% at 5% 100%, #ffa83a33 0, transparent 60%), linear-gradient(160deg, var(--c-hero-1), #211552); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#fff 1px, transparent 1.5px); background-size: 46px 46px; opacity: .14; }
.hero-inner { position: relative; display: grid; gap: 24px; align-items: center; grid-template-columns: 1.2fr 1fr; padding-block: clamp(36px, 7vw, 84px); }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); margin-bottom: .35em; }
.hero p { font-size: 1.1rem; opacity: .92; max-width: 34em; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero .btn-ghost { color: #fff; border-color: #ffffff66; }
.hero-art { justify-self: center; width: min(360px, 80%); aspect-ratio: 1; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; font-size: .9rem; }
.hero-chips li { background: #ffffff1a; border: 1px solid #ffffff33; padding: 4px 12px; border-radius: 999px; }
@media (max-width: 760px) { .hero-inner { grid-template-columns: 1fr; } .hero-art { width: 200px; order: -1; } }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
@media (max-width: 560px) { .grid.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.scroller > * { scroll-snap-align: start; }
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.p-card { position: relative; }
.p-card .media { position: relative; aspect-ratio: 1; background: var(--c-surface-2); }
.p-card .media img { width: 100%; height: 100%; object-fit: cover; }
.p-card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-card h3 { font-size: 1rem; margin: 0; }
.p-card h3 a { color: var(--c-text); text-decoration: none; }
.p-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.p-card .short { font-size: .85rem; color: var(--c-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.p-card .foot .btn { position: relative; z-index: 2; }
.badges { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; gap: 4px; flex-wrap: wrap; z-index: 1; }
.badge { font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow); }
.badge.sale { background: var(--c-danger); color: #fff; }
.badge.new { background: var(--c-primary); color: #fff; }
.badge.custom { background: var(--c-accent); color: var(--c-on-accent); }
.badge.out { background: #555; color: #fff; }
.price, .pdp-price { font-family: var(--font-heading); }
.price { font-weight: 700; font-size: 1.05rem; }
.price del { color: var(--c-muted); font-weight: 500; font-size: .85em; margin-inline-start: 6px; }
.swatches-mini { display: flex; gap: 3px; }
.swatches-mini span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #0003; }

.cat-card { text-decoration: none; color: var(--c-text); position: relative; }
.cat-card .media { aspect-ratio: 4/3; overflow: hidden; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cat-card:hover img { transform: scale(1.04); }
.cat-card .body { padding: 10px 12px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.grid.cats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }

.aud-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text); text-decoration: none; font-weight: 700; }
.chip:hover { border-color: var(--c-primary); color: var(--c-primary-strong); }

.bundle-card .body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bundle-thumbs { display: flex; gap: 6px; padding: 12px 16px 0; }
.bundle-thumbs img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.save { color: var(--c-accent-text); font-weight: 700; }

.season { background: radial-gradient(90% 120% at 90% 0, #3a2595, #15102e 70%); color: #fff; border-radius: var(--radius); padding: clamp(18px, 4vw, 36px); position: relative; overflow: hidden; }
.season::after { content: ""; position: absolute; width: 220px; height: 220px; inset-inline-end: -40px; top: -60px; border-radius: 50%; box-shadow: -34px 24px 0 0 #ffa83a; opacity: .9; }
.season > * { position: relative; z-index: 1; }
.season .p-card { color: var(--c-text); }
.season a.more { color: #ffd889; }

.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: 0; list-style: none; }
.steps li { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 18px; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 800; margin-bottom: 8px; }
.trust { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.trust > div { display: flex; gap: 12px; align-items: flex-start; background: var(--c-primary-soft); padding: 16px; border-radius: var(--radius); }
.trust svg { flex: none; width: 30px; height: 30px; color: var(--c-primary-strong); }
.trust b { display: block; }

/* ---------- shop / filters ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.filters { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px; position: sticky; top: calc(var(--header-h) + 12px); max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.filters legend { font-weight: 800; margin-bottom: 6px; }
.filters label.opt { display: flex; gap: 8px; align-items: center; padding: 4px 0; cursor: pointer; }
.filters input[type="checkbox"], .filters input[type="radio"] { width: 18px; height: 18px; accent-color: var(--c-primary); }
.price-range { display: flex; gap: 8px; }
.price-range input { width: 100%; }
.color-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.color-opts label { position: relative; }
.color-opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.color-opts span { display: block; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--c-border); }
.color-opts input:checked + span { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.color-opts input:focus-visible + span { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; }
.filters-toggle { display: none; }
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: static; max-height: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
}
.empty { text-align: center; padding: 48px 16px; color: var(--c-muted); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 700; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  background: var(--c-surface); color: var(--c-text);
}
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--c-primary); outline: 3px solid color-mix(in srgb, var(--c-primary) 30%, transparent); outline-offset: 0; }
.input[aria-invalid="true"] { border-color: var(--c-danger); }
.err { color: var(--c-danger); font-size: .875rem; min-height: 0; }
.err:empty { display: none; }
.hint { color: var(--c-muted); font-size: .85rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--c-border); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; background: var(--c-surface); }
.pay-opt:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); }
.pay-opt input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--c-primary); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.alert-error { background: color-mix(in srgb, var(--c-danger) 12%, var(--c-surface)); color: var(--c-text); border: 1px solid var(--c-danger); }
.alert-warn { background: var(--c-warn-bg); color: var(--c-warn-text); }
.alert-ok { background: color-mix(in srgb, var(--c-success) 12%, var(--c-surface)); border: 1px solid var(--c-success); }

/* ---------- product page ---------- */
.crumbs { font-size: .875rem; padding-block: 14px 4px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li:not(:last-child)::after { content: "‹"; margin-inline-start: 6px; color: var(--c-muted); }
:lang(en) .crumbs li:not(:last-child)::after { content: "›"; }
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(18px, 4vw, 40px); align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }
.gallery .main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--c-surface-2); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { padding: 0; border: 2px solid var(--c-border); border-radius: 10px; overflow: hidden; width: 68px; height: 68px; flex: none; cursor: pointer; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--c-primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { margin-bottom: .2em; }
.pdp-price { font-size: 1.6rem; font-weight: 800; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pdp-price del { font-size: 1rem; color: var(--c-muted); font-weight: 500; }
.lead { display: inline-flex; gap: 8px; align-items: center; background: var(--c-primary-soft); color: var(--c-primary-strong); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 14px; }
.swatches legend { font-weight: 700; margin-bottom: 6px; }
.swatches label { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--c-border); border-radius: 999px; padding: 6px 12px 6px 8px; cursor: pointer; background: var(--c-surface); }
.swatches input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatches label:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); }
.swatches label:has(input:focus-visible) { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.swatches .dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #0003; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-border); border-radius: 999px; overflow: hidden; background: var(--c-surface); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; }
.qty input { width: 48px; text-align: center; border: 0; background: transparent; height: 44px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-block: 16px; }
.buy-row .btn-accent { flex: 1; min-width: 180px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.specs dt { color: var(--c-muted); }
.specs dd { margin: 0; font-weight: 600; }
.highlights { padding-inline-start: 1.2em; }
.highlights li { margin-bottom: 4px; }
.panel { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.sticky-buy { display: none; }
@media (max-width: 860px) {
  .sticky-buy.show { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 30; gap: 10px; align-items: center; padding: 10px var(--gutter); background: var(--c-surface); border-top: 1px solid var(--c-border); box-shadow: 0 -6px 18px rgb(0 0 0 / .1); }
  .sticky-buy .btn { flex: 1; }
}

/* ---------- cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--c-border); align-items: start; }
.cart-line img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; }
.cart-line h3 { font-size: 1rem; margin: 0 0 4px; }
.cart-line h3 a { color: var(--c-text); }
.cart-line .meta { font-size: .85rem; color: var(--c-muted); }
.cart-line .actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; color: var(--c-danger); cursor: pointer; text-decoration: underline; padding: 6px 4px; min-height: 36px; }
.summary { position: sticky; top: calc(var(--header-h) + 12px); }
.summary .line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.summary .total { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--c-border); margin-top: 6px; padding-top: 12px; }
.free-bar { height: 8px; border-radius: 4px; background: var(--c-surface-2); overflow: hidden; margin-top: 6px; }
.free-bar span { display: block; height: 100%; background: var(--c-success); }
.upsell { margin-top: 28px; }

.confirm { text-align: center; max-width: 620px; margin-inline: auto; }
.order-code { font-size: 2rem; font-weight: 900; letter-spacing: .06em; background: var(--c-primary-soft); color: var(--c-primary-strong); padding: 10px 22px; border-radius: var(--radius); display: inline-block; margin: 8px 0 16px; direction: ltr; }
.check-ic { width: 72px; height: 72px; margin: 0 auto 10px; color: var(--c-success); }

/* ---------- prose / faq ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.draft-note { border-inline-start: 4px solid var(--c-accent); }
details.faq { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-sm); margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style-position: inside; }
details.faq > div { padding: 0 16px 14px; }

/* ---------- footer ---------- */
.footer { background: var(--c-surface); border-top: 1px solid var(--c-border); margin-top: 40px; padding-block: 32px 20px; font-size: .95rem; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer h2 { font-size: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; }
.footer a { color: var(--c-text); }
.pay-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pay-badges span { border: 1px solid var(--c-border); border-radius: 6px; padding: 2px 8px; font-size: .8rem; font-weight: 700; }
.copyright { border-top: 1px solid var(--c-border); margin-top: 24px; padding-top: 16px; color: var(--c-muted); font-size: .85rem; }

/* ---------- misc ---------- */
.toast { position: fixed; bottom: 18px; inset-inline: 0; margin-inline: auto; width: max-content; max-width: calc(100% - 32px); background: var(--c-text); color: var(--c-bg); padding: 12px 18px; border-radius: 12px; z-index: 90; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; }
.toast a { color: inherit; font-weight: 800; text-decoration: underline; }
.skeleton { min-height: 60vh; display: grid; place-items: center; color: var(--c-muted); }
.spinner { width: 34px; height: 34px; border: 4px solid var(--c-border); border-top-color: var(--c-primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.nf { text-align: center; padding-block: 60px; }
.nf .big { font-size: clamp(4rem, 15vw, 8rem); font-weight: 900; color: var(--c-primary); line-height: 1; }
.btn svg, .lead svg, .pay-opt svg, .chip svg { width: 18px; height: 18px; flex: none; }
/* bold UI text uses the display font (one variable file) so the body font's Bold file is rarely needed */
b, strong, legend, summary, label, dt, .label, .badge, .badge-count, .chip, .brand, .order-code, .lead, .save, .skip, .lang-btn, .cat-card .body, .pay-badges span, .steps li::before { font-family: var(--font-heading); }
