/*
     * ============================================================
     * MOBILE HEADER
     * ============================================================
     */
     .m-header-icon-btn {
    vertical-align: middle;
    }

    .m-header-icon-btn > img {
        position: static !important;
        transform: none !important;
    }
     
    .m-header-main {
        position: relative;
        min-height: 56px;
        background: #fff;
    }

    .m-header-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        column-gap: 6px;
        min-height: 44px;
        position: relative;
        width: 100%;
    }

    .m-header-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 0 0 auto;
        z-index: 2;
    }

    .m-header-actions--left {
        justify-content: flex-start;
    }

    .m-header-actions--right {
        justify-content: flex-end;
    }

    .header-logo-link {
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    .header-logo-link img {
        display: block;
        height: 52px;
        max-height: 58px;
        width: auto;
        max-width: 280px;
        object-fit: contain;
        transition: transform 0.2s ease;
    }
    .header-logo-link:hover img {
        transform: scale(1.02);
    }

    .m-header-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 auto;
        min-width: 0;
        padding: 0 4px;
        text-decoration: none;
    }

    .m-header-logo img {
        display: block;
        width: auto;
        height: 38px;
        max-height: 42px;
        max-width: 220px;
        object-fit: contain;
    }

    .m-header-icon-btn {
    width: 36px;
    height: 36px;
    padding: 0 !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #154880 !important;

    border: 0;
    border-radius: 6px;

    line-height: 1;

    flex: 0 0 36px;

    box-shadow: none !important;
}

