
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    scroll-padding-top: 1rem;
    scroll-behavior: smooth;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

:root {
    --main-color: rgb(180, 180, 237);
    --text-color: #ffffff; 
    --bg-color: rgb(250, 216, 239);
    --alayli:rgb(239, 111, 125);
}
img{
    width: 70%;
    
    align-items: center;

    border-radius: 10%;
    box-shadow: 0 11px 70px hsl(e 4% 15% / 10%);
}
body{
    color: var(--text-color);
    background: hsla(111, 70%, 58%, 0.3);
    
}
video{
    
    position: fixed;
    min-width: 100%; 
    min-height: 100%;
    
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: -1;
}


.container {
    max-width: 1068px;
    margin: auto;
    width: 89%;
}
section {
    padding: 4rem 0 3rem;
}

header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    

    background: hsla(227, 76%, 75%, 0.3);
    backdrop-filter: blur(2rem);
    box-shadow: -2px 0 4px hsl(0 4% 15% / 10%);
    transition: 0.3s;

    z-index: 100;
}

header .logo {
    
    text-shadow: 0.5px 3px #a19292;
    
    animation: animate 1s linear forwards;
}
@keyframes animate{
    0%{
        font-size: 5px;
        letter-spacing: 0px;
    }
    25%{
        font-size: 10px;
        letter-spacing: 5px;
    }
    50%{
        font-size: 15px;
        letter-spacing: 10px;
    }
    75%{
        font-size: 20px;
        letter-spacing: 6px;
    }
    100%{
        font-size: 25px;
        letter-spacing: 3px;
    }
}



header .shopping{
    position: relative;
    text-align: right;
}
header .shopping span{
    font-size: 0.7rem;
    background-color: var(--alayli);
    border-radius: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: absolute;
    top: 15px;
    left: 90%;
    padding: 3px 10px;
}
 
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    
}
.logo {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 700;
}
#cart-icon {
    font-size: 2rem;
    cursor: pointer;
}

#cart-icon:hover {
    color: #e47f7f;

}
.cart{
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    min-height: 20dvh;
    padding: min(10dvh, 10rem) 2em;
    
    background: hsla(227, 22%, 45%, 0.9);
    backdrop-filter: blur(2rem);
    box-shadow: -2px 0 4px hsl(0 4% 15% / 10%);
    transition: 0.3s;
}



.cart.active{
    right: 0;

}
.cart-title{
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
    
}
.cart-box {
    display: grid;
    grid-template-columns: 32% 50% 19%;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    
}
.cart-img{
    width: 60px;
    height: 60px;
    object-fit: contain;
    padding: 0px;
    border-radius: 10px;
    box-shadow: 0 11px 3px rgba(27, 25, 39, 0.3);
}

.detail-box { 
    display: grid;
    row-gap: 0.1rem;
}
.cart-product-title {
    font-size: 1rem;
    text-transform: uppercase;
}
.cart-price {
    font-weight: 500;
    color: var(--main-color)
}
.cart-quantity {
    border: 1px solid var(--text-color);
    border-radius: 10%;
    outline-color: var(--main-color);
    box-shadow: 0 11px 3px rgba(27, 25, 39, 0.3);
    width: 2.4rem;
    text-align: right;
    font-size: 1rem;
}

.cart-remove{
    font-size: 29px;
    color: var(--alayli);
    
    right: 10px;
    cursor: pointer;
}
.cart-remove:hover{
    font-size: 33px;
    color: var(--bg-color);
}


.total{
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    border-top: 1px solid var(--text-color);
    box-shadow: 0 11px 3px rgba(27, 25, 39, 0.2);
}
.total-title{
    font-size: 1rem;
    font-weight: 600;
}
.total-price {
    margin-left: 0.5rem;
    color: var(--main-color);
}
.btn-buy{
    display: flex;
    margin: 1.5rem auto 0 auto;
    padding: 12px 20px;
    border: none;
    border-radius: 10%;
    background: var(--alayli);
    color: var(--bg-color);
    box-shadow: 0 11px 3px rgba(27, 25, 39, 0.2);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-buy:hover{
    background: var(--text-color);
    color: var(--alayli);
    letter-spacing: 1px;

}
#close-cart {
    position: absolute;
    top: 1rem;
    right: 0.8rem;
    font-size: 2rem;
    color: var(--alayli);
    
    cursor: pointer;
}
#close-cart:hover {
    color: var(--main-color);
}



.section-title {
    padding: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
}
.shop-content {
    display: grid;
    
    grid-template-columns: repeat(auto-fit, minmax(220px, auto));
    gap: 1.3rem;
}



.product-bo {
    position: relative;
    
    border-radius: 7%;
    background-color:hsla(145, 68%, 83%, 0.3);
    border-inline-color: var(--bg-color);
    box-shadow: 0 21px 33px rgba(147, 137, 240, 0.5);
    border-bottom: 1px solid rgba(240, 31, 80, 0.3);
    border-top: 1px solid rgba(213, 13, 13, 0.3);
    backdrop-filter: blur(7px);
    cursor: pointer;
   
}

.product-bo:hover  {
    padding: 17px;
    letter-spacing: 3px;
    rotate: 3%;
    border: 2.7px solid var(--alayli);
    transition: 0.3s;
    color :var(--alayli);
    

}

.product-bo .product-title{
    position: absolute;
    left: 22%;
    top: -3px;
}


.product-box {
    position: relative;
    border-radius: 7%;
    background-color:hsla(145, 68%, 83%, 0.3);
   
    border-inline-color: var(--bg-color);
    box-shadow: 0 21px 33px rgba(147, 137, 240, 0.5);
    border-bottom: 1px solid rgba(240, 31, 80, 0.3);
    border-top: 1px solid rgba(213, 13, 13, 0.3);
    backdrop-filter: blur(7px);

    padding: 10px;
    transition: 0.5s;
    
}
.product-box:hover {
    padding: 17px;
    letter-spacing: 3px;
    rotate: 3%;
    border: 2.7px solid var(--alayli);
    transition: 0.3s;
}
.product-img {
    width: 77%;
    height: auto;
    box-shadow: 0 11px 3px rgba(27, 25, 39, 0.3);
    
    margin-bottom: 0.5rem;
}
.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    
}
.price {
    font-weight: 500;
    color: var(--main-color);
}
.add-cart{
    position: absolute;
    bottom: 7px;
    right: 7px;
    background: var(--text-color);
    border: 2px solid var(--alayli);
    border-radius: 20%;
    border-color: var(--alayli);
    
    
    color: var(--alayli);
    padding: 5px;
    cursor: pointer;
}
.add-cart:hover{
    background: var(--alayli);
    color: var(--bg-color);
    border-radius: 30%;
}



