/* ══════════════════════════════════════
   TEZNUR — DESIGN SYSTEM
   Asosiy rang: Yashil #1e8c3a, Sariq #f5c400
══════════════════════════════════════ */

:root {
    --green: #1e8c3a;
    --green-dark: #166b2c;
    --green-light: #e8f5ec;
    --yellow: #f5c400;
    --yellow-light: #fffbe6;
    --text: #1a1a1a;
    --text-muted: #777;
    --bg: #edf7f0;
    --card-bg: #fff;
    --border: #e8e8e8;
    --nav-h: 64px;
    --header-h: 120px; /* JS tomonidan qayta o'lchanadi */
    --radius: 14px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

html, body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 10% 0%, rgba(30,140,58,0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 100%, rgba(245,196,0,0.09) 0%, transparent 55%);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    overscroll-behavior: none;
}

/* ══ HEADER ══ */
.top-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--green);
    z-index: 1000;
    padding: 10px 16px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    width: 100%;
   
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
}
.lt-tez { color: #fff; }
.lt-nur { color: var(--yellow); }

.header-cart-btn {
    background: rgba(255,255,255,0.18);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 18px;
    padding: 6px 14px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hdr-badge {
    background: var(--yellow);
    color: var(--green-dark);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ── Search ── */
.search-bar-wrap {
    padding-bottom: 12px;
}

.search-bar {
    background: #fff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 8px 14px;
    gap: 8px;
}

.search-icon { font-size: 15px; color: var(--text-muted); }

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background: transparent;
}

.search-clear {
    background: var(--border);
    border: none;
    border-radius: 50%;
    width: 20px; height: 20px;
    font-size: 11px;
    cursor: pointer;
    color: var(--text-muted);
}

/* ══ MAIN CONTENT ══ */
.main-content {
    padding-top: var(--header-h);
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: calc(var(--nav-h) + 16px);
    min-height: 100vh;
}

/* ══ CATEGORY GRID (bosh sahifa) ══ */
.cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cat-card {
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
}
.cat-card:active { transform: scale(0.96); }

.cat-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f0f7f1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}
.cat-card:active .cat-card-img img { transform: scale(1.04); }

.cat-card-name {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--text);
    padding: 8px 6px;
    line-height: 1.3;
    background: var(--card-bg);
}

/* Desktop — 4 ustun */
@media (min-width: 600px) {
    .cats-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .cat-card-name { font-size: 13px; padding: 10px 8px; }
}

/* ══ CATEGORY CHIPS (eski — endi ishlatilmaydi) ══ */
.sec-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.cats-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cats-scroll::-webkit-scrollbar { display: none; }

.cat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s;
}
.cat-chip:active { transform: scale(0.93); }

.cat-chip-img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.cat-chip-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-chip span {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    max-width: 64px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ══ PRODUCT GRID ══ */
.cat-section { margin-bottom: 20px; }

/* ══ REKLAMA SLIDER ══ */
.ad-slider-wrap {
    position: relative;
    margin: 0 0 16px 0;
    border-radius: 16px;
    overflow: hidden;
    background: #eee;
}

.ad-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/6;
    overflow: hidden;
    border-radius: 16px;
}

/* Track — barcha slidelar yonma-yon */
.ad-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.ad-slide {
    flex: 0 0 100%;
    height: 100%;
}

.ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
}

.ad-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.ad-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.ad-dot.active {
    background: white;
    width: 20px;
    border-radius: 4px;
}
.prods-section { margin-bottom: 20px; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.15s;
    position: relative;
}
.product-card:active { transform: scale(0.97); }

.product-card.oos { opacity: 0.75; }

.pc-img-wrap {
    position: relative;
    width: 100%;
    height: 140px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.product-card.oos .pc-img-wrap img {
    filter: grayscale(50%) opacity(0.6);
}

/* Like button */
.fav-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: transform 0.15s;
    line-height: 1;
    z-index: 2;
}
.fav-btn:active { transform: scale(1.25); }

/* Out of stock badge — yashirilgan */
.oos-badge {
    display: none !important;
}

