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

.containerCategory {
    background: #fff;
    width: 100%;
    // padding: 2rem 0;
    margin-top: 2rem;
}

.sliderContainer > div > div > div > div{
  padding:0 0.5rem ;
  width: 100%;
    align-items: center;
    display: flex;
    justify-content: center;
}

.home__from_the_blog__list {
  margin: -(30px / 2);
}

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

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

}

.card {

    // background: transparent;
    // border-radius: 10px;
    // display: flex;
    // flex-direction: column;
    // align-content: space-around;
    // justify-content: center;
    // align-items: center;
    // // padding: 1rem 0.5rem;
    //  position: relative;
    // padding-bottom: 3.5rem;

        border: 1px solid #EBEBEB;
    background: #ffffff;
    padding: 1rem;
    display: flex
;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    position: relative;
    padding-top: 0;
    border-radius: 8px;

}

.imgContainer {
    width: 280px;
    height: 200px;
    background: $white;
    display: flex;
    align-items: center;
}

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

.image {
     width: 280px;
    height: 200px;
    cursor: pointer;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
    margin-bottom: 0.5rem !important;
}



.productImgParent {
    max-height: 176px;
    width: 100%;
}

.cardTitle {
    font-weight: 500;
    font-size: 20px;
    line-height: 22px;
    text-align: center;
    color: #222222;
    padding-top: 0.5rem;

}

@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;
    }
    .home__from_the_blog__list{
    margin: 0;
  }
}

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