/* Site fixes — survives style.css overwrite when master keeps this link */

/* ========== Global font: Hind Siliguri ========== */
:root {
    --font-family: 'Hind Siliguri', sans-serif;
    --notice-height: 0px;
}

/* Sticky header flush under ticker (or top when no ticker) */
body:has(.notice-ticker):not(.notice-closed) {
    --notice-height: 38px;
}

.site-header {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    top: var(--notice-height) !important;
}

.site-header .header-inner {
    margin-bottom: 0 !important;
}

.header-category-bar {
    margin-top: 0 !important;
    border-top: none !important;
}

html,
body,
button,
input,
select,
textarea,
.btn,
.form-control,
.site-header,
.site-footer,
.product-card,
.product-title,
.section-head,
.notice-ticker,
.notice-badge,
.menu-toggle,
.mobile-bottom-nav {
    font-family: 'Hind Siliguri', sans-serif !important;
}

/* ========== Mobile: search bar in the top header row ========== */
@media (max-width: 900px) {
    .app-home .header-inner {
        display: grid !important;
        grid-template-columns: 38px minmax(84px, 108px) minmax(0, 1fr) 40px !important;
        grid-template-areas: "menu logo search actions" !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 8px 10px !important;
    }

    .app-home .menu-toggle {
        grid-area: menu;
    }

    .app-home .logo {
        grid-area: logo;
        justify-self: center;
        min-width: 0;
        line-height: 0;
    }

    .app-home .logo img {
        height: 34px !important;
        width: auto !important;
        max-width: 108px !important;
        object-fit: contain;
    }

    .app-home .mobile-search,
    .app-home .header-search {
        grid-area: search !important;
        width: 100%;
        min-width: 0 !important;
        height: 38px !important;
    }

    .app-home .mobile-search input,
    .app-home .header-search input {
        font-size: 13px !important;
    }

    .app-home .header-actions {
        grid-area: actions;
    }
}

@media (max-width: 380px) {
    .app-home .header-inner {
        grid-template-columns: 36px minmax(72px, 88px) minmax(0, 1fr) 38px !important;
        gap: 4px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .app-home .logo img {
        max-width: 88px !important;
        height: 30px !important;
    }
}

/* ========== Mobile bottom nav: Home centred, 2 buttons each side ========== */
@media (max-width: 900px) {
    .app-home .mobile-bottom-nav {
        align-items: flex-end !important;
        overflow: visible !important;
    }

    .app-home .mobile-bottom-nav a {
        flex: 1 1 0;
        min-width: 0;
    }

    .app-home .mobile-bottom-nav a.nav-home {
        color: var(--primary) !important;
        font-weight: 700;
    }

    .app-home .mobile-bottom-nav a.nav-home i {
        width: 54px !important;
        height: 54px !important;
        margin-top: -28px;
        border-radius: 50% !important;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
        color: #fff !important;
        font-size: 22px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: 4px solid #fff;
        box-shadow: 0 8px 20px rgba(var(--primary-rgb, 223, 45, 77), 0.4) !important;
    }
}

/* ========== Product card price: left side, old price cut ========== */
.product-card .product-price {
    display: flex !important;
    align-items: baseline;
    justify-content: flex-start !important;
    gap: 6px;
    width: 100%;
    text-align: left !important;
}

.product-card .product-price del {
    text-decoration: line-through !important;
    text-decoration-thickness: 1.5px !important;
    text-decoration-color: #999 !important;
    color: #999 !important;
}

/* "প্রাইস:" label before the price */
.product-card .product-price::before {
    content: "প্রাইস:";
    color: #333;
    font-weight: 600;
}

.product-detail-price::before {
    content: "প্রাইস:";
    color: #333;
    font-weight: 600;
    margin-right: 6px;
}

/* ========== Product card: hide sold/stock progress bar ========== */
.flash-progress,
.flash-progress-bar,
.flash-sold-text {
    display: none !important;
}

/* Horizontal promo banners: show full image on mobile */
.promo-banner,
.app-home .promo-banner {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !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;
}

/* ========== Top categories: circular image + name below ========== */
.category-menu-viewport {
    --cat-card-basis: 120px;
}

.category-menu-track {
    align-items: flex-start !important;
}

.category-menu-card {
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

.category-menu-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: none !important;
}

.category-menu-banner {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #f3f4f6;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.category-menu-banner img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.category-menu-label {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 8px;
    padding: 0 2px !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: center !important;
}

.category-menu-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    line-height: 1.35 !important;
}

