/* ===============================================================
 * STEMTECH - SINGLE PRODUCT CSS 
 * =============================================================== */

/* Sblocco necessario per il funzionamento dello sticky */
html, body, #page, .site-content, .content-area, #primary, 
main#main, article, .inside-article, .entry-content, 
.product-layout-container, .text-gray-800 {
    overflow: visible !important;
}

/* --- Reset e Utilities --- */
.product-layout-container *, .product-layout-container *::before, .product-layout-container *::after {
    box-sizing: border-box;
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.grid { display: grid; }
.hidden { display: none !important; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }
.order-last { order: 9999; }
.order-first { order: -99999; }

/* --- Spaziatura e Dimensioni --- */
.w-full { width: 100%; }
.h-auto { height: auto; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 0rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-8 { margin-top: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.ml-3 { margin-left: 0.75rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.left-4 { left: 1rem; }
.right-4 { right: 1rem; }
.top-4 { top: 1rem; }

/* --- Colori e Sfondi --- */
.bg-white { background-color: #ffffff; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-white { color: #ffffff; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.text-red-500 { color: #ef4444; }

/* --- Bordi e Ombre --- */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-gray-300 { border-color: #d1d5db; }
.border-transparent { border-color: transparent; }
.border-blue-500 { border-color: #3b82f6; }
.hover\:border-blue-400:hover { border-color: #60a5fa; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-l-md { border-top-left-radius: 0.375rem; border-bottom-left-radius: 0.375rem; }
.rounded-r-md { border-top-right-radius: 0.375rem; border-bottom-right-radius: 0.375rem; }
.rounded-full { border-radius: 9999px; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.border-0 { border-width: 0; }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-blue-500:focus { --ring-color: #3b82f6; }
.focus\:border-blue-500:focus { border-color: #3b82f6; }

/* --- Tipografia --- */
.text-sm { font-size: 0.875rem; }
.text-md { font-size: 1rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-3xl { font-size: 1.875rem; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }

/* --- Layout e Allineamento --- */
.block { display: block; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.object-cover { object-fit: cover; }
.cursor-pointer { cursor: pointer; }
.transition-colors { 
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; 
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 
    transition-duration: 150ms; 
}
.duration-300 { transition-duration: 300ms; }
.z-50 { z-index: 50; }
.space-y-2 > * + * { margin-top: 0.5rem; }

/* --- Select e Form --- */
.sm\:text-sm { font-size: 0.875rem; }
.pl-3 { padding-left: 0.75rem; }
.pr-10 { padding-right: 2.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.mt-1 { margin-top: 0.25rem; }
.w-16 { width: 4rem; }

/* --- Classi Responsive --- */
@media (min-width: 640px) { /* sm */
    .sm\:text-sm { font-size: 0.875rem; }
}

@media (min-width: 768px) { /* md */
    .md\:w-36 { width: 9rem; }
    .md\:w-full { width: 100%; }
    .md\:flex-row { flex-direction: row; }
    .md\:flex-col { flex-direction: column; }
    .md\:order-first { order: -99999; }
}

@media (min-width: 1024px) { /* lg */
    .lg\:w-40 { width: 10rem; }
}

@media (min-width: 1280px) { /* xl */
    .xl\:grid { display: grid; }
    .xl\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .xl\:col-span-7 { grid-column: span 7 / span 7; }
    .xl\:col-span-5 { grid-column: span 5 / span 5; }
    .xl\:row-span-2 { grid-row: span 2 / span 2; }
    .xl\:gap-x-6 { column-gap: 1.5rem; }
    .xl\:mt-0 { margin-top: 0; }
    .xl\:mt-6 { margin-top: 1.5rem; }
    .xl\:items-start { align-items: flex-start; }
    .xl\:order-2 { order: 2; }
    .xl\:order-3 { order: 3; }
    .xl\:p-8 { padding: 2rem; }
}

@media (min-width: 1536px) { /* 2xl */
    .2xl\:col-span-8 { grid-column: span 8 / span 8; }
    .2xl\:col-span-4 { grid-column: span 4 / span 4; }
    .2xl\:gap-x-8 { column-gap: 2rem; }
}

/* ===============================================================
 * LAYOUT E STICKY COLUMN
 * =============================================================== */

body.single-product {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f9fafb;
}

.product-layout-container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

@media (min-width: 768px) { 
    .product-layout-container { padding: 0rem 2rem; } 
}

@media (min-width: 1280px) { 
    .product-layout-container { padding: 0rem 4rem; } 
}

/* --- STICKY COLUMN FIX --- */
@media (min-width: 1280px) {
    .sticky-parent {
        display: grid !important;
        align-items: stretch !important; /* Allunga la colonna destra quanto la sinistra */
        position: relative;
    
    .xl\:grid.sticky-parent {
        align-items: start !important;
    }
    
    .sticky-col {
        position: sticky;
        top: 20px;
        align-self: start;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 #f3f4f6;
    }
    
    .sticky-col::-webkit-scrollbar {
        width: 6px;
    }
    
    .sticky-col::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 3px;
    }
    
    .sticky-col::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 3px;
    }
    
    .sticky-col::-webkit-scrollbar-thumb:hover {
        background-color: #94a3b8;
    }
    
    .order-3.xl\:order-2 {
        margin-top: 0 !important;
    }
    
    .order-1.xl\:col-span-7 {
        padding-top: 0;
    }

	/* Container che contiene tutto il contenuto scrollabile */
	.sticky-scroll-container {
	    position: relative;
	}
    
	/* La colonna destra sticky */
	.order-2.xl\:order-2.xl\:col-span-5 {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 150px !important; /* Distanza dal bordo superiore dello schermo */
        z-index: 30 !important;
        align-self: start !important; /* Blocca l'elemento all'inizio del suo binario */
        height: fit-content;
    }
    
	.sticky-col {
        background-color: #ffffff;
        padding: 2rem;
        border-radius: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        
        /* Rimuoviamo l'altezza massima e lo scroll */
        max-height: none !important;
        overflow: visible !important;
    }
}

/* SBLOCCO GENERATEPRESS PER STICKY */
html, body, #page, .site-content, .content-area, #primary, main#main, article, .inside-article, .entry-content, .product-layout-container {
    overflow: visible !important;
}

/* BINARIO DI SCORRIMENTO: Allunga la colonna destra quanto la galleria */
.sticky-parent {
    align-items: stretch !important;
}

/* BRICIOLA (Breadcrumb) FISSA */
.product-layout-container > nav {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 103px !important;
    z-index: 50 !important;
    background-color: #ffffff !important;
    padding: 10px 0 !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* COLONNA PRODOTTO FISSA */
@media (min-width: 1280px) {
    .sticky-col {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 70px !important;
        z-index: 30 !important;
        align-self: start !important;
    }
}

@media (max-width: 1279px) {
    .sticky-col {
        position: relative !important;
    }
}

/* --- Breadcrumb Personalizzato (casetta e freccettine) --- */
.custom-breadcrumb {
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.breadcrumb-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 4px; /* RIDOTTO da 20px */
    flex-wrap: wrap;
}

/* Percorso breadcrumb */
.breadcrumb-path {
    display: flex;
    align-items: center;
    gap: 4px; /* RIDOTTO da 8px */
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 4px; /* RIDOTTO da 8px */
}

.breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Allinea l'icona SVG (casetta) con il testo */
.breadcrumb-item a svg {
    vertical-align: middle;
    margin-top: 2px;
}

.breadcrumb-item a:hover {
    color: #1e3a5f;
}

.breadcrumb-separator {
    color: #9ca3af;
    font-size: 0.8rem;
    margin: 0 2px; /* RIDOTTO da 4px */
}

.breadcrumb-current {
    color: #1e3a5f;
    font-weight: 600;
}

/* Rimuovi stili vecchi breadcrumb WooCommerce */
.woocommerce-breadcrumb {
    display: none !important;
}

/* ===============================================================
 * GALLERIA IMMAGINI
 * =============================================================== */

#thumbnail-scroller {
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#thumbnail-scroller::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    #thumbnail-scroller {
        max-height: 600px;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

.thumbnail {
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.thumbnail:hover {
    opacity: 1;
    border-color: #60a5fa;
}

.thumbnail.active-thumbnail {
    opacity: 1;
    border-color: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* --- FRECCE GALLERIA MODIFICATE (Stile richiesto: Cerchio semitrasparente, freccia nera) --- */
.gallery-nav-arrow,
.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) !important;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    
    border: none !important;
    box-shadow: none !important;
    background-image: none !important;
    
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(2px);
    
    color: #000000 !important;
    
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    padding: 0;
}

.gallery-nav-arrow:hover,
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: none !important;
    color: #000000 !important;
}

.gallery-nav-arrow:focus, 
.gallery-nav-arrow:active {
    background-color: rgba(255, 255, 255, 0.9) !important;
    outline: none;
    box-shadow: none;
}

.gallery-nav-arrow img,
.gallery-nav-arrow svg {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain;
    display: block;
    stroke: #000000 !important;
    fill: #000000 !important;
    filter: brightness(0) drop-shadow(0 0 0.7px #000000) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 24px !important; 
    color: #000000 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 1px #000000;
}

#main-product-image {
    cursor: zoom-in;
}

/* ===============================================================
 * FORM VARIAZIONI E PREZZI
 * =============================================================== */

.woocommerce-price-container { 
    min-height: 2.5rem; 
    position: relative; 
    display: flex; 
    align-items: baseline; 
}

.price-placeholder { 
    font-size: 1rem; 
    color: #6b7280; 
}

.price.initial-price {
    display: block;
}

.custom-attribute-select { 
    transition: border-color 0.2s ease, box-shadow 0.2s ease; 
}

.custom-attribute-select.attribute-error {
    border-color: #ef4444 !important;
    animation: shake 0.5s ease;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); } 
    25% { transform: translateX(-5px); } 
    75% { transform: translateX(5px); }
}

.custom-attribute-select:focus { 
    border-color: #3b82f6; 
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); 
    outline: none; 
}

.custom-attribute-select:disabled { 
    background-color: #f3f4f6; 
    cursor: not-allowed; 
    opacity: 0.6;
}

.custom-attribute-select option,
select[name^="attribute_"] option {
    display: block !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

.custom-attribute-select option:disabled,
select[name^="attribute_"] option:disabled {
    opacity: 1 !important;
    cursor: pointer !important;
    color: inherit !important;
    background: inherit !important;
}

/* ===============================================================
 * PULSANTI E CONTROLLI QUANTITÀ
 * =============================================================== */

/* --- Input Quantità --- */
#quantity::-webkit-inner-spin-button,
#quantity::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#quantity {
    -moz-appearance: textfield;
    text-align: center;
}

#decrease-qty,
#increase-qty {
    background-color: #F3F4F6 !important;
}

#decrease-qty:hover,
#increase-qty:hover {
    color: #000 !important;
    background-color: #e5e7eb !important;
}

#decrease-qty:focus,
#increase-qty:focus {
    color: #4b5563 !important;
    background-color: #F3F4F6 !important;
    outline: none;
}

.quantity-control-wrapper {
    width: 140px;
    height: 48px;
    border-radius: 0 !important;
}

#quantity {
    width: 40px !important;
    height: 100%;
    font-size: 1.1rem; 
    font-weight: 700;
    color: #1f2937;
    padding: 0 0.25rem;
    border-radius: 0 !important;
    border: none !important;
    background-color: #ffffff !important; 
}

#decrease-qty,
#increase-qty {
    width: 50px;
    height: 100%;
    padding: 0;
    font-size: 1.5rem; 
    line-height: 1;
    border-radius: 0 !important;
    background-color: transparent !important;
    color: #000000 !important;
    border: none !important;
}

#decrease-qty { 
    border-top-left-radius: 0 !important; 
    border-bottom-left-radius: 0 !important;
}
#increase-qty { 
    border-top-right-radius: 0 !important; 
    border-bottom-right-radius: 0 !important;
}

#decrease-qty:hover,
#increase-qty:hover {
    background-color: #e5e7eb !important; 
    color: #000000 !important;
}

.sticky-col .quantity-cart-section {
    margin-top: 10px;
}

.sticky-col .quantity-cart-section .flex.gap-2.mb-4 {
    margin-bottom: 0 !important; 
    padding-bottom: 1rem; 
}

/* ===============================================================
 * PULSANTE AGGIUNGI AL CARRELLO - NUOVO STILE HOVER
 * =============================================================== */

#ajax-add-to-cart {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    text-align: center;
    padding: 0.65rem 1.5rem !important;
    font-weight: 700;
    position: relative;
    flex: 1; 
    min-width: 120px; 
}