/* Diagonal qora chiziq — yuqori o'ng dan pastki chap ga */
.product-card.oos .pc-img-wrap::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to bottom-left,
        transparent 42%,
        rgba(0,0,0,0.15) 46%,
        rgba(0,0,0,0.7) 49%,
        rgba(0,0,0,0.7) 51%,
        rgba(0,0,0,0.15) 54%,
        transparent 58%
    );
    pointer-events: none;
    z-index: 1;
}

.pc-info {
    padding: 8px 10px 10px;
}

.pc-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.pc-price {
    font-size: 13px;
    font-weight: 900;
    color: var(--green);
    margin-bottom: 8px;
}

/* ── Cart controls ── */
.pc-ctrl { margin-top: 2px; }

.btn-add {
    width: 100%;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 7px 0;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: background 0.15s;
}
.btn-add:active { background: var(--green-dark); }

.btn-oos {
    width: 100%;
    background: #eee;
    color: #aaa;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 7px 0;
    font-size: 11px;
    cursor: not-allowed;
    font-family: 'Nunito', sans-serif;
}

.inline-qty {
    display: flex;
    align-items: center;
    background: var(--green-light);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 32px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s;
    font-family: 'Nunito', sans-serif;
}
.qty-btn.minus { background: #d4edda; color: var(--green); }
.qty-btn.plus  { background: var(--green); color: white; }
.qty-btn:active { opacity: 0.8; }

.qty-num {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--green-dark);
}

/* ══ PAGE TOPBAR ══ */
.page-topbar {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 18px;
    height: 44px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: none;
    border-radius: 14px;
    padding: 9px 16px 9px 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    color: var(--green);
    font-family: 'Nunito', sans-serif;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    flex-shrink: 0;
    z-index: 1;
    transition: transform 0.15s, box-shadow 0.15s;
}

.back-btn::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--green);
    border-radius: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.back-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.page-topbar h2,
.page-center-title {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    color: var(--text);
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 90px;
    line-height: 1;
}

/* Centered title with no back button */
.page-topbar:not(:has(.back-btn)) .page-center-title {
    padding: 0 16px;
}

/* ══ BUYURTMALARIM ══ */
.empty-orders {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 8px;
    color: var(--text-muted);
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}

