/* ==========================================================================
   Enhanced Header — Premium Design
   ========================================================================== */

/* --------------------------------------------------------------------------
   Announcement Bar
   -------------------------------------------------------------------------- */
.announcement-bar {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    position: relative;
    z-index: 1100;
}

.announcement-bar__inner {
    display: flex;
    align-items: center;
    height: 36px;
    gap: 12px;
}

.announcement-bar__ticker {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: ticker-scroll 28s linear infinite;
    flex: 1;
    overflow: hidden;
}

.announcement-item {
    padding: 0 48px;
    color: #e2e8f0;
    letter-spacing: 0.3px;
}

.announcement-item strong {
    color: #fbbf24;
}

.announcement-bar__close {
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 14px;
    transition: background 0.2s;
    margin-right: 4px;
}

.announcement-bar__close:hover {
    background: rgba(255,255,255,0.25);
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Header Shell
   -------------------------------------------------------------------------- */
.header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}


/* --------------------------------------------------------------------------
   Header Top (Logo / Search / Actions)
   -------------------------------------------------------------------------- */
.header-top {
    border-bottom: 1px solid #f1f5f9;
}

.header-top-wrapper {
    min-height: 74px;
}

/* Logo */
.navbar-brand.logo img {
    max-height: 38px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-brand.logo:hover img {
    transform: scale(1.04);
    opacity: 0.88;
}

/* --------------------------------------------------------------------------
   Search Bar
   -------------------------------------------------------------------------- */
.header-search-form {
    max-width: 580px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 3px 3px 3px 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input-group:focus-within {
    border-color: var(--base);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(249, 60, 39, 0.1);
}

.search-icon {
    padding: 0 12px;
    color: #94a3b8;
    font-size: 19px;
    flex-shrink: 0;
}

.search-input-group .form-control {
    border: none;
    background: transparent;
    padding: 9px 10px 9px 0;
    font-size: 15px;
    color: #1e293b;
    flex: 1;
    min-width: 0;
}

.search-input-group .form-control:focus {
    box-shadow: none;
    outline: none;
}

.search-submit-btn {
    background: var(--base);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
}

.search-submit-btn:hover {
    background: var(--base-two, #c20c1f);
    transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   Header Actions (right side)
   -------------------------------------------------------------------------- */
.header-actions {
    flex-shrink: 0;
}

/* Bulk Pricing CTA */
.btn-bulk-pricing {
    background: linear-gradient(135deg, var(--base) 0%, #ff6b35 100%);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(249, 60, 39, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-bulk-pricing:hover {
    box-shadow: 0 6px 20px rgba(249, 60, 39, 0.45);
    color: #fff !important;
}

.btn-bulk-pricing:active {
    transform: translateY(0);
}

/* Support / Phone */
.header-support {
    border-left: 1px solid #e2e8f0;
    padding-left: 20px;
}

.support-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8 !important;
    margin-bottom: 2px;
}

.support-number {
    color: #1e293b !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.25s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.support-number i {
    color: var(--base);
    font-size: 16px;
}

.support-number:hover {
    color: var(--base) !important;
}

/* Cart & User action icons */
.user-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: #334155;
    transition: color 0.25s, transform 0.25s;
    min-width: 44px;
    gap: 2px;
}

.user-action-item:hover {
    color: var(--base);
}

.user-action-item .icon-wrapper {
    position: relative;
    font-size: 25px;
    line-height: 1;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--base);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 50px;
    border: 2px solid #fff;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.action-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* --------------------------------------------------------------------------
   Sticky Nav Logo (desktop — hidden normally, shown when fixed-header active)
   -------------------------------------------------------------------------- */
.sticky-nav-logo {
    display: none;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.sticky-logo-img {
    max-height: 50px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sticky-logo-img:hover {
    transform: scale(1.04);
    opacity: 0.88;
}

.header.fixed-header .sticky-nav-logo {
    display: flex;
}

/* --------------------------------------------------------------------------
   Header Bottom — Navigation Bar
   -------------------------------------------------------------------------- */
.header-bottom {
    background: #1a1a2e;
}

.main-menu .nav-item {
    margin: 0 4px;
}

.main-menu .nav-link {
    color: rgba(255,255,255,0.82) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 13px 16px !important;
    position: relative;
    transition: color 0.25s, background 0.25s;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-radius: 0;
}

.main-menu .nav-link::after {
    display: none !important;
}

.main-menu .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.main-menu .nav-link.active {
    color: #fff !important;
    background: var(--base);
}

/* Dropdown menu */
.main-menu .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    padding: 8px;
    min-width: 200px;
    margin-top: 4px !important;
    animation: dropFade 0.2s ease;
}

@keyframes dropFade {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.main-menu .dropdown-item {
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    transition: background 0.2s, color 0.2s;
}

.main-menu .dropdown-item:hover {
    background: rgba(249, 60, 39, 0.08);
    color: var(--base);
}

/* Angle icon in nav */
.main-menu .icon {
    transition: transform 0.3s ease;
    display: inline-block;
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   Mobile Top Bar
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .header-top {
        display: none !important;
    }

    .header-bottom {
        background: #fff !important;
        padding: 0 !important;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    }

    /* Mobile sticky — keep identical height & padding, invert colors */
    .header.fixed-header .header-bottom {
        min-height: unset !important;
        display: block !important;
    }

    .header.fixed-header .mobile-topbar {
        padding: 10px 0 !important;
    }

    .header.fixed-header .mobile-cart-btn {
        color: #fff !important;
    }

    .header.fixed-header .mobile-hamburger span {
        background: #fff !important;
    }

    .header.fixed-header .mobile-topbar .navbar-brand img {
        filter: brightness(0) invert(1);
    }

    /* Cart icon in top bar */
    .mobile-cart-btn {
        position: relative;
        color: #1e293b;
        font-size: 26px;
        text-decoration: none;
        display: flex;
        align-items: center;
        line-height: 1;
        transition: color 0.2s;
    }

    .mobile-cart-btn:hover { color: var(--base); }

    .mobile-cart-badge {
        position: absolute;
        top: -6px;
        right: -8px;
        background: var(--base);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        width: 17px;
        height: 17px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
    }

    /* Hamburger 3-line button */
    .mobile-hamburger {
        background: none;
        border: none;
        padding: 6px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        border-radius: 6px;
        transition: background 0.2s;
    }

    .mobile-hamburger:hover { background: #f1f5f9; }

    .mobile-hamburger span {
        display: block;
        width: 22px;
        height: 2.5px;
        background: #1e293b;
        border-radius: 2px;
        transition: all 0.3s;
    }

    .mobile-hamburger span:nth-child(2) { width: 16px; }
}

/* --------------------------------------------------------------------------
   Mobile Offcanvas — Full Redesign
   -------------------------------------------------------------------------- */
.mobile-offcanvas {
    width: 300px !important;
    border: none !important;
    background-color: #fff !important;
}

/* Header */
.mobile-offcanvas-header {
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-offcanvas-logo img { max-height: 60px; width: auto; }

.mobile-offcanvas-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.mobile-offcanvas-close:hover { background: rgba(255,255,255,0.2); }

/* Search Bar */
.mobile-offcanvas-search {
    background: #f8fafc;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-search-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.mobile-search-group:focus-within { border-color: var(--base); }

.mobile-search-group i {
    padding: 0 10px;
    color: #94a3b8;
    font-size: 16px;
    flex-shrink: 0;
}

.mobile-search-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 0;
    font-size: 14px;
    color: #1e293b;
    background: transparent;
    min-width: 0;
}

.mobile-search-group input::placeholder { color: #94a3b8; }

.mobile-search-group button {
    background: var(--base);
    border: none;
    color: #fff;
    padding: 9px 12px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.mobile-search-group button:hover { background: var(--base-two, #c20c1f); }

/* Offcanvas Body */
.mobile-offcanvas-body {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Nav List */
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-list li { margin: 0; }

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    position: relative;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(249, 60, 39, 0.06);
    color: var(--base);
}

.mobile-nav-link.active {
    border-left: 3px solid var(--base);
    padding-left: 13px;
}

.mobile-nav-icon {
    width: 26px;
    height: 26px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover .mobile-nav-icon,
.mobile-nav-link.active .mobile-nav-icon {
    background: rgba(249, 60, 39, 0.1);
    color: var(--base);
}

.mobile-nav-arrow {
    margin-left: auto;
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.3s;
}

.mobile-nav-collapse-toggle[aria-expanded="true"] .mobile-nav-arrow {
    transform: rotate(180deg);
}

/* Sub-menu */
.mobile-sub-menu {
    list-style: none;
    padding: 2px 0 2px 52px;
    margin: 0;
    background: #f8fafc;
}

.mobile-sub-menu li a {
    display: block;
    padding: 7px 12px 7px 0;
    color: #475569;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s;
}

.mobile-sub-menu li:last-child a { border-bottom: none; }
.mobile-sub-menu li a:hover { color: var(--base); }

/* Action Buttons */
.mobile-offcanvas-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.mobile-action-btn--cart {
    background: #f1f5f9;
    color: #1e293b;
    border: 1.5px solid #e2e8f0;
}

.mobile-action-btn--cart:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.mobile-action-btn--login {
    background: #1a1a2e;
    color: #fff;
    border: 1.5px solid #1a1a2e;
}

.mobile-action-btn--login:hover {
    background: #252545;
    color: #fff;
}

.mobile-action-badge {
    margin-left: auto;
    background: var(--base);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 50px;
}

/* Bulk Pricing CTA */
.mobile-bulk-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 14px 12px;
    padding: 11px;
    background: linear-gradient(135deg, var(--base) 0%, #ff6b35 100%);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(249, 60, 39, 0.3);
    transition: all 0.2s;
}

.mobile-bulk-btn:hover {
    box-shadow: 0 6px 18px rgba(249, 60, 39, 0.4);
    color: #fff !important;
}

/* Footer with phone */
.mobile-offcanvas-footer {
    margin-top: auto;
    padding: 10px 14px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.mobile-phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.mobile-phone-link i { color: var(--base); font-size: 18px; }

/* --------------------------------------------------------------------------
   Body push when sticky header is active
   -------------------------------------------------------------------------- */
body.has-sticky-header {
    padding-top: 74px;
}
