/* Дэлгүүрийн сайт (худалдан авагч) — утсанд эхэлж, компьютерт өргөсдөг */
body { background: var(--ground); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.shop-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.shop-top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; color: var(--ink); }
.brand-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; font-weight: 700; font-size: 18px; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-btn { position: relative; width: 48px; height: 48px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); display: flex; align-items: center; justify-content: center; }
.cart-btn .n { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cart-btn .n:empty { display: none; }

.hero { padding: 20px 0 6px; display: flex; flex-direction: column; gap: 12px; }
.hero h1 { margin: 0; font-size: clamp(24px, 6vw, 36px); line-height: 1.15; letter-spacing: -0.01em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); text-decoration: none; }
.fact.accent { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 25%, var(--surface)); color: var(--ink); }

.tools { position: sticky; top: 64px; z-index: 15; background: var(--ground); padding: 10px 0; display: flex; flex-direction: column; gap: 10px; }
.searchbar { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 14px; color: var(--muted); }
.searchbar:focus-within { border-color: var(--accent); }
.searchbar input { border: 0; outline: none; background: transparent; flex: 1; font-size: 16px; min-width: 0; color: var(--ink); -webkit-appearance: none; appearance: none; border-radius: 0; padding: 0; }
.searchbar input::-webkit-search-decoration, .searchbar input::-webkit-search-results-decoration { -webkit-appearance: none; display: none; }
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.cats::-webkit-scrollbar { display: none; }
.cats .chip[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 6px 0 120px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card-p { display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); text-align: left; padding: 0; color: inherit; }
/* Зураг хэвийн урсгалаар (absolute биш) — iPhone Safari товч доторх absolute зургийг харуулдаггүй */
.card-p .ph { position: relative; display: block; overflow: hidden; background: #E9ECF0; color: #8A919C; }
.card-p .ph-none { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; min-height: 120px; }
.card-p .ph img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.cp-open { display: flex; flex-direction: column; flex: 1; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.card-p .body { padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.cp-add { margin: 0 10px 10px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--accent); border-radius: var(--r-ctl, 12px); background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .12s ease, background .15s ease; }
.cp-add svg { width: 18px; height: 18px; }
.cp-add:active { transform: scale(.97); }
.cp-add.is-added { background: var(--surface); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink); }
.cp-add:disabled { background: transparent; border-color: var(--line-2); color: var(--muted); cursor: default; }
.card-p .nm { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-p .pr { font-size: 16px; font-weight: 700; }
.card-p .pr s { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.tag { position: absolute; top: 8px; left: 8px; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 8px; }
.tag.sale { background: #B42318; color: #fff; }
.tag.out { background: rgba(18,22,31,.82); color: #fff; }
.card-p.is-out .ph img { opacity: .55; }

.state-msg { text-align: center; padding: 56px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ---- доод сагсны мөр ---- */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--ground) 70%, transparent); pointer-events: none; }
.cartbar button { pointer-events: auto; max-width: 560px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px; border-radius: 16px; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 16px; font-weight: 600; box-shadow: 0 6px 20px rgba(18,22,31,.18); }
.cartbar[hidden] { display: none; }

/* ---- dialog (барааны дэлгэрэнгүй, сагс) ---- */
dialog.sheet { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; background: var(--surface); color: var(--ink); overflow: hidden; }
dialog.sheet::backdrop { background: rgba(18,22,31,.5); }
@media (min-width: 720px) {
  dialog.sheet { margin: auto; max-width: 560px; border-radius: 22px; }
}
.sheet-inner { display: flex; flex-direction: column; max-height: inherit; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 18px; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.close-x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(18,22,31,.2); }

.gallery { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1 / 1; background: #E9ECF0; }
.slides::-webkit-scrollbar { display: none; }
@supports not (aspect-ratio: 1 / 1) { .slides { height: 100vw; max-height: 560px; } }
.slides img { flex: 0 0 100%; width: 100%; height: 100%; min-width: 0; object-fit: cover; scroll-snap-align: center; }
.slides .noimg { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; color: #8A919C; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(18,22,31,.15); }
.dots i.on { background: #fff; width: 18px; border-radius: 4px; }
.pd { padding: 16px 18px 8px; display: flex; flex-direction: column; gap: 12px; }
.pd h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.pd .price { font-size: 22px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pd .price s { font-size: 15px; font-weight: 400; color: var(--muted); }
.pd .price .off { font-size: 13px; color: #B42318; font-weight: 700; }
.pd .desc { white-space: pre-line; font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.pd .cat { font-size: 13px; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts .chip { min-width: 48px; min-height: 44px; justify-content: center; border-radius: 12px; }
.opts .chip[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.opt-label { font-size: 14px; font-weight: 600; }
.opt-label.err { color: var(--danger); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 14px; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; }
.qty output { min-width: 32px; text-align: center; font-weight: 700; font-size: 16px; }
.add-row { display: flex; gap: 10px; align-items: center; }
.add-row .btn { flex: 1; }

.citem { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.citem .thumb { width: 64px; height: 64px; }
.citem .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.citem .nm { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.citem .sub { font-size: 13px; color: var(--muted); }
.citem .qty { border-radius: 12px; }
.citem .qty button { width: 38px; height: 40px; }
.sum { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; font-size: 16px; }
.sum b { font-size: 20px; }
.checkout { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.checkout h3 { margin: 6px 0 0; font-size: 16px; }
.done-box { padding: 32px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.done-box .big { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.done-box h2 { margin: 0; font-size: 22px; }
.done-box p { margin: 0; color: var(--ink-2); line-height: 1.5; }

.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 120px; font-size: 14px; color: var(--ink-2); }
.foot .wrap { display: flex; flex-direction: column; gap: 10px; }
.foot b { font-size: 16px; color: var(--ink); }
.foot a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.foot small { color: var(--muted); }

/* ---- захиалга: дүн, бүс, төлбөр, байршил ---- */
.sums { padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.sums > div { display: flex; justify-content: space-between; gap: 12px; }
.sums .grand { color: var(--ink); font-size: 16px; padding-top: 6px; border-top: 1px dashed var(--line-2); }
.sums .grand b { font-size: 20px; }
.hint-line { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; }
.hint-line svg { flex-shrink: 0; margin-top: 2px; }
.paypick { display: flex; flex-direction: column; gap: 8px; }
.payopt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; }
.payopt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.payopt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.payopt span { display: flex; flex-direction: column; gap: 2px; }
.payopt b { font-size: 15px; }
.payopt small { font-size: 13px; color: var(--muted); }
.locbox { display: flex; flex-direction: column; gap: 6px; }
.loc-btn { justify-content: flex-start; min-height: 46px; }
.loc-ok { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 46px; padding: 0 12px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-size: 14px; font-weight: 600; }
.loc-ok a { color: var(--ok); }
.loc-ok .spinner { width: 18px; height: 18px; border-width: 2px; }
.bankbox { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: var(--ground); border: 1px solid var(--line); }
.bankbox > b { font-size: 16px; margin-bottom: 4px; }
.bankbox .brow { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 14px; min-height: 36px; }
.bankbox .brow > span:first-child { color: var(--muted); }
.bankbox .v { font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bankbox small { color: var(--muted); font-size: 12px; }
.bankbox .linkbtn { min-height: 36px; font-size: 13px; }
.done-box .pmeta { margin-top: -6px; }

/* ---- нүүр баннер ---- */
.hero-b { padding: 14px 0 4px; display: flex; flex-direction: column; gap: 12px; }
.banner { position: relative; }
.b-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; gap: 0; }
.b-track::-webkit-scrollbar { display: none; }
.b-slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; display: flex; flex-direction: column; border: 0; padding: 0; margin: 0; background: var(--surface); text-align: left; color: inherit; font: inherit; overflow: hidden; }
button.b-slide { cursor: pointer; }
.b-media { display: block; position: relative; overflow: hidden; background: #E9ECF0; }
.b-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 720px) { .b-media img { aspect-ratio: 5 / 2; } }
.b-text { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.b-title { font-size: clamp(20px, 5.4vw, 34px); font-weight: 700; line-height: 1.15; text-wrap: balance; }
.b-sub { font-size: clamp(14px, 3.6vw, 18px); line-height: 1.4; }
.b-btn { margin-top: 6px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); min-height: 44px; pointer-events: none; }
.s-overlay .b-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 18px; color: #FFFFFF; background: linear-gradient(to top, rgba(10,12,18,.78), rgba(10,12,18,.35) 60%, transparent); }
.s-overlay .b-title, .s-overlay .b-sub { text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.s-below .b-text { padding: 14px 16px 16px; }
.s-below .b-sub { color: var(--muted); }
.b-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.s-below ~ .b-dots, .banner:has(.s-below) .b-dots { position: static; padding-top: 8px; }
.b-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.65); box-shadow: 0 0 0 1px rgba(18,22,31,.2); transition: width .2s; }
.banner:has(.s-below) .b-dots i { background: var(--line-2); box-shadow: none; }
.b-dots i.on { width: 18px; border-radius: 4px; background: #FFFFFF; }
.banner:has(.s-below) .b-dots i.on { background: var(--accent); }

/* ---- жагсаалтын толгой, цааш үзэх, дээш ---- */
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 0 8px; }
.sortbox select { min-height: 40px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); padding: 0 10px; font-size: 14px; color: var(--ink); }
.grid { padding-bottom: 12px; }
.more-zone { display: flex; justify-content: center; padding: 8px 0 120px; min-height: 60px; }
.more-zone .btn { min-width: 200px; }
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 24; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 4px 14px rgba(18,22,31,.16); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.to-top svg { transform: rotate(90deg); }

/* ---- хуваалцах ---- */
.pd-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pd-title-row h2 { flex: 1; min-width: 0; }
.share-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink); }

/* =====================================================================
   ЗАГВАРУУД (theme) — админ → Тохиргоо → Загвар
   Бүх фонт монгол Ө, Ү үсэг болон ₮ тэмдгийг бүрэн дэмждэг.
   ===================================================================== */
:root {
  --font-display: var(--font); --display-weight: 700; --display-transform: none; --display-tracking: -0.01em; --display-scale: 1;
  --r-card: 16px; --r-ctl: 14px; --card-border: 1px solid var(--line); --shadow-card: none;
  --chip-border: 1.5px solid var(--line-2); --btn-shadow: none; --ph: #E9ECF0; --toast-bg: #12161F;
}

/* Зөөлөн — өнгө шингэсэн зөөлөн дэвсгэр, том булан, хөнгөн сүүдэр */
:root[data-theme="soft"] {
  --font: 'Manrope', system-ui, sans-serif;
  --font-display: 'Geologica', 'Manrope', system-ui, sans-serif; --display-weight: 800; --display-tracking: -0.02em;
  --ground: color-mix(in srgb, var(--accent) 6%, #F7F8FA);
  --surface: #FFFFFF; --line: #E7E9EE; --line-2: #DCE0E6;
  --r-card: 24px; --r-ctl: 18px; --radius: 18px;
  --card-border: 0 solid transparent;
  --shadow-card: 0 1px 2px rgba(18, 22, 31, .04), 0 10px 28px rgba(18, 22, 31, .07);
  --chip-border: 1.5px solid transparent;
  --btn-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 32%, transparent);
  --ph: color-mix(in srgb, var(--accent) 8%, #EEF0F3);
}
:root[data-theme="soft"] .chip:not([aria-pressed='true']) { background: var(--surface); box-shadow: 0 1px 2px rgba(18, 22, 31, .06); }
:root[data-theme="soft"] .searchbar { background: var(--surface); box-shadow: 0 1px 2px rgba(18, 22, 31, .05); }

/* Премиум бараан — гүн хар дэвсгэр, тодрох өнгөт товч */
:root[data-theme="dark"] {
  color-scheme: dark;
  --font: 'Manrope', system-ui, sans-serif;
  --font-display: 'Geologica', 'Manrope', system-ui, sans-serif; --display-weight: 700;
  --ground: #0D0E11; --surface: #16181D; --ink: #F3F4F6; --ink-2: #D5D8DE; --muted: #9AA1AD; --subtle: #B4BAC4;
  --line: #24272E; --line-2: #333740;
  --ok-bg: #12301F; --ok: #6FD99A; --warn-bg: #3A2E0B; --warn: #F2C94C; --info-bg: #13213D; --info: #8DB3FF; --danger: #FF7A6E;
  --r-card: 20px; --r-ctl: 16px;
  --card-border: 1px solid var(--line);
  --btn-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 40%, transparent);
  --ph: #1D2026; --toast-bg: #2A2D35;
}
:root[data-theme="dark"] .close-x { background: rgba(22, 24, 29, .85); color: var(--ink); }
:root[data-theme="dark"] .demo-banner { background: #3A2E0B; color: #F2C94C; }

/* Тод — зузаан хүрээ, хатуу сүүдэр (neo-brutal), залуу брэндэд */
:root[data-theme="bold"] {
  --font: 'Rubik', system-ui, sans-serif;
  --font-display: 'Rubik', system-ui, sans-serif; --display-weight: 800; --display-transform: uppercase; --display-tracking: 0;
  --ground: #F1F3F6; --surface: #FFFFFF; --ink: #0B0B0C; --ink-2: #1F2125;
  --line: #0B0B0C; --line-2: #0B0B0C;
  --r-card: 14px; --r-ctl: 12px; --radius: 12px;
  --card-border: 2px solid #0B0B0C; --shadow-card: 4px 4px 0 #0B0B0C;
  --chip-border: 2px solid #0B0B0C; --btn-shadow: 3px 3px 0 #0B0B0C;
  --ph: color-mix(in srgb, var(--accent) 14%, #FFFFFF);
}
:root[data-theme="bold"] .btn-primary { border: 2px solid #0B0B0C; }
:root[data-theme="bold"] .tag { border: 2px solid #0B0B0C; }

/* Тансаг — нарийн сериф гарчиг, цагаан орон зай; хувцас, гоо сайханд */
:root[data-theme="elegant"] {
  --font: 'Manrope', system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif; --display-weight: 600; --display-tracking: 0; --display-scale: 1.22;
  --ground: #FFFFFF; --surface: #FFFFFF; --ink: #161616; --ink-2: #2E2E2E; --muted: #6B6B6B;
  --line: #E6E6E6; --line-2: #D9D9D9;
  --r-card: 4px; --r-ctl: 4px; --radius: 4px;
  --card-border: 0 solid transparent; --shadow-card: none;
  --ph: #F3F3F2;
}
:root[data-theme="elegant"] .card-p .body { padding-inline: 2px; }
:root[data-theme="elegant"] .card-p .pr { font-weight: 600; }
:root[data-theme="elegant"] .chip { border-radius: 4px; }

/* Загварын токенуудыг бүрэлдэхүүнд хэрэглэх */
.card-p { border: var(--card-border); border-radius: var(--r-card); box-shadow: var(--shadow-card); transition: transform .18s ease, box-shadow .18s ease; }
.card-p .ph, .b-media, .slides, .thumb { background: var(--ph); }
.b-track { border-radius: var(--r-card); }
.searchbar, .sortbox select, .cart-btn { border: var(--chip-border); border-radius: var(--r-ctl); }
.chip { border: var(--chip-border); }
.cats .chip[aria-pressed='true'], .opts .chip[aria-pressed='true'] { border-color: var(--accent); }
:root[data-theme="bold"] .cats .chip[aria-pressed='true'] { border-color: #0B0B0C; }
.btn-primary { box-shadow: var(--btn-shadow); }
.hero h1, .b-title, .brand b, .pd h2, .done-box h2, .foot b, .sheet-head h2 {
  font-family: var(--font-display); font-weight: var(--display-weight);
  text-transform: var(--display-transform); letter-spacing: var(--display-tracking);
}
.hero h1 { font-size: calc(clamp(24px, 6vw, 36px) * var(--display-scale)); }
.b-title { font-size: calc(clamp(20px, 5.4vw, 34px) * var(--display-scale)); }
.pd h2 { font-size: calc(20px * var(--display-scale)); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card-p:hover { transform: translateY(-3px); }
  :root[data-theme="bold"] .card-p:hover { box-shadow: 6px 6px 0 #0B0B0C; }
}
:root[data-theme="elegant"] .brand b { font-size: 23px; }
:root[data-theme="soft"] .hero h1 { font-size: calc(clamp(26px, 7vw, 40px) * var(--display-scale)); }

/* Карт дээрх "Сагсанд" товч — загвар бүрт */
:root[data-theme="soft"] .cp-add { border-radius: 999px; }
:root[data-theme="bold"] .cp-add { border: 2px solid #0B0B0C; text-transform: uppercase; letter-spacing: .02em; }
:root[data-theme="bold"] .cp-add:disabled { border-color: #0B0B0C; color: #0B0B0C; opacity: .5; }
:root[data-theme="elegant"] .cp-add { margin: 0 2px 6px; background: transparent; color: var(--ink); border-color: var(--ink); border-width: 1px; letter-spacing: .04em; }
:root[data-theme="elegant"] .cp-add:disabled { border-color: var(--line-2); color: var(--muted); }

/* aspect-ratio-гүй маш хуучин хөтөч: зургийн өндрийг ойролцоогоор тогтооно */
@supports not (aspect-ratio: 1 / 1) {
  .card-p .ph img, .card-p .ph-none { height: 44vw; max-height: 300px; }
  .b-media img { height: 56vw; max-height: 480px; }
}
