/* =========================================================
   PREMIUM HEADER & NAVBAR STYLES (MATCHING FOOTER THEME)
   ========================================================= */

:root {
    --hdr-dark-base: #0a0f18;
    --hdr-dark-surface: #0f1923;
    --hdr-dark-surface-2: #14202e;
    --hdr-dark-surface-3: #1a293b;
    --hdr-accent-crimson: #ae2448;
    --hdr-accent-crimson-hover: #8e1a38;
    --hdr-accent-teal: #00c9d6;
    --hdr-accent-teal-hover: #00b0bd;
    --hdr-text-light: #e6edf5;
    --hdr-text-muted: #8899aa;
    --hdr-border: rgba(255, 255, 255, 0.08);
}

/* ──────────────────────────────────────────
   1. TOP ANNOUNCEMENT BAR
   ────────────────────────────────────────── */
.site-topbar {
    background: #070b12;
    border-bottom: 1px solid var(--hdr-border);
    padding: 7px 0;
    font-size: 13px;
    font-family: "Anek Bangla", sans-serif;
    color: var(--hdr-text-muted);
}

.site-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a2b4c7;
    font-weight: 500;
}

.topbar-badge i {
    color: var(--hdr-accent-teal) !important;
    font-size: 13px;
}

.topbar-badge-alt i {
    color: #5dde8f !important;
}

.topbar-mobile-msg {
    font-size: 12px;
    color: #a2b4c7;
    display: block;
}

.topbar-mobile-msg a {
    color: var(--hdr-accent-teal);
    font-weight: 600;
    text-decoration: none;
}

.topbar-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #798d9f;
}

.topbar-time i {
    color: #f59e0b !important;
}

.topbar-divider {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: var(--hdr-border);
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hdr-text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.topbar-link i {
    color: var(--hdr-accent-teal) !important;
}

.topbar-link:hover {
    color: var(--hdr-accent-teal);
}

.topbar-wa-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25d366 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.topbar-wa-link i {
    color: #25d366 !important;
    font-size: 14px;
}

.topbar-wa-link:hover {
    background: #25d366;
    transform: scale(1.1);
}

.topbar-wa-link:hover i {
    color: #fff !important;
}

/* ──────────────────────────────────────────
   STICKY WRAPPER
   ────────────────────────────────────────── */
.sticky-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.sticky-header-wrap.header-scrolled {
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.6);
}

/* ──────────────────────────────────────────
   2. MAIN MIDDLE HEADER
   ────────────────────────────────────────── */
.site-main-header {
    background: var(--hdr-dark-surface);
    padding: 16px 0;
    border-bottom: 1px solid var(--hdr-border);
    position: relative;
    z-index: 1;
    transition: padding 0.3s ease, background 0.3s ease;
}

