/* Бэлэгтэй захиалга — дэлгүүрийн загвар. Цэвэрхэн, дулаан саарал/элсэн өнгө, том зураг, олон хоосон зай. */
:root {
  --bg: #ffffff;
  --ink: #221c18;
  --ink-2: #4a423c;
  --muted: #7b726b;
  --line: #e9e4dd;
  --soft: #f5f2ed;
  --sand: #efe8dc;
  --stone: #b8b1aa;
  --tan: #ddd3c3;
  --accent: #9a4b3c;
  --ok: #2f6b4f;
  --warn: #a86a1d;
  --danger: #b03a2e;
  --radius: 2px;
  --wrap: 1360px;
  --gutter: 40px;
  --header-h: 68px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
@media (max-width: 860px) {
  :root { --gutter: 16px; --header-h: 56px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
/* Толгойн sticky нь body-д наалдахын тулд орлуулагч div-үүд хайрцаггүй; хөл богино хуудсанд доор байрлана */
#chrome-top, #chrome-bottom { display: contents; }
#main { flex: 1 0 auto; width: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Дээд тууз (зарлал) ---------- */
.announce { background: var(--sand); color: var(--ink-2); font-size: 13px; height: 36px; overflow: hidden; position: relative; }
.announce-track { display: flex; gap: 64px; white-space: nowrap; height: 36px; align-items: center; width: max-content; animation: marquee 38s linear infinite; padding-left: 64px; }
.announce-track span { display: inline-flex; align-items: center; gap: 10px; }
.announce-track span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--stone); }
.announce:hover .announce-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .announce-track { animation: none; justify-content: center; width: 100%; padding: 0 16px; }
  .announce-track span:nth-child(n+2) { display: none; }
}