.my-order-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.my-order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.my-order-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.my-order-status {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.my-order-items {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.my-order-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.moi-img {
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    border-radius: 10px;
    object-fit: contain;
    background: #f5f5f5;
    flex-shrink: 0;
    cursor: zoom-in;
    border: 1px solid var(--border);
    padding: 2px;
}

.moi-info {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.moi-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}

.moi-detail {
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    white-space: nowrap;
}

.my-order-note {
    font-size: 12px;
    color: #6d4c41;
    background: #fff8e1;
    border-radius: 8px;
    padding: 6px 10px;
    margin-bottom: 10px;
}

.my-order-total {
    font-size: 14px;
    color: var(--text);
}

.my-order-total strong {
    color: var(--green);
    font-size: 16px;
    font-weight: 900;
}

/* ══ EMPTY STATES ══ */
.empty-text {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
    grid-column: 1/-1;
}

.empty-page-msg {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-page-msg .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-page-msg p { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.empty-page-msg small { font-size: 13px; }

/* ══ BOTTOM NAV ══ */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: #fff;
    border-top: 1.5px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
    z-index: 99999;
    display: flex;
    align-items: stretch;
}

.bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    font-family: 'Nunito', sans-serif;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.bnav-item.active {
    color: white;
}

.bnav-item.active::before {
    content: '';
    position: absolute;
    inset: 6px 8px;
    background: rgba(30, 140, 58, 0.85);
    border-radius: 12px;
    z-index: 0;
}

.bnav-item.active .bnav-icon {
    transform: scale(1.18);
    position: relative;
    z-index: 1;
}

.bnav-item.active .bnav-label {
    position: relative;
    z-index: 1;
    font-weight: 900;
    color: white;
}

.bnav-icon {
    font-size: 22px;
    line-height: 1;
    position: relative;
    display: inline-block;
    transition: transform 0.15s;
}

.bnav-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.bnav-badge {
    position: absolute;
    top: -6px; right: -10px;
    background: #e53935;
    color: white;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    transition: transform 0.15s;
}

/* ══ SHEET MODALS ══ */
.sheet-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50000;
}
.sheet-modal.active { display: block; }

.sheet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.sheet-content {
    position: absolute;
    bottom: var(--nav-h);
    left: 0; right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: calc(92vh - var(--nav-h));
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(.32,1,.45,1);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
}
.sheet-modal.active .sheet-content { transform: translateY(0); }

.product-sheet { max-height: calc(90vh - var(--nav-h)); }

.sheet-handle {
    width: 40px; height: 4px;
    background: #ddd; border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px 10px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.sheet-header h2 { font-size: 1.1em; margin: 0; font-weight: 800; }

.close-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 28px; height: 28px;
    font-size: 13px;
    cursor: pointer;
    color: #555;
    display: flex; align-items: center; justify-content: center;
}

.sheet-body {
    overflow-y: auto;
    padding: 14px 16px 20px;
    flex: 1;
}

/* ══ CART ITEMS ══ */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #f8faf8;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}
.cart-item img {
    width: 72px; height: 72px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    flex-shrink: 0;
    padding: 4px;
}
.cart-item-info { flex: 1; }
.ci-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.ci-price { font-size: 12px; color: var(--green); font-weight: 800; margin-bottom: 6px; }
.ci-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ci-del {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #e53935;
    padding: 2px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4px;
    font-size: 15px;
    font-weight: 700;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.cart-total-sum { color: var(--green); font-size: 18px; font-weight: 900; }

.empty-cart-msg {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.empty-cart-msg .empty-icon { font-size: 40px; margin-bottom: 8px; }
.empty-cart-msg p { font-weight: 700; }

/* Min order */
.min-order-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--yellow-light);
    border: 1.5px solid var(--yellow);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 10px 0;
}
.min-order-card > span { font-size: 24px; flex-shrink: 0; }
.min-order-card strong { font-size: 13px; display: block; margin-bottom: 2px; color: #7a6000; }
.min-order-card p { font-size: 12px; color: #997000; margin: 0; }
.min-left { font-weight: 900; color: #e53935; }

/* Checkout */
.checkout-form {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.checkout-form h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.form-group { margin-bottom: 12px; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--green); }

.btn-order {
    width: 100%;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: background 0.15s;
    margin-top: 4px;
}
.btn-order:active { background: var(--green-dark); }

/* ══ PRODUCT MODAL ══ */
.prod-modal-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    background: #f8f8f8;
    border-radius: 14px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.prod-modal-img-wrap img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 10px;
}

.prod-fav-btn {
    position: absolute;
    top: 10px; right: 10px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    font-size: 20px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.15s;
}
.prod-fav-btn:active { transform: scale(1.2); }

.prod-modal-price {
    font-size: 1.8em;
    font-weight: 900;
    color: var(--green);
    margin-bottom: 8px;
}
.prod-modal-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 14px;
}
.prod-modal-ctrl { margin-top: 4px; }
.modal-qty { justify-content: center; border-radius: 12px; }
.modal-qty .qty-btn { width: 48px; height: 44px; font-size: 20px; }
.modal-qty .qty-num { font-size: 18px; }

/* ══ DESKTOP ══ */
@media (min-width: 600px) {
    .main-content {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .pc-img-wrap { height: 180px; }
    .top-header { max-width: 100%; }
    .header-inner { max-width: 900px; margin: 0 auto; }
    .search-bar-wrap { max-width: 900px; margin: 0 auto; }
    .desktop-only { display: flex !important; }

    /* Desktop sheet center modal */
    .sheet-content {
        position: absolute;
        bottom: auto; top: 50%; left: 50%;
        transform: translate(-50%, -40%) scale(0.95);
        width: 90%; max-width: 560px;
        border-radius: 16px;
        max-height: 88vh;
        opacity: 0;
        transition: transform 0.25s, opacity 0.25s;
    }
    .sheet-modal.active .sheet-content {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    .product-sheet { max-width: 660px; }
}

@media (max-width: 599px) {
    .desktop-only { display: none !important; }
}

/* ══ ADMIN (shared) ══ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    margin-top: 20px;
    margin-bottom: 20px;
}
h1, h2 { color: #222; margin-bottom: 16px; }
.login-container {
    max-width: 400px; margin: 80px auto;
    background: white; padding: 36px;
    border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.login-container h1 { text-align: center; color: var(--green); }
.form-group { margin-bottom: 16px; }
.form-group label { display:block; margin-bottom:4px; color:#555; font-weight:600; font-size:13px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 10px 12px;
    border: 1.5px solid #ddd; border-radius: 8px;
    font-size: 14px; outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--green);
}
.btn {
    padding: 10px 24px; border: none; border-radius: 8px;
    cursor: pointer; font-size: 14px; font-weight: 700;
    transition: all 0.2s; font-family: inherit;
}
.btn-primary { background: var(--green); color: white; width: 100%; }
.btn-primary:hover { background: var(--green-dark); }
.btn-success { background: #28a745; color: white; }
.btn-success:hover { background: #218838; }
.btn-danger { background: #dc3545; color: white; }
.btn-danger:hover { background: #c82333; }
.btn-secondary { background: #6c757d; color: white; }
.btn-edit { background: var(--green); color: white; }
.btn-edit:hover { background: var(--green-dark); }
.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; padding-bottom: 16px;
    border-bottom: 2px solid #eee;
}
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab {
    padding: 8px 18px; background: #f4f4f4;
    border: none; border-radius: 8px; cursor: pointer;
    font-weight: 700; font-family: inherit; transition: all 0.2s;
}
.tab.active { background: var(--green); color: white; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.form-grid { display: grid; gap: 12px; margin-bottom: 16px; }
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px; margin-top: 16px;
}
.item-card {
    background: #f9f9f9; padding: 14px;
    border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}
.item-card .img-wrapper {
    width: 100%; height: 140px;
    background: #efefef;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; margin-bottom: 10px; overflow: hidden;
}
.item-card .img-wrapper img { width:100%; height:100%; object-fit:contain; padding:6px; }
.item-card h3 { font-size: 14px; margin-bottom: 4px; }
.item-card p { font-size: 13px; color: #666; margin-bottom: 8px; }
.item-card-actions { display: flex; gap: 6px; margin-top: 8px; }
.item-card-actions .btn { flex: 1; padding: 7px; font-size: 12px; }
.stock-badge {
    display: inline-block; padding: 2px 10px;
    border-radius: 20px; font-size: 11px; font-weight: 700;
}
.stock-badge.yes { background: #d4edda; color: #155724; }
.stock-badge.no  { background: #f8d7da; color: #721c24; }
.modal-edit {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 9000;
    align-items: center; justify-content: center;
}
.modal-edit.active { display: flex; }
.modal-edit-content {
    background: #fff; border-radius: 16px; padding: 28px;
    width: 90%; max-width: 480px; max-height: 90vh; overflow-y: auto;
}
.modal-edit-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 20px;
}
.close-edit { background: none; border: none; font-size: 26px; cursor: pointer; color: #999; }
.checkbox-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; background: #f8f9fa; border-radius: 8px;
}
.checkbox-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); }
.checkbox-row label { font-weight: 700; font-size: 14px; cursor: pointer; }
.current-img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; border: 2px solid #eee; }
.img-hint { font-size: 11px; color: #999; margin-top: 3px; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.back-link { color: var(--green); text-decoration: none; font-weight: 700; }
.back-link:hover { text-decoration: underline; }

/* ══ ABOUT PAGE ══ */
.about-hero {
    text-align: center;
    padding: 28px 16px 20px;
    background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
    border-radius: 18px;
    margin-bottom: 14px;
    box-shadow: 0 4px 20px rgba(30,140,58,0.3);
}

.about-logo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.about-title {
    font-size: 2em;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.about-tagline {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 600;
}

.about-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.about-card-icon {
    font-size: 26px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--green-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 8px;
}

.about-card p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--green-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    transition: background 0.15s;
}
.contact-link:active { background: #c8e6d0; }

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 8px;
    transition: opacity 0.15s;
}
.social-link:active { opacity: 0.8; }

.social-link.telegram {
    background: #e8f4fd;
    color: #0088cc;
}

.social-link.instagram {
    background: #fce8f3;
    color: #c13584;
}

.social-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.social-link strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
}

.social-link small {
    font-size: 11px;
    opacity: 0.7;
}

.work-hours { width: 100%; }

.wh-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px dashed var(--border);
}
.wh-row:last-child { border-bottom: none; }

.wh-time {
    font-weight: 800;
    color: var(--green);
    background: var(--green-light);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.about-footer {
    text-align: center;
    padding: 16px 0 8px;
    color: var(--text-muted);
    font-size: 12px;
}
/* ══ CATEGORY LIST (ro'yxat ko'rinishi) ══ */
.cats-list {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: var(--card-bg);
}

.cat-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    background: var(--card-bg);
    transition: background 0.12s;
    -webkit-tap-highlight-color: transparent;
}
.cat-list-item:last-child { border-bottom: none; }
.cat-list-item:active { background: var(--green-light); }

.cat-list-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}
.cat-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-list-name {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.cat-list-arrow {
    font-size: 22px;
    color: #bbb;
    font-weight: 300;
    flex-shrink: 0;
}

/* ── Izoh textarea ── */
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    outline: none;
    resize: vertical;
    min-height: 72px;
    line-height: 1.5;
    color: var(--text);
    transition: border-color 0.2s;
}
.form-group textarea:focus { border-color: var(--green); }

.label-optional {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ══ PRODUCT IMAGE SLIDER ══ */
.prod-modal-img-wrap {
    cursor: zoom-in;
    user-select: none;
}

.prod-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 3;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 1.5px solid rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--green);
    border-color: var(--green);
    transform: scale(1.2);
}

/* Zoom hint */
.slider-hint {
    position: absolute;
    bottom: 28px;
    left: 0; right: 0;
    text-align: center;
    font-size: 10px;
    color: rgba(100,100,100,0.7);
    z-index: 3;
    pointer-events: none;
}

/* ══ FULLSCREEN MODAL ══ */
.fullscreen-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.fullscreen-modal.active {
    display: flex;
}

.fullscreen-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fullscreen-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.fullscreen-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
}

