/* MACFaaast Module: Shared Sidebars, Pagination, 1410px Global Alignment, Breadcrumbs & Spatial Rhythm */

/* --- UNIVERSAL SIDEBAR WIDGETS --- */

/* 1. Header del Widget (Blocco Titolo) */
.ts-sidebar .widget-container .widget-title-wrapper {
    margin-bottom: 0 !important;
    padding: 16px 20px !important;
    border-left: 4px solid #00ade6 !important;
    background: #f4f5f7 !important;
    border-radius: 8px 8px 0 0 !important;
    display: block !important;
    line-height: 1 !important;
}

.ts-sidebar .widget-container h3.widget-title.heading-title {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #1d1d1f !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin: 0 !important;
}

/* Correzione per evitare doppia stilizzazione (doppio bordo azzurro e sfondo grigio nidificato) se il titolo è dentro widget-title-wrapper */
.ts-sidebar .widget-container .widget-title-wrapper h3.widget-title,
.ts-sidebar .widget-container .widget-title-wrapper h2.widget-title,
.ts-sidebar .widget-container .widget-title-wrapper h3,
.ts-sidebar .widget-container .widget-title-wrapper h2 {
    border-left: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
}

/* 2. Area Contenuti (Sotto il Titolo) */
.ts-sidebar .widget-container .widget-title-wrapper+* {
    margin-top: 0 !important;
    background: #ffffff !important;
    padding: 15px 15px !important;
    border-radius: 0 0 8px 8px !important;
    border: 1px solid #f0f0f4 !important;
    border-top: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

/* --- UNIFIED PREMIUM SIDEBAR REDESIGN (All Widgets) --- */

/* 1. Target all common sidebar filter lists */
.ts-sidebar ul.product-categories,
.ts-sidebar ul.woocommerce-widget-layered-nav-list,
.ts-sidebar .widget_layered_nav_filters ul,
.ts-sidebar .product-filter-by-price ul,
.ts-sidebar .widget-container ul {
    margin: 5px 0 !important;
    padding: 0 !important;
}

/* --- UNIFIED PREMIUM SIDEBAR REDESIGN (Premium Tree Edition) --- */

/* 1. Reset e Contenitore */
.ts-sidebar .widget-container {
    padding: 0 0 10px 0 !important;
}

.ts-sidebar .widget-container li {
    position: relative;
    padding: 0 !important;
    border-bottom: none !important;
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

/* 2. Styling Link e Label (Spazio a sinistra per icone/linee) */
.ts-sidebar .widget-container li a,
.ts-sidebar .widget-container li label {
    display: flex !important;
    align-items: center;
    padding: 10px 14px 10px 32px !important;
    border-radius: 10px !important;
    /* Più arrotondato come in foto */
    margin: 3px 0 !important;
    transition: all 0.25s ease !important;
    color: #4a4a4a !important;
    /* Grigio elegante */
    font-size: 0.95rem !important;
    text-decoration: none !important;
    border: 1px solid transparent;
    cursor: pointer;
    flex: 1;
    min-height: 42px;
}

/* 3. Indicatori di Espansione (Spostati a Sinistra) */
.ts-sidebar .widget-container li .icon-toggle {
    position: absolute !important;
    left: 8px !important;
    right: auto !important;
    top: 13px !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem !important;
    color: #a0a0a0 !important;
    z-index: 5;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 4. Connettori Visivi ad Albero (L-Shape) con Geometria Precisa (No Accavallamenti) */
.ts-sidebar .widget-container ul.children,
.ts-sidebar .widget-container ul.sub-menu {
    position: relative;
    padding-left: 20px !important;
    /* Sosta gerarchica, ma non sballa i number badges */
    margin-left: 0 !important;
    border-left: none !important;
    margin-bottom: 5px !important;
    flex: 0 0 100%;
    box-sizing: border-box !important;
}

/* Disegna la linea verticale ad albero (Centro perfetto del parent) */
.ts-sidebar .widget-container ul.children::before,
.ts-sidebar .widget-container ul.sub-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    /* Sale a toccare l'icona chevron del genitore */
    bottom: 21px;
    /* Scende solo fino a metà dell'ultimo figlio */
    left: 17px;
    /* Centro assoluto rispetto all'icona del parent a left:8px (8+9) */
    border-left: 1px solid #e0e0e0;
}

/* Linea orizzontale a L per ogni figlio (Si ferma PRIMA dell'icona chevron del figlio!) */
.ts-sidebar .widget-container ul.children li:before,
.ts-sidebar .widget-container ul.sub-menu li:before {
    content: '';
    position: absolute;
    top: 24px;
    /* Metà y di un link min-height 42px */
    left: -3px;
    /* Origine x:20-3=17, esatto sopra la via verticale */
    width: 10px;
    /* Fine x:17+10=27, non toccherà i chevron start x:20+8=28 */
    height: 1px;
    background: #e0e0e0;
}

/* Testo dei figli torna standard, il padding UL spinge il blocco */
.ts-sidebar .widget-container ul.children li a,
.ts-sidebar .widget-container ul.sub-menu li a {
    padding-left: 15px !important;
}

/* 5. Badge Conteggio (Sempre a destra, stile Pillola) */
.ts-sidebar .widget-container span.count {
    font-size: 0.75rem !important;
    background: #f4f5f7;
    color: #666 !important;
    padding: 3px 9px;
    border-radius: 12px;
    font-weight: 700 !important;
    min-width: 30px;
    text-align: center;
    transition: all 0.2s ease;
    display: inline-block;
    border: 1px solid transparent;
    margin-left: auto;
    white-space: nowrap !important;
    flex-shrink: 0;
}

/* 6. Stati Attivi e Branch Highlight */
.ts-sidebar .widget-container li.current>a,
.ts-sidebar .widget-container li.current-cat>a,
.ts-sidebar .widget-container li.chosen>a,
.ts-sidebar .widget-container li.chosen label {
    background: #eef6fc !important;
    /* Sfondo pillola active Cyan */
    color: #00ade6 !important;
    /* Testo Cyan */
    font-weight: 800 !important;
    border-radius: 10px !important;
}

.ts-sidebar .widget-container li.current span.count,
.ts-sidebar .widget-container li.current>a span.count,
.ts-sidebar .widget-container li.chosen span.count,
.ts-sidebar .widget-container li.chosen>a span.count,
.ts-sidebar .widget-container li.current-cat span.count,
.ts-sidebar .widget-container li.current-cat>a span.count {
    background: #00ade6 !important;
    color: #ffffff !important;
}

/* Evidenzia il ramo attivo (Padre della categoria corrente) */
.ts-sidebar .widget-container li.current-cat-parent>a,
.ts-sidebar .widget-container li.active>a {
    background: #f8f9fb !important;
    /* Soffice sfondo genitore attivo */
    color: #00ade6 !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
}

/* 7. Hover Effect */
.ts-sidebar .widget-container li a:hover,
.ts-sidebar .widget-container li label:hover {
    background: #f8f9fb !important;
    color: #00ade6 !important;
}

/* Evita che il testo si sposti a sinistra (glitch visivo) durante l'hover nei sottomenu */
.ts-sidebar .widget-container ul.children li a:hover,
.ts-sidebar .widget-container ul.sub-menu li a:hover {
    padding-left: 15px !important;
    /* Mantiene lo stesso padding dello stato normale */
}

/* Rimuovi completamente l'icona espandi (chevron) se la categoria non ha figli (ultimo livello) */
.ts-sidebar .widget-container li.cat-item:not(.cat-parent)>.icon-toggle {
    display: none !important;
}

/* 8. Pulizia Checkbox legacy */
.ts-sidebar .widget-container li a:before,
.ts-sidebar .widget-container li label:before {
    display: none !important;
}

/* 7. Ensure consistency with other widgets in the sidebar */
.ts-sidebar .widget-container .widget-title-wrapper+* {
    padding: 10px !important;
    /* Slight padding refinement */
}

/* ==========================================================================
   WIDGET FILTRA PER PREZZO (PREMIUM APPLE-STYLE REDESIGN)
   ========================================================================== */

/* 1. Contenitore principale e Reset delle impostazioni originarie */
.ts-sidebar .widget_price_filter form {
    padding-top: 15px !important;
    background: #ffffff !important;
}

.price_slider_wrapper {
    margin-top: 10px !important;
    padding: 5px 10px 10px 10px !important;
}

/* Rimuoviamo gli pseudo-elementi obsoleti del tema (bordi a L) */
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content:before,
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content:after {
    display: none !important;
    content: none !important;
}

/* 2. Barra Traccia del Prezzo (Slider Track) */
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
    background: #e5e5ea !important;
    /* Grigio iOS leggero ed elegante */
    height: 6px !important;
    border-radius: 10px !important;
    border: none !important;
    margin: 15px 8px 30px 8px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
}

/* Barra di Selezione Attiva (Active Range) */
.woocommerce .widget_price_filter .ui-slider-horizontal .ui-slider-range {
    height: 6px !important;
    border-radius: 10px !important;
    background: transparent !important;
    border: none !important;
}

.woocommerce .widget_price_filter .ui-slider-horizontal .ui-slider-range:before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: #00ade6 !important;
    /* Azzurro MacFaaast Premium */
    border-radius: 10px !important;
    box-shadow: 0 1px 2px rgba(0, 173, 230, 0.2) !important;
}

