/**
 * GATE14 - Product Page Redesign
 * Custom CSS per il nuovo design mobile-first responsive
 * Versione: 1.0
 * Data: 2025
 */

/* ============================================
   RESET E UTILITY
   ============================================ */

.g14-product-redesign * {
    box-sizing: border-box;
}

/* Rendi il breadcrumb discreto - rimuovi sfondo verde e riduci padding */
#product #main-page-content .breadcrumb,
#product .breadcrumb {
    background-color: transparent !important;
    background-image: none !important;
    padding: 12px 0 16px 0 !important;
    margin-bottom: 16px !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

#product #main-page-content .breadcrumb .container-fluid,
#product .breadcrumb .container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* Colori breadcrumb più discreti */
#product .breadcrumb .col ol li,
#product .breadcrumb .col ol li a,
#product .breadcrumb .col ol li span {
    color: #6c757d !important;
    font-size: 13px !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Rimuovi sfondo verde dai link */
#product .breadcrumb .col ol li a {
    background-color: transparent !important;
    padding: 0 !important;
}

/* Cambia separatore da | a > */
#product .breadcrumb .col ol li::after,
#wrapper .breadcrumb li::after {
    content: ">" !important;
    color: #6c757d !important;
    opacity: 0.5 !important;
    margin: 0 8px !important;
}

