/* Start custom CSS for page-settings *//* NASCONDE LA PAGINATION ORIGINALE */
.elementor-widget-product-carousel .swiper-pagination {
    display: none !important;
}

/* BARRA DRAG CUSTOM */
.elementor-widget-product-carousel .swh-dragbar {
    position: relative !important;
    width: 100% !important;
    height: 5px !important;
    margin-top: 28px !important;
    background: #eeeeee !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    cursor: grab !important;
}

.elementor-widget-product-carousel .swh-dragbar:active {
    cursor: grabbing !important;
}

.elementor-widget-product-carousel .swh-dragbar-thumb {
    position: absolute !important;
    top: 0 !important;
    left: 0;
    height: 100% !important;
    width: 25%;
    background: #5f5f5f !important;
    border-radius: 999px !important;
    transition: left 0.15s linear, width 0.15s linear !important;
    cursor: grab !important;
}

.elementor-widget-product-carousel .swh-dragbar.is-dragging .swh-dragbar-thumb {
    transition: none !important;
}

/* CARD UGUALI */
.elementor-widget-product-carousel .elementor-product-miniature {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* CONTENITORE IMMAGINE */
.elementor-widget-product-carousel .elementor-image {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
    overflow: hidden;
}

/* PICTURE */
.elementor-widget-product-carousel .elementor-cover-image {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* IMMAGINE */
.elementor-widget-product-carousel .elementor-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* OVERLAY SFUMATURA */
.elementor-widget-product-carousel .elementor-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(128,128,128,0.4) 0%,
        rgba(128,128,128,0.2) 15%,
        rgba(128,128,128,0) 40%,
        rgba(128,128,128,0) 60%,
        rgba(128,128,128,0.2) 85%,
        rgba(128,128,128,0.2) 100%
    );
}