/* ══ FULLSCREEN SLIDER ══ */
.fullscreen-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.fs-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px 60px;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.fs-slide.active { opacity: 1; }

.fs-zoom-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

.fs-zoomable {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.fullscreen-dots {
    position: absolute;
    bottom: 24px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 100002;
}

.fullscreen-dots .dot {
    width: 9px;
    height: 9px;
    background: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.5);
}
.fullscreen-dots .dot.active {
    background: white;
    border-color: white;
}

/* ══ SLIDE LOOP ANIMATION — 1 ta rasm ham aylanadi ══ */
@keyframes slideLoop {
    0%   { transform: translateX(0);     opacity: 1; }
    35%  { transform: translateX(0);     opacity: 1; }
    45%  { transform: translateX(-100%); opacity: 0; }
    46%  { transform: translateX(100%);  opacity: 0; }
    55%  { transform: translateX(0);     opacity: 1; }
    100% { transform: translateX(0);     opacity: 1; }
}

.slide-loop-anim {
    animation: slideLoop 5s ease-in-out infinite;
}

/* ══ SUCCESS TOAST ══ */
.success-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    background: white;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    z-index: 200000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    min-width: 240px;
    max-width: 80vw;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.success-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.toast-icon {
    font-size: 48px;
    line-height: 1;
}

