@import "../../../styles/varibale.scss";

.containerCategory {
    background: #f9f9ff;
    padding: 1rem 1rem 0;
    // margin-top: 2rem;
}

.sectionSubTitle {
    font-weight: 700;
    font-size: 30px;
    line-height: 1.4;
    color: $primaryColor;
    text-align: center;
    padding-bottom: 1rem;
}

.cardContainer {
    display: grid;
    --num-cols: 6;
    --gap: 1em;
    padding: var(--gap);
    grid-template-columns: repeat(var(--num-cols), 1fr);
    gap: var(--gap);
}

.card {
    background: $white;

    border-radius: 10px;
    width: 180px;
    display: flex;
    justify-content: center;
    padding: 1rem;
    flex-direction: column;
    position: relative;
    padding-bottom: 3.5rem;
    box-shadow: 0px 4px 60px rgba(0, 0, 0, 0.06);
    border-radius: 10px;

}

.image {
    height: 120px;
    width: 150px;
    object-fit: contain;
}

.cardTitle {
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    margin-top: 16px;
    text-align: center;
    color: #3D3D3D;
}

.offerTitle {
    font-weight: 600;
    font-size: 12px;
    line-height: 22px;
    color: $indisparePink;
    text-align: center;
    padding: 0.5rem 0;
}

.button {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translate(-50%, 0);
}

@media (max-width: 1080px) {
    .cardContainer {
        --gap: .5em;
        --num-cols: 4;
    }
}

@media (max-width: 839.98px) {
    .cardContainer {
        --gap: 0.5em;
        --num-cols: 3;
    }
}

@media (min-width: 840px) and (max-width: 1040px) {
    .cardContainer {
        --gap: 0.5em;
        --num-cols: 3;
    }
}

@media (max-width: 768px) {
    .cardContainer {
        --gap: 0.5em;
        --num-cols: 2;
    }
}

@media (max-width: 460px) {
    .cardContainer {
        --gap: 1.5em;
        --num-cols: 2;
        // --row-height: 330px;
        align-items: center;
        justify-content: center;

    }

    .card {
        width: 160px;
        height: 100%;
    }
}