#ajax-add-to-cart:hover:not(:disabled) {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

#ajax-add-to-cart svg {
    transition: all 0.3s ease !important;
}

#ajax-add-to-cart:hover:not(:disabled) svg {
    stroke: #000000 !important;
}

#ajax-add-to-cart.disabled,
#ajax-add-to-cart:disabled {
    background-color: #9ca3af !important;
    border-color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

.loading-spinner {
    border-top-color: white;
}

#ajax-add-to-cart:hover:not(:disabled) .loading-spinner {
    border-top-color: black !important;
}

/* ===============================================================
 * PULSANTE WISHLIST CON CUORE
 * =============================================================== */

.wishlist-btn {
    border: 2px solid #000000 !important;
    background-color: #ffffff !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem !important;
    min-width: 180px; 
    color: #000000; 
}

.wishlist-btn .wishlist-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 12px;
}

.wishlist-btn .wishlist-icon {
    stroke: #000000;
    fill: none;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
}

.wishlist-btn .quote-icon {
    width: 16px; 
    height: 16px;
    stroke: #000000; 
    fill: none;
    transition: stroke 0.3s ease, fill 0.3s ease;
}

.wishlist-btn .quote-icon .quote-icon-outline {
    stroke: currentColor; 
    fill: none; 
    transition: stroke 0.3s ease, fill 0.3s ease;
}

