/* BARS — qor qoploni: muz-ko'k kun, rozetka naqsh, amber ko'z. */
:root {
  --bg: #e8f3fc;
  --surface: #ffffff;
  --ink: #0f1d33;
  --muted: #576b84;
  --line: #d0e1f0;
  --accent: #1678ea;
  --accent-hi: #3ca4ff;
  --on-accent: #ffffff;
  --amber: #f5a623;
  --fur: #13233d;
  --fur-2: #23406b;
  --sale: #d6304a;
  --radius-img: 18px;
  --display: 'Unbounded Variable', 'Unbounded', system-ui, sans-serif;
  --body: 'Onest Variable', 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tabbar-h: 64px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0a1424;
  --surface: #13233a;
  --ink: #eaf3ff;
  --muted: #92a8c4;
  --line: #213652;
  --accent: #3b9bff;
  --accent-hi: #6cb9ff;
  --on-accent: #06182f;
  --amber: #ffb83d;
  --fur: #060d18;
  --fur-2: #1c3557;
  --sale: #ff7d8f;
  color-scheme: dark;
}

*, *::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.45 var(--body);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); min-height: 100vh; }
#app.no-tabs { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }

/* ---------- icons ---------- */
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.sm { width: 18px; height: 18px; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; gap: 10px; }
.top.sticky { position: sticky; top: 0; z-index: 5; background: var(--bg); }
.wordmark { font: 700 22px/1 var(--display); letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 10px; }
.wordmark .eye { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.page-title { font: 600 20px/1.2 var(--display); margin: 0; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); position: relative; }
.flag { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: inline-block; flex: none; box-shadow: 0 0 0 1px var(--line); }
.flag svg { width: 100%; height: 100%; display: block; }

/* ---------- search ---------- */
.search { position: relative; margin: 4px 0 14px; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 46px; border-radius: 14px; border: 1px solid transparent; background: var(--surface); padding: 0 14px 0 44px; font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--accent); outline: none; }

/* ---------- hero ---------- */
.hero { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.hero::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; min-height: 176px; border-radius: 24px; overflow: hidden; background: var(--fur); color: #fff; padding: 22px 20px; display: flex; flex-direction: column; justify-content: flex-end; text-align: left; isolation: isolate; }
.slide.s3 { background: var(--fur-2); }
.slide h2 { margin: 0 0 6px; font: 600 22px/1.15 var(--display); max-width: 14ch; }
.slide p { margin: 0; font-size: 14px; max-width: 28ch; opacity: 0.88; }
.fur { position: absolute; inset: 0; z-index: -1; background: var(--fur-tint, rgba(255, 255, 255, 0.11)); -webkit-mask: url('../assets/rosettes.svg') 0 0 / 120px 120px; mask: url('../assets/rosettes.svg') 0 0 / 120px 120px; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 4px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width 0.2s, background 0.2s; }
.dots i.on { width: 18px; background: var(--accent); }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 6px -16px 4px; padding: 6px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 38px; padding: 0 16px; border-radius: 19px; background: var(--surface); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border: 1px solid transparent; }
.chip.on { background: var(--ink); color: var(--bg); }

