/**
 * Product Card Beta Styles - Solo per utente ID #20 e #67
 * Design migliorato con badge, hover effects, e migliore leggibilità
 */

/* Nascondi indietro/scala per utenti beta */
.indietro.pb-2.text-center.mt-2 {
    display: none !important;
}

/* Card Container */
.product-card-beta {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.product-card-beta:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Card in sconto - Bordo rosso + effetto speciale */
.product-card-on-sale {
    border-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15), 0 0 0 1px rgba(220, 53, 69, 0.1);
}

.product-card-on-sale:hover {
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3), 0 0 0 2px rgba(220, 53, 69, 0.2);
    border-color: #c82333;
}

/* Card preordine - Bordo viola + effetto speciale */
.product-card-preorder {
    border-color: #6f42c1;
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.15), 0 0 0 1px rgba(111, 66, 193, 0.1);
}

.product-card-preorder:hover {
    box-shadow: 0 8px 24px rgba(111, 66, 193, 0.3), 0 0 0 2px rgba(111, 66, 193, 0.2);
    border-color: #5a32a3;
}

/* Image Wrapper */
.product-card-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.product-card-image-wrapper .image-wrapper-4x3 {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 ratio */
    overflow: hidden;
    background: #fff;
}

.product-card-image-wrapper .image-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mostra immagine completa senza tagliare */
    object-position: center;
    transition: transform 0.4s ease;
    padding: 10px; /* Padding per evitare che tocchi i bordi */
}

.product-card-beta:hover .image-cover {
    transform: scale(1.05);
}

/* Badges */
.product-badge {
    position: absolute;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.product-badge-brand {
    top: 10px;
    left: 10px;
    background: rgba(243, 187, 39, 0.95);
    color: #000;
    box-shadow: 0 2px 6px rgba(243, 187, 39, 0.3);
}

.product-badge-scale {
    top: 10px;
    right: 10px;
    background: rgba(52, 58, 64, 0.9);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.product-badge-stock {
    bottom: 10px;
    left: 10px;
    font-size: 9px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
}

.product-badge-stock-available {
    background: rgba(40, 167, 69, 0.95);
    color: #fff;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.product-badge-stock-unavailable {
    background: rgba(220, 53, 69, 0.95);
    color: #fff;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

/* 🔔 Badge PREORDINE (sostituisce badge disponibilità) */
.product-badge-preorder {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 9px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    /* Gradiente viola già inline, ma aggiungiamo supporto */
}

/* Hover Overlay */
.product-card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.product-card-beta:hover .product-card-hover-overlay {
    opacity: 1;
}

.product-card-hover-content {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.product-card-beta:hover .product-card-hover-content {
    transform: translateY(0);
}

.btn-view-details {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #f3bb27;
    color: #000;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(243, 187, 39, 0.4);
}

.btn-view-details:hover {
    background: #ffc107;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(243, 187, 39, 0.5);
    text-decoration: none;
    color: #000;
}

/* Card Content */
.product-card-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: auto; /* Rimuoviamo min-height, lasciamo che si adatti */
}

.product-card-title {
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    min-height: 32px; /* Ridotto da 36px a 32px */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2 righe */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card-title a:hover {
    color: #f3bb27;
}

/* Product Code */
.product-card-code {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    font-size: 10px;
    color: #6c757d;
    display: flex;
    align-items: center;
}

/* Price Wrapper */
.product-card-price-wrapper {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 3px;
    min-height: 50px; /* Ridotto da 60px a 50px */
    order: 2;
}

/* Prezzo normale (senza sconto) */
.product-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

/* Prezzo originale (barrato quando in sconto) */
.product-card-price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    line-height: 1.2;
    font-weight: 500;
}

/* Prezzo scontato (rosso) */
.product-card-price-discount {
    font-size: 20px;
    font-weight: 800;
    color: #dc3545;
    line-height: 1.2;
}

/* Badge sconto percentuale (nella sezione prezzi) */
.product-card-discount-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 6px;
    flex-shrink: 0;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .product-card-title {
        font-size: 13px;
        min-height: 32px;
    }

    .product-card-price,
    .product-card-price-discount {
        font-size: 19px;
    }

    .product-card-price-original {
        font-size: 13px;
    }

    .product-card-price-wrapper {
        min-height: 52px;
    }

    .product-badge {
        font-size: 10px;
        padding: 3px 7px;
    }
}

@media (max-width: 767px) {
    .product-card-beta {
        margin-bottom: 16px;
    }

    .product-card-content {
        padding: 12px;
    }

    .product-badge-scale {
        top: auto;
        bottom: 45px;
        right: 12px;
    }
}

/* Animation on Load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card-beta {
    animation: fadeInUp 0.4s ease forwards;
}

/* Stagger effect for multiple cards */
.product-card-beta:nth-child(1) { animation-delay: 0.05s; }
.product-card-beta:nth-child(2) { animation-delay: 0.1s; }
.product-card-beta:nth-child(3) { animation-delay: 0.15s; }
.product-card-beta:nth-child(4) { animation-delay: 0.2s; }
.product-card-beta:nth-child(5) { animation-delay: 0.25s; }
.product-card-beta:nth-child(6) { animation-delay: 0.3s; }

/* ========================================
   DISCOUNT RIBBON - Badge Sconto Angolo
   ======================================== */

.product-discount-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    z-index: 10;
}

.product-discount-ribbon-content {
    position: absolute;
    top: 16px;
    right: -30px;
    width: 140px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    text-align: center;
    line-height: 1.2;
    padding: 8px 0;
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    animation: ribbonPulse 2s ease-in-out infinite;
}

.discount-percentage {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: block;
}

.discount-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.9;
    display: block;
    margin-top: 1px;
}

