﻿/* =========================================
   GLOWING THEME REDESIGN - HEADER
   ========================================= */

/* Global Font Override for Header */
.glowing-header,
.header-top-bar {
    font-family: 'Urbanist', sans-serif !important;
}

/* Legacy variables removed */

/* Top Bar */
.header-top-bar {
    background-color: var(--color-primary);
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
    font-size: 13px;
    color: var(--color-accent);
    font-weight: 600;
    overflow: hidden;
}

.top-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-track span {
    display: inline-block;
    padding: 0 40px;
    position: relative;
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Separator dot after each item */
.marquee-track span::after {
    content: "•";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-action);
    opacity: 0.8;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    /* Matched 1200px container */
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* FontAwesome Fixes in Top Bar */
.top-bar-left i,
.currency-lang-selector i {
    font-size: 14px;
    color: #4b5563;
}

.top-bar-left a:hover i {
    color: #000;
}

.top-bar-center {
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 1px;
    color: #111;
}

.currency-lang-selector a {
    margin-left: 15px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Main Header Container */
.glowing-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background: #fff;
    width: 100%;
    margin: 0;
    max-width: none !important;
    /* Force full width */
    height: auto;
    min-height: auto;
    transition: all 0.3s ease;
}

/* Parent Wrappers */
.header,
.desktop-header-wrapper,
.header-container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.stacked-header .header-top-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* Align logo left, icons right */
    align-items: center;
    padding: 20px 30px;
    /* 30px side padding as requested */
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

/* Make logo larger by default */
.stacked-header .logo-image {
    max-height: 350px !important;
    /* Increased significantly */
    height: auto;
    transition: all 0.3s ease;
    margin: 0;
    /* Align strictly to edge */
}

.stacked-header .brand-text {
    font-size: 100px !important;
    /* Increased significantly */
    line-height: 1;
    display: block;
    margin: 0;
}

.site-logo,
.site-actions {
    flex-shrink: 0;
    /* Prevent shrinking */
}

.stacked-header .header-bottom-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 30px 15px 30px;
    /* Match 30px side spacing */
    border-top: 1px solid transparent;
}

/* Nav is effectively centered relative to the bottom row if we want, 
   but user image showed links on left/center and icons on right. 
   Using flex-grow on nav to push icons to right could work 
   if we want nav truly centered in the remaining space.
   For now: Nav Left/Center, Icons Far Right as per standard row behavior.
*/
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    /* Take space */
    justify-content: center;
    /* Center nav in the bottom bar like the reference image seems to show (or left?) user said "logonun altında ise kategorilerin olduğu sayfalar" - usually centered */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
    /* Do not shrink */
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    padding: 0;
}

/* Sticky & Scroll State */
.header.sticky-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Scrolled State: Cream Background - NO POSITION CHANGE */
.header.scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    /* Position stays sticky, no change to fixed */
}

/* Hide Marquee on Scroll */
.header.scrolled .header-top-bar {
    display: none !important;
}

.header.scrolled .glowing-header {
    background-color: transparent !important;
    /* Let parent bg show through */
    box-shadow: none;
    /* Remove shadow from inner container */
    max-width: 1400px;
    /* Maintain content width constraint */
    padding: 0;
}

.header.scrolled .site-top-row,
.header.scrolled .header-top-row {
    padding: 2px 30px !important;
}

.header.scrolled .logo-image,
.header.scrolled .site-logo img {
    max-height: 100px !important;
    /* Maintain logo size */
}

.header.scrolled .brand-text {
    font-size: 72px !important;
    /* Maintain text size */
}

/* Maintain bottom row gap in sticky but tighter */
.header.scrolled .header-bottom-row,
.header.scrolled .site-nav-row {
    padding: 2px 40px !important;
}

/* Styles specifically for internal logo structure */
.slide-content h2 {

    font-family: 'Urbanist', sans-serif;
    font-size: 68px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--color-white);
    text-transform: capitalize;
}

.slide-subtitle {
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    color: var(--color-white);
}

.cta-button {
    display: inline-block;
    padding: 0;
    background: transparent;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 0;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    border-bottom: 1px solid var(--color-white);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: none;
    background: transparent;
    color: var(--color-white);
    opacity: 0.8;
}

