/* Temberleigh Beauty & Wellness - Responsive Design */

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    h1 {
        font-size: 4.5rem;
    }
    
    h2 {
        font-size: 3.5rem;
    }
}

/* Large Screens (1200px - 1399px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
}

/* Medium Screens (992px - 1199px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    /* Grid Adjustments */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Screens (768px - 991px) */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .container-narrow {
        max-width: 100%;
        padding: 0 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    section {
        padding: 48px 0;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .btn-lg {
        padding: 14px 32px;
        font-size: 14px;
    }
    
    /* Grid Adjustments */
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    /* Hero Section */
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
        padding: 32px 0;
    }
    
    .hero-image {
        order: 1;
    }
    
    /* Category Cards */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* Product Cards */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* Editorial Sections */
    .editorial-section {
        flex-direction: column;
    }
    
    .editorial-image,
    .editorial-content {
        width: 100%;
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .newsletter-form button {
        width: 100%;
    }
}

/* Mobile Screens (576px - 767px) */
@media (max-width: 576px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.125rem;
    }
    
    p {
        font-size: 0.9375rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    /* Category Grid */
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    /* Product Grid */
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .btn-lg {
        padding: 12px 28px;
        font-size: 13px;
    }
    
    /* Card Adjustments */
    .card {
        border-radius: var(--radius-md);
    }
    
    /* Form Elements */
    input, textarea, select {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* Small Mobile Screens (480px and below) */
@media (max-width: 480px) {
    .container,
    .container-narrow {
        padding: 0 12px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    /* Hero Section */
    .hero-eyebrow {
        font-size: 0.75rem;
    }
    
    /* Product Cards */
    .product-card {
        border-radius: var(--radius-sm);
    }
    
    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 11px;
    }
    
    /* Spacing */
    .mt-5 { margin-top: 32px; }
    .mb-5 { margin-bottom: 32px; }
    .py-5 { padding-top: 32px; padding-bottom: 32px; }
}

/* Header Responsive */
@media (max-width: 991px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
}

@media (min-width: 992px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-nav {
        display: none;
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* Product Page Responsive */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
    }
    
    .product-gallery,
    .product-info {
        width: 100%;
    }
    
    .product-gallery {
        order: 1;
    }
    
    .product-info {
        order: 2;
    }
}

/* Cart Page Responsive */
@media (max-width: 768px) {
    .cart-layout {
        flex-direction: column;
    }
    
    .cart-items,
    .cart-summary {
        width: 100%;
    }
    
    .cart-summary {
        order: 2;
    }
}

/* Legal Pages Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 32px 0;
    }
    
    .legal-content {
        padding: 24px;
    }
}

/* Filter Drawer Mobile */
@media (min-width: 768px) {
    .filter-drawer {
        position: static;
        transform: none;
        box-shadow: none;
    }
    
    .filter-overlay {
        display: none;
    }
}

@media (max-width: 767px) {
    .filter-drawer {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .filter-drawer.active {
        transform: translateX(0);
    }
    
    .filter-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }
    
    .filter-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Quick View Modal Responsive */
@media (max-width: 768px) {
    .quick-view-modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .quick-view-content {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .quick-view-image,
    .quick-view-details {
        width: 100%;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
    }
    
    .image-wrapper:hover img {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .announcement-bar,
    .site-header,
    .site-footer,
    .btn,
    .filter-section,
    .sort-section,
    .pagination {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