.m-header-icon-btn img {
    width: 18px;
    height: 18px;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain;
    display: block;
}

    /*
     * ============================================================
     * HERO / MAIN SLIDER (FULL WIDTH / RESPONSIVE)
     * ============================================================
     */
    #swiper-main-slider {
        width: 100%;
        overflow: hidden;
        position: relative;
    }

    #swiper-main-slider .swiper-wrapper {
        width: 100%;
        height: auto;
    }

    #swiper-main-slider .swiper-slide {
        width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #swiper-main-slider .swiper-slide a {
        display: block;
        width: 100%;
        height: auto;
        line-height: 0;
    }

    #swiper-main-slider .swiper-slide img {
        display: block;
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: cover;
    }

    #swiper-main-slider .swiper-button-next,
    #swiper-main-slider .swiper-button-prev {
        color: #154880;
        background: rgba(255, 255, 255, 0.85);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.18);
        transition: all 0.25s ease;
    }

    #swiper-main-slider .swiper-button-next:after,
    #swiper-main-slider .swiper-button-prev:after {
        font-size: 18px;
        font-weight: 700;
    }

    #swiper-main-slider .swiper-button-next:hover,
    #swiper-main-slider .swiper-button-prev:hover {
        background: #ffffff;
        color: #154880;
        transform: scale(1.08);
    }

    @media (max-width: 767.98px) {
        #swiper-main-slider .swiper-button-next,
        #swiper-main-slider .swiper-button-prev {
            display: none;
        }
    }

    /*
     * ============================================================
     * MOBILE FIRST VIEWPORT
     * ============================================================
     */
    @media only screen and (max-width: 991px) {
        .banner-margin-top {
            margin-top: 0 !important;
        }

        #header-section {
            box-shadow: none !important;
        }
    }

    /*
     * ============================================================
     * CATEGORIES & MENU SIDEBAR DRAWER
     * ============================================================
     */
    #sidebar.site-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -380px !important;
        width: 340px !important;
        max-width: 86vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #ffffff !important;
        z-index: 99999 !important;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.25) !important;
        transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        margin: 0 !important;
    }

    #sidebar.site-sidebar.active {
        left: 0 !important;
    }

    .site-sidebar-head {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 16px !important;
        background: #154880 !important;
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
        flex-shrink: 0 !important;
    }

    .site-sidebar-tabs {
        display: flex !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .site-sidebar-tabs .nav-link {
        color: rgba(255, 255, 255, 0.85) !important;
        font-size: 13.5px !important;
        font-weight: 600 !important;
        padding: 6px 14px !important;
        border-radius: 20px !important;
        transition: all 0.2s ease !important;
        border: none !important;
        background: transparent !important;
        cursor: pointer !important;
        text-decoration: none !important;
    }

    .site-sidebar-tabs .nav-link.active,
    .site-sidebar-tabs .nav-link:hover {
        background: #ffffff !important;
        color: #154880 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    }

    .site-sidebar-close {
        background: transparent !important;
        border: none !important;
        color: #ffffff !important;
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        border-radius: 50% !important;
        transition: background 0.2s ease !important;
    }

    .site-sidebar-close:hover {
        background: rgba(255, 255, 255, 0.2) !important;
    }

    .site-sidebar-close svg {
        width: 20px !important;
        height: 20px !important;
        stroke: #ffffff !important;
    }

    .site-sidebar-body {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 6px 0 !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .site-sidebar-item {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        border-bottom: 1px solid #f1f5f9 !important;
        padding: 2px 14px !important;
        transition: background 0.15s ease !important;
    }

    .site-sidebar-item:hover {
        background: #f8fafc !important;
    }

    .site-sidebar-link {
        display: flex !important;
        align-items: center !important;
        flex: 1 !important;
        padding: 10px 0 !important;
        font-size: 13.5px !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        text-decoration: none !important;
        transition: color 0.15s ease !important;
    }

    .site-sidebar-link:hover {
        color: #154880 !important;
    }

    .site-sidebar-chevron {
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #64748b !important;
        cursor: pointer !important;
        border-radius: 6px !important;
        margin-left: 4px !important;
        text-decoration: none !important;
        transition: background 0.15s ease, color 0.15s ease !important;
    }

    .site-sidebar-chevron:hover {
        background: #e2e8f0 !important;
        color: #154880 !important;
    }

    .site-sidebar-chevron svg {
        width: 16px !important;
        height: 16px !important;
        stroke: currentColor !important;
        transition: transform 0.25s ease !important;
    }

    .site-sidebar-chevron[aria-expanded="true"] svg,
    .site-sidebar-chevron:not(.collapsed) svg {
        transform: rotate(180deg) !important;
        color: #154880 !important;
    }

    .site-sidebar-sub {
        background: #f8fafc !important;
        padding-left: 14px !important;
        border-bottom: 1px solid #e2e8f0 !important;
        list-style: none !important;
        margin: 0 !important;
    }

    .site-sidebar-sub .site-sidebar-item {
        border-bottom: 1px solid #eef2f6 !important;
    }

    .site-sidebar-sub .site-sidebar-link {
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #475569 !important;
        padding: 8px 0 !important;
    }

    .site-sidebar-sub .site-sidebar-sub {
        background: #ffffff !important;
        padding-left: 12px !important;
    }

    .site-mobile-menu.components li {
        border-bottom: 1px solid #f1f5f9 !important;
        padding: 0 14px !important;
    }

    .site-mobile-menu .site-sidebar-link {
        padding: 12px 0 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    .site-sidebar-foot {
        padding: 12px 16px !important;
        border-top: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
        display: flex !important;
        gap: 10px !important;
        flex-shrink: 0 !important;
    }

    .site-sidebar-btn {
        flex: 1 !important;
        text-align: center !important;
        padding: 9px 12px !important;
        border-radius: 8px !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    .site-sidebar-btn-outline {
        border: 1.5px solid #154880 !important;
        color: #154880 !important;
        background: #ffffff !important;
    }

    .site-sidebar-btn-outline:hover {
        background: #f0f7ff !important;
    }

    .site-sidebar-btn-primary {
        background: #154880 !important;
        color: #ffffff !important;
        border: 1.5px solid #154880 !important;
    }

    .site-sidebar-btn-primary:hover {
        background: #0f3661 !important;
        color: #ffffff !important;
    }

    .overlay-sidenav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(0, 0, 0, 0.55) !important;
        backdrop-filter: blur(2px) !important;
        -webkit-backdrop-filter: blur(2px) !important;
        z-index: 99990 !important;
        display: none !important;
        opacity: 0 !important;
        transition: opacity 0.25s ease !important;
        pointer-events: none !important;
    }

    .overlay-sidenav.active {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    body.stop_scrolling,
    html.stop_scrolling {
        overflow: hidden !important;
    }

    /* Product Sliders Fallback & Clean Layout (prevents vertical stacking under all conditions) */
    .swiper-container.swipper-cat-7,
    .swiper-container.swipper-cat-8 {
        overflow: hidden !important;
        position: relative !important;
        width: 100% !important;
    }
    .swiper-container.swipper-cat-7:not(.swiper-container-initialized) .swiper-wrapper,
    .swiper-container.swipper-cat-8:not(.swiper-container-initialized) .swiper-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 12px !important;
        padding-bottom: 8px !important;
    }
    .swiper-container.swipper-cat-7:not(.swiper-container-initialized) .swiper-slide,
    .swiper-container.swipper-cat-8:not(.swiper-container-initialized) .swiper-slide {
        flex: 0 0 calc(100% / 6 - 10px) !important;
        min-width: 185px !important;
        max-width: 250px !important;
    }
    @media (max-width: 991px) {
        .swiper-container.swipper-cat-7:not(.swiper-container-initialized) .swiper-slide,
        .swiper-container.swipper-cat-8:not(.swiper-container-initialized) .swiper-slide {
            flex: 0 0 calc(100% / 4 - 9px) !important;
            min-width: 160px !important;
        }
    }
    @media (max-width: 767px) {
        .swiper-container.swipper-cat-7:not(.swiper-container-initialized) .swiper-slide,
        .swiper-container.swipper-cat-8:not(.swiper-container-initialized) .swiper-slide {
            flex: 0 0 calc(100% / 2.25) !important;
            min-width: 140px !important;
        }
    }
    
    
    
    
    
    
        


    



                
        
        
            /* Suppress legacy clearance sticker artifact */
            .item-box .behaveImage,
            .item-box-card .behaveImage,
            .hs-sale-campaign-wrap .behaveImage {
                display: none !important;
            }

            /* Symmetrical top-left discount pill container */
            .item-box-badges-left,
            .item-box-card .item-box-badges-left,
            .hs-sale-campaign-wrap .item-box-badges-left {
                position: absolute !important;
                top: 6px !important;
                left: 6px !important;
                z-index: 7 !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: flex-start !important;
                gap: 3px !important;
                max-width: 44% !important;
                pointer-events: none !important;
            }

            /* Compact Sleek Crimson Discount Tag (Clean micro-badge) */
            .item-box-off-ribbon,
            .item-box-card .item-box-badges-left .item-box-off-ribbon {
                position: relative !important;
                top: auto !important;
                left: auto !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
                color: #ffffff !important;
                font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
                font-size: 10px !important;
                font-weight: 700 !important;
                letter-spacing: 0.2px !important;
                line-height: 1 !important;
                padding: 2.5px 6px !important;
                border-radius: 4px !important;
                box-shadow: 0 1.5px 4px rgba(220, 38, 38, 0.35) !important;
                clip-path: none !important;
                text-transform: uppercase !important;
                white-space: nowrap !important;
                transition: transform 0.2s ease, box-shadow 0.2s ease !important;
                pointer-events: none !important;
            }
            .item-box-off-ribbon:after {
                display: none !important;
            }

            /* Sleek Promotional Campaign Tag Badge (Compact, fits full text, no collision) */
            .hs-campaign-card-badge {
                position: absolute !important;
                top: 6px !important;
                right: 6px !important;
                z-index: 7 !important;
                display: inline-flex !important;
                align-items: center !important;
                gap: 3px !important;
                padding: 2.5px 6px !important;
                border-radius: 4px !important;
                font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
                font-size: 9.5px !important;
                font-weight: 700 !important;
                letter-spacing: 0.2px !important;
                text-transform: uppercase !important;
                line-height: 1.1 !important;
                box-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.2) !important;
                border: 1px solid rgba(255, 255, 255, 0.25) !important;
                backdrop-filter: blur(4px) !important;
                max-width: 62% !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                transition: transform 0.2s ease, box-shadow 0.2s ease !important;
                pointer-events: none !important;
            }
            .hs-campaign-card-badge i {
                font-size: 9px !important;
                line-height: 1 !important;
            }

            /* Smooth micro-interaction on hover */
            .item-box.item-box-card:hover .item-box-off-ribbon {
                transform: scale(1.05) !important;
                box-shadow: 0 2px 6px rgba(220, 38, 38, 0.45) !important;
            }
            .item-box.item-box-card:hover .hs-campaign-card-badge {
                transform: scale(1.04) !important;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28) !important;
            }
        

/* ==========================================================
   HAMZASTORE.PK – Professional Responsive Enhancements
   Target: All screen sizes | Mobile-first approach
   ========================================================== */

/* ── 1. HERO SLIDER: Tablet-optimised max-height ─────────── */
@media (min-width: 576px) and (max-width: 991.98px) {
    #swiper-main-slider .swiper-slide img,
    #swiper-main-slider .swiper-slide a img {
        max-height: 340px !important;
    }
}
@media (max-width: 575.98px) {
    #swiper-main-slider .swiper-slide img,
    #swiper-main-slider .swiper-slide a img {
        max-height: 210px !important;
        border-radius: 0 !important;
    }
    .swiper-container#swiper-main-slider {
        border-radius: 0;
    }
}

