/* ========================================
   TOOLTIP DINAMICO PER WISHLIST
   ======================================== */

.softweb-wishlist-tooltip {
    position: absolute !important;
    background: #1080B2 !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
    z-index: 999999 !important;
    pointer-events: none !important;
    opacity: 0;
    transition: opacity 0.2s ease !important;
    visibility: hidden;
    line-height: 1.4 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.softweb-wishlist-tooltip.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.softweb-wishlist-tooltip::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 6px solid transparent !important;
    border-right: 6px solid transparent !important;
    border-top: 6px solid #1080B2 !important;
}

/* 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;
}

.softweb-wishlist-add-to-cart:hover {
    color: #FFFFFF;
}
/* 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%;
    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;
}


/* 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;
}



/* 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;
    }
}
@media (min-width: 1400px) and (max-width: 1440px) {

    html[lang="it-IT"] .softweb-wishlist-btn-container {
        right: 25%;
    }
}
@media (min-width: 1440px) and (max-width: 1650px) {

    html[lang="it-IT"] .softweb-wishlist-btn-container {
        right: 10%;
    }
}
@media (min-width: 1400px) and (max-width: 1500px) {

    html[lang="en-GB"] .softweb-wishlist-btn-container {
        right: -2%;
    }
}

@media (min-width: 1500px) and (max-width: 1540px) {

    html[lang="en-GB"] .softweb-wishlist-btn-container {
        right: 2%;
    }
}
@media (min-width: 1540px) and (max-width: 1600px) {

    html[lang="en-GB"] .softweb-wishlist-btn-container {
        right: -18%
    }
}
@media (min-width: 1540px) and (max-width: 1600px) {
    html[lang="en-GB"] .softweb-wishlist-btn-container { right: -18%; }
}

@media (min-width: 1601px) and (max-width: 1700px) {
    html[lang="en-GB"] .softweb-wishlist-btn-container { right: -12%; }
}

@media (min-width: 1701px) and (max-width: 1800px) {
    html[lang="en-GB"] .softweb-wishlist-btn-container { right: -6%; }
}

@media (min-width: 1801px) and (max-width: 1900px)  {
    html[lang="en-GB"] .softweb-wishlist-btn-container { right: 0; }
}
@media (min-width: 1901px) {
    html[lang="en-GB"] .softweb-wishlist-btn-container { right: 4%; }
}

@media (min-width: 1650px) and (max-width: 1750px) {
    html[lang="it-IT"] .softweb-wishlist-btn-container {
        right: 13%;
    }
}

@media (min-width: 1751px) and (max-width: 1850px) {
    html[lang="it-IT"] .softweb-wishlist-btn-container {
        right: 16%;
    }
}

@media (min-width: 1851px) {
    html[lang="it-IT"] .softweb-wishlist-btn-container {
        right: 20%;
    }
}


.softweb-wishlist-btn-container{
    width: fit-content !important;
    position: absolute !important;
    bottom: 0;
}