/* ==========================================================================
   Master Solar BD — BDShop Style Modern Header System
   Pixel-perfect replication of bdshop.com's high-converting eCommerce layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
    --msbd-navy-dark: #071f40;
    --msbd-navy-primary: #0b3a75;
    --msbd-navy-hover: #0d4a94;
    --msbd-slate-dark: #0b1120;
    --msbd-gold: #f59e0b;
    --msbd-gold-light: #fef3c7;
    --msbd-green: #10b981;
    --msbd-red: #ef4444;
    --msbd-text-dark: #1e293b;
    --msbd-text-muted: #64748b;
    --msbd-border: #e2e8f0;
}

/* Header Outer Container */
.msbd-bdshop-header {
    font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.msbd-header-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. TOP NOTIFICATION BAR (Black Slate)
   -------------------------------------------------------------------------- */
.msbd-topbar {
    background-color: var(--msbd-slate-dark);
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 0;
}

.msbd-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.msbd-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.msbd-topbar-left a,
.msbd-topbar-phone {
    color: #93c5fd !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.2s;
}

.msbd-topbar-left a:hover {
    color: #ffffff !important;
}

.msbd-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 10px;
}

.msbd-topbar-center {
    flex: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msbd-announcement {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fde047;
    font-weight: 600;
    font-size: 11.5px;
}

.msbd-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
    animation: msbdPulse 1.8s infinite;
}

@keyframes msbdPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.msbd-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.msbd-topbar-link {
    color: #e2e8f0 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    transition: color 0.2s;
}

.msbd-topbar-link:hover {
    color: #38bdf8 !important;
}

.msbd-whatsapp-link {
    color: #34d399 !important;
}

.msbd-social-icon {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.msbd-social-icon:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   2. MAIN MIDDLE HEADER (Logo, Search, Fast Actions)
   -------------------------------------------------------------------------- */
.msbd-main-header {
    background: #ffffff;
    padding: 14px 0 10px 0;
    border-bottom: 1px solid var(--msbd-border);
}

.msbd-main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

/* Logo */
.msbd-logo-area {
    flex-shrink: 0;
    width: 180px !important;
    max-width: 180px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
}

.msbd-logo-link {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.msbd-logo-img {
    height: 48px !important;
    width: auto !important;
    max-height: 48px !important;
    max-width: 180px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Search Bar Area */
.msbd-search-area {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.msbd-search-form {
    margin: 0;
    padding: 0;
    width: 100%;
}

.msbd-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

.msbd-search-input-wrap:focus-within {
    background: #ffffff;
    border-color: var(--msbd-navy-primary);
    box-shadow: 0 0 0 4px rgba(11, 58, 117, 0.12);
}

.msbd-search-prefix-icon {
    padding-left: 14px;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.msbd-search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: var(--msbd-text-dark) !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: inherit;
    width: 100%;
}

.msbd-search-input::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}

.msbd-search-submit-btn {
    background: linear-gradient(135deg, var(--msbd-navy-primary) 0%, var(--msbd-navy-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: 7px;
    margin: 3px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: inherit;
}

.msbd-search-submit-btn:hover {
    background: linear-gradient(135deg, #0284c7 0%, var(--msbd-navy-primary) 100%);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* Quick Search Tags */
.msbd-search-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 11.5px;
}

.msbd-tags-label {
    color: #94a3b8;
    font-weight: 600;
}

.msbd-tag-pill {
    color: #475569 !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.15s;
    font-weight: 500;
}

.msbd-tag-pill:hover {
    background: #f1f5f9;
    color: var(--msbd-navy-primary) !important;
    border-color: #cbd5e1;
}

.msbd-tag-hot {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309 !important;
    font-weight: 600;
}

/* Right Actions Area (Hotline, Account, Cart) */
.msbd-actions-area {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Hotline Pill */
.msbd-call-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    text-decoration: none !important;
    transition: all 0.2s;
}

.msbd-call-pill:hover {
    background: #dcfce7;
    border-color: #86efac;
    transform: translateY(-1px);
}

.msbd-call-icon {
    color: #16a34a;
    display: flex;
    align-items: center;
}

.msbd-call-text {
    display: flex;
    flex-direction: column;
}

.msbd-call-title {
    font-size: 10.5px;
    color: #15803d;
    font-weight: 600;
    line-height: 1.1;
}

.msbd-call-number {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

/* Account Menu */
.msbd-account-menu-wrap {
    position: relative;
}

.msbd-account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    color: var(--msbd-text-dark) !important;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.15s;
    cursor: pointer;
}

.msbd-account-btn:hover {
    background: #f8fafc;
}

.msbd-acc-icon {
    color: #475569;
    display: flex;
    align-items: center;
}

.msbd-acc-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.msbd-acc-label {
    font-size: 10.5px;
    color: var(--msbd-text-muted);
    line-height: 1.1;
}

.msbd-acc-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--msbd-text-dark);
    line-height: 1.2;
}

/* Account Dropdown */
.msbd-account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    width: 200px;
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
}

.msbd-account-menu-wrap:hover .msbd-account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.msbd-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13.5px;
    color: #334155 !important;
    text-decoration: none !important;
    transition: background 0.15s;
    font-weight: 500;
}

.msbd-dropdown-item:hover {
    background: #f1f5f9;
    color: var(--msbd-navy-primary) !important;
}

.msbd-dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 0;
}

/* Shopping Cart Button */
.msbd-header-cart-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    padding: 6px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.msbd-header-cart-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.msbd-cart-icon-wrap {
    position: relative;
    color: var(--msbd-navy-primary);
    display: flex;
    align-items: center;
}

.msbd-cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--msbd-red);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

