/* ===== SAVDO: Ozon uslubidagi tepa qism (o'z ranglarimiz: to'q fon, sariq belgi, ko'k qidiruv) ===== */
.site-header .hz { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; padding-bottom: 10px; }
.hz .logo { flex: none; }
.hz-cat { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: 12px;
    background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.hz-cat:hover { filter: brightness(1.08); }
.hz-cat .ic { display: grid; grid-template-columns: 7px 7px; gap: 3px; }
.hz-cat .ic i { width: 7px; height: 7px; background: #fff; border-radius: 2px; }

.hz-search { flex: 1; min-width: 0; display: flex; align-items: stretch; background: #fff; border: 2px solid var(--accent); border-radius: 12px; position: relative; }
.hz-search .search-box input { border-radius: 10px 0 0 10px !important; background: transparent; }
.hz-search .photo-menu { z-index: 60; }
.hz-search .search-box { flex: 1; min-width: 0; }
.hz-search .search-box input { border: 0 !important; border-radius: 0 !important; height: 40px; box-shadow: none !important; outline: none !important; padding-left: 14px !important; }
.hz-search .search-ico { display: none; }
.hz-go { flex: none; border: 0; background: var(--accent); color: #fff; width: 56px; font-size: 18px; cursor: pointer; margin: 3px; border-radius: 9px; }
.hz-go:hover { filter: brightness(1.08); }

.hz .header-actions { gap: 4px; }
.hz-ico { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 58px; padding: 4px 6px; border: 0; background: none;
    color: #cfd6de; font: inherit; font-size: 11.5px; cursor: pointer; border-radius: 10px; }
.hz-ico .e { font-size: 20px; line-height: 1.1; color: #fff; }
.hz-ico:hover { background: rgba(255,255,255,.08); color: #fff; }
.hz-ico b { position: absolute; top: 0; right: 10px; background: #f5a623; color: #17202a; border-radius: 999px; font-size: 10.5px; padding: 0 5px; line-height: 16px; }
.hz-ico b.dot { background: #e5484d; color: #fff; }
.hz .btn-sell { height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 12px; font-size: 14.5px; margin-left: 6px; }
.hz .lang-switch { margin-left: 4px; }
.hz .btn-sell .short { display: none; }

/* eski bo'laklar: magazin telefoni va ♥/💬 qatori endi belgilarda */
#headerCall, #olxBar { display: none !important; }
.site-header .search-wrap.hz-old { display: none; }
/* hisob qatori (balans, chiqish) — 👤 bosilganda */
.site-header #acctLine { max-width: 1200px; margin: 0 auto; padding: 0 16px 10px; display: none; }
body.hz-acct-open .site-header #acctLine:not(:empty) { display: flex; }

/* Planshet: belgilar yozuvsiz */
@media (max-width: 1100px) {
    .hz-ico { min-width: 40px; }
    .hz-ico .t { display: none; }
    .hz-ico b { right: 2px; }
}
/* Telefon: 2 qator */
@media (max-width: 900px) {
    .site-header .hz { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
    .hz .logo { grid-row: 1; grid-column: 1 / 3; min-width: 0; justify-self: start; }
    .hz .header-actions { grid-row: 1; grid-column: 1 / 3; justify-self: end; min-width: 0; }
    .hz-cat { grid-row: 2; grid-column: 1; height: 44px; padding: 0 13px; }
    .hz-search { grid-row: 2; grid-column: 2; }
    .hz-cat .t { display: none; }
    .hz .btn-sell { height: 36px; padding: 0 10px; font-size: 13px; margin-left: 2px; }
    .hz .btn-sell .long { display: none; }
    .hz .btn-sell .short { display: inline; }
    .hz-go { width: 46px; }
    .hz .lang-switch button { padding: 4px 6px; font-size: 12px; }
}
@media (max-width: 400px) {
    .hz .logo #shopName { display: none; }
    .hz-ico { min-width: 34px; padding: 4px 3px; }
}

/* ===== Telefon: pastki menyu ===== */
.hz-nav { display: none; }
@media (max-width: 900px) {
    .hz-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15,23,42,.08); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
    .hz-nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 11.5px; font-weight: 600; text-decoration: none; padding: 2px 0; }
    .hz-nav a .e { font-size: 21px; line-height: 1.15; filter: grayscale(1); opacity: .75; }
    .hz-nav a.on { color: var(--accent); }
    .hz-nav a.on .e { filter: none; opacity: 1; }
    .hz-nav a.sell .e { width: 44px; height: 32px; margin-top: -2px; display: grid; place-items: center; background: #f5a623; border-radius: 12px; filter: none; opacity: 1; font-size: 18px; }
    .hz-nav a.sell { color: var(--ink); }
    .hz-nav b { position: absolute; top: -2px; left: calc(50% + 6px); background: #f5a623; color: #17202a; border-radius: 999px; font-size: 10.5px; padding: 0 5px; line-height: 16px; }
    body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
    .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }

    /* tepada: logotip · 💬 · til / katta qidiruv (Katalog, ♥, 👤, E'lon — pastda) */
    .site-header .hz { grid-template-columns: minmax(0, 1fr); }
    .hz-cat, .hz .btn-sell, .hz .hz-ico:not(#hzMsg) { display: none !important; }
    .hz-search { grid-column: 1; }
    .hz .logo #shopName { display: inline !important; }
}
.page section, .toolbar { scroll-margin-top: 130px; }
