/* public/assets/css/customer/header.css */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    font-family: var(--font-body);
}

/* ═══════════════════════════════
   MAIN HEADER (Dark)
═══════════════════════════════ */
.header-main {
    background: var(--navy-800);
    height: var(--header-main-h);
    border-bottom: 1px solid var(--border-soft);
}

.header-main .container {
    max-width: 100%;
    padding: 0 15px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 15px;
    width: 100%;
}

/* ── Logo ──────────────────── */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--sky), var(--navy-600));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #ffffff 0%, var(--sky) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Search ────────────────── */
.search-wrap {
    flex: 1;
    max-width: 500px;
    margin: 0;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-pill);
    overflow: hidden;
    height: 44px;
    transition: all 0.3s var(--ease);
}

.search-input-group:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-blue);
    box-shadow: var(--shadow-glow);
}

.search-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 12px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    height: 100%;
}

.search-icon-left {
    margin-left: 18px;
    color: var(--text-muted);
    font-size: 14px;
}

.search-input-group input::placeholder {
    color: var(--text-muted);
}

.search-submit {
    height: 100%;
    padding: 0 25px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease);
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}

.search-submit:hover {
    background: var(--primary-dark);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

/* ── Header Actions ────────── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    position: relative;
    color: var(--text-primary);
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border-radius: var(--radius-md);
    transition: all 0.2s var(--ease);
}

.action-btn:hover {
    background: var(--navy-700);
    color: var(--sky);
}

.action-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--navy-800);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cart-summary {
    display: flex;
    flex-direction: column;
    margin-left: 4px;
    line-height: 1.2;
}

.cart-label {
    font-size: 11px;
    color: var(--text-muted);
}

.cart-amount {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   SECONDARY NAV BAR (Blue)
═══════════════════════════════════════════ */
.nav-bar-premium {
    background: var(--navy-700);
    height: var(--nav-bar-h);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-header);
    position: relative;
    z-index: 1;
}

.nav-bar-premium .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
}

.nav-inner-premium {
    display: flex;
    align-items: center;
    height: 100%;
    flex-wrap: nowrap;
}

.btn-categories-new {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 34px;
    padding: 0 16px;
    background: #ffffff;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-right: 20px;
    transition: transform 0.2s;
}

.btn-categories-new:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-links-premium {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.nav-links-premium a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.2s;
}

.nav-links-premium a:hover,
.nav-links-premium a.active {
    color: var(--sky);
}

.nav-links-premium a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--sky);
    border-radius: 4px 4px 0 0;
    transform: scaleX(0);
    transition: transform 0.2s;
}

.nav-links-premium a.active::after {
    transform: scaleX(1);
}

.nav-link-dropdown-premium {
    color: var(--text-primary) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.nav-link-dropdown-premium:hover {
    color: var(--sky) !important;
}

/* Dropdowns */
.dropdown-menu {
    background: var(--navy-800) !important;
    border: 1px solid var(--border-soft) !important;
    box-shadow: var(--shadow-dropdown) !important;
    padding: 10px !important;
    border-radius: var(--radius-md) !important;
}

.premium-item {
    padding: 10px 15px !important;
    font-size: 14px !important;
    color: var(--text-secondary) !important;
    border-radius: var(--radius-sm) !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.premium-item:hover {
    background: var(--navy-700) !important;
    color: var(--sky) !important;
}

.x-small {
    font-size: 9px;
}

/* Mobile Toggles */
.mobile-nav-toggle {
    width: 42px;
    height: 42px;
    background: var(--navy-700);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-nav-toggle:hover {
    background: var(--navy-600);
    color: var(--sky);
}

.mobile-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-800);
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
    z-index: 5;
}

.mobile-search-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 1200px) {
    .search-wrap {
        max-width: 400px;
    }
}

@media (max-width: 991px) {
    .header-inner {
        gap: 10px;
        justify-content: space-between;
    }

    .search-wrap.d-none {
        display: none !important;
    }

    .header-actions {
        margin-left: 0;
        gap: 8px;
    }

    .nav-bar-premium {
        position: fixed;
        top: var(--header-main-h);
        left: 0;
        bottom: 0;
        width: 280px;
        height: auto;
        flex-direction: column;
        background: var(--navy-900);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 20px 0;
        border-right: 1px solid var(--border-soft);
        overflow-y: auto;
    }

    .nav-bar-premium.mobile-active {
        transform: translateX(0);
    }

    .nav-inner-premium {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        gap: 15px;
        padding: 0 20px;
    }

    .nav-links-premium {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 10px;
    }

    .nav-links-premium a {
        width: 100%;
        height: 44px;
        padding: 0;
    }

    .nav-links-premium a::after {
        display: none;
    }

    .btn-categories-new {
        width: 100%;
        margin-right: 0;
        justify-content: center;
    }

    .categories-mega-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        min-width: 100%;
        max-height: 100%;
        margin-top: 0 !important;
        border-radius: 0 !important;
        z-index: 2000;
    }
}

/* Mega Menu */
.categories-mega-menu {
    min-width: 850px;
    max-height: 480px;
    overflow: hidden;
    margin-top: 10px !important;
    background: #ffffff !important;
}

.categories-sidebar {
    width: 260px;
    max-height: 480px;
    overflow-y: auto;
    background: var(--navy-800);
    padding: 10px 0;
    border-radius: 5px;
    border-right: 1px solid var(--border-soft);
}

/* Custom Scrollbar for Sidebar */
.categories-sidebar::-webkit-scrollbar {
    width: 4px;
}
.categories-sidebar::-webkit-scrollbar-thumb {
    background: var(--navy-600);
    border-radius: 5px;
}

.category-sidebar-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.category-sidebar-item:hover > a,
.category-sidebar-item.active > a {
    background: var(--navy-700);
    color: var(--sky);
}

.categories-content {
    flex: 1;
    background: #ffffff;
    padding: 25px;
    max-height: 480px;
    overflow-y: auto;
}

/* Custom Scrollbar for Content */
.categories-content::-webkit-scrollbar {
    width: 5px;
}
.categories-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.categories-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.categories-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.category-content-pane {
    display: none;
}

.category-content-pane.active {
    display: block;
    animation: fadeIn 0.3s var(--ease);
}

.sub-category-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    text-decoration: none;
}

.sub-sub-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-sub-categories a {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.sub-sub-categories a:hover {
    color: var(--sky);
    padding-left: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
