/* ================================== */
/* card producto  -- home */
/* ================================== */
.cardProducto {
    position: relative;
    border: 1px solid #33333325;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    padding: .5rem;
    width: 100%;
    height: 100%;
    transition: .3s all;
    background-color: #fff;

    &:hover {
        box-shadow: var(--sombra);

    }
}

.ofertaCard {
    position: absolute;
    background-color: var(--color-oferta-cardProducto);
    padding: 10px 15px;
    color: #fff;
    top: 0px;
    right: 0px;
    z-index: 9;
}

.contImgCardProducto img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.contInfoCardProducto {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.tituloCardProducto {
    font-size: 18px;
    font-weight: 500;
    margin: 0px;
    color: var(--color-titulo-cardProducto);
    text-decoration: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.tituloCardProducto:visited {
    color: #333;
}

.contPreciosCardProducto {
    display: flex;
    align-items: center;
    gap: 10px;
}

.precioCardProducto {
    font-size: 20px;
    color: var(--color-precio-cardProducto);
    font-weight: 600;
    display: block;
    /* background-color: var(--color1); */
    width: fit-content;
    /* padding: 5px; */
    border-radius: 3px;
}

.precioRegularCardProducto {
    color: #33333390;
    text-decoration: line-through;
    font-size: 14px;
}

.descCardProducto {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.contBtnsCardProducto {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.btnVerMasCardProducto {
    background-color: var(--background-btnVermas-cardProducto);
    width: 100%;
    color: #fff;

    &:hover {
        background-color: var(--background-hover-btnVermas-cardProducto);
        box-shadow: var(--sombra);
    }
}

.btnVerMasCardProducto:visited,
.btnVerMasCardProducto:hover {
    color: #fff;
}

.btnCarritoCardProducto {
    background-color: #09418D;

    &:hover {
        background-color: #073678;
    }
}

/* ================================== */
/* card categorias  -- home */
/* ================================== */
.style-cards-cardCategoria {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.style-cards-contImg {
    background-color: #fff;
    border-radius: 3px;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.style-cards-cardCategoria:hover .style-cards-imgCategoria{
    transform: scale(1.1);
    transition: .3s all;
}

.style-cards-imgCategoria {
    width: 100%;
    height: 100px;
    object-fit: contain;
    transition: .3s all;
}

.style-cards-nombreCategoria {
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    color: var(--textoOscuro);

    &:hover {
        text-decoration: underline;
        color: var(--textoOscuro);
    }
}

.style-cards-nombreCategoria:visited {
    color: var(--textoOscuro);
}




/* ================================== */
/* medias queries */
/* ================================== */
@media (max-width: 1200px) {}

@media(max-width: 991px) {

    .cardProducto {
        padding: .3rem;
    }

    .tituloCardProducto {
        font-size: 16px;
    }
}

@media(max-width: 576px) {
    .cardCategoria {
        width: 150px;
        height: 150px;
    }

    .imgCategoria {
        width: 120px;
        height: 120px;
    }
}

@media(max-width: 400px) {
    .cardCategoria {
        width: 110px;
        height: 110px;
    }

    .imgCategoria {
        width: 180px;
        height: 180px;
    }

}