.main-nav{
    font-family: "Plus Jakarta Sans", sans-serif;
    
    height: 16vh;
    width: 100%;
    transition: height 0.3s ease;
    display: flex;
    flex-direction: column;

    background: #EBE9DA;
    position: sticky !important;
    top: 0;
    left: 0;
    z-index: 1;

    border-bottom: #b8b6ad 1px solid;
    padding-top: 5px;

    overflow-x: visible;
}
.sub-nav{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: 5vh;
    width: 100%;
    list-style: none;
    text-decoration: none;
    margin: 0;
    padding: 0;
}
.sub-nav li{
    display: flex;
    justify-content: center;
    align-items: center;
}
.header-container{
    display: flex;
    flex: 1;
    height: 10vh;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    gap: 1rem;
}
.main-nav.hidden{
    height: 5vh;
    overflow: hidden
}
#header{
    transition:all 0.3s ease;
}
.main-nav.hidden #header {
    height: 0;
    opacity: 0;
    pointer-events: none;
}
.logo-container{

    height: 5vw;
    min-height: 60px;
    max-height: 90px;
    width: 10vw;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-container img{
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 3px #fff);
}

.searchbar-form button {
    border: none;
    background: none;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.searchbar-form {
    --timing: 0.3s;
    --width-of-input: clamp(150px, 15vw, 275px);
    --height-of-input: clamp(30px, 3vw, 50px);
    --border-height: 4px;
    --input-bg: #FFFDF7;
    --border-color: #1B4D2E;
    --border-radius: 30px;
    --after-border-radius: 1px;
    position: relative;
    border: #000 1px solid;
    width: var(--width-of-input);
    height: var(--height-of-input);
    display: flex;
    align-items: center;
    padding-inline: 0.8em;
    border-radius: var(--border-radius);
    transition: border-radius 0.5s ease;
    background: var(--input-bg,#fff);

    z-index: 100;
}

.searchbar-form .search-input {
    font-size: 0.9rem;
    background-color: transparent;
    width: 100%;
    height: 100%;
    padding-inline: 0.5em;
    padding-block: 0.7em;
    border: none;
}

.searchbar-form .search-input::placeholder{
    color: #1A1A1A;
}

.searchbar-form:before {
    content: "";
    position: absolute;
    background: var(--border-color);
    transform: scaleX(0);
    transform-origin: center;
    width: 100%;
    height: var(--border-height);
    left: 0;
    bottom: 0;
    border-radius: 1px;
    transition: transform var(--timing) ease;
}

.searchbar-form:focus-within {
    border-radius: var(--after-border-radius);
}

input:focus {
    outline: none;
}

.searchbar-form:focus-within:before {
    transform: scale(1);
}
.searchbar-form .reset {
    border: none;
    background: none;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    cursor: pointer;
}

.searchbar-form input:not(:placeholder-shown) ~ .reset {
    opacity: 1;
    visibility: visible;
}
.searchbar-form svg {
    width: 17px;
}

.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFDF7;
    border: 0.5px solid #E8E4D4;
    border-top: none;
    border-radius: 0 0 7px 7px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    z-index: 101;
}

.search-suggestions-dropdown.open {
    max-height: 400px;
    opacity: 1;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 14px;
    border-bottom: 0.5px solid #E8E4D4;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background-color: #F5F3EA;
}

.suggestion-item.selected {
    background-color: #E8D4B0;
}

.suggestion-item.no-results,
.suggestion-item.error {
    text-align: center;
    color: #999;
    cursor: default;
    padding: 20px;
}

.suggestion-title {
    font-family: 'Fraunces', serif;
    font-size: 14px;
    font-weight: 600;
    color: #1A3A26;
    margin-bottom: 2px;
}

.suggestion-author {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.suggestion-price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #1B4D2E;
}

.nav-item {
position: relative;
display: inline-block;
text-decoration: none;
height: calc(100% - 15px);
}
.nav-item a{
    cursor: pointer;
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.nav-item::after {
content: "";
position: absolute;
left: 50%;
bottom: -4px;
width: 0;
height: 2px;
background-color: #0E5A2D;
transition: all 0.3s ease;
transform: translateX(-50%);
}

.nav-item:hover::after {
width: 100%;
}
.nav-item a:hover{
    color: #C8922B;
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFDF7;
    width: clamp(40px, 2.5vw, 60px);
    border: #000 2px solid;
    border-radius: 50%;
    padding: 10px;
    transition: all 0.3s ease;

    color: black;
}

.icon-container:hover {
    cursor: pointer;
    border: #16b151 2px solid;
    color: #16b151;

    transform: translateY(-5px);
}

.icon {
  width: 100%;
  height: 100%;
  fill: none;
}

@media (max-width: 512px){
    .searchbar-form{
        --width-of-input: 120px;
    }
}