/**
 * Header and Navigation Styles
 * These styles customize the GeneratePress header and navigation
 */

 /* ==================================================
   KRISETTE & CO - LUXURY HOMEPAGE ENHANCEMENTS
   Professional, modern design for sustainable luxury furniture
   ================================================== */


 /* HEADER ENHANCEMENTS */
/* FIXED STICKY HEADER - SIMPLIFIED AND WORKING */
/* STICKY HEADER - CORRECTED VERSION */
.site-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e5e5 !important;
    position: sticky !important; /* Changed from fixed to sticky */
    top: 0 !important;
    z-index: 1000 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: 'Poppins', sans-serif !important;
    height: 80px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.krisette-mobile-header {
    background: white !important;
}

/* STICKY HEADER - TARGETING CORRECT ELEMENT */
header.site-header.grid-container,
.site-header.grid-container {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: white !important;
    position: sticky !important;
    border-bottom: 1px solid #e5e5e5 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Poppins', sans-serif !important;
}

/* ========================================
   RESPONSIVE MOBILE HEADER FIXES
   Prevents header overflow and eliminates white margins on mobile
   ======================================== */

/* Prevent horizontal overflow on the entire page */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}





/* ========================================
   HEADER FULL WIDTH FIXES
   ======================================== */

/* FORCE HEADER TO FULL BROWSER WIDTH */
.site-header,
header.site-header,
.site-header.grid-container,
header.site-header.grid-container {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* If that doesn't work, try this nuclear option */
header.site-header.grid-container {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
}

/* Ensure header inner container spans full width but constrains content */
.inside-header {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 80px !important;
}

/* Fix any parent containers that might be constraining the header */
.site,
#page,
.grid-container {
    max-width: none !important;
    width: 100% !important;
    overflow-x: visible !important;
}

/* Ensure the header background extends full width */
.site-header::before,
.site-header::after {
    display: none !important;
}

/* Navigation adjustments for very wide screens */
@media (min-width: 1400px) {
    .inside-header {
        max-width: 1400px !important;
        padding: 0 40px !important;
    }
}

@media (min-width: 1800px) {
    .inside-header {
        max-width: 1600px !important;
        padding: 0 60px !important;
    }
}

/* ========================================
   CUSTOM MOBILE HEADER
   Clean, functional mobile header with hamburger menu
   ======================================== */

/* Mobile Header Container */
.krisette-mobile-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    opacity: 0;
    animation: fadeInHeader 0.5s ease forwards;
}

/* Header Layout */
.mobile-header-container {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
    max-width: 100%;
    box-sizing: border-box;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
}

/* Mobile menu styles moved to global.css for consolidation */

/* Mobile Logo */
.mobile-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-logo img {
    max-height: 35px;
    width: auto;
    object-fit: contain;
}