/* BADGE */
.elementor-widget-product-carousel .elementor-badges-left,
.elementor-widget-product-carousel .elementor-badges-right {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.elementor-widget-product-carousel .elementor-badge {
    background-color: #CCFF00 !important;
    color: #000 !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    padding: 6px 10px !important;
    border-radius: 0 !important;
    line-height: 1 !important;
}

/* CONTENUTO */
.elementor-widget-product-carousel .elementor-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* BRAND */
.elementor-widget-product-carousel .elementor-product-brand {
    font-family: 'Red Hat Display', sans-serif !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
    margin-bottom: 2px !important;
}

/* TITOLO */
.elementor-widget-product-carousel .elementor-title {
    font-family: 'Red Hat Display', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    line-height: 1.2 !important;
    margin-top: 0 !important;
    min-height: 38px !important;
}

/* AREA PREZZO + BOTTONE */
.elementor-widget-product-carousel .elementor-price-wrapper {
    font-family: 'Red Hat Display', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding-right: 60px !important;
    position: relative !important;
    margin-top: auto !important;
}

/* PREZZO ATTUALE */
.elementor-widget-product-carousel .elementor-price {
    font-family: 'Red Hat Display', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    order: 1 !important;
}

/* PREZZO VECCHIO */
.elementor-widget-product-carousel .elementor-price-regular {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: fit-content !important;
    font-family: 'Red Hat Display', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    opacity: 0.6 !important;
    margin-top: 4px !important;
    order: 2 !important;
}

/* BOTTONE CARRELLO */
.elementor-widget-product-carousel .elementor-atc {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    width: auto !important;
}

/* Nasconde icone e testo originali */
.elementor-widget-product-carousel .elementor-atc i,
.elementor-widget-product-carousel .elementor-atc svg,
.elementor-widget-product-carousel .elementor-atc .elementor-button-icon,
.elementor-widget-product-carousel .elementor-atc .elementor-button-text,
.elementor-widget-product-carousel .elementor-atc .eicon-cart-light,
.elementor-widget-product-carousel .elementor-atc .eicon-bag-light {
    display: none !important;
}

/* Target bottone/link carrello */
.elementor-widget-product-carousel .elementor-atc a,
.elementor-widget-product-carousel .elementor-atc button,
.elementor-widget-product-carousel .elementor-atc .elementor-button {
    position: relative !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #CCFF00 !important;
    border: 1px solid #CCFF00 !important;
    color: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

/* Icona shopper custom */
.elementor-widget-product-carousel .elementor-atc a::before,
.elementor-widget-product-carousel .elementor-atc button::before,
.elementor-widget-product-carousel .elementor-atc .elementor-button::before {
    content: "" !important;
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    transition: transform 0.25s ease !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 9' fill='black'%3E%3Cg%3E%3Cpath d='M2.39,3.39c.22-.04.41.1.43.32.04.45-.1.88.16,1.3.55.86,1.88.51,1.95-.5.02-.23-.05-.74.03-.92.14-.31.63-.24.67.09s.01,1.02-.09,1.33c-.56,1.72-3.13,1.52-3.41-.28-.04-.23-.06-.85-.02-1.07.02-.12.15-.25.27-.27Z'%3E%3C/path%3E%3Cpath d='M7.05,2.92c-.06-.34-.21-.61-.51-.79-.08-.05-.32-.15-.41-.15h-.48C5.74.8,4.77-.16,3.59.02c-.94.15-1.56,1.02-1.48,1.95h-.48c-.37,0-.86.46-.9.83-.25,1.75-.54,3.5-.73,5.26.06.51.45.9.96.96h5.8c.6-.05,1.03-.55.99-1.15-.29-1.63-.4-3.33-.71-4.95ZM6.72,8.32H.99c-.17-.04-.28-.18-.28-.36.28-1.6.4-3.26.69-4.86.04-.22.08-.39.34-.42.68-.07,1.48.06,2.17,0,.3-.03.44-.38.23-.6-.03-.03-.15-.11-.18-.11h-1.14v-.33c0-.17.15-.45.26-.57.62-.71,1.78-.32,1.86.61.02.21-.04.63.03.8.19.42,1,.02,1.28.31.09.09.09.19.11.31.29,1.59.41,3.24.69,4.83,0,.22-.11.37-.33.4Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E") !important;
}

/* Hover bottone */
.elementor-widget-product-carousel .elementor-atc a:hover,
.elementor-widget-product-carousel .elementor-atc button:hover,
.elementor-widget-product-carousel .elementor-atc .elementor-button:hover {
    background: #000 !important;
    border-color: #000 !important;
}

/* Hover shopper */
.elementor-widget-product-carousel .elementor-atc a:hover::before,
.elementor-widget-product-carousel .elementor-atc button:hover::before,
.elementor-widget-product-carousel .elementor-atc .elementor-button:hover::before {
    transform: scale(1.1);
    filter: invert(82%) sepia(100%) saturate(753%) hue-rotate(22deg) brightness(105%) contrast(102%);
}

/* BADGE SCONTO */
.elementor-widget-product-carousel .elementor-discount-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #CCFF00 !important;
    color: #000 !important;
    border-radius: 999px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    padding: 3px 7px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* =========================
   FIX CARD + BORSA ALLINEATA
========================= */

.elementor-widget-product-carousel .swh-card-fixed {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding-bottom: 58px !important;
}

/* Contenuto stabile */
.elementor-widget-product-carousel .swh-card-fixed .elementor-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Marca visibile */
.elementor-widget-product-carousel .swh-card-fixed .elementor-product-brand {
    display: block !important;
    min-height: 20px !important;
    margin-bottom: 2px !important;
}

/* Titolo stabile */
.elementor-widget-product-carousel .swh-card-fixed .elementor-title {
    min-height: 38px !important;
}

/* =========================
   FIX DEFINITIVO PREZZI + ALLINEAMENTO
========================= */

.elementor-widget-product-carousel .swh-card-fixed .elementor-price-wrapper {
    position: static !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;

    align-items: flex-start !important;
    justify-content: flex-start !important;
    align-content: flex-start !important;

    text-align: left !important;

    column-gap: 6px !important;
    row-gap: 2px !important;

    width: 100% !important;
    padding-right: 60px !important;
    margin-top: auto !important;
    min-height: 54px !important;
}

/* Riga 1 → prezzo reale */
.elementor-widget-product-carousel .swh-card-fixed .elementor-price {
    order: 1 !important;

    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;

    display: block !important;
    text-align: left !important;
    margin: 0 !important;
}

/* Riga 2 → prezzo barrato */
.elementor-widget-product-carousel .swh-card-fixed .elementor-price-regular {
    order: 2 !important;

    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;

    display: inline-flex !important;
    align-items: center !important;

    margin: 0 !important;
    text-align: left !important;
}

/* Riga 2 → percentuale sconto accanto al barrato */
.elementor-widget-product-carousel .swh-card-fixed .elementor-discount-badge {
    order: 3 !important;

    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;

    display: inline-flex !important;
    align-items: center !important;

    margin: 0 !important;
    white-space: nowrap !important;
}

/* Borsa sempre fissa */
.elementor-widget-product-carousel .swh-card-fixed .elementor-atc {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
}/* End custom CSS */