@import url(../../base/css/base.css);

.container {
    width: 95%;
    padding: 100px 0px;
    margin-inline: auto;
}


/* HEADING */

.heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-block: 20px;
}

.heading__subtitile {
    font-size: 12px;
    color: var(--black-500);
    text-align: center;
}

.heading__title {
    font-size: 28px;
    color: var(--black-400);
    text-align: center;
    font-family: var(--font-base-medium);
}

.no-items {
    display: flex;
    justify-content: center;
}


/* PRODUCT CARDS */

.products {
    padding-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10em, 1fr));
    row-gap: 32px;
    column-gap: 16px;
}

.card {
    /* background-color: rgb(255, 189, 189); */
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1;
    overflow: hidden;
    /* border: 1px solid #e2e2e2;
    padding: 8px;
    box-sizing: initial;
    border-radius: 16px; */
}

.image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-sizing: border-box;
    border-radius: 12px;
    background-color: white;
}

.add-wishlist {
    /* position: absolute; */
    /* right: .5em; */
    /* top: .5em; */
    border-radius: 18px;
    height: 36px;
    width: 36px;
    border: none;
    background-color: #50505081;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    aspect-ratio: 1 / 1;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
}

.wishlist-icon {
    fill: var(--color-white);
    height: 24px;
    width: 24px;
    object-fit: contain;
}

.product-meta {
    font-size: 14px;
    position: absolute;
    padding: 4px 16px;
    background-color: #d0f3e2;
    color: rgb(5, 153, 42);
    border-radius: 4px;
    opacity: 0.9;
    left: 4px;
    top: 16px;
}

.description {
    color: var(--black-500);

    display: flex;
    flex-direction: column;
}

.card-heading__title{
    color: var(--black-400);
    font-family: var(--font-base-medium);
    line-height: 120%;
    font-size: 16px;
}

.card__is-available {
    font-size: 10px;
    font-family: var(--font-base-medium);
    color: rgb(22, 173, 179);
}

.card-heading__price {
    display: flex;
    color: var(--black-500);
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card__price-discount {
    font-size: 16px;
    color: var(--black-500);
    /* font-family: var(--font-base-medium); */
}

.card__price-regular {
    font-size: 10px;
    color: var(--primary-color);
    text-decoration: line-through;
    /* font-family: var(--font-base-bold); */
}

.card__price {
    flex: 1;
}

.card__rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    padding: 0px;
    margin: 0px;
    display: flex;
    gap: 2px;
}

.card__rating-value {
    /* font-family: var(--font-base-medium); */
    font-size: 12px;
    color: #919191;
}

.star {
    height: 16px;
    width: auto;
    fill: #ffd35c;
}

.add-to-cart {
    padding: 8px;
    border-radius: 100px;
    border: 1px solid #4491e9;
    color: #4491e9;
    background-color: transparent;
    /* background: linear-gradient(to right, #559fff, #ff45d7); */
    font-weight: 600;
    font-size: 14px;
    /* border: none; */

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
}

.add-to-cart:hover {
    background-color: var(--primary-color);
    color: white;
}

.add-to-cart:hover .add-to-cart__svg {
    fill: white;
}

.add-to-cart__svg {
    fill: #4491e9;
    height: 1.2em;
}

.buttons {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    gap: 4px;
    right: 8px;
    top: 8px;
}

.add-cart {
    height: 36px;
    width: 36px;
    border-radius: 18px;
    border: none;
    color: white;
    background-color: #000e88b6;
    backdrop-filter: blur(4px);
    font-size: 28px;
    font-display: var(--font-base-bold);

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.add-cart__icon {
    height: 16px;
    fill: white;
}

@media screen and (min-width: 700px) {
    .container {
        padding-block: 130px;
        width: min(80vw, 1100px);
    }
    
    .heading {
        margin-block: 50px;
    }

    .products {
        grid-template-columns: repeat(auto-fit, 10rem);
        justify-content: center;
        /* grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); */
    }
}