/* ── ws-product-carousel.css ─────────────────────────────────────────────
   Carosello prodotti WooCommerce — scorrimento infinito, layout centrato
────────────────────────────────────────────────────────────────────────── */

.wsp-carousel {
    --wsp-fade:   0.5s;
    --wsp-accent: #4e8232;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Viewport ─────────────────────────────────────────────────────────── */
.wsp-viewport {
    overflow: hidden;
    width: 100%;
}

/* ── Track ────────────────────────────────────────────────────────────── */
.wsp-track {
    display: flex;
    transition: transform var(--wsp-fade) ease-in-out;
    will-change: transform;
}

/* ── Singola slide ────────────────────────────────────────────────────── */
.wsp-slide {
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 0 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ── Immagine ─────────────────────────────────────────────────────────── */
.wsp-img-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.wsp-img-wrap {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wsp-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Info prodotto ────────────────────────────────────────────────────── */
.wsp-info {
    padding: 10px 4px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.wsp-name {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.0;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wsp-price,
.wsp-price .woocommerce-Price-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wsp-accent);
}

.wsp-price del {
    color: #999;
    font-weight: 400;
    font-size: 0.8rem;
    margin-right: 4px;
}

/* ── Pulsante ISCRIVITI ───────────────────────────────────────────────── */
.wsp-btn {
    display: inline-block;
    padding: 7px 18px;
    background: var(--wsp-accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.2s;
    margin-top: 2px;
}

.wsp-btn:hover {
    background: #4e8232;
    color: #fff;
}
