/* Stili moderni per la pagina prodotto Esseeffe */
.product-main-container {
    background: #fdfdfd;
    padding-bottom: 50px;
}

.product-column-right {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

/* Titolo Prodotto */
.product-title-modern {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Box Prezzo */
.price-box-modern {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

#product_price {
   font-size: 30px;
    font-weight: 800;
    color: #1a1a1a;
    display: flex;
    align-items: baseline;
    gap: 5px;
    line-height: 1.1;
	margin-bottom: 9px;
}

#product_price small {
    font-size: 0.5em;
    color: #666;
}

.price-pay-strip__iva {
    margin-top: 8px;
    line-height: 1.35;
}

.price-pay-strip__iva small {
    font-size: 0.8rem;
}

.price-pay-strip__cashback-msg {
    font-size: 0.72rem;
    line-height: 1.35;
    color: #9f1239;
    margin: 0 0 8px;
    font-weight: 500;
}

/* Tre blocchi: prezzo | bonifico/carta | cashback */
.price-pay-strip {
    display: grid;
    gap: 10px;
    width: 100%;
    margin-bottom: 8px;
}

.price-pay-strip__block {
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fafafa;
    min-width: 0;
}

.price-pay-strip__block--standard {
    background: #fff;
    border-color: #e5e5e5;
}

.price-pay-strip__block--discount {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.price-pay-strip__block--cashback {
    background: #fff1f2;
    border-color: #fecdd3;
}

.price-pay-strip__label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.2;
}

.price-pay-strip__block--standard .price-pay-strip__label {
    color: #1d4ed8;
}

.price-pay-strip__block--discount .price-pay-strip__label {
    color: #14532d;
}

.price-pay-strip__block--cashback .price-pay-strip__label {
    color: #9f1239;
}

.price-pay-strip__hint {
    font-size: 0.7rem;
    color: #166534;
    margin: 0 0 6px;
    line-height: 1.25;
}

.price-pay-strip__value {
    font-size: clamp(1.1rem, 3.8vw, 1.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: #1a1a1a;
    word-break: break-word;
}

.price-pay-strip__value--discount {
    color: #14532d;
}

.price-pay-strip__value--cashback {
    color: #881337;
}

.price-pay-strip__value small,
.price-pay-strip__value--cashback small {
    font-size: 0.55em;
    color: #666;
}

.price-pay-strip__value--cashback small {
    color: #9f1239;
}

.price-pay-strip__value.price-pay-strip__value--main {
    font-size: clamp(1.65rem, 6vw, 2.85rem);
}

.price-pay-strip__value.price-pay-strip__value--main small {
    font-size: 0.45em;
}

.price-pay-strip--cols-1 {
    grid-template-columns: minmax(0, 1fr);
}

.price-pay-strip--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-pay-strip--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991.98px) {
    .price-pay-strip--cols-1,
    .price-pay-strip--cols-2,
    .price-pay-strip--cols-3 {
        grid-template-columns: 1fr;
    }

    .price-pay-strip__block {
        padding: 14px 16px;
    }

    .price-pay-strip__cashback-msg {
        font-size: 0.78rem;
    }

    .product-column-right {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .price-pay-strip__value.price-pay-strip__value--main {
        font-size: 1.95rem;
    }
}

/* Compat: vecchia riga prezzo+cashback (se presente altrove) */
.price-cashback-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 18px;
    width: 100%;
}

.price-cashback-row__main {
    flex: 1 1 auto;
    min-width: 0;
}

.price-cashback-row .product-cashback-badge {
    margin-left: auto;
    flex: 0 0 auto;
    max-width: min(42%, 11.5rem);
}

.product-cashback-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    margin: 0;
    padding: 8px 12px;
    background: #fff1f2;
    color: #9f1239 !important;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.03em;
    border-radius: 10px;
    border: 1px solid #fecdd3;
    box-shadow: none;
    text-align: right;
}

.product-cashback-badge__label {
    font-size: 0.6rem;
    font-weight: 600;
    color: #be185d;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    opacity: 0.9;
}