/* ── 2. PRODUCT CARD TITLE: 2-line clamp on mobile ──────── */
@media (max-width: 767.98px) {
    .item-box-card .box-title a.item-link {
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        min-height: 2.5em;
        text-overflow: unset !important;
    }
}

/* ── 3. PRODUCT CARD: Action Buttons (Add to Cart / Buy Now) ── */
.item-box-card .item-box-actions,
.hs-sale-campaign-wrap .item-box-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: auto !important;
    box-sizing: border-box !important;
}

.item-box-card .item-box-btn,
.hs-sale-campaign-wrap .item-box-actions .item-box-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-align: center !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-sizing: border-box !important;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.15s ease !important;
}

.item-box-card .item-box-btn-cart,
.hs-sale-campaign-wrap .item-box-actions .item-box-btn-cart {
    background: #154880 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
}

.item-box-card .item-box-btn-buy,
.hs-sale-campaign-wrap .item-box-actions .item-box-btn-buy {
    background: #c52032 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
}

.item-box-card .item-box-btn:hover,
.hs-sale-campaign-wrap .item-box-actions .item-box-btn:hover {
    opacity: 0.9 !important;
}

.item-box-card .item-box-btn:active,
.hs-sale-campaign-wrap .item-box-actions .item-box-btn:active {
    transform: scale(0.97) !important;
}