.sticky-header-wrap.header-scrolled .site-main-header {
    padding: 10px 0;
    background: rgba(15, 25, 35, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.main-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Mobile Toggler */
.header-mobile-toggler {
    background: var(--hdr-dark-surface-2);
    border: 1px solid var(--hdr-border);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-mobile-toggler:hover {
    background: var(--hdr-accent-crimson);
    border-color: var(--hdr-accent-crimson);
    color: #fff;
}

/* Brand Logo */
.header-logo-area {
    flex-shrink: 0;
}

.header-logo-link {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--hdr-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.header-logo-link:hover {
    border-color: rgba(0, 201, 214, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.site-main-logo {
    max-height: 48px;
    max-width: 170px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Smart Search Area */
.header-search-area {
    flex: 1;
    max-width: 580px;
    position: relative;
    margin: 0 auto;
}

.header-search-form {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #080d15;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 4px 6px 4px 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-wrapper:focus-within {
    border-color: var(--hdr-accent-teal);
    box-shadow: 0 0 0 4px rgba(0, 201, 214, 0.15), 0 8px 24px rgba(0, 0, 0, 0.4);
    background: #0c1420;
}

.search-lead-icon {
    color: #5e7388;
    font-size: 15px;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.search-input-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: "Anek Bangla", sans-serif;
    font-size: 14px;
    color: var(--hdr-text-light);
    height: 38px;
    padding: 0;
}

.search-input-field::placeholder {
    color: #556779;
}

.search-submit-button {
    background: linear-gradient(135deg, var(--hdr-accent-crimson), #c0392b);
    border: none;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: "Anek Bangla", sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(174, 36, 72, 0.35);
}

.search-submit-button:hover {
    background: linear-gradient(135deg, var(--hdr-accent-crimson-hover), #9b281d);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(174, 36, 72, 0.5);
}

.search-submit-button i {
    font-size: 11px;
    color: #fff !important;
}

/* Search Dropdown Results */
.search-dropdown-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #101a26;
    border: 1px solid var(--hdr-border);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    max-height: 380px;
    overflow-y: auto;
    z-index: 1050;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    display: none;
}

.search-dropdown-results li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-dropdown-results li:last-child {
    border-bottom: none;
}

.search-dropdown-results li:hover {
    background: var(--hdr-dark-surface-3);
}

.search-dropdown-results img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--hdr-border);
    margin-right: 12px;
}

.search-dropdown-results .product-name {
    font-family: "Anek Bangla", sans-serif;
    font-size: 14px;
    color: var(--hdr-text-light);
    font-weight: 500;
}

.search-dropdown-results .product-price {
    font-family: "Anek Bangla", sans-serif;
    font-size: 14px;
    color: var(--hdr-accent-teal);
    font-weight: 700;
    white-space: nowrap;
}

/* Header Actions Area (Hotline + Cart) */
.header-actions-area {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Hotline Card (Desktop) */
.header-hotline-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--hdr-border);
    border-radius: 50px;
    padding: 6px 16px 6px 8px;
    transition: all 0.25s ease;
}

.header-hotline-card:hover {
    border-color: rgba(0, 201, 214, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.hotline-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 201, 214, 0.2), rgba(174, 36, 72, 0.2));
    border: 1px solid rgba(0, 201, 214, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hdr-accent-teal);
    font-size: 15px;
}

.hotline-icon-wrap i {
    color: var(--hdr-accent-teal) !important;
}

.hotline-text-wrap small {
    display: block;
    font-family: "Anek Bangla", sans-serif;
    font-size: 10.5px;
    color: #798d9f;
    line-height: 1.2;
}

.hotline-text-wrap a {
    font-family: "Anek Bangla", sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--hdr-text-light);
    text-decoration: none;
    letter-spacing: 0.3px;
}

/* Cart Widget Card */
.cart-pill-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #162434, #1a2d42);
    border: 1.5px solid rgba(0, 201, 214, 0.25);
    border-radius: 50px;
    padding: 6px 18px 6px 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.cart-pill-link:hover {
    border-color: var(--hdr-accent-teal);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 201, 214, 0.25);
}

.cart-icon-container {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hdr-accent-crimson), #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(174, 36, 72, 0.4);
}

.cart-icon-container i {
    font-size: 16px;
    color: #ffffff !important;
}

.cart-counter-bubble {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #00c9d6;
    color: #080e16;
    font-family: "Anek Bangla", sans-serif;
    font-size: 11px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid #0f1923;
    padding: 0 4px;
    box-shadow: 0 0 10px rgba(0, 201, 214, 0.6);
}

.cart-info-container {
    text-align: left;
}

.cart-info-label {
    display: block;
    font-family: "Anek Bangla", sans-serif;
    font-size: 11px;
    color: #798d9f;
    line-height: 1.1;
    font-weight: 500;
}

.cart-info-value {
    display: block;
    font-family: "Anek Bangla", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

/* ──────────────────────────────────────────
   3. DESKTOP NAVBAR
   ────────────────────────────────────────── */
.site-navbar {
    background: #090e17 !important;
    border-bottom: 1px solid var(--hdr-border);
    padding: 0 !important;
    position: relative;
}

.site-navbar .navbar-nav {
    display: flex;
    gap: 4px;
}

.site-navbar .nav-link {
    font-family: "Anek Bangla", sans-serif !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    color: #c0cddc !important;
    padding: 14px 18px !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
    transition: all 0.25s ease !important;
}

.site-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: linear-gradient(90deg, var(--hdr-accent-crimson), var(--hdr-accent-teal));
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.25s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: #ffffff !important;
}

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-icon-prefix {
    font-size: 14px;
    color: var(--hdr-accent-teal) !important;
}

.nav-highlight-link {
    color: #facc15 !important;
}

.nav-dropdown-arrow {
    font-size: 11px;
    margin-left: 4px;
    color: #798d9f !important;
    transition: transform 0.2s ease;
}

.custom-dropdown-nav:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.site-navbar .dropdown-menu {
    background: #0e1724 !important;
    border: 1px solid var(--hdr-border) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    min-width: 210px;
    margin-top: 0 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
}

.custom-dropdown-nav:hover .dropdown-menu {
    display: block !important;
    animation: fadeInSlide 0.25s ease forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-navbar .dropdown-item {
    font-family: "Anek Bangla", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #b0c2d4 !important;
    padding: 8px 14px !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease !important;
}

.site-navbar .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    padding-left: 18px !important;
}

/* ──────────────────────────────────────────
   4. MOBILE OFFCANVAS DRAWER
   ────────────────────────────────────────── */
.mobile-sidemenu-drawer {
    background: #0c131c !important;
    color: #ffffff;
    max-width: 310px;
    border-right: 1px solid var(--hdr-border);
}

.mobile-drawer-header {
    background: #080d14;
    border-bottom: 1px solid var(--hdr-border);
    padding: 16px;
}

.drawer-logo {
    max-height: 40px;
    width: auto;
}

.mobile-drawer-body .sidebar-link {
    font-family: "Anek Bangla", sans-serif;
    font-size: 15px;
    color: #c9d8e8;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 8px;
    display: block;
    transition: all 0.2s ease;
}

.mobile-drawer-body .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.mobile-drawer-body .sidebar-sublink {
    font-family: "Anek Bangla", sans-serif;
    font-size: 13.5px;
    color: #889bb0;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-drawer-body .sidebar-sublink:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.drawer-accordion-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

/* ──────────────────────────────────────────
   5. RESPONSIVE BREAKPOINTS
   ────────────────────────────────────────── */
@media (max-width: 991px) {
    /* Disable sticky on mobile */
    .sticky-header-wrap {
        position: relative;
        top: auto;
        box-shadow: none !important;
    }

    #mainnavbar {
        display: none !important;
    }

    .site-main-header {
        padding: 12px 0;
    }


    .main-header-wrapper {
        display: grid;
        grid-template-columns: 44px 1fr auto;
        grid-template-areas:
            "toggle logo cart"
            "search search search";
        gap: 12px;
    }

    .mobile-toggle-wrap {
        grid-area: toggle;
    }

    .header-logo-area {
        grid-area: logo;
        text-align: center;
    }

    .header-search-area {
        grid-area: search;
        max-width: 100%;
        margin-top: 4px;
    }



    .header-actions-area {
        grid-area: cart;
        justify-content: flex-end;
    }

    .cart-pill-link {
        padding: 4px 4px 4px 4px;
    }

    .cart-icon-container {
        width: 34px;
        height: 34px;
    }

    .search-input-wrapper {
        padding: 2px 4px 2px 14px;
    }

    .search-submit-button {
        padding: 6px 14px;
        font-size: 12px;
    }

    .site-main-logo {
        max-height: 40px;
    }
}