/* Site fixes — keep this file when installing new scripts */

/* Horizontal promo banners: full image on mobile */
.promo-banner,
.app-home .promo-banner {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    background: none !important;
    background-image: none !important;
}

.promo-banner-img,
.app-home .promo-banner-img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}

/* Fallback if old background-image markup still exists */
.promo-banner[style*="background-image"] {
    min-height: 0 !important;
    aspect-ratio: 16 / 5;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

@media (max-width: 900px) {
    .promo-banner[style*="background-image"] {
        aspect-ratio: 16 / 7;
    }
}

/* ========================================================
   Custom Home Page Section (হোমপেজ লে-আউট ডিজাইন-১)
   ======================================================== */
.chp-section {
    padding: 24px 0;
}

.chp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.chp-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    font-family: 'Hind Siliguri', sans-serif;
}

.chp-view-all {
    font-size: 14px;
    font-weight: 700;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.chp-view-all:hover {
    color: #15803d;
    text-decoration: underline;
}

.chp-content-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: stretch;
}

.chp-banner-col,
.chp-banner-col-half,
.chp-design-1-row .chp-banner-col {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chp-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.chp-banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.chp-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 14px;
}

.chp-products-col,
.chp-products-col-half,
.chp-design-1-row .chp-products-col {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
}

.chp-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    height: 100%;
}

.chp-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    height: 100%;
}

/* Custom Design 2: Full width 4x2 Grid (8 Products) */
.chp-grid-4x2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* Custom Design 3: Products Left + Banner Right */
.chp-products-col-3 {
    flex: 0 0 calc(58% - 8px);
    max-width: calc(58% - 8px);
}

.chp-banner-col-right {
    flex: 0 0 calc(42% - 8px);
    max-width: calc(42% - 8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chp-banner-col-half-right {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chp-grid-3x2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    height: 100%;
}

.chp-grid-3x2 .chp-thumb-link {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
}

.chp-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}

.chp-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.chp-thumb-link {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    overflow: hidden !important;
    position: relative !important;
    background: #f8fafc !important;
}

.chp-product-img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease;
}

.chp-product-card:hover .chp-product-img {
    transform: scale(1.04);
}

.chp-badge-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
    z-index: 2;
}

.chp-product-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.chp-product-name {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.chp-product-name a {
    color: #1e293b;
    text-decoration: none;
}

.chp-product-name a:hover {
    color: #2563eb;
}

.chp-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
}

.chp-price-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.chp-current-price {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.chp-old-price {
    font-size: 12px;
    color: #94a3b8;
}

.chp-action-bar {
    margin-top: auto;
}

/* Product action buttons matching normal products */
.chp-product-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    width: 100%;
}