/* Animated Yakut Logo - Premium Ruby Design (Global) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

.brand-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    line-height: 1;
    position: relative;
    padding: 10px;
}

.brand-text {
    font-family: 'Cinzel', serif !important;
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    background: linear-gradient(to bottom, #e01e37, #640d14);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0px 2px 0px #4a0404);
}

.brand-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 20%,
            rgba(255, 255, 255, 0.1) 40%,
            rgba(255, 215, 0, 0.4) 50%,
            rgba(255, 255, 255, 0.1) 60%,
            transparent 80%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: nobleShine 8s linear infinite;
}

.tagline-text {
    font-family: 'Cinzel', serif !important;
    font-size: 13px;
    color: #000;
    letter-spacing: 10px;
    font-weight: 400;
    margin-top: 5px;
    text-transform: uppercase;
    margin-left: 8px;
    opacity: 0.8;
}

@keyframes nobleShine {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Menus */
.main-nav.left-nav,
.main-nav.right-nav {
    display: flex;
    gap: 15px;
    /* Reduced from 30px */
}

.nav-item {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
    /* Reduced from 14px */
    /* Slightly larger for emphasis */
    text-transform: capitalize;
    letter-spacing: 0px;
    /* Reduced from 0.5px */
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

.nav-item:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s;
}

.nav-item:hover {
    color: var(--color-primary);
}

.nav-item:hover:after {
    width: 100%;
}

/* Dropdown Navigation */
.nav-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-item.has-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-dropdown-wrapper:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 10px 0;
    /* Use display: block with opacity/visibility for smooth transitions */
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown-wrapper:hover .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--color-accent);
    color: var(--color-primary-light);
    padding-left: 25px;
}

/* Right Actions & Badge */
.action-btn {
    position: relative;
    /* Essential for badge positioning */
    background: transparent;
    border: none;
    padding: 0;
    color: #1a1a1a;
    transition: transform 0.2s;
    cursor: pointer;
    display: inline-flex;
    /* Helps with relative positioning bounds */
}

.action-btn:hover {
    color: #d62828;
    transform: translateY(-2px);
}

.action-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.count-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-primary);
    color: var(--color-accent);
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
    pointer-events: none;
    /* Prevent interference */
}

/* Mobile */
/* =========================================
   NEW HEADER STRUCTURE STYLES
   ========================================= */

/* Desktop Wrapper - Hide on Mobile */
.desktop-header-wrapper {
    display: block;
}

/* Mobile Wrapper - Hide on Desktop */
.mobile-header-wrapper {
    display: none;
}