@media (max-width: 575.98px) {
    .item-box-card .item-box-actions,
    .hs-sale-campaign-wrap .item-box-actions {
        min-height: 30px !important;
        gap: 5px !important;
    }
    .item-box-card .item-box-btn,
    .hs-sale-campaign-wrap .item-box-actions .item-box-btn {
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        padding: 0 3px !important;
        border-radius: 6px !important;
        text-transform: none !important;
        letter-spacing: normal !important;
        line-height: 1.2 !important;
    }
    .item-box-card .item-box-btn-cart,
    .hs-sale-campaign-wrap .item-box-actions .item-box-btn-cart {
        border-radius: 6px !important;
    }
    .item-box-card .item-box-btn-buy,
    .hs-sale-campaign-wrap .item-box-actions .item-box-btn-buy {
        border-radius: 6px !important;
    }
}

/* ── 3B. HORIZONTAL SALE CAMPAIGN BANNER ─────────────────── */
.hs-sale-campaign-hero {
    position: relative;
    border-radius: 12px !important;
    overflow: hidden !important;
    padding: 14px 22px !important;
    min-height: 120px !important;
    max-height: 160px !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    background-size: cover !important;
    background-position: center right !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 767.98px) {
    .hs-sale-campaign-hero {
        padding: 8px 10px !important;
        min-height: 105px !important;
        max-height: 130px !important;
        border-radius: 10px !important;
    }
    .hs-sale-campaign-hero > div {
        min-width: 0 !important;
    }
    .hs-sale-campaign-hero .hs-camp-hero-title {
        font-size: 0.90rem !important;
        margin-bottom: 2px !important;
        max-width: 100% !important;
    }
}

/* ── 3C. HORIZONTAL SCROLLABLE CATEGORY FILTER TABS ──────── */
.hs-campaign-filter-bar {
    width: 100% !important;
    position: relative !important;
}
.hs-campaign-tabs-wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    gap: 6px !important;
    padding: 2px 1px 6px 1px !important;
    margin: 0 !important;
    width: 100% !important;
}
.hs-campaign-tabs-wrap::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.hs-camp-tab {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    border-radius: 50rem !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    padding: 6px 14px !important;
    margin: 0 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}