.toast-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-text strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--green);
}

.toast-text span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Input error ── */
.input-error {
    display: block;
    color: #e53935;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    padding: 5px 10px;
    background: #ffeaea;
    border-radius: 7px;
    border-left: 3px solid #e53935;
}

/* ══ HEADER RIGHT ══ */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Download button in header ── */
.hdr-download-btn {
    background: var(--yellow);
    color: #1a1a00;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Nunito', sans-serif;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(245,196,0,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}
.hdr-download-btn:active { transform: scale(0.95); }
.hdr-download-btn span { display: inline; }

@media (max-width: 360px) {
    .hdr-download-btn span { display: none; }
}

/* ══ APP INSTALL BANNER ══ */
.app-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 90000;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    box-shadow: 0 3px 16px rgba(0,0,0,0.25);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

.app-banner-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.app-banner-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    flex-shrink: 0;
}

.app-banner-text {
    flex: 1;
    min-width: 0;
}
.app-banner-text strong {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-banner-text span {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
}

.app-banner-btn {
    background: var(--yellow);
    color: #111;
    border: none;
    border-radius: 16px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.app-banner-close {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ══ DOWNLOAD MODAL ══ */
.download-hero {
    text-align: center;
    padding: 16px 0 20px;
}
.dl-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.download-hero h3 {
    font-size: 1.8em;
    font-weight: 900;
    margin-bottom: 6px;
}
.download-hero p {
    font-size: 13px;
    color: var(--text-muted);
}

.dl-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    margin-bottom: 12px;
    transition: transform 0.15s;
}
.dl-btn:active { transform: scale(0.97); }

.dl-btn.android {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1.5px solid #a5d6a7;
}
.dl-btn.ios {
    background: #f3e5f5;
    color: #4a148c;
    border: 1.5px solid #ce93d8;
}

.dl-icon { font-size: 28px; flex-shrink: 0; }

.dl-btn small {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 2px;
}
.dl-btn strong {
    font-size: 13px;
    font-weight: 800;
}

.dl-or {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin: 4px 0 12px;
    position: relative;
}
.dl-or::before, .dl-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: var(--border);
}
.dl-or::before { left: 0; }
.dl-or::after  { right: 0; }

.dl-skip {
    width: 100%;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
}

/* ══════════════════════════════════════════════════════════
   DESKTOP LAYOUT — min-width: 1024px
   Mobile ga hech narsa tegmaydi
══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

    /* ── Asosiy layout: sidebar + content + cart ── */
    body {
        display: grid;
        grid-template-columns: 240px 1fr;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "sidebar header"
            "sidebar main";
        min-height: 100vh;
        background: #f4f6f9;
    }

    /* ── Top header desktop ── */
    .top-header {
        grid-area: header;
        position: sticky;
        top: 0;
        width: 100%;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }

    .header-inner {
        padding: 12px 24px;
        gap: 16px;
    }

    .header-right {
        gap: 12px;
    }

    .hdr-download-btn span {
        display: inline !important;
    }

    .search-bar-wrap {
        padding: 0 24px 12px;
    }

    /* ── Bottom nav → Left sidebar ── */
    .bottom-nav {
        grid-area: sidebar;
        position: sticky;
        top: 0;
        height: 100vh;
        width: 240px;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
        border-top: none;
        border-right: 1px solid var(--border);
        box-shadow: 2px 0 16px rgba(0,0,0,0.06);
        overflow: hidden;
        align-self: start;
    }

    /* Sidebar logo area */
    .bottom-nav::before {
        content: '';
        display: block;
        height: 80px;
        background: var(--green);
        width: 100%;
        flex-shrink: 0;
    }

    .bnav-item {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 14px;
        padding: 14px 24px;
        font-size: 14px;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        height: auto;
        min-height: 54px;
    }

    .bnav-icon {
        font-size: 20px;
        width: 28px;
        text-align: center;
        flex-shrink: 0;
    }

    .bnav-label {
        font-size: 14px;
        font-weight: 700;
        display: block !important;
    }

    .bnav-item.active {
        background: linear-gradient(90deg, #e8f5ec, white);
        border-left: 4px solid var(--green);
        color: var(--green-dark);
    }

    .bnav-item:not(.active):hover {
        background: #f8f9fa;
    }

    /* ── Main content ── */
    .main-content {
        grid-area: main;
        padding-bottom: 32px !important;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* ── Home page ── */
    #homePage {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 0;
        min-height: calc(100vh - 140px);
    }

    /* Kategoriyalar — chap panel */
    .cat-section {
        border-right: 1px solid var(--border);
        background: white;
        padding: 20px 0;
        min-height: 100%;
    }

    .sec-title {
        padding: 0 20px 12px;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-muted);
        font-weight: 800;
    }

    .cats-list {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 0 8px;
    }

    .cat-list-item {
        border-radius: 10px;
        padding: 10px 12px;
        border-bottom: none;
        transition: background 0.15s;
    }

    .cat-list-item:hover {
        background: #f0f9f3;
    }

    .cat-list-img {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .cat-list-name {
        font-size: 13px;
    }

    /* Mahsulotlar — o'ng panel */
    #catProductsSection {
        padding: 20px;
    }

    /* ── Products grid desktop ── */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 20px;
    }

    /* 4 column for large screens */
    @media (min-width: 1400px) {
        .products-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    /* Product card desktop */
    .product-card {
        border-radius: 14px;
    }

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

    /* ── Category page (ochilganda) ── */
    #categoryPage {
        padding: 0;
    }

    .page-topbar {
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        background: white;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    /* ── Cart — right panel (sheet o'rniga) ── */
    #cartModal .sheet-overlay {
        background: rgba(0,0,0,0.3);
    }

    #cartModal .sheet-content {
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        left: auto;
        width: 380px;
        max-width: 90vw;
        border-radius: 20px 0 0 20px;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
        max-height: 100vh;
        overflow-y: auto;
    }

    #cartModal.active .sheet-content {
        transform: translateX(0);
    }

    .sheet-handle {
        display: none;
    }

    /* ── Product modal desktop ── */
    #productModal .sheet-content {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -60%) scale(0.95);
        bottom: auto;
        width: 560px;
        max-width: 90vw;
        max-height: 88vh;
        border-radius: 20px;
        overflow-y: auto;
        transition: opacity 0.25s, transform 0.25s;
        opacity: 0;
    }

    #productModal.active .sheet-content {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    .prod-modal-img-wrap {
        height: 280px;
    }

    /* ── App download modal desktop ── */
    #appDownloadModal .sheet-content {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -60%) scale(0.95);
        bottom: auto;
        width: 440px;
        max-width: 90vw;
        border-radius: 20px;
        overflow-y: auto;
        transition: opacity 0.25s, transform 0.25s;
        opacity: 0;
    }

    #appDownloadModal.active .sheet-content {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    /* ── Search & other pages ── */
    #searchPage,
    #favPage,
    #aboutPage {
        padding: 0;
    }

    #favPage .sec-title,
    #searchPage .sec-title {
        padding: 20px 24px 8px;
        font-size: 18px;
        text-transform: none;
        letter-spacing: 0;
        color: var(--text-dark);
    }

    /* About page desktop */
    #aboutPage {
        max-width: 680px;
        margin: 0 auto;
        padding: 24px;
    }

    /* App banner */
    .app-banner {
        left: 240px;
    }

    /* Fullscreen modal */
    .fullscreen-modal {
        left: 240px;
    }

    /* ── Header cart badge desktop ── */
    .header-cart-btn {
        display: flex !important;
    }

    .desktop-only {
        display: flex !important;
    }
}