.msbd-cart-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.msbd-cart-label {
    font-size: 10.5px;
    color: var(--msbd-text-muted);
    line-height: 1.1;
}

.msbd-cart-total {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--msbd-navy-dark);
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   3. BOTTOM HORIZONTAL MENU BAR (Deep Navy Gradient)
   -------------------------------------------------------------------------- */
.msbd-bottom-nav {
    background: linear-gradient(90deg, #071f40 0%, #0b3a75 60%, #092c5a 100%);
    box-shadow: 0 4px 12px rgba(7, 31, 64, 0.15);
}

.msbd-bottom-nav-inner {
    display: flex;
    align-items: stretch;
    height: 48px;
}

/* Category Mega Dropdown Button */
.msbd-category-menu-root {
    position: relative;
    height: 100%;
}

.msbd-category-toggle-btn {
    height: 100%;
    background: #051833;
    color: #ffffff;
    border: none;
    padding: 0 24px;
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    border-radius: 6px 6px 0 0;
}

.msbd-category-toggle-btn:hover,
.msbd-category-menu-root:hover .msbd-category-toggle-btn {
    background: #030e20;
    color: #fde047;
}

.msbd-cat-bars {
    font-size: 18px;
    color: #fde047;
}

.msbd-cat-arrow {
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.2s;
}

.msbd-category-menu-root:hover .msbd-cat-arrow {
    transform: rotate(180deg);
}

/* Mega Panel */
.msbd-category-mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 680px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
    padding: 16px;
    pointer-events: none;
}

.msbd-category-menu-root:hover .msbd-category-mega-panel,
.msbd-category-mega-panel.msbd-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.msbd-cat-panel-header {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msbd-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.msbd-cat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.msbd-cat-card:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateX(3px);
}

.msbd-cat-highlight {
    background: #fffbeb;
    border-color: #fde68a;
}

.msbd-cat-highlight:hover {
    background: #fef3c7;
    border-color: #fcd34d;
}

.msbd-cat-icon {
    font-size: 22px;
    line-height: 1;
}

.msbd-cat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.msbd-cat-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.msbd-cat-sub {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.2;
}

.msbd-cat-arrow-r {
    color: #94a3b8;
    font-size: 14px;
    transition: transform 0.2s;
}

.msbd-cat-card:hover .msbd-cat-arrow-r {
    color: var(--msbd-navy-primary);
    transform: translateX(3px);
}

