/* Detalle de Producto */

/*  CONTENEDOR PRINCIPAL */
.product-detail-container {
    background-color: #ffffff;
    padding: 4rem 1rem;
    margin-bottom: 2.5rem;
}

.product-detail-title {
    text-align: center;
    color: #121a77;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* IMAGEN PRINCIPAL */
.product-image-section {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
}

.main-product-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.main-product-image:hover {
    transform: scale(1.02);
}

/*  MINI CAROUSEL DE IMÁGENES */
.mini-carousel {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.mini-carousel img {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.mini-carousel img:hover {
    border-color: #f9a94c;
    /* Naranja pastel */
    transform: scale(1.04);
    box-shadow: 0 0 4px rgba(249, 169, 76, 0.3);
}

/*  INFORMACIÓN DEL PRODUCTO */
.product-info h2 {
    color: #121a77;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: #374151;
}

.product-price {
    font-size: 1.5rem;
    color: #f97316;
    font-weight: bold;
    margin: 1rem 0;
}

/* BOTONES DE ACCIÓN - ELEGANTES Y COMPACTOS */
.product-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

/* para boton cart */
.cart {
    background-color: #f9fafb;
    /* Gris muy suave */
    color: #374151;
    border: 1.5px solid #d1d5db;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 125px;
    height: 42px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    white-space: nowrap;

}

.cart:hover {
    transform: translateY(-2px);
    color: #ffffff;
    border-color: transparent;
}

/*  Agregar al carrito */
.cart:hover {
    background-color: #121a77;
    box-shadow: 0 3px 8px rgba(18, 26, 119, 0.25);
}

/*  Base general */
.btn-omega {
    background-color: #f9fafb;
    /* Gris muy suave */
    color: #374151;
    border: 1.5px solid #d1d5db;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 125px;
    height: 42px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-omega:hover {
    transform: translateY(-2px);
    color: #ffffff;
    border-color: transparent;
}

/*  Íconos */
.btn-omega i {
    font-size: 0.95rem;
    opacity: 0.9;
}

/*  Agregar al carrito */
.btn-add:hover {
    background-color: #121a77;
    box-shadow: 0 3px 8px rgba(18, 26, 119, 0.25);
}

/*  Consultar por WhatsApp */
.btn-whatsapp:hover {
    background-color: #22c15e;
    box-shadow: 0 3px 8px rgba(34, 193, 94, 0.25);

}

/*  Proceder a pagar */
.btn-pay:hover {
    background-color: #f48b3c;
    box-shadow: 0 3px 8px rgba(244, 139, 60, 0.25);
}

.btn-see-more {
    background-color: #f48b3c;
    box-shadow: 0 3px 8px rgba(244, 139, 60, 0.25);
}


.products-box {
    margin-top: 3rem;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

.products-box .title_carousel h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #121a77;
    margin-bottom: 1.5rem;
    position: relative;
}

.products-box .title_carousel h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #f97316;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/*  Carrusel más limpio y centrado */
#carousel_related {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.products-box .carousel-inner {
    overflow: hidden;
}

.products-box .carousel-item .row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1rem;
}

/*  Mantiene 4 productos por slide en desktop y tablet */
.products-box .carousel-item .col-6,
.products-box .carousel-item .col-sm-6,
.products-box .carousel-item .col-md-3,
.products-box .carousel-item .col-lg-3 {
    flex: 0 0 calc(25% - 1rem);
    max-width: calc(25% - 1rem);
}

/*  Efecto suave al pasar slides */
.products-box .carousel-item {
    transition: transform 0.8s ease-in-out;
}

.products-box .products-single img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.products-box .products-single img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/*  CONTROLES DEL CARRUSEL DE PRODUCTOS RELACIONADOS */
#carousel_related .carousel-control-prev,
#carousel_related .carousel-control-next {
    width: 42px;
    height: 42px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(18, 26, 119, 0.85);
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.25s ease;
}

#carousel_related .carousel-control-prev:hover,
#carousel_related .carousel-control-next:hover {
    background-color: #f97316;
    transform: translateY(-50%) scale(1.05);
}

#carousel_related .carousel-control-prev-icon,
#carousel_related .carousel-control-next-icon {
    filter: invert(1);
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

/* Transición sutil de visibilidad */
#carousel_related .carousel-control-prev,
#carousel_related .carousel-control-next {
    opacity: 0;
}

#carousel_related:hover .carousel-control-prev,
#carousel_related:hover .carousel-control-next {
    opacity: 1;
}

/*  ANIMACIONES SUAVES PARA EL CARRUSEL DE RELACIONADOS*/

/*  Aparición suave de cada slide (entrada desde la derecha/izquierda) */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Desvanecimiento general de productos al cargar */
@keyframes productFadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/*   animaciones */
.products-box .carousel-item.active {
    animation: fadeSlideIn 0.8s ease both;
}

.products-box .products-single {
    animation: productFadeIn 0.6s ease both;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .products-box .carousel-item .row {
        flex-wrap: nowrap;
    }

    .products-box .carousel-item .col-6,
    .products-box .carousel-item .col-sm-6,
    .products-box .carousel-item .col-md-3,
    .products-box .carousel-item .col-lg-3 {
        flex: 0 0 calc(25% - 0.75rem);
        max-width: calc(25% - 0.75rem);
    }
}

@media (max-width: 992px) {
    .product-detail-container {
        padding: 2rem 1rem;
    }

    .product-actions {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.8rem;
    }

    .btn-omega {
        flex: 0 0 auto;
        min-width: 115px;
        font-size: 0.85rem;
        height: 40px;
    }

    .mini-carousel img {
        width: 60px;
        height: 60px;
    }

    .products-box {
        margin-top: 2rem;
        padding-top: 0.5rem;
    }

    .products-box .title_carousel h1 {
        font-size: 1.4rem;
    }

    .products-box .carousel-item .row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .products-box .carousel-item .col-6,
    .products-box .carousel-item .col-sm-6,
    .products-box .carousel-item .col-md-3,
    .products-box .carousel-item .col-lg-3 {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }

    #carousel_related .carousel-control-prev,
    #carousel_related .carousel-control-next {
        opacity: 1;
        top: 90%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {

    .products-box .carousel-item .col-6,
    .products-box .carousel-item .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}