
/* ================================
       LISTA — Prestashop Catalog
   ================================ */

.psc-products-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

/* Cada fila */
.psc-product-row {
    display: flex;
    align-items: center;     /* 🔥 Esto ALINEA TODO VERTICALMENTE */
    padding: 0;
    margin: 2px 0;
    border: 1px solid #ddd;
    background: #fff;
    gap: 15px;
}

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

.psc-product-image {
    flex: 0 0 auto;
    width: 120px;
}

.psc-product-image img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    display: block;
}

/* ================================
       TEXTO (CENTRADO VERTICAL)
   ================================ */

.psc-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;     /* 🔥 CENTRA EL BLOQUE DE TEXTO */
    min-height: 90px;            /* 🔥 Igual altura que la imagen para centrar */
}

.psc-product-title {
    font-size: 0.7rem;
    margin: 0 0 2px 0;
    line-height: 1.1;
}

.psc-product-ref {
    font-size: 0.8rem;
    color: #555;
}

.psc-product-desc {
    font-size: 0.78rem;
    color: #666;
}

/* ================================
       BOTÓN (CENTRADO VERTICAL)
   ================================ */

.psc-product-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;         /* 🔥 CENTRAR VERTICAL */
    justify-content: center;     /* Botón centrado horizontal en su bloque */
    height: 90px;                /* 🔥 Igual que imagen y texto */
    margin-right: 20px;
}

.psc-product-button {
    padding: 8px 14px;
    background: #C62E2B;
    border: 1px solid #C62E2B;
    border-radius: 3px;
    color: #fff;
    font-size: 0.85rem;
    min-width: 80px;
    text-align: center;
}

.psc-product-button:hover {
    background: #a82825;
}

/* ================================
          RESPONSIVE
   ================================ */

@media (max-width: 600px) {

    .psc-product-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 5px 0;
    }

    .psc-product-image,
    .psc-product-actions {
        width: 100%;
        text-align: center;
        height: auto;
    }

    .psc-product-actions {
        justify-content: center;
        margin-top: 5px;
    }

    .psc-product-info {
        min-height: auto;
    }
}

/* Contenedor de iconos */
.psc-view-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* Estilo del icono */
.psc-view-icon {
    font-family: sans-serif;
    font-size: 26px;
    text-decoration: none;
    color: #C62E2B;        /* color vino */
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: 0.2s;
}

/* Hover */
.psc-view-icon:hover {
    background: rgba(198, 46, 43, 0.1);
    border-color: #C62E2B;
}

/* Icono activo */
.psc-view-icon.active {
    background: #C62E2B;
    color: #fff !important;
    border-color: #C62E2B;
}

.psc-view-switcher {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.psc-view-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 4px;
    color: #C62E2B;             /* color vino */
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s;
}

.psc-view-icon:hover {
    background: rgba(198, 46, 43, 0.07);
    border-color: #C62E2B;
}

.psc-view-icon.active {
    background: #C62E2B;
    color: #fff;
    border-color: #C62E2B;
}