/**
 * is_productcarousel - Frontend styles
 * Compatible con PrestaShop 1.7 Classic/Starter themes
 */

/* ─── Contenedor principal ─────────────────────────────────────── */
.psc-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 0 40px; /* espacio para botones laterales */
    box-sizing: border-box;
}

 @media (max-width:576px) {
    .psc-wrapper {
        padding: 0px; /* reducir espacio en móviles */
    }
}

/* ─── Track y slides ────────────────────────────────────────────── */
.psc-carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    align-items: stretch;
    gap: 0;
}

.psc-slide {
    flex: 0 0 auto;
    box-sizing: border-box;
    padding: 0 8px;
}

/* Asegurar que la miniatura ocupe todo el ancho del slide */
.psc-slide .product-miniature,
.psc-slide article {
    width: 100% !important;
}

/* ─── Botones de navegación ─────────────────────────────────────── */
.psc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    color: #333;
    /* Compensar el gap del carousel-track */
    margin-top: -20px; /* ajuste fino si el producto tiene badges/flags */
}

.psc-btn:hover,
.psc-btn:focus {
    background: #333;
    border-color: #333;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    outline: none;
}

.psc-btn--prev {
    left: 0;
}

.psc-btn--next {
    right: 0;
}

.psc-btn.psc-btn--disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ─── Dots de paginación ────────────────────────────────────────── */
.psc-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding-bottom: 4px;
}

.psc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: none;
    padding: 0;
    display: inline-block;
}

.psc-dot.psc-dot--active {
    background: #333;
    transform: scale(1.3);
}

/* ─── Accesibilidad: sin animación si el usuario lo prefiere ─────── */
@media (prefers-reduced-motion: reduce) {
    .psc-carousel-track {
        transition: none;
    }
}

/* ─── Ajuste para temas que añaden margin a los artículos ─────────── */
.psc-slide .product-miniature .thumbnail-container,
.psc-slide .js-product-miniature .thumbnail-container {
    margin-left: 0;
    margin-right: 0;
}

.psc-footer{
    text-align: center;
    padding-top: 20px;
}