/* ============================================================
   GULDOKON — DIZAYN TIZIMI
   ============================================================
   Naqsh: Uzum / Wildberries — zich vitrina, narx birinchi o'rinda,
   chegirma ko'zga tashlanadi, karta ichida yetkazish muddati.

   Rang mantig'i: gul do'koni ikki rangda yashaydi —
     YASHIL  → barg/tabiat, brend va harakat tugmalari
     PUSHTI  → gulning o'zi, chegirma va sevimlilar
   Fon sovuq kulrang emas, ILIQ QOG'OZ — gul rasmlari ustida
   sovuq kulrang "kasalxona" tuyg'usini beradi.

   Bu fayl — tokenlar va komponentlar. Joylashuv mobile.css / desktop.css da.
   ============================================================ */

:root {
  /* --- Brend: yashil --- */
  --g-900: #0B5C2E;
  --g-700: #0F7A3D;     /* asosiy */
  --g-500: #12B15C;
  --g-100: #E3F5EA;
  --g-050: #F1FAF4;

  /* --- Aksent: atirgul pushtisi (chegirma, sevimli) --- */
  --r-600: #D81B60;
  --r-500: #E5326E;
  --r-100: #FDE7EF;

  /* --- Iliq neytral (qog'oz) --- */
  --paper:  #FBF9F6;
  --card:   #FFFFFF;
  --line:   #EAE5DE;
  --line-2: #DDD6CC;
  --ink:    #191614;
  --ink-2:  #6E6660;
  --ink-3:  #A79E95;

  --amber: #F5A623;
  --blue:  #1668C4;

  /* Soya — iliq ohangda, sof qora emas */
  --sh-1: 0 1px 2px rgba(60,45,30,.06);
  --sh-2: 0 2px 6px rgba(60,45,30,.07), 0 10px 24px rgba(60,45,30,.06);
  --sh-3: 0 8px 20px rgba(60,45,30,.10), 0 24px 56px rgba(60,45,30,.12);

  --rad-s: 10px;
  --rad:   14px;
  --rad-l: 20px;
  --rad-p: 999px;

  --page: 1320px;          /* Uzum kabi keng vitrina */
  --ease: cubic-bezier(.22,1,.36,1);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);

  --head-h: 64px;
  --tab-h: 58px;
}

/* Sotuvchi paneli — ish quroli: quyuq, zich, tinch */
html.s-partner {
  --paper: #12151B; --card: #191D25; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --ink: #EEF1F5; --ink-2: #98A0AC; --ink-3: #666E7A;
  --g-100: rgba(18,177,92,.14); --g-050: rgba(18,177,92,.08);
  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 2px 6px rgba(0,0,0,.4), 0 10px 24px rgba(0,0,0,.3);
  --sh-3: 0 20px 56px rgba(0,0,0,.5);
}
/* Admin — sovuqroq quyuq, sotuvchidan farqlansin */
html.s-admin {
  --paper: #14161B; --card: #1C1F26; --line: rgba(255,255,255,.075); --line-2: rgba(255,255,255,.13);
  --ink: #E9ECF1; --ink-2: #949BA6; --ink-3: #646B76;
  --g-100: rgba(18,177,92,.13); --g-050: rgba(18,177,92,.07);
  --sh-1: 0 1px 2px rgba(0,0,0,.45);
  --sh-2: 0 2px 6px rgba(0,0,0,.45), 0 10px 24px rgba(0,0,0,.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

/* ⚠️ overflow-x FAQAT html da — body ga qo'yilsa overflow-y `auto` bo'lib,
   skroll zanjiri uzilib qoladi va sahifa umuman qimirlamaydi. */
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.028em; text-wrap: balance; }
b, strong { font-weight: 700; }

.num, .price, .price-old, .stat-n { font-variant-numeric: tabular-nums; }

::selection { background: var(--g-100); color: var(--g-900); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--g-700); outline-offset: 2px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   TUGMALAR
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 0; border-radius: var(--rad-s);
  background: var(--g-700); color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .16s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: scale(.975); }
