.nav{
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    height: 4rem;
    border-radius: 0rem;
    background: rgba(128, 128, 128, 0.214);
    box-shadow:  0 0 10px 1px  rgba(128, 128, 128, 0.157);
    z-index: 20;
     color: white;
     display: grid;
     grid-template-columns: 1fr 1fr 1fr;
     padding: 0 5vw;
     transition: .4s cubic-bezier(0.445, 0.05, 0.55, 0.95);
  }

  .nav.active{
    background: radial-gradient(56deg,rgba(128, 128, 128, 0.607),rgba(97, 97, 97, 0.607),rgba(128, 128, 128, 0.607) );
    background: rgba(128, 128, 128, 0.607);
    border-radius: 4rem;
    box-shadow:  0 0 10px 1px  rgba(128, 128, 128, 0.249);


    top: 3rem;
    left: 15%;
    width: 70%;

  }
.nav .search{
    width: calc(50% + 3vw);
     position: relative;
    height: 100%;
    height: 1.5rem;
  }

.search input{
    width: 100%;
    height: 2.5rem;
    background: rgb(255, 255, 255);
    border-radius: 2rem;
    position: absolute;
    left: 0;
    border: none; 
    padding-left: 1.3rem;
}
.search .button{
    position: absolute;
    background-color: #fa709a;
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    right: .3rem;
    top: 0.1rem;
}

.nav .cart{
    justify-content: flex-end;
    padding-right: 5vw;
}




/* FOOTER */



.section4{
    background: #222;
    width: 100%;
    height: 50rem;
    margin-top: 20rem;
    position: relative;
}
.section4 .partners{
    height: 20rem;
    width: 80%;
    margin-left: 10%;
    background: linear-gradient(45deg, #f4f8ff, rgb(236, 255, 240));
    top: -10rem;
    position: absolute;
    border-radius: 2rem;
}


.contact{
    color: white;
     width: 100%;
    display: flex;
    justify-content: space-between;
     position: absolute;
    top: 15rem;
    display: flex;
    flex-wrap: wrap;
}
.contact span{
    padding: 5vw;

}

.contact h4{
    font-size: 2rem;
}
.contact span aside{
    font-size: 1rem;
    margin-top: .8rem;
    color: rgb(218, 218, 218);
    font-weight: 200;
}

.contact span h5{
    font-size: 1.2rem;
    font-weight: 300;
    color: rgb(187, 187, 187);
}
.contact span .input{
    height: 3rem;
    width: 100%;
    border: 1px solid white;
    background: linear-gradient(45deg, #ffe71c, #ffc420, #ffa124);
    border-radius: 2rem;
    position: relative;
    margin-top: 1rem;
}

.input input{
    width: 100%;
    position: absolute;
    height: 100%;
    padding-left: 1rem;
    outline: none;
    border: none;
    background: transparent;
}
.input button{
    position: absolute;
    right: 1rem;
    background: transparent;
    font-size: 1rem;
    color: #222;
     border: none;
      cursor: pointer;
     z-index: 100;
     height: 100%;

}

.contact_details{
    display: flex;
    align-items: center;
    justify-content:space-between;
    color: white;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    flex-wrap: wrap;

}
.contact_details span{
    padding: 5vw;
    margin: 2vw;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;

}

#search-input {
    width: 100%;
    height: 2.5rem;
    background: rgb(255, 255, 255);
    border-radius: 2rem;
    border: none;
    padding-left: 1.3rem;
    font-size: 0.9rem;
}

#search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(250, 112, 154, 0.2);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 30px);
    left: 0;
    width: 100%;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.8rem 1.3rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: rgba(250, 112, 154, 0.05);
}

.result-name {
    color: #222;
    font-weight: 300;
    font-size: 0.9rem;
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: #666;
    font-weight: 300;
    font-size: 0.9rem;
}

/* Scrollbar Styles */
.search-dropdown::-webkit-scrollbar {
    width: 4px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: #fa709a;
    border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-container {
        max-width: 100%;
    }
    
    .search-dropdown {
        position: fixed;
        top: 4rem;
        left: 0;
        width: 100%;
        border-radius: 0;
        max-height: 50vh;
    }
}


@media (max-width: 769px) {
    .search-container {
        position: relative;
    }
    
    #search-input {
        position: absolute;
        top: 100%;
        right: 0;
        width: 0;
        padding: 0;
        border: none;
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        background: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    #search-input.active {
        width: 200px;
        padding: 8px 12px;
         opacity: 1;
        pointer-events: auto;
        border: 1px solid #ddd;
        top: 4rem;
    }
    
    .search-dropdown {
        top: calc(100% + 40px);
    }

  
}

@media (max-width: 769px) {
    .search-container {
        position: relative;
        z-index: 1000;
    }
    
    #search-input {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        padding: 8px 12px;
        background: white;
        border: 1px solid #ddd;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    #search-input.active {
        display: block;
        opacity: 1;
    }
    
    .search-dropdown {
        position: absolute;
        top: 7rem;
        right: 0;
        width: 200px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 4px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 999;
        max-height: 300px;
        overflow-y: auto;
        display: none;
    }
    
    .search-dropdown .search-result-item {
        padding: 10px;
        border-bottom: 1px solid #eee;
        cursor: pointer;
    }

    
    
    .search-dropdown .search-result-item:last-child {
        border-bottom: none;
    }
    
    .search-dropdown .search-result-item:hover {
        background: #f5f5f5;
    }
    
    .search-dropdown .no-results {
        padding: 10px;
        text-align: center;
        color: #666;
    }
}

.account a i.bi-person {
    color: white;
}