/* ───────── Smile Online Store — минимал хар цагаан загвар (Onest) ─────────
   Өнгө, фонт, булангийн дугуйралтыг :root хэсгээс солино. */
:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --tile: #f4f4f4;
  --soft: #f4f4f4;
  --ink: #0a0a0a;
  --ink-2: #4a4a4a;
  --muted: #8c8c8c;
  --line: #e8e8e8;
  --brand: #0a0a0a;
  --brand-2: #0a0a0a;
  --brand-soft: #f2f2f2;
  --accent: #0a0a0a;
  --ok: #1f8a4c;
  --warn: #b7791f;
  --danger: #c0392b;
  --r-lg: 28px;
  --r: 20px;
  --r-sm: 14px;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: var(--sans);
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 0 0 1px var(--line);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.serif { font-weight: 700; letter-spacing: -.03em; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num { font-variant-numeric: tabular-nums; }

/* ───── Announcement + header ───── */
.announce { background: var(--ink); color: #f2f2f2; letter-spacing: .01em; text-align: center; font-size: 12.5px; font-weight: 500; padding: 9px 16px; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.nav { display: flex; gap: 4px; font-size: 14px; font-weight: 500; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a.on { background: var(--ink); color: #fff; }
.logo { font-size: 21px; font-weight: 800; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 9px; line-height: 1; color: var(--ink); }
.logo .mark { width: 28px; height: 28px; flex: none; }
.tools { display: flex; justify-content: flex-end; gap: 8px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: var(--soft); border-radius: 50%; box-shadow: var(--shadow); transition: transform .2s var(--ease), background .2s; }
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.badge { position: absolute; top: -2px; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--brand-2); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; transform: scale(0); transition: transform .3s var(--ease); border: 2px solid #fff; }
.badge.show { transform: scale(1); }
.badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; }

/* ───── Buttons ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 30px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; transition: transform .2s var(--ease), background .2s, box-shadow .2s, opacity .2s; white-space: nowrap; }
.btn:hover { background: #2a2a2a; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--ink); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .2s var(--ease), background .2s; flex: none; }
.round:hover { transform: scale(1.08); background: #2a2a2a; }
.round svg { width: 19px; height: 19px; }

/* ───── Hero (ногоон карт) ───── */
.hero { padding: 8px 0 40px; }
.hero-card { position: relative; overflow: hidden; border-radius: 36px; color: #fff; padding: clamp(36px, 5vw, 72px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: var(--ink); }
.hero-card::after { content: ""; position: absolute; right: -8%; top: 50%; width: 62%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 0 60px rgba(255, 255, 255, .025), 0 0 0 120px rgba(255, 255, 255, .02); pointer-events: none; }
.hero .pill-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.hero .pill-tag b { background: #fff; color: var(--ink); border-radius: 999px; padding: 3px 9px; font-size: 11.5px; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 4.6vw, 64px); line-height: 1; letter-spacing: -.045em; margin: 22px 0 20px; text-wrap: balance; }
.hero p.lead { font-size: 17px; color: rgba(255, 255, 255, .78); max-width: 440px; margin: 0 0 32px; }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .ctas .btn { background: #fff; color: var(--ink); }
.hero .ctas .btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .25); }
.hero-meta { display: flex; gap: 32px; margin-top: 40px; }
.hero-meta div b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.hero-meta div span { font-size: 13px; color: rgba(255, 255, 255, .65); }
.hero-art { position: relative; z-index: 1; display: grid; place-items: center; min-height: 440px; }
.hero-art .feat { width: min(340px, 100%); background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 30px; padding: 14px 14px 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); transform: rotate(-2deg); transition: transform .5s var(--ease); }
.hero-art .feat:hover { transform: rotate(0) translateY(-4px); }
.hero-art .feat .img { aspect-ratio: 1 / .95; border-radius: 22px; background: var(--tile); display: grid; place-items: center; position: relative; }
.hero-art .feat .img img { width: 78%; }
.hero-art .feat .row { display: flex; align-items: center; justify-content: space-between; padding: 14px 6px 0; }
.hero-art .feat .row b { display: block; font-size: 16px; font-weight: 600; }
.hero-art .feat .row span { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.hero-art .mini { position: absolute; right: 0; bottom: 18px; width: 150px; background: #fff; color: var(--ink); border-radius: 22px; padding: 8px 8px 12px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); transform: rotate(5deg); }
.hero-art .mini .img { aspect-ratio: 1; border-radius: 16px; background: var(--tile); display: grid; place-items: center; }
.hero-art .mini .img img { width: 80%; }
.hero-art .mini b { display: block; font-size: 12.5px; font-weight: 600; padding: 8px 4px 0; }
.hero-art .mini span { font-size: 13px; font-weight: 800; padding: 0 4px; }
.disc { position: absolute; top: 12px; right: 12px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }

/* ───── Sections ───── */
section.block { padding: 72px 0; }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.head-row h2 { font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.04em; margin: 10px 0 0; text-wrap: balance; }
.link-u { font-size: 14px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; padding: 10px 18px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); white-space: nowrap; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat { position: relative; aspect-ratio: 1 / 1.08; border-radius: var(--r-lg); overflow: hidden; display: block; background: var(--paper) !important; box-shadow: var(--shadow); }
.cat img { position: absolute; inset: 10px 10px 74px; width: calc(100% - 20px); height: calc(100% - 84px); object-fit: contain; padding: 4%; background: var(--tile); border-radius: var(--r); transition: transform .7s var(--ease); }
.cat:hover img { transform: scale(1.03); }
.cat .lbl { position: absolute; left: 20px; right: 14px; bottom: 14px; height: 46px; display: flex; justify-content: space-between; align-items: center; }
.cat .lbl b { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.cat .lbl span { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 0; transition: transform .25s var(--ease); }
.cat .lbl span::after { content: "→"; font-size: 16px; }
.cat:hover .lbl span { transform: rotate(-45deg); }
.cat:hover { box-shadow: 0 0 0 1px var(--ink); }

/* Filters */
.filters { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 42px; padding: 0 20px; border-radius: 999px; border: 0; background: #fff; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); transition: all .2s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip.on { background: var(--ink); color: #fff; }
.select { height: 42px; padding: 0 40px 0 18px; border-radius: 999px; border: 0; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230a0a0a' fill='none' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; appearance: none; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: block; background: var(--paper); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--ink); }
.card .ph { position: relative; aspect-ratio: 1 / 1.02; border-radius: var(--r); overflow: hidden; background: var(--tile) !important; }
.card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 13%; transition: transform .7s var(--ease); }
.card:hover .ph img { transform: scale(1.05); }
.card .tag { position: absolute; right: 10px; top: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card .tag.sale { background: var(--ink); color: #fff; }
.card .meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 14px 6px 6px 8px; }
.card .meta > div { min-width: 0; }
.card .name { font-size: 15px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.card .quick { width: 42px; height: 42px; }
.price { display: flex; gap: 8px; align-items: baseline; margin-top: 6px; font-weight: 800; font-size: 17px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.price s { color: var(--muted); font-weight: 500; font-size: 13px; letter-spacing: 0; }
.price .off { color: #fff; background: var(--ink); font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: 0; align-self: center; }
.skel { background: linear-gradient(90deg, #efefef 0%, #f7f7f7 50%, #efefef 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 60px 0; color: var(--muted); grid-column: 1 / -1; }

/* Values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.values div { padding: 26px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.values svg { width: 46px; height: 46px; padding: 11px; border-radius: 50%; color: #fff; background: var(--ink); margin-bottom: 16px; }
.values b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; }
.values span { font-size: 14px; color: var(--muted); }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); color: var(--ink); border-radius: 36px; overflow: hidden; }
.story .txt { padding: clamp(40px, 5vw, 72px); align-self: center; }
.story h2 { font-weight: 800; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.04; letter-spacing: -.045em; margin: 14px 0 18px; text-wrap: balance; }
.story p { color: var(--ink-2); max-width: 440px; margin: 0 0 30px; font-size: 16px; }
.story .eyebrow { color: var(--muted); }
.story .btn { background: var(--ink); color: #fff; }
.story .art { background: var(--ink); display: grid; place-items: center; min-height: 420px; }
.story .art img { width: 62%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }

/* Newsletter */
.news { text-align: center; max-width: 640px; margin: 0 auto; background: var(--paper); border-radius: 36px; padding: clamp(36px, 5vw, 60px); box-shadow: var(--shadow); }
.news h2 { font-weight: 800; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.04em; margin: 12px 0 12px; text-wrap: balance; }
.news p { color: var(--ink-2); margin: 0 0 26px; }
.news form { display: flex; gap: 6px; background: var(--soft); border-radius: 999px; padding: 6px; }
.news input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 18px; outline: none; font-size: 16px; }
.news .btn { height: 48px; padding: 0 24px; }

/* Footer */
footer { background: var(--soft); margin-top: 48px; padding: 64px 0 28px; font-size: 14px; color: var(--ink-2); border-radius: 36px 36px 0 0; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 16px; letter-spacing: -.01em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a:hover { color: var(--ink); }
.foot .logo { margin-bottom: 18px; color: var(--ink); }
.copy { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.paylogos { display: flex; gap: 6px; }
.paylogos span { background: #fff; border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: 11.5px; color: var(--ink-2); }

/* ───── Product page ───── */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0; }
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding-bottom: 72px; align-items: start; }
.gallery { position: sticky; top: 92px; background: var(--paper); border-radius: 36px; padding: 12px; box-shadow: var(--shadow); }
.gallery .main { aspect-ratio: 1 / 1.02; border-radius: 28px; overflow: hidden; cursor: zoom-in; background: var(--tile) !important; position: relative; }
.gallery .main img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 12%; transition: transform .5s var(--ease); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.gallery .main.zoom img { transform: scale(1.8); }
.buybox .btn.ghost { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.buybox .btn.ghost:hover { background: var(--ink); color: #fff; }
.buybox { background: var(--paper); border-radius: 36px; padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
.pdp h1 { font-weight: 800; font-size: clamp(30px, 3vw, 42px); line-height: 1.06; letter-spacing: -.045em; margin: 12px 0 10px; text-wrap: balance; }
.pdp .price { font-size: 28px; margin: 0 0 18px; }
.pdp .desc { color: var(--ink-2); margin: 0 0 26px; font-size: 15.5px; }
.opt { margin-bottom: 22px; }
.opt .lbl { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.opt .lbl span { color: var(--muted); font-weight: 500; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes button { min-width: 52px; height: 46px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 14px; transition: all .15s; }
.sizes button:hover { background: #e9e9e9; }
.sizes button.on { background: var(--ink); color: #fff; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: var(--soft); height: 54px; padding: 0 4px; }
.qty button { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; font-size: 18px; font-weight: 500; transition: background .15s; }
.qty button:hover { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.qty input { width: 30px; text-align: center; border: 0; background: none; font-weight: 700; outline: none; font-variant-numeric: tabular-nums; }
.buy-row { display: flex; gap: 10px; margin: 6px 0 10px; }
.buy-row .btn { flex: 1; }
.stock { font-size: 14px; display: flex; align-items: center; gap: 8px; color: var(--ink-2); margin-bottom: 22px; font-weight: 500; }
.stock i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 138, 76, .14); }
.stock.low i { background: var(--warn); box-shadow: 0 0 0 4px rgba(183, 121, 31, .16); }
.stock.out i { background: var(--danger); box-shadow: 0 0 0 4px rgba(192, 57, 43, .16); }
details.acc { border-top: 1px solid var(--line); }
details.acc summary { list-style: none; padding: 18px 0; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 17px; font-weight: 500; transition: transform .25s; }
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc div { padding: 0 0 18px; color: var(--ink-2); font-size: 14.5px; }

/* ───── Cart drawer ───── */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 60; }
.drawer { position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(440px, calc(100% - 20px)); background: var(--paper); z-index: 61; transform: translateX(calc(100% + 20px)); transition: transform .45s var(--ease); display: flex; flex-direction: column; border-radius: 30px; overflow: hidden; }
body.cart-open .scrim { opacity: 1; pointer-events: auto; }
body.cart-open .drawer { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 16px 26px; }
.drawer header h3 { font-weight: 800; font-size: 24px; letter-spacing: -.04em; margin: 0; }
.drawer header .icon-btn { box-shadow: none; background: var(--soft); }
.drawer .items { flex: 1; overflow: auto; padding: 4px 20px; }
.ship-bar { margin: 0 20px 6px; padding: 14px 16px; background: var(--soft); border-radius: 18px; font-size: 13px; color: var(--ink); font-weight: 500; }
.ship-bar .bar { height: 4px; border-radius: 2px; background: #e2e2e2; margin-top: 10px; overflow: hidden; }
.ship-bar .bar i { display: block; height: 100%; background: var(--brand-2); border-radius: 3px; transition: width .5s var(--ease); }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: 0; }
.line .th { width: 84px; height: 88px; border-radius: 18px; overflow: hidden; background: var(--tile) !important; }
.line .th img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }
.line .nm { font-weight: 600; font-size: 14.5px; letter-spacing: -.015em; }
.line .vr { font-size: 12.5px; color: var(--muted); margin: 2px 0 8px; }
.line .qty { height: 36px; padding: 0 2px; }
.line .qty button { width: 32px; height: 32px; font-size: 15px; }
.line .qty input { width: 22px; font-size: 13px; }
.line .rt { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 14px; font-weight: 800; font-size: 15px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; align-self: stretch; padding: 4px 0; }
.line .rm { border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 500; padding: 0; letter-spacing: 0; }
.line .rm:hover { color: var(--danger); }
.drawer footer { padding: 18px 22px 22px; background: var(--soft); margin: 0; border-radius: 0; }
.sumrow { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sumrow.total { font-size: 20px; font-weight: 800; color: var(--ink); margin: 12px 0 16px; letter-spacing: -.03em; }
.cart-empty { text-align: center; padding: 70px 10px; color: var(--muted); }
.cart-empty svg { width: 56px; height: 56px; margin: 0 auto 14px; padding: 14px; border-radius: 50%; background: var(--soft); color: var(--ink); }

/* Search */
.search { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transition: opacity .3s; }
.search > .wrap { margin-top: 12px; background: var(--paper); border-radius: 30px; padding: 22px 24px 28px; transform: translateY(-16px); transition: transform .4s var(--ease); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); max-width: 980px; width: calc(100% - 24px); }
body.search-open .search { opacity: 1; pointer-events: auto; }
body.search-open .search > .wrap { transform: none; }
.search-bar { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 999px; padding: 6px 6px 6px 20px; margin-bottom: 22px; }
.search-bar > svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.search-bar input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; font-weight: 500; height: 44px; }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-bar .icon-btn { box-shadow: none; }
.search-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sr-item { display: flex; gap: 14px; align-items: center; padding: 8px; border-radius: 18px; transition: background .2s; }
.sr-item:hover { background: var(--soft); }
.sr-item .th { width: 64px; height: 64px; flex: none; border-radius: 14px; overflow: hidden; background: var(--tile) !important; }
.sr-item .th img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.sr-item b { display: block; font-size: 14.5px; font-weight: 600; }
.sr-item em { font-style: normal; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Mobile bottom bar */
.tabbar { display: none; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 20px 12px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: all .35s var(--ease); z-index: 80; display: flex; gap: 10px; align-items: center; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); max-width: calc(100% - 32px); }
.toast svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: #fff; color: var(--ink); flex: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───── Checkout ───── */
.co { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; padding: 24px 0 88px; align-items: start; }
.co > div:first-child { background: var(--paper); border-radius: 36px; padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
.co h1 { font-weight: 800; font-size: clamp(30px, 3.2vw, 40px); letter-spacing: -.045em; margin: 0 0 8px; }
.co h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin: 30px 0 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { height: 52px; border: 1.5px solid transparent; background: var(--soft); border-radius: 16px; padding: 0 16px; outline: none; font-size: 16px; transition: border-color .2s, background .2s; }
.field textarea { height: 92px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: #fff; }
.field.bad input { border-color: var(--danger); background: #fff; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; }
.radios { display: grid; gap: 10px; }
.radio { display: flex; gap: 14px; align-items: center; border: 1.5px solid transparent; background: var(--soft); border-radius: 18px; padding: 16px 18px; cursor: pointer; transition: border-color .2s, background .2s; }
.radio:has(input:checked) { border-color: var(--ink); background: #fff; }
.radio input { accent-color: var(--ink); width: 20px; height: 20px; flex: none; }
.radio b { display: block; font-size: 15px; font-weight: 600; }
.radio span { font-size: 13px; color: var(--muted); }
.radio .r { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; }
.radio.disabled { opacity: .45; pointer-events: none; }
.summary { position: sticky; top: 92px; background: var(--paper); border-radius: 36px; padding: 28px; box-shadow: var(--shadow); }
.summary h3 { margin-top: 0; }
.summary .line { grid-template-columns: 64px 1fr auto; padding: 10px 0; }
.summary .line .th { width: 64px; height: 64px; position: relative; overflow: visible; border-radius: 16px; }
.summary .line .th img { border-radius: 16px; }
.summary .line .th em { position: absolute; top: -6px; right: -6px; background: var(--ink); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; }
.summary .line .rt { justify-content: center; }
.err { color: var(--danger); font-size: 14px; margin: 12px 0 0; min-height: 1em; font-weight: 500; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ───── Order page ───── */
.order { max-width: 760px; margin: 0 auto; padding: 36px 0 88px; }
.order .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 0 0 10px var(--soft); }
.order h1 { font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.06; letter-spacing: -.045em; margin: 10px 0 10px; text-wrap: balance; }
.card-box { background: var(--paper); border-radius: 30px; padding: 26px; margin-top: 18px; box-shadow: var(--shadow); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.steps div { font-size: 12.5px; color: var(--muted); padding-top: 12px; border-top: 5px solid var(--soft); border-radius: 3px; font-weight: 500; }
.steps div.done { color: var(--ink); border-color: var(--brand-2); font-weight: 700; }
.pay { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
.pay img.qr { width: 220px; height: 220px; border-radius: 20px; padding: 10px; background: #fff; border: 1.5px solid var(--line); }
.banks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.banks a { display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 999px; padding: 6px 12px 6px 6px; font-size: 12.5px; font-weight: 600; }
.banks img { width: 24px; height: 24px; border-radius: 50%; }
.kv { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px 16px; align-items: center; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.copy-btn { border: 0; background: var(--soft); border-radius: 999px; font-size: 12px; font-weight: 600; padding: 6px 12px; }
.copy-btn:hover { background: var(--ink); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--soft); }
.pill.paid { background: var(--ink); color: #fff; }
.pill.pending { background: var(--soft); color: var(--ink-2); }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ───── Responsive ───── */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cats, .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  body { padding-bottom: 92px; }
  .announce { font-size: 12px; }
  .header .wrap { grid-template-columns: 1fr auto; height: 64px; }
  .logo { font-size: 20px; }
  .tools #searchBtn, .tools #cartBtn { display: none; }
  .menu-btn { display: grid; }
  .nav { position: fixed; left: 10px; right: 10px; top: 10px; background: var(--paper); flex-direction: column; gap: 4px; padding: 74px 14px 14px; z-index: 50; border-radius: 30px; transform: translateY(-110%); visibility: hidden; opacity: 0; transition: transform .45s var(--ease), opacity .3s, visibility .45s; font-size: 18px; font-weight: 600; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .3); }
  .nav a { padding: 14px 18px; border-radius: 18px; }
  body.nav-open .nav { transform: none; visibility: visible; opacity: 1; }
  body.nav-open .menu-btn { position: relative; z-index: 51; }
  .hero-card, .pdp, .co, .story, .pay { grid-template-columns: minmax(0, 1fr); }
  .pdp > *, .co > *, .hero-card > * { min-width: 0; }
  .hero-card { border-radius: 30px; padding: 32px 22px 26px; gap: 10px; }
  .hero-art { min-height: 360px; }
  .hero-meta { gap: 22px; margin-top: 30px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 7px; border-radius: 24px; }
  .card .ph { border-radius: 18px; }
  .card .meta { padding: 10px 2px 4px 6px; }
  .card .name { font-size: 13.5px; }
  .card .sub, .card .price s { display: none; }
  .card .name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; min-height: 2.6em; }
  .card .meta { align-items: flex-end; }
  .filters { flex-direction: column; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 2px 12px 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; height: 40px; padding: 0 16px; }
  .select { align-self: flex-start; height: 40px; }
  .hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-meta div b { font-size: 20px; }
  .hero-meta div span { font-size: 12px; line-height: 1.35; display: block; margin-top: 2px; }
  .hero h1 { font-size: clamp(36px, 10vw, 48px); }
  .hero p.lead { font-size: 16px; }
  .price { font-size: 15px; }
  .card .quick { width: 36px; height: 36px; }
  .card .quick svg { width: 16px; height: 16px; }
  .gallery, .summary { position: static; }
  .gallery { border-radius: 30px; padding: 8px; }
  .story .art { min-height: 280px; }
  .foot { grid-template-columns: 1fr 1fr; }
  section.block { padding: 48px 0; }
  .head-row { flex-direction: column; align-items: start; gap: 14px; }
  .kv { grid-template-columns: 110px 1fr auto; font-size: 14px; }
  .search > .wrap { border-radius: 26px; padding: 14px 14px 20px; }
  .search-grid { grid-template-columns: 1fr; }
  .toast { bottom: 100px; }
  .tabbar { display: flex; position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 45; gap: 6px; padding: 7px; background: rgba(10, 10, 10, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 999px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); }
  .tabbar a, .tabbar button { position: relative; width: 54px; height: 50px; border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, .7); display: grid; place-items: center; }
  .tabbar .on { background: #fff; color: var(--ink); }
  .tabbar svg { width: 21px; height: 21px; }
  .tabbar .badge { top: 4px; right: 6px; border-color: var(--ink); }
  body.cart-open .tabbar, body.search-open .tabbar { opacity: 0; pointer-events: none; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 12px; }
  .values { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .hero .ctas .btn { flex: 1 1 100%; }
  .hero-art .mini { width: 118px; right: -6px; }
  .steps div { font-size: 10.5px; }
  .co > div:first-child, .summary, .buybox .btn.ghost { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.buybox .btn.ghost:hover { background: var(--ink); color: #fff; }
.buybox { border-radius: 28px; }
  .news form { flex-direction: column; background: none; padding: 0; gap: 8px; }
  .news input { background: var(--soft); border-radius: 999px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ───── Smile нэмэлтүүд ───── */
.card .tag.bundle { right: auto; left: 10px; background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.dots { display: flex; gap: 6px; align-items: center; padding: 12px 8px 0; }
.dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); cursor: pointer; position: relative; transition: transform .15s; }
.dots i:hover { transform: scale(1.15); }
.dots i.on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--ink); }
.dots em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.card .meta { padding-top: 10px; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatches button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); position: relative; transition: transform .15s; }
.swatches button:hover { transform: scale(1.08); }
.swatches button.on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ink); }
.size-note { font-size: 13px; color: var(--muted); margin-top: 10px; display: flex; gap: 6px; align-items: center; }
.bundle-box { display: flex; gap: 14px; align-items: center; border: 1.5px dashed var(--ink); border-radius: 18px; padding: 14px 16px; margin: 0 0 22px; font-size: 14px; }
.bundle-box b { display: block; font-size: 15px; }
.bundle-box span { color: var(--muted); }
.bundle-box .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.bundle-note { font-size: 11.5px; font-weight: 700; display: inline-block; background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 8px; margin-bottom: 8px; }
.sumrow.save { color: var(--ink); font-weight: 700; }
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 44; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .45); transition: transform .2s var(--ease); }
.fab:hover { transform: translateY(-2px); }
.fab svg { width: 22px; height: 22px; }
body.cart-open .fab, body.search-open .fab { opacity: 0; pointer-events: none; }
.msg-btn { margin-top: 10px; }
.msg-btn svg { width: 20px; height: 20px; }

/* Hero өнгөний эгнээ */
.hero-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-self: stretch; }
.hero-row a { background: #fff; border-radius: 22px; display: grid; place-items: center; padding: 18px 6px; transition: transform .35s var(--ease); min-height: 300px; }
.hero-row a:nth-child(odd) { transform: translateY(18px); }
.hero-row a:hover { transform: translateY(-6px); }
.hero-row a { overflow: hidden; }
.hero-row img { width: 100%; height: 100%; max-height: 330px; object-fit: contain; transform: scale(1.7); }
.hero-caption { position: relative; z-index: 1; grid-column: 2; display: flex; justify-content: space-between; align-items: center; margin-top: 6px; color: rgba(255, 255, 255, .8); font-size: 14px; }
.hero-caption b { color: #fff; }
.hero-caption a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .5); }

/* Хэмжээний заавар */
.sizes-guide { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; }
.sizes-guide .card-box { margin: 0; }
.sg-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.sg-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 0 0 10px; }
.sg-table td { padding: 14px 0; border-top: 1px solid var(--line); }
.sg-table td:first-child { font-weight: 800; width: 34%; }
.sg-big { font-size: clamp(44px, 6vw, 72px); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 12px 0 8px; }

@media (max-width: 820px) {
  .fab { display: none; }
  .hero-row a { min-height: 170px; padding: 10px 2px; border-radius: 16px; }
  .hero-row { gap: 5px; margin-top: 8px; }
  .hero-caption { grid-column: 1; font-size: 13px; }
  .sizes-guide { grid-template-columns: 1fr; }
  .tabbar a, .tabbar button { width: 50px; }
  .dots { padding: 10px 6px 0; gap: 5px; }
  .dots i { width: 13px; height: 13px; }
  .card .tag.bundle { font-size: 10.5px; padding: 3px 7px; }
}