.hs-camp-tab:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
    transform: translateY(-1px) !important;
}
.hs-camp-tab:active {
    transform: scale(0.96) !important;
}
.hs-camp-tab.active {
    background: #064e3b !important;
    color: #ffffff !important;
    border-color: rgba(251, 191, 36, 0.6) !important;
    box-shadow: 0 2px 6px rgba(6, 78, 59, 0.25) !important;
}

/* ── 4. CATEGORY SECTION BANNERS: Mobile height ─────────── */
@media (max-width: 575.98px) {
    [id^="section-"] .d-block.overflow-hidden.rounded-3 {
        max-height: 130px !important;
    }
    [id^="section-"] .d-block.overflow-hidden.rounded-3 img {
        height: 130px !important;
        object-fit: cover !important;
    }
    [id^="section-"] .d-block.overflow-hidden.rounded-3 > div {
        padding: 0 12px !important;
    }
    [id^="section-"] .d-block.overflow-hidden.rounded-3 .h3 {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
    }
    [id^="section-"] .d-block.overflow-hidden.rounded-3 span.btn {
        font-size: 0.72rem !important;
        padding: 5px 12px !important;
    }
}

/* ── 5. PRODUCT SECTIONS: Compact mobile padding ─────────── */
@media (max-width: 767.98px) {
    section.py-4.py-md-5.border-bottom.bg-white[id^="section-"],
    section.py-4.py-md-5[id^="section-"] {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }
    [id^="section-"] .d-flex.align-items-center.justify-content-between.mb-3 {
        margin-bottom: 0.6rem !important;
    }
    [id^="section-"] .mb-4 {
        margin-bottom: 0.75rem !important;
    }
    [id^="section-"] .h4.mb-0.fw-bold.text-uppercase {
        font-size: 0.88rem !important;
        letter-spacing: 0.03em !important;
    }
}

/* ── 6. PRODUCT GRID GAP: Tighter on xs screens ─────────── */
@media (max-width: 575.98px) {
    .row.g-2.g-md-3 {
        --bs-gutter-x: 0.4rem;
        --bs-gutter-y: 0.4rem;
    }
}

/* ── 7. PROMO BANNERS SECTION: Compact mobile spacing ───── */
@media (max-width: 575.98px) {
    .home-promo-section {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

/* ── 8. CATEGORY ICONS: Better sizing on small screens ───── */
@media (max-width: 575.98px) {
    .hs-pcats-media {
        width: 58px !important;
        height: 58px !important;
    }
    .hs-pcats-media > span {
        width: 54px !important;
        height: 54px !important;
    }
    .hs-pcats-label {
        font-size: 9px !important;
    }
    .hs-pcats-section {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

/* ── 9. MOBILE HEADER: Layout & Track Button Styling ───── */
#hs-mobile-track-btn,
.hs-mobile-track-btn-style {
    white-space: nowrap !important;
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    border: 1px solid #154880 !important;
    color: #154880 !important;
    background: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
}
@media (max-width: 380px) {
    #hs-mobile-track-btn span,
    .hs-mobile-track-btn-style span {
        display: none !important;
    }
    #hs-mobile-track-btn,
    .hs-mobile-track-btn-style {
        width: 36px !important;
        padding: 0 !important;
    }
}
@media (max-width: 767.98px) {
    .m-header marquee,
    header#head marquee {
        font-size: 11px !important;
    }
}

/* ── 10. FOOTER: Mobile text alignment & spacing ─────────── */
@media (max-width: 575.98px) {
    .site-footer-bar .container-xxl > .row {
        text-align: center;
    }
    .site-footer-bar p {
        font-size: 11px;
        margin-bottom: 0;
    }
    .site-footer {
        padding-top: 20px;
    }
}

/* ── 11. GENERAL: Prevent horizontal overflow ────────────── */
main#main-content,
section,
.container-xxl,
.container-fluid {
    max-width: 100%;
}
img {
    max-width: 100%;
}

/* ── 12. SECTION HEADER BADGE: Responsive wrapping ──────── */
@media (max-width: 767.98px) {
    [id^="section-"] .d-flex.align-items-center.justify-content-between.flex-wrap {
        row-gap: 4px !important;
    }
}

/* ── 13. MOBILE HEADER: Default clean Category + Search + Cart View ─── */
@media (max-width: 767.98px) {
    #scroll-header {
        top: 0 !important;
        position: fixed !important;
        border-bottom: 1px solid #e6eaf0 !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
        background: #ffffff !important;
        z-index: 100000 !important;
    }
    #head {
        display: none !important;
    }
    body.home-page {
        padding-top: 56px !important;
    }
    .banner-margin-top {
        margin-top: 0 !important;
    }
    #show_search {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        z-index: 1050;
        background: #ffffff;
        align-items: center;
        padding: 0 10px;
        border-radius: 6px;
    }
}

