/* ==========================================================================
   JOUSH LUXURY — RESPONSIVE UTILITIES & BREAKPOINTS
   ========================================================================== */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .luxury-container {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
}

/* Laptops & Tablets Landscape (1024px - 1439px) */
@media (max-width: 1439px) {
    :root {
        --spacing-3xl: 96px;
        --spacing-2xl: 64px;
    }
}

/* Tablets & Mobile (<= 1024px) */
@media (max-width: 1024px) {
    :root {
        --header-height: 56px;
        --header-height-sticky: 56px;
        --spacing-xl: 48px;
        --spacing-lg: 32px;
    }

    .hide-on-tablet,
    .hide-on-mobile,
    #masthead,
    header#masthead,
    .site-header,
    .site-header.luxury-site-header,
    .jibtol-elementor-header-wrap,
    .col-header-menu,
    .jibtol-el-nav {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    html,
    body {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .announcement-bar {
        margin-top: 0 !important;
        top: 0 !important;
    }

    .hide-on-desktop,
    .jibtol-mobile-header-bar {
        display: block !important;
    }
}

/* Mobile Devices (320px - 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --header-height-sticky: 60px;
        --announcement-height: 34px;
        --spacing-xl: 36px;
        --spacing-lg: 24px;
        --spacing-md: 16px;
    }

    html, body {
        overflow-x: clip !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .luxury-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .site-main,
    .site-content,
    .site-inner,
    .content-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .announcement-bar {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
        padding: 0 10px;
        text-align: center;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.75rem;
        letter-spacing: 0.14em;
    }

    .side-drawer {
        max-width: 100% !important;
        width: 100% !important;
        z-index: 100030 !important;
    }

    .drawer-backdrop {
        z-index: 100020 !important;
    }

    /* Robust 2-Column Mobile Product Grid */
    .woocommerce #shop-products-column ul.products,
    .woocommerce #shop-products-column ul.products.columns-4,
    .woocommerce #shop-products-column ul.products.columns-3,
    .woocommerce #shop-products-column ul.products.columns-2,
    #shop-products-column ul.products,
    #shop-products-column ul.products.columns-4,
    #shop-products-column ul.products.columns-3,
    #shop-products-column ul.products.columns-2,
    .woocommerce ul.products,
    .woocommerce ul.products.columns-4,
    .woocommerce ul.products.columns-3,
    .woocommerce ul.products.columns-2,
    .recently-viewed-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px 10px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .shop-grid-switcher {
        display: none !important;
    }

    .woocommerce ul.products li.product,
    .woocommerce ul.products li.product-loop-item {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .woocommerce ul.products li.product .price,
    .product-card-price {
        font-size: 0.75rem !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: baseline !important;
        gap: 2px 4px !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
        max-width: 100% !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .product-card-title {
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
        margin-bottom: 3px !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }

    /* Trust Pillars Mobile Marquee */
    .pillar-box {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 6px 18px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
    }

    .pillar-box::after {
        display: block !important;
    }

    .pillar-icon {
        font-size: 1.2rem !important;
        flex-shrink: 0 !important;
    }

    .pillar-text h4 {
        font-size: 0.74rem !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
    }

    .pillar-text p {
        font-size: 0.64rem !important;
        line-height: 1.25 !important;
    }

    /* Testimonials Mobile Focus Card */
    .luxury-testimonial-card.single-card-focus {
        padding: 24px 18px 20px !important;
        border-radius: 14px !important;
    }

    /* Craftsmanship & Custom Order Mobile Notice */
    .joush-craftsmanship-cta-box {
        padding: 22px 16px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 16px !important;
    }

    .craftsmanship-cta-text-col {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    .craftsmanship-cta-action-col {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .btn-advisory-wa {
        width: 100% !important;
        max-width: 300px !important;
        justify-content: center !important;
        padding: 12px 18px !important;
        font-size: 0.75rem !important;
    }

    /* Footer VIP Newsletter Mobile Refinements */
    .footer-newsletter-section,
    .footer-newsletter-row {
        padding: 42px 0 32px 0 !important;
    }
}

