/* navbar */

.yellow-background {
    background-color: #A2867A;
    padding: 5px 20px 0px 20px;
    position: fixed;
    margin: 0;
    z-index: 400;
    top: 0;
    width: 100%;

}

.logo {
    width: 85px;
    height: 41px;
}


.cart-icon {
    width: auto;
    height: 15px;
    cursor: pointer;
}
.cart-icon2 {
    width: auto;
    height: 15px;
    cursor: pointer;
    
}

.nav {
    display: flex;
    justify-content: space-between;
   
}

.nav-list {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-list > li > a{
    font-family: Roboto;
    font-size: 15px;
    font-weight: 500;
    line-height: 23.44px;
    text-align: left;
    color: #fff;
    display: flex;
    align-items: center;
}

.nav-header {
    display: flex;
    justify-content: space-between;
  
}

.hamburger {
    display: none;
}

/* footer */

.absolute {
    position: absolute;
    bottom: 0;
}

.footer {

    background-color: #925239;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
    bottom: 0;
    position: fixed;
    width: 100%;
    

}

.footer-icon {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: flex-start;
}

.footer-icon > img {
    width: 16px;
    height: 18px;
}

.footer-icon > a > img{
    width: 16px;
    height: 18px;
}

.footer-icon > a {
    margin: 0;
    padding: 0;
}

.footer-terms > p {
    font-family: Roboto;
    font-size: 15px;
    font-weight: 400;
    text-align: left;
    color: #fff;
    display: flex;
    align-items: center;
    margin: 0;
}

/* Updates 1 */

.header-list, .layered-list{
    display: flex;
    flex-direction: column;
    
    position: relative;
}

.header-dropdown, .layered-dropdown, .login-dropdown{
    display: flex;
    flex-direction: column;
    position: relative;
}

.display-none{
    display: none;
}



.header-dropdown > p, .layered-dropdown > p {
    margin: 0;
    font-family: Roboto;
    font-size: 15px;
    font-weight: 500;
    line-height: 23.44px;
    text-align: left;
    color: #fff;
    cursor: pointer;

}

.dropdown-container, .layered-container{
    position: absolute;
    display: none;
    flex-direction: column;
    background-color: #fff;
    padding: 20px 10px 0px 10px;
    border-radius: 10px;
    width: 150px;
    top: 30px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.login-container{
    position: absolute;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #fff;
    padding: 5px 10px ;
    border-radius: 10px;
    width: 160px;
    left: -70px;
    top: 30px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    gap: 5px;
}

.dropdown-container > a, .layered-container > a {
    font-family: Roboto;
font-size: 15px;
font-weight: 500;
line-height: 11.72px;
text-align: left;
color: #000;
margin-bottom: 20px;
}

.login-container > a, .display-flex > a{
    font-family: Roboto;
font-size: 13px;
font-weight: 400;
color: #000;
background-color: #fff;
padding: 2px 8px;
border-radius: 5px;


}

.display-flex {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.display-flex > a:hover {
 background-color: #A2867A;
 color: #fff;
}



.cart-figure {
    font-size: 10px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background-color: red;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}


.new-cartdropdown {
    display: none;
    position: absolute;
    background-color: #fff;
    width: 170px;
    height: fit-content;
    right: -15px;
    top: 30px;
    padding: 7px;
    border-radius: 10px;
}

.relative:hover .new-cartdropdown {
    display: none;
}


.relative{
    position: relative;
}

.cart-first2 > img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
 
}

.cart-first2 {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.cart-text2 > h4 {
    font-family: Roboto;
    font-size: 10px;
    font-weight: 400;
    margin-bottom: 4px;
    text-align: left;
    color: #000;
  
}

.cart-text2 > h3 {
    font-family: Roboto;
    font-size: 11px;
    font-weight: 400;
    margin-bottom: 4px;
    text-align: left;
    color: #000;
}

.cart-subtext{
    display: flex;
    justify-content: center;
    gap: 30px;
}

.dropcart-button-container {
    display: flex;
    justify-content: space-between;
}

.dropcart-button{
    border: 0;
    font-size: 10px;
    padding: 2px 4px;
    background-color: #E75480BA;
    color: #fff;
    border-radius: 5px;
}

.account-anchor{
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-icon {
    width: auto;
    height: 15px;
}




@media only screen and (min-width:200px) and (max-width:600px) {
    .yellow-background {
        padding: 5px 10px 0px 10px;
        width: 100%;
    }

    .logo {
        width: auto;
        height: 30px;
    }

    .nav-header{
        width: 100%;

    }

    .nav-list {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 70vh;
        width: 100%;
    }

    .nav-list-add{
        width: 100%;
    }

    .hamburger {
        display: block;
    }
    .footer {
        gap: 70px;
        align-items: flex-start;
        padding: 5px 10px;
    
    }

    .footer-terms > p {
        font-size: 10px;
        font-weight: 400;

    }

    .footer-icon > img {
        width: auto;
        height: 13px;
    }
}
@media only screen and (min-width:605px) and (max-width:1000px) {
    .yellow-background {
        padding: 5px 10px 0px 10px;
        width: 100%;
    }

    .logo {
        width: auto;
        height: 40px;
    }

    .hamburger > svg {
        width: auto;
        height: 30px;
    
    }

    .nav-header{
        width: 100%;

    }

    .nav-list {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 70vh;
        width: 100%;
    }

    .nav-list-add{
        width: 100%;
    }

    .hamburger {
        display: block;
    }
    .footer {
        gap: 70px;
        align-items: flex-start;
        padding: 5px 10px;
    
    }

    .footer-terms > p {
        font-size: 15px;
        font-weight: 400;

    }

    .footer-icon > img {
        width: auto;
        height: 15px;
        margin-left: 10px;
    }
}


/* ============================================
   HEADER UX / UI ENHANCEMENTS
   ============================================ */

/* Smooth dropdown open animation */
@keyframes ka-dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdown-container,
.layered-container,
.login-container {
    animation: ka-dropIn 0.18s ease both;
    transition: opacity 0.18s ease;
}

/* Nav link hover — sliding underline */
.nav-list > li > a,
.header-dropdown > p,
.layered-dropdown > p {
    position: relative;
    transition: color 0.18s ease;
}

.nav-list > li > a::after,
.header-dropdown > p::after,
.layered-dropdown > p::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: #ED82A2;
    transition: width 0.22s ease;
    border-radius: 2px;
}

.nav-list > li > a:hover::after,
.header-dropdown:hover > p::after,
.layered-dropdown:hover > p::after {
    width: 100%;
}

/* Cart badge subtle pulse */
@keyframes ka-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.25); }
}
.cart-figure {
    animation: ka-pulse 2.5s ease-in-out infinite;
}

/* Nav link hover color */
.nav-list > li > a:hover {
    color: #FADBE4;
}

/* Account icon hover */
.account-anchor {
    transition: opacity 0.18s ease;
}
.account-anchor:hover {
    opacity: 0.8;
}

/* Navbar shadow for depth */
.yellow-background {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
}