@media (max-width: 991px) {
    .desktop-header-wrapper {
        display: none !important;
    }

    .mobile-header-wrapper {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        /* Fixed Height */
        background: #ffffff;
        z-index: 9999;
        border-bottom: 1px solid var(--color-primary);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .mobile-header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        padding: 0 15px;
        position: relative;
        border-bottom: none;
    }

    /* 1. Menu Toggle */
    .mobile-header-wrapper .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        padding: 0;
        width: 30px;
        touch-action: manipulation;
        cursor: pointer;
    }

    .mobile-header-wrapper .menu-toggle span {
        width: 100%;
        height: 2px;
        background: #1a1a1a;
        transition: all 0.3s;
    }

    /* 2. Logo (Absolute Center) */
    .mobile-header-wrapper .mobile-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-header-wrapper .mobile-logo img {
        height: 100%;
        width: auto;
        max-height: 115px;
        object-fit: contain;
        display: block;
    }

    .brand-text-mobile {
        font-family: 'Cinzel', serif;
        font-size: 24px;
        font-weight: 700;
        color: #e01e37;
    }

    /* 3. Icons (Right) */
    .mobile-header-wrapper .mobile-icons {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .mobile-header-wrapper .action-btn {
        position: relative;
        color: #1a1a1a;
        display: flex;
        align-items: center;
    }

    .mobile-header-wrapper .count-badge {
        position: absolute;
        top: -5px;
        right: -8px;
        background: var(--color-primary);
        color: var(--color-accent);
        font-size: 10px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Body Compensation */
    body {
        padding-top: 70px;
        /* Push content down */
    }
}

@media (max-width: 991px) {
    .header-top-bar {
        display: none;
    }

    .glowing-header {
        padding: 10px 15px !important;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
        margin-bottom: 0 !important;
        position: fixed;
        /* Fix header to top */
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        justify-content: space-between;
        /* position: relative; */
        background: #fff !important;
        /* Ensure white background */
    }

    /* Fixed Content Overlap on Homepage - Add padding to push content down */
    .anasayfa-page .bubs-homepage-wrapper {
        padding-top: 90px !important;
        /* Increased to match taller header */
        margin-top: 0 !important;
    }

    /* Force header to not push content down too much if relative */
    .header.sticky-bar {
        margin-bottom: 0 !important;
    }

    /* Ensure slider starts after header */
    .hero-hero-slider {
        margin-top: 0 !important;
    }

    .header-left-section,
    .header-right-section {
        flex: initial;
        width: auto;
        padding: 0;
        justify-content: flex-start;
    }

    /* Absolute Center Logo on Mobile */
    .header-center-section {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        width: auto;
        padding: 0;
    }

    /* Scale down logo text */
    .brand-text {
        font-size: 28px !important;
        letter-spacing: 1px !important;
    }

    .tagline-text {
        font-size: 10px !important;
        letter-spacing: 4px !important;
        margin-left: 2px !important;
    }

    /* Adjust Icons */
    .header-actions {
        gap: 12px;
    }

    .action-btn svg {
        width: 20px;
        height: 20px;
    }

    .header-left-section .main-nav,
    .header-right-section .main-nav,
    .search-text {
        display: none;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        padding: 0;
        margin-right: 15px;
        /* Space from search icon if visible */
    }

    .menu-toggle span {
        width: 22px;
        height: 2px;
        background: #000;
    }

    /* FORCE UNIFICATION: Ensure Homepage Header Matches Category Header Exactly */
    body.anasayfa-page header.header,
    body.anasayfa-page .glowing-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        background: #fff !important;
        background-color: #ffffff !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 9999 !important;
        border-bottom: 1px solid #e5e5e5 !important;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
        margin-bottom: 0 !important;
        height: auto !important;
        padding: 20px 15px !important;
        /* Increased padding */
    }

    body.anasayfa-page .brand-text {
        font-family: 'Cinzel', serif !important;
        font-size: 28px !important;
        letter-spacing: 1px !important;
        /* Fallback to solid color if gradient fails or is invisible */
        color: var(--color-primary) !important;
        background: none !important;
        -webkit-text-fill-color: var(--color-primary) !important;
    }

    body.anasayfa-page .tagline-text {
        color: var(--color-primary) !important;
        font-size: 10px !important;
        letter-spacing: 4px !important;
    }

    /* Ensure Icons are consistent */
    body.anasayfa-page .action-btn,
    body.anasayfa-page .action-btn i,
    body.anasayfa-page .action-btn svg {
        color: var(--color-primary) !important;
        fill: none !important;
        stroke: var(--color-primary) !important;
    }

    /* FORCE LOGO IMAGE VISIBILITY & SIZING */
    body.anasayfa-page .logo-image,
    body.anasayfa-page .header-center-section img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: 40px !important;
        min-height: 20px !important;
        /* Ensure min height */
        width: auto !important;
        z-index: 10000 !important;
        /* Add shadow in case it is a white logo on white bg */
        filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));
    }

    /* Ensure styles apply to the link container too */
    body.anasayfa-page .header-center-section a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
    }
}

/* =========================================
   MOBILE MENU STYLES
   ========================================= */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 10001;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.4s ease, opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
}

.mobile-menu.active {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
    /* Prevent header from shrinking */
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-accent);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--color-primary);
}

.mobile-menu-close:hover {
    background: var(--color-primary);
    color: #fff;
}

.mobile-nav {
    padding: 20px 20px 80px 20px;
    /* Extra bottom padding */
    width: 100%;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    overscroll-behavior: contain;
}

.mobile-nav-item {
    display: block;
    padding: 14px 24px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background 0.2s ease;
}

.mobile-nav-item:hover {
    background: #fafafa;
}

/* Mobile Accordion */
.mobile-nav-accordion {
    border-bottom: 1px solid #f3f3f3;
}

.mobile-nav-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-parent .mobile-nav-item {
    flex: 1;
    border-bottom: none;
}

