/* ============================================================
   Desktop / Responsive Layout Enhancements
   - Mobile: unchanged (< 1024px)
   - Desktop: lg breakpoint (>= 1024px)
   ============================================================ */

/* ---- Desktop top navigation ---- */
.desktop-nav {
    display: none;
}

/* ---- Page container for centering ---- */
.page-container {
    width: 100%;
}

/* ============================================================
   lg: Desktop (>= 1024px)
   ============================================================ */
@media (min-width: 1024px) {

    /* Show desktop top nav, hide mobile bottom nav */
    .desktop-nav {
        display: block;
        position: sticky;
        top: 0;
        z-index: 50;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 107, 53, 0.1);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }
    .desktop-nav-inner {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 2rem;
        height: 64px;
    }
    .desktop-nav-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: #FF6B35;
        font-weight: 700;
        font-size: 1.25rem;
        font-family: 'Noto Serif SC', serif;
    }
    .desktop-nav-brand svg {
        width: 28px;
        height: 28px;
    }
    .desktop-nav-links {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    .desktop-nav-links a {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #6b7280;
        text-decoration: none;
        font-size: 0.9375rem;
        padding: 6px 0;
        border-bottom: 2px solid transparent;
        transition: all 0.2s ease;
    }
    .desktop-nav-links a:hover {
        color: #FF6B35;
    }
    .desktop-nav-links a.active {
        color: #FF6B35;
        border-bottom-color: #FF6B35;
    }
    .desktop-nav-links a svg {
        width: 20px;
        height: 20px;
    }
    .desktop-nav-cart-badge {
        background: #ef4444;
        color: #fff;
        font-size: 10px;
        border-radius: 50%;
        min-width: 18px;
        height: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        margin-left: -4px;
        margin-top: -8px;
    }
    .desktop-nav-cart-badge.hidden {
        display: none;
    }

    /* Hide mobile bottom nav */
    .nav-bar {
        display: none !important;
    }

    /* Center page content */
    .page-container {
        max-width: 1200px;
        margin: 0 auto;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* Override mobile bottom padding */
    body {
        padding-bottom: 2rem !important;
    }

    /* ---- Sticky header adjustments ---- */
    .sticky.top-0.z-40 {
        position: relative;
        z-index: 30;
    }
    /* Hide mobile back-button header on desktop for main pages */
    .desktop-hide-mobile-header .sticky.top-0.z-40 {
        display: none;
    }

    /* ---- Hero section (index) ---- */
    .hero-section-desktop {
        max-width: 1200px;
        margin: 0 auto;
        border-radius: 0 0 16px 16px;
        overflow: hidden;
    }
    .hero-section-desktop .relative.h-64 {
        height: 400px;
    }
    .hero-section-desktop img {
        height: 400px;
    }

    /* ---- Product grids ---- */
    .product-grid-desktop {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.25rem !important;
    }

    /* ---- Floating cart button: hide on desktop (nav has cart link) ---- */
    .floating-cart {
        display: none !important;
    }

    /* ---- Cart page ---- */
    .cart-desktop-layout {
        display: grid;
        grid-template-columns: 1fr 360px;
        gap: 2rem;
        align-items: start;
    }
    .cart-summary-col {
        position: sticky;
        top: 80px;
    }

    /* ---- Checkout page ---- */
    .checkout-desktop-layout {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 2rem;
        align-items: start;
    }
    .checkout-right-col {
        position: sticky;
        top: 80px;
    }

    /* ---- Product detail page ---- */
    .detail-desktop-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        align-items: start;
    }
    .detail-image-col img#main-image,
    .detail-image-col .main-image-container img {
        height: 400px;
    }

    /* ---- Profile page ---- */
    .profile-desktop-layout {
        max-width: 720px;
        margin: 0 auto;
    }

    /* ---- Cards: subtle hover effect on desktop ---- */
    .fruit-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    }

    /* ---- Modal: larger on desktop ---- */
    .modal .max-w-md {
        max-width: 560px;
    }

    /* ---- Search bar wider ---- */
    .search-desktop-center {
        max-width: 600px;
        margin: 0 auto;
    }

    /* ---- Categories: wider, centered ---- */
    .categories-desktop-center {
        max-width: 800px;
    }

    /* ---- Move lang/auth floating buttons into desktop nav area ---- */
    #top-btn-group {
        position: absolute !important;
        top: 50% !important;
        right: 2rem !important;
        transform: translateY(-50%);
    }
    .desktop-nav {
        position: relative;
    }
}