/* Animazione pulse per ribbon sconto */
@keyframes ribbonPulse {
    0%, 100% {
        transform: rotate(45deg) scale(1);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    }
    50% {
        transform: rotate(45deg) scale(1.05);
        box-shadow: 0 6px 16px rgba(220, 53, 69, 0.6);
    }
}

/* Price styling migliorato per sconti */
.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: nowrap;
}

.product-save-amount {
    display: inline-block;
    padding: 3px 8px;
    background: #28a745;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Responsive ribbon */
@media (max-width: 767px) {
    .product-discount-ribbon {
        width: 70px;
        height: 70px;
    }

    .product-discount-ribbon-content {
        top: 12px;
        right: -28px;
        width: 110px;
        padding: 6px 0;
    }

    .discount-percentage {
        font-size: 14px;
    }

    .discount-label {
        font-size: 8px;
    }
}

/* ========================================
   PULSANTI AGGIUNGI AL CARRELLO / PREORDINA
   ======================================== */

.product-card-actions {
    margin-top: auto; /* Spinge il pulsante in fondo */
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    order: 3; /* Pulsante va sempre alla fine */
}

/* Data preordine - va SOPRA al prezzo */
.product-card-preorder-date {
    order: 1; /* Data preordine va prima del prezzo */
    margin-bottom: 8px;
}

.btn-add-to-cart {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.4; /* Fix per emoji */
}

/* Icona pulsante (emoji) - Fix per evitare taglio */
.btn-icon {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    line-height: 1;
}

/* Pulsante standard "Aggiungi al carrello" */
.btn-add-to-cart:not(.btn-preorder):not(.btn-notify) {
    background: linear-gradient(135deg, #f3bb27 0%, #f5c851 100%);
    color: #000;
}

.btn-add-to-cart:not(.btn-preorder):not(.btn-notify):hover {
    background: linear-gradient(135deg, #ffc107 0%, #ffcd39 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 187, 39, 0.4);
}

.btn-add-to-cart:not(.btn-preorder):not(.btn-notify):active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(243, 187, 39, 0.3);
}

/* Pulsante "Preordina" */
.btn-add-to-cart.btn-preorder {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    color: #fff;
}

.btn-add-to-cart.btn-preorder:hover {
    background: linear-gradient(135deg, #7c4dcd 0%, #6839b7 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.4);
}

.btn-add-to-cart.btn-preorder:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(111, 66, 193, 0.3);
}

/* Pulsante "Avvisami" (prodotti esauriti) */
.btn-add-to-cart.btn-notify {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
}

.btn-add-to-cart.btn-notify:hover {
    background: linear-gradient(135deg, #7a8289 0%, #68717a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.btn-add-to-cart.btn-notify:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

/* Loading state */
.btn-add-to-cart.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-add-to-cart.loading::after {
    content: "";
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* Success state (opzionale per feedback visivo) */
.btn-add-to-cart.success {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    color: #fff;
}

/* Responsive */
@media (max-width: 767px) {
    .btn-add-to-cart {
        padding: 9px 14px;
        font-size: 12px;
    }
}

/* ========================================
   NOTIFICHE TOAST CARRELLO
   ======================================== */

.cart-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 280px;
    max-width: 400px;
}

.cart-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.cart-toast-success .cart-toast-icon {
    background: #28a745;
    color: white;
}

.cart-toast-error .cart-toast-icon {
    background: #dc3545;
    color: white;
}

.cart-toast-warning .cart-toast-icon {
    background: #ffc107;
    color: #333;
}

.cart-toast-message {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.cart-toast {
    max-width: 450px;
}

@media (max-width: 767px) {
    .cart-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* ========================================
   WISHLIST BUTTON - Pulsante Cuore Minimal
   ======================================== */

.btn-wishlist {
    position: relative;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0;
    padding: 0;
    overflow: visible;
}

.btn-wishlist:hover {
    transform: scale(1.15);
}

.btn-wishlist:active {
    transform: scale(0.9);
}

/* Cuore SVG - Solo Bordo Grigio */
.btn-wishlist::before {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.btn-wishlist:hover::before {
    filter: drop-shadow(0 2px 4px rgba(255, 77, 77, 0.3));
}

/* Stato attivo - Cuore Rosso Pieno */
.btn-wishlist.in-wishlist::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff4d4d' stroke='%23ff4d4d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
    animation: heartBeat 0.6s ease-in-out;
    filter: drop-shadow(0 2px 8px rgba(255, 77, 77, 0.4));
}

.btn-wishlist.in-wishlist:hover::before {
    filter: drop-shadow(0 3px 12px rgba(255, 77, 77, 0.5));
}

/* Animazione battito cuore quando viene aggiunto */
@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10% {
        transform: scale(1.3);
    }
    20% {
        transform: scale(1.1);
    }
    30% {
        transform: scale(1.25);
    }
    40% {
        transform: scale(1);
    }
}

/* Loading state */
.btn-wishlist.loading {
    pointer-events: none;
    opacity: 0.5;
}

.btn-wishlist.loading::before {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Focus states per accessibilità */
.btn-wishlist:focus {
    outline: none;
}

.btn-wishlist:focus::before {
    filter: drop-shadow(0 0 0 3px rgba(255, 77, 77, 0.3));
}

/* Responsive */
@media (max-width: 767px) {
    .btn-wishlist {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .btn-wishlist::before {
        width: 22px;
        height: 22px;
    }
}

/* ========================================
   WISHLIST TOAST NOTIFICATIONS - Globalizzato
   ======================================== */

.wishlist-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 320px;
    max-width: 420px;
}

.wishlist-toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.wishlist-toast-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wishlist-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    animation: iconPop 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes iconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Successo - Aggiunto alla wishlist */
.wishlist-toast-success {
    border-left: 4px solid #ff4d4d;
}

.wishlist-toast-success .wishlist-toast-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4d4d 100%);
    color: white;
}

/* Rimosso dalla wishlist */
.wishlist-toast-removed {
    border-left: 4px solid #6c757d;
}

.wishlist-toast-removed .wishlist-toast-icon {
    background: linear-gradient(135deg, #7a8289 0%, #6c757d 100%);
    color: white;
}

/* Errore */
.wishlist-toast-error {
    border-left: 4px solid #dc3545;
}

.wishlist-toast-error .wishlist-toast-icon {
    background: linear-gradient(135deg, #e74c3c 0%, #dc3545 100%);
    color: white;
}

.wishlist-toast-message {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.5;
}

/* Responsive Toast */
@media (max-width: 767px) {
    .wishlist-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* ========================================
   CORRELATI COMPACT - Dettaglio Prodotto ONLY
   RIDUZIONE DRASTICA - META' DIMENSIONE
   ======================================== */

body main section.correlati-compact-layout .product-card-beta {
    max-height: 350px !important;
}

body main section.correlati-compact-layout .product-card-content {
    padding: 8px !important;
}

body main section.correlati-compact-layout .product-card-title {
    font-size: 11px !important;
    min-height: 28px !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.2 !important;
}

body main section.correlati-compact-layout .product-card-title a {
    font-size: 11px !important;
}

body main section.correlati-compact-layout .product-card-code {
    font-size: 9px !important;
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
}

body main section.correlati-compact-layout .product-card-price-wrapper {
    min-height: 35px !important;
    gap: 2px !important;
}

body main section.correlati-compact-layout .product-card-price,
body main section.correlati-compact-layout .product-card-price-discount {
    font-size: 16px !important;
}

body main section.correlati-compact-layout .product-card-price-original {
    font-size: 11px !important;
}

body main section.correlati-compact-layout .product-badge {
    padding: 2px 6px !important;
    font-size: 8px !important;
}

body main section.correlati-compact-layout .product-badge-brand {
    top: 6px !important;
    left: 6px !important;
}

body main section.correlati-compact-layout .product-badge-scale {
    top: 6px !important;
    right: 6px !important;
}

body main section.correlati-compact-layout .product-badge-stock,
body main section.correlati-compact-layout .product-badge-preorder {
    bottom: 6px !important;
    left: 6px !important;
    font-size: 8px !important;
    padding: 3px 6px !important;
}

body main section.correlati-compact-layout .btn-add-to-cart {
    padding: 8px 12px !important;
    font-size: 11px !important;
    gap: 4px !important;
    border-radius: 4px !important;
}

body main section.correlati-compact-layout .product-card-actions {
    padding-top: 8px !important;
}

body main section.correlati-compact-layout .product-discount-ribbon-content {
    top: 12px !important;
    width: 120px !important;
    padding: 6px 0 !important;
}

body main section.correlati-compact-layout .discount-percentage {
    font-size: 13px !important;
}

body main section.correlati-compact-layout .discount-label {
    font-size: 7px !important;
}

/* Riduzione immagine prodotto */
body main section.correlati-compact-layout .product-card-image-wrapper .image-wrapper-4x3 {
    padding-top: 60% !important; /* Ridotto da 75% (4:3) a 60% */
}

body main section.correlati-compact-layout .product-card-discount-badge {
    font-size: 10px !important;
    padding: 3px 6px !important;
}
