/* FORZATURA BOLLINI ROSSI TONDI */
.grid-image__badge--price-discount {
    background-color: #ff0000 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 13px !important;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3) !important;
    border: 2px solid #fff !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    padding: 0 !important;
    z-index: 99 !important;
    aspect-ratio: 1 / 1 !important;
}
/* TRASFORMAZIONE BOLLINO ROSSO NELLA SCHEDA PRODOTTO */
.product-summary__badge--price-discount {
    background-color: #ff0000 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 14px !important;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2) !important;
    border: 2px solid #fff !important;
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    z-index: 10 !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
}
/* RIORDINO DEFINITIVO SCHEDA PRODOTTO */
.product-summary__form {
    display: flex !important;
    flex-direction: column !important;
}

/* 1. Varianti e Opzioni in alto per scelta immediata */
.product-summary__info--variant-attributes {
    order: 1 !important;
    margin-bottom: 25px !important;
}

/* 2. SKU (Codice Prodotto) scende dopo le varianti */
.product-summary__info--sku {
    order: 2 !important;
    margin-top: 10px !important;
    font-size: 0.85em !important;
    color: #999 !important;
}


/* 3. Rettangolo Stock (Verde o Blu) sotto lo SKU */
.product-summary__info--availability {
    order: 3 !important;
    margin-bottom: 20px !important;
}

/* 4. Pulsante Acquisto e Quantità finalmente in fondo */
.product-summary__info--actions {
    order: 4 !important;
    border-top: 1px solid #eee;
    padding-top: 20px !important;
    margin-top: 10px !important;
}
/* 1. Definizione dell'animazione pulsante più marcata */
@keyframes pulse-stock-green {
    0% { transform: scale(1); box-shadow: 0 0 0 0px rgba(30, 126, 52, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(30, 126, 52, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0px rgba(30, 126, 52, 0); }
}

@keyframes pulse-stock-blue {
    0% { transform: scale(1); box-shadow: 0 0 0 0px rgba(0, 86, 179, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(0, 86, 179, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0px rgba(0, 86, 179, 0); }
}

/* 2. Applicazione forzata ai box */
/* Verde - Produttore */
.product-summary__info--availability a b[style*="#1e7e34"], 
.product-summary__info--availability b {
    display: inline-block !important;
    animation: pulse-stock-green 2s infinite !important;
    transition: all 0.3s ease !important;
}

/* Blu - Negozio */
.product-summary__info--availability a b[style*="#0056b3"] {
    display: inline-block !important;
    animation: pulse-stock-blue 2s infinite !important;
    transition: all 0.3s ease !important;
}

/* Effetto al passaggio del mouse (Hover) per renderlo ancora più reattivo */
.product-summary__info--availability b:hover {
    transform: scale(1.05) !important;
    filter: brightness(1.1);
}
/* Animazione specifica per il Box Assistenza */
@keyframes pulse-assistenza {
    0% { border-color: #eee; box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.05); }
    50% { border-color: #284d23; box-shadow: 0 0 10px rgba(40, 77, 35, 0.2); }
    100% { border-color: #eee; box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.05); }
}

.box-assistenza {
    animation: pulse-assistenza 3s infinite ease-in-out !important;
    transition: all 0.3s ease;
}

.box-assistenza:hover {
    background-color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}
/* Tentativo forzato per il pulsante checkout */
button.cart__action--checkout.btn-primary {
    background-color: #ff00ff !important;
    background: #ff00ff !important;
    border-color: #ff00ff !important;
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Prova a colorare anche il contenitore se il pulsante è testardo */
.cart-action.btn-wrapper .btn-primary {
    background-color: #ff00ff !important;
}
/* Nasconde forzatamente il banner Risoluzione Controversie Online nel footer */
.footer__badges .footer__badge:has(a[href*="consumer-redress.ec.europa.eu"])
{
    display: none !important;
}