/* 3. Maniglie del Tracciatore (Slider Knobs / Handles) */
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    width: 20px !important;
    height: 20px !important;
    background: #ffffff !important;
    border: 0.5px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16), 0 1px 1px rgba(0, 0, 0, 0.08) !important;
    cursor: grab !important;
    top: -7px !important;
    margin-left: -10px !important;
    /* Allineamento esatto del centro */
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s ease !important;
    z-index: 5 !important;
    outline: none !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle:hover,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle:focus {
    transform: scale(1.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle:active {
    cursor: grabbing !important;
    transform: scale(1.1) !important;
    background: #f8f9fb !important;
}

/* 4. Barra dei valori e Pulsante di Invio (Amount & Submit Button) */
.woocommerce .widget_price_filter .price_slider_amount {
    display: flex !important;
    flex-direction: column !important;
    /* Incolonnamento verticale */
    align-items: flex-start !important;
    gap: 12px !important;
    margin-top: 15px !important;
}

/* Etichetta del Prezzo Corrente */
.woocommerce .widget_price_filter .price_slider_amount .price_label {
    width: 100% !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #8e8e93 !important;
    /* Grigio Apple sfumato */
    order: -1 !important;
    text-align: left !important;
    white-space: nowrap !important;
    /* Forza i prezzi su una singola riga senza andare a capo */
    display: block !important;
}

/* Evidenziazione cifre numeriche */
.woocommerce .widget_price_filter .price_slider_amount .price_label .from,
.woocommerce .widget_price_filter .price_slider_amount .price_label .to {
    color: #53627b !important;
    /* Slate Blue per coerenza cromatica */
    font-weight: 700 !important;
}

/* Pulsante "Filtra" */
.woocommerce .widget_price_filter .price_slider_amount .button {
    background: #53627b !important;
    /* Colore primario Slate Blue */
    color: #ffffff !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 10px 24px !important;
    /* Dimensioni leggermente aumentate per maggiore comodità */
    border-radius: 30px !important;
    /* Elegante pill-shape Apple */
    border: none !important;
    box-shadow: 0 3px 8px rgba(83, 98, 123, 0.15) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-height: unset !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    width: 100% !important;
    /* Bottone a tutta larghezza posizionato sotto */
    text-align: center !important;
}

.woocommerce .widget_price_filter .price_slider_amount .button:hover {
    background: #00ade6 !important;
    /* Passaggio al ciano della palette */
    color: #ffffff !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.3) !important;
}

.woocommerce .widget_price_filter .price_slider_amount .button:active {
    transform: translateY(-0.5px) !important;
    box-shadow: 0 2px 6px rgba(0, 173, 230, 0.25) !important;
}

/* ==========================================================================
   FILTRI ATTIVI (PREMIUM REDESIGN)
   ========================================================================== */

.ts-active-filters:not(:empty) {
    margin-bottom: 35px !important;
}

.ts-active-filters>.widget_layered_nav_filters {
    background: #f8f9fb !important;
    /* Sfondo card grigio chiarissimo e soffice */
    border: 1px solid #e2e2e7 !important;
    /* Elegante bordo Apple sottile */
    border-radius: 12px !important;
    padding: 14px 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

/* Titolo "FILTRI ATTIVI:" */
.ts-active-filters .widget_layered_nav_filters .widgettitle,
.ts-active-filters .widget_layered_nav_filters h3 {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    color: #53627b !important;
    /* Slate Blue */
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    margin: 0 10px 0 0 !important;
    padding: 0 !important;
    float: none !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}

.ts-active-filters .widget_layered_nav_filters ul {
    float: none !important;
    display: inline-flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ts-active-filters .widget_layered_nav_filters ul li {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    list-style: none !important;
}

/* Targhette dei filtri attivi (Sleek Apple-style Filter Pills) */
.ts-active-filters .widget_layered_nav_filters ul li a {
    line-height: 1.4 !important;
    padding: 6px 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #eef6fc !important;
    /* Sfondo ciano chiarissimo per morbidezza visiva */
    color: #00ade6 !important;
    /* Azzurro Ciano Primario */
    border: 1px solid rgba(0, 173, 230, 0.25) !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

/* Effetto Hover sulle targhette (diventano a sfondo pieno azzurro con testo bianco) */
.ts-active-filters .widget_layered_nav_filters ul li a:hover {
    background: #00ade6 !important;
    color: #ffffff !important;
    border-color: #00ade6 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(0, 173, 230, 0.2) !important;
}

.ts-active-filters .widget_layered_nav_filters ul li a:active {
    transform: translateY(0) !important;
}


/* Distanza tra un widget e l'altro */
.ts-sidebar .widget-container {
    margin-bottom: 20px !important;
    padding: 0 !important;
}

/* Highlight parent categories in blue but regular weight */
.ts-sidebar .product-categories li.active>a {
    color: #00ade6 !important;
    font-weight: 400 !important;
}

/* Highlight ONLY the current category in blue and BOLD */
.ts-sidebar .product-categories li.current>a {
    color: #00ade6 !important;
    font-weight: 700 !important;
}



/* Shared Pagination System (migrated from blog.css) */
/* ==========================================================================
   MACFAAAST PREMIUM BLOG DESIGN SYSTEM - SEPARATE STYLESHEET (blog.css)
   ========================================================================== */

/* --- 1. PAGINAZIONE MODERNA (PAGINATION) --- */
.ts-pagination {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 50px 0 20px 0 !important;
    clear: both !important;
}

.ts-pagination ul.page-numbers {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ts-pagination ul.page-numbers li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ts-pagination ul.page-numbers li .page-numbers {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    width: auto !important;
    /* Permette alla capsula di espandersi per il testo del Next/Prev */
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 50px !important;
    /* Totalmente stondato / Cerchio */
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1px solid #e2e2e7 !important;
    background: #f5f5f7 !important;
    color: #53627B !important;
    /* Coerente Slate Blue */
    text-decoration: none !important;
    box-sizing: border-box !important;
}

/* Hover state per i numeri cliccabili */
.ts-pagination ul.page-numbers li a.page-numbers:hover {
    background: #00ade6 !important;
    /* Azzurro Cyan brand */
    border-color: #00ade6 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.3) !important;
}

/* Pagina corrente attiva */
.ts-pagination ul.page-numbers li .page-numbers.current {
    background: #00ade6 !important;
    border-color: #00ade6 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.3) !important;
    cursor: default !important;
}

/* I puntini di sospensione (dots) */
.ts-pagination ul.page-numbers li .dots {
    border: none !important;
    background: transparent !important;
    color: #86868b !important;
    cursor: default !important;
}

/* Frecce Avanti/Indietro (Next / Prev) */
.ts-pagination ul.page-numbers li a.next,
.ts-pagination ul.page-numbers li a.prev {
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 0 22px !important;
    /* Più spazio per la capsula del Next/Prev */
    background: #53627B !important;
    /* Sfondo scuro elegante */
    border-color: #53627B !important;
    color: #ffffff !important;
}

.ts-pagination ul.page-numbers li a.next:hover,
.ts-pagination ul.page-numbers li a.prev:hover {
    background: #00ade6 !important;
    border-color: #00ade6 !important;
    color: #ffffff !important;
}

/* Nasconde completamente l'icona freccia nativa (::before) per lasciare spazio solo al testo pulito */
.ts-pagination ul.page-numbers li a.next::before,
.ts-pagination ul.page-numbers li a.prev::before {
    display: none !important;
    content: "" !important;
}

/* --- 1B. OTTIMIZZAZIONE RESPONSIVE PER LA PAGINAZIONE --- */
@media only screen and (max-width: 768px) {
    .ts-pagination {
        margin: 40px 0 15px 0 !important;
    }
    .ts-pagination ul.page-numbers {
        gap: 8px !important;
    }
    .ts-pagination ul.page-numbers li .page-numbers {
        min-width: 36px !important;
        height: 36px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
    }
    .ts-pagination ul.page-numbers li a.next,
    .ts-pagination ul.page-numbers li a.prev {
        padding: 0 16px !important;
        font-size: 10px !important;
    }
}

@media only screen and (max-width: 480px) {
    .ts-pagination {
        margin: 30px 0 10px 0 !important;
    }
    .ts-pagination ul.page-numbers {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }
    /* Nasconde tutti i numeri, i puntini, prima e ultima pagina */
    .ts-pagination ul.page-numbers li {
        display: none !important;
    }
    /* Mostra SOLO i pulsanti avanti (next) e indietro (prev) */
    .ts-pagination ul.page-numbers li:has(.next),
    .ts-pagination ul.page-numbers li:has(.prev) {
        display: block !important;
    }
    /* Design premium a capsula larga per avanti/indietro su mobile */
    .ts-pagination ul.page-numbers li a.next,
    .ts-pagination ul.page-numbers li a.prev {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 130px !important;
        height: 42px !important;
        padding: 0 18px !important;
        font-size: 12px !important;
        font-weight: 750 !important;
        letter-spacing: 0.5px !important;
        border-radius: 50px !important;
        background: #53627B !important;
        border-color: #53627B !important;
        color: #ffffff !important;
        box-shadow: 0 4px 10px rgba(83, 98, 123, 0.15) !important;
    }
    /* Stato Hover per il tocco su smartphone */
    .ts-pagination ul.page-numbers li a.next:hover,
    .ts-pagination ul.page-numbers li a.prev:hover {
        background: #00ade6 !important;
        border-color: #00ade6 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0, 173, 230, 0.3) !important;
    }
}


/* Mobile Content/Sidebar Reorder (non-Home pages) */
@media only screen and (max-width: 767px) {
    /* Margine laterale di 15px su mobile per tutte le altre pagine (shop, categorie, blog, etc.) */
    body:not(.home) .page-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    /* 2. RIPOSIZIONAMENTO DEI WIDGET (SIDEBAR) DOPO I POST SU MOBILE */
    .page-container {
        display: flex !important;
        flex-direction: column !important;
    }

    #main-content {
        order: 1 !important;
    }

    #left-sidebar {
        order: 2 !important;
        margin-top: 40px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    #right-sidebar {
        order: 3 !important;
        margin-top: 40px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}


/* ==========================================================================
   WIDGET CERCA NEL CATALOGO (APPLE DESIGN SYSTEM)
   ========================================================================== */

/* Aumenta il margine esterno sopra e sotto del widget di ricerca */
.ts-sidebar .widget_product_search,
.ts-sidebar .widget_search,
.ts-sidebar .aws-container {
    margin-top: 30px !important;
    margin-bottom: 45px !important;
    overflow: visible !important;
}

/* Spazio bianco interno all'interno della scheda di ricerca */
.ts-sidebar .widget_product_search .widget-title-wrapper+*,
.ts-sidebar .widget_search .widget-title-wrapper+* {
    padding: 16px 18px 22px !important;
}

.mf-sidebar-search-form {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.mf-sidebar-search-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 48px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 9999px !important;
    padding: 0 48px 0 16px !important;
    box-sizing: border-box !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mf-sidebar-search-wrap:hover {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
}

.mf-sidebar-search-wrap:focus-within {
    background: #ffffff !important;
    border-color: #00ade6 !important;
    box-shadow: 0 0 0 3.5px rgba(0, 173, 230, 0.15), 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

.mf-sidebar-search-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8 !important;
    flex-shrink: 0 !important;
    margin-right: 10px !important;
    transition: color 0.2s ease !important;
    pointer-events: none !important;
}

.mf-sidebar-search-wrap:focus-within .mf-sidebar-search-icon {
    color: #00ade6 !important;
}

.mf-sidebar-search-input {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: normal !important;
    letter-spacing: -0.01em !important;
    box-shadow: none !important;
    font-family: inherit !important;
}

.mf-sidebar-search-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    font-size: 13.5px !important;
}

.mf-sidebar-search-btn {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 50% !important;
    background: #00ade6 !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 3px 9px rgba(0, 173, 230, 0.3) !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 5 !important;
}

.mf-sidebar-search-btn:hover {
    background: #0096c7 !important;
    transform: translateY(-50%) scale(1.06) !important;
    box-shadow: 0 5px 14px rgba(0, 173, 230, 0.45) !important;
}

.mf-sidebar-search-btn svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    display: block !important;
}

/* Protezione e isolamento da residui spotlight */
.ts-sidebar .widget_search .mf-spotlight-esc-hint,
.ts-sidebar .widget_search .mf-spotlight-clear-btn,
.ts-sidebar .widget_search .mf-spotlight-mobile-cancel,
.ts-sidebar .widget_search .mf-spotlight-submit-wrap {
    display: none !important;
}





/* ==========================================================================
   9. FIX FOR SIDEBAR SEARCH WIDGETS: PREMIUM CIRCULAR AZURE BUTTON
   ========================================================================== */

/* Space on the right of the search box for the absolute button */
.widget_search .search-table,
.widget_product_search .search-table,
.widget_product_search .woocommerce-product-search,
.ts-sidebar .search-table {
    position: relative !important;
    padding-right: 50px !important;
}

/* Restore circular azure background and shadow */
.widget_search .search-table .search-button,
.widget_product_search .search-table .search-button,
.ts-sidebar .search-table .search-button,
.widget_product_search .woocommerce-product-search button[type="submit"] {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    background: #00ade6 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 8px rgba(0, 173, 230, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 5 !important;
    cursor: pointer !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Incoroprate the magnifying glass icon inside the circular button */
.widget_search .search-table .search-button::before,
.widget_product_search .search-table .search-button::before,
.ts-sidebar .search-table .search-button::before,
.widget_product_search .woocommerce-product-search button[type="submit"]::before {
    display: block !important;
    content: "\e9a7" !important;
    font-family: 'tb-icon' !important;
    color: #ffffff !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: normal !important;
    font-style: normal !important;
    speak: none !important;
    text-decoration: none !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide any standard/theme secondary text or icons */
.widget_search .search-table .search-button::after,
.widget_product_search .search-table .search-button::after,
.ts-sidebar .search-table .search-button::after {
    display: none !important;
    content: none !important;
}

/* Hover dynamic micro-interaction */
.widget_search .search-table .search-button:hover,
.widget_product_search .search-table .search-button:hover,
.ts-sidebar .search-table .search-button:hover,
.widget_product_search .woocommerce-product-search button[type="submit"]:hover {
    background: #0096c7 !important;
    transform: translateY(-50%) scale(1.06) !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.4) !important;
}

/* Perfect overlap of the native submit input, keeping it functional but fully invisible */
.widget_search .search-table .search-button input[type="submit"],
.widget_product_search .search-table .search-button input[type="submit"],
.ts-sidebar .search-table .search-button input[type="submit"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 6 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: unset !important;
    border-radius: 50% !important;
}

/* Adjust search text input right padding to avoid overlap with the circular button */
.widget_search .search-table .search-field input[type="text"],
.widget_product_search .search-table .search-field input[type="text"],
.ts-sidebar .search-table .search-field input[type="text"] {
    padding-right: 25px !important;
}

/* Mobile specific styling overrides to keep it perfectly centered on smaller viewports */
@media only screen and (max-width: 767px) {

    .widget_search .search-table,
    .widget_product_search .search-table,
    .ts-sidebar .search-table {
        padding-right: 44px !important;
    }

    .widget_search .search-table .search-button,
    .widget_product_search .search-table .search-button,
    .ts-sidebar .search-table .search-button {
        width: 34px !important;
        height: 34px !important;
        right: 4px !important;
    }

    .widget_search .search-table .search-button::before,
    .widget_product_search .search-table .search-button::before,
    .ts-sidebar .search-table .search-button::before {
        font-size: 14px !important;
    }
}


/* ==========================================================================
   10. PREMIUM STYLING FOR "PRIMA" & "ULTIMA" PAGINATION BUTTONS
   ========================================================================== */
.ts-pagination ul.page-numbers li a.first,
.ts-pagination ul.page-numbers li a.last {
    width: auto !important;
    min-width: 80px !important;
    padding: 0 16px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 11px !important;
    background: rgba(0, 173, 230, 0.05) !important;
    border: 1px solid rgba(0, 173, 230, 0.15) !important;
    color: #00ade6 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ts-pagination ul.page-numbers li a.first:hover,
.ts-pagination ul.page-numbers li a.last:hover {
    background: #00ade6 !important;
    border-color: #00ade6 !important;
    color: #ffffff !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.25) !important;
}

.ts-pagination ul.page-numbers li a.first:active,
.ts-pagination ul.page-numbers li a.last:active {
    transform: translateY(0px) !important;
}

/* Adjust layout on small viewports so buttons don't wrap tightly */
@media only screen and (max-width: 480px) {

    .ts-pagination ul.page-numbers li a.first,
    .ts-pagination ul.page-numbers li a.last {
        min-width: 50px !important;
        padding: 0 8px !important;
        font-size: 9.5px !important;
    }
}


/* ==========================================================================
   SISTEMA GLOBALE COERENTE SITO, SHOP, CATEGORIE, PRODOTTO, BLOG & PAGINE
   Desktop (>=1025px): max-width 1410px (padding 50px su laptop = stesso gutter Header)
   Tablet (768px..1024px): padding 24px | Mobile (<=767px): padding 10px & gap identici
   ========================================================================== */
@media (min-width: 1025px) {
    body.category-blog .breadcrumb-title-wrapper .breadcrumb-content,
    body.blog .breadcrumb-title-wrapper .breadcrumb-content,
    body.archive.category .breadcrumb-title-wrapper .breadcrumb-content,
    body.single-post .breadcrumb-title-wrapper .breadcrumb-content,
    .breadcrumb-title-wrapper .breadcrumb-content,
    body:not(.home):not(.elementor-page) .page-container,
    body.page-template-blog-template .page-container,
    body.woocommerce-cart .page-container,
    body.woocommerce-checkout .page-container,
    body.woocommerce-account .page-container,
    body.page-id-6363 .page-container,
    body.page-slug-wishlist-2 .page-container,
    body.woocommerce-shop .page-container,
    body.tax-product_cat .page-container,
    body.single-product .page-container,
    body.single-post .page-container,
    body.blog .page-container,
    body.archive .page-container,
    body.search .page-container {
        width: 100% !important;
        max-width: 1510px !important;
        padding-left: 50px !important;
        padding-right: 50px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    /* Pagine Elementor del sito (/chi-siamo/, /garanzia/, /contatti/, etc.): 1410px o 50px laptop */
    body.elementor-page:not(.home):not(.page-template-blog-template) .elementor:not(.elementor-5283):not(.elementor-location-footer) > .e-con-boxed {
        padding-left: 50px !important;
        padding-right: 50px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.elementor-page:not(.home):not(.page-template-blog-template) .elementor:not(.elementor-5283):not(.elementor-location-footer) > .e-con-boxed > .e-con-inner {
        width: 100% !important;
        max-width: 1410px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Blog & Categorie Prodotti Desktop: elimina asimmetrie lateral-sidebar e -15px overhang */
    body.woocommerce .apple-card-main-archive .products,
    body.woocommerce.main-products .products,
    .list-posts.item-grid {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body .related-products-original {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    body.archive #left-sidebar,
    body.blog #left-sidebar,
    body.single-post #left-sidebar,
    body.category #left-sidebar {
        padding-left: 0 !important;
        padding-right: 30px !important;
    }

    body.archive.has-1-sidebar #main-content,
    body.blog.has-1-sidebar #main-content,
    body.single-post.has-1-sidebar #main-content,
    body.category.has-1-sidebar #main-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Spaziatura verticale coerente Shop & Categorie Desktop (24px) */
    body.woocommerce-shop .breadcrumb-title-wrapper,
    body.tax-product_cat .breadcrumb-title-wrapper {
        margin-bottom: 0 !important;
    }

    body.woocommerce-shop .breadcrumb-title-wrapper .breadcrumb-title,
    body.tax-product_cat .breadcrumb-title-wrapper .breadcrumb-title {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    .mf-cathero-wrap,
    .mf-category-hero,
    .woocommerce .before-loop-wrapper.mf-category-toolbar,
    .before-loop-wrapper.mf-category-toolbar {
        margin-top: 0 !important;
        margin-bottom: 24px !important;
    }

    .apple-card-main-archive .products {
        row-gap: 24px !important;
    }

    /* Footer Bar allineata a 1410px */
    #colophon .elementor-element-aea81c8 > .e-con-inner {
        max-width: 1510px !important;
        padding: 18px 50px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .ts-header .container,
    body.category-blog .breadcrumb-title-wrapper .breadcrumb-content,
    body.blog .breadcrumb-title-wrapper .breadcrumb-content,
    body.archive.category .breadcrumb-title-wrapper .breadcrumb-content,
    body.single-post .breadcrumb-title-wrapper .breadcrumb-content,
    .breadcrumb-title-wrapper .breadcrumb-content,
    body:not(.home):not(.elementor-page) .page-container,
    body.page-template-blog-template .page-container,
    body.woocommerce-cart .page-container,
    body.woocommerce-checkout .page-container,
    body.woocommerce-account .page-container,
    body.page-id-6363 .page-container,
    body.page-slug-wishlist-2 .page-container,
    body.woocommerce-shop .page-container,
    body.tax-product_cat .page-container,
    body.single-product .page-container,
    body.single-post .page-container,
    body.blog .page-container,
    body.archive .page-container,
    body.search .page-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    body.elementor-page:not(.home):not(.page-template-blog-template) .elementor:not(.elementor-5283):not(.elementor-location-footer) > .e-con-boxed {
        padding-left: 24px !important;
        padding-right: 24px !important;
        box-sizing: border-box !important;
    }

    body.elementor-page:not(.home):not(.page-template-blog-template) .elementor:not(.elementor-5283):not(.elementor-location-footer) > .e-con-boxed > .e-con-inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.woocommerce .apple-card-main-archive .products,
    body.woocommerce.main-products .products,
    .list-posts.item-grid {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #colophon .elementor-element-aea81c8 > .e-con-inner {
        padding: 18px 24px !important;
    }
}

@media (max-width: 767px) {
    /* 1. Margini laterali IDENTICI a 10px su TUTTE le pagine (Shop, Categorie, Prodotto, Blog, Pagine Elementor, Cart, Checkout, Account, Wishlist) */
    body.category-blog .breadcrumb-title-wrapper .breadcrumb-content,
    body.blog .breadcrumb-title-wrapper .breadcrumb-content,
    body.archive.category .breadcrumb-title-wrapper .breadcrumb-content,
    body.single-post .breadcrumb-title-wrapper .breadcrumb-content,
    .breadcrumb-title-wrapper .breadcrumb-content,
    .breadcrumb-title-wrapper .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body:not(.home) #content.page-container,
    body:not(.home) .page-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Elimina ogni doppio/triplo padding orizzontale dentro #main-content su mobile (non azzera #content perché coincide con .page-container) */
    body:not(.home) #main-content,
    body:not(.home) #primary,
    body.blog #main-content,
    body.single-post #main-content,
    body.category #main-content,
    body.archive #main-content,
    body.single-post article.single-post,
    .list-posts,
    .list-posts.item-grid,
    body .related-products-original,
    body:not(.woocommerce-page) #left-sidebar,
    body:not(.woocommerce-page) #right-sidebar,
    body:not(.woocommerce-page) .ts-sidebar,
    body:not(.home):not(.page-template-blog-template) .elementor:not(.elementor-5283):not(.elementor-location-footer) > .e-con,
    body:not(.home):not(.page-template-blog-template) .elementor:not(.elementor-5283):not(.elementor-location-footer) > .e-con > .e-con-inner {
        --padding-left: 0px !important;
        --padding-right: 0px !important;
        --container-default-padding-left: 0px !important;
        --container-default-padding-right: 0px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* 2. Category & Shop Toolbar + Products: allineati esattamente a 10px (annulla -10px toolbar e -5px grid del tema parent) */
    .woocommerce .before-loop-wrapper,
    .woocommerce .before-loop-wrapper.mf-category-toolbar,
    .before-loop-wrapper.mf-category-toolbar,
    .woocommerce .products,
    .apple-card-main-archive .products {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. Distanze verticali IDENTICHE a 16px su Categorie, Shop e Breadcrumb mobile */
    body.tax-product_cat .breadcrumb-title-wrapper,
    body.woocommerce-shop .breadcrumb-title-wrapper,
    body.blog .breadcrumb-title-wrapper,
    body.single-post .breadcrumb-title-wrapper,
    body.archive .breadcrumb-title-wrapper,
    body.single-product .breadcrumb-title-wrapper {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body.tax-product_cat .breadcrumb-title-wrapper .breadcrumb-title,
    body.woocommerce-shop .breadcrumb-title-wrapper .breadcrumb-title,
    body.single-product .breadcrumb-title-wrapper .breadcrumb-title {
        padding: 14px 0 16px 0 !important;
        margin: 0 !important;
    }

    body.tax-product_cat .term-description,
    .term-description {
        margin-top: 0 !important;
        margin-bottom: 16px !important;
    }

    .woocommerce .before-loop-wrapper.mf-category-toolbar,
    .before-loop-wrapper.mf-category-toolbar {
        margin-top: 0 !important;
        margin-bottom: 16px !important;
    }

    .apple-card-main-archive .products {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        row-gap: 16px !important;
    }

    .apple-card-main-archive:not(.list).columns-3 .products .product,
    .apple-card-main-archive .products .product {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Blog & Pagine Elementor (es. Chi Siamo): niente buchi verticali eccessivi da 80px */
    body.page-id-5093 .elementor-5093 > .elementor-element:not(:last-child) {
        margin-bottom: 28px !important;
    }

    body.blog article.post-item,
    body.archive.category article.post-item,
    body.tag article.post-item {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }

    body.blog .page-container,
    body.single-post .page-container,
    body.archive .page-container {
        padding-top: 0 !important;
    }

    body:not(.home):not(.page-slug-contatti) .page-container {
        padding-bottom: 32px !important;
    }

    #colophon .elementor-element-aea81c8 > .e-con-inner {
        padding: 18px 10px !important;
    }
}


/* ==========================================================================
   BREADCRUMBS RESTYLE 2026 — APPLE-CLEAN PILL PATHWAY
   ========================================================================== */
body .breadcrumb-title-wrapper.breadcrumb-v2:not(.no-title) .breadcrumbs {
    margin-top: 12px !important;
}

body .breadcrumb-title-wrapper .breadcrumbs {
    line-height: 1 !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container {
    display: inline-block !important;
    max-width: 100% !important;
    padding: 5px 16px 5px 7px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9999px !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 3px 9px !important;
    border-radius: 9999px !important;
    color: #475569 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    vertical-align: middle !important;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container a:first-child::before {
    content: "" !important;
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
    background-color: currentColor !important;
    opacity: 0.78 !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5L12 3l9 7.5'/%3E%3Cpath d='M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5L12 3l9 7.5'/%3E%3Cpath d='M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container a:hover {
    background: #ffffff !important;
    color: #0284c7 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.07) !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container a:hover::before {
    opacity: 1 !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container > span.brn_arrow {
    font-size: 0 !important;
    color: transparent !important;
    width: 14px !important;
    height: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    margin: 0 2px !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container > span.brn_arrow::before {
    content: "" !important;
    width: 11px !important;
    height: 11px !important;
    background-color: #94a3b8 !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container > span.current {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    font-size: inherit !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    color: #0f172a !important;
    background: transparent !important;
    margin: 0 0 0 3px !important;
    padding: 0 !important;
    vertical-align: middle !important;
    word-break: normal !important;
    white-space: nowrap !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container > span.current::before {
    content: none !important;
    display: none !important;
}

body.single-product .breadcrumb-title-wrapper.no-title .breadcrumb-title {
    padding-top: 16px !important;
    padding-bottom: 14px !important;
}

/* ==========================================================================
   SPATIAL RHYTHM UNIFICATION — IDENTICAL HEADER-TO-TITLE SPACING ACROSS
   ALL SECTIONS (REFERENCE: PRODUCT CATEGORIES & SHOP / SINGLE PRODUCT)
   Desktop/Tablet (>= 768px): 24px .breadcrumb-title + 10px H1 = 34px total
   Mobile (<= 767px): 14px .breadcrumb-title + 10px H1 = 24px total
   .no-title pages (Single Product, Chi Siamo, Single Post, Account, Wishlist):
   16px top / 14px bottom around breadcrumbs pill
   ========================================================================== */
body:not(.home) .breadcrumb-title-wrapper {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body:not(.home) .breadcrumb-title-wrapper .breadcrumb-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (min-width: 768px) {
    body:not(.home) .breadcrumb-title-wrapper:not(.no-title) .breadcrumb-title {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

body:not(.home) .breadcrumb-title-wrapper.no-title .breadcrumb-title {
    padding-top: 16px !important;
    padding-bottom: 14px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 767px) {
    body:not(.home) .breadcrumb-title-wrapper:not(.no-title) .breadcrumb-title {
        padding-top: 14px !important;
        padding-bottom: 16px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    body .breadcrumb-title-wrapper.breadcrumb-v2:not(.no-title) .breadcrumbs {
        margin-top: 10px !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs {
        display: block !important;
        width: 100% !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container {
        display: inline-block !important;
        max-width: 100% !important;
        padding: 4px 12px 4px 6px !important;
        font-size: 11.8px !important;
        line-height: 1.35 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        text-overflow: clip !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container::-webkit-scrollbar {
        display: none !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container a {
        padding: 2px 7px !important;
        font-size: 11.8px !important;
        gap: 4px !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container a:first-child::before {
        width: 12px !important;
        height: 12px !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container > span.brn_arrow {
        width: 11px !important;
        height: 11px !important;
        margin: 0 1px !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container > span.brn_arrow::before {
        width: 10px !important;
        height: 10px !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container > span.current {
        margin-left: 2px !important;
    }
}