/* ============================================
   DESKTOP RESPONSIVE DESIGN
   ============================================ */

/* ========== DESKTOP NAVIGATION BAR ========== */
@media (min-width: 1024px) {
    
    /* Desktop Navigation - Always visible */
    .mobile-nav {
        position: fixed;
        bottom: auto;
        top: 0;
        left: 0;
        right: 0;
        height: auto;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        border-bottom: 3px solid var(--accent);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        z-index: 2000;
        padding: 0;
    }
    
    .nav-items {
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px;
        padding: 15px 40px;
    }
    
    .nav-item {
        flex-direction: row;
        gap: 10px;
        padding: 12px 24px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }
    
    .nav-item:hover {
        background: rgba(255, 178, 0, 0.1);
        border-color: var(--accent);
        transform: translateY(-2px);
    }
    
    .nav-item.active {
        background: linear-gradient(135deg, var(--accent), #ffd166);
        border-color: var(--accent);
        box-shadow: 0 6px 20px rgba(255, 178, 0, 0.3);
    }
    
    .nav-icon-container {
        position: relative;
        margin-bottom: 0;
    }
    
    .nav-icon {
        font-size: 1.2rem;
    }
    
    .nav-label {
        font-size: 0.95rem;
        font-weight: 600;
        opacity: 1;
    }
    
    .nav-badge {
        position: absolute;
        top: -8px;
        right: -8px;
    }
    
    /* Adjust body for top nav */
    body {
        padding-top: 60px;
        padding-bottom: 0 !important;
    }
    
    .header {
        margin-top: 0;
    }
    
    .header-container {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .header-main {
        padding: 12px 0;
    }
    
    .header-main-content {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    /* Brand section - prevent overlap */
    .brand-section {
        gap: 15px;
        flex-shrink: 0;
    }
    
    .logo-container {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .logo-wrapper {
        width: 100%;
        height: 100%;
    }
    
    .brand-info {
        margin-left: 0;
    }
    
    .store-name {
        font-size: 1.5rem;
        white-space: nowrap;
    }
    
    .store-tagline {
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    /* Header right - flexible */
    .header-right {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        min-width: 200px;
    }
    
    .status-section {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .status-badge {
        padding: 8px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* Header bottom - compact */
    .header-bottom {
        padding: 10px 0;
    }
    
    .header-bottom-content {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .social-icons-left {
        gap: 10px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .social-icon i {
        font-size: 1rem;
    }
    
    .contact-buttons-right {
        gap: 12px;
    }
    
    .contact-btn {
        width: 45px;
        height: 45px;
        border-radius: 12px;
    }
    
    .contact-btn i {
        font-size: 1.2rem;
    }
    
    /* ========== CATEGORY HEADER ========== */
    
    .category-header {
        padding: 15px 0;
    }
    
    .category-tabs {
        justify-content: flex-start;
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        scrollbar-color: var(--accent) transparent;
        padding: 8px 5px;
    }
    
    .category-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .category-tabs::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 2px;
    }
    
    .category-tabs::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 2px;
    }
    
    .category-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .category-tab i {
        display: inline-flex !important;
        font-size: 0.9rem;
    }
    
    .category-count {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    /* ========== SEARCH BOX ========== */
    
    .search-container {
        max-width: 550px;
        width: 70%;
        margin: 25px auto 35px;
    }
    
    .search-box-wrapper {
        padding: 3px;
    }
    
    .search-box {
        padding: 4px 15px;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 10px 0;
    }
    
    .search-icon {
        font-size: 0.95rem;
        margin-right: 10px;
    }
    
    .search-filter-btn {
        padding: 9px 16px;
        font-size: 0.8rem;
    }
    
    .search-microphone {
        width: 38px;
        height: 38px;
    }
    
    .search-microphone i {
        font-size: 0.9rem;
    }
    
    /* ========== 3-CARD CAROUSEL ========== */
    
    .offer-section {
        padding: 40px 0 50px;
        overflow: hidden;
    }
    
    .offer-carousel-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 40px;
        position: relative;
    }
    
    .offer-carousel {
        overflow: visible;
        height: auto;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        padding: 20px 0;
    }
    
    .offer-track {
        display: flex;
        gap: 25px;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        align-items: center;
    }
    
    .offer-slide {
        min-width: calc(33.333% - 17px);
        flex-shrink: 0;
        height: auto;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }
    
    /* Center card (featured) - larger and elevated */
    .offer-slide:nth-child(2) {
        transform: scale(1.08);
        z-index: 10;
    }
    
    .offer-slide:nth-child(2) .luxury-card {
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
        border: 2px solid var(--accent);
    }
    
    /* Side cards - slightly smaller */
    .offer-slide:nth-child(1),
    .offer-slide:nth-child(3) {
        transform: scale(0.95);
        opacity: 0.85;
    }
    
    .luxury-card {
        width: 100%;
        height: 220px;
        border-radius: 20px;
        transition: all 0.4s ease;
    }
    
    .luxury-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    }
    
    /* Responsive card content */
    .card-left {
        width: 65%;
        padding: 20px 24px;
    }
    
    .card-right {
        width: 35%;
    }
    
    .offer-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
        margin-bottom: 8px;
    }
    
    .offer-value {
        font-size: 2rem;
        margin-bottom: 6px;
    }
    
    .offer-title {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }
    
    .offer-desc {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .code-container {
        gap: 10px;
    }
    
    .code-box {
        font-size: 0.85rem;
        padding: 8px 12px;
        min-width: 100px;
    }
    
    .copy-btn {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
    
    .visual-icon {
        font-size: 2.8rem;
    }
    
    /* Carousel navigation arrows */
    .carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        display: flex;
        justify-content: space-between;
        pointer-events: none;
        z-index: 20;
        padding: 0 10px;
    }
    
    .carousel-arrow {
        width: 50px;
        height: 50px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        pointer-events: all;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        border: 2px solid var(--accent);
        color: var(--primary);
    }
    
    .carousel-arrow:hover {
        background: var(--accent);
        color: white;
        transform: scale(1.1);
        box-shadow: 0 12px 35px rgba(255, 178, 0, 0.3);
    }
    
    .carousel-arrow i {
        font-size: 1.2rem;
    }
    
    /* ========== PRODUCTS GRID ========== */
    
    .products-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        max-width: 1400px;
        margin: 0 auto 40px;
        padding: 0 40px;
    }
    
    .product-card {
        height: 450px;
    }
}

/* ========== LARGE DESKTOP (1440px+) ========== */
@media (min-width: 1440px) {
    
    .header-container,
    .nav-items {
        max-width: 1600px;
        padding: 45px 60px;
        gap: 50px;
    }
    
    .search-container {
        max-width: 800px;
    }
    
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 30px;
        max-width: 1600px;
        padding: 0 60px;
    }
}

/* ========== EXTRA LARGE DESKTOP (1920px+) ========== */
@media (min-width: 1920px) {
    
    .header-container,
    .offer-carousel-container,
    .nav-items {
        max-width: 1800px;
        padding: 0 80px;
    }
    
    .products-grid {
        grid-template-columns: repeat(6, 1fr);
        max-width: 1800px;
        padding: 0 80px;
    }
}

/* ========== TABLET LANDSCAPE (992-1023px) ========== */
@media (min-width: 992px) and (max-width: 1023px) {
    
    .search-container {
        max-width: 650px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 30px;
    }
}

/* ========== ENSURE MOBILE UNCHANGED (< 1024px) ========== */
@media (max-width: 1023px) {
    
    /* Force original carousel behavior */
    .offer-track {
        display: flex;
    }
    
    .offer-slide {
        min-width: 100%;
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Keep mobile nav at bottom */
    .mobile-nav {
        position: fixed;
        bottom: 0;
        top: auto;
    }
    
    body {
        padding-top: 0;
    }
}

    /* ========== RESPONSIVE CART BUTTONS & CONTROLS ========== */
    
    /* Add to Cart Button */
    .add-to-cart-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        border-radius: 12px;
        white-space: nowrap;
        min-width: 140px;
    }
    
    /* Quantity Controls */
    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 12px;
        background: white;
        padding: 6px 12px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;
        background: linear-gradient(135deg, var(--accent), #ffd166);
        color: white;
        border: none;
        box-shadow: 0 2px 8px rgba(255, 178, 0, 0.2);
    }
    
    .quantity-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(255, 178, 0, 0.3);
    }
    
    .quantity-btn:active {
        transform: scale(0.95);
    }
    
    .quantity-display {
        min-width: 40px;
        text-align: center;
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary);
    }
    
    /* Cart Modal Responsive */
    .cart-item {
        display: flex;
        gap: 15px;
        align-items: center;
        padding: 15px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 10px;
        flex-shrink: 0;
    }
    
    .cart-item-details {
        flex: 1;
        min-width: 0;
    }
    
    .cart-item-name {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 5px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .cart-item-price {
        font-size: 0.9rem;
        color: var(--accent);
        font-weight: 700;
    }
    
    .cart-item-controls {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    
    /* Product Card Cart Button */
    .product-card .add-to-cart-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .product-card .quantity-controls {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
    }
    
    .product-card .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .product-card .quantity-display {
        min-width: 35px;
        font-size: 0.95rem;
    }
