﻿/* =============================================
   wwwroot/css/navbar.css
   Premium Navbar — Consolidated, Responsive
   ============================================= */

/* ---------- Variables ---------- */
:root {
    --navbar-height: 76px;
    --navbar-height-scrolled: 64px;
    --nav-bg-1: #0a0e27;
    --nav-bg-2: #1a1a3e;
    --nav-bg-3: #2d2a5c;
    --nav-text: rgba(255, 255, 255, 0.9);
    --nav-text-hover: #ffffff;
    --nav-text-muted: rgba(255, 255, 255, 0.6);
    --nav-accent-1: #667eea;
    --nav-accent-2: #764ba2;
    --nav-accent-3: #f093fb;
    --brand-red: #E31E24;
    --brand-red-dark: #C41920;
}

/* ---------- Base Navbar ---------- */
.navbar-premium {
    background: linear-gradient(135deg, var(--nav-bg-1) 0%, var(--nav-bg-2) 30%, var(--nav-bg-3) 60%, var(--nav-bg-2) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1030;
}

    .navbar-premium.navbar-scrolled {
        padding: 0.25rem 0;
        background: linear-gradient(135deg, rgba(10, 14, 39, 0.98), rgba(45, 42, 92, 0.98));
    }

/* ✅ Fix body padding-jump: use scroll-padding on html, not padding on body */
html {
    scroll-padding-top: var(--navbar-height);
}

body {
    padding-top: var(--navbar-height); /* unchanged, but consistent */
}

/* ---------- Brand ---------- */
.navbar-brand-premium {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: transform 0.3s ease;
}

    .navbar-brand-premium:hover {
        transform: translateY(-1px);
    }

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-orb {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--nav-accent-1), var(--nav-accent-2), var(--nav-accent-3));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: borderGlow 3s ease-in-out infinite alternate;
}

    .logo-orb:hover {
        transform: scale(1.05) rotate(3deg);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    }

    .logo-orb img {
        width: 85%;
        height: 85%;
        object-fit: contain;
    }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-main {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #a8c0ff, #3f2b96);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.brand-sub {
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1.5px;
    margin-top: 2px;
    text-transform: uppercase;
}

/* ---------- Nav Links ---------- */
.navbar-nav {
    align-items: center;
    gap: 2px;
}

    .navbar-nav .nav-link {
        color: var(--nav-text) !important;
        font-weight: 600;
        padding: 0.55rem 0.85rem !important;
        margin: 0 0.05rem;
        border-radius: 10px;
        transition: all 0.3s ease;
        position: relative;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px;
        font-size: 0.875rem;
        letter-spacing: 0.2px;
        white-space: nowrap;
    }

        .navbar-nav .nav-link i {
            font-size: 0.9rem;
            transition: transform 0.3s ease;
        }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            color: var(--nav-text-hover) !important;
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-1px);
        }

            .navbar-nav .nav-link:hover i,
            .navbar-nav .nav-link.active i {
                transform: scale(1.15);
            }

/* ---------- Mega Menu ---------- */
.mega-dropdown {
    position: static;
}

.mega-menu {
    /* ✅ Fix: no more translateX(-15%) — anchored to viewport width */
    position: absolute;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(1200px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    padding: 1.75rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(45, 42, 92, 0.98) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.mega-menu-column {
    padding: 0.5rem;
}

.mega-menu-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.5);
    display: inline-block;
}

    .mega-menu-title i {
        color: var(--nav-accent-3);
        font-size: 0.85rem;
    }

.mega-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .mega-menu-links li {
        margin-bottom: 0.5rem;
    }

    .mega-menu-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        padding: 0.2rem 0;
    }

        .mega-menu-links a i {
            font-size: 0.7rem;
            color: var(--nav-accent-1);
            transition: all 0.2s ease;
        }

        .mega-menu-links a:hover {
            color: #fff;
            transform: translateX(4px);
        }

            .mega-menu-links a:hover i {
                color: var(--nav-accent-3);
            }

