/* =====================================================
   RESPONSIVE DESIGN & MOBILE STYLES
   ===================================================== */

/* Tablet Styles */
@media (max-width: 992px) {
    .custom-header {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
        margin: 15px 0 0 0;
    }
    
    .collections-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .hero-banner h1 {
        font-size: 2.5rem;
    }
    
    .hero-banner p {
        font-size: 1.1rem;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Mobile Header */
    .custom-header {
        padding: 10px 0;
    }
    
    .header-logo img {
        max-height: 40px;
    }
    
    .header-search {
        display: none;
    }
    
    .mobile-search {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--box-shadow);
        z-index: 1001;
    }
    
    .mobile-search.active {
        display: block;
    }
    
    .mobile-search input {
        width: 100%;
        padding: 15px;
        border: 2px solid var(--primary-color);
        border-radius: var(--border-radius);
        font-size: 16px;
    }
    
    .mobile-search .close-search {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--primary-color);
        cursor: pointer;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Mobile Navigation */
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--box-shadow);
        transition: var(--transition);
        z-index: 1002;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .main-navigation .nav-menu {
        flex-direction: column;
        padding: 20px 0;
        background: var(--white);
    }
    
    .main-navigation .nav-menu a {
        color: var(--text-dark);
        border-bottom: 1px solid var(--light-bg);
        padding: 15px 20px;
        background: none;
    }
    
    .main-navigation .nav-menu a:hover {
        background: var(--light-bg);
        color: var(--primary-color);
    }
    
    .main-navigation .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light-bg);
        margin-left: 20px;
        border-radius: 0;
    }
    
    .main-navigation .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--primary-color);
        cursor: pointer;
    }
    
    /* Mobile Overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile Hero */
    .hero-banner {
        padding: 50px 0;
    }
    
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .hero-banner p {
        font-size: 1rem;
    }
    
    .hero-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* Mobile Sections */
    .featured-collections,
    .latest-products {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .collections-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    
    /* Mobile Product Cards */
    .collection-card,
    .product-card {
        margin: 0 10px;
    }
    
    /* Mobile Shop Page */
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }
    
    .woocommerce-products-header {
        padding: 40px 0;
    }
    
    .woocommerce-products-header h1 {
        font-size: 2rem;
    }
    
    /* Mobile Product Page - Already handled in product.css */
    
    /* Mobile Forms */
    .woocommerce form input,
    .woocommerce form select,
    .woocommerce form textarea {
        width: 100%;
        margin-bottom: 15px;
    }
    
    /* Mobile Buttons */
    .woocommerce .button,
    .woocommerce input.button,
    .woocommerce a.button {
        width: 100%;
        padding: 12px 20px;
        text-align: center;
        margin-bottom: 10px;
    }
    
    /* Mobile Cart */
    .woocommerce-cart .cart-collaterals {
        width: 100%;
    }
    
    .woocommerce-cart .cart_totals {
        width: 100%;
        margin-top: 30px;
    }
    
    /* Mobile Checkout */
    .woocommerce-checkout .col2-set {
        width: 100%;
    }
    
    .woocommerce-checkout .col-1,
    .woocommerce-checkout .col-2 {
        width: 100%;
        float: none;
        margin-bottom: 30px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-banner h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .woocommerce ul.products {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .collections-grid,
    .products-grid {
        padding: 0 10px;
    }
    
    .main-navigation {
        width: 100%;
        left: -100%;
    }
    
    .custom-header {
        padding: 8px 0;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .header-actions a {
        padding: 6px 8px;
        font-size: 14px;
    }
    
    .free-shipping-notice {
        font-size: 1rem;
        padding: 12px 0;
    }
    
    .hero-cta {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .collection-info,
    .product-info {
        padding: 15px;
    }
    
    .benefit-item {
        padding: 20px 15px;
    }
    
    .benefit-icon {
        font-size: 2.5rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-banner {
        padding: 30px 0;
    }
    
    .hero-banner h1 {
        font-size: 1.8rem;
    }
    
    .hero-banner p {
        font-size: 0.95rem;
    }
    
    .featured-collections,
    .latest-products {
        padding: 40px 0;
    }
    
    .main-navigation {
        width: 320px;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-banner::before {
        background-size: 25px 25px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .main-navigation,
    .site-footer,
    .mobile-menu-toggle,
    .mobile-overlay,
    .mobile-search,
    .back-to-top {
        display: none !important;
    }
    
    .hero-banner {
        background: none !important;
        color: #000 !important;
    }
    
    .collection-card,
    .product-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    a {
        text-decoration: underline !important;
    }
    
    .woocommerce div.product {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
} 