/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    /* Video Background Tablet */
    .video-background video {
        object-fit: cover;
        object-position: center center;
        width: 100%;
        height: 100vh;
        min-width: 100%;
        min-height: 100vh;
    }
    
    .video-overlay {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 223, 0, 0.35) 100%);
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .product-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-images {
        position: static;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .order-summary {
        position: static;
    }
    
    .cart-sidebar {
        width: 350px;
        right: -350px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Video Background Mobile Optimization */
    .video-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }
    
    .video-background video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        object-position: center center;
        transform: scale(1.1);
    }
    
    .video-overlay {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 223, 0, 0.4) 100%);
    }
    
    /* Header */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        gap: 1rem;
        height: calc(100vh - 80px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Sections */
    .hero,
    .products-section,
    .featured-products,
    .why-choose,
    .promo-banner {
        padding: 60px 0;
    }
    
    .product-details,
    .checkout-section {
        padding: 100px 0 60px;
    }
    
    .page-header {
        padding: 100px 0 40px;
    }
    
    /* Grids */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .promo-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Product Card */
    .product-image {
        height: 200px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .freight-form .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 0 1rem;
        flex-wrap: nowrap;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Cart */
    .cart-sidebar {
        width: 300px;
        right: -300px;
    }
    
    /* WhatsApp Button */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
    
    /* Product Options */
    .color-options,
    .storage-options {
        gap: 0.5rem;
    }
    
    .color-option,
    .storage-option {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Payment Methods */
    .payment-method label {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .payment-method i {
        font-size: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    /* Video Background Small Mobile */
    .video-background {
        position: fixed;
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        overflow: hidden;
    }
    
    .video-background video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        object-position: center center;
        transform: scale(1.15);
        filter: blur(0.5px);
    }
    
    .video-overlay {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 223, 0, 0.45) 100%);
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .product-info,
    .promo-item,
    .feature-item,
    .form-section {
        padding: 1rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .product-price .current-price {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .filter-buttons {
        padding: 1rem;
        margin: 0 -10px;
    }
    
    .order-summary,
    .form-section {
        margin-bottom: 2rem;
    }
}

/* Landscape Phone */
@media (max-height: 500px) and (orientation: landscape) {
    /* Video Background Landscape */
    .video-background video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        object-position: center center;
        transform: scale(1.05);
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .whatsapp-float,
    .cart-sidebar,
    .video-background {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .btn {
        border: 2px solid black !important;
        color: black !important;
        background: white !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image img,
    .hero {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .whatsapp-float {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: light) {
    /* If user prefers light mode, you can add overrides here */
    /* This design is primarily dark, so we maintain the dark theme */
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    *:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }
    
    .btn:focus {
        outline: 2px solid #ffffff;
    }
}