/* ✨ VIBRANT & CLEAN PREMIUM PALETTE - Yorqin va zamonaviy */
:root {
    --primary-color: #FF4B2B;
    /* Keskin ishtahani ochar yorqin rang */
    --primary-light: #FF6B4A;
    --primary-gradient: linear-gradient(135deg, #FF6A00 0%, #FF2A00 100%);
    --primary-glow: rgba(255, 75, 43, 0.4);

    /* Tiniq fon ranglari (Bug'uq emas, toza!) */
    --bg-warm: #F4F6F8;
    /* Juda och, toza kulrang-oq */
    --bg-cream: #FFFFFF;
    /* Toza oq */
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-hover: rgba(255, 255, 255, 1);

    /* Matn ranglari (Katta kontrast uchun to'q kulrang) */
    --text-color: #111827;
    --text-light: #4B5563;
    --text-dim: #9CA3AF;

    /* Shisha effekti va borderlar (Toza ko'rinish) */
    --glass-border: rgba(255, 255, 255, 1);
    --glass-border-strong: rgba(0, 0, 0, 0.05);
    /* Jigarrang o'rniga toza soya */
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    /* Qoramtirroq toza soya */

    --radius: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: 100px;
    color: var(--text-color);
    -webkit-tap-highlight-color: transparent;
    background: var(--bg-warm);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ✨ PREMIUM GLASS PANEL */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 8px 32px rgba(255, 140, 80, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(255, 200, 150, 0.3);
    border-radius: var(--radius);
}

/* 🍊 ORANGE GLASS BUTTON */
.btn-orange-glass {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    box-shadow:
        0 6px 20px rgba(255, 123, 61, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-orange-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-orange-glass:hover::before {
    left: 100%;
}

.btn-orange-glass:active {
    transform: scale(0.96);
    box-shadow: 0 3px 12px rgba(255, 123, 61, 0.3);
}

/* 💎 PREMIUM CARD - Qimmatbaho quti */
.card {
    border-radius: 24px;
    padding: 3px;
    background: linear-gradient(135deg,
            rgba(255, 154, 86, 0.8) 0%,
            rgba(255, 123, 61, 0.9) 50%,
            rgba(255, 107, 53, 0.8) 100%);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 12px 40px rgba(255, 123, 61, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Quti ustidagi yorug'lik nuri */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    border-radius: 24px 24px 0 0;
    pointer-events: none;
    z-index: 1;
}

/* Quti chegarasi - oltin rangda */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg,
            rgba(255, 215, 150, 0.8),
            rgba(255, 180, 100, 0.4),
            rgba(255, 215, 150, 0.6));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 50px rgba(255, 123, 61, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.1);
}

.card:active {
    transform: scale(0.98);
}

/* Ichki qism - shisha */
.card-inner {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 21px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(255, 200, 150, 0.2);
}

/* Rasm qutisi */
.prod-img-box {
    width: 100%;
    aspect-ratio: 1;
    /* Rasm doim kvadratga yaqin nisbatda bo'ladi */
    max-height: 180px;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid #ffb56b;
    border-radius: 21px 21px 0 0;
    flex-shrink: 0;
}

.prod-img-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.3) 0%,
            transparent 100%);
    pointer-events: none;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-img {
    transform: scale(1.08);
}

/* Mahsulot mazmuni */
.card-content {
    padding: 6px 10px 42px 10px;
    /* Pastida tugma uchun ko'proq joy */
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 21px 21px;
    position: relative;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 2px;
    line-height: 1.2;
    color: #3d1f00;
}

.card-subtitle {
    font-size: 0.8rem;
    color: #b05f20;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured card - katta */
.card.featured {
    grid-column: span 2;
}

.card.featured .prod-img-box {
    width: 100%;
    height: auto;
    min-height: 160px;
}

.card.featured .card-title {
    font-size: 1.4rem;
}

/* Action tugmalari */
.action-wrapper {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 10;
}

.btn-add-start {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: 2px solid rgba(255, 123, 61, 0.2);
    padding: 8px 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 13px;
    box-shadow:
        0 4px 15px rgba(255, 123, 61, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-add-start:hover {
    background: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.qty-control {
    display: none;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px;
    border-radius: 14px;
    border: 2px solid rgba(255, 123, 61, 0.15);
    box-shadow: 0 4px 15px rgba(255, 123, 61, 0.15);
}

.qty-control.active {
    display: flex;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 240, 230, 0.8);
    color: var(--text-color);
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: rgba(255, 220, 200, 0.9);
}

.qty-btn:active {
    transform: scale(0.92);
}

.qty-btn.plus {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 3px 10px rgba(255, 123, 61, 0.3);
}

.qty-val {
    font-size: 15px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    color: var(--text-color);
}

/* 🍥 LOADER */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-warm);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 180, 120, 0.2);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 🏢 RESTAURANTS LIST */
#restaurants-view,
#favorites-view,
#history-view {
    padding: 20px 16px;
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

#rest-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.glass-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    box-shadow:
        0 12px 35px rgba(255, 140, 80, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.glass-card:active {
    transform: scale(0.98);
}

.rest-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.rest-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-color);
}

.rest-status {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.open {
    background: #4CD964;
    box-shadow: 0 0 8px rgba(76, 217, 100, 0.5);
}

.closed {
    background: #FF3B30;
}

/* SEVIMLI VA SHARH STILLARI (Yangi) */
.fav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ccc;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fav-btn.active {
    color: #FF3B30;
}

/* Qizil yurak */
.fav-btn:active {
    transform: scale(0.8);
}

.review-box {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 15px;
    margin-top: 20px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.stars {
    color: #FFcc00;
    font-size: 22px;
    cursor: pointer;
    user-select: none;
}

.star {
    transition: 0.2s;
}

.star:hover {
    transform: scale(1.2);
}

.rev-item {
    border-bottom: 1px dashed rgba(92, 61, 46, 0.2);
    padding: 10px 0;
}

.rev-item:last-child {
    border-bottom: none;
}

/* 📜 MENU VIEW */
#menu-view {
    display: none;
}

/* HEADER */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 251, 247, 0.92);
    border-bottom: 1px solid rgba(255, 200, 150, 0.3);
    padding: 12px 16px 14px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 4px 25px rgba(255, 140, 80, 0.1);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-header.header-hidden {
    transform: translateY(-110%);
}

.top-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.back-btn {
    font-size: 20px;
    cursor: pointer;
    background: rgba(255, 200, 150, 0.15);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 180, 120, 0.2);
    flex-shrink: 0;
    transition: all 0.2s;
}

