@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.hero {
    display: flex;
    justify-content: space-between;
    height: 100vh;
    padding: 1.5rem;
    background-color: #E9FAFF;

}

.left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    width: 50%;
    overflow: hidden;
}

#main {
    width: 85%;
    align-self: center;
}

.left img {
    border-radius: 20px;
}
.second {
    width: 20%;
}

.right {
    display: flex;
    flex-direction: column;
    width: 50%;
    padding: 5rem 3rem 0 1rem;
}

#product-name {
    font-size: 2rem;
    color: var(--blue);
}

p {
    margin-top: 0.5rem;
    font-size: 0.8rem;

}

hr {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid #b4b4b4;

}

h2 {
    font-weight: 600;
    color: var(--blue);
}

h3 {
    font-weight: 500;
    color: var(--blue);
}

.colors {
    margin-top: 0.5rem;
    display: flex;
    width: 50%;
}

.color-btn .color {
    margin-right: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
}

.color:hover {
    border: solid 3px rgb(5, 55, 5);
}

.active {
    border: solid 3px rgb(5, 55, 5);
}

.color-btn {
    border: none;
    background-color: transparent;
}

.color-btn.active .color {
    border: solid 5px rgb(5, 55, 5);
}


.quantity {
    background-color: #efefef;
    display: flex;
    justify-content: center;
    width: 25%;
    padding: 0.8rem 0.5rem;
    border-radius: 1.3rem;
}

#q {
    border: none;
    background-color: transparent;
    text-align: center;
    width: 50%;
}

.btns {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 2%;
}

#buy {
    border: none;
    background-color: var(--blue);
    color: white;
    padding: 0.8rem 3rem;
    border-radius: 1rem;
    width: 49%;
}

#add {
    border: none;
    background-color: transparent;
    color: rgb(5, 55, 5);
    padding: 0.8rem 3rem;
    border: solid 1px var(--blue);
    border-radius: 1rem;
    width: 49%;
}

/* PRODUCTS */

.product-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    margin-top: 4rem;

}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 23rem;
    width: 22vw;
    border-radius: 0.9375rem;
    box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.15);
    margin-top: 1.3rem;
    padding-bottom: 1rem;
    overflow: hidden;
}

.card-img {
    width: 100%;
}

.card-img:hover {
    transform: scale(1.1);
    transition: 0.3s ease-in-out;
}

.card-body {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 0 1rem;
}

.product-name {
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--blue);
}

.price {
    font-weight: 400;
    color: var(--blue);
}

.icon-div {
    box-shadow: 0px 0px 6px 3px rgba(0, 0, 0, 0.05);
    border-radius: 48%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: black;
}

.icon-div:hover {
    background-color: black;
    transition: 0.3s ease-in-out;
}

.bx-cart-add {
    font-size: 1.2rem;
    padding: 0.4rem 0.6rem;
}

.bx-cart-add{
    color: var(--blue);
}
.bx-cart-add:hover {
    color: white;
    background-color: var(--blue);
    transition: 0.3s ease-in-out;
}

.related {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#related {
    color: var(--blue);
}


@media (max-width: 720px) {
    .hero {
        flex-direction: column;
        justify-content: start;
        align-items: center;
        height: auto;
    }

    .left,
    .right {
        width: 100vw;
    }
    .card {
        width: 44vw;
        height: auto;
    }

}
@media (max-width:400px) {
    .card {
        width: 42vw;
    }
}