.mobile-logo a {
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    
    /* Mobile Navigation Container */
    .mobile-navigation {
        background: white !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9998 !important;
        padding: 20px 0 !important;
        margin: 0 !important;
        transition: all 0.3s ease;
    }

    .krisette-mobile-header {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .mobile-header-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 20px !important;
        box-sizing: border-box !important;
    }
    
    /* PRIMARY MENU ITEMS - Remove bullets, no indentation */
    .mobile-menu,
    .mobile-navigation > ul,
    .mobile-navigation .menu {
        list-style: none !important;
        list-style-type: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }
    
    /* Primary menu list items */
    .mobile-menu > li,
    .mobile-navigation > ul > li,
    .mobile-navigation .menu > li {
        list-style: none !important;
        list-style-type: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        background: transparent !important;
    }
    
    /* Primary menu links - no indentation */
    .mobile-menu > li > a,
    .mobile-navigation > ul > li > a,
    .mobile-navigation .menu > li > a {
        display: block !important;
        padding: 15px 20px !important;
        color: #2c2c2c !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
        transition: all 0.3s ease !important;
        background: transparent !important;
        border: none !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        border-left: 3px solid transparent !important;
    }
    
    /* Primary menu hover state */
    .mobile-menu > li > a:hover,
    .mobile-navigation > ul > li > a:hover,
    .mobile-navigation .menu > li > a:hover {
        background: rgba(139, 69, 19, 0.05) !important;
        color: rgba(0, 0, 0, 1) !important;
        border-left-color: rgba(0, 0, 0, 1) !important;
    }
    
    /* SUB-MENU ITEMS - Remove bullets but add indentation */
    .mobile-menu ul,
    .mobile-navigation ul ul,
    .mobile-navigation .menu ul {
        list-style: none !important;
        list-style-type: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: rgba(255, 255, 255, 1) !important;
    }
    
    /* Sub-menu list items - with visual distinction */
    .mobile-menu ul li,
    .mobile-navigation ul ul li,
    .mobile-navigation .menu ul li {
        list-style: none !important;
        list-style-type: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
    }
    
    /* Sub-menu links - INDENTED and styled differently */
    .mobile-menu ul li a,
    .mobile-navigation ul ul li a,
    .mobile-navigation .menu ul li a {
        display: block !important;
        padding: 12px 20px 12px 40px !important;
        color: #666 !important;
        text-decoration: none !important;
        font-weight: 400 !important;
        font-size: 0.9rem !important;
        transition: all 0.3s ease !important;
        background: transparent !important;
        border: none !important;
        text-transform: none !important;
        letter-spacing: 0.3px !important;
        border-left: 3px solid transparent !important;
        position: relative !important;
    }
    
    /* Sub-menu visual indicator */
    .mobile-menu ul li a::before,
    .mobile-navigation ul ul li a::before,
    .mobile-navigation .menu ul li a::before {
        content: '—' !important;
        position: absolute !important;
        left: 25px !important;
        color: #ccc !important;
        font-size: 0.8rem !important;
    }
    
    /* Sub-menu hover state */
    .mobile-menu ul li a:hover,
    .mobile-navigation ul ul li a:hover,
    .mobile-navigation .menu ul li a:hover {
        background: rgba(0, 0, 0, 0.03) !important;
        color: rgba(0, 0, 0, 1) !important;
        padding-left: 45px !important;
        border-left-color: rgba(0, 0, 0, 1) !important;
    }
    
    /* Sub-menu hover - change the dash color */
    .mobile-menu ul li a:hover::before,
    .mobile-navigation ul ul li a:hover::before,
    .mobile-navigation .menu ul li a:hover::before {
        color: #8B4513 !important;
    }
    
    /* THIRD LEVEL SUB-MENUS (if you have them) - Even more indented */
    .mobile-menu ul ul li a,
    .mobile-navigation ul ul ul li a,
    .mobile-navigation .menu ul ul li a {
        padding-left: 60px !important;
        color: #888 !important;
        font-size: 0.85rem !important;
    }
    
    .mobile-menu ul ul li a::before,
    .mobile-navigation ul ul ul li a::before,
    .mobile-navigation .menu ul ul li a::before {
        left: 45px !important;
        content: '—' !important;
    }
    
    /* Remove bullets from ALL levels with ::before override */
    .mobile-menu li::before,
    .mobile-navigation ul li::before,
    .mobile-navigation .menu li::before,
    .mobile-menu ul li::before,
    .mobile-navigation ul ul li::before,
    .mobile-navigation .menu ul li::before {
        display: none !important;
        content: none !important;
    }
    
    /* Remove last border from each menu level */
    .mobile-menu > li:last-child,
    .mobile-navigation > ul > li:last-child,
    .mobile-navigation .menu > li:last-child {
        border-bottom: none !important;
    }
    
    .mobile-menu ul li:last-child,
    .mobile-navigation ul ul li:last-child,
    .mobile-navigation .menu ul li:last-child {
        border-bottom: none !important;
    }
    
    /* Hide original header on mobile */
    .site-header,
    header.site-header,
    .site-header.grid-container {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Adjust body padding for mobile header */
    body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Mobile header width fix */
    .krisette-mobile-header {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .mobile-header-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 20px !important;
        box-sizing: border-box !important;
    }

    /* Mobile menu toggle styles moved to global.css */
    
    .mobile-logo {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .mobile-logo img {
        max-height: 35px !important;
        width: auto !important;
        object-fit: contain !important;
    }
    
    .mobile-logo a {
        text-decoration: none !important;
        color: #2c2c2c !important;
        font-weight: 600 !important;
        font-size: 1.2rem !important;
    }
    
    body {
        padding-top: 10px !important;
    }
    
    .site-header {
        display: none !important;
    }
}

/* Smooth Transitions */
.mobile-menu a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile menu toggle styles moved to global.css for consolidation */

/* Loading Animation */
@keyframes fadeInHeader {
    to {
        opacity: 1;
    }
}

/* ========================================
   MOBILE CHECKOUT BUTTON
   ======================================== */
/* Mobile Checkout Button Styles - Simple Icon Only */
.mobile-checkout-btn {
    background: none !important;
    color: #666 !important;
    padding: 8px !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    border: none !important;
    box-shadow: none !important;
    position: relative !important;
    margin-left: auto !important;
    margin-right: 15px !important;
    transition: color 0.3s ease !important;
}

.mobile-checkout-btn:hover {
    background: none !important;
    color: #333 !important;
    transform: none !important;
}

.mobile-cart-icon {
    width: 22px !important;
    height: 22px !important;
    fill: currentColor !important;
}

/* Hide the "Cart" text on mobile */
.mobile-checkout-btn span {
    display: none !important;
}

.mobile-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.mobile-cart-badge.visible {
    transform: scale(1);
}

/* Update mobile header container to include checkout button */
.mobile-header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

/* Mobile header logo - allow it to flex */
.mobile-logo {
    flex: 1 !important;
    text-align: center !important;
    order: 2 !important;
}

/* Mobile menu toggle positioning moved to global.css */

.mobile-checkout-btn {
    order: 3 !important;
}

/* ========================================
   MAIN HEADER RESTYLING
   ======================================== */
/* Main Header Container */
header.site-header.grid-container,
.site-header.grid-container,
html body .site-header,
html body header.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e5e5 !important;
    font-family: 'Poppins', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 110px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

/* Force parent containers to allow sticky */
html, body, #page, .site, #masthead {
    overflow: visible !important;
    transform: none !important;
    contain: none !important;
    perspective: none !important;
}

.inside-header {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
    height: 80px !important;
}

.site-header.scrolled {
    background: rgba(254, 251, 248, 0.98);
    backdrop-filter: blur(25px) saturate(200%);
    padding: 15px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(139, 69, 19, 0.15);
}

/* Enhanced Navigation */
.main-navigation a {
    color: var(--charcoal) !important;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 20px;
    position: relative;
    transition: var(--transition);
}

.main-navigation a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-coffee), var(--secondary-coffee));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation a:hover::before,
.main-navigation a.current::before {
    width: 70%;
}