.back-btn:hover {
    background: rgba(255, 180, 120, 0.25);
}

.back-btn:active {
    transform: scale(0.95);
}

.search-box {
    flex: 1;
    position: relative;
}

.search-inp {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 240, 230, 0.6);
    border: 1px solid rgba(255, 180, 120, 0.25);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
}

.search-inp:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 123, 61, 0.1);
}

.search-inp::placeholder {
    color: var(--text-dim);
}

.info-btn {
    font-size: 20px;
    cursor: pointer;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.info-btn:hover {
    background: rgba(255, 200, 150, 0.15);
}

/* CATEGORIES */
.categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    padding: 8px 16px;
    background: rgba(255, 240, 230, 0.5);
    border: 1px solid rgba(255, 180, 120, 0.2);
    border-radius: 20px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.cat-chip:hover {
    background: rgba(255, 220, 200, 0.6);
}

.cat-chip.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 123, 61, 0.35);
}

/* PRODUCTS GRID */
.product-grid {
    padding: 15px 12px;
    padding-top: 150px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    align-items: start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 🛒 FLOATING CART */
#floating-cart {
    position: fixed;
    bottom: 90px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 200, 150, 0.4);
    padding: 16px 20px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:
        0 10px 40px rgba(255, 140, 80, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
    transform: translateY(200px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#floating-cart.visible {
    transform: translateY(0);
}

.cart-total {
    font-size: 16px;
    font-weight: 700;
}

.cart-btn {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(255, 123, 61, 0.35);
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}

.cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 123, 61, 0.45);
}

.cart-btn:active {
    transform: scale(0.95);
}

/* 📱 BOTTOM SHEET MODAL (Checkout) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(92, 61, 46, 0.4);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#checkout-modal {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    max-height: 85vh;
    background: rgba(255, 251, 247, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 200, 150, 0.4);
    border-radius: 30px 30px 0 0;
    padding: 24px 20px 40px;
    z-index: 200;
    overflow-y: auto;
    box-sizing: border-box;
    transition: bottom 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

#checkout-modal.active {
    bottom: 0;
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 180, 120, 0.4);
    border-radius: 10px;
    margin: 0 auto 20px;
}

.sheet-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}

/* --- PREMIUM SAVAT UI --- */

/* Yetkazish opsiyalari */
.delivery-options {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: rgba(255, 140, 0, 0.05);
    border-radius: 60px;
    padding: 6px;
    border: 1px solid rgba(255, 180, 120, 0.4);
}

.delivery-option {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    color: #b05f20;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.delivery-option.active {
    background: linear-gradient(145deg, #ff8c00, #ff5500);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.4);
}

.delivery-option.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Mahsulotlar ro'yxati */
.cart-items {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 180, 120, 0.3);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 180, 120, 0.5);
}

.cart-item:last-child {
    border-bottom: none;
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #3d1f00;
}

.item-meta {
    font-size: 0.85rem;
    color: #b05f20;
    font-weight: 600;
}

