/* ===== Telefonda qulaylik: kattalashmaslik, «‹» orqaga, pastki menyu doim ko'rinadi, rasmni barmoq bilan kattalashtirish ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
@media (max-width: 900px) {
    input, select, textarea { font-size: 16px !important; }          /* iPhone yozish paytida sahifani kattalashtirmasin */
}
/* «‹» tugmasi — tepada chapda (bo'lim/qidiruv/oyna ochiq bo'lsa) */
.nav-back { display: none; flex: none; width: 40px; height: 44px; border: 0; background: none; color: #fff; font-size: 34px; line-height: 1; padding: 0 0 4px; cursor: pointer; }
.nav-back-fix { display: none; }
@media (max-width: 900px) {
    body.nav-deep .nav-back { display: block; }
    body.nav-deep .site-header .hz { grid-template-columns: auto minmax(0, 1fr); }
    body.nav-deep .site-header .hz .logo, body.nav-deep .site-header .hz .header-actions { grid-row: 1; grid-column: 1 / 3; }
    body.nav-deep .site-header .nav-back { grid-row: 2; grid-column: 1; margin-left: -6px; }
    body.nav-deep .site-header .hz-search { grid-row: 2; grid-column: 2; }
    body.nav-ov .nav-back-fix { display: grid; place-items: center; position: fixed; left: 12px; top: max(12px, env(safe-area-inset-top)); z-index: 170; width: 38px; height: 38px;
        border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #17202a; font-size: 28px; line-height: 1; padding-bottom: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer; }
    body.nav-ov #productModal .pc-ov { top: 58px; }
}
/* Pastki menyu doim ko'rinadi: oynalar uning ustida emas, tepasida tugaydi */
@media (max-width: 900px) {
    body.has-hznav .hz-nav { z-index: 160; }
    body.has-hznav .modal, body.has-hznav .cm { bottom: calc(62px + env(safe-area-inset-bottom)); }
    body.has-hznav .pc-sticky { bottom: calc(62px + env(safe-area-inset-bottom)) !important; }
    body.has-hznav .toast { bottom: calc(140px + env(safe-area-inset-bottom)); }
}
/* Rasm oynasi: barmoq bilan kattalashtirish, ✕ tugmasi */
.lightbox { touch-action: none; overflow: hidden; cursor: default; }
.lightbox img { touch-action: none; transform-origin: center center; transition: transform .05s linear; user-select: none; -webkit-user-drag: none; max-width: 100%; }
.lightbox.zoomed img { cursor: grab; }
.lb-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; cursor: pointer; z-index: 2; }