.wishlist-btn .quote-icon .quote-icon-fill {
    fill: currentColor;
    stroke: none; 
    transition: fill 0.3s ease;
}

.wishlist-btn:hover {
    background-color: #ffffff !important; 
    border-color: #000000 !important; 
    color: #000000; 
}

.wishlist-btn:hover .wishlist-icon {
    stroke: #000000; 
    fill: #000000; 
}

.wishlist-btn:hover .quote-icon {
    fill: #000000;
    stroke: #ffffff;
}

.wishlist-btn:hover .quote-icon .quote-icon-outline {
    stroke: none;
    fill: #000000;
}

.wishlist-btn:hover .quote-icon .quote-icon-fill {
    fill: #ffffff;
}

.wishlist-btn.active {
    background-color: #ffffff !important;
    color: #000000; 
}

.wishlist-btn.active .wishlist-icon {
    stroke: #000000; 
    fill: #000000; 
}

.wishlist-btn.active .quote-icon .quote-icon-outline {
    stroke: #000000;
}

.wishlist-btn.active .quote-icon .quote-icon-fill {
    fill: #000000;
}

.wishlist-btn.loading {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}

.wishlist-btn.loading .wishlist-icon {
    animation: pulse-wishlist 1s infinite;
}

@keyframes pulse-wishlist {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

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

/* ===============================================================
 * MODIFICA AGGIUNTIVA: COLORE DEL PREZZO IN NERO
 * =============================================================== */

.sticky-col .text-3xl.font-bold.text-blue-600,
.sticky-col .text-3xl.font-bold.text-blue-600 .price,
.sticky-col .text-3xl.font-bold.text-blue-600 .amount {
    color: #000000 !important;
}

.related-product-card-content .text-lg.font-bold.text-blue-600,
.suggested-product-price .price, 
.suggested-product-price .amount,
.related-product-title-link:hover {
    color: #000000 !important;
}

/* ===============================================================
 * PRODOTTI SUGGERITI
 * =============================================================== */

.suggested-products-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.suggested-products-section::-webkit-scrollbar {
    width: 5px;
}

.suggested-products-section::-webkit-scrollbar-track {
    background: #f9fafb;
}

.suggested-products-section::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2.5px;
}