/* Nav Links Centered / Left Flex */
.msbd-nav-links {
    flex: 1;
    display: flex;
    align-items: center;
}

.msbd-nav-ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0 0 0 16px;
    gap: 4px;
}

.msbd-nav-li {
    position: relative;
    margin: 0;
    padding: 0;
}

.msbd-nav-a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    color: #f8fafc !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    border-radius: 6px;
    white-space: nowrap;
}

.msbd-nav-a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #38bdf8 !important;
}

.msbd-nav-hot .msbd-nav-a {
    color: #fde047 !important;
}

.msbd-nav-glow-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
    animation: msbdBadgeGlow 2s infinite;
}

@keyframes msbdBadgeGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.08); }
}

/* --------------------------------------------------------------------------
   4. MOBILE HEADER & OFFCANVAS DRAWER
   -------------------------------------------------------------------------- */
.msbd-mobile-header {
    display: none;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.msbd-mobile-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.msbd-mobile-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.msbd-mobile-bar {
    width: 22px;
    height: 2.5px;
    background: var(--msbd-navy-dark);
    border-radius: 2px;
}

.msbd-mobile-logo img {
    height: 38px !important;
    width: auto !important;
    max-height: 38px !important;
    max-width: 140px !important;
    object-fit: contain !important;
    display: block !important;
}

.msbd-mobile-cart {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.msbd-mobile-cart .msbd-cart-badge {
    position: absolute !important;
    top: -6px !important;
    right: -8px !important;
    left: auto !important;
    bottom: auto !important;
}

.msbd-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.msbd-mobile-icon-btn {
    color: #334155;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.msbd-mobile-wa {
    color: #16a34a;
}

.msbd-mobile-search-row {
    padding: 8px 14px;
    background: #f8fafc;
}

.msbd-mobile-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    padding-left: 10px;
}

.msbd-mob-search-icon {
    font-size: 14px;
    color: #94a3b8;
}

.msbd-mobile-search-input {
    flex: 1;
    border: none !important;
    padding: 8px 10px !important;
    font-size: 13.5px !important;
    outline: none !important;
    font-family: inherit;
}

.msbd-mob-search-btn {
    background: var(--msbd-navy-primary);
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

/* Offcanvas Drawer */
.msbd-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.msbd-drawer-backdrop.msbd-open {
    opacity: 1;
    visibility: visible;
}

.msbd-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 310px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 99999;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.25);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.msbd-mobile-drawer.msbd-open {
    transform: translateX(0);
}

.msbd-drawer-header {
    background: var(--msbd-navy-dark);
    color: #ffffff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.msbd-drawer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}

.msbd-drawer-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.msbd-drawer-contact-bar {
    display: flex;
    background: #f1f5f9;
    padding: 10px 14px;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.msbd-drawer-call,
.msbd-drawer-wa {
    flex: 1;
    text-align: center;
    padding: 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.msbd-drawer-call {
    background: #0284c7;
    color: #ffffff !important;
}

.msbd-drawer-wa {
    background: #16a34a;
    color: #ffffff !important;
}

.msbd-drawer-body {
    flex: 1;
    padding: 14px;
}

.msbd-drawer-heading {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 12px 0 6px 0;
}

.msbd-drawer-cats,
.msbd-drawer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.msbd-drawer-cat-link,
.msbd-drawer-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.15s;
    margin-bottom: 3px;
}

.msbd-drawer-cat-link:hover,
.msbd-drawer-links a:hover {
    background: #f1f5f9;
    color: var(--msbd-navy-primary) !important;
}

.msbd-drawer-hot {
    background: #fffbeb;
    color: #b45309 !important;
}

.msbd-badge-hot {
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 800;
}

.msbd-drawer-footer {
    padding: 12px 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 11.5px;
    color: #64748b;
    text-align: center;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE BREAKPOINTS (Hide Desktop, Show Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .msbd-topbar,
    .msbd-main-header,
    .msbd-bottom-nav {
        display: none !important;
    }
    .msbd-mobile-header {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .msbd-mobile-header,
    .msbd-mobile-drawer,
    .msbd-drawer-backdrop {
        display: none !important;
    }
}
