/* ============================================================
   DILMUSS — onlayn do'kon
   Shrift: faqat Montserrat (og'irlik bilan ierarxiya quriladi).
   Ranglar: Dilmuss Brandbook 2025-2026.
   Mobil-birinchi. Sarlavhalar oddiy harfda — katta harf faqat
   juda kichik yorliqlarda, u ham juda kam.
   ============================================================ */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ============================================================
   TOKENLAR
   ============================================================ */
:root {
  /* brend */
  --pink: #d86487;
  --pink-dark: #c04f72;
  --pink-soft: #eeaac3;
  --blush: #f6ebe9;
  --burgundy: #76162c;
  --plum: #4a202a;

  /* yuza va matn */
  --bg: #fffdfd;
  --bg-2: #faf4f3;
  --surface: #ffffff;
  --ink: #2a1c20;
  --ink-2: #6b565b;
  --ink-3: #97848a;
  --line: #efe4e3;
  --line-2: #e0cfce;

  /* holat */
  --sale: #c62828;
  --ok: #2e7d55;
  --warn: #a86a12;

  /* shkala: 4px ritm */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;

  --pad: 20px;
  --nav-h: 60px;

  --ease: cubic-bezier(.32, .72, 0, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* height:auto shart — HTML dagi height="..." atributi taqdimot ko'rsatmasiga
   aylanadi va u aspect-ratio ni ishlamay qo'yadi (aspect-ratio faqat bitta
   o'lcham auto bo'lganda qo'llanadi). Aniqroq qoidalar (height:100%) baribir ustun. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* .wrap boshqaradi FAQAT gorizontal ichki bo'shliqni, section esa FAQAT vertikalni.
   Shorthand ishlatilsa, .wrap (klass) section (element) ustidan g'olib chiqib,
   vertikal bo'shliqni nolga tushiradi. Shuning uchun mantiqiy longhand. */
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================
   TIPOGRAFIYA — og'irlik va o'lcham bilan ierarxiya
   ============================================================ */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ink);
}

.t-display { font-size: clamp(32px, 8vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; }
.t-h1      { font-size: clamp(26px, 5.5vw, 38px); letter-spacing: -0.03em; }
.t-h2      { font-size: clamp(20px, 4vw, 26px); letter-spacing: -0.025em; }
.t-h3      { font-size: 17px; }

/* yagona katta-harfli element: juda kichik yorliq */
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lead { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.small { font-size: 13px; color: var(--ink-3); }

/* ============================================================
   TUGMALAR — min 48px balandlik (touch)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  background: var(--pink); color: #fff;
  transition: background .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--pink-dark); }
.btn:active { transform: scale(.975); }

.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-line:hover { background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--pink); color: var(--pink-dark); }

.btn-onimg { background: rgba(255,255,255,.95); color: var(--ink); backdrop-filter: blur(8px); }
.btn-onimg:hover { background: #fff; }
.btn-onimg-line {
  background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5);
}
.btn-onimg-line:hover { background: rgba(255,255,255,.26); }

.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 16px; padding: 0 28px; }
.btn-sm { min-height: 40px; font-size: 13.5px; padding: 0 18px; }

/* ============================================================
   HEADER
   ============================================================ */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 253, 253, .88);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { height: var(--nav-h); display: flex; align-items: center; gap: var(--s3); }

.burger {
  width: 44px; height: 44px; margin-left: -12px;
  display: grid; place-items: center; border-radius: 10px;
  transition: background .16s var(--ease);
}
.burger:hover { background: var(--bg-2); }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; position: relative; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

.logo { display: flex; align-items: center; padding: 4px; }
.logo img { height: 19px; width: auto; }

.hdr-nav { display: none; }

.hdr-act { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 10px; position: relative; color: var(--ink);
  transition: background .16s var(--ease);
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 20px; height: 20px; }
.count {
  position: absolute; top: 7px; right: 6px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 999px; background: var(--pink); color: #fff;
  font-size: 10px; font-weight: 700; display: grid; place-items: center;
  line-height: 1; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--bg);
}
.count[hidden] { display: none; }

.store-pick {
  display: none; align-items: center; gap: var(--s2);
  min-height: 40px; padding: 0 14px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap; transition: box-shadow .16s var(--ease);
}
.store-pick svg { width: 15px; height: 15px; color: var(--pink); flex: none; }
.store-pick:hover { box-shadow: inset 0 0 0 1px var(--pink); color: var(--ink); }

