/* Google Fonts  */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Globals  */
* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
    scroll-padding: 2rem;
}

/* Variables  */
:root {
    --main-color: #fd4646;
    --sec-color: #4946fd;
    --text-color: #171427;
    --bg-color: #fff;
}

::selection {
    color: var(--text-color);
    background-color: var(--main-color);
}

/* .container {
    max-width: 1068px;
    margin: auto;
    width: 100%;
} */

/* section {
    padding: 4rem 0 3rem;
} */

body {
    color: var(--text-color);
}

img {
    /* width: 100%; */
}

/* =======================================  */
/* HEADER  */
.box-container {
    /* height: 40px; */
    /* right: -20px;
       position: absolute;
       top: -68px;
       left: auto;
       width: 50px; */
    /* background-color: var(--bg-color); */
    /*box-shadow: 0 1px 4px hsl(0 4% 15% / 10%);*/
    z-index: 9999;
    border: none;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 5%;
    position: absolute;
    right: 0;
    top: 20%;
}

/* 
.logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sec-color);
    text-transform: uppercase;
}

.logo span {
    color: var(--main-color);
    font-weight: 700;
} */

#cart-icon {
    /* width: 50px;
    height: 50px; */
    cursor: pointer;
    font-size: 2rem;
    background-color: #fd4646;
    border-radius: 30px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    padding: 5%;
    align-items: center;
    color: #fff;
}

/* CART  */
.cart {
    position: fixed;
    top: 0;
    right: 0;
    right: -100%;
    width: 360px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    background-color: var(--bg-color);
    box-shadow: -2px solid 4px hsl(0 4% 15% / 10%);
    border: 1px solid var(--main-color);
    transition: 1.5s;
    z-index: 9999;
}

.cart.active {
    right: 0;
    transition: .5s;
}

.cart-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
}

.cart-box {
    display: grid;
    grid-template-columns: 35% 40% 25%;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.cart-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    padding: 10px;
}

.detail-box {
    display: grid;
    row-gap: .5rem;
}

.cart-product-title {
    font-size: 1rem;
    text-transform: uppercase;
}

.cart-price {
    font-weight: 500;
}

.cart-quantity {
    border: 1px solid var(--text-color);
    outline-color: var(--main-color);
    width: 2.4rem;
    text-align: center;
    font-size: 1rem;
}

.cart-remove {
    font-size: 24px;
    color: var(--main-color);
    cursor: pointer;
}

.total {
    /* display: flex; */
    /* justify-content: flex-end; */
    margin-top: 1.5rem;
    /* border-top: 1px solid var(--text-color); */
}

.total-title {
    font-size: 1rem;
    font-weight: 600;
}

.total-price {
    margin-left: .5rem;
}

.btn-buy {
    display: flex;
    margin: 1.5rem auto 0 auto;
    padding: 12px 20px;
    border: none;
    background-color: var(--sec-color);
    color: var(--bg-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-buy:hover {
    background-color: var(--text-color);
}

#cart-close {
    position: absolute;
    top: 1rem;
    right: .8rem;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
}

/* SHOP SECTION  */

.section-title {
    font-style: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
}

.shop-content {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
}

.product-box {
    padding: 5% 5% 10%;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #eeeee6;
    border-radius: 15px;
    margin: 10px;
/* text-align: center; */
}



.product-box:hover {
    padding: 10px;
    border: 1px solid var(--text-color);
    transition: .4s;
}

/* .product-box:hover + .add-cart{
   display: block !important;
} */

.product-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: .5rem;
    border-radius: 15px;
}
 .cart-page-pay .product-img {
    height: 170px;
    width: 250px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    /* margin-bottom: .5rem; */
    border-radius: 15px;
 }
.product-title {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: .5rem;
    margin-top: 3%;
    color: #171427;
    font-weight: 600;
}

.product-price {
    font-weight: 500;
    font-size: 17px;
    color: #ff250c;
}

.add-cart {
    border-color: var(--text-color);
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    height: 35px;
    padding: 2% 6%;
    width: 100px;
    margin-top: 5%;
    text-align: center;
    position: absolute;
    left: auto;
    right: 14px;
    bottom: 24px;
    border-radius: 0px 50px 50px 50px;
}

.add-cart span {
    font-size: 12px;
}

.add-cart:hover {
    background-color: hsl(249, 32%, 17%);
    border-radius: 0;
}


/* ================ RESPONSIVE & BREAKPOINTS ============= */
@media (max-width: 1080px) {

    .box-container {
        width: 10%;
        top: 10%;
        right: 4%;
    }

    /* section {
        padding: 3rem 0 2rem;
    } */
}

/* For Medium Devices */
@media (max-width: 700px) {
    
    .cart-page-pay .product-img{
        width: 140px;
        height: 90px;
    }
     .cart-page-pay .product-img img{
        width: 90%;
    }

    .logo {
        font-size: 1rem;
    }

    .cart {
        width: 320px;
    }
}

/* For Small Devices */
@media (max-width: 360px) {
    .shop {
        margin-top: 1rem;
    }

    .cart {
        width: 280px;
    }
}