/* ---------- Standard Dropdown ---------- */
.dropdown-menu-premium {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(45, 42, 92, 0.98) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.6rem;
    margin-top: 0.6rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    min-width: 240px;
}

.dropdown-header {
    color: var(--nav-accent-3);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 0.5rem 0.75rem 0.3rem;
}

.dropdown-item {
    color: var(--nav-text);
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    margin: 0.1rem 0;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    font-size: 0.85rem;
}

    .dropdown-item i {
        width: 18px;
        text-align: center;
        opacity: 0.85;
    }

    .dropdown-item:hover {
        background: linear-gradient(90deg, rgba(102, 126, 234, 0.2), rgba(240, 147, 251, 0.1));
        color: var(--nav-text-hover);
        transform: translateX(3px);
    }

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 0.35rem 0;
}
/* ============================================
   PREMIUM CART — silky, animated, attention-grabbing
   ============================================ */

.cart-link {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0 !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    text-decoration: none;
    overflow: visible; /* badge needs to escape */
    isolation: isolate;
    z-index: 2;
}

    /* ---------- Icon — gradient text fill ---------- */
    .cart-link .cart-icon {
        position: relative;
        font-size: 1.15rem;
        background: linear-gradient(135deg, #ffffff 0%, #a8c0ff 60%, #667eea 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: #fff; /* fallback */
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 2;
    }

    /* ---------- Hover: lift + glow + icon wiggle ---------- */
    .cart-link:hover {
        background: rgba(102, 126, 234, 0.15);
        border-color: rgba(102, 126, 234, 0.4);
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    }

        .cart-link:hover .cart-icon {
            transform: rotate(-8deg) scale(1.1);
        }

    /* ---------- Active / click ---------- */
    .cart-link:active {
        transform: translateY(0) scale(0.95);
        transition-duration: 0.1s;
    }

    /* ---------- Focus ring (keyboard) ---------- */
    .cart-link:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.5), 0 0 0 5px rgba(255, 255, 255, 0.15);
    }

    /* ---------- Ring pulse behind icon (when cart has items) ---------- */
    .cart-link.has-items::before {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        border: 2px solid rgba(227, 30, 36, 0.4);
        animation: cart-ring-pulse 2.5s ease-out infinite;
        pointer-events: none;
        z-index: 0;
    }

