/* =========================
   TARJETA DE PRODUCTO
========================= */

.product-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
}


/* =========================
   IMAGEN
========================= */

.product-image-container {
    position: relative;
    overflow: hidden;
    background-color: #f7f7f7;
}

.product-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.product-card:hover .product-card-image {
    transform: scale(1.04);
}


/* =========================
   ETIQUETA
========================= */

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #048ABF;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-badge-discount{
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #198754;
    color: #fff;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* =========================
   CUERPO
========================= */

.product-card .card-body {
    padding: 18px;
}


/* =========================
   NOMBRE
========================= */

.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================
   OPCIONES / CARACTERÍSTICAS
========================= */

.product-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.product-options span {
    background-color: #f1f3f4;
    color: #555;

    padding: 4px 8px;
    border-radius: 6px;

    font-size: .75rem;
}


/* =========================
   PRECIO
========================= */

.product-price-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.product-price-container small {
    color: #777;
    font-size: .75rem;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
}

.product-price-container-2 {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin-bottom: 15px;
}

.product-payment-promotion{
    background-color: #f3f3f3;
    border-radius: 15px;
    justify-content: center;
    display: flex;
    padding: 5px;
    color: #004A91;
    font-size: 17px;
    text-align: center;
}

.product-payment-promotion-info{
    background-color: #e8f7ee;
    border-radius: 15px;
    justify-content: center;
    display: flex;
    padding: 9px;
    color:#198754;
    font-size: 13px;
    margin-bottom: 10px;
    text-align: center;
}


.product-installments{
    display: flex;
    flex-direction: column;
    margin: 8px;
}

.product-installments small{
    font-size: 10px;
    display: flex;
    justify-content: center;
}

.product-installments strong{
    font-size: 15px;
    text-align: center;
}
.product-price-main{
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.product-price-main span{
    font-size: 18px;
}
/* =========================
   BOTONES
========================= */

.product-buttons {
    display: flex;
    gap: 8px;
}

.btn-product-primary,
.btn-product-secondary {
    flex: 1;

    padding: 9px 8px;

    border-radius: 7px;

    text-align: center;
    text-decoration: none;

    font-size: .85rem;
    font-weight: 600;

    transition: all .2s ease;
}


/* Botón principal */

.btn-product-primary {
    background-color: #048ABF;
    color: #fff;
}

.btn-product-primary:hover {
    background-color: #03759f;
    color: #fff;
}


/* Botón secundario */

.btn-product-secondary {
    background-color: #fff;
    color: #048ABF;
    border: 1px solid #048ABF;
}

.btn-product-secondary:hover {
    background-color: #048ABF;
    color: #fff;
}

.product-price-container {
    margin-top: 12px;
}

.product-price-original {
    display: block;
    color: #888;
    font-size: 0.85rem;
    text-decoration: line-through;
}

.product-price-discount {
    display: block;
    margin-top: 2px;
}

.product-discount-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    background-color: #e8f7ee;
    color: #198754;
    font-size: 0.75rem;
    font-weight: 700;
}

/*SCROLL EN VIEW Y WELCOME MOBILE*/
@media (max-width: 1000px) {

    .products-scroll-mobile {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .products-scroll-mobile::-webkit-scrollbar {
        display: none;
    }

    .products-scroll-mobile > .col-12 {
        flex: 0 0 clamp(280px, 75vw, 300px);
        scroll-snap-align: start;
    }
}