.btn:disabled { background: var(--line); color: var(--ink-3); cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--lg { height: 52px; font-size: 16px; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn--soft { background: var(--g-100); color: var(--g-700); }
.btn--line { background: transparent; border: 1.5px solid var(--line-2); color: var(--ink); }
.btn--rose { background: var(--r-500); }
.btn--ghost { background: transparent; color: var(--g-700); }

/* ============================================================
   FORMALAR
   ============================================================ */
.f { display: block; margin-bottom: 14px; }
.f > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.inp {
  width: 100%; height: 48px; padding: 0 14px;
  background: var(--card); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--rad-s);
  transition: border-color .16s var(--ease);
}
textarea.inp { height: auto; min-height: 108px; padding: 12px 14px; resize: vertical; }
select.inp { cursor: pointer; }
.inp:focus { border-color: var(--g-700); outline: none; }
.inp::placeholder { color: var(--ink-3); }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }

.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--rad-s); font-size: 14px; margin-bottom: 14px; align-items: flex-start; }
.note i { flex-shrink: 0; margin-top: 1px; }
.note--err  { background: var(--r-100); color: #A3123F; }
.note--ok   { background: var(--g-100); color: var(--g-900); }
.note--info { background: #E9F1FB; color: #0E4E96; }
html.s-partner .note--err, html.s-admin .note--err   { background: rgba(229,50,110,.14); color: #FF9BBE; }
html.s-partner .note--ok, html.s-admin .note--ok     { background: rgba(18,177,92,.14); color: #6FE3A0; }
html.s-partner .note--info, html.s-admin .note--info { background: rgba(22,104,196,.16); color: #93C0F5; }

/* ============================================================
   SIRTLAR
   ============================================================ */
.card { background: var(--card); border-radius: var(--rad); box-shadow: var(--sh-1); }
html.s-partner .card, html.s-admin .card { border: 1px solid var(--line); box-shadow: none; }

.rows { background: var(--card); border-radius: var(--rad); box-shadow: var(--sh-1); overflow: hidden; }
html.s-partner .rows, html.s-admin .rows { border: 1px solid var(--line); box-shadow: none; }
.row { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: var(--g-100); color: var(--g-700); flex-shrink: 0; }
.row-txt { flex: 1; min-width: 0; }
.row-t { font-size: 15px; font-weight: 600; }
.row-s { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.row-go { color: var(--ink-3); font-size: 15px; }

.dot { min-width: 19px; height: 19px; padding: 0 6px; border-radius: var(--rad-p); background: var(--r-500); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

.tag { display: inline-block; padding: 3px 9px; border-radius: var(--rad-p); font-size: 11.5px; font-weight: 600; }
.tag--ok   { background: var(--g-100); color: var(--g-900); }
.tag--wait { background: #FFF4E0; color: #8A5A00; }
.tag--no   { background: var(--r-100); color: #A3123F; }

/* ============================================================
   MAHSULOT KARTASI — zich, Uzum naqshi
   ============================================================ */
.pcard { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--rad); overflow: hidden; }
html.s-partner .pcard, html.s-admin .pcard { border: 1px solid var(--line); }
.pcard--off { opacity: .55; }

.pcard__img { position: relative; display: block; aspect-ratio: 1/1; background: var(--g-050); overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }

.pcard__off { position: absolute; left: 8px; top: 8px; background: var(--r-500); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 7px; letter-spacing: -.02em; }
.pcard__wait { position: absolute; left: 8px; top: 8px; background: var(--amber); color: #3D2800; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 7px; }
.pcard__gone { position: absolute; inset: auto 8px 8px 8px; background: rgba(25,22,20,.8); color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 7px; text-align: center; }

.pcard__fav {
  position: absolute; right: 7px; top: 7px; width: 31px; height: 31px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink-2);
  display: grid; place-items: center; font-size: 15px; cursor: pointer; box-shadow: var(--sh-1);
  transition: color .16s var(--ease), transform .12s var(--ease);
}
.pcard__fav.is-on { color: var(--r-500); }
.pcard__fav:active { transform: scale(.88); }

.pcard__body { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.price { font-size: 17px; font-weight: 800; letter-spacing: -.032em; line-height: 1.1; }
.price--off { color: var(--r-600); }
.price-old { font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; }
.pcard__rate { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.pcard__rate i { color: var(--amber); font-size: 11.5px; }
.pcard__name { font-size: 13px; line-height: 1.32; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__shop { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__dlv { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--g-700); margin-top: 1px; }
.pcard__buy {
  margin-top: auto; width: 100%; height: 34px; border: 0; border-radius: 9px;
  background: var(--g-100); color: var(--g-700); font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.pcard__buy:active { transform: scale(.97); }
.pcard__buy:disabled { background: var(--paper); color: var(--ink-3); cursor: not-allowed; }
.pcard__buy.is-in { background: var(--g-700); color: #fff; }

/* ============================================================
   KATEGORIYA PLITALARI
   ============================================================ */
.tiles { display: grid; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px; background: var(--card); border-radius: var(--rad);
  text-align: center; transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
html.s-partner .tile, html.s-admin .tile { border: 1px solid var(--line); }
.tile__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #fff; }
.tile__name { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.tile__n { font-size: 11px; color: var(--ink-3); }

/* Chiplar (filtr / kategoriya lentasi) */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 15px; border-radius: var(--rad-p);
  background: var(--card); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.chip i { font-size: 15px; }
.chip.is-on { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.chip.is-on i { color: #fff !important; }

/* ============================================================
   BANNER
   ============================================================ */
.hero { position: relative; border-radius: var(--rad-l); overflow: hidden; color: #fff; }
/* ⚠️ Slaydlar bir-birining USTIDA turadi. `[hidden]` ni alohida yozish SHART —
   aks holda `display:flex` uni bekor qiladi va uchala slayd birdan ko'rinadi. */
.hero__slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.hero__slide:first-of-type { position: relative; }
.hero__slide[hidden] { display: none !important; }
.hero__slide::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 130% at 88% 12%, rgba(255,255,255,.20) 0%, transparent 55%);
  pointer-events: none;
}
.hero h2 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.hero p { font-size: 14.5px; opacity: .92; margin-top: 6px; max-width: 42ch; }
.hero .btn { margin-top: 16px; align-self: flex-start; background: #fff; color: var(--g-900); }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; gap: 6px; justify-content: center; }
.hero__dots b { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); transition: width .2s var(--ease), background .2s; }
.hero__dots b.is-on { width: 20px; background: #fff; }

/* Yon promo kartalar */
.promo { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 18px; border-radius: var(--rad-l); }
.promo b { font-size: 16px; font-weight: 700; }
.promo span { font-size: 13px; color: var(--ink-2); }
.promo i { font-size: 24px; margin-bottom: 4px; }

/* ============================================================
   BO'LIM SARLAVHASI
   ============================================================ */
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.head h2 { font-size: 20px; font-weight: 800; }
.head a { font-size: 13.5px; font-weight: 600; color: var(--g-700); white-space: nowrap; }

/* ============================================================
   BO'SH HOLAT
   ============================================================ */
.blank { display: flex; flex-direction: column; align-items: center; text-align: center; }
.blank__ico { border-radius: 50%; display: grid; place-items: center; background: var(--g-050); color: var(--g-500); }
.blank p { color: var(--ink-2); max-width: 34ch; }

/* ============================================================
   JADVAL (admin)
   ============================================================ */
.tblbox { overflow-x: auto; background: var(--card); border-radius: var(--rad); box-shadow: var(--sh-1); }
html.s-admin .tblbox, html.s-partner .tblbox { border: 1px solid var(--line); box-shadow: none; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { font-size: 11.5px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.tbl tr:last-child td { border-bottom: 0; }

/* ============================================================
   STATISTIKA
   ============================================================ */
.stats { display: grid; }
.stat { background: var(--card); border-radius: var(--rad); padding: 16px 15px; box-shadow: var(--sh-1); }
html.s-partner .stat, html.s-admin .stat { border: 1px solid var(--line); box-shadow: none; }
.stat-n { font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1; }
.stat-l { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }

.money {
  border-radius: var(--rad-l); padding: 22px 20px; color: #fff;
  background: radial-gradient(130% 150% at 10% 0%, rgba(18,177,92,.5) 0%, transparent 58%),
              linear-gradient(155deg, #0F7A3D 0%, #0B5C2E 100%);
}
.money .l { font-size: 12.5px; opacity: .86; }
.money .n { font-size: 31px; font-weight: 800; letter-spacing: -.028em; margin-top: 4px; line-height: 1.1; }
.money .s { font-size: 12.5px; opacity: .86; margin-top: 6px; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--card); border-top: 1px solid var(--line); margin-top: 48px; }
.foot__grid { display: grid; gap: 24px; }
.foot h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 10px; }
.foot a, .foot li { display: block; font-size: 13.5px; color: var(--ink-2); padding: 3px 0; }
.foot a:hover { color: var(--g-700); }
.foot__bar { border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   PROFESSIONAL QATLAM — 2-bosqich
   ============================================================ */

/* --- Bo'shliq shkalasi: hamma joyda 4px karrali --- */
:root { --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:20px; --s6:24px; --s8:32px; --s10:40px; --s12:48px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--g-700); }
.crumbs i { font-size: 11px; opacity: .6; }

/* ---------- Xizmat lentasi (ishonch signallari) ---------- */
.trust { display: grid; gap: var(--s3); }
.trust div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.trust i { font-size: 19px; color: var(--g-700); flex-shrink: 0; }
.trust b { color: var(--ink); font-weight: 600; display: block; font-size: 13.5px; }

/* ---------- Katalog tugmasi + mega-menyu ---------- */
.catbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
  border: 0; border-radius: var(--rad-s); background: var(--g-700); color: #fff;
  font-size: 14.5px; font-weight: 600; cursor: pointer; flex-shrink: 0;
}
.catbtn i { font-size: 17px; }
.mega {
  position: absolute; top: calc(var(--head-h) - 6px); left: 24px; z-index: 120;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--rad-l);
  box-shadow: var(--sh-3); padding: var(--s4); width: min(720px, 70vw);
  display: none; grid-template-columns: repeat(2, 1fr); gap: 4px;
}
.mega.is-open { display: grid; }
.mega a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--rad-s); }
.mega a:hover { background: var(--g-050); }
.mega__ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; color: #fff; flex-shrink: 0; }
.mega__t { font-size: 14px; font-weight: 600; }
.mega__s { font-size: 12px; color: var(--ink-3); }
.scrim { position: fixed; inset: 0; z-index: 110; background: rgba(25,22,20,.28); display: none; }
.scrim.is-open { display: block; }

/* ---------- Sarlavha ikonkalari yozuvi bilan ---------- */
.hact { display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; padding: 4px 10px; border-radius: var(--rad-s); color: var(--ink-2); transition: background .16s var(--ease); }
.hact i { font-size: 19px; }
.hact span { font-size: 10.5px; font-weight: 500; }
.hact .dot { position: absolute; top: 0; right: 4px; }

/* ---------- Filtr paneli (katalog, kompyuter) ---------- */
.frail { display: flex; flex-direction: column; gap: var(--s5); }
.fgrp { background: var(--card); border-radius: var(--rad); padding: var(--s4); }
html.s-partner .fgrp, html.s-admin .fgrp { border: 1px solid var(--line); }
.fgrp h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 11px; }
.fchk { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.fchk input { width: 17px; height: 17px; accent-color: var(--g-700); flex-shrink: 0; }
.fchk.is-on { color: var(--g-700); font-weight: 600; }
.fchk small { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.frange { display: flex; align-items: center; gap: 8px; }
.frange .inp { height: 40px; padding: 0 10px; font-size: 13.5px; }
.frange span { color: var(--ink-3); }

/* Saralash — segment tugmalar (select o'rniga) */
.sortbar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sortbar::-webkit-scrollbar { display: none; }
.sortbar a {
  flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: var(--rad-p);
  display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 500;
  color: var(--ink-2); background: var(--card); border: 1px solid var(--line); white-space: nowrap;
}
.sortbar a.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }

/* ---------- Kartaga qo'shimchalar ---------- */
.pcard__pay { font-size: 11.5px; color: var(--ink-3); }
.pcard__new { font-size: 11.5px; color: var(--g-700); font-weight: 600; }

/* ---------- MAHSULOT SAHIFASI ---------- */
.pd { display: grid; gap: var(--s6); }
.gal { display: grid; gap: var(--s3); }
.gal__main { position: relative; aspect-ratio: 1/1; border-radius: var(--rad-l); overflow: hidden; background: var(--card); }
.gal__main img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gal__thumbs::-webkit-scrollbar { display: none; }
.gal__thumbs button { flex: 0 0 66px; height: 66px; border-radius: 11px; overflow: hidden; border: 2px solid transparent; background: var(--card); padding: 0; cursor: pointer; }
.gal__thumbs button.is-on { border-color: var(--g-700); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.buybox { display: flex; flex-direction: column; gap: var(--s4); }
.buybox__price { display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap; }
.buybox__price .price { font-size: 32px; }
.buybox__title { font-size: 21px; font-weight: 700; line-height: 1.28; }
.buybox__meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }

.specs { display: grid; gap: 1px; background: var(--line); border-radius: var(--rad); overflow: hidden; }
.specs div { display: flex; gap: 12px; padding: 11px 14px; background: var(--card); font-size: 13.5px; }
.specs dt { color: var(--ink-2); min-width: 130px; }
.specs dd { font-weight: 600; }

.seller { display: flex; align-items: center; gap: 12px; padding: var(--s4); background: var(--card); border-radius: var(--rad); }
html.s-partner .seller, html.s-admin .seller { border: 1px solid var(--line); }
.seller img { width: 46px; height: 46px; border-radius: 13px; object-fit: cover; flex-shrink: 0; }
.seller b { font-size: 14.5px; display: block; }
.seller span { font-size: 12.5px; color: var(--ink-2); }

/* Mobil: yopishqoq sotib olish paneli */
.buybar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-bot)); z-index: 88;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--card); border-top: 1px solid var(--line);
}
.buybar .price { font-size: 19px; }
.buybar .btn { flex: 1; }

/* ---------- Xabar (toast) ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(10px); z-index: 500;
  padding: 11px 18px; border-radius: var(--rad-s); font-size: 14px; font-weight: 600; color: #fff;
  box-shadow: var(--sh-3); opacity: 0; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--ok { background: var(--g-700); }
.toast--no { background: var(--r-500); }

/* ============================================================
   SAVAT VA CHECKOUT
   ============================================================ */

/* --- Do'kon bo'yicha guruh ---
   Savatdagi mahsulotlar do'konlarga ajratiladi, chunki har do'kondan
   ALOHIDA buyurtma yaratiladi va yetkazish ham alohida bo'ladi. */
.cgroup { background: var(--card); border-radius: var(--rad); overflow: hidden; margin-bottom: var(--s3); }
html.s-partner .cgroup, html.s-admin .cgroup { border: 1px solid var(--line); }
.cgroup__top { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.cgroup__top img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; }
.cgroup__top b { font-size: 14px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cgroup__dlv { font-size: 12px; color: var(--g-700); font-weight: 600; white-space: nowrap; }

.citem { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.citem:last-child { border-bottom: 0; }
.citem__img { width: 76px; height: 76px; border-radius: 11px; object-fit: cover; flex-shrink: 0; background: var(--g-050); }
.citem__mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.citem__name { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.citem__price { font-size: 16px; font-weight: 800; letter-spacing: -.028em; }
.citem__old { font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; }
.citem__tools { display: flex; align-items: center; gap: 12px; margin-top: 5px; }
.citem__del { border: 0; background: none; color: var(--ink-3); font-size: 15px; cursor: pointer; padding: 4px; }
.citem__del:hover { color: var(--r-500); }

/* Miqdor o'zgartirgich */
.qty { display: inline-flex; align-items: center; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad-p); padding: 3px; }
.qty button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--card); font-size: 17px; font-weight: 600; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.qty button:disabled { color: var(--ink-3); cursor: not-allowed; }
.qty b { min-width: 28px; text-align: center; font-size: 14.5px; font-variant-numeric: tabular-nums; }

/* --- Yakuniy hisob paneli --- */
.sum { background: var(--card); border-radius: var(--rad); padding: var(--s5); }
html.s-partner .sum, html.s-admin .sum { border: 1px solid var(--line); }
.sum__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-2); padding: 6px 0; }
.sum__row b { color: var(--ink); font-weight: 600; }
.sum__row--off b { color: var(--r-600); }
.sum__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; }
.sum__total span { font-size: 15px; font-weight: 700; }
.sum__total b { font-size: 25px; font-weight: 800; letter-spacing: -.03em; }

/* --- Checkout bosqichlari --- */
.steps { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.steps b { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink-2); }
.steps b.is-on { color: var(--g-700); }
.steps b i { width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink-2); display: grid; place-items: center; font-size: 11px; font-style: normal; font-weight: 700; }
.steps b.is-on i { background: var(--g-700); color: #fff; }

.fset { background: var(--card); border-radius: var(--rad); padding: var(--s5); margin-bottom: var(--s3); }
html.s-partner .fset, html.s-admin .fset { border: 1px solid var(--line); }
.fset > h3 { font-size: 16px; font-weight: 700; margin-bottom: var(--s4); display: flex; align-items: center; gap: 9px; }
.fset > h3 i { color: var(--g-700); }
.f2 { display: grid; gap: 0 12px; }

/* --- Sana va vaqt tanlash --- */
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 auto; cursor: pointer; }
.day input { position: absolute; opacity: 0; pointer-events: none; }
.day span {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 66px; padding: 10px 8px; border-radius: var(--rad-s);
  border: 1.5px solid var(--line); background: var(--card); transition: .15s;
}
.day em { font-size: 11.5px; color: var(--ink-3); font-style: normal; }
.day strong { font-size: 15px; font-weight: 700; }
.day input:checked + span { border-color: var(--g-700); background: var(--g-050); }
.day input:checked + span em { color: var(--g-700); }

.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.slot { cursor: pointer; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span { display: grid; place-items: center; height: 44px; border-radius: var(--rad-s); border: 1.5px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; transition: .15s; }
.slot input:checked + span { border-color: var(--g-700); background: var(--g-050); color: var(--g-700); }
.slot input:disabled + span { opacity: .4; cursor: not-allowed; }

/* --- To'lov usuli --- */
.pays { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pay { cursor: pointer; }
.pay input { position: absolute; opacity: 0; pointer-events: none; }
.pay span { display: flex; align-items: center; gap: 11px; padding: 14px; border-radius: var(--rad-s); border: 1.5px solid var(--line); background: var(--card); transition: .15s; }
.pay i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.pay b { font-size: 14.5px; display: block; }
.pay em { font-size: 12px; color: var(--ink-3); font-style: normal; }
.pay input:checked + span { border-color: var(--g-700); background: var(--g-050); }

/* --- Sovg'a bloki (otkritka / anonim) --- */
.gift { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--r-100); border-radius: var(--rad-s); font-size: 13.5px; color: #8E0F3E; }
html.s-partner .gift, html.s-admin .gift { background: rgba(229,50,110,.13); color: #FF9BBE; }
.gift i { font-size: 18px; }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch input { width: 19px; height: 19px; accent-color: var(--g-700); }

/* ============================================================
   KIRISH / RO'YXATDAN O'TISH
   Ikki panel: chapda brend, o'ngda forma. Mobilda bitta ustun.
   ============================================================ */

.auth { display: grid; min-height: 100dvh; }

/* --- Chap panel: brend --- */
.auth__brand {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(130% 120% at 15% 0%, rgba(18,177,92,.55) 0%, transparent 55%),
              linear-gradient(155deg, #12B15C 0%, #0F7A3D 45%, #0B5C2E 100%);
  display: flex; flex-direction: column;
}
/* Yumshoq gul naqshi — yassi yashilni jonlantiradi */
.auth__brand::before {
  content: ''; position: absolute; inset: -10%;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.14) 0 8%, transparent 8.5%),
    radial-gradient(circle at 12% 78%, rgba(255,255,255,.10) 0 11%, transparent 11.5%),
    radial-gradient(circle at 68% 88%, rgba(229,50,110,.20) 0 9%, transparent 9.5%);
  pointer-events: none;
}
.auth__logo { display: flex; align-items: center; gap: 11px; position: relative; }
.auth__logo img { width: 40px; height: 40px; border-radius: 11px; background: #fff; padding: 4px; }
.auth__logo b { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }

.auth__lead { position: relative; }
.auth__lead h2 { font-size: 34px; font-weight: 800; letter-spacing: -.035em; }
.auth__lead p { font-size: 15.5px; opacity: .9; margin-top: 12px; max-width: 38ch; line-height: 1.6; }

.auth__pts { position: relative; display: grid; gap: 14px; }
.auth__pts div { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.auth__pts i {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 17px;
}

/* --- O'ng panel: forma --- */
.auth__side { display: flex; align-items: center; justify-content: center; background: var(--paper); }
.auth__form { width: 100%; }
.auth__form h1 { font-size: 27px; font-weight: 800; }
.auth__form > p { color: var(--ink-2); font-size: 14.5px; margin: 8px 0 24px; }

/* Ikonkali maydon */
.inpwrap { position: relative; }
.inpwrap > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 17px; pointer-events: none; }
.inpwrap .inp { padding-left: 43px; }
.inpwrap:focus-within > i { color: var(--g-700); }
.eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; background: none; color: var(--ink-3);
  border-radius: 9px; cursor: pointer; display: grid; place-items: center; font-size: 17px;
}
.eye:hover { color: var(--ink); }

.auth__alt { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--ink-3); font-size: 13px; }
.auth__alt::before, .auth__alt::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.auth__foot { text-align: center; font-size: 14.5px; color: var(--ink-2); margin-top: 22px; }
.auth__foot a { color: var(--g-700); font-weight: 700; }

.auth__back { position: absolute; top: 20px; left: 20px; z-index: 5; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: #fff; opacity: .9; }

/* Rol tanlash — ro'yxatdan o'tish */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.role { cursor: pointer; }
.role input { position: absolute; opacity: 0; pointer-events: none; }
.role span {
  display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center;
  padding: 16px 10px; border: 1.5px solid var(--line); border-radius: var(--rad);
  background: var(--card); transition: .15s;
}
.role i { font-size: 25px; color: var(--ink-3); transition: color .15s; }
.role b { font-size: 14.5px; }
.role em { font-size: 11.5px; color: var(--ink-3); font-style: normal; line-height: 1.35; }
.role input:checked + span { border-color: var(--g-700); background: var(--g-050); }
.role input:checked + span i { color: var(--g-700); }
.role input:focus-visible + span { outline: 2px solid var(--g-700); outline-offset: 2px; }

/* Katta rol tanlash — /rol sahifasi */
.role--wide span { flex-direction: row; text-align: left; gap: 14px; padding: 16px; }
.role--wide .role__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.role--wide i.tick { font-size: 20px; color: var(--line-2); }
.role--wide input:checked + span i.tick { color: var(--g-700); }