.category-menu-count {
    display: none !important;
}

/* Category panel uses admin Primary Color */
.top-categories-panel {
    background: linear-gradient(135deg, var(--primary-dark, #4a148c) 0%, var(--primary, #6a1b9a) 55%, var(--primary-light, #7b1fa2) 100%) !important;
    box-shadow: 0 10px 32px rgba(var(--primary-rgb, 74, 20, 140), 0.28) !important;
}

@media (max-width: 900px) {
    /* 3 circular category cards visible on mobile */
    .category-menu-viewport {
        --cat-card-basis: calc((100% - 20px) / 3) !important;
        overflow: hidden !important;
    }

    .category-menu-track {
        gap: 10px !important;
    }

    .category-menu-card {
        flex: 0 0 var(--cat-card-basis) !important;
        width: var(--cat-card-basis) !important;
        max-width: var(--cat-card-basis) !important;
    }

    .category-menu-name {
        font-size: 12px !important;
    }
}

@media (max-width: 520px) {
    .category-menu-viewport {
        --cat-card-basis: calc((100% - 16px) / 3) !important;
    }

    .category-menu-track {
        gap: 8px !important;
    }

    .category-menu-name {
        font-size: 11px !important;
    }
}

/* ========== Hot Deal: no countdown, title + view-all one line ========== */
.hot-deal-heading-text p {
    display: none !important;
}

.hot-deal-head .deal-countdown,
.hot-deal-head .hot-deal-timer {
    display: none !important;
}

.hot-deal-section {
    padding: 14px 0 8px !important;
    margin: 0 !important;
}

.hot-deal-head {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 0 12px !important;
    margin-bottom: 14px !important;
    box-shadow: none !important;
}

.hot-deal-heading {
    margin-right: 0 !important;
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.hot-deal-heading-text h2 {
    color: #222 !important;
}

.hot-deal-flame {
    background: linear-gradient(135deg, #ff7043, #e53935) !important;
    color: #fff !important;
}

.hot-deal-viewall {
    margin-left: auto !important;
    flex: 0 0 auto !important;
    background: var(--primary, #df2d4d) !important;
    color: #fff !important;
}

.hot-deal-viewall:hover {
    color: #fff !important;
    background: var(--primary-dark, #c2185b) !important;
}

@media (max-width: 900px) {
    .hot-deal-head {
        flex-wrap: nowrap !important;
    }

    .hot-deal-heading {
        width: auto !important;
        margin-right: 0 !important;
    }

    .hot-deal-flame {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
        flex-shrink: 0;
    }

    .hot-deal-heading-text h2 {
        font-size: 16px !important;
        white-space: nowrap;
    }

    .hot-deal-viewall {
        padding: 7px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
}

/* ========== Flash Sale: plain section (no pink/red panel background) ========== */
.flash-sale-section {
    padding: 14px 0 8px !important;
    margin: 0 !important;
}

.flash-sale-panel {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.flash-sale-head {
    padding-bottom: 12px !important;
}

.flash-sale-head::after {
    display: none !important;
}

.flash-sale-heading-text h2 {
    color: #222 !important;
}

.flash-sale-viewall {
    background: var(--primary, #df2d4d) !important;
    color: #fff !important;
}

.flash-sale-viewall:hover {
    color: #fff !important;
    background: var(--primary-dark, #c2185b) !important;
}

.flash-sale-heading-text p {
    display: none !important;
}

.flash-sale-head .flash-sale-timer {
    display: none !important;
}

.flash-sale-head {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
}

.flash-sale-heading {
    margin-right: 0 !important;
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.flash-sale-viewall {
    margin-left: auto !important;
    flex: 0 0 auto !important;
}

@media (max-width: 900px) {
    .flash-sale-head {
        flex-wrap: nowrap !important;
    }

    .flash-sale-heading {
        width: auto !important;
        margin-right: 0 !important;
    }

    .flash-sale-bolt {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
        flex-shrink: 0;
    }

    .flash-sale-heading-text h2 {
        font-size: 16px !important;
        white-space: nowrap;
    }

    .flash-sale-viewall {
        padding: 7px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
}