.mobile-accordion-toggle {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.mobile-accordion-toggle svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-accordion.open .mobile-accordion-toggle svg {
    transform: rotate(180deg);
}

.mobile-nav-children {
    display: none;
    background: #fafafa;
    transition: none;
}

.mobile-nav-accordion.open .mobile-nav-children {
    display: block;
}

.mobile-nav-child {
    display: block;
    padding: 11px 24px 11px 40px;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.2s ease;
}

.mobile-nav-child:last-child {
    border-bottom: none;
}

.mobile-nav-child:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

/* =========================================
   SITE STYLE HEADER - NEW DESIGN
   ========================================= */

/* Main Container */
.site-header {
    display: flex;
    flex-direction: column;
    background: #fff;
    width: 100%;
    max-width: 100%;
    padding: 0;
    min-height: auto;
}

/* Top Row: Logo + Search + Icons */
.site-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 30px;
    gap: 30px;
    border-bottom: none;
    width: 100%;
    box-sizing: border-box;
}

/* Logo */
.site-logo {
    flex: 0 0 auto;
}

.site-logo a {
    display: block;
}

.site-logo img {
    max-height: 100px;
    width: auto;
}

/* Search Bar */
.site-search {
    flex: 1;
    max-width: 650px;
}

.site-search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}

.site-search-form input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 14px;
    outline: none;
    color: #333;
    background: transparent;
}

.site-search-form input::placeholder {
    color: #888;
}

.site-search-btn {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.site-search-btn:hover {
    background: var(--color-accent-hover);
}

/* Action Items (Right Side) */
.site-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 0 0 auto;
}

.site-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    position: relative;
    transition: color 0.2s ease;
}

.site-action-item:hover {
    color: var(--color-primary);
}

.site-action-item svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
    margin-bottom: 4px;
}

.site-action-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.site-badge {
    position: absolute;
    top: -5px;
    right: 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Row */
.site-nav-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px 40px;
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
    box-sizing: border-box;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.site-nav-item {
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    position: relative;
    transition: color 0.2s ease;
}

.site-nav-item:hover {
    color: var(--color-primary);
}

.site-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.site-nav-item:hover::after {
    width: 100%;
}

/* Highlighted Nav Item (Discount) */
.site-nav-highlight {
    color: var(--color-accent) !important;
    font-weight: 700;
}

/* Dropdown Adjustments for SITE */
.site-nav .nav-dropdown-wrapper {
    position: relative;
}

.site-nav .nav-dropdown-wrapper .site-nav-item.has-dropdown::after {
    display: none;
}

.site-nav .dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

.site-nav .nav-dropdown-wrapper:hover .dropdown-menu {
    transform: translateX(-50%) translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .site-top-row {
        padding: 15px 20px;
        gap: 20px;
    }

    .site-nav-row {
        padding: 10px 20px;
    }

    .site-nav {
        gap: 15px;
    }

    .site-nav-item {
        font-size: 12px;
    }

    .site-actions {
        gap: 20px;
    }
}

@media (max-width: 991px) {

    .site-header,
    .site-top-row,
    .site-nav-row {
        display: none !important;
    }
}

/* New Search Bar Styles */
.site-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    /* Remove gap to join elements */
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 3px;
    height: 48px;
    /* Increase height */
}

.search-input-field {
    background-color: #fff !important;
    /* White background for input */
    border: 1px solid #ccc !important;
    /* Darker border for visibility */
    border-right: none !important;
    /* No border between input and button */
    border-radius: 3px 0 0 3px !important;
    /* Left rounded corners only */
    padding: 0 15px;
    height: 100%;
    width: 100%;
    color: #555;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.search-input-field:focus {
    border-color: #ddd;
}

.search-input-field::placeholder {
    color: #999;
}

