/* ============================================
   MOBILE RESPONSIVE OVERRIDES
   Only applies on screens smaller than 768px
   ============================================ */

@media (max-width: 768px) {
    
    /* ========================================
       GENERAL FIXES
       ======================================== */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
    
    .container {
        padding: 0 12px;
        overflow-x: hidden;
    }
    
    /* ========================================
       HEADER & NAVIGATION
       ======================================== */
    .header-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-bar {
        max-width: 100%;
        width: 100%;
        order: 3;
    }
    
    .logo {
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo p {
        font-size: 0.65rem;
    }
    
    .header-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Hamburger Menu */
    .hamburger {
        display: flex;
    }
    
    .nav-container {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-container.active {
        max-height: 300px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    nav li {
        width: 100%;
    }
    
    nav a {
        display: block;
        padding: 10px 15px;
        border-radius: 0;
        text-align: center;
    }
    
    /* ========================================
       MAIN LAYOUT
       ======================================== */
    .container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Filters - Move to top */
    .filters {
        position: static !important;
        margin-bottom: 0;
        order: -1;
    }
    
    .filter-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    /* ========================================
       PRODUCTS GRID
       ======================================== */
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    /* ========================================
       MODAL (Product Details)
       ======================================== */
    .product-modal-content {
        width: 95%;
        margin: 10px auto;
        border-radius: 15px;
    }
    
    .modal-grid {
        grid-template-columns: 1fr !important;
    }
    
    .modal-image {
        min-height: 250px;
        padding: 15px;
    }
    
    .modal-info {
        padding: 15px;
        max-height: 400px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-price {
        font-size: 20px;
    }
    
    .size-btn {
        width: 40px;
        padding: 6px;
        font-size: 12px;
    }
    
    .color-option .color-circle {
        width: 35px;
        height: 35px;
    }
    
    /* ========================================
       CART SIDEBAR
       ======================================== */
    .cart-sidebar {
        width: 100% !important;
        right: -100% !important;
        max-width: 100%;
    }
    
    .cart-sidebar.open {
        right: 0 !important;
    }
    
    /* ========================================
       HERO SECTION
       ======================================== */
    .hero {
        padding: 20px 15px;
        margin: 15px;
    }
    
    .hero h1 {
        font-size: 20px;
    }
    
    .hero p {
        font-size: 12px;
    }
    
    .btn-primary {
        padding: 8px 20px;
        font-size: 12px;
    }
    
    /* ========================================
       FEATURES SECTION
       ======================================== */
    .features {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        padding: 0 15px;
    }
    
    .feature-card {
        padding: 12px;
    }
    
    .feature-icon {
        font-size: 24px;
    }
    
    .feature-card h3 {
        font-size: 11px;
    }
    
    .feature-card p {
        font-size: 9px;
    }
    
    /* ========================================
       FOOTER
       ======================================== */
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 20px;
    }
    
    .footer-section h3 {
        font-size: 14px;
    }
    
    .footer-section p {
        font-size: 11px;
    }
    
    .copyright {
        font-size: 10px;
    }
    
    /* ========================================
       BOOKING PAGE (request-quote.html)
       ======================================== */
    .booking-container {
        grid-template-columns: 1fr !important;
        margin: 10px;
        border-radius: 15px;
    }
    
    .booking-summary, .booking-form {
        padding: 15px !important;
    }
    
    .cart-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .cart-item > div:last-child {
        text-align: right;
    }
    
    .coupon-input-group {
        flex-direction: column;
    }
    
    .apply-coupon-btn, .remove-coupon-btn {
        width: 100%;
    }
    
    .price-row {
        font-size: 13px;
    }
    
    .price-row.total {
        font-size: 16px;
    }
    
    .form-group input, 
    .form-group textarea,
    .form-group select {
        padding: 8px;
        font-size: 13px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    /* ========================================
       CONFIRMATION PAGE
       ======================================== */
    .confirmation {
        margin: 15px;
        padding: 20px !important;
    }
    
    .confirmation h1 {
        font-size: 20px;
    }
    
    .confirmation .booking-number {
        font-size: 14px;
        padding: 10px;
    }
    
    /* ========================================
       UTILITY CLASSES
       ======================================== */
    .hide-on-mobile {
        display: none !important;
    }
    
    .show-on-mobile {
        display: block !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    .full-width-mobile {
        width: 100% !important;
    }
}

/* Extra Small Devices (phones, below 480px) */
@media (max-width: 480px) {
    .product-image {
        height: 160px;
    }
    
    .size-btn {
        width: 35px;
        padding: 5px;
        font-size: 11px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-price {
        font-size: 18px;
    }
    
    .features {
        gap: 8px;
    }
    
    .feature-card {
        padding: 8px;
    }
    
    .hero h1 {
        font-size: 16px;
    }
}

/* Landscape orientation fix */
@media (max-width: 768px) and (orientation: landscape) {
    .product-image {
        height: 140px;
    }
    
    .modal-image {
        min-height: 180px;
    }
    
    .modal-info {
        max-height: 300px;
    }
}