/* Rimuovi margini/padding eccessivi dal contenitore principale */
.g14-product-redesign,
#main-product-wrapper.g14-product-redesign {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Force visibility and layout - Important overrides */
.g14-product-redesign .g14-right-column {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.g14-product-redesign .g14-left-column {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override custom.css rules that break the layout */
.g14-product-redesign .row.product-info-row {
    display: block !important;
}

.g14-product-redesign .row.product-info-row .col-md-3.col-product-info,
.g14-product-redesign .row.product-info-row .col-product-info {
    flex: none !important;
    max-width: none !important;
    width: 100% !important;
}

/* Remove any conflicting widths from images container */
.g14-product-redesign .images-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* ============================================
   HEADER PRODOTTO
   ============================================ */

/* ============================================
   HEADER PRODOTTO - Layout Definitivo
   Mobile: verticale | Desktop: logo + contenuto affiancati
   ============================================ */

.g14-product-header {
    padding: 16px;
    background: white;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Logo wrapper - prima riga mobile */
.g14-brand-logo-wrapper {
    order: 1;
}

.g14-brand-logo {
    display: inline-block;
    max-width: 80px;
}

.g14-brand-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Contenuto: titolo + meta */
.g14-header-content {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.g14-product-title {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
    margin: 0;
}

/* Meta: codice + disponibilità */
.g14-product-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.g14-product-code {
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.g14-product-code i {
    font-size: 12px;
}

.g14-product-code strong {
    color: #212529;
}

.g14-availability-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    width: fit-content !important;
}

.g14-availability-badge.g14-badge-success {
    background: #d4edda;
    color: #155724;
}

.g14-availability-badge.g14-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.g14-availability-badge.g14-badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.g14-availability-badge i {
    font-size: 12px;
}

.g14-brand-row {
    display: none;
}

.g14-brand-name {
    display: none !important;
}

.g14-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.g14-stars {
    color: #ffc107;
    font-size: 16px;
}

.g14-reviews {
    font-size: 13px;
    color: #6c757d;
}

/* ============================================
   LAYOUT DESKTOP A DUE COLONNE
   ============================================ */

/* Disabilita il vecchio layout del tema quando attivo il redesign */
.g14-product-redesign .row.product-info-row {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.g14-desktop-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0;
}

.g14-left-column,
.g14-right-column {
    width: 100%;
}

/* ============================================
   SEZIONE IMMAGINI
   ============================================ */

.g14-images-wrapper {
    position: relative;
    background: #f8f9fa;
    padding: 24px;
    text-align: center;
    max-width: 100% !important;
    overflow: hidden;
}

/* FIX IMMAGINI PRODOTTO - Mantieni aspect ratio corretto */
.g14-left-column img,
.product-cover img,
.images-container img,
.swiper-slide img,
.product-images-large img {
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    max-width: 100% !important;
}

/* Fix container swiper - rimuovi altezze forzate */
.product-images-large.swiper-container,
.product-cover,
.swiper-wrapper,
.swiper-slide {
    height: auto !important;
    object-fit: unset !important;
}

.g14-left-column .swiper-container {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

/* Rimuovi altezza forzata dal wrapper immagini */
.g14-images-wrapper {
    height: auto !important;
    min-height: 0 !important;
}

.g14-image-discount-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ff6b35;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    z-index: 10;
}

/* ============================================
   SEZIONE PREZZO - VERSIONE COMPATTA
   ============================================ */

.g14-price-section {
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border: 2px solid #0d9488;
    border-radius: 12px;
    margin: 0 16px 16px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.g14-price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* RIGA SUPERIORE: Prezzo fornitore + Badge sconto */
.g14-price-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.g14-original-price {
    font-size: 13px;
    color: #6c757d;
    white-space: nowrap; /* Impedisce wrap tra prezzo e € */
}

.g14-original-price-label {
    font-weight: 500;
}

.g14-original-price-value {
    text-decoration: line-through;
    font-weight: 600;
    margin-left: 4px;
    white-space: nowrap; /* Impedisce wrap tra numero e € */
}

.g14-save-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Shimmer effect - riflesso di luce ogni 3 secondi */
.g14-save-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    animation: g14-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes g14-shimmer {
    0% { 
        left: -100%; 
    }
    20% { 
        left: 100%; 
    }
    100% { 
        left: 100%; 
    }
}

/* PREZZO CENTRALE - COMPATTO */
.g14-price-center {
    text-align: center;
    margin: 6px 0;
}

.g14-price-intro {
    font-size: 13px;
    color: #495057;
    margin-bottom: 4px;
    font-weight: 500;
}

.g14-current-price {
    font-size: 42px;
    font-weight: 900;
    color: #212529;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap; /* Impedisce wrap del prezzo */
}

.g14-euro-symbol {
    font-size: 42px;
    font-weight: 900;
}

.g14-price-amount {
    font-size: 42px;
}

.g14-price-subtitle {
    font-size: 13px;
    color: #0d9488;
    font-weight: 600;
    margin-bottom: 0;
}

/* OMNIBUS E ALTRI */
.g14-price-wrapper .gm_omniprice,
.g14-price-section .gm_omniprice {
    font-size: 11px;
    color: #6c757d;
    text-align: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
    display: block;
}

/* Nascondi elementi non più usati */
.g14-buy-now-text,
.g14-price-main-row,
.g14-previous-discount-badge {
    display: none !important;
}

/* Rimuovi il nascondi del bottone originale - ora torna visibile */
.g14-right-column > .product-add-to-cart {
    display: block !important;
}

.g14-price-without-taxes,
.g14-pack-price,
.g14-price-ecotax {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
}

/* ============================================
   SEZIONE AZIONI (QUANTITÀ + CARRELLO)
   ============================================ */

.g14-actions-section {
    padding: 20px 16px;
    background: white;
}

.g14-quantity-cart-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap; /* Permette wrap su mobile */
}

/* MOBILE + TABLET: Layout verticale con quantità centrata */
@media (max-width: 1024px) {
    .g14-quantity-cart-row {
        flex-direction: column;
        gap: 12px;
        align-items: center; /* Centra quantità */
    }
    
    .g14-quantity-selector {
        width: auto !important; /* Dimensione naturale (come desktop) */
    }
    
    .g14-add-to-cart-btn {
        width: 100% !important; /* Tutta larghezza */
        flex: none;
    }
}

/* Selettore quantità */
.g14-quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    height: 54px;
    flex-shrink: 0;
}

.g14-qty-btn {
    background: #f8f9fa;
    border: none;
    width: 44px;
    height: 100%;
    font-size: 18px;
    cursor: pointer;
    color: #495057;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.g14-qty-btn:hover {
    background: #e9ecef;
}

.g14-qty-btn:active {
    background: #dee2e6;
}

.g14-qty-input {
    border: none !important;
    width: 50px !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-left: 2px solid #dee2e6 !important;
    border-right: 2px solid #dee2e6 !important;
    height: 100% !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: normal !important;
}

/* NASCONDE SOLO I BOTTONI TOUCHSPIN - NON L'INPUT */
.g14-quantity-selector .input-group-btn-vertical,
.g14-quantity-selector .bootstrap-touchspin-up,
.g14-quantity-selector .bootstrap-touchspin-down,
.g14-quantity-selector .input-group-addon,
.g14-quantity-selector .bootstrap-touchspin-prefix,
.g14-quantity-selector .bootstrap-touchspin-postfix {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Wrapper bootstrap-touchspin - inline e senza bordi */
.g14-quantity-selector .bootstrap-touchspin {
    display: inline-flex !important;
    align-items: center !important;
    border: none !important;
    background: transparent !important;
    width: 50px !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.g14-quantity-selector .bootstrap-touchspin .form-control {
    border-left: 2px solid #dee2e6 !important;
    border-right: 2px solid #dee2e6 !important;
    border-top: none !important;
    border-bottom: none !important;
    width: 100% !important;
    height: 100% !important;
}
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* Wrapper bootstrap-touchspin deve mostrare l'input */
.g14-quantity-selector .bootstrap-touchspin {
    display: block !important;
    border: none !important;
    background: transparent !important;
}

/* Rimuovi TUTTE le frecce native browser */
.g14-qty-input::-webkit-outer-spin-button,
.g14-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

.g14-qty-input::-moz-inner-spin-button,
.g14-qty-input::-moz-outer-spin-button {
    -moz-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

/* Per Firefox - forza textfield */
.g14-qty-input[type="number"],
.g14-qty-input[type="text"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* Bottone aggiungi al carrello */
.g14-add-to-cart-btn {
    flex: 1;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 54px;
}

.g14-add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.g14-add-to-cart-btn:active {
    transform: translateY(0);
}

.g14-add-to-cart-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
}

.g14-cart-icon {
    font-size: 18px;
    display: inline-block;
}

.g14-spinner-icon {
    display: none !important;
    font-size: 18px;
}

.g14-add-to-cart-btn.loading .g14-cart-icon {
    display: none !important;
}

.g14-add-to-cart-btn.loading .g14-spinner-icon {
    display: inline-block !important;
}

.g14-minimal-quantity {
    font-size: 13px;
    color: #495057;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   TRUST BADGES
   ============================================ */

.g14-trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.g14-trust-badge {
    text-align: center;
    padding: 12px 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.g14-trust-badge i {
    font-size: 24px;
    color: #0d9488;
    margin-bottom: 6px;
    display: block;
}

.g14-trust-badge-title {
    font-size: 12px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 2px;
}

.g14-trust-badge-text {
    font-size: 11px;
    color: #6c757d;
}

/* ============================================
   SEZIONE CARATTERISTICHE
   ============================================ */

.g14-features-section {
    padding: 20px 16px;
    background: white;
    margin: 0 16px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.g14-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.g14-section-title i {
    color: #0d9488;
}

.g14-features-content {
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
}

.g14-features-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.g14-features-content li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.g14-features-content li:last-child {
    border-bottom: none;
}

.g14-features-content li:before {
    content: "✓";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #e6f7f5;
    border-radius: 4px;
    color: #0d9488;
    font-weight: bold;
    text-align: center;
    line-height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.g14-features-content strong {
    color: #212529;
    font-weight: 600;
}

/* ============================================
   SEZIONE RASSICURAZIONE (WhatsApp, ecc.)
   ============================================ */

.g14-reassurance-wrapper {
    margin-top: 16px;
}

.g14-reassurance-wrapper .elementor-displayReassurance {
    padding: 0;
}

/* Stili per il modulo WhatsApp esistente */
.g14-reassurance-wrapper .elementor-image-box-wrapper {
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 16px;
    border: 2px solid #25d366;
}

/* ============================================
   RESPONSIVE - TABLET E DESKTOP
   ============================================ */

@media (min-width: 768px) {
    
    /* ============================================
       HEADER DESKTOP - Logo a sinistra, contenuto a destra
       ============================================ */
    
    .g14-product-header {
        padding: 24px 32px;
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }
    
    /* Logo - dimensione fissa a sinistra */
    .g14-brand-logo-wrapper {
        flex-shrink: 0;
        order: 1;
    }
    
    .g14-brand-logo {
        max-width: 60px;
    }
    
    /* Contenuto - occupa spazio rimanente */
    .g14-header-content {
        flex: 1;
        order: 2;
    }
    
    .g14-product-title {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    /* Meta desktop: riga orizzontale (codice | disponibilità) */
    .g14-product-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }
    
    .g14-product-code {
        font-size: 14px;
    }
    
    .g14-availability-badge {
        margin-left: auto;
    }
    
    /* Layout a due colonne - FORZA con !important */
    .g14-desktop-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 32px !important;
        padding: 20px !important;
    }
    
    .g14-left-column {
        position: sticky !important;
        top: 20px !important;
        align-self: start !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    .g14-right-column {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    
    /* Immagini */
    .g14-images-wrapper {
        padding: 40px;
        border-radius: 12px;
        margin-bottom: 0;
    }
    
    /* Prezzo */
    .g14-price-section {
        border-radius: 12px;
        padding: 28px 24px;
        margin: 0 0 24px 0;
    }
    
    .g14-current-price {
        font-size: 56px;
    }
    
    .g14-price-amount {
        font-size: 56px;
    }
    
    .g14-euro-symbol {
        font-size: 36px;
    }
    
    /* Azioni */
    .g14-actions-section {
        padding: 24px;
        border-radius: 12px;
        border: 1px solid #e9ecef;
        margin-bottom: 24px;
    }
    
    .g14-quantity-cart-row {
        margin-bottom: 20px;
    }
    
    .g14-quantity-selector {
        width: 140px;
    }
    
    .g14-add-to-cart-btn {
        font-size: 17px;
        padding: 18px 32px;
    }
    
    /* Trust badges */
    .g14-trust-badges {
        gap: 16px;
    }
    
    .g14-trust-badge {
        padding: 16px 12px;
    }
    
    .g14-trust-badge i {
        font-size: 28px;
    }
    
    .g14-trust-badge-title {
        font-size: 13px;
    }
    
    .g14-trust-badge-text {
        font-size: 12px;
    }
    
    /* Caratteristiche */
    .g14-features-section {
        padding: 28px 24px;
        border-radius: 12px;
        border: 1px solid #e9ecef;
        margin: 0 0 24px 0;
    }
    
    .g14-section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .g14-features-content {
        font-size: 15px;
    }
    
    .g14-features-content li {
        padding: 12px 0;
    }
    
    .g14-features-content li:before {
        width: 24px;
        height: 24px;
        line-height: 24px;
    }
}

@media (min-width: 1024px) {
    .g14-desktop-layout {
        gap: 60px;
        padding: 40px;
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* ============================================
   COMPATIBILITÀ CON TEMA WAREHOUSE
   ============================================ */

/* Nascondi elementi duplicati del tema originale */
.g14-product-redesign .product_header_container {
    /* Il nuovo header è in g14-product-header */
}

.g14-product-redesign .col-product-image {
    padding: 0 !important;
}

.g14-product-redesign .col-product-info {
    padding: 0 !important;
}

/* Adatta le varianti prodotto */
.g14-actions-section .product-variants {
    margin-bottom: 16px;
}

.g14-actions-section .product-variants .clearfix {
    margin-bottom: 12px;
}

/* Adatta gli sconti */
.g14-actions-section .product-discounts {
    margin-top: 12px;
}

/* ============================================
   ANIMAZIONI
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.g14-product-redesign {
    animation: fadeIn 0.3s ease-out;
}

/* ============================================
   SEZIONE DESCRIZIONE - STILE UNIVERSALE
   ============================================ */

/* RIMUOVI COMPLETAMENTE barra verde e titolo "Descrizione" */
.product-description-section::before,
.product-description-section::after,
.block-section::before,
.block-section::after,
.product-description::before,
.product-description::after {
    display: none !important;
    content: none !important;
}

/* Nascondi qualsiasi titolo che potrebbe apparire */
.product-description-section .section-title,
.product-description-section > h2,
.product-description-section > h3,
.product-description-section > .section-content > h2,
.product-description-section .product-description > h2:first-child,
.block-section .section-title,
.block-section > h2,
.block-section > h3 {
    display: none !important;
}

/* Rimuovi eventuali background verdi */
.product-description-section,
.product-description-section .section-content,
.block-section {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-top: none !important;
}

/* Sezione descrizione prodotto principale */
.product-description-section {
    margin: 40px 0 !important;
    padding: 0 !important;
}

.product-description-section .section-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-description-section .product-description {
    background: white !important;
    border-radius: 16px !important;
    padding: 40px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    border: 1px solid #e9ecef !important;
}

/* Contenuto descrizione - stile universale */
.product-description .rte-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Segoe UI', Roboto, sans-serif !important;
    color: #475569 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

/* Paragrafi base - belli spaziati */
.product-description .rte-content p {
    margin-bottom: 20px !important;
    color: #475569 !important;
    line-height: 1.8 !important;
    text-align: left !important;
}

.product-description .rte-content p:last-child {
    margin-bottom: 0 !important;
}

/* Grassetto più leggibile */
.product-description .rte-content strong {
    color: #1e293b !important;
    font-weight: 600 !important;
}

/* Liste - stile semplice e pulito */
.product-description .rte-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 24px 0 !important;
}

.product-description .rte-content li {
    padding: 12px 0 12px 32px !important;
    position: relative !important;
    color: #475569 !important;
    line-height: 1.7 !important;
    border: none !important;
    margin-bottom: 0 !important;
}

/* Checkmark semplice e discreto */
.product-description .rte-content li:before {
    content: '✓' !important;
    position: absolute !important;
    left: 0 !important;
    top: 12px !important;
    width: 20px !important;
    height: 20px !important;
    background: #14b8a6 !important;
    border-radius: 4px !important;
    color: white !important;
    font-weight: 700 !important;
    text-align: center !important;
    line-height: 20px !important;
    font-size: 13px !important;
    box-shadow: none !important;
}

/* Titoli H2/H3 - discreti senza linee */
.product-description .rte-content h2,
.product-description .rte-content h3 {
    color: #1e293b !important;
    font-weight: 600 !important;
    margin: 32px 0 16px 0 !important;
    font-size: 20px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.product-description .rte-content h3 {
    font-size: 18px !important;
    margin: 24px 0 12px 0 !important;
}

/* Tabelle - se presenti */
.product-description .rte-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 24px 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.product-description .rte-content table th {
    background: #0d9488 !important;
    color: white !important;
    padding: 12px 16px !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.product-description .rte-content table td {
    padding: 12px 16px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 15px !important;
}

.product-description .rte-content table tr:last-child td {
    border-bottom: none !important;
}

.product-description .rte-content table tr:nth-child(even) {
    background: #f8fafc !important;
}

/* Responsive */
@media (max-width: 767px) {
    /* Riga superiore prezzi - stack verticale centrato */
    .g14-price-top-row {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
    }
    
    .g14-original-price {
        text-align: center !important;
    }
    
    /* Badge risparmia - centrato su mobile */
    .g14-save-badge {
        padding: 6px 12px !important;
        font-size: 11px !important;
        letter-spacing: 0.3px !important;
        white-space: nowrap !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .product-description-section .product-description {
        padding: 24px !important;
        border-radius: 12px !important;
    }
    
    .product-description .rte-content {
        font-size: 15px !important;
    }
    
    .product-description .rte-content li {
        padding: 10px 0 10px 28px !important;
    }
}

@media print {
    .g14-add-to-cart-btn,
    .g14-trust-badges,
    .g14-reassurance-wrapper {
        display: none;
    }
    
    .g14-price-section {
        border: 1px solid #000;
        background: white;
    }
}

/* ============================================
   FIX ANNEBBIAMENTO / FREEZE GLOBALE
   ============================================ */

/**
 * Risolve il problema della pagina che si annebbia/freeza quando:
 * - Si aggiunge/rimuove prodotti dal carrello
 * - Si cambiano varianti prodotto
 * - PrestaShop esegue operazioni AJAX
 * 
 * CAUSA: PrestaShop aggiunge la classe -combinations-loading che crea overlay
 */

/* Nasconde overlay pseudo-elementi */
#main.-combinations-loading::before,
#main.-combinations-loading::after,
section.-combinations-loading::before,
section.-combinations-loading::after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Mantiene la pagina interattiva */
#main.-combinations-loading,
section.-combinations-loading {
    pointer-events: auto !important;
    opacity: 1 !important;
}

/* Nasconde altri overlay di caricamento */
.page-loader,
.loading-overlay,
[class*="loading-overlay"],
[class*="page-loader"] {
    display: none !important;
}

/* Fix specifico per carrello */
.blockcart-loading {
    pointer-events: none !important;
}

.blockcart-loading::before,
.blockcart-loading::after {
    display: none !important;
}

/* Nascondi box prezzo vuoto solo nelle pagine gift card */
body.product-gift-card .g14-price-section {
    display: none !important;
}

/* ========================================
   TRUSTPILOT - Nascondi mini-badge automatico
   ======================================== */

/* Nascondi il loader del widget */
#tp-widget-loader {
    display: none !important;
}

/* Nascondi il mini-badge "Eccellente" automatico */
#tp-widget-wrapper {
    display: none !important;
}

/* Mantieni visibile solo il carousel nella homepage */
.trustpilot-widget {
    display: block !important;
}