/* Desktop Styles - 768px and above */
@media (min-width: 768px) {

    /* Enhanced Container for Desktop */
    .container {
        max-width: 1440px;
        padding: 0 40px;
    }

    /* Desktop Header Enhancements */
    .main-header {
        padding: 16px 0;
        box-shadow: var(--shadow-soft);
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        position: sticky;
        top: 0;
        z-index: 1000;
        transition: all 0.3s ease;
    }

    /* Ensure header text is visible */
    .header-icon-link {
        color: var(--text-primary) !important;
    }

    .header-icon-link:hover {
        color: var(--primary-orange) !important;
    }

    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
    }

    .header-logo img {
        height: 52px;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .header-logo:hover img {
        transform: scale(1.08);
    }

    /* Enhanced Search Bar for Desktop */
    .header-search {
        flex: 1;
        max-width: 600px;
        position: relative;
    }

    .search-input {
        width: 100%;
        padding: 14px 50px 14px 20px;
        border: 2px solid #f0f0f0;
        border-radius: 14px;
        font-size: 15px;
        transition: all 0.3s ease;
        background: #f8f9fa;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    }

    .search-input:focus {
        border-color: var(--primary-orange);
        background: white;
        box-shadow: 0 0 0 4px rgba(251, 119, 1, 0.1), 0 4px 15px rgba(0, 0, 0, 0.05);
        transform: translateY(-1px);
    }

    .search-btn {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%) !important;
        color: white !important;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 4px 10px rgba(251, 119, 1, 0.2);
    }

    .search-btn:hover {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 15px rgba(251, 119, 1, 0.3);
    }

    /* Desktop Header Icons - Modern Zen Colorful */
    .header-icons {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .header-icon-link {
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        min-width: 80px;
        padding: 10px 16px;
        border-radius: 12px;
    }

    .header-icon-link:hover {
        transform: translateY(-2px);
        background: rgba(0, 0, 0, 0.02);
    }

    /* Note: Colors and Pill backgrounds are inherited from style.css */

    .header-icon-link svg {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
    }

    .header-icon-link:hover svg {
        transform: scale(1.1);
    }

    /* Enhanced Product Grid for Desktop */
    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 32px;
        padding: 40px 0;
    }

    .product-card {
        background: white;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 1px solid #f0f0f0;
        box-shadow: var(--shadow-soft);
    }

    .product-card:hover {
        transform: translateY(-12px);
        box-shadow: var(--shadow-premium);
        border-color: rgba(251, 119, 1, 0.3);
    }

    .product-img-wrapper {
        width: 100%;
        aspect-ratio: 1/1;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        position: relative;
        overflow: hidden;
    }

    .product-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .product-card:hover .product-img {
        transform: scale(1.1);
    }

    .product-info {
        padding: 24px;
    }

    /* Enhanced Product Typography for Desktop */
    .product-title {
        font-size: 16px;
        color: var(--text-primary);
        margin: 0 0 14px 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.5;
        height: 48px;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .product-card:hover .product-title {
        color: var(--primary-orange);
    }

    .price-current {
        font-size: 22px;
        font-weight: 800;
        color: var(--primary-orange);
    }

    .sales-count {
        background: linear-gradient(135deg, rgba(251, 119, 1, 0.1) 0%, rgba(255, 77, 0, 0.1) 100%);
        color: var(--primary-orange);
        padding: 5px 14px;
        border-radius: 20px;
        font-weight: 700;
        font-size: 11px;
    }

    /* Desktop News Poster Grid */
    .news-poster-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 24px;
        margin-bottom: 40px;
    }

    .news-poster-item {
        background: linear-gradient(135deg, #FF9100 0%, var(--primary-orange) 100%);
        padding: 32px;
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(251, 119, 1, 0.2);
        color: white;
        position: relative;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .news-poster-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 40px rgba(251, 119, 1, 0.3);
    }

    /* Desktop Cart Layout - Hide Mobile Sticky Footer */
    .cart-sticky-footer {
        display: none !important;
    }

    .cart-layout {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 48px;
        align-items: flex-start;
    }

    .cart-summary-box {
        background: white;
        border-radius: 24px;
        padding: 40px;
        box-shadow: var(--shadow-medium);
        border: 1px solid rgba(0, 0, 0, 0.03);
        color: var(--text-primary);
    }

    /* Hide Mobile Bottom Nav on Desktop */
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Page Transitions */
.main-content {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}