.suggested-products-section::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.suggested-products-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.suggested-products-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggested-product-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.suggested-product-item:hover {
    background-color: #f3f4f6;
}

.suggested-product-item:has(.suggested-product-checkbox:checked),
.suggested-product-item.selected {
    background-color: #eff6ff;
    border-left: 3px solid #2563eb;
    padding-left: calc(0.5rem - 3px);
}

.suggested-product-checkbox {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    margin-right: 0.75rem;
}

.suggested-product-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-grow: 1;
}

.suggested-product-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.25rem;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.suggested-product-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.suggested-product-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.suggested-product-checkbox:checked + .suggested-product-link .suggested-product-title {
    font-weight: 600;
    color: #1d4ed8;
}

.suggested-product-price {
    font-size: 0.875rem;
    color: #4b5563;
}

/* ===============================================================
 * NOTIFICHE
 * =============================================================== */

#cart-notifications {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    width: auto;
    max-width: 420px;
    min-width: 280px;
    pointer-events: none;
}

.cart-notification {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.3s ease, transform 0.3s ease;
    background-color: #ffffff;
    color: #111827;
    border: 1px solid #111827;
    border-radius: 4px;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.cart-notification.show { 
    opacity: 1;
    transform: scale(1);
}

.cart-notification.error { 
    background-color: #ffffff;
    color: #111827;
    border: 1px solid #111827;
    visibility: visible !important;
}

.cart-notification.success,
.cart-notification.wishlist-add,
.cart-notification.wishlist-remove {
    background-color: #ffffff;
    color: #111827;
    border: 1px solid #111827;
}

/* ===============================================================
 * LIGHTBOX
 * =============================================================== */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
    overflow: auto;
}

.lightbox-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-image {
    max-width: 85vw;
    max-height: 90vh;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.lightbox-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 48px;
    font-weight: 300;
    color: #000000;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 10002;
}

.lightbox-close-btn:hover {
   background-color: #fff !important;
   color: #5f5f5f !important;
}

#lightbox-progress-container {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #000;
    z-index: 10001;
}

.lightbox-progress-current-top {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.lightbox-progress-total-bottom {
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.lightbox-progress-bar-wrapper {
    width: 2px;
    height: 150px;
    background-color: #e0e0e0;
    position: relative;
}

#lightbox-progress-bar-fill {
    width: 100%;
    height: 10px;
    background-color: #000000;
    position: absolute;
    left: 0;
    transition: top 0.3s ease; 
}

body.no-scroll {
    overflow: hidden;
}

#image-lightbox.custom-cursor-active #lightbox-image {
    cursor: none;
}