/* ── 13b. FLOATING ADMIN BADGE ON MOBILE ───────────── */
@media (max-width: 991.98px) {
    #hs-quick-admin-badge {
        display: inline-flex !important;
        position: fixed !important;
        bottom: 20px !important;
        left: 14px !important;
        padding: 7px 14px !important;
        font-size: 11px !important;
        z-index: 999999 !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
    }
}

#scroll-admin-header-btn a {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    #scroll-header .container-xxl {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    #scroll-admin-header-btn a {
        padding: 3px 8px !important;
        font-size: 11px !important;
        height: 30px !important;
    }
    #scroll-admin-header-btn a span {
        display: inline !important;
    }
}

/* ── 14. WhatsApp Float Button: Mobile position ──────────── */
@media (max-width: 575.98px) {
    .whatsapp-group-float {
        right: 12px;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
}

/* ── 15. Item box: better rounding on mobile ─────────────── */
@media (max-width: 575.98px) {
    .item-box.item-box-card {
        border-radius: 10px !important;
    }
}

/* ── 16. HOME-BLOGS-SECTION: Mobile improvements ─────────── */
@media (max-width: 767.98px) {
    .home-blogs-section {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }
}

/* ── 17. TESTIMONIALS: Card improvements on mobile ──────── */
@media (max-width: 575.98px) {
    #HomePageClientTestimonials .container-xxl {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ── 18. FOOTER ICONS SECTION: Better spacing on mobile ──── */
@media (max-width: 767.98px) {
    #HomePageFooterIcons .container-xxl {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   19. UNIVERSAL MOBILE HORIZONTAL BANNER DESIGN SYSTEM (AUTO-ADJUSTING)
   Standardizes ALL present & future mobile banners into sleek, compact horizontal
   strips taking minimal vertical space (~100px - 140px), with side-by-side flex,
   contained children (min-width: 0), and auto-adjusting aspect ratios.
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    /* Main Hero Slider & Carousel Banners */
    #swiper-main-slider,
    .swiper-container#swiper-main-slider,
    .hero-slider-wrap {
        max-height: 145px !important;
        overflow: hidden !important;
        border-radius: 10px !important;
    }
    #swiper-main-slider .swiper-slide img,
    .swiper-container#swiper-main-slider img,
    .hero-slider-wrap img {
        height: 135px !important;
        max-height: 140px !important;
        width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 10px !important;
    }

    /* Sale Campaign Hero Banners */
    .hs-sale-campaign-hero {
        padding: 8px 10px !important;
        min-height: 105px !important;
        max-height: 130px !important;
        border-radius: 10px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .hs-sale-campaign-hero > div,
    .hs-sale-campaign-hero .hs-camp-hero-left,
    .hs-sale-campaign-hero .hs-camp-hero-right {
        min-width: 0 !important;
    }
    .hs-sale-campaign-hero .hs-camp-hero-title {
        font-size: 0.90rem !important;
        margin-bottom: 2px !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
    }

    /* Promo Banners & Section Strips */
    .home-promo-section .home-promo-banner,
    .home-promo-banner {
        max-height: 125px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }
    .home-promo-banner img {
        height: 105px !important;
        max-height: 120px !important;
        object-fit: cover !important;
    }

    /* Universal Banner Containers & Future Dynamic Banner Formats */
    [class*="campaign-hero"],
    [class*="promo-hero"],
    .horizontal-banner-mobile {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 100px !important;
        max-height: 135px !important;
        overflow: hidden !important;
        border-radius: 10px !important;
    }

    /* Enforce Horizontal Banner Image Rules Across Entire Storefront */
    .banner-img-mobile,
    [id*="banner"] img:not(.icon):not(.avatar):not(.logo),
    [class*="banner"] img:not(.icon):not(.avatar):not(.logo) {
        max-height: 140px !important;
        object-fit: cover !important;
    }
}

