/* ============================================================
   FAQAT MOBIL — <link media="screen and (max-width: 899px)">
   Bu fayldagi hech bir qoida kompyuterda qo'llanmaydi.
   Naqsh: yopishqoq sarlavha + qidiruv, pastda tab paneli.
   ============================================================ */

.only-d { display: none !important; }
.wrap { padding: 0 12px; }
body.app main { padding-bottom: calc(var(--tab-h) + var(--safe-bot) + 18px); }

/* ---------- Yopishqoq sarlavha ---------- */
.hdr {
  position: sticky; top: 0; z-index: 90;
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: calc(var(--safe-top) + 9px) 12px 9px;
}
.hdr__top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.hdr__logo { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.hdr__logo img { width: 30px; height: 30px; border-radius: 8px; }
.hdr__logo b { font-size: 16px; font-weight: 800; letter-spacing: -.03em; }
.hdr__act { display: flex; gap: 4px; }
.hdr__ico { position: relative; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; color: var(--ink-2); }
.hdr__ico .dot { position: absolute; top: 2px; right: 2px; }
.hdr__search { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 13px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad-s); }
.hdr__search i { color: var(--g-700); font-size: 17px; }
.hdr__search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14.5px; }
.hdr__cats { margin-top: 9px; }

/* ---------- Sahifa sarlavhasi ---------- */
.ptitle { display: flex; align-items: center; gap: 10px; padding: 12px 12px 8px; }
.ptitle h1 { font-size: 19px; font-weight: 800; flex: 1; }
.iconbtn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); flex-shrink: 0; cursor: pointer; }

/* ---------- Banner ---------- */
.hero { margin: 12px; }
.hero__slide { min-height: 168px; padding: 20px 18px 30px; }
.hero h2 { font-size: 21px; }
.hero p { font-size: 13.5px; }
.hero .btn { height: 40px; font-size: 14px; margin-top: 13px; }
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 12px 4px; }
.promo { padding: 14px; }
.promo b { font-size: 14px; }
.promo span { font-size: 12px; }

/* ---------- Kategoriya plitalari ---------- */
.tiles { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 12px; }
.tile { padding: 11px 5px; gap: 6px; }
.tile__ico { width: 40px; height: 40px; border-radius: 12px; font-size: 19px; }
.tile__name { font-size: 11px; }

/* ---------- Bo'limlar ---------- */
.head { padding: 0 12px; margin: 24px 0 11px; }
.head h2 { font-size: 18px; }

/* ---------- Mahsulot to'ri ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; padding: 0 12px; }
/* Gorizontal lenta — "Chegirmalar" kabi bo'limlar uchun */
.prow { display: flex; gap: 9px; overflow-x: auto; padding: 0 12px 4px; scrollbar-width: none; }
.prow::-webkit-scrollbar { display: none; }
.prow .pcard { flex: 0 0 152px; }
.price { font-size: 16px; }

/* ---------- Statistika ---------- */
.stats { grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 0 12px; }
.stat-n { font-size: 21px; }

.blank { padding: 44px 20px; }
.blank__ico { width: 66px; height: 66px; font-size: 27px; margin-bottom: 13px; }
.blank p { font-size: 14px; }

/* ---------- Footer ---------- */
.foot { padding: 26px 0 calc(var(--tab-h) + var(--safe-bot) + 20px); }
.foot__grid { grid-template-columns: 1fr 1fr; padding: 0 16px; }
.foot__bar { margin-top: 22px; padding: 16px 16px 0; }

/* ---------- Pastki tab paneli ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  height: calc(var(--tab-h) + var(--safe-bot)); padding-bottom: var(--safe-bot);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line);
}
.tabs a {
  flex: 1; min-width: 0; min-height: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 10px; font-weight: 500; color: var(--ink-3); position: relative;
}
.tabs a i { font-size: 20px; line-height: 1; }
.tabs a.is-on { color: var(--g-700); }
.tabs .dot { position: absolute; top: 3px; left: 50%; margin-left: 4px; }
.side, .side-brand, .dhead { display: none !important; }

/* Bosish javobi — mobilda hover yo'q */
.row:active, .pcard:active, .tile:active, .stat:active, .chip:active { transform: scale(.978); transition: transform .09s var(--ease); }

@media (max-width: 370px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tabs a span { font-size: 9px; }
  .price { font-size: 15px; }
}

/* ============================================================
   PROFESSIONAL QATLAM — mobil
   ============================================================ */

.crumbs { padding: 10px 12px 0; }
.trust { grid-template-columns: 1fr; gap: 0; margin: 14px 12px 0; background: var(--card); border-radius: var(--rad); padding: 4px 14px; }
.trust > div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.trust > div:last-child { border-bottom: 0; }

.catbtn, .mega, .scrim { display: none !important; }

/* Katalog: filtr pastdan chiqadigan panel */
.sortbar { padding: 0 12px 12px; }
.frail {
  position: fixed; inset: auto 0 0 0; z-index: 200; max-height: 82vh; overflow-y: auto;
  background: var(--paper); border-radius: var(--rad-l) var(--rad-l) 0 0;
  padding: var(--s4) var(--s3) calc(var(--s6) + var(--safe-bot));
  transform: translateY(101%); transition: transform .28s var(--ease); box-shadow: var(--sh-3);
}
.frail.is-open { transform: none; }
.frail__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.frail__bar b { font-size: 17px; font-weight: 800; }

/* Mahsulot sahifasi */
.pd { padding: 0 12px; }
.gal__main { border-radius: var(--rad); }
.buybox__title { font-size: 19px; }
.buybox__price .price { font-size: 27px; }
main.has-buybar { padding-bottom: calc(var(--tab-h) + var(--safe-bot) + 76px); }

.toast { bottom: calc(var(--tab-h) + var(--safe-bot) + 16px); }

/* ---------- Savat / checkout ---------- */
.twocol { display: block; padding: 0 12px; }
.twocol aside { margin-top: var(--s3); }
.f2 { grid-template-columns: 1fr; }
.steps { padding: 0 12px 12px; }
.fset { padding: var(--s4); }
.sum { padding: var(--s4); }
/* Yakuniy summa doim ko'rinib tursin */
.sumbar {
  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);
}
.sumbar > div { flex-shrink: 0; }
.sumbar em { display: block; font-size: 11.5px; color: var(--ink-3); font-style: normal; }
.sumbar b { font-size: 19px; font-weight: 800; letter-spacing: -.028em; }
.sumbar .btn { flex: 1; }
main.has-sumbar { padding-bottom: calc(var(--tab-h) + var(--safe-bot) + 76px); }

/* ---------- Kirish: bitta ustun ---------- */
.auth { grid-template-columns: 1fr; }
.auth { grid-template-rows: auto 1fr; }
.auth__brand { padding: calc(var(--safe-top) + 14px) 20px 22px; gap: 14px; }
/* ⚠️ `position:absolute` bo'lsa logotip ustiga tushadi — mobilda oqimda tursin */
.auth__back { position: static; margin-bottom: 2px; }
.auth__logo img { width: 34px; height: 34px; }
.auth__logo b { font-size: 17px; }
.auth__lead h2 { font-size: 22px; }
.auth__lead p { font-size: 13.5px; margin-top: 6px; }
.auth__pts { display: none; }              /* mobilda joy tor — forma muhimroq */
.auth__side { padding: 22px 18px calc(28px + var(--safe-bot)); align-items: flex-start; }
.auth__form { max-width: 420px; }
.auth__form h1 { font-size: 23px; }
.roles { gap: 9px; }