#image-lightbox.custom-cursor-active .lightbox-content {
    cursor: none;
}

#scroll-cursor-indicator {
    --cursor-anim-color: #000000;
    position: fixed;
    z-index: 10005;
    pointer-events: none;
    width: 40px;
    height: 70px;
    transform: translate(-50%, -50%);
    will-change: transform;
}

#mouse-icon {
    width: 28px;
    height: auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

#mouse-wheel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
}

#mouse-wheel-container::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    background-color: var(--cursor-anim-color);
    border-radius: 100%;
    animation: scrolldown-anim 2s infinite;
    box-sizing: border-box;
}

#mouse-arrows-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 30px;
    height: 25px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-arrow {
    position: absolute;
    border: solid var(--cursor-anim-color);
    border-width: 0 3px 3px 0;
    display: inline-block;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
}

#arrow-up { top: 0; animation: pulse 2s ease-out infinite; }
#arrow-down { top: 10px; animation: pulse 2s ease-out 0.3s infinite; }

@keyframes scrolldown-anim {
    0% { opacity: 0; transform: translateY(0); }
    40% { opacity: 1; }
    80% { transform: translateY(25px); opacity: 0; }
    100% { opacity: 0; }
}

@keyframes pulse {
    0% { opacity: 0; }
    40% { opacity: 0.8; }
    80% { opacity: 0; }
    100% { opacity: 0; }
}

/* ===============================================================
 * OVERRIDE WOOCOMMERCE
 * =============================================================== */

.woocommerce div.product .woocommerce-tabs { display: none; }
.woocommerce div.product .summary { width: 100% !important; float: none !important; }
.variations_form { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.woocommerce-message,
.woocommerce-info,
.wc-forward,
a.button.wc-forward,
.woocommerce-message .button,
.added_to_cart.wc-forward,
.woocommerce-notices-wrapper {
    display: none !important;
}

#cart-notifications {
    display: block !important;
}

.sticky-col a.quote-button {
    display: block; 
    background-color: #1d4ed8 !important; 
    color: #ffffff !important;
    font-weight: 700 !important; 
    padding: 0.8rem 1.5rem !important;
    border-radius: 0 !important; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; 
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border: none !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

.sticky-col a.quote-button:hover {
    background-color: #2563eb !important; 
    color: #ffffff !important;
}

.sticky-col .quantity-cart-section + .flex.items-center.gap-4.mb-4 a.quote-button, 
.sticky-col .quantity-cart-section + div > a.quote-button, 
.sticky-col div > button#ajax-add-to-cart + a.quote-button { 
   margin-top: 0 !important; 
}

/* ===============================================================
 * RESPONSIVE DESIGN
 * =============================================================== */

@media (max-width: 768px) {
    .product-layout-container {
        padding: 1rem 0.5rem;
    }
    
    .sticky-col {
        padding: 1rem !important;
    }
    
    .suggested-products-section {
        max-height: 200px;
    }
    
    #cart-notifications {
        width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    .wishlist-btn {
        min-width: 150px; 
    }
    
    .breadcrumb-content {
        padding: 0 24px;
    }
}

@media (max-width: 640px) {
    .text-3xl {
        font-size: 1.5rem;
    }
    
    .gallery-nav-arrow,
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
    }
    
    .gallery-nav-arrow img,
    .gallery-nav-arrow svg {
        width: 15px !important;
        height: 15px !important;
    }
    
    .wishlist-btn {
        min-width: 120px;
        padding: 0.5rem 0.75rem !important;
    }
    
    .wishlist-btn .wishlist-content {
        gap: 6px;
    }
    
    .wishlist-btn .wishlist-icon {
        width: 24px;
        height: 24px;
    }
    
    .wishlist-btn .quote-icon {
        width: 24px; 
        height: 30px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-content {
        padding: 0 16px;
    }
}

/* ===============================================================
 * MOBILE OPTIMIZATIONS (EXTRA)
 * =============================================================== */

@media (max-width: 768px) {
    /* Evita micro-scroll orizzontali su mobile (es. slider con margini negativi) */
    body.single-product {
        overflow-x: hidden;
    }

    /* Breadcrumb: su mobile meglio NON sticky (evita sovrapposizioni con header) */
    .product-layout-container > nav {
        position: relative !important;
        top: auto !important;
        margin-bottom: 12px !important;
        box-shadow: none !important;
    }

    .custom-breadcrumb {
        padding: 10px 0;
        font-size: 0.9rem;
    }

    .breadcrumb-content {
        gap: 3px;
    }

    /* Lightbox: su touch disattivo cursore custom */
    #scroll-cursor-indicator {
        display: none !important;
    }
}

