/* =============================================
   TH Slider Builder — Frontend
   Matches original producto-slider.css exactly
   ============================================= */

.th-slider-wrapper {
    margin: 20px 0 40px;
}

.th-slider-titulo {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 16px;
    color: inherit;
}

/* Carrusel */
.th-productos-carrusel {
    padding: 0 50px;
    position: relative;
    margin: 20px 0 40px;
}

/* Tarjeta */
.th-producto-item {
    box-sizing: border-box;
    padding: 15px;
    margin: 10px;
    border-radius: 30px 0px 30px 0px;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 2px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.th-producto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 5px rgba(0,0,0,0.1);
}

/* Imagen */
.th-producto-imagen {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #ffffff;
}

.th-producto-imagen a {
    display: block;
    position: absolute;
    inset: 0;
}

.th-producto-imagen img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.th-producto-item:hover .th-producto-imagen img {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Marca */
.th-producto-marca {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Título */
.th-producto-titulo {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0 !important;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
}

.th-producto-titulo:hover { color: var(--theme-palette-color-1, #ff6a00); }

/* Precios */
.th-producto-precios {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

.th-precio-actual {
    font-size: 24px;
    font-weight: 700;
    color: var(--theme-palette-color-1, #ff6a00);
}

.th-precio-regular-container {
    display: flex;
    align-items: center;
    gap: 1px;
}

.th-precio-regular {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

/* Cuotas */
.th-cuotas-texto {
    font-size: 14px;
    color: #4CAF50;
    font-weight: 500;
    margin-top: 4px;
}

/* Botón agregar */
.th-add-to-cart-container {
    display: flex;
    margin-top: 10px;
    align-items: center;
}

.th-add-to-cart {
    flex: 1;
    width: 100%;
    padding: 10px 20px;
    background-color: var(--theme-palette-color-2, #222);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.th-add-to-cart:hover {
    background-color: var(--theme-palette-color-1, #ff6a00);
}

.th-add-to-cart.added {
    background-color: #4CAF50;
}

/* Agotado */
.th-out-of-stock {
    width: 100%;
    padding: 10px;
    background-color: #f3f4f6;
    color: #666;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
}

.th-no-products {
    padding: 20px;
    color: #888;
    font-size: 14px;
}

/* Flechas custom */
.th-productos-carrusel .Fractal-Carouselcarousel--arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    z-index: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 2px rgba(0,0,0,0.05);
    border: none;
}

.th-productos-carrusel .Fractal-Carouselcarousel--arrow:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.th-productos-carrusel .Fractal-Carouselleft--arrow  { left: 0; }
.th-productos-carrusel .Fractal-Carouselright--arrow { right: 0; }

.th-productos-carrusel .Fractal-Carousel--icon {
    width: 32px;
    height: 32px;
    color: #ff4605;
}

/* Ocultar flechas y dots nativos de slick */
.th-productos-carrusel .slick-prev,
.th-productos-carrusel .slick-next {
    display: none !important;
}

.th-productos-carrusel .slick-dots {
    display: none !important;
}