.item-total {
    font-weight: 900;
    color: #c15300;
    font-size: 1.1rem;
}

/* Hisob-kitob qismi */
.summary {
    background: rgba(255, 240, 230, 0.6);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(255, 180, 120, 0.3);
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #5c3d2e;
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    border-top: 2px dashed rgba(255, 180, 120, 0.5);
    padding-top: 14px;
    margin-top: 6px;
    color: #c15300;
}

.input-glass {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 240, 230, 0.6);
    border: 1px solid rgba(255, 180, 120, 0.25);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    margin-bottom: 12px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s;
}

.input-glass:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 123, 61, 0.1);
}

.input-glass::placeholder {
    color: var(--text-dim);
}

/* Promokod */
.promo-section {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.promo-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 180, 120, 0.4);
    border-radius: 50px;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 600;
    color: #3d1f00;
    outline: none;
    transition: 0.3s;
}

.promo-input:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.promo-input::placeholder {
    color: #c49a75;
}

.promo-btn {
    background: linear-gradient(145deg, #ff8c00, #ff5500);
    border: none;
    border-radius: 50px;
    padding: 0 24px;
    font-weight: 800;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

.promo-btn:active {
    transform: scale(0.95);
}

/* Tasdiqlash tugmasi */
.checkout-btn {
    width: 100%;
    background: linear-gradient(145deg, #ff9a56, #ff6b35);
    border: none;
    border-radius: 60px;
    padding: 18px 0;
    font-weight: 900;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
}

.checkout-btn:active {
    transform: scale(0.97);
}

.checkout-btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}

.btn-main:disabled {
    background: #ddd;
    box-shadow: none;
    opacity: 0.6;
    cursor: not-allowed;
}

/* 📱 BOTTOM NAV */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 200, 150, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 90;
    padding-bottom: 8px;
    box-shadow: 0 -4px 20px rgba(255, 140, 80, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
}

.nav-item:hover {
    background: rgba(255, 200, 150, 0.1);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 22px;
}

/* INFO MODAL */
.info-card {
    text-align: center;
}

.info-btn-row {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Animatsiyalar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Background overlays */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -2;
    transition: opacity 0.5s;
}

.bg-gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}


.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.4s;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.step-dot.active {
    background: white;
    border-color: white;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    transform: scale(1.15);
}

.step-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 600;
    margin-top: 4px;
    text-align: center;
    max-width: 60px;
}

.step-label.active {
    color: white;
}

/* =========================================
   💀 SKELETON SCREEN & MICRO-ANIMATIONS 
========================================= */

/* Skeleton grid – asosiy grid bilan bir xil */
.skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 15px 16px;
    padding-top: 150px;
}

/* Skeleton karta */
.skeleton-card {
    background: linear-gradient(160deg, rgba(255, 154, 86, 0.4) 0%, rgba(255, 123, 61, 0.3) 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 123, 61, 0.1);
    position: relative;
    padding: 3px;
    display: flex;
    flex-direction: column;
}

.skeleton-card.featured {
    grid-column: span 2;
    flex-direction: row;
}

