/* ============================================================
   FAQAT KOMPYUTER — <link media="screen and (min-width: 900px)">
   Bu fayldagi hech bir qoida telefonda qo'llanmaydi.
   Naqsh: chapda yon menyu + yuqorida keng sarlavha/qidiruv (Uzum kabi).
   ============================================================ */

:root { --side: 236px; }

.only-m { display: none !important; }

body.app { padding-left: var(--side); }
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 24px; }
body.app main { padding-bottom: 20px; }

/* ---------- Chap yon menyu ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 95;
  display: flex; flex-direction: column; gap: 3px; padding: 16px 12px;
  background: var(--card); border-right: 1px solid var(--line); overflow-y: auto;
}
.side-brand { display: flex !important; align-items: center; gap: 9px; padding: 6px 10px 18px; }
.side-brand img { width: 32px; height: 32px; border-radius: 9px; }
.side-brand b { font-size: 16px; font-weight: 800; letter-spacing: -.03em; }
.side a {
  display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 13px;
  border-radius: var(--rad-s); font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.side a i { font-size: 18px; width: 21px; text-align: center; }
.side a.is-on { background: var(--g-100); color: var(--g-700); font-weight: 600; }
.side .dot { margin-left: auto; }
.side__sep { height: 1px; background: var(--line); margin: 10px 4px; }
.side__cta { margin: 8px 0 4px; background: var(--g-700); color: #fff !important; font-weight: 600; }
.side__cta.is-on { background: var(--g-700); color: #fff !important; }

/* ---------- Yuqori sarlavha (qidiruv + hisob) ---------- */
.dhead {
  display: flex !important; align-items: center; gap: 18px;
  position: sticky; top: 0; z-index: 90; height: var(--head-h);
  padding: 0 24px; margin-left: 0;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.dhead__search { flex: 1; max-width: 640px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--rad-s); transition: border-color .16s var(--ease); }
