/* Responsive Design */

/* Large screens */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        margin-right: 1rem;
    }
    
    .brand-content {
        gap: 2rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 60px;
    }
    
    .hero-content {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Sections */
    .products-section, .brand-section, .contact-section {
        padding: 60px 0;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    /* Brand Section */
    .brand-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .brand-values {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Modal */
    .modal-content {
        max-width: 95%;
        padding: 1.5rem;
    }
    
    .product-modal-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-modal-image {
        height: 300px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 15px;
    }
    
    .logo {
        height: 40px;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    /* Hero */
    .hero {
        padding: 100px 15px 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    /* Sections */
    .products-section, .brand-section, .contact-section {
        padding: 40px 0;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        margin: 0 auto;
        max-width: 350px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Brand Values */
    .brand-values {
        gap: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Modal */
    .modal-content {
        padding: 1rem;
        margin: 10px;
    }
    
    .close {
        top: 0.5rem;
        right: 1rem;
        font-size: 1.5rem;
    }
    
    .product-modal-image {
        height: 250px;
    }
    
    .quantity-selector {
        justify-content: center;
    }
    
    /* Cart */
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-actions {
        flex-direction: column;
        padding: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Buttons */
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* Notifications */
    .notification {
        right: 10px;
        left: 10px;
        top: 90px;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .modal-content {
        margin: 5px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 20px 40px;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        top: 60px;
    }
}

/* Print styles */
@media print {
    .header,
    .nav,
    .btn-primary,
    .btn-secondary,
    .modal,
    .notification {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .hero,
    .products-section,
    .brand-section,
    .contact-section {
        padding: 20px 0;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
    }
    
    .btn-primary,
    .btn-secondary {
        border-width: 3px;
    }
    
    .nav-link::after {
        height: 3px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-cta,
    .hero-img {
        animation: none;
    }
}