/* ── Sidebar logo (desktop only, hidden on mobile) ── */
.sidebar-logo-area {
    display: none;
}

@media (min-width: 1024px) {
    .sidebar-logo-area {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 20px 24px;
        background: var(--green);
        border-bottom: 1px solid rgba(255,255,255,0.15);
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .sidebar-logo-img {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        object-fit: cover;
    }

    .sidebar-logo-text {
        font-size: 20px;
        font-weight: 900;
    }

    .sidebar-logo-text .lt-tez { color: white; }
    .sidebar-logo-text .lt-nur { color: var(--yellow); }

    /* catProductsSection */
    .cat-products-section {
        display: none;
        background: #f4f6f9;
        min-height: 100%;
    }

    .cat-products-section .products-grid {
        padding: 20px;
    }

    /* bottom-nav::before yashirish (sidebar-logo-area bor) */
    .bottom-nav::before {
        display: none;
    }

    /* Hovered category highlight */
    .cat-list-item.cat-active {
        background: #e8f5ec;
        border-left: 3px solid var(--green);
    }
}

/* ── Desktop welcome + header ── */
.desktop-welcome {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-welcome {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        min-height: 400px;
        gap: 12px;
        color: var(--text-muted);
        padding: 40px;
    }

    .dw-icon {
        font-size: 56px;
        opacity: 0.4;
    }

    .desktop-welcome h3 {
        font-size: 18px;
        font-weight: 800;
        color: var(--text-dark);
        opacity: 0.5;
    }

    .desktop-welcome p {
        font-size: 13px;
        opacity: 0.5;
    }

    .cat-products-header {
        display: none;
        align-items: center;
        gap: 12px;
        padding: 16px 20px 0;
    }

    .cat-products-header h2 {
        font-size: 20px;
        font-weight: 900;
        color: var(--text-dark);
    }

    .cat-list-item.cat-active {
        background: linear-gradient(90deg, #e8f5ec, #f5fef7) !important;
        border-left: 3px solid var(--green);
    }

    .cat-products-section {
        display: block !important;
        background: #f4f6f9;
        min-height: 100%;
        overflow-y: auto;
    }
}