/* ---------- Drawer ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 70; background: rgba(42, 28, 32, .5);
  opacity: 0; pointer-events: none; transition: opacity .28s var(--ease);
}
.scrim.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; z-index: 80; inset: 0 auto 0 0;
  width: min(86vw, 360px); background: var(--surface);
  transform: translateX(-100%); transition: transform .34s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.on { transform: none; }
.drawer-top {
  height: var(--nav-h); padding: 0 var(--pad); display: flex;
  align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--surface); z-index: 2;
}
.drawer-top img { height: 18px; }
.x { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -12px; border-radius: 10px; }
.x:hover { background: var(--bg-2); }
.x svg { width: 19px; height: 19px; }
.drawer nav { padding: var(--s3) 0 var(--s7); }
.drawer-lbl { padding: var(--s5) var(--pad) var(--s2); }
.drawer .d-link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: var(--s3) var(--pad);
  font-size: 16px; font-weight: 500;
  transition: background .16s var(--ease);
}
.drawer .d-link:hover { background: var(--bg-2); }
.drawer .d-link.is-on { color: var(--pink-dark); font-weight: 600; }
.drawer .d-link span { font-size: 13px; color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; }
/* max-height: hero hech qachon ekranning katta qismini egallamasin —
   aks holda tugmalar ekran ostida qolib ketadi (noutbukda 900px balandlikda). */
/* Balandlik aniq beriladi (aspect-ratio emas): shunda rasm hech qachon
   ekrandan oshib ketmaydi va tugma doim ko'rinib turadi.
   Rasm object-fit: cover bilan to'ldiradi, shuning uchun nisbat kerak emas. */
.hero-media {
  position: relative;
  width: 100%;
  height: min(66vh, 560px);
  height: min(66svh, 560px);
  overflow: hidden; background: var(--blush);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,28,32,.08) 0%, rgba(42,28,32,.03) 35%, rgba(42,28,32,.62) 100%);
}
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 var(--pad) var(--s6); color: #fff;
}
.hero-copy .label { color: rgba(255,255,255,.82); margin-bottom: var(--s3); }
.hero-copy h1 { color: #fff; margin-bottom: var(--s3); }
.hero-copy p {
  margin: 0 0 var(--s5); font-size: 15.5px; line-height: 1.55;
  max-width: 32ch; color: rgba(255,255,255,.92);
}
.hero-cta { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* ============================================================
   SEKSIYA
   ============================================================ */
section { padding-block: var(--s7); }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s4); margin-bottom: var(--s5);
}
.sec-head-txt { min-width: 0; }
.sec-head p { margin: var(--s2) 0 0; font-size: 14.5px; color: var(--ink-2); max-width: 52ch; line-height: 1.55; }
.sec-link {
  font-size: 14px; font-weight: 500; color: var(--pink-dark); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
}
.sec-link:hover { color: var(--pink); }
.sec-link svg { width: 15px; height: 15px; }

/* ---------- Kategoriya strip ---------- */
.cat-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 45vw; gap: var(--s3);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) var(--s1);
  scroll-padding-inline: var(--pad);
  overscroll-behavior-x: contain;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-card {
  position: relative; border-radius: var(--r); overflow: hidden;
  aspect-ratio: 3 / 4; scroll-snap-align: start; background: var(--blush);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(42,28,32,.66) 100%);
}
.cat-card b {
  position: absolute; left: var(--s3); right: var(--s3); bottom: var(--s3); z-index: 2;
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25;
}

/* ============================================================
   PILL FILTR
   ============================================================ */
.pills {
  display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--pad) * -1) var(--s5); padding: 2px var(--pad);
  scroll-padding-inline: var(--pad);
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; min-height: 42px; padding: 0 18px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line); background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: box-shadow .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.pill:hover { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.pill.is-on { background: var(--ink); box-shadow: none; color: #fff; font-weight: 600; }

.ctl {
  min-height: 42px; padding: 0 16px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line); background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b565b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 15px;
  padding-right: 38px;
}

/* ============================================================
   MAHSULOT GRID
   ============================================================ */
.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5) var(--s3);
}

.card { position: relative; display: flex; flex-direction: column; }
.card-media {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden;
  background: var(--blush); margin-bottom: var(--s3);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .7s var(--ease); }
