/* banner.css */
/* Add this to your base stylesheet or at the top of this file */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern clean font */
    -webkit-font-smoothing: antialiased; /* Makes text look crisper */
    line-height: 1.5; /* Improves readability */
}
/* 1. Main Container & Layout */
.banner-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem; /* Reduced vertical padding to keep icons tight */
    background: var(--primary-turquoise);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.1);
    box-sizing: border-box; 
}

/* 2. Navigation Links (Left) */
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
}

/* 3. Search Bar (Middle) */
.search-bar {
    flex-grow: 0.5;
    display: flex;
    justify-content: center;
}

.search-bar form {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
}

.search-bar input {
    width: 100%;
    min-width: 200px;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-color);
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-color);
}

/* Search Suggestions Dropdown */
.suggestions-dropdown {
    max-width: 528px;
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    z-index: 2000;
    display: none;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.suggestion-item {
    padding: 12px 20px;
    color: var(--text-color);
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 4. Auth & Action Section (Right) */
.auth-section {
    display: flex;
    align-items: center;
    gap: 15px; /* Spacing between Cart, Profile, and Flag */
}

/* Connect Button (for logged out users) */
.connect-btn {
    display: inline-block;
    background-color: var(--accent-orange);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.2s;
}

.connect-btn:hover {
    transform: scale(1.05);
}

/* Icon Links (Cart) */
.icon-link {
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.icon-link:hover {
    opacity: 0.7;
}

.nav-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    cursor: pointer;
}

/* 5. UNIFIED DROPDOWN SYSTEM (Profile & Language) */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    /* This padding bridges the gap so the menu stays open */
    padding: 15px 5px; 
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    /* This pulls the menu up to meet the trigger area */
    top: 85%; 
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--glass-border);
    z-index: 9999;
    overflow: hidden;
}

/* Invisible bridge to prevent closing when moving mouse fast */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Hover Trigger */
.custom-dropdown:hover .dropdown-content {
    display: block;
}

/* Dropdown Menu Items */
.dropdown-content a {
    color: #333 !important; /* Forces dark text on white background */
    padding: 12px 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dropdown-content hr {
    margin: 5px 0;
    border: none;
    border-top: 1px solid rgba(0,0,0,0.08);
}

/* Flag specific adjustments */
.current-flag {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.1);
}

.flag-icon {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}