@keyframes cart-ring-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    40% {
        opacity: 0.9;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* ---------- Badge — the star of the show ---------- */
.cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E31E24 0%, #C41920 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    border-radius: 10px;
    border: 2px solid #0a0e27;
    box-shadow: 0 2px 8px rgba(227, 30, 36, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    z-index: 3;
    transform-origin: center bottom;
    animation: cart-badge-idle 3s ease-in-out infinite;
}

/* ---------- Badge idle breathing ---------- */
@keyframes cart-badge-idle {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(227, 30, 36, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 3px 12px rgba(227, 30, 36, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    }
}

/* ---------- Badge pop animation (triggered on add) ---------- */
.cart-badge.pop {
    animation: cart-badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cart-badge-pop {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.8) rotate(-10deg);
        box-shadow: 0 6px 24px rgba(227, 30, 36, 0.9), 0 0 0 6px rgba(227, 30, 36, 0.15);
    }

    60% {
        transform: scale(0.9) rotate(4deg);
    }

    100% {
        transform: scale(1) rotate(0);
        box-shadow: 0 2px 8px rgba(227, 30, 36, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
}

/* ---------- Cart flight animation (added to body by JS) ---------- */
.cart-fly-dot {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #E31E24 60%, #C41920);
    box-shadow: 0 4px 16px rgba(227, 30, 36, 0.8), 0 0 0 2px rgba(255, 255, 255, 0.15) inset;
    z-index: 10000;
    pointer-events: none;
    will-change: transform, opacity;
}

/* ---------- Number roll (counter change) ---------- */
.cart-badge .badge-num {
    display: inline-block;
    will-change: transform, opacity;
}

    .cart-badge .badge-num.roll-out {
        animation: num-roll-out 0.25s ease-in forwards;
    }

    .cart-badge .badge-num.roll-in {
        animation: num-roll-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

@keyframes num-roll-out {
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes num-roll-in {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ---------- Empty cart: dim it, no pulse ---------- */
.cart-link:not(.has-items) {
    opacity: 0.75;
}

    .cart-link:not(.has-items) .cart-icon {
        background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .cart-link,
    .cart-link .cart-icon,
    .cart-badge,
    .cart-link.has-items::before {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

        .cart-badge.pop {
            animation: none !important;
        }

    .cart-fly-dot {
        display: none !important;
    }

    .cart-badge .badge-num.roll-out,
    .cart-badge .badge-num.roll-in {
        animation: none !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .cart-link {
        width: 100%;
        border-radius: 10px;
        justify-content: flex-start;
        padding: 0.6rem 1rem !important;
    }

        .cart-link .cart-icon {
            margin-right: 8px;
        }

        /* Show a text label on mobile */
        .cart-link::after {
            content: 'Cart';
            font-size: 0.95rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            -webkit-text-fill-color: currentColor;
        }

    .cart-badge {
        position: static;
        margin-left: auto;
        animation: none;
    }

    .cart-link.has-items::before {
        display: none;
    }
}
/* ============================================
   PREMIUM TOAST — glass, icon, progress bar
   ============================================ */

.toast-premium {
    background: rgba(15, 20, 45, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    overflow: hidden;
    min-width: 300px;
    max-width: 380px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    margin-bottom: 12px;
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(110%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-premium.hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    to {
        transform: translateX(110%);
        opacity: 0;
    }
}

.toast-premium-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    position: relative;
}

.toast-premium-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--toast-accent);
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--toast-accent-dark);
}

.toast-premium-body {
    flex: 1;
    min-width: 0;
}

.toast-premium-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--toast-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.toast-premium-msg {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.35;
    word-break: break-word;
}

.toast-premium-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.2s;
}

    .toast-premium-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

.toast-premium-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--toast-accent);
    transform-origin: left;
    animation: toastProgress 3.8s linear forwards;
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* ============================================
   WISHLIST HEART — pop + fill
   ============================================ */

.js-wishlist-toggle,
.btn-wishlist-lux {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .js-wishlist-toggle.is-wishlisted i,
    .btn-wishlist-lux.is-wishlisted i {
        color: #E31E24 !important;
    }

    .js-wishlist-toggle.wishlist-pop,
    .btn-wishlist-lux.wishlist-pop {
        animation: wishlistPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

@keyframes wishlistPop {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.4) rotate(-12deg);
    }

    70% {
        transform: scale(0.9) rotate(6deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

/* ============================================
   Reduced motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .toast-premium,
    .toast-premium.hiding {
        animation: none !important;
    }

    .toast-premium-progress {
        animation: none !important;
        display: none;
    }

    .wishlist-pop,
    .js-wishlist-toggle.wishlist-pop {
        animation: none !important;
    }
}
/*Endofcart*/


/* ---------- CTA button ---------- */
/* ============================================
   PREMIUM CTA — "Get a Quote"
   Silky, animated, high-visibility
   ============================================ */

.btn-quote-nav {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1.4rem;
    margin-left: 0.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    color: #ffffff !important;
    background: linear-gradient(135deg, #E31E24 0%, #C41920 50%, #A31015 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.4), /* tight glow */
    0 8px 25px rgba(227, 30, 36, 0.25), /* mid glow */
    0 0 0 1px rgba(255, 255, 255, 0.08) inset; /* inner ring */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, background-position 0.6s ease;
    animation: quote-glow-pulse 3s ease-in-out infinite;
}

/* ---------- Continuous pulsing glow ---------- */
@keyframes quote-glow-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(227, 30, 36, 0.4), 0 8px 25px rgba(227, 30, 36, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    }

    50% {
        box-shadow: 0 4px 20px rgba(227, 30, 36, 0.6), 0 8px 35px rgba(227, 30, 36, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    }
}

/* ---------- Shine sweep ---------- */
.btn-quote-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient( 90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100% );
    transform: skewX(-20deg);
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.btn-quote-nav:hover::before {
    left: 140%;
}

/* ---------- Hover: lift + intensify ---------- */
.btn-quote-nav:hover {
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.03);
    background-position: 100% 50%;
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.6), 0 15px 40px rgba(227, 30, 36, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

    .btn-quote-nav:hover i {
        transform: rotate(-12deg) scale(1.15);
    }

/* ---------- Active / click ---------- */
.btn-quote-nav:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.1s;
}

/* ---------- Focus (keyboard) ---------- */
.btn-quote-nav:focus-visible {
    outline: none;
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.6), 0 15px 40px rgba(227, 30, 36, 0.4), 0 0 0 4px rgba(227, 30, 36, 0.25), /* outer focus ring */
    0 0 0 6px rgba(255, 255, 255, 0.15); /* inner white ring */
}

/* ---------- Icon animation ---------- */
.btn-quote-nav i {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    position: relative;
}

/* ---------- Text stays above shine ---------- */
.btn-quote-nav span,
.btn-quote-nav i {
    position: relative;
    z-index: 2;
}

/* ---------- Pulsing ring around the CTA ---------- */
.btn-quote-nav::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50px;
    border: 2px solid rgba(227, 30, 36, 0.6);
    opacity: 0;
    z-index: -1;
    animation: quote-ring-pulse 3s ease-out infinite;
    pointer-events: none;
}

@keyframes quote-ring-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    40% {
        opacity: 0.8;
    }

    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* ---------- "NEW" shimmer text sweep (optional premium touch) ---------- */
@keyframes quote-text-shimmer {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ---------- Reduced motion support ---------- */
@media (prefers-reduced-motion: reduce) {
    .btn-quote-nav,
    .btn-quote-nav::after {
        animation: none !important;
    }

        .btn-quote-nav::before {
            transition: none !important;
        }

        .btn-quote-nav:hover,
        .btn-quote-nav:active {
            transform: none !important;
        }

            .btn-quote-nav:hover i {
                transform: none !important;
            }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 1199.98px) {
    .btn-quote-nav {
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
    }

        .btn-quote-nav span {
            display: none; /* icon-only on smaller screens */
        }

        .btn-quote-nav i {
            font-size: 1rem;
        }
}

@media (max-width: 991.98px) {
    .btn-quote-nav span {
        display: inline; /* show text again on mobile (vertical stack) */
    }

    .btn-quote-nav {
        width: 100%;
        justify-content: center;
        margin: 0.75rem 0;
    }

        /* Disable heavy animations on mobile for perf */
        .btn-quote-nav,
        .btn-quote-nav::after {
            animation: none;
        }
}

/* ---------- Dark mode friendly (future-proof) ---------- */
@media (prefers-color-scheme: dark) {
    .btn-quote-nav {
        background: linear-gradient(135deg, #FF2D35 0%, #E31E24 50%, #C41920 100%);
    }
}

.badge-24h {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #FFB800;
    color: #1B1464;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #0a0e27;
    animation: badge-bounce 2s ease-in-out infinite;
}

@keyframes badge-bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}
/*.btn-quote-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
    color: #fff !important;
    padding: 0.55rem 1.1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.35);
    margin-left: 0.25rem;
    white-space: nowrap;
}

    .btn-quote-nav:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(227, 30, 36, 0.5);
        color: #fff !important;
    }

    .btn-quote-nav.active {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    }
*/
/* ---------- Auth avatar ---------- */
.auth-profile-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 0.35rem 0.75rem !important;
}

.auth-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nav-accent-1), var(--nav-accent-2));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

    .auth-avatar.is-admin {
        background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
        box-shadow: 0 2px 6px rgba(227, 30, 36, 0.4);
    }

/* ---------- Desktop hover behavior ---------- */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu-premium,
    .nav-item.mega-dropdown:hover .mega-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0) !important;
        margin-top: 0.6rem;
    }

    .dropdown-menu-premium,
    .mega-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
    }

    /* For the mega menu specifically, keep the horizontal centering */
    .mega-dropdown:hover .mega-menu {
        transform: translateX(-50%) translateY(0) !important;
    }

    /* For right-aligned dropdowns, honor dropdown-menu-end */
    .dropdown-menu-premium.dropdown-menu-end {
        right: 0;
        left: auto;
    }
}