@media (max-width: 640px) {
    /* CTA: su schermi piccoli meglio in colonna e full width */
    .sticky-col .flex.gap-2.mb-4 {
        flex-direction: column;
    }

    #ajax-add-to-cart {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0.75rem 1rem !important;
    }

    .wishlist-btn {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0.75rem 1rem !important;
    }

    /* Riga quantità: evita compressione su mobile */
    .quantity-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    /* Slider: elimina margini negativi per evitare overflow */
    .related-products-slider-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

    .related-product-slide {
        padding-left: 0;
        padding-right: 0;
    }
/* contenitore bottoni (add to cart + wishlist) */
  .single-product .actions,
  .single-product .single_add_to_cart_button,
  .single-product .woocommerce-variation-add-to-cart{
    display: flex;
    flex-direction: column;
    align-items: center;   /* ✅ centrati */
    gap: 10px;
    width: 100%;
  }

  /* bottoni: comodi ma non “giganti” */
  .single-product .btn-add-to-cart,
  .single-product .single_add_to_cart_button,
  .single-product .btn-wishlist{
    width: min(100%, 420px);  /* ✅ max “mobile” */
    margin: 0 auto;           /* ✅ centrati */
    display: inline-flex;
    justify-content: center;
  }

  /* se hai input quantità +/− */
  .single-product .quantity{
    width: min(100%, 420px);
    margin: 0 auto;
    justify-content: center;
  }


}

@media (max-width: 480px) {
    /* Lightbox: controlli più comodi su schermi molto piccoli */
    .lightbox-close-btn {
        top: 10px;
        right: 15px;
        font-size: 40px;
    }

    #lightbox-progress-container {
        right: 12px;
    }

    .lightbox-progress-bar-wrapper {
        height: 110px;
    }

    #lightbox-image {
        max-width: 92vw;
        max-height: 85vh;
    }
}

/* ===============================================================
 * PRODOTTI CONSIGLIATI SLIDER 
 * =============================================================== */

.section-divider {
    width: 100%;
    border-top: 1px solid #d1d5db;
    margin-top: 3rem;
    margin-bottom: 3rem;
    display: block;
    clear: both;
}

.related-products-slider-wrapper {
    overflow: hidden;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.related-products-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-product-slide {
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    flex-basis: 100%;
}

@media (min-width: 640px) {
    .related-product-slide {
        flex-basis: 50%;
    }
}

@media (min-width: 1024px) {
    .related-product-slide {
        flex-basis: 33.3333%;
    }
}

@media (min-width: 1280px) {
    .related-product-slide {
        flex-basis: 25%;
    }
}

.related-product-slide .aspect-w-1 {
    position: relative;
    padding-bottom: 100%;
}
.related-product-slide .aspect-w-1 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-slider-arrow {
    position: absolute;
    top: 40%; 
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    width: 40px; 
    height: 40px;
    background-color: #ffffff;
    border: 1px solid #000000;
    cursor: pointer;
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
    padding: 0;
    border-radius: 0;
}

.related-slider-arrow:hover {
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    background-color: #fff !important;    
}

.related-slider-arrow:focus, 
.related-slider-arrow:active {
    background-color: #ffffff !important;
    border: 1px solid #000000;
    outline: none;
    box-shadow: none;
}

.related-slider-arrow img {
    width: 15px; 
    height: 20px;
    object-fit: contain;
    display: block;
}

.related-slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

#related-slider-prev { left: -1rem; }
#related-slider-next { right: -1rem; }

@media (max-width: 768px) {
    #related-slider-prev { left: 0.5rem; }
    #related-slider-next { right: 0.5rem; }
}

/* ===============================================================
 * STILI PERSONALIZZATI SLIDER
 * =============================================================== */

.related-product-title-link {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    height: calc(1.4em * 2);
    margin-bottom: 0.25rem;
}

.related-product-title-link:hover {
    color: #2563eb !important;
    text-decoration: none !important;
}

.related-product-card-content {
    display: grid;
    grid-template-rows: auto 1fr auto;
    flex-grow: 1;
    padding: 1rem;
    height: 100%;
    box-sizing: border-box;
}

.related-product-card-content .related-product-info-wrapper {
    grid-row: 1 / 2;
}

.related-product-buttons {
    grid-row: 3 / 4;
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.related-product-buttons a.quote-button {
    display: none !important;
}

.related-product-buttons a.button,
.related-product-buttons a.add_to_cart_button,
.related-product-buttons a.ajax_add_to_cart {
    display: none !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border: 2px solid #000000 !important;
    line-height: 1.4 !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box;
    margin-top: 0 !important;
}

.related-product-buttons a.button:hover,
.related-product-buttons a.add_to_cart_button:hover,
.related-product-buttons a.ajax_add_to_cart:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #000000 !important;
    transform: none !important;
    text-decoration: none !important;
}

/* ============================================
   NAVIGAZIONE PRODOTTI (PREV/NEXT ARROWS) - SIDEBAR ORIZZONTALE COMPATTA
   ============================================ */

/* Contenitore frecce nella sidebar - LAYOUT ORIZZONTALE */
.product-navigation-arrows {
    display: flex;
    flex-direction: row; /* Orizzontale */
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

/* Singola freccia - larghezza automatica */
.nav-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #1e3a5f;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    width: auto; /* Larghezza automatica */
    white-space: nowrap;
}

/* Hover per frecce attive */
.nav-arrow:not(.disabled):hover {
    background: #1e3a5f;
    color: #ffffff;
    border-color: #1e3a5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
}

.nav-arrow:not(.disabled):hover svg {
    stroke: #ffffff;
}

/* Freccia precedente - icona a sinistra */
.nav-prev {
    flex-direction: row;
}

/* Freccia successiva - icona a destra */
.nav-next {
    flex-direction: row-reverse;
}

/* Frecce disabilitate */
.nav-arrow.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e5e7eb;
    color: #9ca3af;
}