/* ---------- sections ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; }
.sec-head h2 { margin: 0; font: 600 18px/1.2 var(--display); }
.sec-head a { color: var(--muted); font-size: 14px; }
.rail { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x proximity; scroll-padding-left: 16px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { flex: 0 0 156px; scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }

/* ---------- product card ---------- */
.card { position: relative; min-width: 0; }
.card-link { display: block; }
.art { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-img); overflow: hidden; background: var(--tone, #dde2e6); color: color-mix(in srgb, var(--tone, #dde2e6) 55%, #1b3354); isolation: isolate; }
:root[data-theme='dark'] .art { background: color-mix(in srgb, var(--tone, #dde2e6) 22%, #13233a); color: color-mix(in srgb, var(--tone, #dde2e6) 60%, #ffffff); }
.art .fur { background: currentColor; opacity: 0.16; -webkit-mask-size: 90px 90px; mask-size: 90px 90px; z-index: 0; }
.art .glyph { position: absolute; inset: 0; margin: auto; width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; z-index: 1; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.heart { position: absolute; top: 8px; right: 8px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 88%, transparent); display: inline-flex; align-items: center; justify-content: center; }
.heart .i { width: 18px; height: 18px; }
.heart[aria-pressed='true'] .i { fill: var(--sale); stroke: var(--sale); }
.badge { position: absolute; left: 8px; top: 8px; z-index: 3; background: var(--sale); color: #fff; font: 600 12px/1 var(--display); padding: 6px 8px; border-radius: 8px; }
.badge.new { background: var(--amber); color: #2a1a00; }
.card .name { margin: 10px 0 2px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font: 600 13px/1.3 var(--display); display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 8px; }
.price s { font: 400 12px/1.2 var(--body); color: var(--muted); }

/* ---------- product page ---------- */
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery .art { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1 / 1; }
.pdp h1 { font: 600 22px/1.2 var(--display); margin: 18px 0 8px; }
.pdp .price { font-size: 20px; }
.pdp .price s { font-size: 14px; }
.lbl { font-weight: 600; margin: 22px 0 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-width: 48px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 2px solid transparent; font-weight: 500; }
.opt[aria-pressed='true'] { border-color: var(--ink); }
.swatch { width: 40px; height: 40px; border-radius: 50%; background: var(--tone); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.swatch[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--ink); }
.shake { animation: shake 0.35s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.desc { color: var(--muted); max-width: 60ch; white-space: pre-line; }
.stepper { display: inline-flex; align-items: center; background: var(--surface); border-radius: 12px; }
.stepper button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }
.stepper b { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- bottom action bar ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bar > div { max-width: 528px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.btn { flex: 1; height: 52px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.ghost { background: var(--surface); color: var(--ink); }
.btn.danger { background: transparent; color: var(--sale); border: 1px solid currentColor; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn.small { height: 44px; flex: none; font-size: 14px; }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar nav { max-width: 560px; margin: 0 auto; height: var(--tabbar-h); display: grid; grid-template-columns: repeat(4, 1fr); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; color: var(--muted); position: relative; }
.tab[aria-current='page'] { color: var(--ink); font-weight: 600; }
.tab[aria-current='page']::after { content: ''; position: absolute; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tab .n { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 700 11px/18px var(--body); text-align: center; }

/* ---------- cart / checkout ---------- */
.line { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line .art { border-radius: 12px; }
.line .art .glyph { width: 52%; height: 52%; }
.line .meta { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.line .meta .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 1px var(--line); display: inline-block; }
.line .top2 { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.line .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.line .foot .price { text-align: right; justify-content: flex-end; }
.line .rm { color: var(--muted); width: 32px; height: 32px; margin: -6px -6px 0 0; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.promo { display: flex; gap: 8px; margin: 18px 0 6px; }
.promo input { flex: 1; min-width: 0; }
.field { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid transparent; background: var(--surface); padding: 12px 14px; font-size: 16px; }
.field:focus { border-color: var(--accent); outline: none; }
textarea.field { resize: vertical; min-height: 84px; }
.field[aria-invalid='true'] { border-color: var(--sale); }
.fl { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.err { color: var(--sale); font-size: 13px; margin-top: 6px; min-height: 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.seg button { height: 48px; border-radius: 12px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; font-weight: 500; }
.seg button[aria-pressed='true'] { border-color: var(--ink); }
.group-t { font: 600 16px/1.2 var(--display); margin: 26px 0 4px; }
.note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.sum { margin-top: 22px; padding: 16px; background: var(--surface); border-radius: 16px; }
.sum .r { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.sum .r.t { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font: 600 16px/1.2 var(--display); }
.sum .r span:last-child { font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- empty / status ---------- */
.empty { text-align: left; padding: 56px 0 24px; }
.empty h2 { font: 600 20px/1.2 var(--display); margin: 14px 0 6px; }
.empty p { color: var(--muted); margin: 0 0 20px; max-width: 34ch; }
.empty .btn { flex: none; display: inline-flex; }
.empty .art-eye { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.done { padding-top: 64px; }
.done .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; }
.done .tick .i { width: 34px; height: 34px; stroke-width: 2.4; }
.done h1 { font: 600 24px/1.2 var(--display); margin: 20px 0 8px; }
.done p { color: var(--muted); max-width: 34ch; margin: 0 0 8px; }
.skeleton { background: linear-gradient(90deg, var(--surface), color-mix(in srgb, var(--surface) 60%, var(--bg)), var(--surface)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: var(--radius-img); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- profile ---------- */
.me { display: flex; align-items: center; gap: 14px; margin: 8px 0 8px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--fur); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font: 700 22px/1 var(--display); overflow: hidden; position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.list { background: var(--surface); border-radius: 16px; overflow: hidden; }
.list .row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.list .row:last-child { border-bottom: 0; }
.list .row .grow { flex: 1; min-width: 0; }
.list .row small { display: block; color: var(--muted); font-size: 12.5px; }
.list .row[aria-pressed='true'] .tickmark { opacity: 1; }
.tickmark { opacity: 0; color: var(--accent); }

/* ---------- sheet + toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(8, 10, 12, 0.5); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; background: var(--bg); border-radius: 24px 24px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: up 0.22s ease-out; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.sheet h2 { margin: 0 0 12px; font: 600 18px/1.2 var(--display); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; max-width: calc(100% - 32px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); animation: pop 0.2s ease-out; }
.no-tabs-page .toast { bottom: 100px; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px); } }
.banner { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); border-radius: 12px; padding: 10px 14px; font-size: 13px; margin: 6px 0 12px; }
.sortsel { height: 38px; border-radius: 19px; background: var(--surface); border: 0; padding: 0 14px; font-size: 14px; max-width: 100%; }

/* ---------- admin ---------- */
.arow { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.arow:last-child { border-bottom: 0; }
.arow .art { border-radius: 10px; aspect-ratio: 1; }
.arow .art .glyph { width: 56%; height: 56%; }
.arow .t { font-weight: 500; line-height: 1.25; }
.arow small { color: var(--muted); }
.pill { font-size: 12px; padding: 3px 8px; border-radius: 8px; background: var(--line); color: var(--muted); margin-left: 6px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { position: relative; width: 84px; }
.thumb .art { aspect-ratio: 1; border-radius: 12px; }
.thumb .x { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; z-index: 5; }
.addimg { width: 84px; height: 84px; border-radius: 12px; border: 2px dashed var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
.langbox { background: var(--surface); border-radius: 14px; padding: 4px 14px 14px; margin-top: 10px; }
.langbox summary { min-height: 46px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; list-style: none; }
.langbox summary::-webkit-details-marker { display: none; }
.langbox .field { background: var(--bg); }
.colors { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.colors .c { position: relative; }
.colors input[type='color'] { width: 40px; height: 40px; border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer; }
.colors .c button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 12px; line-height: 20px; }
.switch { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; background: var(--surface); border-radius: 12px; margin-top: 8px; width: 100%; text-align: left; }
.switch i { width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; transition: background 0.2s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch[aria-checked='true'] i { background: var(--accent); }
.switch[aria-checked='true'] i::after { transform: translateX(18px); }

@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .rail .card { flex-basis: 176px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- yordamchi sinflar (inline style o'rniga, CSP uchun) ---------- */
.spacer { width: 40px; display: inline-block; }
.acts { display: flex; gap: 8px; }
.strong { font-weight: 600; }
.ln-name { font-weight: 500; }
.inl { display: inline; }
.note.flat { margin: 0; }
.mt6 { margin-top: 6px; }
.mt14 { margin-top: 14px; }
.mt16 { margin-top: 16px; }
.mt22 { margin-top: 22px; }
.gap26 { margin-top: 26px; }
.top-gap { margin: 8px 0 16px; }
.btnrow { display: flex; gap: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sortrow { margin: 6px 0 14px; }
.card .name { font-size: 15px; }
.btn.fit { display: inline-flex; flex: none; }
.btn.wide { width: 100%; margin-top: 18px; flex: none; }
.iconbtn.big { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.sum.tight { margin-top: 8px; }
.sumtot { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.sk-tall { height: 240px; margin-top: 20px; }
.sk-hero { height: 236px; border-radius: 28px; }
.sk-card { aspect-ratio: 4 / 5; }
.colors input[type='color']::-webkit-color-swatch-wrapper { padding: 0; }
.colors input[type='color']::-webkit-color-swatch { border: 0; border-radius: 50%; }
.colors input[type='color']::-moz-color-swatch { border: 0; border-radius: 50%; }

/* ================= v2: qor qoploni kechasi ================= */
:root {
  --r-xl: 28px;
  --r-lg: 22px;
  --shadow: 0 14px 32px -14px rgba(15, 45, 100, 0.38);
  --shadow-soft: 0 6px 16px -8px rgba(15, 45, 100, 0.2);
  --tabbar-h: 64px;
}
:root[data-theme='dark'] {
  --shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.75);
  --shadow-soft: 0 6px 16px -8px rgba(0, 0, 0, 0.6);
}
body {
  background: radial-gradient(120% 46% at 100% -6%, color-mix(in srgb, var(--accent-hi) 34%, transparent), transparent 62%), radial-gradient(90% 40% at -10% 38%, color-mix(in srgb, var(--accent-hi) 14%, transparent), transparent 70%), var(--bg);
  background-attachment: fixed;
}
#app { padding-bottom: calc(var(--tabbar-h) + 44px + env(safe-area-inset-bottom)); }

/* header */
.wordmark { font: 800 27px/1 var(--display); letter-spacing: 0.01em; }
.wordmark .eye { width: 14px; height: 14px; background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 30%, transparent), 0 0 20px var(--amber); animation: blink 0.45s 0.7s 2 both; }
@keyframes blink { 50% { transform: scaleY(0.08); } }
.iconbtn { border-radius: 14px; box-shadow: var(--shadow-soft); }
.acts { align-items: center; }
.top.sticky { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.search input { height: 50px; border-radius: 16px; box-shadow: var(--shadow-soft); }

/* hero */
.hero { gap: 12px; padding-bottom: 26px; margin-bottom: -26px; }
.slide { min-height: 236px; border-radius: var(--r-xl); padding: 26px 22px; box-shadow: 0 16px 24px -16px rgba(15, 60, 140, 0.55); }
.slide h2 { font: 800 28px/1.08 var(--display); max-width: 11ch; letter-spacing: -0.01em; }
.slide p { font-size: 14.5px; max-width: 26ch; margin-top: 2px; }
.slide.s1 { background: radial-gradient(80% 70% at 90% 0%, rgba(160, 220, 255, 0.75), transparent 60%), linear-gradient(160deg, #2b8cf5, #0b4fc2); color: #fff; --fur-tint: rgba(255, 255, 255, 0.14); }
.slide.s2 { background: linear-gradient(150deg, #ffc857, #f08c00); color: #2a1700; --fur-tint: rgba(42, 23, 0, 0.18); }
.slide.s3 { background: linear-gradient(155deg, #ffffff, #a9d3f5); color: #0f1d33; --fur-tint: rgba(15, 29, 51, 0.1); }
.slide::after { content: attr(data-big); position: absolute; right: -4px; top: -16px; font: 800 118px/1 var(--display); color: currentColor; opacity: 0.1; z-index: -1; pointer-events: none; }
.slide.s1::after { font-size: 92px; color: #fff; opacity: 0.14; }
.fur { -webkit-mask-position: calc(var(--p, 0) * -0.22px) 0; mask-position: calc(var(--p, 0) * -0.22px) 0; -webkit-mask-size: 150px 150px; mask-size: 150px 150px; }
.slide .cta { align-self: flex-start; margin-top: 16px; height: 42px; padding: 0 6px 0 18px; border-radius: 21px; background: #fff; color: #0b3f9c; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 10px 22px -10px rgba(5, 25, 70, 0.7); }
.slide .cta i { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.slide.s2 .cta { background: #2a1700; color: #ffc857; }
.slide.s2 .cta i { background: #ffc857; color: #2a1700; }
.slide.s3 .cta { background: #0f1d33; color: #fff; }
.slide.s3 .cta i { background: var(--accent-hi); color: #06182f; }
.dots { margin: 20px 0 4px; }

/* kategoriya plitkalari */
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(82px, 1fr); gap: 10px; overflow-x: auto; margin: 14px -16px 0; padding: 4px 16px 12px; scrollbar-width: none; }
.tiles::-webkit-scrollbar { display: none; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; text-align: center; min-width: 0; }
.tile > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-i { width: 66px; height: 66px; border-radius: 22px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft); position: relative; overflow: hidden; isolation: isolate; transition: transform 0.15s; }
.tile-i::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent-hi); opacity: 0.22; -webkit-mask: url('../assets/rosettes.svg') 0 0 / 60px 60px; mask: url('../assets/rosettes.svg') 0 0 / 60px 60px; }
.tile .glyph { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile:active .tile-i { transform: scale(0.93); }

/* afzalliklar */
.perks { list-style: none; margin: 4px -16px 0; padding: 4px 16px 6px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.perks::-webkit-scrollbar { display: none; }
.perks li { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 18px; padding: 10px 16px 10px 10px; font-weight: 500; font-size: 13.5px; box-shadow: var(--shadow-soft); }
.perks .pi { width: 36px; height: 36px; border-radius: 12px; background: color-mix(in srgb, var(--accent-hi) 26%, transparent); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }

/* bo'limlar */
.sec-head { margin: 30px 0 14px; align-items: center; }
.sec-head h2 { font: 700 20px/1.1 var(--display); letter-spacing: -0.01em; }
.sec-head a { height: 32px; padding: 0 14px; border-radius: 16px; background: var(--surface); display: inline-flex; align-items: center; font-size: 13px; box-shadow: var(--shadow-soft); }
.chip { box-shadow: var(--shadow-soft); }
.chip.on { box-shadow: none; }

/* kartalar */
.rail .card { flex-basis: 164px; }
.art { border-radius: var(--r-lg); box-shadow: var(--shadow-soft); transition: transform 0.18s; }
.art::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 42%, rgba(0, 0, 0, 0.12)); }
.card:active .art { transform: scale(0.97); }
.card .name { font-size: 14.5px; margin: 12px 2px 3px; }
.card .price { margin: 0 2px; font-size: 13.5px; }
.heart { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow-soft); }
.badge { border-radius: 10px; padding: 6px 9px; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.5); }

/* mahsulot sahifasi */
.gallery .art { border-radius: var(--r-xl); aspect-ratio: 1 / 1.04; }
.pdp h1 { font: 700 25px/1.15 var(--display); letter-spacing: -0.01em; }
.pdp .price { font-size: 22px; }
.opt { height: 46px; border-radius: 14px; box-shadow: var(--shadow-soft); }
.opt[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
.swatch[aria-pressed='true'] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }

/* pastki menyu: suzuvchi shisha */
.tabbar { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: 536px; margin: 0 auto; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 28px; background: color-mix(in srgb, var(--surface) 80%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); box-shadow: var(--shadow); padding-bottom: 0; }
.tabbar nav { height: var(--tabbar-h); padding: 6px; gap: 4px; }
.tab { border-radius: 22px; transition: background 0.2s, color 0.2s; }
.tab[aria-current='page'] { background: var(--accent); color: var(--on-accent); }
.tab[aria-current='page']::after { display: none; }
.tab[aria-current='page'] .n { background: var(--ink); color: var(--bg); }
.tab .n { top: 4px; }
.toast { bottom: calc(var(--tabbar-h) + 34px + env(safe-area-inset-bottom)); }

/* pastki harakat paneli */
.bar { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.bar > div { pointer-events: auto; max-width: 536px; padding: 8px; border-radius: 26px; background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.btn { border-radius: 18px; background: linear-gradient(180deg, var(--accent-hi), var(--accent)); box-shadow: 0 12px 22px -12px var(--accent); }
.btn:active { transform: scale(0.98); }
.sum { border-radius: 20px; box-shadow: var(--shadow-soft); }
.list { border-radius: 20px; box-shadow: var(--shadow-soft); }

/* bir martalik kirish animatsiyasi (faqat birinchi ochilishda) */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.intro .hero .slide { animation: rise 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.intro .hero .slide:nth-child(2) { animation-delay: 0.08s; }
.intro .hero .slide:nth-child(3) { animation-delay: 0.16s; }
.intro .tile { animation: rise 0.6s 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.intro .perks li { animation: rise 0.6s 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.intro .rail .card { animation: rise 0.6s 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.intro .rail .card:nth-child(2) { animation-delay: 0.58s; }
.intro .rail .card:nth-child(3) { animation-delay: 0.66s; }
.intro .rail .card:nth-child(n + 4) { animation-delay: 0.74s; }

/* lokatsiya va to'lov */
.geo { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 44px; }
.geo-btn { flex: none; }
.geo-ok { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.geo-x { color: var(--muted); font-size: 13px; text-decoration: underline; }
.paycard { margin-top: 12px; padding: 16px; border-radius: 20px; color: #fff; background: radial-gradient(90% 90% at 90% 0%, rgba(160, 220, 255, 0.55), transparent 60%), linear-gradient(160deg, #2b8cf5, #0b3f9c); display: grid; gap: 4px; box-shadow: var(--shadow); }
.paycard small { opacity: 0.7; }
.paycard b { font: 700 20px/1.2 var(--display); letter-spacing: 0.04em; }
.paycard .btn { margin-top: 10px; justify-self: start; }
.seg button { padding: 0 8px; font-size: 14px; text-align: center; line-height: 1.15; }

/* ================= mahsulot rasmi: studiya ko'rinishi ================= */
.art {
  background:
    radial-gradient(60% 50% at 50% 44%, rgba(255, 255, 255, 0.55), transparent 72%),
    linear-gradient(172deg, color-mix(in srgb, var(--tone, #dde2e6) 55%, #cfe4f7), color-mix(in srgb, var(--tone, #dde2e6) 70%, #8fbbe6));
  color: inherit;
}
:root[data-theme='dark'] .art {
  background:
    radial-gradient(62% 52% at 50% 42%, rgba(120, 180, 255, 0.22), transparent 72%),
    linear-gradient(172deg, color-mix(in srgb, var(--tone, #dde2e6) 18%, #17304f), #0d1b2f);
  color: inherit;
}
.art .fur { background: #fff; opacity: 0.22; -webkit-mask-size: 100px 100px; mask-size: 100px 100px; }
.art .illus { position: absolute; inset: 0; margin: auto; width: 72%; height: 72%; z-index: 1; filter: drop-shadow(0 10px 12px rgba(10, 40, 90, 0.28)); transition: transform 0.25s; }
.card:active .illus { transform: scale(1.04) rotate(-1deg); }
.line .art .illus, .arow .art .illus { width: 82%; height: 82%; filter: none; }
.thumb .art .illus { width: 80%; height: 80%; filter: none; }
.illus .b { fill: var(--ink-c, #3b4a63); stroke: rgba(0, 0, 0, 0.18); stroke-width: 1.2; stroke-linejoin: round; }
.illus .hd { fill: none; stroke: var(--ink-c, #3b4a63); stroke-width: 5; stroke-linecap: round; }
.illus .s { fill: rgba(0, 0, 0, 0.13); }
.illus .h { fill: rgba(255, 255, 255, 0.26); }
.illus .l { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.6; stroke-linecap: round; }
.illus .d { fill: none; stroke: rgba(0, 0, 0, 0.22); stroke-width: 1.4; stroke-linecap: round; }
.illus .w { fill: #fff; fill-opacity: 0.94; stroke: rgba(0, 0, 0, 0.16); stroke-width: 1; }
.gallery .art .illus { width: 66%; height: 66%; }

/* rang nuqtalari */
.cdots { display: flex; align-items: center; gap: 5px; margin: 7px 2px 0; }
.cdots i { width: 12px; height: 12px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 1px var(--line), 0 0 0 3px var(--surface); }
.cdots em { font-style: normal; font-size: 11px; color: var(--muted); }

/* mahsulot sahifasi: afzalliklar va o'xshashlar */
.pdp .perks { margin-top: 22px; }
.pdp + .sec-head { margin-top: 34px; }

/* yopishqoq sarlavha: butun kenglikda */
.top.sticky { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