.product-cashback-badge__amount {
    font-size: 0.92rem;
    font-weight: 800;
    color: #881337 !important;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.product-cashback-badge__amount small,
.product-cashback-badge small {
    color: #881337 !important;
    font-size: 0.72em;
    opacity: 1;
}

@media (max-width: 576px) {
    .price-cashback-row {
        flex-direction: column;
        align-items: stretch;
    }
    .price-cashback-row .product-cashback-badge {
        margin-left: 0;
        max-width: 100%;
        align-items: center;
        text-align: center;
        align-self: center;
    }
}

/* Widget Pagamenti - Compattazione */
.payment-methods-container {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    border: 1px dashed #ddd;
}

/* Bottone Acquisto */
.add2cart.btn-dark {
    background: #ffc107 !important;
    border: none !important;
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    padding: 15px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.add2cart.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4) !important;
    background: #ffb300 !important;
}

/* Badge Rassurance */
.rassurance-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.rassurance-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.rassurance-item i {
    color: #2c8a28;
    font-size: 1.1rem;
}

/* Varianti */
.choise {
    border-radius: 8px !important;
    padding: 8px 15px !important;
    margin: 5px !important;
    border: 2px solid #eee !important;
    transition: all 0.2s !important;
    background: #fff !important;
    color: #333 !important;
    text-decoration: none !important;
}

.choise.sel {
    border-color: #ffc107 !important;
    background: #fff9e6 !important;
    color: #000 !important;
}

