/* ============================================================
   MOBILE RESPONSIVE — Header, Drawer, Product Details
   ============================================================ */

/* ── Mobile header bar ── */
@media (max-width: 991px) {

    .header__top-wrap { display: none !important; }

    .header__wrap { padding: 0 !important; }
    .header__main {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 16px !important;
        gap: 0 !important;
        flex-wrap: wrap !important;
    }

    .sio-mobile-logo {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        margin-right: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .sio-mobile-logo img {
        height: 36px !important;
        width: auto !important;
        display: block !important;
    }

    .sio-mobile-search {
        padding: 8px 16px 10px;
        background: #fff;
        border-top: 1px solid #f0f0f0;
    }
    .sio-mobile-search form {
        display: flex;
        border-radius: 8px;
        overflow: hidden;
        border: 1.5px solid #e5e7eb;
        background: #f9fafb;
    }
    .sio-mobile-search input[type="search"] {
        flex: 1;
        padding: 10px 14px;
        border: none;
        background: transparent;
        font-size: 14px;
        outline: none;
        color: #1e293b;
    }
    .sio-mobile-search button {
        padding: 0 16px;
        background: #f97316;
        border: none;
        color: #fff;
        font-size: 15px;
        cursor: pointer;
    }

    .sio-mobile-right {
        display: flex !important;
        align-items: center;
        gap: 4px;
        margin-left: auto;
    }
    .sio-mob-icon {
        position: relative;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #1e293b;
        font-size: 18px;
        cursor: pointer;
        border-radius: 8px;
        text-decoration: none;
    }
    .sio-mob-badge {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 16px;
        height: 16px;
        background: #f97316;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sio-hamburger { color: #1e293b; }
}

/* ── Mobile Drawer — simplest possible approach ── */
.sio-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 99999;
    transition: left 0.3s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}
.sio-drawer.open { left: 0; }

.sio-drawer__overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
}
.sio-drawer__overlay.open { display: block; }

.sio-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}
.sio-drawer__close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 16px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sio-drawer__account {
    padding: 14px 20px;
    background: linear-gradient(135deg, #f97316, #ea580c);
}
.sio-drawer__account a {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sio-drawer__nav {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sio-drawer__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
}
.sio-drawer__nav a i { width: 18px; text-align: center; color: #f97316; }

.sio-drawer__section-title {
    padding: 12px 20px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
}

.sio-drawer__cats { padding-bottom: 40px; }
.sio-drawer__cat-item { border-bottom: 1px solid #f3f4f6; }

.sio-drawer__cat-row {
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.sio-drawer__cat-link {
    flex: 1;
    display: block;
    padding: 14px 0;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
}
.sio-drawer__cat-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.sio-drawer__subcats { display: none; background: #f9fafb; border-top: 1px solid #f3f4f6; }
.sio-drawer__subcats.open { display: block; }

.sio-drawer__subcat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px 12px 36px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}
.sio-drawer__subcat i { font-size: 10px; color: #d1d5db; }

/* ── Product Details Mobile ── */
@media (max-width: 767px) {
    .woocommerce div.product { display: flex !important; flex-direction: column !important; }
    .woocommerce div.product div.images,
    .woocommerce div.product div.summary { width: 100% !important; float: none !important; margin: 0 0 20px !important; padding: 0 !important; }
    .woocommerce div.product .product_title { font-size: 20px !important; }
    .shopitout-price__current { font-size: 26px !important; }
    .woocommerce div.product form.cart .single_add_to_cart_button { width: 100% !important; padding: 14px !important; }
    .woocommerce div.product form.cart { display: flex !important; flex-direction: column !important; gap: 12px !important; }
    .woocommerce .woocommerce-tabs ul.tabs { overflow-x: auto !important; display: flex !important; white-space: nowrap !important; }
    .woocommerce .woocommerce-tabs ul.tabs li { display: inline-block !important; float: none !important; border: none !important; }
    .related.products ul.products { grid-template-columns: repeat(2, 1fr) !important; display: grid !important; gap: 12px !important; }
    .breadcrumb-area { padding: 8px 0 !important; }
    .prem-layout { grid-template-columns: 1fr !important; }
    .prem-sidebar { position: fixed !important; top: 0 !important; left: -300px !important; width: 280px !important; height: 100% !important; overflow-y: auto !important; z-index: 9999 !important; border-radius: 0 !important; transition: left 0.3s ease !important; }
    .prem-sidebar.open { left: 0 !important; }
    .prem-mobile-filter-btn { display: flex !important; }
    .prem-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .prem-card-title { font-size: 12px !important; min-height: 32px !important; }
    .prem-price-current { font-size: 14px !important; }
    .prem-add-cart { font-size: 11px !important; padding: 8px 6px !important; }
    .prem-card-body { padding: 8px 10px 10px !important; }
}

@media (max-width: 480px) {
    .prem-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
}

.slide-bar { display: none !important; }