.site-search-btn {
    background-color: var(--color-primary);
    /* Use primary brand color */
    color: #fff;
    border: none;
    border-radius: 0 3px 3px 0 !important;
    /* Right rounded corners only */
    padding: 0 30px;
    height: 100%;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.site-search-btn:hover {
    background-color: var(--color-primary-light);
}

/* =========================================
   MEGA MENU STYLES - ROBUST FIX
   ========================================= */

/* 1. Reset Positioning Contexts */
/* Ensure the top-level wrappers are relative and full width */
.header,
.desktop-header-wrapper {
    position: relative !important;
    width: 100% !important;
    overflow: visible !important;
}

/* Ensure all intermediate containers are static so they don't trap the absolute menu */
.nav-dropdown-wrapper,
.site-nav,
.header-bottom-row,
.site-nav-row,
.glowing-header,
.header-container {
    position: static !important;
    transform: none !important;
    /* Critical: transform creates a containing block even on static elements */
}

/* 2. Mega Menu Panel */
.dropdown-menu.mega-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    /* Spans full width of .header */
    height: auto;

    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #f1f1f1;

    padding: 40px 0;
    margin: 0;

    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10000;
    /* Highest priority */

    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* Fix hover gap */
.dropdown-menu.mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    /* Bridge the gap */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.nav-dropdown-wrapper:hover .dropdown-menu.mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* 3. Grid Layout */
.mega-menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Center align all columns */
    gap: 30px;
    /* Reduced gap from 40px */

    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    /* Match header padding */
    width: 100%;
}

.mega-menu-column {
    flex: 0 0 auto;
    /* Do not stretch */
    width: 220px;
    /* Text alignment width */
}

/* 4. Content Styling (High Contrast) */
.mega-menu-title {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    /* Force black */
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: block;
    text-transform: uppercase;
    text-decoration: none;
}

