/**
 * Header Style Overrides
 * 
 * High-priority overrides to ensure the header styles are applied correctly
 */

/* Core header overrides */
.site-header {
    position: fixed !important;
    width: 100vw;
    max-width: 100%;
    left: 0;
    right: 0;
    top: 0 !important;
    z-index: 999 !important;
    padding: 10px 0 !important;
    background-color: #f0f2f5 !important; /* Match body background */
    backdrop-filter: none !important; /* Remove blur effect */
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.admin-bar .site-header {
    top: 32px !important;
}

.site-header.scrolled {
    padding: 8px 0 !important;
    background-color: #f0f2f5 !important; /* Match body background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

.header-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.header-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 70px !important;
    transition: all 0.3s ease !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 50px !important;
    padding: 0 25px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06) !important;
    margin: 0 20px !important;
}

.site-header.scrolled .header-wrapper {
    height: 60px !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
}

/* Remove underline from navigation links */
.main-navigation a:after {
    display: none !important;
}

.main-navigation li.current-menu-item a::after {
    display: none !important;
}

.main-navigation a:hover:after,
.main-navigation li.current-menu-item a:after {
    display: none !important;
}

/* Current menu item styling without underline */
.main-navigation li.current-menu-item a {
    color: #4caf50 !important;
    font-weight: 600 !important;
}

/* Content area padding adjustment - remove extra space */
.site-content {
    padding-top: 90px !important;
}

@media (max-width: 768px) {
    .site-content {
        padding-top: 80px !important;
    }
    
    .header-wrapper {
        margin: 0 10px;
        width: calc(100% - 20px);
        border-radius: 30px;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        margin: 0 5px;
        width: calc(100% - 10px);
        padding: 0 15px;
    }
}

/* Media Queries */
@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px !important;
    }
}

@media (max-width: 991px) {
    .header-wrapper {
        height: 60px !important;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    .main-navigation {
        display: none !important;
    }
    
    .site-header.active .main-navigation {
        display: block !important;
    }
}

/* Advanced search sidebar adjustment */
.advanced-search-sidebar {
    top: 100px !important; 
    height: calc(100vh - 120px) !important;
    max-height: calc(100vh - 120px) !important;
}

@media (max-width: 992px) {
    .advanced-search-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        position: relative !important;
        top: 0 !important;
        height: auto !important;
        max-height: none !important;
    }
}

/* Fix for categories page */
body.page-template-page-categories .site-header,
body.page-template-page-categories .header-container {
    width: 100%;
    max-width: 100%;
}

body.page-template-page-categories .header-wrapper {
    max-width: 1800px;
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
}

/* Add appropriate spacing for the site content on category page */
body.page-template-page-categories .site-content {
    margin-top: 0px;
    width: 100%;
    max-width: 100%;
}

/* General content width fix */
.content-area {
    width: 100%;
    max-width: 100%;
} 