.headerBody {
    background-color: white;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

#headerRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px 10px 10px;
    background-color: white;
}

#homeLogo {
    width: 150px;
    margin: auto;
}

#searchFunc {
    display: flex;
    align-items: center; /* Ensures search box and button align properly */
    justify-content: center;
    gap: 5px; /* Small space between input and button */
    width: 100%;
    max-width: 700px; /* Prevents search bar from being too wide */
    position: relative;
}

#searchBox {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    flex-grow: 1; /* Makes it take up most of the width */
    padding: 8px 12px; /* Better padding for comfort */
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px; /* Rounded left corners */
    height: 30px; /* Ensures it's the same height as the button */
    box-sizing: border-box;
}

#searchBtn {
    background-color: #007bff;
    color: #fff !important;
    border: 1px solid;
    padding: 8px 8px;
    font-size: 12px;
    cursor: pointer;
    height: 30px; /* Match height with searchBox */
    border-radius: 4px; /* Rounded right corners */
    transition: background-color 0.3s ease;
    max-width: 100px;
}

#searchBtn:hover {
    background-color: #0056b3;
}

#liveSearchResults {
    position: absolute;
    top: 100%; /* Position directly below the search bar */
    left: 0;
    width: 100%; /* Match search bar width */
    background: white;
    border: 1px solid #ccc;
    z-index: 1000;
    display: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 4px; /* Slightly rounded edges */
    max-height: 250px; /* Prevents it from being too long */
    overflow-y: auto; /* Enables scrolling for long lists */
}

.live-search-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.live-search-item:hover {
    background: #f1f1f1;
}

.live-search-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
}

#headerLinks, #guestLinks, #loggedInLinks {
    display: flex;
    align-items: center;
    text-align: center;
    gap: 5px;
}

#guestLinks {
    flex-direction: column;
}

#authLinks, #extraLinks {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

#authLinks, #extraLinks, #loggedInLinks {
    margin-bottom: 0;
}

#authLinks a, #userGreeting a, #extraLinks a {
    text-decoration: none;
    color: inherit;
}

#extraLinks {
    margin-left: 10px;
    position: relative;
}

#authOrGreeting {
    display: flex;
    align-items: center;
    gap: 15px;
}

#headerRow a {
    text-decoration: none;
    color: inherit;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    background-color: white;
    border-top: 1px solid #ccc;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

#authOrGreeting {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Ensure dropdown aligns well */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Style dropdown button to look like a text-based menu with an icon */
.dropbtn {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background: none; /* Removes button-like background */
    color: black;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    padding: 8px;
    width: auto;
    text-align: center;
    justify-content: center;
}

/* Hover effect */
.dropbtn:hover {
    background-color: rgb(231, 231, 231);
}

/* Dropdown icon */
.dropbtn i {
    font-size: 18px;
}

/* Dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 10;
}

/* Dropdown links */
.dropdown-content a {
    color: black;
    padding: 10px;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

/* Hover effect for links */
.dropdown-content a:hover {
    background-color: rgb(231, 231, 231);
}

/* Show dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

hr {
    margin: 0 10px;
}

#cart {
    position: relative;
    text-decoration: none;
}

#cart i {
    font-size: 20px;
    color: black;
    transition: color 0.3s;
}

#cart:hover i {
    color: #007bff;
}

#cartCount {
    background-color: red;
    color: white;
    font-size: 12px;
    border-radius: 50%;
    padding: 2px 6px;
    position: absolute;
    top: -5px;
    right: -10px;
}

.notification-modal {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
}

.notification-modal.show {
    display: block;
    opacity: 1;
}

#userDashboardLink {
    font-weight: bold;
}

.sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.65);
    color: white;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    z-index: 1;
}

#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1e1e1e;
  color: #fff;
  z-index: 10000;
  font-size: 14px;
  padding: 15px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.cookie-container p {
  flex: 1 1 70%;
  margin: 5px 0;
}

.cookie-container a {
  color: #00bfff;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-buttons button {
  background-color: #00bfff;
  color: #fff;
  border: none;
  padding: 8px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-buttons button:hover {
  background-color: #0095cc;
}

#rejectCookies {
  background-color: #555;
}

#rejectCookies:hover {
  background-color: #444;
}

@media (max-width: 620px) {
    #headerRow {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    #searchFunc {
        width: 90%;
        margin: 10px 0;
    }

    #headerLinks, #extraLinks {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }
}

@media (max-width: 479px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .navbar-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        order: -1; /* Moves authOrGreeting above the dropdown */
        width: 100%;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    #authOrGreeting {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 10px;
        text-align: center;
    }

    .navbar-left {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .dropbtn {
        margin-top: 0;
    }
}







