/* ============================================
   RESPONSIVE STYLES - MOBILE FIRST
   ============================================ */

@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Header */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 280px;
        height: calc(100vh - var(--header-height));
        background: var(--bg-primary);
        flex-direction: column;
        padding: 32px 24px;
        box-shadow: var(--shadow-xl);
        transition: left 0.3s ease;
        align-items: flex-start;
        gap: 24px;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a.active::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero */
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Sections */
    .section-title {
        font-size: 28px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .categories-section,
    .featured-section,
    .blog-section,
    .newsletter-section {
        padding: 60px 0;
    }
    
    /* Grids */
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* Newsletter */
    .newsletter-content h2 {
        font-size: 28px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form .btn {
        width: 100%;
    }
    
    /* Page Header */
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    /* Products Page */
    .mobile-filter-toggle {
        display: flex;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-primary);
        padding: 24px;
        box-shadow: var(--shadow-xl);
        transition: left 0.3s ease;
        z-index: 9998;
        overflow-y: auto;
    }
    
    .filters-sidebar.active {
        left: 0;
    }
    
    /* Product Detail */
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .product-detail-info h1 {
        font-size: 28px;
    }
    
    .product-detail-meta {
        flex-wrap: wrap;
    }
    
    /* Blog Post */
    .blog-post-header h1 {
        font-size: 32px;
    }
    
    .blog-post-image {
        height: 250px;
    }
    
    .blog-post-body {
        font-size: 16px;
    }
    
    .blog-post-body h2 {
        font-size: 24px;
    }
    
    .blog-post-body h3 {
        font-size: 20px;
    }
    
    /* About Page */
    .about-text h2 {
        font-size: 24px;
    }
    
    .about-text p,
    .feature-list li {
        font-size: 16px;
    }
    
    /* Contact Page */
    .contact-info h2 {
        font-size: 24px;
    }
    
    .contact-info p {
        font-size: 16px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    /* Search */
    .search-overlay {
        padding-top: 80px;
    }
    
    .search-container {
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    /* Typography */
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    /* Cards */
    .product-card,
    .blog-card,
    .category-card,
    .value-card {
        margin: 0 -10px;
        border-radius: 8px;
    }
    
    /* Spacing */
    .container {
        padding: 0 16px;
    }
    
    .categories-section,
    .featured-section,
    .blog-section,
    .newsletter-section,
    .about-section,
    .values-section,
    .contact-section {
        padding: 40px 0;
    }
    
    /* Product Detail */
    .product-detail-image {
        border-radius: 8px;
    }
    
    /* Blog Post */
    .blog-post-image {
        border-radius: 8px;
        height: 200px;
    }
}

/* Landscape Mobile */
@media (max-width: 812px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
    }
    
    .page-header {
        padding: 30px 0;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .newsletter-section,
    .search-overlay,
    .mobile-menu-toggle,
    .search-icon {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
    }
}