.dhead__search:focus-within { border-color: var(--g-700); }
.dhead__search i { color: var(--g-700); font-size: 17px; }
.dhead__search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; }
.dhead__act { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.dhead__ico { position: relative; width: 40px; height: 40px; border-radius: var(--rad-s); display: grid; place-items: center; font-size: 19px; color: var(--ink-2); transition: background .16s var(--ease); }
.dhead__ico .dot { position: absolute; top: 3px; right: 3px; }
.dhead__me { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 13px 0 5px; border-radius: var(--rad-p); background: var(--paper); border: 1px solid var(--line); }
.dhead__me img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.dhead__me span { font-size: 13.5px; font-weight: 600; max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dhead__role { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: var(--rad-p); background: var(--g-100); color: var(--g-700); }

.hdr, .tabs { display: none !important; }

/* ---------- Sahifa sarlavhasi ---------- */
.ptitle { display: flex; align-items: center; gap: 12px; max-width: var(--page); margin: 0 auto; padding: 26px 24px 12px; }
.ptitle h1 { font-size: 28px; font-weight: 800; flex: 1; }
.ptitle .iconbtn { display: none; }   /* yon menyu bor — orqaga kerak emas */

/* ---------- Banner: katta + yon promo ---------- */
.herobox { display: grid; grid-template-columns: 1fr 300px; gap: 16px; max-width: var(--page); margin: 20px auto 0; padding: 0 24px; }
.hero { margin: 0; }
.hero__slide { min-height: 268px; padding: 40px 44px 44px; }
.hero h2 { font-size: 34px; }
.hero p { font-size: 16px; margin-top: 9px; }
.hero .btn { height: 46px; padding: 0 26px; font-size: 15px; margin-top: 22px; }
.promos { display: grid; gap: 16px; grid-template-rows: 1fr 1fr; align-content: stretch; }
.promo { justify-content: flex-start; }
.promo { padding: 20px; }

/* ---------- Kategoriya plitalari ---------- */
.tiles { grid-template-columns: repeat(8, 1fr); gap: 12px; max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.tile { padding: 16px 8px; }
.tile__ico { width: 50px; height: 50px; border-radius: 15px; font-size: 24px; }
.tile__name { font-size: 13px; }

/* ---------- Bo'limlar ---------- */
.head { max-width: var(--page); margin: 38px auto 14px; padding: 0 24px; }
.head h2 { font-size: 24px; }

/* ---------- Mahsulot to'ri: zich, Uzum kabi ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.prow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr); grid-template-columns: repeat(6, 1fr); gap: 14px; overflow-x: auto; max-width: var(--page); margin: 0 auto; padding: 0 24px 6px; scrollbar-width: none; }
.prow::-webkit-scrollbar { display: none; }
.pcard__body { padding: 11px 12px 13px; gap: 4px; }
.price { font-size: 18px; }
.pcard__name { font-size: 13.5px; }
.pcard__buy { height: 38px; font-size: 13.5px; }

.chips { max-width: var(--page); margin: 0 auto; padding: 0 24px 14px; }

/* ---------- Statistika ---------- */
.stats { grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.stat { padding: 20px 18px; }
.stat-n { font-size: 28px; }

.blank { padding: 78px 24px; }
.blank__ico { width: 84px; height: 84px; font-size: 33px; margin-bottom: 18px; }
.blank p { font-size: 15px; }

/* ---------- Footer ---------- */
.foot { padding: 40px 0 30px; }
.foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.foot__bar { max-width: var(--page); margin: 30px auto 0; padding: 20px 24px 0; }

/* ---------- Sichqoncha ---------- */
@media (hover: hover) and (pointer: fine) {
  .pcard { transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
  .pcard:hover { box-shadow: var(--sh-3); transform: translateY(-4px); z-index: 2; }
  .pcard:hover .pcard__img img { transform: scale(1.06); }
  .pcard__buy:hover { background: var(--g-700); color: #fff; }
  .pcard__fav:hover { color: var(--r-500); }
  .tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
  .chip:hover { border-color: var(--g-700); color: var(--g-700); }
  .chip.is-on:hover { color: #fff; }
  .row:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
  .side a:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
  .dhead__ico:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
  .btn:hover { filter: brightness(1.07); }
  .stat:hover { box-shadow: var(--sh-2); }
}

/* ============================================================
   PROFESSIONAL QATLAM — kompyuter
   ============================================================ */

/* Sarlavha: Katalog tugmasi + qidiruv + yozuvli ikonkalar */
.dhead { gap: 14px; position: sticky; }
.dhead__search { max-width: none; }
.mega { top: calc(var(--head-h) - 4px); }

.crumbs { max-width: var(--page); margin: 0 auto; padding: 18px 24px 0; }

/* Xizmat lentasi — banner ostida, 3 ustun */
.trust { grid-template-columns: repeat(3, 1fr); max-width: var(--page); margin: 18px auto 0; padding: 0 24px; }
.trust > div { background: var(--card); border-radius: var(--rad); padding: 14px 16px; }
html.s-partner .trust > div, html.s-admin .trust > div { border: 1px solid var(--line); }

/* Katalog: chapda filtr paneli + o'ngda to'r */
.catwrap { display: grid; grid-template-columns: 246px 1fr; gap: 24px; max-width: var(--page); margin: 0 auto; padding: 0 24px; align-items: start; }
.catwrap .pgrid { padding: 0; max-width: none; }
.frail { position: sticky; top: calc(var(--head-h) + 16px); }
.sortbar { margin-bottom: 16px; }

/* Mahsulot sahifasi: galereya + yopishqoq sotib olish bloki */
.pd { grid-template-columns: minmax(0,1fr) 380px; gap: 36px; align-items: start; max-width: var(--page); margin: 0 auto; padding: 8px 24px 0; }
.gal { grid-template-columns: 76px 1fr; grid-auto-flow: column; align-items: start; }
.gal__thumbs { flex-direction: column; max-height: 520px; overflow-y: auto; }
.gal__thumbs button { flex: 0 0 72px; height: 72px; }
.buybox { position: sticky; top: calc(var(--head-h) + 16px); background: var(--card); border-radius: var(--rad-l); padding: 24px; box-shadow: var(--sh-1); }
html.s-partner .buybox, html.s-admin .buybox { border: 1px solid var(--line); }
.buybox__title { font-size: 24px; }
.buybar { display: none !important; }

/* Kartada tugma hover'da chiqadi — to'r tozaroq ko'rinadi */
@media (hover: hover) and (pointer: fine) {
  .pgrid .pcard__buy, .prow .pcard__buy { opacity: 0; transform: translateY(4px); transition: opacity .18s var(--ease), transform .18s var(--ease), background .16s, color .16s; }
  .pgrid .pcard:hover .pcard__buy, .prow .pcard:hover .pcard__buy { opacity: 1; transform: none; }
  .pgrid .pcard:focus-within .pcard__buy, .prow .pcard:focus-within .pcard__buy { opacity: 1; transform: none; }
  .hact:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
  .sortbar a:hover { border-color: var(--ink-3); }
  .fchk:hover { color: var(--g-700); }
}

.toast { bottom: 28px; }

/* Sotib olish bloki ichidagi ishonch ro'yxati — 380px ga 3 ustun sig'maydi */
.buybox .trust { grid-template-columns: 1fr; gap: 10px; }
.buybox .trust > div { background: none; border: 0; padding: 0; }

/* Galereya rasmi juda baland cho'zilmasin — ekranga sig'sin */
.gal__main { max-height: 560px; }
.gal { align-items: start; }
.seller span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Savat / checkout: ikki ustun ---------- */
.twocol { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 24px; max-width: var(--page); margin: 0 auto; padding: 0 24px; align-items: start; }
.twocol aside { position: sticky; top: calc(var(--head-h) + 16px); }
.f2 { grid-template-columns: 1fr 1fr; }
.slots { grid-template-columns: repeat(4, 1fr); }
.citem__img { width: 92px; height: 92px; }
.steps { max-width: var(--page); margin: 0 auto; padding: 0 24px 16px; }
.sumbar { display: none !important; }

/* ---------- Kirish: ikki panel ---------- */
.auth { grid-template-columns: 1.05fr .95fr; }
.auth__brand { padding: 44px 48px; justify-content: space-between; }
.auth__side { padding: 40px; }
.auth__form { max-width: 396px; }
.auth__back { display: none; }