.chp-product-card .btn-order,
.chp-product-card .chp-order-btn {
    flex: 1;
    background: var(--chp-order-bg, var(--primary, #ff6000)) !important;
    color: var(--chp-order-color, #ffffff) !important;
    border: none;
    border-radius: 5px;
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Hind Siliguri', 'Roboto', sans-serif;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, filter 0.2s ease, transform 0.15s ease;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chp-product-card .btn-order:hover,
.chp-product-card .chp-order-btn:hover {
    filter: brightness(0.92);
}

.chp-product-card .btn-cart,
.chp-product-card .chp-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 5px;
    border: 1px solid var(--chp-order-bg, var(--primary, #ff6000)) !important;
    color: var(--chp-order-bg, var(--primary, #ff6000)) !important;
    background: transparent !important;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.chp-product-card .btn-cart i,
.chp-product-card .chp-cart-btn i {
    color: inherit !important;
}

.chp-product-card .btn-cart:hover,
.chp-product-card .chp-cart-btn:hover {
    background: var(--chp-order-bg, var(--primary, #ff6000)) !important;
    color: #ffffff !important;
    border-color: var(--chp-order-bg, var(--primary, #ff6000)) !important;
}

.chp-product-card .btn-cart:hover i,
.chp-product-card .chp-cart-btn:hover i {
    color: #ffffff !important;
}

.chp-product-card .btn-order:active,
.chp-product-card .btn-cart:active {
    transform: scale(0.96);
}

/* Backward compatibility for chp-btn-group */
.chp-btn-group {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 5px;
    background: transparent;
    box-shadow: none;
}

.chp-order-text {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    line-height: 1.2;
    color: inherit;
}

@media (max-width: 991px) {
    .chp-banner-col,
    .chp-banner-col-half,
    .chp-design-1-row .chp-banner-col {
        flex: 0 0 100%;
        max-width: 100%;
        height: auto;
        min-height: auto;
        max-height: none;
        margin-bottom: 14px;
    }
    .chp-banner-link {
        height: auto;
        min-height: auto;
        max-height: none;
        background: transparent;
    }
    .chp-banner-img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: cover;
        object-position: center;
        border-radius: 12px;
    }
    .chp-products-col,
    .chp-products-col-half,
    .chp-design-1-row .chp-products-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Design 2 tablet: 2-column grid */
    .chp-grid-4x2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Design 3 tablet/mobile: Banner on top, 2-column products grid below */
    .chp-design-3-row {
        display: flex;
        flex-direction: column;
    }
    .chp-banner-col-right,
    .chp-banner-col-half-right {
        order: -1;
        flex: 0 0 100%;
        max-width: 100%;
        height: auto;
        min-height: auto;
        max-height: none;
        margin-bottom: 14px;
    }
    .chp-products-col-3,
    .chp-design-3-row .chp-products-col-half {
        order: 1;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .chp-grid-3x2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 575px) {
    .chp-section {
        padding: 16px 0;
    }
    .chp-title {
        font-size: 18px;
    }
    .chp-view-all {
        font-size: 13px;
    }
    .chp-thumb-link,
    .chp-grid-3x2 .chp-thumb-link,
    .chp-grid-4x2 .chp-thumb-link {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
    }
    .chp-product-grid,
    .chp-grid-4x2,
    .chp-grid-3x2 {
        gap: 10px;
    }
    .chp-product-info {
        padding: 8px;
    }
    .chp-product-name {
        font-size: 12px;
        height: 34px;
    }
    .chp-current-price {
        font-size: 14px;
    }
    .chp-product-actions {
        gap: 6px;
    }
    .chp-product-card .btn-order,
    .chp-product-card .chp-order-btn {
        font-size: 12px;
        padding: 7px 2px;
    }
    .chp-product-card .btn-cart,
    .chp-product-card .chp-cart-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* ==========================================================================
   Custom Home Page: Design 4 (Product Carousel / Slider)
   - Desktop: 4 Products in a Row with Circular Prev/Next Side Arrows
   - Mobile: 2x2 Grid (4 Products visible) with Bottom-Centered Circular Arrows
   ========================================================================== */
.chp-design-4 {
    overflow: hidden;
}

.chp-slider-container {
    position: relative;
    width: 100%;
}

.chp-slider-wrapper {
    position: relative;
    width: 100%;
}

.chp-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.09);
    color: #334155;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    outline: none;
    user-select: none;
    z-index: 10;
}

.chp-nav-btn:hover:not(:disabled) {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    transform: scale(1.08);
}

.chp-nav-btn:active:not(:disabled) {
    transform: scale(0.94);
}

.chp-nav-btn:disabled,
.chp-nav-btn.disabled {
    opacity: 0.32;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.chp-design-4 .chp-slider-item .chp-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* --- Desktop & Tablet (min-width: 768px) --- */
@media (min-width: 768px) {
    .chp-design-4 .chp-slider-track {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 6px 2px;
        width: 100%;
    }

    .chp-design-4 .chp-slider-track::-webkit-scrollbar {
        display: none;
    }

    .chp-design-4 .chp-slider-item {
        flex: 0 0 calc((100% - 3 * 16px) / 4);
        min-width: calc((100% - 3 * 16px) / 4);
        max-width: calc((100% - 3 * 16px) / 4);
        scroll-snap-align: start;
        box-sizing: border-box;
    }

    .chp-design-4 .chp-thumb-link {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
    }

    .chp-desktop-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .chp-desktop-nav.chp-nav-prev {
        left: -20px;
    }

    .chp-desktop-nav.chp-nav-next {
        right: -20px;
    }

    .chp-mobile-nav {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .chp-design-4 .chp-slider-track {
        gap: 12px;
    }

    .chp-design-4 .chp-slider-item {
        flex: 0 0 calc((100% - 3 * 12px) / 4);
        min-width: calc((100% - 3 * 12px) / 4);
        max-width: calc((100% - 3 * 12px) / 4);
    }

    .chp-design-4 .chp-thumb-link {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
    }

    .chp-desktop-nav.chp-nav-prev {
        left: -12px;
    }

    .chp-desktop-nav.chp-nav-next {
        right: -12px;
    }
}

/* --- Mobile View (max-width: 767px) --- */
@media (max-width: 767px) {
    .chp-design-4 .chp-desktop-nav {
        display: none !important;
    }

    .chp-design-4 .chp-slider-track {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 10px) / 2);
        gap: 10px;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 4px 2px;
    }

    .chp-design-4 .chp-slider-track::-webkit-scrollbar {
        display: none;
    }

    .chp-design-4 .chp-slider-item {
        scroll-snap-align: start;
        width: 100%;
        height: 100%;
    }

    .chp-design-4 .chp-thumb-link {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
    }

    .chp-design-4 .chp-mobile-nav {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 16px;
    }

    .chp-design-4 .chp-mobile-nav .chp-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
        border-color: #cbd5e1;
    }
}

@media (max-width: 575px) {
    .chp-design-4 .chp-thumb-link {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
    }
}

/* ========================================================
   COMBO SINGLE PRODUCT GALLERY (DESKTOP & MOBILE RESPONSIVE)
   ======================================================== */

/* --- Common Base Styles for Combo Gallery Elements --- */
.product-gallery--combo .combo-thumb-card {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    position: relative !important;
    padding: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s !important;
    outline: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    user-select: none !important;
}

.product-gallery--combo .combo-thumb-card:hover:not(.active) {
    border-color: #94a3b8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
}

.product-gallery--combo .combo-thumb-card.active {
    border-color: var(--primary, #ff6000) !important;
    box-shadow: 0 0 0 1px var(--primary, #ff6000), 0 3px 10px rgba(255, 96, 0, 0.18) !important;
}

.product-gallery--combo .combo-thumb-card img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: auto !important;
    border-radius: 4px !important;
}

.product-gallery--combo .combo-thumb-check {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.6) !important;
    width: 26px !important;
    height: 26px !important;
    background: var(--primary, #ff6000) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    z-index: 5 !important;
}

.product-gallery--combo .combo-thumb-card.active .combo-thumb-check {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

.product-gallery--combo .gallery-main img.gallery-media {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    padding: 16px !important;
    display: block !important;
    background: #ffffff !important;
    transition: opacity 0.2s ease !important;
    box-sizing: border-box !important;
}

.product-gallery--combo .combo-nav-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    z-index: 6 !important;
    outline: none !important;
}

.product-gallery--combo .combo-nav-arrow:hover {
    background: #ffffff !important;
    color: var(--primary, #ff6000) !important;
    border-color: var(--primary, #ff6000) !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 4px 14px rgba(255, 96, 0, 0.25) !important;
}

/* ====================================================
   DESKTOP ONLY (>= 768px): ZERO-GAP ABSOLUTE-LOCK
==================================================== */
@media (min-width: 768px) {
    .product-gallery.product-gallery--combo {
        position: relative !important;
        width: 100% !important;
        padding-left: 90px !important; /* 76px thumbs + 14px gap */
        box-sizing: border-box !important;
        margin: 0 !important;
        display: block !important;
    }

    .product-gallery--combo .combo-thumbs-wrap,
    .combo-thumbs-wrap {
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: auto !important;
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
        height: 100% !important;
        max-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        z-index: 2 !important;
    }

    .product-gallery--combo .combo-thumbs-nav,
    .combo-thumbs-nav {
        display: flex !important;
        width: 76px !important;
        height: 24px !important;
        min-height: 24px !important;
        border-radius: 6px !important;
        border: 1px solid #cbd5e1 !important;
        background: #f8fafc !important;
        color: #334155 !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
        outline: none !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        user-select: none !important;
        box-sizing: border-box !important;
    }

    .product-gallery--combo .combo-thumbs-nav--up,
    .combo-thumbs-nav--up {
        margin-bottom: 5px !important;
    }

    .product-gallery--combo .combo-thumbs-nav--down,
    .combo-thumbs-nav--down {
        margin-top: 5px !important;
    }

    .product-gallery--combo .combo-thumbs-nav:hover:not(:disabled),
    .combo-thumbs-nav:hover:not(:disabled) {
        border-color: var(--primary, #ff6000) !important;
        color: #ffffff !important;
        background: var(--primary, #ff6000) !important;
        box-shadow: 0 2px 8px rgba(255, 96, 0, 0.28) !important;
        transform: translateY(-1px) !important;
    }

    .product-gallery--combo .combo-thumbs-nav:active:not(:disabled),
    .combo-thumbs-nav:active:not(:disabled) {
        transform: scale(0.96) !important;
    }

    .product-gallery--combo .combo-thumbs-nav:disabled,
    .combo-thumbs-nav:disabled {
        opacity: 0.25 !important;
        cursor: not-allowed !important;
        pointer-events: none !important;
        background: #f1f5f9 !important;
        color: #94a3b8 !important;
        border-color: #e2e8f0 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .product-gallery--combo .combo-thumbs-scroll,
    .combo-thumbs-scroll {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        height: 100% !important;
        max-height: none !important;
        width: 76px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 1px 0 !important;
        box-sizing: border-box !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        scroll-behavior: smooth !important;
    }

    .product-gallery--combo .combo-thumbs-scroll::-webkit-scrollbar,
    .combo-thumbs-scroll::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .product-gallery--combo .combo-thumb-card,
    .combo-thumb-card {
        width: 76px !important;
        height: 76px !important;
        min-width: 76px !important;
        min-height: 76px !important;
        max-width: 76px !important;
        max-height: 76px !important;
        flex: 0 0 76px !important;
        padding: 4px !important;
    }

    .product-gallery--combo .gallery-main,
    .product-gallery.product-gallery--combo .gallery-main {
        width: 100% !important;
        aspect-ratio: 1 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        position: relative !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ====================================================
   MOBILE ONLY (< 768px): CLEAN VERTICAL STACK & SWIPE
==================================================== */
@media (max-width: 767.98px) {
    .product-gallery.product-gallery--combo {
        position: static !important;
        padding: 0 !important;
        padding-left: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .product-gallery.product-gallery--combo .gallery-main,
    .product-gallery--combo .gallery-main {
        order: 1 !important;
        width: 100% !important;
        aspect-ratio: 1 !important;
        border-radius: 10px !important;
        position: relative !important;
        overflow: hidden !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .product-gallery--combo .combo-thumbs-wrap,
    .combo-thumbs-wrap {
        order: 2 !important;
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        display: block !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        z-index: 1 !important;
    }

    .product-gallery--combo .combo-thumbs-nav,
    .combo-thumbs-nav {
        display: none !important;
    }

    .product-gallery--combo .combo-thumbs-scroll,
    .combo-thumbs-scroll {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        height: auto !important;
        max-height: none !important;
        width: 100% !important;
        gap: 10px !important;
        padding: 4px 2px 8px !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        box-sizing: border-box !important;
    }

    .product-gallery--combo .combo-thumbs-scroll::-webkit-scrollbar,
    .combo-thumbs-scroll::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .product-gallery--combo .combo-thumb-card,
    .combo-thumb-card {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        min-height: 70px !important;
        max-width: 70px !important;
        max-height: 70px !important;
        flex: 0 0 70px !important;
        padding: 4px !important;
        scroll-snap-align: start !important;
    }

    .product-gallery--combo .combo-thumb-check,
    .combo-thumb-check {
        width: 22px !important;
        height: 22px !important;
        font-size: 10px !important;
    }

    .product-gallery--combo .combo-nav-arrow,
    .combo-nav-arrow {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
}

/* ========================================================
   CUSTOMER LOGIN GIRL IMAGE BANNER
   ======================================================== */
.auth-girl-banner {
    text-align: center;
    margin: -6px auto 16px auto;
    overflow: hidden;
}

.auth-girl-img {
    max-height: 160px;
    width: auto;
    max-width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: inline-block;
    transition: transform 0.3s ease;
}

.auth-girl-img:hover {
    transform: scale(1.02);
}

@media (max-width: 575px) {
    .auth-girl-img {
        max-height: 130px;
        border-radius: 10px;
    }
}

/* ========================================================
   STICKY HEADER & NAVIGATION FIXES
   ======================================================== */
:root {
    --notice-height: 0px;
}

body.app-home {
    --notice-height: 0px;
}

.site-header,
.app-home .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 250 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    margin-top: 0 !important;
}

.app-home.menu-open .site-header {
    z-index: 360 !important;
}

.site-header.is-scrolled,
.app-home .site-header.is-scrolled {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12) !important;
}

/* Notice ticker: scrolls naturally out of view, header stays pinned at top 0 */
.notice-ticker {
    position: relative !important;
    top: auto !important;
    z-index: 100 !important;
}

/* Category chips on mobile: scroll with page instead of overlapping header search bar */
.mobile-category-scroll,
.app-home .mobile-category-scroll {
    position: relative !important;
    top: auto !important;
    z-index: 50 !important;
}

/* ========================================================
   DESKTOP HERO SIDEBAR CATEGORIES & SLIDER LAYOUT
   ======================================================== */
.hero-category-sidebar {
    display: none !important; /* Always hidden on mobile & tablet */
}

.hero-slider-wrap {
    width: 100%;
}

@media (min-width: 992px) {
    .hero-row {
        display: flex;
        gap: 16px;
        align-items: stretch;
    }

    .hero-category-sidebar {
        display: flex !important;
        flex-direction: column;
        flex: 0 0 250px;
        width: 250px;
        max-width: 250px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
        position: relative;
        z-index: 60;
        box-sizing: border-box;
        overflow: visible;
    }

    .hero-cat-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        background: #ffffff;
        color: #0f172a;
        font-weight: 700;
        font-size: 14px;
        font-family: 'Hind Siliguri', sans-serif;
        border-bottom: 1.5px solid #f1f5f9;
        border-radius: 8px 8px 0 0;
    }

    .hero-cat-header i {
        color: var(--primary, #df2d4d);
        font-size: 15px;
    }

    .hero-cat-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        flex: 1;
        position: relative;
    }

    .hero-cat-item {
        position: relative;
        flex: 1;
        display: flex;
    }

    .hero-cat-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 8px 16px;
        color: #334155;
        text-decoration: none;
        transition: all 0.2s ease;
        font-size: 13.5px;
        font-weight: 500;
        font-family: 'Hind Siliguri', sans-serif;
        border-bottom: 1px solid #f8fafc;
    }

    .hero-cat-item:last-child .hero-cat-link {
        border-bottom: none;
    }

    .hero-cat-info {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        flex: 1;
    }

    .hero-cat-icon {
        width: 22px;
        height: 22px;
        object-fit: contain;
        flex-shrink: 0;
        display: inline-block;
        border-radius: 4px;
    }

    .hero-cat-icon-fallback {
        width: 22px;
        color: #94a3b8;
        font-size: 13px;
        text-align: center;
        flex-shrink: 0;
    }

    .hero-cat-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #1e293b;
        font-weight: 500;
    }

    .hero-cat-arrow {
        font-size: 11px;
        color: #94a3b8;
        transition: transform 0.2s ease, color 0.2s ease;
        flex-shrink: 0;
        margin-left: 6px;
    }

    .hero-cat-link:hover,
    .hero-cat-item:hover > .hero-cat-link {
        background: #f8fafc;
        color: var(--primary, #df2d4d);
    }

    .hero-cat-link:hover .hero-cat-name,
    .hero-cat-item:hover > .hero-cat-link .hero-cat-name {
        color: var(--primary, #df2d4d);
    }

    .hero-cat-link:hover .hero-cat-arrow,
    .hero-cat-item:hover > .hero-cat-link .hero-cat-arrow {
        color: var(--primary, #df2d4d);
        transform: translateX(2px);
    }

    /* Flyout Dropdown for Subcategories */
    .hero-cat-flyout {
        position: absolute;
        left: 100%;
        top: 0;
        min-width: 260px;
        max-width: 320px;
        min-height: 100%;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 0 8px 8px 0;
        box-shadow: 4px 6px 20px rgba(0, 0, 0, 0.08);
        padding: 14px 16px;
        display: none;
        z-index: 100;
        box-sizing: border-box;
    }

    .hero-cat-item:hover .hero-cat-flyout {
        display: block;
    }

    .hero-flyout-inner {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .hero-flyout-group {
        padding-bottom: 10px;
        border-bottom: 1px solid #f1f5f9;
    }

    .hero-flyout-group:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .hero-flyout-sub-title {
        font-size: 13px;
        font-weight: 600;
        color: #0f172a;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 6px;
        transition: color 0.2s;
    }

    .hero-flyout-sub-title:hover {
        color: var(--primary, #df2d4d);
    }

    .hero-flyout-children {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding-left: 10px;
    }

    .hero-flyout-child {
        font-size: 12px;
        color: #64748b;
        text-decoration: none;
        transition: color 0.2s;
    }

    .hero-flyout-child:hover {
        color: var(--primary, #df2d4d);
    }

    .hero-slider-wrap {
        flex: 1;
        min-width: 0;
    }

    .hero-slider-wrap .hero-slider {
        border-radius: 8px;
    }

    .hero-slider-wrap .hero-img {
        border-radius: 8px;
    }
}

