/* Softweb Wishlist - Stili */

/* Pulsante Wishlist - Stili base */
.softweb-wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.softweb-wishlist-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.softweb-wishlist-btn__icon svg {
    transition: all 0.3s ease;
}

/* Pulsante nella card prodotto */
.softweb-wishlist-btn--card {
    width: 36px;
    height: 36px;
    background: transparent !important;
    border: none;
    box-shadow: none;
    justify-content: center;
    margin-right: 10px;
}

.softweb-wishlist-btn--card:hover {
    background: transparent !important;
    box-shadow: none;
    transform: scale(1.1);
}

.softweb-wishlist-btn--card .softweb-wishlist-btn__icon svg {
    width: 20px;
    height: 20px;
    stroke: #333;
    fill: none;
}

.softweb-wishlist-btn--card.is-active .softweb-wishlist-btn__icon svg {
    fill: #082743;
    stroke: #082743;
}

/* Pulsante nel dettaglio prodotto */
.softweb-wishlist-btn--detail {
    width: 58px;
    height: 58px;
    padding: 0;
    background: white;
    border: 2px solid #1080B2;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.softweb-wishlist-btn--detail:hover {
    background: white;
    transform: scale(1.05);
}

.softweb-wishlist-btn--detail .softweb-wishlist-btn__icon svg {
    width: 24px;
    height: 24px;
    stroke: #1080B2;
    fill: none;
    transition: all 0.3s ease;
}

.softweb-wishlist-btn--detail.is-active {
    background: white;
    border-color: #1080B2;
}

.softweb-wishlist-btn--detail.is-active:hover {
    background: white;
}

.softweb-wishlist-btn--detail.is-active .softweb-wishlist-btn__icon svg {
    fill: #1080B2;
    stroke: #1080B2;
}

/* Pagina Wishlist */
.softweb-wishlist-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.softweb-wishlist-page__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

/* Wishlist vuota */
.softweb-wishlist-page__empty {
    text-align: center;
    padding: 60px 20px;
}

.softweb-wishlist-page__empty svg {
    stroke: #ccc;
    margin-bottom: 20px;
}

.softweb-wishlist-page__empty p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* Griglia prodotti wishlist */
.softweb-wishlist-page__products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* Singolo prodotto wishlist */
.softweb-wishlist-product {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.softweb-wishlist-product:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.softweb-wishlist-product__image {
    position: relative;
    overflow: hidden;
    background: white;
    padding: 20px;
    flex-shrink: 0;
}

.softweb-wishlist-product__image a {
    display: block;
}

.softweb-wishlist-product__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.softweb-wishlist-product:hover .softweb-wishlist-product__image img {
    transform: scale(1.05);
}

.softweb-wishlist-product__content {
    padding: 15px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Stelle recensioni - stile Elementor */
.softweb-wishlist-product__rating {
    margin-bottom: 12px;
    text-align: left;
}

.softweb-wishlist-product__rating .e-rating {
    display: inline-block;
}

.softweb-wishlist-product__rating .e-rating-wrapper {
    display: flex;
    gap: 2px;
}

.softweb-wishlist-product__rating .e-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.softweb-wishlist-product__rating .e-icon-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.softweb-wishlist-product__rating .e-icon-unmarked svg {
    fill: #ccc;
    width: 16px;
    height: 16px;
}

.softweb-wishlist-product__rating .e-icon-marked {
    width: var(--e-rating-icon-marked-width);
    z-index: 1;
}

.softweb-wishlist-product__rating .e-icon-marked svg {
    fill: #ffc107;
    width: 16px;
    height: 16px;
}

/* Titolo prodotto - piÃ¹ grande e non sottolineato */
.softweb-wishlist-product__title {
    font-weight: 400;
    line-height: 1.5;
    font-family: 'gillsansmt', sans-serif !important;
    font-size: 20px;
    margin: 0 0 12px;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.softweb-wishlist-product__title a {
    color: #4B525E;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.softweb-wishlist-product__title a:hover {
    color: #1080B2;
    text-decoration: none !important;
}

/* Prezzo */
.softweb-wishlist-product__price {
    font-size: 20px;
    font-weight: 700;
    color: #1080B2;
    margin-bottom: 15px;
}

/* Bottoni sotto il prezzo (cuore wishlist) */
.softweb-wishlist-product__bottom-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.softweb-wishlist-remove-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.softweb-wishlist-remove-icon svg {
    width: 20px;
    height: 20px;
    stroke: #082743;
    fill: #082743;
    transition: all 0.3s ease;
}

.softweb-wishlist-remove-icon:hover {
    transform: scale(1.1);
}

/* Hover: mostra X invece del cuore */
.softweb-wishlist-remove-icon:hover svg {
    opacity: 0;
}

.softweb-wishlist-remove-icon::after {
    content: 'Ã—';
    position: absolute;
    font-size: 28px;
    color: #082743;
    font-weight: 300;
    opacity: 0;
    transition: opacity 0.3s ease;
    line-height: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.softweb-wishlist-remove-icon:hover::after {
    opacity: 1;
}

/* Azioni - pulsante al fondo */
.softweb-wishlist-product__actions {
    margin-top: auto;
}

/* Pulsante Aggiungi al carrello - piÃ¹ stretto e stondato */
.softweb-wishlist-add-to-cart {
    display: inline-block;
    text-align: center;
    padding: 12px 30px;
    background: #0a1e3d;
    color: white;
    text-decoration: none !important;
    border-radius: 4px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.softweb-wishlist-add-to-cart:hover {
    background: #162d4a;
    text-decoration: none !important;
}

/* Non disponibile */
.softweb-wishlist-out-of-stock {
    display: inline-block;
    text-align: center;
    padding: 12px 30px;
    background: #f5f5f5;
    color: #999;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

/* Animazione rimozione prodotto */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

.softweb-wishlist-product.removing {
    animation: fadeOut 0.3s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .softweb-wishlist-page__products {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .softweb-wishlist-page__title {
        font-size: 24px;
    }

    .softweb-wishlist-btn--detail {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .softweb-wishlist-page__products {
        grid-template-columns: 1fr;
    }
}