.mega-menu-title:hover {
    color: var(--color-accent, #d62828);
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 8px;
}

.mega-menu-item {
    font-family: var(--font-primary, 'Urbanist', sans-serif);
    font-size: 14px;
    color: #444444;
    /* Force dark gray */
    text-decoration: none;
    display: block;
    transition: transform 0.2s, color 0.2s;
}

.mega-menu-item:hover {
    color: var(--color-accent, #d62828);
    transform: translateX(5px);
}

/* =========================================
   MOBILE MENU EXTENSION (GRANDCHILDREN)
   ========================================= */

.mobile-nav-sub-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-sub-accordion .mobile-nav-child {
    border-bottom: none !important;
    /* Remove border from link as parent wrapper has it */
    flex: 1;
}

.mobile-sub-accordion-toggle {
    background: none;
    border: none;
    width: 44px;
    /* Increased touch target */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: transform 0.3s ease;
}

.mobile-nav-sub-accordion.open>.mobile-nav-sub-parent .mobile-sub-accordion-toggle {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.mobile-nav-grandchildren {
    display: none;
    background: rgba(0, 0, 0, 0.02);
    padding: 0;
}

.mobile-nav-sub-accordion.open .mobile-nav-grandchildren {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-nav-grandchild {
    display: block;
    padding: 12px 20px 12px 35px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    font-family: var(--font-primary, 'Urbanist', sans-serif);
}

.mobile-nav-grandchild:last-child {
    border-bottom: none;
}

.mobile-nav-grandchild:hover {
    color: var(--color-accent);
    background: rgba(0, 0, 0, 0.04);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   MODERN NAVBAR REDESIGN OVERRIDES
   ========================================= */

/* 1. Header Layout & Background */
.glowing-header {
    box-shadow: 0 1px 0 #f0f0f0;
    /* Very subtle divider */
}

/* 2. Actions Area (Icons) */
.site-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Consistent spacing */
}

.site-action-item {
    color: #1a1a1a;
    /* Dark grey/black for modern look */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 5px;
}

.site-action-item:hover {
    color: var(--color-primary);
    /* Use theme color on hover */
    transform: translateY(-2px);
}

.site-action-item svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

/* Badge Styling Update */
.site-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background-color: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1px solid #fff;
    /* Clean separation */
}

/* 3. Search Bar - Minimalist */
.site-search-form {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input-field {
    width: 100%;
    border: 1px solid #e5e5e5;
    background: #f9f9f9;
    border-radius: 50px;
    /* Soft rounded pill shape */
    padding: 10px 45px 10px 20px;
    /* Right padding for button */
    font-size: 14px;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.search-input-field:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(93, 0, 30, 0.05);
    /* Subtle focus ring */
    outline: none;
}

.site-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 40px;
    width: auto;
    height: 34px;
    /* Fit inside input */
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: all 0.3s;
}

.site-search-btn:hover {
    background: var(--color-primary-light);
    color: #fff;
}

/* 4. Navigation (Bottom Row) - Modern Typography */
.site-nav-item {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.site-nav-item:hover {
    color: var(--color-primary);
}

/* Remove default heavy underlines if any, add simple one */
.site-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.site-nav-item:hover::after {
    width: 100%;
}

/* Adjust Icons Layout */
.site-actions {
    gap: 15px;
    /* Refined spacing */
}

/* =========================================
   COMPACT HEADER OVERRIDES
   ========================================= */

/* Lock top row */
.site-top-row {
    position: relative;
    display: flex !important;
    align-items: center;
    height: 80px;
    padding: 0 30px !important;
}

/* Logo area: left-center positioned */
.navbar-logo-area {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: 20px;
}

.navbar-logo-area a {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-logo-area img {
    max-height: 120px;
    height: auto;
    object-fit: contain;
}

/* Main area: icons pushed to right */
.navbar-main-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    min-width: 0;
}

.navbar-logo-area,
.site-actions {
    position: relative;
    z-index: 20 !important;
}

/* Search absolutely centered */
.site-search {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 650px;
    /* Reduced from 750px */
    margin: 0;
    z-index: 10;
    pointer-events: none;
    /* let clicks pass through wrapper if needed, but form needs events */
}

/* Enable pointer events on form */
/* Enable pointer events on form */
.site-search-form {
    pointer-events: auto;
    max-width: 100% !important;
    /* let wrapper control max-width */
    width: 100%;
    display: flex;
    align-items: stretch;
    background: #fff;
    /* Clean white background */
    border: 1px solid #e1e1e1;
    /* Subtle border */
    border-radius: 50px;
    padding: 2px;
    /* slight padding for inner look */
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    /* Soft shadow */
}

.site-search-form:hover,
.site-search-form:focus-within {
    border-color: var(--color-primary);
    /* Highlight on interaction */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Search input wrapper */
.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.search-input-field {
    width: 100%;
    border: none !important;
    outline: none !important;
    background: transparent;
    border-radius: 50px 0 0 50px;
    padding: 0 20px;
    height: 40px;
    /* consistent height */
    box-shadow: none !important;
    /* clear default borders */
}

/* Responsive Search Widths */
@media (max-width: 1400px) {
    .site-search {
        max-width: 550px;
    }
}

@media (max-width: 1200px) {
    .site-search {
        max-width: 450px;
    }
}

@media (max-width: 1050px) {
    .site-search {
        max-width: 350px;
    }
}

.search-input-field:focus {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    background: transparent;
}

/* Search button next to input */
.site-search-btn {
    position: static;
    transform: none;
    border-radius: 0 50px 50px 0;
    /* rounded right side */
    padding: 0 30px;
    height: auto;
    width: auto;
    margin: -2px -2px -2px 0;
    /* Overlap border */
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Icons with labels */
.site-actions {
    gap: 15px;
    /* Reduced from 25px */
    align-items: center;
}

.icon-label {
    font-size: 11px;
    font-weight: 600;
    margin-top: 3px;
    display: block;
    text-align: center;
    /* ensure label is below icon */
}

.site-action-item {
    flex-direction: column;
    /* Stack icon and text */
    gap: 0;
}

/* Responsive Icons & Spacing */
@media (max-width: 1400px) {
    .site-actions {
        gap: 15px;
        /* Reduce gap */
    }

    .icon-label {
        display: none;
        /* Hide labels to save space */
    }

    .site-action-item {
        padding: 5px;
    }
}

@media (max-width: 1200px) {
    .site-actions {
        gap: 10px;
    }
}

/* Align bottom baseline */

.site-action-item {
    flex-direction: column;
    gap: 4px;
    padding: 0;
    justify-content: center;
}

.site-action-item svg {
    /* No change to size, handled above */
    margin-bottom: 0;
}

.icon-label {
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Urbanist', sans-serif;
    line-height: 1;
    white-space: nowrap;
}

.site-action-item:hover .icon-label {
    color: var(--color-primary);
}

/* Adjust badge position for column layout */
.site-badge {
    top: -5px;
    right: 5px;
    /* Inwards a bit */
}

/* Compact nav row */
.site-nav-row {
    padding: 0 30px 8px 30px !important;
    justify-content: center;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: center;
}

/* Reduce gap between rows */
.header-bottom-row {
    border-top: none !important;
}

/* Refined logo text if used */
.navbar-logo-area .brand-text {
    font-size: 36px !important;
}

.navbar-logo-area .tagline-text {
    font-size: 10px !important;
}