/* ---------- Mobile Toggler ---------- */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

    .navbar-toggler:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Animations ---------- */
@keyframes borderGlow {
    0% {
        border-color: rgba(102, 126, 234, 0.2);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    100% {
        border-color: rgba(240, 147, 251, 0.5);
        box-shadow: 0 6px 25px rgba(240, 147, 251, 0.5);
    }
}

/* ---------- Responsive — tablet / mobile ---------- */
@media (max-width: 1199.98px) {
    /* Hide the "Get a Quote" label on medium-large screens, keep icon */
    .btn-quote-nav span {
        display: none;
    }

    .btn-quote-nav {
        padding: 0.55rem 0.85rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(45, 42, 92, 0.98) 100%);
        backdrop-filter: blur(25px);
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1rem;
        max-height: 80vh;
        overflow-y: auto;
    }

    /* ✅ Mobile: keep labels visible, but stack items */
    .navbar-nav .nav-link {
        justify-content: flex-start;
        margin: 0.2rem 0;
        padding: 0.7rem 1rem !important;
        font-size: 0.95rem;
    }

    .mega-menu {
        position: static !important;
        transform: none !important;
        width: auto !important;
        padding: 1rem;
        margin-top: 0.5rem;
    }

    .mega-menu-column {
        margin-bottom: 1rem;
    }

    .mega-menu-title {
        text-align: left;
    }

    .dropdown-menu-premium {
        background: rgba(255, 255, 255, 0.04);
        border: none;
        box-shadow: none;
        padding: 0.5rem;
    }

    .dropdown-item {
        justify-content: flex-start;
    }

    .btn-quote-nav {
        margin: 0.5rem 0;
        justify-content: center;
    }

        .btn-quote-nav span {
            display: inline;
        }
}