/* ---------- Толгой ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.logo svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.nav { display: flex; gap: 26px; font-size: 14.5px; overflow: hidden; }
.nav a { white-space: nowrap; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 18px; font-size: 14.5px; }
.icon-btn { background: none; border: 0; padding: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cart-link .cart-icon { display: none; }
.menu-btn { display: none; }
@media (max-width: 1080px) { .nav { gap: 18px; } }
@media (max-width: 860px) {
  .header-row { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; justify-self: start; margin-left: -6px; }
  .logo { justify-self: center; font-size: 17px; }
  .logo svg { width: 22px; height: 22px; }
  .header-actions { justify-self: end; gap: 6px; }
  .cart-link .cart-text { display: none; }
  .cart-link .cart-icon { display: inline-flex; position: relative; padding: 6px; }
  .cart-link .cart-icon svg { width: 22px; height: 22px; }
  .cart-badge { position: absolute; top: 0; right: -2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 10.5px; display: grid; place-items: center; font-weight: 600; }
  .cart-badge:empty, .cart-badge[data-n="0"] { display: none; }
}

/* Гар утасны цэс */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(34,28,24,.35); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 360px); background: #fff; z-index: 61; transform: translateX(-100%); transition: transform .28s ease; display: flex; flex-direction: column; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer-head { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); }
.drawer nav { display: flex; flex-direction: column; padding: 8px 0; overflow-y: auto; }
.drawer nav a { padding: 14px 20px; font-size: 16px; border-bottom: 1px solid var(--soft); }
.drawer nav .drawer-label { padding: 18px 20px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.drawer-foot { margin-top: auto; padding: 16px 20px 24px; font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }

/* Хайлтын давхарга */
.search-overlay { position: fixed; inset: 0; z-index: 70; background: #fff; display: none; }
.search-overlay.open { display: block; }
.search-box { max-width: 760px; margin: 0 auto; padding: 90px var(--gutter) 0; }
.search-box form { display: flex; align-items: center; gap: 12px; border-bottom: 1.5px solid var(--ink); padding-bottom: 10px; }
.search-box form svg { width: 26px; height: 26px; flex: none; color: var(--muted); }
.search-box input { flex: 1; border: 0; outline: 0; font-size: 26px; background: transparent; letter-spacing: -0.01em; min-width: 0; }
.search-box input::-webkit-search-cancel-button { display: none; }
@media (max-width: 860px) { .search-box { padding-top: 72px; } .search-box input { font-size: 21px; } }
.search-close { position: absolute; top: 18px; right: 18px; }
.search-hint { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* ---------- Товч ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 28px; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 500; font-size: 15px; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.btn:hover { background: #000; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--sand); border-color: var(--sand); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translate(2px, -2px); }
.text-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--stone); }
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- Нүүр: hero ---------- */
.hero { position: relative; }
.hero-photo { position: relative; height: min(78vh, 760px); min-height: 460px; overflow: hidden; background: var(--soft); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.38) 100%); }
.hero-photo .hero-copy { position: absolute; left: 0; right: 0; bottom: 56px; z-index: 1; color: #fff; }
.hero-photo h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 500; max-width: 14ch; }
.hero-photo p { margin-top: 14px; max-width: 46ch; font-size: 16px; opacity: .92; }
.hero-photo .hero-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-plain { background: var(--sand); }
.hero-plain .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-plain h1 { font-size: clamp(34px, 4.6vw, 62px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.hero-plain p { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 44ch; }
.hero-plain .hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--ink-2); }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--accent); }
.hero-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-mosaic a { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #fff; }
.hero-mosaic a:nth-child(2) { transform: translateY(36px); }
.hero-mosaic a:nth-child(4) { transform: translateY(36px); }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-mosaic a:hover img { transform: scale(1.03); }
@media (max-width: 860px) {
  .hero-plain .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; padding-bottom: 48px; }
  .hero-mosaic { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .hero-mosaic a:nth-child(2), .hero-mosaic a:nth-child(4) { transform: none; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-photo { height: 72vh; min-height: 420px; }
  .hero-photo .hero-copy { bottom: 32px; }
}

/* ---------- Хэсгүүд ---------- */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-title { font-size: 30px; font-weight: 500; }
.section-sub { margin-top: 8px; color: var(--muted); }
@media (max-width: 860px) {
  .section { padding: 48px 0; }
  .section-title { font-size: 23px; }
  .section-head { margin-bottom: 22px; }
}

/* Алхмууд */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { padding: 30px 28px 32px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.step h3 { margin-top: 14px; font-size: 18px; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step, .step + .step { padding: 22px 16px 24px 0; border-left: 0; }
  .step:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .step h3 { font-size: 16px; }
}

/* Ангиллын хавтан */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px; }
.cat-tile { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--soft); display: block; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile .cat-label { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 500; text-shadow: 0 1px 12px rgba(0,0,0,.25); background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.12)); }
.cat-tile.no-image { background: var(--sand); }
.cat-tile.no-image .cat-label { color: var(--ink); text-shadow: none; background: none; }
.cat-tile .cat-count { position: absolute; left: 16px; bottom: 14px; font-size: 13px; color: #fff; opacity: .9; }
.cat-tile.no-image .cat-count { color: var(--muted); }
@media (max-width: 860px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .cat-tile .cat-label { font-size: 18px; }
}

/* Онцлох баннер (саарал) */
.feature { background: var(--stone); color: #fff; }
.feature .wrap { padding-top: 110px; padding-bottom: 64px; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; }
.feature h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; max-width: 18ch; }
.feature p { margin-top: 14px; max-width: 56ch; font-size: 16px; opacity: .95; }
.feature .btn { margin-top: 28px; align-self: flex-start; }
.feature.sand { background: var(--sand); color: var(--ink); }
@media (max-width: 860px) { .feature .wrap { padding-top: 64px; padding-bottom: 40px; min-height: 0; } }

/* ---------- Барааны карт ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid, .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; } }
.card { display: block; position: relative; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform .6s ease; }
.card-media img.alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card-media img.alt { opacity: 1; }
  .card:hover .card-media img:only-of-type { transform: scale(1.03); }
}
.card-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; font-size: 12px; background: #fff; color: var(--ink); border-radius: var(--radius); }
.tag svg { width: 13px; height: 13px; }
.tag-accent { background: var(--accent); color: #fff; }
.tag-dark { background: var(--ink); color: #fff; }
.card.soldout .card-media img { filter: grayscale(.4); opacity: .65; }
.card-body { padding-top: 14px; }
.card-title { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin-top: 6px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 15px; }
.card-price b { font-weight: 500; }
.card-price s { color: var(--muted); font-size: 13.5px; }
.card-price .sale { color: var(--accent); }
.card-meta { margin-top: 4px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .card-title, .card-price { font-size: 14px; }
  .card-body { padding-top: 10px; }
}

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--soft) 0%, #ece7e0 50%, var(--soft) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-line { height: 14px; margin-top: 10px; border-radius: 2px; }

/* ---------- Дэлгүүр (жагсаалт) ---------- */
.page-head { padding: 44px 0 28px; }
.page-head h1 { font-size: 36px; font-weight: 500; }
.page-head p { margin-top: 8px; color: var(--muted); }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 18px; display: inline-flex; align-items: center; font-size: 14px; background: #fff; white-space: nowrap; }
.chip:hover { border-color: var(--ink-2); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.select { height: 38px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 34px 0 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23221c18' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-size: 14px; }
.empty { padding: 72px 0; text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 20px; margin-bottom: 8px; }
.empty .btn { margin-top: 22px; }
.pager { display: flex; justify-content: center; margin-top: 48px; }
@media (max-width: 860px) {
  .page-head { padding: 26px 0 18px; }
  .page-head h1 { font-size: 26px; }
  .toolbar { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 22px; }
  .toolbar .select { align-self: flex-end; }
}

/* ---------- Барааны хуудас ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; padding-top: 28px; padding-bottom: 72px; }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; position: sticky; top: calc(var(--header-h) + 20px); }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 640px; overflow-y: auto; scrollbar-width: none; }
.gallery-thumbs button { border: 1px solid transparent; padding: 0; background: var(--soft); aspect-ratio: 4 / 5; overflow: hidden; opacity: .7; }
.gallery-thumbs button.active { border-color: var(--ink); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.gallery-main .slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-main .slides::-webkit-scrollbar { display: none; }
.gallery-main .slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: none; justify-content: center; gap: 6px; }
.gallery-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.gallery-dots i.active { background: #fff; width: 16px; border-radius: 3px; }
.pdp-info { padding-top: 6px; }
.pdp-cat { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pdp-title { margin-top: 10px; font-size: 30px; font-weight: 500; line-height: 1.2; }
.pdp-price { margin-top: 16px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pdp-price b { font-size: 26px; font-weight: 500; letter-spacing: -0.01em; }
.pdp-price s { color: var(--muted); font-size: 17px; }
.pdp-price .tag { align-self: center; }
.gift-box { margin-top: 20px; display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--sand); font-size: 14.5px; }
.gift-box svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.opt { margin-top: 26px; }
.opt-label { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.opt-label b { color: var(--ink); font-weight: 500; }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-values button { min-width: 48px; height: 42px; padding: 0 16px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.opt-values button:hover { border-color: var(--ink-2); }
.opt-values button.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt-values button[disabled] { color: var(--stone); text-decoration: line-through; pointer-events: none; }
.opt-values button img { width: 26px; height: 26px; object-fit: cover; margin-left: -8px; }
.opt.invalid .opt-label { color: var(--danger); }
.qty-row { margin-top: 26px; display: flex; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 50px; border-radius: var(--radius); }
.qty button { width: 44px; height: 100%; background: none; border: 0; display: grid; place-items: center; }
.qty button svg { width: 16px; height: 16px; }
.qty input { width: 40px; text-align: center; border: 0; outline: 0; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-row .btn { flex: 1; }
.buy-now { margin-top: 10px; }
.facts { margin-top: 30px; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.fact svg { width: 22px; height: 22px; color: var(--ink-2); }
.fact b { font-weight: 500; display: block; margin-bottom: 2px; }
.fact span { color: var(--ink-2); }
.pdp-desc { margin-top: 30px; }
.pdp-desc h2 { font-size: 17px; margin-bottom: 12px; }
.pdp-desc .prose { color: var(--ink-2); white-space: pre-line; }
@media (max-width: 960px) {
  .pdp { grid-template-columns: 1fr; gap: 24px; padding-top: 0; }
  .gallery { position: static; grid-template-columns: 1fr; margin: 0 calc(var(--gutter) * -1); }
  .gallery-thumbs { display: none; }
  .gallery-dots { display: flex; }
  .pdp-title { font-size: 23px; }
  .pdp-price b { font-size: 22px; }
}
/* Гар утсанд доод "Сагсанд нэмэх" мөр */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: none; gap: 12px; align-items: center; transform: translateY(110%); transition: transform .25s; }
.sticky-buy.show { transform: none; }
.sticky-buy .sb-price { font-weight: 500; white-space: nowrap; }
.sticky-buy .btn { flex: 1; height: 46px; }
@media (max-width: 960px) { .sticky-buy { display: flex; } }

/* ---------- Маягт ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 7px; }
.field > span em { font-style: normal; color: var(--muted); }
.input, .textarea { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #ddd6cd; border-radius: var(--radius); background: #fff; outline: 0; transition: border-color .2s, box-shadow .2s; font-size: 16px; }
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.input.invalid, .textarea.invalid { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid #ddd6cd; border-radius: var(--radius); cursor: pointer; transition: border-color .2s; }
.radio-card:hover { border-color: var(--ink-2); }
.radio-card input { margin: 3px 0 0; accent-color: var(--ink); width: 18px; height: 18px; }
.radio-card b { font-weight: 500; display: block; }
.radio-card small { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.radio-card .rc-price { font-size: 14px; white-space: nowrap; }
.radio-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 3px; accent-color: var(--ink); width: 17px; height: 17px; flex: none; }
.form-error { color: var(--danger); font-size: 14px; margin-top: 10px; }
.form-error:empty { display: none; }

/* ---------- Сагс / захиалга ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 56px; align-items: start; padding-bottom: 80px; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.block-title { font-size: 19px; font-weight: 500; margin-bottom: 18px; }
.line-items { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-img { aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; display: block; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-title { font-size: 15px; line-height: 1.4; }
.line-opts { font-size: 13px; color: var(--muted); margin-top: 4px; }
.line-actions { margin-top: 12px; display: flex; align-items: center; gap: 14px; }
.line-actions .qty { height: 38px; }
.line-actions .qty button { width: 34px; }
.line-actions .qty input { width: 30px; }
.line-remove { background: none; border: 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.line-price { text-align: right; font-weight: 500; white-space: nowrap; }
.line-price small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.summary { background: var(--soft); padding: 26px; position: sticky; top: calc(var(--header-h) + 20px); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; }
.sum-row span:first-child { color: var(--ink-2); }
.sum-row.total { border-top: 1px solid #e3ddd4; margin-top: 8px; padding-top: 14px; font-size: 17px; font-weight: 500; }
.sum-row.total span:first-child { color: var(--ink); }
.deposit-box { margin-top: 16px; padding: 16px; background: #fff; border: 1px solid var(--line); }
.deposit-box .sum-row { padding: 4px 0; }
.deposit-box .big { font-size: 20px; font-weight: 600; }
.note-sm { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
@media (max-width: 960px) { .summary { position: static; padding: 20px 16px; margin: 0 calc(var(--gutter) * -1); } }

/* ---------- Захиалгын төлөв ---------- */
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 36px 0 24px; }
.order-head h1 { font-size: 30px; font-weight: 500; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; font-size: 13px; font-weight: 500; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.s-quote { background: #f5ecdc; color: var(--warn); }
.badge.s-pending_deposit { background: #f7e7e2; color: var(--accent); }
.badge.s-confirmed, .badge.s-ordered, .badge.s-shipping { background: #e8eef3; color: #3d5a73; }
.badge.s-arrived { background: #e3f0e8; color: var(--ok); }
.badge.s-completed { background: var(--soft); color: var(--ink-2); }
.badge.s-cancelled { background: #f2f2f2; color: #8a8a8a; }
.tracker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 8px 0 36px; }
.tracker li { list-style: none; position: relative; padding-top: 22px; font-size: 13px; color: var(--muted); text-align: center; }
.tracker li::before { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--line); }
.tracker li::after { content: ''; position: absolute; top: 1px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.tracker li.done { color: var(--ink); }
.tracker li.done::before { background: var(--ink); }
.tracker li.done::after { background: var(--ink); border-color: var(--ink); }
.tracker li.current::after { box-shadow: 0 0 0 5px rgba(34,28,24,.1); }
.tracker li:first-child::before { left: 50%; }
.tracker li:last-child::before { right: 50%; }
@media (max-width: 700px) {
  .tracker { grid-template-columns: 1fr; margin: 0 0 28px; }
  .tracker li { text-align: left; padding: 0 0 18px 30px; font-size: 14px; }
  .tracker li::before { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
  .tracker li::after { top: 3px; left: 7px; }
  .tracker li:first-child::before { left: 6px; top: 8px; }
  .tracker li:last-child::before { display: none; }
}
.panel { border: 1px solid var(--line); padding: 24px; margin-bottom: 20px; }
.panel.accent { border-color: var(--ink); }
.panel h2 { font-size: 18px; font-weight: 500; margin-bottom: 14px; }
.panel p + p { margin-top: 8px; }
.pay-rows { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 6px; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.pay-row span { color: var(--muted); font-size: 14px; }
.pay-row b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.copy-btn { background: none; border: 1px solid var(--line); border-radius: var(--radius); height: 32px; padding: 0 10px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; flex: none; }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { border-color: var(--ink); }
.pay-row .val { display: flex; align-items: center; justify-content: flex-end; min-width: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 10px 0 10px 22px; position: relative; font-size: 14px; border-left: 1px solid var(--line); margin-left: 4px; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--stone); }
.timeline li:last-child::before { background: var(--ink); }
.timeline time { display: block; color: var(--muted); font-size: 12.5px; }
.photo-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.photo-row a, .photo-row .ph { width: 72px; height: 72px; background: var(--soft); overflow: hidden; display: block; position: relative; }
.photo-row img { width: 100%; height: 100%; object-fit: cover; }

/* Зураг оруулах */
.uploader { border: 1.5px dashed #d6cec3; border-radius: var(--radius); padding: 18px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; display: block; }
.uploader:hover, .uploader.drag { border-color: var(--ink-2); background: var(--soft); }
.uploader svg { width: 28px; height: 28px; color: var(--ink-2); margin: 0 auto 8px; }
.uploader b { font-weight: 500; display: block; }
.uploader small { color: var(--muted); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs .ph { width: 84px; height: 84px; position: relative; background: var(--soft); overflow: hidden; }
.thumbs .ph img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .ph button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.thumbs .ph button svg { width: 14px; height: 14px; }
.thumbs .ph.loading::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.6); }
.req-item { border: 1px solid var(--line); padding: 20px; margin-bottom: 14px; position: relative; }
.req-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.req-item-head b { font-weight: 500; }
.req-remove { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 0; }
.add-item { width: 100%; height: 50px; border: 1px dashed #d6cec3; background: #fff; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; }
.add-item:hover { border-color: var(--ink); }
.add-item svg { width: 18px; height: 18px; }

/* Мэдээлэл */
.info-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-bottom: 80px; }
.info-nav { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 4px; align-self: start; }
.info-nav a { padding: 8px 0; color: var(--ink-2); }
.info-nav a:hover { color: var(--ink); }
.info-sec { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.info-sec:last-child { border-bottom: 0; }
.info-sec h2 { font-size: 24px; margin-bottom: 16px; }
.prose { white-space: pre-line; color: var(--ink-2); line-height: 1.7; max-width: 70ch; }
.terms { margin: 0; padding: 0 0 0 20px; color: var(--ink-2); line-height: 1.7; max-width: 70ch; }
.terms li + li { margin-top: 8px; }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 10px 20px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
@media (max-width: 860px) {
  .info-grid { grid-template-columns: 1fr; gap: 0; }
  .info-nav { position: static; flex-direction: row; overflow-x: auto; gap: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
  .info-nav a { white-space: nowrap; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 12px; }
}

/* ---------- Хөл ---------- */
.site-footer { background: var(--tan); color: var(--ink); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.footer-brand .logo { font-size: 20px; }
.footer-brand p { margin-top: 14px; color: var(--ink-2); max-width: 34ch; font-size: 14.5px; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; color: var(--ink-2); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; padding: 3px 0; font-size: 14.5px; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid rgba(34,28,24,.12); padding-top: 20px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.socials { display: flex; gap: 14px; }
.socials a { display: inline-flex; }
.socials svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-top: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
.toast { background: var(--ink); color: #fff; padding: 13px 18px; border-radius: var(--radius); font-size: 14.5px; box-shadow: 0 8px 30px rgba(0,0,0,.18); display: flex; align-items: center; gap: 12px; pointer-events: auto; animation: toast-in .25s ease; max-width: 100%; }
.toast.error { background: var(--danger); }
.toast a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(20,16,14,.92); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; top: 14px; right: 14px; color: #fff; }

/* Асуух товч (Messenger / утас) */
.contact-fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 35; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px; border-radius: 24px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; box-shadow: 0 8px 24px rgba(34,28,24,.22); transition: transform .2s, bottom .25s; }
.contact-fab:hover { transform: translateY(-2px); }
.contact-fab svg { width: 22px; height: 22px; }
body:has(.sticky-buy.show) .contact-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (max-width: 560px) { .contact-fab span { display: none; } .contact-fab { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; } }
@media print { .contact-fab { display: none; } }
