/* === LUXURY HEADER (Responsive) === */
.site-nav-header {
    width: 100%;
    background-color: rgba(61, 64, 61, 0.4); /* Dark olive glass effect */
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
}

/* Desktop Navigation Groups */
.nav-group { 
    display: flex; 
    gap: 30px; 
    flex: 1; 
}

.nav-left { justify-content: flex-end; padding-right: 50px; }
.nav-right { justify-content: flex-start; padding-left: 50px; }

.nav-group a {
    font-family: 'Montserrat';
    color: #ffffff !important;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.2em;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-group a:hover { text-decoration: none; opacity: 0.7; }

.nav-logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 65px;
    width: auto;
    display: block;
}

.logo-tagline {
    color: #ffffff; /* White text as requested */
    font-size: 8px; /* Small, elegant size */
    letter-spacing: 0.15em; /* Luxury character spacing */
    text-transform: uppercase;
    margin-top: 8px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap; /* Prevents the tagline from wrapping to two lines */
}

.mobile-hamburger {
    display: none; /* Hide by default */
}

/* --- The Tasteful Drawer --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1); /* Silk-smooth slide */
    padding: 30px;
}

.mobile-drawer.active { right: 0; }

.drawer-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 60px;
}

.close-drawer {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 2px;
    font-size: 11px;
    color: #888;
}

.close-icon {
    font-size: 24px;
    line-height: 1;
    font-weight: 200;
}

.drawer-links a {
    display: block;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    font-weight: 300;
    transition: opacity 0.3s;
}

.drawer-links a:hover { opacity: 0.5; }

/* --- Mobile Positioning --- */
@media (max-width: 1024px) {
    .nav-group { display: none; } /* Hide desktop links */
    
    .nav-container {
        justify-content: center; /* Center the logo on mobile */
    }

    .mobile-trigger-wrapper {
        position: absolute;
        right: 20px; /* Pins hamburger to the far right */
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
    }

    .mobile-hamburger span {
        width: 25px;
        height: 1px; /* Thinner for luxury look */
        background: #fff;
    }

    .mobile-drawer {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .site-nav-header {
        background-color: rgba(61, 64, 61, 0.2); /* Dark olive glass effect */
    }
}


/* Dropdown Positioning */
/* 1. Target specifically within your nav-group to outrank Bootstrap */
.nav-group .nav-item {
    position: relative !important;
    display: flex !important;
    align-items: center;
}

/* 2. Reset the dropdown menu defaults */
.nav-group .dropdown-menu {
    /* Bootstrap uses display: none; we need flex for your layout */
    display: flex !important; 
    
    /* Bootstrap uses top: 0; and margin-top; we reset them */
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    margin: 0 !important; 
    
    /* Your custom styling */
    transform: translateX(-50%) translateY(10px) !important;
    background-color: #ffffff !important;
    min-width: 220px !important;
    padding: 20px 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    
    /* Hover Logic */
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    flex-direction: column !important;
    
    /* Fix Bootstrap's border/radius */
    border: none !important;
    border-radius: 0 !important;
}

/* 3. Show Dropdown on Hover */
.nav-group .has-dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* 4. Link Styling */
.nav-group .dropdown-menu a {
    color: #1a1a1a !important;
    padding: 12px 25px !important; /* Slightly more padding for breathing room */
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
    width: 100% !important;
    text-align: left !important;
    display: block !important;
    background: none !important; /* Remove Bootstrap default hover bg */
    border: none !important;
}

.nav-group .dropdown-menu a:hover {
    background-color: #fcf9f5 !important;
    color: #c5a980 !important;
}

/* Special styling for "Find a Retailer" */
.nav-group .dropdown-menu a.highlight {
    font-weight: 700 !important;
    color: #c5a980 !important;
}

/* === Mobile Adjustments === */
@media (max-width: 1024px) {
    /* Prevent desktop dropdowns from appearing in the mobile structure */
    .dropdown-menu {
        display: none; 
    }
    
    /* In the mobile drawer, we keep links flat for better UX */
    .drawer-links a {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* Ensure the nav-item containing the search centers correctly */
.nav-group .search-item {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

/* Container for the form */
.nav-search-form {
    display: flex;
    align-items: center;
}

.search-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5); /* Semi-transparent white line */
    padding-bottom: 2px;
    transition: border-color 0.3s;
}

.search-wrapper:focus-within {
    border-bottom-color: #fff; /* Brightens on click */
}

.search-input {
    border: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px; /* Matched to your other nav links */
    letter-spacing: 0.15em;
    text-transform: uppercase;
    outline: none;
    width: 60px; 
    color: #ffffff; /* White text for the dark glass header */
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Placeholder color for white theme */
.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    width: 120px; 
}

.search-submit-btn {
    background: none;
    border: none;
    padding: 0 0 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #ffffff; /* White icon */
    opacity: 0.8;
    transition: opacity 0.3s;
}

.search-submit-btn:hover {
    opacity: 1;
}

/* Fix for vertical drift on Contact link */
.nav-right > a {
    display: flex;
    align-items: center;
}

/* Mobile Drawer Search Styling */
.mobile-search-container {
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee; /* Light gray line for the white drawer */
}

/* Override the desktop white colors for the mobile drawer */
.mobile-drawer .nav-search-form {
    margin-left: 0;
    width: 100%;
}

.mobile-drawer .search-wrapper {
    width: 100%;
    border-bottom: none; /* We use the container border instead */
}

.mobile-drawer .search-input {
    width: 100%;
    color: #1a1a1a; /* Dark text for white background */
    font-size: 14px; /* Larger text for easier mobile typing */
}

.mobile-drawer .search-input::placeholder {
    color: #999;
}

.mobile-drawer .search-submit-btn {
    color: #1a1a1a;
}

.search-results {
    padding: 0px 30px;
}