/* app/static/css/responsive.css */
/* RENAD VERSION - Endast generell responsivitet, ingen mobilmeny-CSS */

/* Base responsive styles */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== MEDIUM SCREENS (TABLETS) ========== */

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    
    /* Product grid adjustments */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    /* Footer adjustments */
    .footer-content {
        gap: 20px;
    }
    
    /* General grid adjustments */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* ========== SMALL SCREENS (MOBILE) ========== */

@media (max-width: 768px) {
    /* Product container */
    .product-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 30px;
    }
    
    /* Hero section */
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Footer adjustments */
    .footer-section {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    /* Grid adjustments */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ========== EXTRA SMALL SCREENS ========== */

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    /* Product grid */
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    /* Product cards */
    .product-image {
        height: 180px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    /* Pagination */
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        margin: 0 2px;
        font-size: 13px;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 12px;
    }
    
    /* Contact form */
    .contact-content {
        flex-direction: column;
    }
    
    /* Page headers */
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    /* Section headers */
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn,
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Cards */
    .card {
        padding: 15px;
    }
}

/* ========== PRINT STYLES ========== */

@media print {
    header,
    footer,
    .sidebar-navigation,
    .mobile-sidebar,
    .mobile-menu-toggle,
    .mobile-nav,
    .breadcrumb,
    .search-input-wrapper {
        display: none;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
    }
    
    body {
        background-color: white;
    }
}

/* ========== FIX FOR STICKY HEADER ON MOBILE DEVICES ========== */

@supports (-webkit-touch-callout: none) {
    /* iOS specific styles */
    .sticky,
    header {
        position: -webkit-sticky;
    }
}

/* ========== LANDSCAPE ORIENTATION ========== */

@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
}