/*
Theme Name: Storefront Child
Theme URI: https://ajiperuprovo.com/
Description: Child theme de Storefront para WooCommerce
Author: paperfocus
Author URI: https://ajiperuprovo.com/
Template: storefront
Version: 1.0.0
*/

/* ====================== */
/* Slider Vertical (ES)   */
/* ====================== */
.slider-vertical {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.ventana-slider {
    height: 600px;
    overflow: hidden;
}

.pista-slider {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease-in-out;
}

.slide-vertical {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px dashed #ccc;
}

.producto-imagen {
    width: 120px;
    height: 120px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.producto-info {
    flex: 1;
    position: relative;
}

.producto-titulo {
    font-size: 20px;
    color: white !important;
    font-weight: bold;
    margin: 0;
}

.producto-precio {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 18px;
    color: #ffeb3b;
    font-weight: bold;
}

.producto-descripcion {
    margin-top: 25px;
    font-size: 14px;
    line-height: 1.3;
    color:white !important;
}

/* Botones */
.slider-arriba, .slider-abajo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: transparent !important;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 999;
    color:white;
    opacity:.3;
    
}




.slider-arriba { top: -20px; }
.slider-abajo { bottom: 30px; }

.slider-arriba:hover, .slider-abajo:hover {   color: #FFD700;
    background: none;}

.slider-arriba:focus,
.slider-abajo:focus {
  outline: none !important;
  box-shadow: none !important;
}

.producto-carrito {
    margin-top: 15px;
}

.producto-carrito .button {
    background-color: #ffa217;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background .3s ease;
}

.producto-carrito .button:hover {
    background-color: #fdd835;
}



/* ====================== */
/* Responsive Ajustado    */
/* ====================== */
@media (max-width: 768px) {
    /* Mostrar 4 productos (4 * 150px aprox.) */
    .ventana-slider { height: 600px; } 

    .slide-vertical { padding: 12px; }
    .producto-imagen { width: 90px; height: 90px; margin-right: 10px; }
    .producto-titulo { font-size: 18px; }
    .producto-precio { font-size: 16px; }
    .producto-descripcion { font-size: 13px; margin-top: 10px; color: white; }

    /* Flechas más arriba */
    .slider-arriba { top: -35px; color:yellow;}
    .slider-abajo { bottom: 15px;color:yellow; }
    .slider-arriba:hover, .slider-abajo:hover {   color: #FFD700;
    background: none;}
    
    .ventana-slider {
        height: 1000px; /* <-- cámbialo */
    }
}

@media (max-width: 480px) {
    /* Mostrar 4 productos (4 * 90px aprox.) */
    .ventana-slider { height: 600px; } 

    .slide-vertical {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 8px;
    }
    .producto-imagen { width: 80px; height: 80px; margin: 0 0 8px 0; }
    .producto-info { position: static; color: white; }
    .producto-titulo { font-size: 16px; }
    .producto-precio { position: static; font-size: 14px; margin-bottom: 5px; }
    .producto-descripcion { font-size: 12px; margin-top: 5px; }

    /* Flechas más arriba */
    .slider-arriba { top: -20px; color:yellow;}
    .slider-abajo { bottom: 60px; color:yellow;}
    .slider-arriba:hover, .slider-abajo:hover {   color: #FFD700;
    background: none;}

    /* Botones más chicos */
    .slider-arriba, .slider-abajo { width: 28px; height: 28px; font-size: 14px; }
        .ventana-slider {
        height: 1000px; /* <-- cámbialo */
    }
}