.card-media img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media img.alt { opacity: 1; }
.card:hover .card-media img.main { transform: scale(1.04); }

.badges {
  position: absolute; top: var(--s3); left: var(--s3); z-index: 2;
  display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
}
.badge {
  font-size: 11.5px; font-weight: 600; letter-spacing: -0.005em;
  padding: 4px 10px; border-radius: 999px; line-height: 1.35;
  background: rgba(255,255,255,.95); color: var(--ink); backdrop-filter: blur(6px);
}
.badge.sale { background: var(--sale); color: #fff; font-variant-numeric: tabular-nums; }

.fav {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  color: var(--ink); transition: transform .16s var(--ease), color .18s var(--ease);
}
.fav::before {
  content: ''; position: absolute; inset: 6px; border-radius: 999px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px); z-index: -1;
}
.fav:active { transform: scale(.88); }
.fav svg { width: 17px; height: 17px; }
.fav.is-on { color: var(--pink); }
.fav.is-on svg { fill: currentColor; }

.card-name {
  font-size: 14.5px; font-weight: 500; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 5px;
}
.card-price {
  font-size: 15px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -0.015em;
  display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap;
}
.card-price s { color: var(--ink-3); font-weight: 400; font-size: 13px; }
.card-price .sum { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.card-meta {
  margin-top: var(--s2); display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-3); font-weight: 400;
}
.card-meta .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ok); flex: none; }
.card-meta .dot.kam { background: var(--warn); }
.card-meta .dot.yoq { background: var(--line-2); }
.swatches { display: flex; align-items: center; gap: 5px; margin-top: var(--s2); min-height: 12px; }
.swatches i { width: 11px; height: 11px; border-radius: 999px; display: block; box-shadow: inset 0 0 0 1px rgba(42,28,32,.16); }
.swatches span { font-size: 11.5px; color: var(--ink-3); margin-left: 2px; }

/* ============================================================
   PDP
   ============================================================ */
.pdp { padding-top: 0; }

/* ---------- PDP galereyasi: asosiy rasm + eskizlar ----------
   Mobil: barmoq bilan suriladigan karusel, ostida eskizlar.
   Desktop: chapda vertikal eskizlar ustuni, o'ngda katta rasm.
   Ikkalasida ham bitta mexanizm — eskiz bosilsa karusel suriladi. */
.pdp-split { display: grid; gap: var(--s6); }
.gal { display: grid; gap: var(--s3); }

.gal-main {
  display: flex; gap: var(--s2);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
  border-radius: var(--r); background: var(--blush);
}
.gal-main::-webkit-scrollbar { display: none; }
.gal-main img {
  flex: 0 0 100%; width: 100%;
  aspect-ratio: 3 / 4; object-fit: cover;
  scroll-snap-align: center; border-radius: var(--r);
  background: var(--blush);
}