@media (max-width: 767.98px) {
    :root {
        --navbar-height: 64px;
        --navbar-height-scrolled: 56px;
    }

    .brand-main {
        font-size: 1.1rem;
    }

    .brand-sub {
        font-size: 0.5rem;
    }

    .logo-orb {
        width: 40px;
        height: 40px;
    }

    .navbar-nav .nav-link {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.9rem;
    }
}

/* ---------- Small utility ---------- */
.nav-label {
    line-height: 1;
}

/* ============================================================
   PREMIUM MEGA MENU — silky, vibrant, animated
   ============================================================ */

/* ---------- Base mega menu container ---------- */
.mega-menu-premium {
    /* Inherits .mega-menu positioning from existing navbar.css */
    padding: 0 !important;
    min-width: 900px;
    overflow: hidden;
    background: radial-gradient(circle at 0% 0%, rgba(227, 30, 36, 0.08) 0%, transparent 40%), radial-gradient(circle at 100% 100%, rgba(102, 126, 234, 0.10) 0%, transparent 45%), linear-gradient(135deg, rgba(10, 14, 39, 0.99) 0%, rgba(26, 27, 75, 0.99) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform-origin: top center;
    /* Entrance animation */
    animation: mmEnter 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes mmEnter {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.mm-inner {
    padding: 32px 32px 0;
}

/* ---------- Grid row ---------- */
.mm-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
}

/* ---------- Each column ---------- */
.mm-col {
    position: relative;
    padding: 20px 20px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    /* Staggered entry */
    animation: mmColEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(var(--mm-i, 0) * 60ms + 100ms);
}

@keyframes mmColEnter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mm-col:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(227, 30, 36, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(227, 30, 36, 0.15);
}

/* ---------- Corner shine ---------- */
.mm-col-shine {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at top right, rgba(240, 147, 251, 0.15) 0%, transparent 60%);
    border-radius: 0 16px 0 0;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.mm-col:hover .mm-col-shine {
    opacity: 1;
}

/* ---------- Category header ---------- */
.mm-col-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    position: relative;
}

    /* Gradient underline that slides on hover */
    .mm-col-head::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        height: 2px;
        width: 30%;
        background: linear-gradient(90deg, #E31E24 0%, #F093FB 100%);
        border-radius: 2px;
        transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

.mm-col:hover .mm-col-head::after {
    width: 100%;
}

.mm-col-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.2), rgba(240, 147, 251, 0.15));
    border: 1px solid rgba(227, 30, 36, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FF7A7F;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.15);
}

