/* ═══════════════════════════════════════════
   MOBILE STYLES (max-width: 767px)
   ═══════════════════════════════════════════ */

/* --- Bottom Navigation --- */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-height);
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 128, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: var(--z-header);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    transition: var(--transition-fast);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item.active {
    color: var(--primary);
    transform: scale(1.1);
}
.bottom-nav-icon {
    font-size: 20px;
    line-height: 1;
}
.bottom-nav-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}
.nav-badge {
    position: absolute;
    top: 0; right: 2px;
    min-width: 16px;
    height: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* --- Mobile Overrides --- */
@media (max-width: 767px) {
    .container {
        padding: 0 12px;
    }
    
    /* Products 2-col */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Product card tweaks */
    .product-card-info {
        padding: 10px;
    }
    .product-card-title {
        font-size: 12px;
    }
    .product-card-price {
        gap: 4px;
    }
    .price-current {
        font-size: var(--text-sm);
    }
    .price-original {
        font-size: 10px;
    }
    .product-card-actions .btn {
        padding: 6px 8px;
        font-size: 11px;
    }

    /* Sticky buy bar visible */
    .flavor-single-product .sticky-buy-bar {
        display: flex;
    }

    /* Section titles */
    .section-title {
        font-size: var(--text-lg);
    }

    /* Swiper nav hidden on mobile */
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }

    /* Hero */
    .hero-slide-title {
        font-size: var(--text-xl);
    }
    .hero-slide-subtitle {
        font-size: var(--text-sm);
    }

    /* Category cards */
    .category-card {
        min-width: 95px;
        padding: 14px 12px;
    }
    .category-icon {
        font-size: 26px;
    }
    .category-name {
        font-size: 12px;
    }

    /* Cart drawer full width */
    .cart-drawer {
        width: 100vw;
    }

    /* Checkout single column */
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    /* Footer stack */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Blog / page content padding */
    .single-card-body, .page-card {
        padding: 16px;
    }
    .single-title, .page-title {
        font-size: var(--text-xl);
    }

    /* Touch targets */
    .menu-link {
        min-height: 48px;
    }
    .settings-link {
        min-height: 44px;
    }
}

/* --- Hide bottom nav on desktop --- */
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
    body {
        padding-bottom: 0;
    }
}

/* --- Large mobile (375-767) --- */
@media (min-width: 375px) and (max-width: 767px) {
    .products-grid {
        gap: 12px;
    }
    .product-card-title {
        font-size: 13px;
    }
}

/* --- Safe area support for iOS --- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    }
    @media (max-width: 767px) {
        body {
            padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
        }
        .sticky-buy-bar {
            bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
        }
    }
}
