/* New Header Styles */
.new-header {
    background: linear-gradient(to right, var(--brand-start), #ff5722);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px 20px;
    color: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease-in-out;
}

.new-header.header-scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.new-header .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.new-header .logo a {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.new-header .navigation a {
    margin: 0 5px;
    padding: 8px 15px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: background-color 0.3s ease;
    border-radius: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.new-header .navigation a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.new-header .user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.new-header .header-btn, .new-header .action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    margin-left: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.new-header .header-btn:hover, .new-header .action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.new-header .header-btn i {
    margin-left: 5px;
}

.new-header .lang-currency-control {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.new-header .lang-currency-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    color: black;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 10px;
    width: 200px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.new-header .lang-currency-control:hover .lang-currency-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.new-header .lang-currency-dropdown-menu a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
}

.new-header .lang-currency-dropdown-menu a:hover {
    background-color: #f0f0f0;
}

.new-header .action-btn {
    padding: 8px;
    border-radius: 50%;
}

.new-header .action-btn i {
    font-size: 20px;
}

.new-header .action-btn span {
    display: none;
}

.new-header .account-control {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.new-header .account-control .account-text {
    margin-left: 8px;
    display: flex;
    flex-direction: column;
    color: white;
}

.new-header .account-control .welcome-text {
    font-size: 0.8em;
}

.new-header .account-control .auth-action {
    font-weight: bold;
}

.new-header .auth-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    color: black;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 10px;
    width: 200px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.new-header .account-control:hover .auth-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.new-header .auth-dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
}

.new-header .auth-dropdown-menu a:hover {
    background-color: #f0f0f0;
}

.new-header .auth-dropdown-menu a i {
    margin-right: 10px;
    color: var(--primary-color);
}

.new-header .bottom-bar {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    max-height: 100px; /* or any appropriate value */
    opacity: 1;
}

.new-header.header-scrolled .bottom-bar {
    max-height: 0;
    padding-top: 0;
    opacity: 0;
}

.new-header .search-container {
    width: 50%;
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 999px;
    padding: 5px;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.new-header .search-container.search-focused {
    width: 60%;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.new-header .search-input {
    flex-grow: 1;
    border: none;
    background: none;
    padding: 10px 20px;
    font-size: 16px;
    outline: none;
}

.new-header .search-input:focus {
    box-shadow: none;
}

.new-header .search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.new-header .search-btn:hover {
    background-color: var(--primary-dark);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 10px;
    z-index: 1000;
    overflow: hidden;
    display: none; /* Initially hidden */
    border: 1px solid #ddd;
}

.search-suggestion-item {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background-color: #f5f5f5;
}

/* Modern Search Suggestions */
.search-suggestion-item.modern {
    display: flex;
    align-items: center;
    padding: 12px;
}

.suggestion-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    border: 1px solid #eee;
}

.suggestion-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.suggestion-name {
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.3;
}

.suggestion-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1em;
}
