/* Responsive styles */

/* Tablet and small desktop */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-text,
    .hero-img {
        flex: none;
        width: 100%;
    }

    .hero-text {
        margin-bottom: var(--space-lg);
        text-align: center;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .footer-content {
        gap: var(--space-lg);
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .header-content {
        position: relative;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--surface);
        box-shadow: var(--shadow-md);
        padding: 0;
        height: 0;
        overflow: hidden;
        transition: height var(--transition-normal);
    }

    .nav.active {
        height: auto;
        padding: var(--space-md) 0;
    }

    .nav-links {
        flex-direction: column;
        gap: var(--space-md);
        padding: 0 var(--space-md);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .feature-card {
        padding: var(--space-md);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }

    .header-actions {
        gap: var(--space-sm);
    }

    .hero {
        padding: var(--space-lg) 0;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        max-width: 320px;
        margin: 0 auto;
    }

    .product-img {
        height: 180px;
    }

    .btn {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.9rem;
    }
}