/* Contenitore Pagamenti Rateali */
.installments-wrapper {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.installments-wrapper .payment-label {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Allineamento widget interni */
.installments-wrapper>div,
.installments-wrapper>klarna-placement,
.installments-wrapper>scalapay-widget {
    margin-bottom: 15px !important;
    display: block;
}

/* Pulsanti Contatto */
.contact-links-modern {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-whatsapp {
    color: #25D366 !important;
    border: 1px solid #25D366;
    background: #fff;
}

.btn-whatsapp:hover {
    background: #25D366;
    color: #fff !important;
}

.btn-info-request {
    color: #666 !important;
    border: 1px solid #ddd;
    background: #fff;
}

.btn-info-request:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

/* Badge Rassurance - Immagine unica */
.rassurance-container-modern {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.rassurance-container-modern img {
    max-width: 100%;
    height: auto;
    filter: grayscale(0.2);
    transition: filter 0.3s;
}

.rassurance-container-modern img:hover {
    filter: grayscale(0);
}

/* Carrello Moderno */
.cartorow {
    background: #fff;
    border-radius: 12px;
    padding: 15px !important;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s;
}

.cart-product-img-wrapper {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.cart-product-img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

.cart-product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin-bottom: 8px;
    display: block;
    text-decoration: none !important;
}

.cart-product-title:hover {
    color: #007bff;
}

.cart-meta-info {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.cart-price-unit {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a1a;
}

.cart-price-total-row {
    font-size: 0.9rem;
    color: #999;
}

/* Quantità Modern */
.qty-wrapper-modern {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    border-radius: 8px;
    padding: 2px;
    width: fit-content;
}

.qty-btn-modern {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: #495057;
    border-radius: 6px;
    transition: background 0.2s;
}

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

.qty-input-modern {
    border: none !important;
    background: transparent !important;
    text-align: center;
    width: 40px !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0 !important;
    height: 32px !important;
    box-shadow: none !important;
}

/* Bottoni carrello */
.btn-remove-item {
    color: #dc3545;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-remove-item:hover {
    color: #a71d2a;
}

/* Summary Box */
.cart-summary-modern {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.cart-summary-modern h2 {
    font-weight: 800;
    margin-bottom: 20px;
}

.btn-proceed-order {
    background: #ffc107 !important;
    color: #000 !important;
    font-weight: 800 !important;
    padding: 18px !important;
    border-radius: 12px !important;
    border: none !important;
    font-size: 1.25rem !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
    transition: all 0.3s !important;
    width: 100%;
    margin-top: 15px;
}

.btn-proceed-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4) !important;
}

/* Griglia Prodotti (Homeloop) Mobile */
@media (max-width: 768px) {
    .elementwb {
        padding: 8px !important;
    }
.trust-text {
		font-size:  0.95rem !important;
		
	}
    .bluebar,
    .xbars {
        padding-bottom: 20px !important;
    }

    /* Menu Categorie Moderno - Blu Esseeffe */
    .bluebar .box_cat {
        background: #004aad !important; /* Blu macro-categoria */
        border: none !important;
        border-radius: 8px !important;
        margin-bottom: 5px !important;
        padding: 12px 15px !important;
        transition: all 0.2s !important;
    }

    .bluebar .box_cat a {
        color: #ffffff !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        font-size: 0.85rem !important;
    }

    /* Sottocategorie (Micro) */
    .bluebar .box_cat + div, 
    .bluebar .sub_cat_container {
        background: transparent !important;
        padding: 5px 0 10px 15px !important;
    }

    .bluebar .box_cat + div a,
    .bluebar [class*="sub_cat"] a {
        background: #0056b3 !important; /* Blu micro-categoria più chiaro */
        color: #fff !important;
        display: block !important;
        padding: 10px 15px !important;
        margin-bottom: 2px !important;
        border-radius: 6px !important;
        font-size: 0.8rem !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        border: none !important;
    }

    /* Tasto Filtra Prodotti */
    .bluebar .btn-warning, 
    .filter-btn-modern {
        background: #ffc107 !important;
        border: none !important;
        border-radius: 8px !important;
        padding: 15px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        color: #000 !important;
        margin-bottom: 20px !important;
        box-shadow: 0 4px 10px rgba(255, 193, 7, 0.2) !important;
    }


    .content_b1651532931412b {
        text-align: center !important;
    }

    .product-main-container {
        padding-bottom: 0 !important;
    }

    .item_shop {
        border-radius: 12px !important;
        overflow: hidden;
        border: 1px solid #eee !important;
        background: #fff !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        height: auto !important;
        padding: 12px !important;
        position: relative;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        margin-bottom: 15px;
        text-align: center !important;
    }

    .item_shop>div:first-of-type {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 10px !important;
    }

    .lazy.img-responsive,
    .item_shop img {
        max-height: 140px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    .greenbadge {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        background: #28a745 !important;
        color: #fff !important;
        font-size: 0.6rem !important;
        padding: 2px 8px !important;
        border-radius: 4px !important;
        z-index: 5;
    }

    .item_shop .row>div,
    .item_shop [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        display: block !important;
        padding: 0 !important;
    }

    .blackbage,
    .blackbage2 {
        display: none !important;
    }

    .brandon2 {
        display: block !important;
        text-align: left !important;
        margin-bottom: 5px !important;
		position: fixed;
    }

    .brandon2 img {
        max-width: 50% !important;
        height: auto !important;
        object-fit: contain;
    }

    .pnamer {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        min-height: 42px !important;
        margin: 8px 0 !important;
		        padding: 10px;
    }

    .shopship {
        font-size: 0.65rem !important;
        border-top: 1px solid #f9f9f9;
        padding-top: 8px;
    }

    .current_price {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        margin-top: auto !important;
		text-align: center;
    }
	
    .add2cart.btn-dark {
        border-radius: 0 !important;
        padding: 15px !important;
        font-size: 1rem !important;
    }

    .wzp {
        bottom: 180px !important;
        right: 15px !important;
        position: fixed !important;
        z-index: 9998 !important;
        left: auto;
    }

    .buyfixed {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        border-top: 1px solid #ddd !important;
        padding: 10px !important;
        display: flex !important;
        gap: 10px !important;
        z-index: 9997 !important;
        height: 70px !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
    }

    .buyfixed .btn {
        flex: 1 !important;
        height: 50px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        font-size: 0.8rem !important;
    }
}

/* Homeloop: area logo a altezza minima costante; slot ancoraggio per brandon2 */
.homeloop-brand-slot {
    position: relative;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    box-sizing: border-box;
}

.homeloop-brand-slot .brandon2 {
    position: absolute !important;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-bottom: 0 !important;
}

.item_shop .homeloop-brand-slot {
    max-width: 100%;
}

.item_shop .homeloop-brand-slot .brandon {
    display: inline-block;
    line-height: 1.2;
}

.row > .elementwb.item_shop {
    align-self: flex-start;
}

/* Cashback Checkout Modern */
.cashback-container-modern {
    background: #f8fff9 !important;
    border: 1px solid #d4edda !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.08) !important;
}

.cashback-icon {
    background: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.cashback-container-modern h6 {
    color: #155724;
}

.cashback-container-modern .btn-success {
    background: #28a745 !important;
    border: none !important;
    padding: 10px !important;
    border-radius: 8px !important;
    transition: all 0.2s;
}

.cashback-container-modern .btn-success:hover {
    background: #218838 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2) !important;
}