.gal-thumbs {
  display: flex; gap: var(--s2);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-th {
  flex: 0 0 62px; padding: 0; border-radius: var(--r-sm);
  overflow: hidden; background: var(--blush);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .18s var(--ease), opacity .18s var(--ease);
  opacity: .62;
}
.gal-th img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gal-th:hover { opacity: .85; }
.gal-th.is-on { opacity: 1; box-shadow: inset 0 0 0 2px var(--ink); }


.crumbs {
  font-size: 13px; color: var(--ink-3); padding: var(--s4) 0 var(--s3);
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.crumbs a { transition: color .16s var(--ease); }
.crumbs a:hover { color: var(--pink-dark); }

.pdp-title { margin-bottom: var(--s2); }
.pdp-sku { font-size: 13px; color: var(--ink-3); margin-bottom: var(--s4); }
.pdp-price {
  display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap;
  margin-bottom: var(--s6); font-variant-numeric: tabular-nums;
}
.pdp-price b { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.pdp-price s { font-size: 16px; color: var(--ink-3); font-weight: 400; }
.pdp-price em {
  font-style: normal; font-size: 13px; font-weight: 600; color: #fff;
  background: var(--sale); padding: 3px 10px; border-radius: 999px;
}

.opt { margin-bottom: var(--s5); }
.opt-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.opt-head b { font-size: 14px; font-weight: 600; }
.opt-head b span { font-weight: 400; color: var(--ink-2); }
.opt-head a { font-size: 13.5px; font-weight: 500; color: var(--pink-dark); white-space: nowrap; }
.opt-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

.chip {
  min-width: 54px; min-height: 48px; padding: 0 16px; border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line); background: var(--surface);
  font-size: 15px; font-weight: 500; display: inline-flex; align-items: center;
  justify-content: center; gap: 5px;
  transition: box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.chip.is-on { box-shadow: inset 0 0 0 2px var(--ink); background: var(--surface); font-weight: 600; }
.chip small { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.chip.is-on small { color: var(--ink-2); }
.chip[disabled] { color: var(--ink-3); background: var(--bg-2); cursor: not-allowed; opacity: .6; }
.chip[disabled] small { color: var(--ink-3); }

.chip-color { min-width: 48px; width: 48px; padding: 0; border-radius: 999px; }
.chip-color i { width: 26px; height: 26px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(42,28,32,.14); }
.chip-color.is-on { box-shadow: inset 0 0 0 2px var(--ink); }

/* mavjudlik */
.avail {
  border-radius: var(--r); padding: var(--s4);
  margin-bottom: var(--s5); background: var(--bg-2);
}
.avail-head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s1); }
.avail-head svg { width: 17px; height: 17px; color: var(--pink); flex: none; }
.avail-head b { font-size: 15px; font-weight: 600; }
.avail > p { margin: 0 0 var(--s3); font-size: 13.5px; color: var(--ink-2); }
.avail-row {
  display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0;
  border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.avail-row:last-child { border-bottom: 0; }
.avail-row .nm { flex: 1; font-weight: 500; }
.avail-row .ct { font-size: 13px; color: var(--ink-3); }
.state {
  font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.state.bor { background: rgba(46, 125, 85, .12); color: var(--ok); }
.state.kam { background: rgba(168, 106, 18, .13); color: var(--warn); }
.state.yoq { background: var(--line); color: var(--ink-3); }

.actions { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s6); }

.spec dl { margin: 0; display: grid; grid-template-columns: minmax(100px, 36%) 1fr; }
.spec dt, .spec dd { margin: 0; padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec dt { color: var(--ink-3); font-weight: 400; }
.spec dd { font-weight: 500; }

.care { display: flex; flex-wrap: wrap; gap: var(--s4); padding: var(--s4) 0 0; }
.care figure { margin: 0; width: 62px; text-align: center; }
.care svg { width: 28px; height: 28px; margin: 0 auto var(--s2); color: var(--ink-2); }
.care figcaption { font-size: 11px; line-height: 1.35; color: var(--ink-3); }

/* ============================================================
   DO'KONLAR
   ============================================================ */
.store-grid { display: grid; gap: var(--s3); }
.store-card {
  border-radius: var(--r); padding: var(--s4);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 3px; text-align: left; width: 100%;
  transition: box-shadow .2s var(--ease), background .2s var(--ease);
}
.store-card:hover { box-shadow: inset 0 0 0 1.5px var(--pink); background: var(--bg-2); }
.store-card.is-on { box-shadow: inset 0 0 0 1.5px var(--pink); background: var(--blush); }
.store-card .city { font-size: 12.5px; font-weight: 500; color: var(--pink-dark); margin-bottom: 2px; }
.store-card b { font-size: 16.5px; font-weight: 600; letter-spacing: -0.02em; }
.store-card .addr { font-size: 14px; color: var(--ink-2); }
.store-card .hrs { font-size: 13px; color: var(--ink-3); margin-top: var(--s2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.store-card .hrs .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ok); flex: none; }

/* ============================================================
   RO'YXAT
   ============================================================ */
.list-item {
  display: grid; grid-template-columns: 84px 1fr auto; gap: var(--s3);
  padding: var(--s4) 0; border-bottom: 1px solid var(--line); align-items: center;
}
.list-item img { width: 84px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-sm); }
.list-item .nm { font-size: 15px; font-weight: 500; line-height: 1.35; }
.list-item .mt { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.list-item .pr { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rm { color: var(--ink-3); font-size: 13px; margin-top: var(--s2); min-height: 32px; }
.rm:hover { color: var(--sale); }

.empty { text-align: center; padding: var(--s8) var(--s5); }
.empty svg { width: 42px; height: 42px; color: var(--line-2); margin: 0 auto var(--s4); }
.empty b { display: block; font-size: 19px; font-weight: 600; margin-bottom: var(--s2); letter-spacing: -0.02em; }
.empty p { margin: 0 auto var(--s5); font-size: 15px; color: var(--ink-2); max-width: 34ch; }

/* ============================================================
   MATN
   ============================================================ */
.prose { max-width: 60ch; }
.prose p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin: 0 0 var(--s4); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h3 { margin: var(--s6) 0 var(--s3); }

.stat-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3);
  margin: var(--s6) 0;
}
.stat { background: var(--bg-2); border-radius: var(--r); padding: var(--s4); }
.stat b {
  display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.035em;
  color: var(--pink-dark); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.stat span { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: var(--s1); }

.panel { background: var(--blush); border-radius: var(--r-lg); padding: var(--s6) var(--s5); text-align: center; }
.panel h2 { margin-bottom: var(--s3); }
.panel p { margin: 0 auto var(--s5); font-size: 15.5px; color: var(--ink-2); max-width: 38ch; line-height: 1.6; }

/* ============================================================
   BIZ HAQIMIZDA
   ============================================================ */
/* katta iqtibos */
.quote {
  margin: var(--s7) 0; padding: 0 0 0 var(--s5);
  border-left: 2px solid var(--pink);
}
.quote p {
  margin: 0; font-size: clamp(19px, 3.6vw, 25px); line-height: 1.4;
  font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
}
.quote cite {
  display: block; margin-top: var(--s3); font-style: normal;
  font-size: 13.5px; color: var(--ink-3);
}

/* DILMUSS nomi tarkibi */
.namebox {
  background: var(--blush); border-radius: var(--r-lg);
  padding: var(--s6) var(--s5); margin: var(--s6) 0;
}
.namebox h3 { margin: 0 0 var(--s5); }
.namelist { display: grid; gap: var(--s3); }
.nameitem { display: flex; align-items: baseline; gap: var(--s3); }
.nameitem b {
  flex: none; width: 44px; font-size: 22px; font-weight: 700;
  color: var(--pink-dark); letter-spacing: -0.03em; line-height: 1;
}
.nameitem span { font-size: 16px; color: var(--ink-2); }
.nameitem span i { font-style: normal; font-weight: 600; color: var(--ink); }

/* qadriyatlar */
.vals { display: grid; gap: var(--s3); margin: var(--s5) 0 0; }
.val {
  border-radius: var(--r); padding: var(--s5);
  box-shadow: inset 0 0 0 1px var(--line);
}
.val b { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: var(--s2); }
.val p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.val .n {
  display: block; font-size: 12px; font-weight: 600; color: var(--pink-dark);
  margin-bottom: var(--s2); font-variant-numeric: tabular-nums;
}

/* matn + rasm bo'limi */
.split { display: grid; gap: var(--s5); align-items: center; margin: var(--s7) 0; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--blush); }
.split h3 { margin: 0 0 var(--s3); }
.split p { margin: 0 0 var(--s3); font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.split p:last-child { margin-bottom: 0; }

/* rasm tasmasi */
/* Do'kon interyerlari — gorizontal kadrlar, shuning uchun 4:3 */
.gallery-band {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78vw; gap: var(--s3);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  margin: var(--s6) calc(var(--pad) * -1); padding-inline: var(--pad);
  scroll-padding-inline: var(--pad); overscroll-behavior-x: contain;
}
.gallery-band::-webkit-scrollbar { display: none; }
.gallery-band img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r); scroll-snap-align: start; background: var(--blush);
}

@media (min-width: 680px) {
  .vals { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
  .namelist { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
  .split { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  .split.flip img { order: 2; }
  .gallery-band { grid-auto-columns: 44vw; }
}
@media (min-width: 1024px) {
  .gallery-band { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .quote { padding-left: var(--s6); }
  .namebox { padding: var(--s7) var(--s6); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.ftr { background: var(--plum); color: #f6e9eb; margin-top: var(--s8); padding: var(--s7) 0 var(--s6); }
.ftr-logo img { height: 22px; margin-bottom: var(--s4); }
.ftr-tag { font-size: 15px; line-height: 1.65; color: #d9c2c7; max-width: 32ch; margin: 0 0 var(--s5); }
.socials { display: flex; gap: var(--s2); margin-bottom: var(--s7); }
.socials a {
  width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); color: #f6e9eb;
  transition: background .18s var(--ease), box-shadow .18s var(--ease);
}
.socials a:hover { background: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); color: #fff; }
.socials svg { width: 18px; height: 18px; }

.ftr-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s4); }
.ftr-col h4 { margin: 0 0 var(--s3); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink-soft); }
.ftr-col a, .ftr-col p { display: block; font-size: 14.5px; color: #e5d3d7; margin: 0 0 var(--s3); transition: color .16s var(--ease); }
.ftr-col a:hover { color: #fff; }
.ftr-btm {
  margin-top: var(--s7); padding-top: var(--s5);
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: 13px; color: #b99ba3; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
}

/* ============================================================
   TOAST / MODAL
   ============================================================ */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 150%);
  z-index: 200; background: var(--ink); color: #fff; padding: 14px 22px;
  border-radius: 999px; font-size: 14.5px; font-weight: 500;
  box-shadow: 0 12px 34px rgba(42,28,32,.32);
  transition: transform .38s var(--ease);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.on { transform: translate(-50%, 0); }

.modal {
  position: fixed; z-index: 90; inset: auto 0 0 0; max-height: 84vh;
  background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(100%); transition: transform .34s var(--ease);
  padding-bottom: var(--s6);
}
.modal.on { transform: none; }
.modal-top {
  position: sticky; top: 0; background: var(--surface); padding: var(--s5) var(--pad) var(--s3);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); z-index: 2;
}
.modal-top b { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.modal-list { padding: var(--s2) var(--pad) 0; }
.modal-row {
  width: 100%; display: flex; align-items: center; gap: var(--s3);
  min-height: 52px; padding: var(--s3) 0;
  border-bottom: 1px solid var(--line); text-align: left; font-size: 15.5px;
}
.modal-row .nm { flex: 1; font-weight: 500; }
.modal-row .ct { font-size: 13px; color: var(--ink-3); text-align: right; }
.modal-row.is-on .nm { color: var(--pink-dark); font-weight: 600; }

/* ============================================================
   TABLET  >= 680px
   ============================================================ */
@media (min-width: 680px) {
  :root { --pad: 28px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s4); }
  .cat-strip { grid-auto-columns: 30vw; gap: var(--s4); }
  .hero-media { height: min(62vh, 520px); height: min(62svh, 520px); }
  .hero-copy { padding-bottom: var(--s7); }
  .store-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .ftr-cols { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-auto-columns: 48%; }
  .actions { flex-direction: row; }
  .actions .btn { flex: 1; }
  .panel { padding: var(--s8) var(--s6); }
}

/* ============================================================
   DESKTOP  >= 1024px
   ============================================================ */
@media (min-width: 1024px) {
  :root { --pad: 40px; --nav-h: 72px; }
  body { font-size: 16px; }
  .burger { display: none; }
  .hdr-nav { display: flex; align-items: center; gap: 2px; margin-left: var(--s5); }
  .hdr-nav a {
    padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 500;
    color: var(--ink-2); transition: background .16s var(--ease), color .16s var(--ease);
  }
  .hdr-nav a:hover { background: var(--bg-2); color: var(--ink); }
  .hdr-nav a.is-on { color: var(--ink); font-weight: 600; }
  .logo img { height: 23px; }
  .store-pick { display: inline-flex; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s7) var(--s5); }
  .cat-strip { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
  .hero-media { height: min(58vh, 500px); height: min(58svh, 500px); }
  .hero-copy { padding-bottom: var(--s8); }
  section { padding-block: var(--s8); }
  .store-grid { grid-template-columns: repeat(3, 1fr); }
  .pdp-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 460px); gap: var(--s8); align-items: start; }

  /* eskizlar chapga, katta rasm o'ngga */
  .gal { grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: var(--s3); }
  .gal-thumbs { flex-direction: column; order: -1; overflow: visible; }
  .gal-th { flex: 0 0 auto; }
  /* en flex-basis dan aniq, shuning uchun max-height xavfsiz —
     rasm ekranga sig'adi, object-fit: cover qolganini hal qiladi */
  .gal-main img { max-height: 76vh; max-height: 76svh; }
  .pdp-side { position: sticky; top: calc(var(--nav-h) + var(--s5)); }
  .list-item { grid-template-columns: 104px 1fr auto; }
  .list-item img { width: 104px; }
  .modal { inset: 50% auto auto 50%; transform: translate(-50%, -46%) scale(.97); width: min(560px, 92vw); max-height: 76vh; border-radius: var(--r-lg); opacity: 0; }
  .modal.on { transform: translate(-50%, -50%); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
