/**
 * =====================================================
 * HOUZESTYLE PREMIUM RESPONSIVE SYSTEM
 * Complete Mobile-First Responsive Design
 * Premium eCommerce Experience for All Devices
 * =====================================================
 */

/* ====================================================
   MOBILE NAVIGATION - HAMBURGER MENU SYSTEM
   ==================================================== */
@media (max-width: 992px) {
    /* Hide desktop menu */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--white, #fff);
        flex-direction: column;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 4rem 0 2rem;
        margin: 0 !important;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.mobile-active,
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0;
    }
    
    .nav-menu .nav-link {
        display: block;
        width: 100%;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: var(--dark, #1a1a1a);
        font-size: 1rem;
    }
    
    .nav-menu .nav-link::after {
        display: none;
    }
    
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: var(--orange-light, #fff3ec);
        color: var(--orange, #f26a1f);
        padding-left: 2.5rem;
    }
    
    /* Mobile Menu Toggle Button */
    .mobile-menu-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--dark, #1a1a1a);
        cursor: pointer;
        padding: 0.5rem;
        z-index: 10000;
    }
    
    /* Backdrop Overlay */
    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile Menu Close Button */
    .nav-menu::before {
        content: '\f00d';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--dark, #1a1a1a);
    }
}


/* ====================================================
   RESPONSIVE HEADER & TOPBAR
   ==================================================== */
@media (max-width: 768px) {
    .top-bar {
        display: none; /* Hide topbar on mobile */
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-content {
        gap: 0.75rem;
    }
    
    .logo {
        font-size: clamp(1.125rem, 3vw, 1.5rem);
        flex-shrink: 0;
    }
    
    .logo small {
        font-size: clamp(8px, 2vw, 10px);
        letter-spacing: 4px;
    }
    
    .nav-actions {
        display: flex;
        gap: 0.75rem;
        align-items: center;
    }
    
    .nav-icon {
        font-size: 1.25rem;
    }
    
    .btn-shop {
        display: none; /* Hide shop button, show icon instead */
    }
}

/* ====================================================
   RESPONSIVE HERO SECTION
   ==================================================== */
@media (max-width: 1200px) {
    .hero {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 100px 24px 60px;
        max-width: 480px;
    }
    
    .hero h1 {
        font-size: clamp(32px, 6vw, 48px);
    }
    
    .hero p {
        font-size: clamp(14px, 2.5vw, 15px);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 450px;
        background-position: center;
    }
    
    .hero::before {
        background: linear-gradient(to bottom, rgba(255,255,255,.95) 0%, rgba(255,255,255,.7) 60%, transparent 100%);
    }
    
    .hero-content {
        padding: 80px 16px 40px;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 12px;
    }
    
    .hero p {
        font-size: 14px;
        margin: 16px 0 24px;
    }
    
    .hero .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
    }
    
    .hero-content {
        padding: 70px 12px 30px;
    }
    
    .eyebrow {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
}


/* ====================================================
   RESPONSIVE PRODUCT GRID - MOBILE FIRST
   ==================================================== */
/* Mobile: 1 column */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 2rem);
}

/* Small Mobile (480px+): 2 columns */
@media (min-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(1rem, 2.5vw, 1.5rem);
    }
}