/* Label testo */
.nav-label {
    font-size: 0.95rem;
    font-weight: 700;
}

/* Icone SVG */
.nav-arrow svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: #1e3a5f;
    transition: stroke 0.2s ease;
}

.nav-arrow.disabled svg {
    stroke: #9ca3af;
}

/* Contatore centrale */
.nav-counter {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 700;
    padding: 10px 16px;
    background: #f8f9fb;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}

/* ============================================
   RESPONSIVE NAVIGAZIONE
   ============================================ */

@media (max-width: 768px) {
    .product-navigation-arrows {
        gap: 8px;
        margin-top: 15px;
    }
    
    .nav-arrow {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .nav-label {
        display: none; /* Nascondi testo su mobile */
    }
    
    .nav-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .nav-counter {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .nav-arrow {
        padding: 8px 12px;
    }
    
    .nav-counter {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .mobile-swipe-wrapper {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch;
        gap: 0;
    }

    .mobile-swipe-wrapper > div {
        scroll-snap-align: center;
        flex: 0 0 100%;
    }

    .related-products-slider-track {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 0 10px;
        transition: none !important;
        transform: none !important;
    }

    .related-product-slide {
        width: 100% !important;
        flex: none !important;
    }

    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }

    .no-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
.mobile-tiny-thumb {
        width: 50px !important; /* Dimensione preview molto piccola */
        height: 50px !important;
        object-fit: cover;
    }

    /* Forza il posizionamento orizzontale sotto l'immagine */
    #thumbnail-scroller .flex-row {
        justify-content: center;
        gap: 8px;
    }

    /* Stile della 'X' di chiusura nel Lightbox */
    .lightbox-close-btn {
        display: block !important;
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        background-color: transparent !important;
        color: #000000 !important;
        font-size: 35px !important;
        line-height: 45px !important;
        text-align: center !important;
        border-radius: 50% !important;
        z-index: 10005 !important;
        cursor: pointer;
        border: none !important;
    }

    /* Assicura che il lightbox copra tutto e sia sopra ogni cosa */
    .lightbox-overlay {
        background-color: #ffffff !important;
        z-index: 10000 !important;
    }

}

/* ===============================================================
 * FIX GALLERIA MOBILE/DESKTOP - VERSIONE CORRETTA
 * =============================================================== */

/* Su DESKTOP: mostra solo immagine principale, nascondi swipe mobile */
@media screen and (min-width: 769px) {
    /* Container mantiene il suo comportamento normale */
    .main-image-container .mobile-swipe-wrapper {
        display: block !important;
        overflow: visible !important;
        scroll-snap-type: none !important;
    }
    
    /* Nascondi le slide duplicate per mobile */
    .main-image-container .mobile-swipe-wrapper > div.flex-shrink-0.snap-center {
        display: none !important;
    }
    
    /* Assicura che l'immagine desktop sia visibile */
    .main-image-container #main-product-image {
        display: block !important;
    }
    
    /* Mostra le frecce di navigazione */
    .main-image-container .gallery-nav-arrow {
        display: flex !important;
    }
}

/* Su MOBILE: mostra swipe, nascondi immagine desktop */
@media screen and (max-width: 768px) {
    /* Abilita swipe orizzontale */
    .main-image-container .mobile-swipe-wrapper {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0 !important;
        scroll-behavior: smooth !important;
    }

    /* Mostra le slide mobile */
    .main-image-container .mobile-swipe-wrapper > div.flex-shrink-0 {
        display: block !important;
        flex: 0 0 100% !important;
        scroll-snap-align: center !important;
    }
    
    /* Nascondi immagine principale desktop */
    .main-image-container #main-product-image {
        display: none !important;
    }
    
    /* Nascondi frecce su mobile */
    .main-image-container .gallery-nav-arrow {
        display: none !important;
    }
    
    /* Fix breadcrumb mobile */
    .custom-breadcrumb {
        font-size: 0.85rem;
    }
    
    .breadcrumb-content {
        padding: 0 16px;
        gap: 3px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .breadcrumb-item {
        display: inline-flex;
        flex-shrink: 0;
    }
    
    .breadcrumb-separator {
        margin: 0 2px;
    }
    
    /* Fix layout generale mobile */
    .product-layout-container {
        padding: 1rem 0.5rem !important;
        overflow-x: hidden;
    }
    
    .sticky-col {
        padding: 1rem !important;
        margin: 0 !important;
    }
    
    /* Fix larghezza contenuti mobile */
    .text-gray-800 {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Thumbnails più piccole su mobile */
    .thumbnail.mobile-tiny-thumb {
        width: 60px !important;
        height: 60px !important;
        object-fit: cover;
    }
    
    #thumbnail-scroller {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #thumbnail-scroller .flex {
        gap: 8px;
        padding: 8px 16px;
    }
}

/* Mobile piccolissimo */
@media screen and (max-width: 480px) {
    .breadcrumb-content {
        padding: 0 12px;
        font-size: 0.8rem;
    }
    
    .breadcrumb-item a svg {
        width: 14px;
        height: 14px;
    }
    
    .custom-breadcrumb {
        padding: 8px 0;
    }
}

/* ===============================================================
 * BOTTONE SCHEDA TECNICA
 * =============================================================== */
.scheda-tecnica-row {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}
.scheda-tecnica-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 22px;
    background: #fff;
    color: #374151;
    border: 1.5px solid #d1d5db;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}
.scheda-tecnica-btn:hover {
    background: #f3f4f6;
    border-color: #6b7280;
    color: #111827;
    text-decoration: none;
}
.scheda-tecnica-btn svg { flex-shrink: 0; }

/* ===============================================================
 * MODIFICHE: TITOLO, WISHLIST, PREVENTIVO, POPUP
 * =============================================================== */

/* Titolo H1 ridotto */
.sticky-col h1,
.sticky-col .text-3xl.font-bold.mb-2 {
    font-size: 1.35rem !important;
    line-height: 1.35 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Prezzo ridotto, colore nero */
.sticky-col .text-3xl.font-bold.text-blue-600,
.sticky-col .text-3xl.font-bold.text-blue-600 .price,
.sticky-col .text-3xl.font-bold.text-blue-600 .amount {
    font-size: 1.4rem !important;
    color: #000000 !important;
}

/* Preventivo: testo nero su sfondo bianco */
.sticky-col a[href*="richiedi-preventivo"] {
    background-color: #ffffff !important;
    color: #111827 !important;
    border: 2px solid #111827 !important;
    transition: box-shadow 0.25s ease !important;
}
.sticky-col a[href*="richiedi-preventivo"]:hover {
    background-color: #f9fafb !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18) !important;
    text-decoration: none !important;
}

/* Quote-icon: 16x16, solo bordo */
.wishlist-btn .quote-icon {
    width: 16px !important;
    height: 16px !important;
    stroke: #000000 !important;
    fill: none !important;
    transition: fill 0.3s ease, stroke 0.3s ease !important;
}
.wishlist-btn:hover .quote-icon {
    fill: #000000 !important;
    stroke: #ffffff !important;
}
.wishlist-btn.active .quote-icon {
    fill: #000000 !important;
    stroke: #ffffff !important;
}

/* Testo wishlist: stesso stile di scheda-tecnica */
.wishlist-btn .wishlist-btn-label {
    display: inline !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    color: #374151 !important;
    white-space: nowrap;
}
.wishlist-btn:hover .wishlist-btn-label {
    color: #111827 !important;
}

/* wishlist-scheda-row: riga flex orizzontale */
.wishlist-scheda-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 0.5rem;
}
.wishlist-scheda-row .wishlist-btn {
    flex: 1 1 auto !important;
}
.wishlist-scheda-row .scheda-tecnica-btn {
    flex: 0 0 auto !important;
    align-self: stretch !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-top: 0 !important;
}

/* Nasconde vecchia scheda-tecnica-row separata */
.scheda-tecnica-row {
    display: none !important;
}