.mm-col:hover .mm-col-icon {
    transform: rotate(-8deg) scale(1.1);
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.35), rgba(240, 147, 251, 0.25));
    box-shadow: 0 8px 20px rgba(227, 30, 36, 0.3);
}

.mm-col-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

/* ---------- Subcategory links ---------- */
.mm-col-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .mm-col-links li {
        margin: 0;
    }

    .mm-col-links a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        border-radius: 8px;
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.86rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

        .mm-col-links a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, #E31E24 0%, #F093FB 100%);
            transform: scaleY(0);
            transform-origin: center;
            transition: transform 0.3s ease;
            border-radius: 0 3px 3px 0;
        }

        .mm-col-links a:hover {
            background: rgba(227, 30, 36, 0.08);
            color: #fff;
            transform: translateX(4px);
        }

            .mm-col-links a:hover::before {
                transform: scaleY(1);
            }

/* Colored pulsing dot for each subcategory */
.mm-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(240, 147, 251, 0.5);
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.mm-col-links a:hover .mm-dot {
    background: #F093FB;
    box-shadow: 0 0 12px rgba(240, 147, 251, 0.8);
    transform: scale(1.3);
}

/* Arrow that slides in on hover */
.mm-item-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    transform: translateX(-6px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mm-col-links a:hover .mm-item-arrow {
    transform: translateX(0);
    opacity: 1;
    color: #FF7A7F;
}

/* ---------- "All category" link (highlighted) ---------- */
.mm-item-all a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    background: rgba(227, 30, 36, 0.06);
    margin-bottom: 4px;
}

    .mm-item-all a:hover {
        background: rgba(227, 30, 36, 0.15);
    }

    .mm-item-all a i:first-child {
        color: #FF7A7F;
        width: 14px;
        text-align: center;
    }

/* ---------- "View all" button ---------- */
.mm-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .mm-view-all:hover {
        background: linear-gradient(135deg, #E31E24, #C41920);
        border-color: transparent;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(227, 30, 36, 0.35);
        padding-right: 18px;
    }

    .mm-view-all i {
        transition: transform 0.3s ease;
        font-size: 0.65rem;
    }

    .mm-view-all:hover i {
        transform: translateX(3px);
    }

/* ---------- Footer strip ---------- */
.mm-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 32px;
    margin: 0 -32px;
    background: linear-gradient(90deg, rgba(227, 30, 36, 0.08) 0%, rgba(102, 126, 234, 0.08) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.mm-footer-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    font-weight: 500;
}

    .mm-footer-text i {
        color: #FFB800;
        font-size: 1rem;
        animation: mmBoltPulse 2s ease-in-out infinite;
    }

@keyframes mmBoltPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

.mm-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 100px;
    background: linear-gradient(135deg, #E31E24 0%, #B8141A 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 18px rgba(227, 30, 36, 0.35);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
}

    .mm-footer-cta:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 10px 28px rgba(227, 30, 36, 0.5);
        color: #fff;
    }

    .mm-footer-cta i {
        font-size: 0.7rem;
        transition: transform 0.3s ease;
    }

    .mm-footer-cta:hover i {
        transform: translateX(4px);
    }

/* ---------- Empty state ---------- */
.mm-empty {
    padding: 40px 20px;
    text-align: center;
}

.mm-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    animation: mmEmptyPulse 3s ease-in-out infinite;
}

@keyframes mmEmptyPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.mm-empty h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 6px;
}

.mm-empty p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* ---------- Custom scrollbar (if menu overflows) ---------- */
.mm-inner::-webkit-scrollbar {
    width: 6px;
}

