/* Mobile-First Overrides & Extra Small Devices */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 2.5px;
    background-color: #2d1c22;
    border-radius: 4px;
    transition: 0.2s;
}

/* Tablet & Mobile nav */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        background: white;
        width: 80%;
        height: calc(100vh - 70px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 2rem;
        transition: 0.3s ease-in-out;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.05);
        z-index: 999;
        backdrop-filter: blur(12px);
        background: rgba(255, 255, 255, 0.98);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .navbar {
        padding: 0.8rem 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.2rem;
    }
    
    .product-img {
        height: 220px;
    }
    
    .product-name {
        font-size: 0.95rem;
    }
    
    .payment-methods {
        gap: 1rem;
    }
    
    .payment-card {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .modal-product-detail {
        flex-direction: column;
    }
    
    .modal-info h3 {
        font-size: 1.5rem;
    }
    
    .whatsapp-float span {
        display: inline;
    }
    
    .whatsapp-float {
        padding: 10px 16px;
        bottom: 18px;
        right: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .section-header h2 {
        font-size: 1.7rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .product-img {
        height: 180px;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .order-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }
    
    .payment-card {
        padding: 0.5rem 1rem;
        gap: 0.4rem;
    }
    
    .btn-primary {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1rem;
    }
    
    .whatsapp-float {
        padding: 8px 14px;
    }
    
    .whatsapp-float span {
        font-size: 0.8rem;
    }
}

/* Tablet landscape & small desktops fine-tuning */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
    
    .hero-content h1 {
        font-size: 2.6rem;
    }
}

/* touch optimization */
button, .product-card, .order-btn, .btn-view-all, .whatsapp-float, .close-modal, .qty-control button {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

button:active, .product-card:active {
    transform: scale(0.98);
}