/* Skeleton rasm maydoni */
.skeleton-img {
    width: 100%;
    height: 140px;
    border-radius: 21px;
    background: linear-gradient(90deg, rgba(255, 180, 120, 0.3) 25%, rgba(255, 200, 150, 0.5) 50%, rgba(255, 180, 120, 0.3) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-card.featured .skeleton-img {
    width: 45%;
    height: 160px;
    border-radius: 21px 0 0 21px;
}

/* Skeleton matn qatorlari */
.skeleton-content {
    padding: 14px;
    flex: 1;
}

.skeleton-title {
    height: 18px;
    width: 70%;
    background: linear-gradient(90deg, rgba(255, 180, 120, 0.3) 25%, rgba(255, 200, 150, 0.5) 50%, rgba(255, 180, 120, 0.3) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-subtitle {
    height: 12px;
    width: 40%;
    background: linear-gradient(90deg, rgba(255, 180, 120, 0.3) 25%, rgba(255, 200, 150, 0.5) 50%, rgba(255, 180, 120, 0.3) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-line {
    height: 12px;
    width: 100%;
    background: linear-gradient(90deg, rgba(255, 180, 120, 0.3) 25%, rgba(255, 200, 150, 0.5) 50%, rgba(255, 180, 120, 0.3) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Animatsiya */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- MIKRO-ANIMATSIYALAR --- */

/* Tugmalar uchun scale effekti */
.qty-btn,
.cart-btn,
.cat-chip,
.fav-btn {
    transition: transform 0.1s ease, background 0.2s, box-shadow 0.2s;
}

.qty-btn:active,
.cart-btn:active,
.btn-add-start:active,
.fav-btn:active {
    transform: scale(0.92) !important;
}

.cat-chip:active {
    transform: scale(0.95);
}

/* Karta bosilganda scale effekti */
.card {
    transition: transform 0.2s ease, box-shadow 0.3s;
}

/* Miqdor (qty-val) o'zgarganda "pop" animatsiyasi */
.qty-val {
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.15s;
    display: inline-block;
}

.qty-val.pop {
    transform: scale(1.5);
    color: var(--primary-color);
}

/* --- YUKLATILGAN PREMIUM UI UCHUN YANGI ELEMENTLAR --- */

/* Chegirma badge */
.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(145deg, #ff4d4d, #cc0000);
    color: white;
    font-weight: 900;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 40px;
    box-shadow: 0 8px 16px rgba(255, 0, 0, 0.4);
    z-index: 10;
    border: 2px solid #ffdb7c;
    transform: rotate(2deg);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: rotate(2deg) scale(1);
    }

    50% {
        transform: rotate(2deg) scale(1.1);
    }

    100% {
        transform: rotate(2deg) scale(1);
    }
}

/* Tugagan badge */
.sold-out-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(145deg, #6d4c41, #4e342e);
    color: white;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 50px;
    border: 2px solid #ffc107;
    z-index: 11;
    transform: rotate(-3deg);
}

/* "Bosing" hint */
.tap-hint {
    display: inline-block;
    background: rgba(255, 140, 0, 0.1);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 10px;
    color: #b05f20;
    font-weight: 600;
    margin: 6px 0;
    border: 1px dashed #ffae6a;
    width: fit-content;
}

/* Qo'shimcha ma'lumotlar (dastlab yashirin) */
.extra-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    margin-top: 0;
}

.card.active .extra-details {
    max-height: 200px;
    opacity: 1;
    margin-top: 12px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.info-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(145deg, #ffdbb5, #ffb373);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 3px 8px #ff9f4a;
}

.info-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #3d1f00;
}

.info-text small {
    display: block;
    font-size: 0.75rem;
    color: #a75810;
    font-weight: 600;
}

/* Narx va miqdor qatori */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
    border-top: 1.5px dashed #ffb780;
    padding-top: 6px;
    flex-wrap: wrap;
    gap: 6px;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-direction: column;
}

.old-price {
    text-decoration: line-through;
    color: #a06530;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: -3px;
}

.new-price,
.price-amount {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 900;
    color: #c15300;
}

.price-amount small,
.new-price small {
    font-size: 12px;
    font-weight: 600;
    color: #b05f20;
}

/* Tugagan mahsulot xabari */
.sold-out-message {
    display: none;
    background: #5d4037;
    color: #ffe0b2;
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 600;
    width: 100%;
    text-align: center;
    font-size: 12px;
}

.card.sold-out .sold-out-message {
    display: block;
}

.card.sold-out .card-img {
    filter: grayscale(100%) opacity(70%);
}

/* =============================================
   ✅ KATEGORIYA VA SORT FILTER STILLARI
   ============================================= */

/* Oshxona turi filter bar */
.rest-cat-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 10px;
    scrollbar-width: none;
    margin-bottom: 8px;
}

.rest-cat-bar::-webkit-scrollbar {
    display: none;
}

.rest-cat-chip {
    padding: 8px 16px;
    background: rgba(255, 240, 230, 0.6);
    border: 1px solid rgba(255, 180, 120, 0.25);
    border-radius: 20px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.rest-cat-chip:hover {
    background: rgba(255, 220, 200, 0.7);
    transform: translateY(-1px);
}

.rest-cat-chip.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 123, 61, 0.35);
}

/* Saralash tugmalari */
.sort-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: none;
}

.sort-bar::-webkit-scrollbar {
    display: none;
}

.sort-btn {
    padding: 6px 14px;
    background: rgba(255, 240, 230, 0.5);
    border: 1px solid rgba(255, 180, 120, 0.2);
    border-radius: 16px;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sort-btn.active,
.sort-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(255, 123, 61, 0.3);
}

/* Rest info area */
.rest-card {
    position: relative;
    overflow: hidden;
}

.rest-info {
    padding: 2px 0;
}

/* Background layers — default yashirin (bosh sahifada ko'rinmaydi) */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: none;
    /* ✅ Default: yashirin */
    pointer-events: none;
}

.bg-gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* ✅ Default: to'liq yashirin — JS tomonidan boshqariladi */
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    display: none;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* --- COMPATIBILITY FOR DESKTOP WEBAPP --- */
@media (min-width: 481px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 30px rgba(0,0,0,0.1);
        min-height: 100vh;
        position: relative;
    }
    
    .glass-header, 
    .bottom-nav, 
    #floating-cart, 
    #checkout-modal,
    #loading-overlay,
    .modal-overlay {
        max-width: 480px;
        margin: 0 auto;
        left: 0 !important;
        right: 0 !important;
    }
}