/* Tablet (768px+): 3 columns */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Desktop (1024px+): 4 columns */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Large Desktop (1440px+): 5 columns */
@media (min-width: 1440px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ====================================================
   RESPONSIVE PRODUCT CARDS
   ==================================================== */
@media (max-width: 768px) {
    .product-card {
        border-radius: 8px;
    }
    
    .product-image-wrapper {
        height: auto;
        aspect-ratio: 1;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 0.375rem;
    }
    
    .product-category {
        font-size: 10px;
    }
    
    .product-vendor {
        font-size: 11px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .original-price {
        font-size: 13px;
    }
    
    .add-to-cart-btn {
        padding: 10px 16px;
        font-size: 11px;
    }
    
    .product-actions {
        opacity: 1; /* Always show on mobile */
    }
    
    .action-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .product-badge {
        top: 8px;
        right: 8px;
        padding: 4px 10px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .product-info {
        padding: 0.75rem;
    }
    
    .product-title {
        font-size: 13px;
    }
    
    .current-price {
        font-size: 15px;
    }
}


/* ====================================================
   RESPONSIVE PILLARS/SERVICE GRID
   ==================================================== */
/* Mobile: 1 column */
.pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Medium Mobile (560px+): 2 columns */
@media (min-width: 560px) {
    .pillars {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* Tablet (768px+): 3 columns */
@media (min-width: 768px) {
    .pillars {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Desktop (1200px+): Better spacing */
@media (min-width: 1200px) {
    .pillars {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .pillar {
        padding: 32px 20px;
    }
    
    .pillar .icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
        margin-bottom: 18px;
    }
    
    .pillar h3 {
        font-size: 15px;
        letter-spacing: 1.5px;
        margin-bottom: 10px;
    }
    
    .pillar p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .learn {
        font-size: 11px;
    }
}

/* ====================================================
   RESPONSIVE FILTERS & CATALOG SIDEBAR
   ==================================================== */
@media (max-width: 992px) {
    .filter-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 9999;
        transition: left 0.3s ease;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }
    
    .filter-sidebar.active {
        left: 0;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
    }
    
    .filter-close {
        display: block !important;
    }
    
    .filter-toggle {
        display: inline-flex !important;
    }
    
    /* Filter Backdrop */
    body.filter-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
    }
}

@media (max-width: 768px) {
    .catalog-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 1rem;
    }
    
    .toolbar-left {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .filter-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .results-count {
        text-align: center;
        font-size: 12px;
    }
    
    .toolbar-right {
        width: 100%;
    }
    
    .sort-dropdown {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .sort-dropdown label {
        font-size: 12px;
    }
    
    .sort-dropdown .form-select {
        width: 100%;
    }
}


/* ====================================================
   RESPONSIVE CART PAGE
   ==================================================== */
@media (max-width: 992px) {
    .cart-item {
        grid-template-columns: 100px 1fr 100px;
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .item-details {
        grid-column: 2 / 3;
    }
    
    .item-price,
    .item-quantity,
    .item-total,
    .item-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
        display: flex;
        align-items: center;
    }
    
    .cart-summary {
        position: static;
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 90px 1fr;
        gap: 0.875rem;
        padding: 1rem;
        background: var(--white);
        border-radius: 8px;
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .cart-items-wrapper {
        padding: 0.5rem;
        background: transparent;
    }
    
    .item-image img {
        border-radius: 6px;
    }
    
    .item-name {
        font-size: 1rem;
    }
    
    .item-vendor,
    .item-sku {
        font-size: 0.8rem;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .quantity-input {
        width: 50px;
        font-size: 14px;
    }
    
    .item-actions {
        flex-direction: row;
        gap: 1rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .btn-action {
        font-size: 0.8rem;
    }
}

/* ====================================================
   RESPONSIVE CHECKOUT PAGE
   ==================================================== */
@media (max-width: 768px) {
    .checkout-section .row {
        flex-direction: column-reverse;
    }
    
    .checkout-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .order-summary {
        position: static;
        margin-bottom: 1.5rem;
    }
}

/* ====================================================
   RESPONSIVE INQUIRY FORM SECTION
   ==================================================== */
@media (max-width: 992px) {
    .inquiry-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .inquiry-left {
        text-align: center;
    }
    
    .inquiry-left .vase {
        margin: 0 auto 20px;
        width: 140px;
    }
    
    .features {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .inquiry {
        padding: 50px 0;
    }
    
    .inquiry h2 {
        font-size: clamp(24px, 5vw, 32px);
        line-height: 1.2;
    }
    
    .form {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .form input,
    .form select,
    .form textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
}


/* ====================================================
   RESPONSIVE FOOTER
   ==================================================== */
/* Mobile: 1 column */
.foot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Tablet (600px+): 2 columns */
@media (min-width: 600px) {
    .foot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Desktop (992px+): 5 columns as original */
@media (min-width: 992px) {
    .foot-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 40px 0 20px;
    }
    
    .foot-grid {
        margin-bottom: 30px;
    }
    
    .foot-grid h4 {
        font-size: 12px;
        margin-bottom: 14px;
    }
    
    .foot-grid a,
    .foot-grid p {
        font-size: 12px;
    }
    
    .foot-about {
        text-align: center;
    }
    
    .socials {
        justify-content: center;
    }
    
    .socials a {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .office li {
        font-size: 12px;
    }
    
    .studio img {
        height: 100px;
    }
    
    .studio .play {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
    
    .copy {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        font-size: 11px;
    }
    
    .copy a {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* ====================================================
   RESPONSIVE TESTIMONIALS SECTION
   ==================================================== */
/* Mobile: 1 column */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Tablet (768px+): 2 columns */
@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

/* Desktop (1024px+): 3 columns */
@media (min-width: 1024px) {
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: 50px 0;
    }
    
    .testimonial-card {
        padding: 24px;
    }
    
    .testimonial-text {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .author-img {
        width: 44px;
        height: 44px;
    }
    
    .author-info h5 {
        font-size: 13px;
    }
    
    .author-info p {
        font-size: 11px;
    }
}


/* ====================================================
   RESPONSIVE PARTNERS/BRAND LOGOS SECTION
   ==================================================== */
/* Mobile: 2 columns */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: center;
}

/* Tablet (600px+): 3 columns */
@media (min-width: 600px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Desktop (992px+): 6 columns */
@media (min-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .partners {
        padding: 40px 0;
    }
    
    .partner-logo {
        padding: 15px;
    }
    
    .partner-logo img {
        max-width: 100px;
        max-height: 50px;
    }
}

/* ====================================================
   RESPONSIVE PORTFOLIO/GALLERY SECTION
   ==================================================== */
@media (max-width: 768px) {
    .filters {
        gap: 8px;
        padding: 8px 0;
        margin-bottom: 20px;
    }
    
    .filter {
        padding: 8px 16px;
        font-size: 11px;
        letter-spacing: 1px;
    }
    
    .gallery-wrapper {
        padding: 8px 0;
    }
    
    .gallery {
        gap: 12px;
    }
    
    .gallery .item {
        width: 280px;
    }
    
    .center-cta {
        margin-top: 30px;
    }
    
    .btn-outline {
        width: 100%;
        padding: 12px 20px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .gallery .item {
        width: 240px;
    }
}

/* ====================================================
   RESPONSIVE BUTTONS & FORM ELEMENTS
   ==================================================== */
@media (max-width: 768px) {
    .btn {
        padding: 11px 20px;
        font-size: 11px;
        letter-spacing: 1px;
    }
    
    .btn-lg {
        padding: 13px 28px;
        font-size: 12px;
    }
    
    .btn-sm {
        padding: 8px 16px;
        font-size: 10px;
    }
    
    .btn-block {
        display: block;
        width: 100%;
    }
    
    /* Form inputs */
    input,
    select,
    textarea {
        font-size: 16px !important; /* Prevent iOS zoom */
    }
    
    .form-control {
        padding: 11px 14px;
    }
}

/* ====================================================
   RESPONSIVE TYPOGRAPHY ADJUSTMENTS
   ==================================================== */
@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }
    
    .section-head h2 {
        font-size: clamp(28px, 5vw, 36px);
    }
    
    .section-eyebrow {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-head {
        margin-bottom: 32px;
    }
    
    .section-head h2 {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: 8px;
    }
    
    .section-head p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .section-head .underline {
        width: 50px;
        height: 2px;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .section {
        padding: 32px 0;
    }
}


/* ====================================================
   RESPONSIVE TABLES
   ==================================================== */
@media (max-width: 992px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }
    
    table {
        min-width: 700px;
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    /* Convert tables to card view on mobile */
    .table-mobile-cards {
        display: block;
    }
    
    .table-mobile-cards thead {
        display: none;
    }
    
    .table-mobile-cards tbody {
        display: block;
    }
    
    .table-mobile-cards tr {
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
        background: var(--white, #fff);
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .table-mobile-cards td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
    }
    
    .table-mobile-cards td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--dark, #1a1a1a);
    }
}

/* ====================================================
   RESPONSIVE ADMIN/DASHBOARD PANELS
   ==================================================== */
@media (max-width: 992px) {
    .admin-layout,
    .customer-layout,
    .vendor-layout {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 9999;
        transition: left 0.3s ease;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-toggle {
        display: block !important;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--orange, #f26a1f);
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 999;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .stat-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-details h3 {
        font-size: 1.75rem;
    }
}

@media (min-width: 600px) and (max-width: 992px) {
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ====================================================
   RESPONSIVE MODALS/POPUPS
   ==================================================== */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.125rem;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

/* ====================================================
   RESPONSIVE PAGINATION
   ==================================================== */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 0.375rem;
        justify-content: center;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 38px;
    }
    
    /* Hide page numbers on small screens, keep prev/next */
    .pagination .page-item:not(:first-child):not(:last-child):not(.active) {
        display: none;
    }
}

/* ====================================================
   TOUCH-FRIENDLY ENHANCEMENTS
   ==================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Make all interactive elements touch-friendly (44x44px min) */
    button,
    a,
    input[type="button"],
    input[type="submit"],
    .btn,
    .nav-link,
    .action-btn {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove hover effects on touch devices */
    *:hover {
        transform: none !important;
    }
    
    /* Show action buttons always on touch devices */
    .product-actions {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
    
    /* Prevent double-tap zoom */
    a, button, input, select, textarea {
        touch-action: manipulation;
    }
}


/* ====================================================
   RESPONSIVE FLOATING ELEMENTS
   ==================================================== */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.75rem;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px;
        right: 20px;
        font-size: 1rem;
    }
}

/* ====================================================
   RESPONSIVE ALERTS & NOTIFICATIONS
   ==================================================== */
@media (max-width: 576px) {
    .alert {
        position: fixed !important;
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
        min-width: auto !important;
        width: calc(100% - 20px) !important;
        font-size: 0.875rem;
        padding: 0.875rem 1rem;
    }
    
    .toast {
        width: calc(100% - 20px);
        max-width: none;
        left: 10px;
        right: 10px;
    }
}

/* ====================================================
   RESPONSIVE SEARCH OVERLAY
   ==================================================== */
@media (max-width: 768px) {
    .search-overlay .search-container {
        width: 95%;
        padding: 0 10px;
    }
    
    .search-overlay .search-form-main {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-overlay .search-input {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .search-overlay .btn {
        width: 100%;
        padding: 1rem;
    }
    
    .search-close {
        top: -40px;
        right: 0;
        font-size: 1.75rem;
    }
}

/* ====================================================
   RESPONSIVE IMAGES & MEDIA
   ==================================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

picture {
    display: block;
}

video {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ====================================================
   RESPONSIVE UTILITY CLASSES
   ==================================================== */
/* Mobile visibility classes */
@media (max-width: 768px) {
    .mobile-hide {
        display: none !important;
    }
    
    .mobile-show {
        display: block !important;
    }
    
    .mobile-text-center {
        text-align: center !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
    
    .mobile-stack {
        flex-direction: column !important;
    }
}

/* Desktop visibility classes */
@media (min-width: 769px) {
    .desktop-hide {
        display: none !important;
    }
    
    .desktop-show {
        display: block !important;
    }
}

/* ====================================================
   SAFE AREA INSETS (iPhone X+, Android Notch)
   ==================================================== */
@supports (padding: env(safe-area-inset-bottom)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
    
    .whatsapp-float {
        bottom: calc(20px + env(safe-area-inset-bottom));
        right: calc(20px + env(safe-area-inset-right));
    }
    
    .scroll-to-top {
        bottom: calc(80px + env(safe-area-inset-bottom));
        right: calc(20px + env(safe-area-inset-right));
    }
}


/* ====================================================
   RESPONSIVE PERFORMANCE OPTIMIZATIONS
   ==================================================== */
/* Reduce motion for accessibility and performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Optimize rendering on mobile */
@media (max-width: 768px) {
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Use will-change for animated elements */
    .mobile-menu-toggle,
    .nav-menu,
    .filter-sidebar,
    .product-card,
    .hero-content {
        will-change: transform;
    }
    
    /* Remove transform on complete */
    .mobile-menu-toggle:not(.active),
    .nav-menu:not(.active),
    .filter-sidebar:not(.active) {
        will-change: auto;
    }
}

/* ====================================================
   PRINT STYLES (Responsive)
   ==================================================== */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    header,
    .navbar,
    .top-bar,
    footer,
    .whatsapp-float,
    .scroll-to-top,
    .btn,
    .mobile-menu-toggle,
    .filter-sidebar,
    .sidebar {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1 {
        font-size: 24pt;
    }
    
    h2 {
        font-size: 18pt;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }
    
    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* ====================================================
   RESPONSIVE DEBUGGING (Remove in production)
   ==================================================== */
/* Uncomment to see breakpoints during development */
/*
body::after {
    content: 'XS: <480px';
    position: fixed;
    bottom: 10px;
    left: 10px;
    padding: 5px 10px;
    background: #000;
    color: #fff;
    font-size: 11px;
    font-family: monospace;
    z-index: 99999;
    border-radius: 3px;
}

@media (min-width: 480px) {
    body::after {
        content: 'SM: ≥480px';
        background: #28a745;
    }
}

@media (min-width: 768px) {
    body::after {
        content: 'MD: ≥768px';
        background: #17a2b8;
    }
}

@media (min-width: 1024px) {
    body::after {
        content: 'LG: ≥1024px';
        background: #ffc107;
        color: #000;
    }
}

@media (min-width: 1280px) {
    body::after {
        content: 'XL: ≥1280px';
        background: #dc3545;
    }
}

@media (min-width: 1536px) {
    body::after {
        content: '2XL: ≥1536px';
        background: #6f42c1;
    }
}
*/

/* ====================================================
   END OF RESPONSIVE PREMIUM CSS
   ==================================================== */

