/* ======================================================================
   Header — Cohort 10 (Kiddies Bazar — Bangladeshi baby/kids marketplace)
   Signature: white top bar + ORANGE secondary nav band + mobile bottom fixed nav.
   fixed nav with FLOATING CIRCULAR HOME button center.
   ====================================================================== */

/* Whitespace BOM text node in <body> creates a 21px anonymous line-box — kill it here */

.header-10-main {
    background: #fff;
    border-bottom: none;
}
.header-10-sticky.is-scrolled {
    box-shadow: 0 4px 8px rgba(242, 101, 34, 0.05);
}

/* ---------- 1. Top bar (white) ---------- */
.header-10-top { background: #fff; }
.header-10-top-row {
    grid-template-columns: auto 1fr auto;
    column-gap: 16px;
    align-items: center;
}
@media (min-width: 992px) {
    .header-10-top-row {
        grid-template-columns: auto 1fr auto;
        column-gap: 32px;
    }
}
@media (max-width: 991.98px) {
    .header-10-top {
        background: var(--bs-primary);
        padding: 0.6rem 0 !important;
    }
    .header-10-top .container { padding: 0 0.85rem; max-width: 100%; }
    .header-10-top-row {
        grid-template-columns: auto 1fr auto !important;
        gap: 0.5rem;
    }
    .header-10-burger { color: #fff; }
    .header-10-logo {
        justify-content: center;
        order: 0;
    }
    .header-10-logo-img {
        max-height: 36px;
        width: auto;
        background: #fff;
        padding: 2px;
    }
    /* Cart icon on mobile — semi-transparent box matching search icon */
    .header-10-top-icon {
        background: rgba(255, 255, 255, 0.15) !important;
        border-radius: 0.35rem;
        padding: 6px;
        width: 38px;
        height: 38px;
        color: #fff;
    }
    .header-10-top-icon:hover { background: rgba(255,255,255,0.28) !important; color: #fff; }
    .header-10-top-icon .header-10-action-count {
        top: 0px; right: 0px;
        min-width: 16px; height: 16px;
        font-size: 0.60rem;
    }

    /* Hide search input row on mobile — open via icon */
    .header-10-search {
        display: none !important;
    }
    body.is-mobile-search-open .header-10-search {
        display: block !important;
        position: fixed !important;
        top: 0 !important; left: 0 !important; right: 0 !important;
        z-index: 1095 !important;
        background: var(--bs-primary) !important;
        padding: 0.65rem 0.85rem !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    }
    /* When search overlay is open — hide the non-search top bar content */
    body.is-mobile-search-open .header-10-burger,
    body.is-mobile-search-open .header-10-logo,
    body.is-mobile-search-open .header-10-actions { visibility: hidden; }
    body.is-mobile-search-open .header-10-top { background: transparent !important; }
    .header-10-actions {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }
    .header-10-mobile-icon {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.15);
        border: none;
        border-radius: 0.35rem;
        color: #fff;
        text-decoration: none;
    }
    .header-10-mobile-icon:hover { background: rgba(255, 255, 255, 0.25); color: #fff; }

    /* Hide orange nav category band on mobile — menu accessible via hamburger drawer */
    .header-10-nav > .container { display: none !important; }

    /* Force cart visible on mobile (old Blade may still carry d-none) */
    .site-header-action-cart {
        display: inline-flex !important;
    }
}

.header-10-burger {
    width: 38px; height: 38px;
    background: transparent;
    border: none;
    color: #fff;
    border-radius: 0.25rem;
}

.header-10-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.header-10-logo-img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
}

/* ---------- Search ---------- */
.header-10-search { width: 100%; }
.header-10-search-field {
    display: flex;
    border: none;
    background: transparent;
    gap: 6px;
}
.header-10-search-input {
    flex: 1 1 auto;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
    color: var(--bs-body-color);
    min-width: 0;
}
.header-10-search-input:focus {
    outline: none;
    box-shadow: none;
    border-color: #aaa;
}
.header-10-search-input::placeholder {
    color: var(--bs-secondary-color);
}
.header-10-search-submit {
    background: var(--bs-primary);
    border: none;
    border-radius: 3px;
    color: #fff;
    padding: 0 1.1rem;
    cursor: pointer;
    transition: background 0.10s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 90px;
    font-size: 0.88rem;
    font-weight: 500;
}
.header-10-search-submit:hover {
    background: var(--bs-primary-dark, #D95A1A);
    color: #fff;
}

.header-10-search-dropdown {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    z-index: 1080;
}
.header-10-search-list { max-height: 60vh; overflow-y: auto; }
.header-10-search-list a {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--bs-border-color);
    text-decoration: none;
    color: var(--bs-body-color);
}
.header-10-search-list a:hover { background: var(--bs-light-primary); }
.header-10-search-list img {
    width: 48px; height: 48px;
    object-fit: cover;
    border-radius: 0.25rem;
    border: 1px solid var(--bs-border-color);
    flex: 0 0 48px;
}
.header-10-search-name { font-weight: 500; font-size: 0.92rem; }
.header-10-search-price {
    color: var(--bs-primary);
    font-weight: 700;
    font-size: 0.88rem;
}
.header-10-search-price-old {
    color: var(--bs-danger);
    text-decoration: line-through;
    font-weight: 400;
    font-size: 0.82rem;
}
.header-10-search-empty {
    display: block;
    padding: 24px 16px;
    text-align: center;
    color: var(--bs-secondary-color);
}
.header-10-search-more {
    color: var(--bs-primary);
    font-weight: 600;
    background: var(--bs-light-primary);
}
.header-10-search-more:hover { color: var(--bs-secondary); }

/* ---------- Top-bar actions (desktop icons + mobile icons) ---------- */
.header-10-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-10-mobile-icon {
    width: 38px; height: 38px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: none;
    border-radius: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.header-10-mobile-icon:hover {
    background: rgba(255, 255, 255, 0.30);
    color: #fff;
}

/* Desktop top-bar cart — orange box + white icon (matches reference col-minichart design) */
.header-10-top-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    color: #fff;
    text-decoration: none;
    position: relative;
    border-radius: 5px;
    padding: 11px;
    width: 42px;
    height: 42px;
    transition: background 0.12s ease;
}
.header-10-top-icon:hover { background: var(--bs-primary-dark, #D95A1A); color: #fff; }
/* Cart count badge — black circle, top-right corner of the orange box */
.header-10-top-icon .header-10-action-count {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 20px; height: 20px;
    background: #111;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* ---------- Nav hotline (right side of orange nav — reference site pattern) ---------- */
.header-10-nav-hotline {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}
.header-10-nav-hotline:hover { color: var(--bs-warning, #FFBA00); }
.header-10-nav-hotline-label {
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.72rem;
    font-weight: 500;
}
.header-10-nav-hotline-number {
    color: #fff;
    font-size: 0.90rem;
    font-weight: 700;
}

/* ---------- 2. Orange secondary nav band ---------- */
.header-10-nav {
    background: var(--bs-primary);
    color: #fff;
}
.header-10-nav-row {
    padding: 0.6rem 0;
    flex-wrap: nowrap !important; /* prevent action cluster wrapping to 2nd line */
}
.header-10-menu {
    flex: 1 1 0;
    min-width: 0;
    overflow: visible;
}
.header-10-action-cluster {
    flex: 0 0 auto;
}


.header-10-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 0 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}
.header-10-menu .nav-item { position: relative; }
.header-10-menu .nav-link {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.35rem 0;
    text-decoration: none;
    transition: color 0.10s ease, background 0.10s ease;
    white-space: nowrap;
}
.header-10-menu .nav-link:hover { color: var(--bs-warning); }
@media (min-width: 992px) {
    .header-10-menu .nav-link {
        padding: 0.3rem 0.65rem;
        border-radius: 3px;
    }
    .header-10-menu .nav-link:hover,
    .header-10-menu .has-child:hover > .nav-link {
        background: #fff;
        color: var(--bs-primary) !important;
    }
}

/* Desktop sub-menu */
@media (min-width: 992px) {
    .header-10-menu .has-child > .nav-link::after {
        content: '';
        display: inline-block;
        width: 5px; height: 5px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-left: 5px;
        vertical-align: middle;
        margin-top: -3px;
    }
    .header-10-menu .has-child > .menu-dropdown {
        display: block !important;
        position: absolute;
        top: calc(100% + 0.6rem + 4px);
        left: 0;
        min-width: 220px;
        background: #fff;
        border: none;
        border-radius: 0 0 5px 5px;
        padding: 0;
        box-shadow: rgba(15, 34, 58, 0.15) 0 0 5px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(4px);
        transition: opacity 0.10s ease, transform 0.10s ease, visibility 0.10s ease;
        z-index: 1050;
        height: auto !important;
    }
    .header-10-menu .has-child:hover > .menu-dropdown,
    .header-10-menu .has-child:focus-within > .menu-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .header-10-menu .has-child > .menu-dropdown ul {
        list-style: none;
        padding: 0;
        margin: 0;
        flex-direction: column !important;
    }
    .header-10-menu .has-child > .menu-dropdown .nav-link {
        display: flex;
        padding: 10px 24px;
        color: var(--bs-primary);
        font-size: 14px;
        font-weight: 400;
    }
    .header-10-menu .has-child > .menu-dropdown .nav-link:hover {
        background: var(--bs-light-primary, #FFF3EB);
        color: var(--bs-primary);
    }
    .header-10-menu .nav-item:not(.has-child) > .menu-dropdown {
        display: none !important;
    }
}

/* ---------- Action cluster (right side of green band) ---------- */
.header-10-action {
    width: 38px; height: 38px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex: 0 0 38px;
}
.header-10-action:hover {
    background: #fff;
    color: var(--bs-primary);
}
.header-10-action .header-10-action-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--bs-warning);
    color: var(--bs-body-color);
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Mobile drawer (slides from left) ---------- */
@media (max-width: 991.98px) {
    .header-10-nav .container { padding: 0; max-width: 100%; }
    .header-10-nav-row {
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        align-items: center;
    }
    .header-10-nav-row::-webkit-scrollbar { display: none; }
    .header-10-menu {
        flex-wrap: nowrap;
        overflow: visible;
        padding: 0.4rem 0.75rem;
        gap: 0 1rem;
        min-width: max-content;
    }
    .header-10-menu .nav-link {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }
    /* Hide "Shop By Category" block — categories are visible in the scroll strip */
    .header-10-shop-wrap { display: none !important; }

    .header-10-drawer {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: 86vw;
        max-width: 320px;
        background: #fff;
        color: var(--bs-body-color);
        overflow-y: auto;
        z-index: 1085;
        transform: translateX(-100%);
        transition: transform 0.20s ease;
        display: flex;
        flex-direction: column;
        box-shadow: 4px 0 16px rgba(242, 101, 34, 0.10);
    }
    body.is-mobile-nav-open .header-10-drawer { transform: translateX(0); }

    .header-10-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid var(--bs-border-color);
    }
    .header-10-drawer-close {
        width: 36px; height: 36px;
        background: transparent;
        border: none;
        color: var(--bs-body-color);
        border-radius: 0.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .header-10-drawer-close:hover { background: var(--bs-light-primary); color: var(--bs-primary); }

    .header-10-drawer-body { flex: 1 1 auto; padding: 0.5rem 0; }
    .header-10-drawer-menu { list-style: none; padding: 0; margin: 0; }
    .header-10-drawer-menu .nav-item { border-bottom: 1px solid var(--bs-border-color); }
    .header-10-drawer-menu .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 1rem;
        color: var(--bs-body-color);
        font-size: 0.95rem;
        font-weight: 500;
        text-decoration: none;
    }
    .header-10-drawer-menu .nav-link:hover {
        background: var(--bs-light-primary);
        color: var(--bs-primary);
    }
    .header-10-drawer-menu .has-child > .nav-link::after {
        content: '';
        display: inline-block;
        width: 6px; height: 6px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
    }
    .header-10-drawer-menu .has-child.is-expanded > .nav-link::after {
        transform: translateY(2px) rotate(-135deg);
    }
    .header-10-drawer-menu .menu-dropdown {
        display: none !important;
        background: var(--bs-light-secondary);
    }
    .header-10-drawer-menu .has-child.is-expanded > .menu-dropdown { display: block !important; }
    .header-10-drawer-menu .menu-dropdown ul {
        list-style: none;
        padding-left: 1.25rem;
        margin: 0;
    }
    .header-10-drawer-menu .menu-dropdown .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.88rem;
    }

    .header-10-drawer-foot {
        padding: 1rem;
        display: grid;
        gap: 0.5rem;
        border-top: 1px solid var(--bs-border-color);
    }
    .header-10-drawer-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.65rem 1rem;
        border-radius: 0.4rem;
        font-weight: 700;
        text-decoration: none;
        font-size: 0.92rem;
    }
    .header-10-drawer-cta-primary {
        background: var(--bs-primary);
        color: #fff;
    }
    .header-10-drawer-cta-outline {
        background: transparent;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }
    .header-10-drawer-cta-primary:hover { background: var(--bs-secondary); color: #fff; }
    .header-10-drawer-cta-outline:hover { background: var(--bs-primary); color: #fff; }

    .header-10-overlay {
        position: fixed;
        inset: 0;
        background: rgba(242, 101, 34, 0.40);
        z-index: 1080;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.15s ease, visibility 0.15s ease;
        pointer-events: none;
    }
    body.is-mobile-nav-open .header-10-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}
@media (min-width: 992px) {
    .header-10-drawer,
    .header-10-overlay { display: none !important; }
}

/* ---------- 3. Mobile bottom nav — hidden (replaced by top-bar cart + search) ---------- */
.header-10-bottom-nav { display: none !important; }
body { padding-bottom: 0; }

.header-10-bottom-icon {
    color: var(--bs-primary);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.10s ease;
}
.header-10-bottom-icon:hover {
    background: var(--bs-light-primary);
}
.header-10-bottom-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--bs-danger);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* THE SIGNATURE — floating circular HOME center (amber warm break from green chrome) */
.header-10-bottom-home {
    width: 60px;
    height: 60px;
    background: var(--bs-warning, #FFB300);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: -28px;
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.35);
    border: 4px solid #fff;
    transition: background 0.10s ease, transform 0.10s ease;
}
.header-10-bottom-home:hover {
    background: #E5A100;
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Search loading spinner ---------- */
.header-10-search-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 6px;
}
.header-10-spinner-ring {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(242, 101, 34, 0.18);
    border-top-color: var(--bs-primary);
    border-radius: 50%;
    animation: header10-spin 0.65s linear infinite;
    display: block;
}
@keyframes header10-spin {
    to { transform: rotate(360deg); }
}