.main-navigation a:hover {
    color: var(--primary-coffee) !important;
}

/* Logo Enhancement */
.custom-logo {
    max-height: 45px;
    width: auto;
    transition: var(--transition);
}

.site-header.scrolled .custom-logo {
    max-height: 40px;
}

/* Hide page title on homepage */
.home .entry-header,
.home .page-header,
.home h1.entry-title,
.home .wp-block-post-title {
    display: none !important;
}

/* Logo Styles */
.site-branding,
.site-logo {
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.site-branding img,
.custom-logo-link img {
    height: 50px !important;
    width: auto !important;
    max-width: 150px !important;
}

.site-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 !important;
}

.site-title a {
    color: #333 !important;
    text-decoration: none !important;
}

/* Navigation Container */
.main-navigation {
    flex-grow: 1 !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
    position: relative !important;
}

/* Main Menu */
.main-nav,
.menu-primary-container {
    display: flex !important;
    justify-content: center !important;
    position: relative !important;
}

.main-nav ul,
.menu-primary-container ul {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 60px !important;
    position: relative !important;
}

.main-nav li,
.menu-primary-container li {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Main Navigation Links */
.main-nav a,
.menu-primary-container a,
.main-navigation .main-nav ul li a {
    text-decoration: none !important;
    color: #333 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 25px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: color 0.3s ease !important;
    background: transparent !important;
    position: relative !important;
    border-bottom: none !important;
}

/* Primary Navigation Desktop Hover Line */
.main-navigation .main-nav ul li a::before,
.main-navigation .menu-primary-container ul li a::before {
    content: '' !important;
    position: absolute !important;
    bottom: 15px !important;
    left: 60% !important;
    width: 0 !important;
    height: 2px !important;
    background: #333 !important;
    transition: all 0.3s ease !important;
    transform: translateX(-75%) !important;
    z-index: 1 !important;
}

.main-nav a:hover,
.menu-primary-container a:hover,
.main-navigation .main-nav ul li a:hover {
    color: #666 !important;
    background: transparent !important;
}

/* Show hover line */
.main-navigation .main-nav ul li a:hover::before,
.main-navigation .menu-primary-container ul li a:hover::before {
    width: 80% !important;
}

/* Override conflicting styles */
.main-navigation a::before {
    display: block !important;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-primary-container ul li a {
    border-bottom: none !important;
    border-bottom-color: transparent !important;
}

/* DROPDOWN ARROWS */
.main-navigation .main-nav ul li.menu-item-has-children > a::after,
.main-navigation .menu-primary-container .menu-item-has-children > a::after {
    content: "▼" !important;
    font-size: 10px !important;
    transition: transform 0.3s ease !important;
    color: #999 !important;
    margin-left: 8px !important;
    display: inline-block !important;
}

.main-navigation .main-nav ul li.menu-item-has-children:hover > a::after,
.main-navigation .menu-primary-container .menu-item-has-children:hover > a::after {
    transform: rotate(180deg) !important;
}

/* Hide other arrows - but allow menu toggle on mobile */
.main-navigation .dropdown-hover::after,
.nav-link .dropdown-arrow,
.dropdown-arrow,
.main-navigation a .dropdown-arrow,
.nav-link::after,
.gp-icon.icon-arrow,
.main-navigation svg[aria-hidden="true"],
.main-navigation .gp-icon {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Hide dropdown toggles on desktop only */
@media (min-width: 769px) {
    .dropdown-menu-toggle,
    .dropdown-menu-toggle svg,
    .main-navigation .dropdown-menu-toggle,
    span[class*="dropdown-menu-toggle"],
    .menu-item .dropdown-menu-toggle {
        display: none !important;
        visibility: hidden !important;
    }
}

/* DROPDOWN MENUS */
.main-navigation .main-nav ul li ul.sub-menu,
.main-navigation .menu-primary-container ul li ul.sub-menu,
.main-navigation .main-nav ul li ul,
.main-navigation .menu-primary-container ul li ul,
.main-navigation ul ul {
    position: absolute !important;
    top: 100% !important;
    left: 60% !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    min-width: 200px !important;
    z-index: 9999 !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    gap: 0 !important;
    display: block !important;
    flex-direction: column !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px) !important;
}

/* DROPDOWN HOVER STATE */
.main-navigation .main-nav ul li.menu-item-has-children:hover > ul.sub-menu,
.main-navigation .menu-primary-container ul li.menu-item-has-children:hover > ul.sub-menu,
.main-navigation .main-nav ul li.menu-item-has-children:hover > ul,
.main-navigation .menu-primary-container ul li.menu-item-has-children:hover > ul,
.main-navigation .menu-item-has-children:hover > ul,
.main-navigation li.menu-item-has-children:hover > ul.sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(-5%) !important;
}

/* DROPDOWN LINKS */
.main-navigation .main-nav ul li ul.sub-menu li a,
.main-navigation .menu-primary-container ul li ul.sub-menu li a,
.main-navigation .main-nav ul li ul li a,
.main-navigation .menu-primary-container ul li ul li a {
    display: block !important;
    padding: 12px 30px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s ease !important;
    border-left: 3px solid transparent !important;
    border-bottom: none !important;
    text-transform: none !important;
    background: transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Dropdown Hover Line */
.main-navigation .main-nav ul li ul.sub-menu li a::before,
.main-navigation .menu-primary-container ul li ul.sub-menu li a::before,
.main-navigation .main-nav ul li ul li a::before,
.main-navigation .menu-primary-container ul li ul li a::before {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 110px !important;
    width: 0 !important;
    height: 0px !important;
    background: #333 !important;
    transition: all 0.3s ease !important;
    z-index: 1 !important;
}

.main-navigation .main-nav ul li ul.sub-menu li a:hover,
.main-navigation .menu-primary-container ul li ul.sub-menu li a:hover,
.main-navigation .main-nav ul li ul li a:hover,
.main-navigation .menu-primary-container ul li ul li a:hover {
    background-color: #f8f8f8 !important;
    color: #333 !important;
    border-left-color: #333 !important;
    padding-left: 35px !important;
    border-bottom: none !important;
}

/* Show dropdown hover line */
.main-navigation .main-nav ul li ul.sub-menu li a:hover::before,
.main-navigation .menu-primary-container ul li ul.sub-menu li a:hover::before,
.main-navigation .main-nav ul li ul li a:hover::before,
.main-navigation .menu-primary-container ul li ul li a:hover::before {
    width: calc(100% - 60px) !important;
}

.main-navigation .main-nav ul li ul.sub-menu li,
.main-navigation .menu-primary-container ul li ul.sub-menu li,
.main-navigation .main-nav ul li ul li,
.main-navigation .menu-primary-container ul li ul li {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

/* Remove sub-menu arrows */
.main-navigation .main-nav ul li ul.sub-menu li a::after,
.main-navigation .menu-primary-container ul li ul.sub-menu li a::after,
.main-navigation .main-nav ul li ul li a::after,
.main-navigation .menu-primary-container ul li ul li a::after {
    display: none !important;
    content: none !important;
}

/* Ensure proper spacing */
.site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
/* Mobile Header Handling */
@media (max-width: 768px) {
    .site-header {
        display: none !important;
    }
    
    .krisette-mobile-header {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .krisette-mobile-header {
        display: none !important;
    }
    
    .site-header {
        display: block !important;
    }
    
    /* Hide mobile menu toggle on desktop - moved to global.css */
    .menu-toggle {
        display: none !important;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .main-nav ul,
    .menu-primary-container ul {
        gap: 40px !important;
    }
    
    .inside-header {
        padding: 0 15px !important;
    }
    
    .main-nav a,
    .menu-primary-container a,
    .main-navigation .main-nav ul li a {
        font-size: 14px !important;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .inside-header {
        max-width: 1400px !important;
    }
}

/* ========================================
   TICKER STYLING - DESKTOP AND MOBILE
   ======================================== */

/* Desktop Ticker - Brown background, fixed height, full width */
.ticker-row {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    background: #8B4513 !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 9998 !important;
}

.ticker-container {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
}

.ticker-content {
    position: relative !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

.ticker-text {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: white !important;
    padding: 0 20px !important;
    white-space: nowrap !important;
    display: inline-block !important;
    letter-spacing: 0.5px !important;
}

.ticker-text a {
    color: white !important;
    text-decoration: underline !important;
}

.ticker-text a:hover {
    color: #f0f0f0 !important;
}

/* Mobile Ticker - Same styling but with mobile class names */
.mobile-ticker-row {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    background: #8B4513 !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 9998 !important;
}

.mobile-ticker-container {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
}

.mobile-ticker-content {
    position: relative !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

.mobile-ticker-text {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: white !important;
    padding: 0 20px !important;
    white-space: nowrap !important;
    display: inline-block !important;
    letter-spacing: 0.5px !important;
}

.mobile-ticker-text a {
    color: white !important;
    text-decoration: underline !important;
}

.mobile-ticker-text a:hover {
    color: #f0f0f0 !important;
}

/* Mobile ticker responsive adjustments */
@media (max-width: 768px) {
    .mobile-ticker-row {
        height: 45px !important;
    }
    
    .mobile-ticker-text {
        font-size: 13px !important;
        padding: 0 15px !important;
    }
}

/* =================================================================
   RESPONSIVE MOBILE HEADER FIX
   Prevents header overflow and eliminates white margins on mobile


   ================================================================= */




/* Mobile header fix */
@media (max-width: 768px) {
    .krisette-mobile-header {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .mobile-header-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 20px !important;
        box-sizing: border-box !important;
    }
}

/* Ticker fix to match header */
.ticker-row {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
}

/* Navigation adjustments for very wide screens */
@media (min-width: 1400px) {
    .inside-header {
        max-width: 1400px !important; /* Increase for larger screens */
        padding: 0 40px !important;
    }
}

@media (min-width: 1800px) {
    .inside-header {
        max-width: 1600px !important; /* Even wider for very large screens */
        padding: 0 60px !important;
    }
}

/* ========================================
   ALTERNATIVE GRADIENT HEADER STYLING
   NOTE: This appears to be duplicate/alternative styling
   ======================================== */

/* GRADIENT HEADER STYLING - Alternative approach with backdrop-filter */
.site-header,
.site-header .inside-header,
.main-navigation,
.navigation-branding,
.site-branding,
.header-widget,
.header-widget .widget,
.main-navigation .main-nav,
.main-navigation .main-nav ul,
.inside-header {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    padding: 10px 0 !important;
    border: none;
    box-shadow: none;
}

.site-header.scrolled,
.site-header.krisette-scrolled {
    background: rgba(255, 255, 255, 1) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.main-navigation {
    background: transparent !important;
}

.main-navigation ul {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.main-navigation li {
    background: transparent !important;
    border: none !important;
}

.main-navigation a {
    color: #2c2c2c !important;
    background: transparent !important;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 20px;
    position: relative;
    transition: all 0.3s ease;
    border: none !important;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B4513, #A0522D);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation a:hover::before,
.main-navigation a.current::before,
.main-navigation .current-menu-item > a::before {
    width: 70%;
}

.main-navigation a:hover {
    color: #8B4513 !important;
    background: transparent !important;
}

.main-navigation ul ul {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin-top: 10px;
}

.main-navigation ul ul a {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.main-navigation ul ul a:hover {
    background: rgba(139, 69, 19, 0.05) !important;
}

.site-logo img,
.custom-logo {
    transition: all 0.3s ease;
}

.site-header.scrolled .site-logo img,
.site-header.scrolled .custom-logo {
    transform: scale(0.9);
}

.site-title a {
    color: #2c2c2c !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #8B4513 !important;
}

.inside-header {
    background: transparent !important;
    padding: 0;
}

@media (max-width: 768px) {
    .site-header {
        padding: 10px 0 !important;
    }
    
    .site-header.scrolled {
        padding: 10px 0 25px 0;
    }
    
    .main-navigation.toggled ul {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px);
        border-radius: 0 0 15px 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 0;
        border-top: 1px solid rgba(139, 69, 19, 0.1);
    }
    
    .main-navigation.toggled a {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        padding: 15px 20px;
    }
}

.generate-navigation .main-nav ul li a {
    background: transparent !important;
}

.generate-navigation .main-nav ul li:hover > a {
    background: transparent !important;
}

.header-widget {
    background: transparent !important;
}

.header-widget .widget {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.navigation-search input[type="search"] {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(139, 69, 19, 0.2) !important;
    border-radius: 20px;
    padding: 8px 15px;
}

.navigation-search input[type="search"]:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #8B4513 !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.1);
}

.cart-contents {
    color: #2c2c2c !important;
    background: transparent !important;
    border: none !important;
    transition: color 0.3s ease;
}

.cart-contents:hover {
    color: #8B4513 !important;
}

.inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 0 !important;
}

.wp-block-cover,
.hero-section,
.site-main > *:first-child {
    margin-top: 100px !important;
}