/* Global Mobile Overrides for DNT Core */
/* Created for Mobile UI Standardization */

/* GLOBAL FIXES (All Mobile/Tablet) */
@media (max-width: 991px) {

    html,
    body {
        overflow-x: hidden !important;
        position: relative;
    }

    /* Fix potential row overflow */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 1. SLIDER & TYPOGRAPHY FIXES */
    /* Remove side blurs/gradients */
    .banner-4::before,
    .banner-4::after {
        display: none !important;
        content: none !important;
    }

    .banner-title-4 {
        font-size: 32px !important;
        line-height: 1.1 !important;
        word-break: break-word !important;
        hyphens: auto !important;
        margin-bottom: 15px !important;
        width: 100% !important;
    }

    .banner-title-4 span {
        display: inline-block !important;
        -webkit-text-stroke: 0px !important;
        color: #000 !important;
    }

    /* Stack buttons properly */
    .tech-btn-wrap {
        flex-direction: column !important;
        width: 100% !important;
    }

    .tech-btn-solid,
    .tech-btn-outline {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 10px !important;
    }

    /* 2. DRAWER FIXES - ROBUST */
    .cart-drawer,
    .wishlist-drawer,
    .notification-drawer {
        display: none !important;
        /* HARD HIDE when inactive */
        width: 100% !important;
        max-width: 100% !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 100% !important;
        z-index: 10000 !important;
        background: #fff !important;
    }

    /* Active State */
    .cart-drawer.active,
    .wishlist-drawer.active,
    .notification-drawer.active {
        display: flex !important;
        /* SHOW ONLY when active */
    }

    /* Ensure overlay is below the drawer */
    .cart-drawer-overlay,
    .wishlist-drawer-overlay,
    .notification-drawer-overlay {
        z-index: 9999 !important;
    }

    /* 3. PRODUCT CARDS & GRID */
    .row.g-5 {
        --bs-gutter-x: 1rem !important;
        --bs-gutter-y: 1rem !important;
    }

    .furniture__product {
        margin-bottom: 15px;
    }

    .furniture__product .product-thumb {
        height: 200px !important;
    }

    /* 4. CART & CHECKOUT */
    .cart-area table,
    .cart-area thead,
    .cart-area tbody,
    .cart-area th,
    .cart-area td,
    .cart-area tr {
        display: block;
    }

    .cart-area thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .cart-area tr {
        border: 1px solid #eee;
        margin-bottom: 20px;
        padding: 15px;
        border-radius: 8px;
        background: #fff;
    }

    .cart-area td {
        border: none !important;
        position: relative;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f9f9f9 !important;
    }

    .cart-area td:last-child {
        border-bottom: none !important;
    }

    .checkout-area {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .footer__widget {
        margin-bottom: 30px !important;
    }
}