/* Luxury Glassmorphism Header */
.nova-header {
    background-color: transparent !important;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 25px;
    transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
    box-shadow: none !important;
}

/* Completely hide legacy mmenu headers, title text "Menu", close icons (x), vertical & horizontal lines */
.mm-navbar,
.mm-btn_close,
.mm-btn_next,
.mm-btn_prev,
.mm-title,
.mm-close,
.mm-navbar-top,
.mm-navbar-bottom,
.mm-header,
.mm-header * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    border: none !important;
}

/* Remove all lines, borders, and pseudo-elements across header when not scrolled */
.nova-header:not(.scrolled),
.nova-header:not(.scrolled) *,
.nova-header:not(.scrolled) ::before,
.nova-header:not(.scrolled) ::after {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    outline: none !important;
}

body.dark-theme .nova-header:not(.scrolled) {
    background-color: transparent !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Scrolled Header State - Solid White Background */
.nova-header.scrolled {
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    padding: 10px 25px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.dark-theme .nova-header.scrolled {
    background-color: rgba(17, 17, 17, 0.96) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.nova-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

/* Logo Styling — 100% Crisp Vector Typography Brand Logo */
.nova-brand-logo-link {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    line-height: 1.1;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nova-brand-logo-link:hover {
    opacity: 0.92;
    transform: scale(1.02);
}

.nova-brand-main {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nova-brand-sub {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2.8px;
    color: #c5a059 !important;
    text-transform: uppercase;
    margin-top: 3px;
    white-space: nowrap;
}

/* 1. Default Transparent Top Header -> White Logo Text */
.nova-header:not(.scrolled) .nova-brand-main {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

/* 2. Light Mode Scrolled Down Header (Solid White Bar) -> Black Logo Text */
.nova-header.scrolled:not(.dark-theme) .nova-brand-main {
    color: #111111 !important;
    text-shadow: none !important;
}

/* 3. Dark Theme Always (Top or Scrolled) -> White Logo Text */
body.dark-theme .nova-brand-main,
body.dark-theme .nova-header .nova-brand-main,
body.dark-theme .nova-header.scrolled .nova-brand-main {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

.footer-brand {
    margin-bottom: 15px;
}

.footer-brand .nova-brand-main {
    font-size: 24px;
    color: #ffffff !important;
}

.footer-brand .nova-brand-sub {
    font-size: 9px;
    color: #c5a059 !important;
}

/* Main Navigation */
.nova-main-nav {
    display: flex;
    align-items: center;
}

.nova-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nova-nav-list > li > a {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: color 0.25s ease, text-shadow 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.nova-header.scrolled .nova-nav-list > li > a {
    color: #111111 !important;
    text-shadow: none !important;
}

body.dark-theme .nova-nav-list > li > a,
body.dark-theme .nova-header.scrolled .nova-nav-list > li > a {
    color: #f7f6f2 !important;
    text-shadow: none !important;
}

.nova-nav-list > li.active > a,
.nova-nav-list > li:hover > a {
    color: var(--accent-gold, #c5a059) !important;
}

/* Widescreen Desktop Dropdown & Mega Menu Hover Rules */
@media (min-width: 992px) {
    .nova-has-dropdown {
        position: relative;
    }

    .nova-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: var(--bg-card, #ffffff);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        list-style: none;
        padding: 12px 0;
        margin: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(12px);
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        border-radius: 12px;
        z-index: 1100;
        border: 1px solid rgba(0, 0, 0, 0.06);
        display: block;
    }

    body.dark-theme .nova-dropdown {
        background: #1a1a1a;
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    }

    .nova-has-dropdown:hover > .nova-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .nova-dropdown li {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nova-dropdown li a {
        display: flex;
        align-items: center;
        padding: 10px 20px;
        color: var(--text-title, #111111) !important;
        text-decoration: none !important;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.3px;
        transition: all 0.25s ease;
        border-radius: 8px;
        margin: 2px 6px;
    }

    body.dark-theme .nova-dropdown li a {
        color: #eeeeee !important;
    }

    .nova-dropdown li a:hover {
        background: rgba(197, 160, 89, 0.12) !important;
        color: var(--accent-gold, #c5a059) !important;
        padding-left: 24px;
    }

    .nova-has-megamenu {
        position: static !important;
    }

    .nova-megamenu-dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(15px);
        width: 920px;
        max-width: 95vw;
        background: var(--bg-card, #ffffff);
        border-radius: 16px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
        display: flex;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1100;
        border: 1px solid rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    body.dark-theme .nova-megamenu-dropdown {
        background: #171717;
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    }

    .nova-has-megamenu {
        position: relative;
    }

    .nova-has-megamenu::after {
        content: '';
        position: absolute;
        top: 100%;
        left: -30px;
        right: -30px;
        height: 30px;
        display: block;
        z-index: 1099;
    }

    .nova-megamenu-dropdown::before {
        content: '';
        position: absolute;
        top: -25px;
        left: 0;
        width: 100%;
        height: 25px;
        display: block;
    }

    .nova-has-megamenu:hover > .nova-megamenu-dropdown,
    .nova-megamenu-dropdown:hover {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(0) !important;
    }
}

/* Left Sidebar Tabs */
.megamenu-sidebar {
    width: 220px;
    background: rgba(0, 0, 0, 0.02);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding: 20px 0;
    flex-shrink: 0;
    max-height: 480px;
    overflow-y: auto;
}

body.dark-theme .megamenu-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border-right-color: rgba(255, 255, 255, 0.08);
}

.megamenu-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.megamenu-sidebar li a {
    display: block;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #666666;
    text-transform: uppercase;
    text-decoration: none !important;
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
}

body.dark-theme .megamenu-sidebar li a {
    color: #aaaaaa;
}

.megamenu-sidebar li.active a,
.megamenu-sidebar li:hover a,
.megamenu-sidebar li a:hover {
    color: var(--accent-gold, #c5a059) !important;
    border-left-color: var(--accent-gold, #c5a059);
    background: rgba(197, 160, 89, 0.06);
}

/* Mega Menu Content & Tab Panes */
.megamenu-content {
    flex: 1;
    padding: 30px 35px;
    position: relative;
}

.megamenu-tab-pane {
    display: none;
    animation: megaFadeIn 0.3s ease forwards;
}

.megamenu-tab-pane.active {
    display: block;
}

@keyframes megaFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.megamenu-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.megamenu-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.megamenu-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 110px;
    display: block;
    text-decoration: none !important;
}

.megamenu-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.megamenu-gallery-item:hover img {
    transform: scale(1.08);
}

.megamenu-gallery-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.megamenu-col-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-title, #111111);
    text-transform: uppercase;
    margin: 0 0 18px 0;
    padding-bottom: 8px;
    position: relative;
}

.megamenu-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--accent-gold, #c5a059);
}

.megamenu-product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    transition: transform 0.25s ease;
}

.megamenu-product-item:hover {
    transform: translateX(4px);
}

.megamenu-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-theme .megamenu-thumb {
    border-color: rgba(255, 255, 255, 0.1);
}

.megamenu-prod-info h5 {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-title, #111111);
    line-height: 1.3;
}

.megamenu-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #777777;
}

body.dark-theme .megamenu-desc {
    color: #aaaaaa;
}

/* Right Tagcloud Container */
.megamenu-tags {
    width: 240px;
    padding: 30px 25px;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

body.dark-theme .megamenu-tags {
    border-left-color: rgba(255, 255, 255, 0.08);
}

.tagcloud-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #555555;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

body.dark-theme .tag-pill {
    color: #cccccc;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.tag-pill:hover {
    background: var(--accent-gold, #c5a059);
    color: #111111 !important;
    border-color: var(--accent-gold, #c5a059);
}

/* Header Action Buttons */
.nova-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nova-action-icon {
    color: #ffffff !important;
    font-size: 17px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.nova-header.scrolled .nova-action-icon {
    color: #111111 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

body.dark-theme .nova-action-icon,
body.dark-theme .nova-header.scrolled .nova-action-icon {
    color: #f7f6f2 !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.nova-action-icon:hover {
    background: var(--accent-gold, #c5a059) !important;
    color: #111111 !important;
    transform: translateY(-2px);
}

.nova-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-gold, #c5a059);
    color: #111111;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

/* Mobile Navigation Toggle */
.nova-mobile-toggle {
    display: none;
    font-size: 22px;
    color: #ffffff !important;
    text-decoration: none !important;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25) !important;
}

.nova-header.scrolled .nova-mobile-toggle {
    color: #111111 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

body.dark-theme .nova-mobile-toggle,
body.dark-theme .nova-header.scrolled .nova-mobile-toggle {
    color: #f7f6f2 !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Responsive Mobile Header Styling & Alignment */
@media (max-width: 991px) {
    .nova-header {
        padding: 8px 12px !important;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10000 !important;
    }

    /* 1. LIGHT MODE MOBILE HEADER (Top & Scrolled) */
    body:not(.dark-theme) .nova-header {
        background: #ffffff !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
    }

    body:not(.dark-theme) .nova-brand-main {
        color: #111111 !important;
        text-shadow: none !important;
        font-size: 15px !important;
        letter-spacing: 0.8px !important;
    }

    body:not(.dark-theme) .nova-mobile-toggle {
        color: #111111 !important;
        background: rgba(0, 0, 0, 0.04) !important;
    }

    body:not(.dark-theme) .nova-action-icon {
        color: #111111 !important;
        background: rgba(0, 0, 0, 0.04) !important;
    }

    /* 2. DARK MODE MOBILE HEADER (Top & Scrolled) */
    body.dark-theme .nova-header {
        background: #111111 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    }

    body.dark-theme .nova-brand-main {
        color: #ffffff !important;
        text-shadow: none !important;
        font-size: 15px !important;
        letter-spacing: 0.8px !important;
    }

    body.dark-theme .nova-mobile-toggle {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }

    body.dark-theme .nova-action-icon {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }

    /* Common Layout & Spacing */
    .nova-header-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 6px !important;
    }

    .nova-mobile-toggle {
        display: flex !important;
        order: 1 !important;
        align-items: center;
        justify-content: center;
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
        cursor: pointer !important;
        position: relative;
        z-index: 10002 !important;
        flex-shrink: 0 !important;
        border-radius: 8px;
        border: none !important;
    }

    .nova-logo {
        order: 2 !important;
        flex: 1 1 auto !important;
        display: flex !important;
        justify-content: center !important;
        text-align: center !important;
        overflow: hidden !important;
        padding: 0 4px !important;
    }

    .nova-brand-sub {
        font-size: 6.5px !important;
        letter-spacing: 1.2px !important;
        margin-top: 1px !important;
        color: #c5a059 !important;
    }

    .nova-header-actions {
        order: 3 !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .nova-action-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
        border-radius: 50% !important;
    }

    .nova-main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 80vh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        background: var(--bg-card, #ffffff);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        z-index: 10001 !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .nova-main-nav::-webkit-scrollbar {
        width: 5px;
    }

    .nova-main-nav::-webkit-scrollbar-thumb {
        background: var(--accent-gold, #c5a059);
        border-radius: 4px;
    }

    body.dark-theme .nova-main-nav {
        background: #171717 !important;
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .nova-main-nav.active {
        display: block !important;
    }

    .nova-nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 10px 0;
    }

    .nova-nav-list > li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    body.dark-theme .nova-nav-list > li {
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }

    .nova-nav-list > li > a {
        padding: 14px 25px;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 1px;
        color: var(--text-title, #111111) !important;
        justify-content: space-between;
    }

    body.dark-theme .nova-nav-list > li > a {
        color: #ffffff !important;
    }

    .nova-dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(0, 0, 0, 0.03);
        border: none;
        border-radius: 0;
        padding: 6px 0;
    }

    body.dark-theme .nova-dropdown {
        background: rgba(255, 255, 255, 0.03);
    }

    .nova-dropdown.show {
        display: block;
    }

    .nova-dropdown li a {
        display: flex;
        align-items: center;
        padding: 11px 35px;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-title, #111111) !important;
        text-decoration: none !important;
        transition: all 0.2s ease;
    }

    body.dark-theme .nova-dropdown li a {
        color: #eeeeee !important;
    }

    .nova-dropdown li a:hover,
    .nova-dropdown li a:active {
        color: var(--accent-gold, #c5a059) !important;
        padding-left: 40px;
    }

    /* Mobile Mega Menu Responsive Accordion */
    .nova-has-megamenu {
        position: relative !important;
        width: 100%;
    }

    .nova-megamenu-dropdown {
        position: static;
        top: auto;
        left: auto;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        display: none;
        flex-direction: column;
        opacity: 1;
        visibility: visible;
        background: rgba(0, 0, 0, 0.02);
    }

    body.dark-theme .nova-megamenu-dropdown {
        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .nova-megamenu-dropdown.show {
        display: flex !important;
    }

    .megamenu-sidebar {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding: 10px;
        background: transparent;
    }

    .megamenu-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .megamenu-sidebar li {
        margin: 0;
        border-bottom: none !important;
    }

    .megamenu-sidebar li a {
        padding: 6px 12px;
        font-size: 11px;
        border-left: none;
        border-radius: 6px;
        background: rgba(0, 0, 0, 0.04);
    }

    body.dark-theme .megamenu-sidebar li a {
        background: rgba(255, 255, 255, 0.06);
    }

    .megamenu-sidebar li.active a,
    .megamenu-sidebar li a:hover {
        border-left-color: transparent;
        background: var(--accent-gold, #c5a059) !important;
        color: #111111 !important;
    }

    .megamenu-content {
        padding: 15px;
    }

    .megamenu-grid-2col {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .megamenu-product-item {
        margin-bottom: 10px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 8px;
    }

    body.dark-theme .megamenu-product-item {
        background: rgba(255, 255, 255, 0.04);
    }
}

/* Desktop Navigation Overrides (min-width: 992px) */
@media (min-width: 992px) {
    .nova-main-nav {
        display: flex !important;
        position: static !important;
        width: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        border: none !important;
        max-height: none !important;
    }

    .nova-nav-list {
        display: flex !important;
        flex-direction: row !important;
        gap: 30px !important;
        padding: 0 !important;
        width: auto !important;
    }

    .nova-nav-list > li {
        width: auto !important;
        border-bottom: none !important;
    }

    .nova-mobile-toggle {
        display: none !important;
    }
}