.mm-inner::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.mm-inner::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #E31E24, #F093FB);
    border-radius: 3px;
}

    .mm-inner::-webkit-scrollbar-thumb:hover {
        background: #E31E24;
    }

/* Firefox scrollbar */
.mm-inner {
    scrollbar-width: thin;
    scrollbar-color: rgba(227, 30, 36, 0.5) transparent;
}

/* ---------- Responsive — mobile ---------- */
@media (max-width: 991.98px) {
    .mega-menu-premium {
        position: static !important;
        transform: none !important;
        min-width: auto;
        border-radius: 12px;
        margin-top: 8px;
    }

    .mm-inner {
        padding: 16px 16px 0;
    }

    .mm-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-bottom: 12px;
    }

    .mm-col {
        padding: 16px;
    }

    .mm-footer {
        flex-direction: column;
        text-align: center;
        margin: 0 -16px;
        padding: 16px;
    }

    .mm-footer-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .mega-menu-premium,
    .mm-col,
    .mm-col-icon,
    .mm-col-links a,
    .mm-dot,
    .mm-item-arrow,
    .mm-view-all,
    .mm-footer-cta,
    .mm-footer-text i,
    .mm-empty-icon {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

        .mm-col:hover,
        .mm-col:hover .mm-col-icon,
        .mm-col-links a:hover,
        .mm-view-all:hover,
        .mm-footer-cta:hover {
            transform: none !important;
        }
}

/* ============================================================
   SUPPORT MENU — emphasized Contact + soft CTA footer
   ============================================================ */
.support-menu {
    min-width: 280px;
    padding: 0.6rem;
}

/* Badge on "Contact Us" — "Fast" indicator */
.dropdown-item-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 100px;
    background: linear-gradient(135deg, #E31E24, #B8141A);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: fastBadgePulse 2.5s ease-in-out infinite;
}

@keyframes fastBadgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.4);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(227, 30, 36, 0);
    }
}

/* CTA-style dropdown item (bottom of the menu) */
.dropdown-item-cta {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 14px !important;
    margin-top: 4px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.12), rgba(227, 30, 36, 0.05));
    color: #fff !important;
    font-weight: 700 !important;
    border: 1px solid rgba(227, 30, 36, 0.25);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

    .dropdown-item-cta:hover {
        background: linear-gradient(135deg, #E31E24, #B8141A) !important;
        border-color: transparent;
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(227, 30, 36, 0.4);
    }

    .dropdown-item-cta i:last-child {
        transition: transform 0.3s;
    }

    .dropdown-item-cta:hover i:last-child {
        transform: translateX(4px);
    }

/* ============================================================
   NAV UTILITY GROUP — Cart + Auth cluster
   ============================================================ */
.nav-utility-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding-left: 12px;
    position: relative;
    z-index: 1;
}

    /* Subtle divider between main nav and utility group */
    .nav-utility-group::before {
        content: '';
        position: absolute;
        left: 0;
        top: 25%;
        height: 50%;
        width: 1px;
        background: linear-gradient( 180deg, transparent 0%, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0.15) 70%, transparent 100% );
    }

    /* Ensure dropdown inside group is positioned right-aligned */
    .nav-utility-group .dropdown-menu-end {
        right: 0;
        left: auto;
    }

/* ============================================================
   Responsive — utility group becomes full-width on mobile
   ============================================================ */
@media (max-width: 991.98px) {
    .nav-utility-group {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 8px;
        margin-left: 0;
        padding-left: 0;
        padding-top: 12px;
        margin-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

        .nav-utility-group::before {
            display: none;
        }

        .nav-utility-group > .nav-link,
        .nav-utility-group > .dropdown {
            width: 100%;
            position: relative !important;
            display: inline-flex;
            align-items: center;
        }
        .nav-utility-group .dropdown-toggle {
            position: relative;
            z-index: 2;
        }
        .nav-utility-group .dropdown-menu {
            position: absolute !important;
            top: calc(100% + 8px) !important;
            right: 0 !important;
            left: auto !important;
            transform: none !important;
            margin-top: 0 !important;
            z-index: 1100;
        }
}