/* ==========================================================================
   MACFAAAST CATALOG UX ENHANCEMENTS
   - Orderby dropdown click reliability fix (eliminates :hover vs fadeToggle fight)
   - Punto 1: Mobile filter drawer + toolbar trigger (<= 991px)
   - Punto 3: Compact category intro bar + bottom SEO/pillar section
   - Punto 6: Consistent 12-month warranty (extendable to 24) CSS overrides
   ========================================================================== */

/* --------------------------------------------------------------------------
   PUNTO 6: OVERRIDE PSEUDO-ELEMENT WARRANTY COPY (ZERO style.css EDITS)
   -------------------------------------------------------------------------- */
.wc-block-cart .wc-block-cart__submit-container::after {
    content: "✓ Spedizione 24/48h · ✓ Garanzia 12 Mesi (est. 24) · ✓ Reso 14gg" !important;
}

#ts-shopping-cart-sidebar .dropdown-footer .total::after {
    content: "🚚 Spedizione 24/48h   •   🛡️ Garanzia 12 Mesi (est. 24)   •   🔒 Sicuro" !important;
}

#ts-shopping-cart-sidebar .cart-dropdown-form .form-content > label::after {
    content: "Il tuo carrello è ancora vuoto. Scopri la nostra selezione di iPhone, iPad, MacBook e PC ricondizionati con garanzia 12 mesi (estendibile a 24)." !important;
}


/* --------------------------------------------------------------------------
   FIX TENDINA ORDINAMENTO CATALOGO (.woocommerce-ordering)
   Elimina il conflitto tra :hover e fadeToggle(200) di main.js + gap 6px
   -------------------------------------------------------------------------- */
html body.woocommerce .before-loop-wrapper.mf-category-toolbar .woocommerce-ordering:hover .orderby ul.dropdown,
html body.woocommerce .woocommerce-ordering:hover .orderby ul.dropdown {
    display: none !important;
}

html body.woocommerce .before-loop-wrapper.mf-category-toolbar:has(.woocommerce-ordering.mf-ord-open) {
    z-index: 60 !important;
    overflow: visible !important;
}

html body.woocommerce .before-loop-wrapper.mf-category-toolbar .woocommerce-ordering.mf-ord-open,
html body.woocommerce .woocommerce-ordering.mf-ord-open {
    z-index: 1500 !important;
}

html body.woocommerce .before-loop-wrapper.mf-category-toolbar .woocommerce-ordering.mf-ord-open .orderby ul.dropdown,
html body.woocommerce .woocommerce-ordering.mf-ord-open .orderby ul.dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 1500 !important;
}

html body.woocommerce .before-loop-wrapper.mf-category-toolbar .woocommerce-ordering .orderby ul.dropdown li a,
html body.woocommerce .woocommerce-ordering .orderby ul.dropdown li a {
    pointer-events: auto !important;
    cursor: pointer !important;
}


/* --------------------------------------------------------------------------
   PUNTO 3: COMPACT CATEGORY INTRO ABOVE GRID + FULL GUIDE BELOW LOOP
   -------------------------------------------------------------------------- */
.mf-cat-compact-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 16px;
    margin: 0 0 14px 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 32, 58, 0.03);
    box-sizing: border-box;
}

.mf-cat-compact-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.mf-cat-compact-badge {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: #e0f2fe;
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mf-cat-compact-text {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #475569 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mf-cat-compact-text strong {
    color: #00203a !important;
    font-weight: 700 !important;
}

.mf-cat-compact-sep {
    margin: 0 6px;
    color: #cbd5e1;
}

.mf-cat-compact-meta {
    color: #64748b;
    font-weight: 500;
}

.mf-cat-compact-link {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}

.mf-cat-compact-link:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
}

.mf-cat-seo-guide-bottom {
    margin-top: 34px;
    padding-top: 8px;
}

.mf-cat-seo-guide-bottom .term-description {
    margin: 0 !important;
}

@media only screen and (max-width: 991px) {
    .mf-cat-compact-bar {
        padding: 9px 12px;
        gap: 8px;
        margin-bottom: 10px;
    }

    .mf-cat-compact-sep,
    .mf-cat-compact-meta {
        display: none;
    }

    .mf-cat-compact-link {
        padding: 5px 10px;
        font-size: 11.5px !important;
    }

    .mf-cat-compact-link span {
        display: inline;
    }
}


/* --------------------------------------------------------------------------
   PUNTO 1: MOBILE FILTER BUTTON + OFFCANVAS FILTER DRAWER (<= 991px)
   -------------------------------------------------------------------------- */
.mf-mob-filter-trigger {
    display: none;
}

@media only screen and (max-width: 991px) {
    body.woocommerce.archive .before-loop-wrapper.mf-category-toolbar {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 10px 12px !important;
        margin-bottom: 16px !important;
    }

    /* Hide theme's legacy filter link so Nooni main.js never hijacks height intervals */
    body.woocommerce.archive .before-loop-wrapper.mf-category-toolbar .filter-widget-area-button {
        display: none !important;
    }

    body.woocommerce.archive .before-loop-wrapper.mf-category-toolbar .mf-mob-filter-trigger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        order: 1 !important;
        height: 36px !important;
        padding: 0 14px !important;
        margin: 0 !important;
        background: #00203a !important;
        color: #ffffff !important;
        border: 1px solid #00203a !important;
        border-radius: 10px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        letter-spacing: -0.01em !important;
        text-transform: none !important;
        cursor: pointer !important;
        box-shadow: 0 2px 8px rgba(0, 32, 58, 0.14) !important;
        flex-shrink: 0 !important;
        line-height: 1 !important;
    }

    body.woocommerce.archive .before-loop-wrapper.mf-category-toolbar .mf-mob-filter-trigger.has-active-filters {
        background: #00ade6 !important;
        border-color: #00ade6 !important;
    }

    .mf-mob-filter-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: #ffffff;
        color: #00203a;
        font-size: 11px;
        font-weight: 800;
        line-height: 1;
    }

    body.woocommerce.archive .before-loop-wrapper.mf-category-toolbar .product-on-sale-form {
        order: 2 !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        flex: 0 0 auto !important;
    }

    body.woocommerce.archive .before-loop-wrapper.mf-category-toolbar .product-on-sale-form label {
        height: 36px !important;
        line-height: 34px !important;
        font-size: 11.5px !important;
        padding: 0 10px !important;
        gap: 6px !important;
    }

    /* Force Row 2 so orderby select never squeezes onto Row 1 */
    body.woocommerce.archive .before-loop-wrapper.mf-category-toolbar .woocommerce-ordering {
        order: 3 !important;
        flex: 1 1 200px !important;
        min-width: 200px !important;
        width: calc(100% - 82px) !important;
        margin: 0 !important;
    }

    body.woocommerce.archive .before-loop-wrapper.mf-category-toolbar .woocommerce-ordering ul.orderby {
        width: 100% !important;
    }

    body.woocommerce.archive .before-loop-wrapper.mf-category-toolbar .woocommerce-ordering .orderby-current {
        width: 100% !important;
        min-width: 100% !important;
    }

    body.woocommerce.archive .before-loop-wrapper.mf-category-toolbar .gridlist-toggle {
        order: 4 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    /* Ensure main catalog column spans full width when sidebar becomes slide-over drawer */
    body.woocommerce.archive #main > .page-container > #main-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    /* Slide-over off-canvas drawer styling for #left-sidebar above sticky header */
    body.woocommerce.archive #main > .page-container > #left-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: min(88vw, 370px) !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        z-index: 100050 !important;
        transform: translateX(106%) !important;
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        visibility: hidden !important;
        box-shadow: none !important;
        order: initial !important;
    }

    body.woocommerce.archive.admin-bar #main > .page-container > #left-sidebar {
        top: 46px !important;
    }

    body.woocommerce.archive #main > .page-container > #left-sidebar.mf-drawer-open,
    body.woocommerce.archive #main > .page-container > #left-sidebar.active {
        transform: translateX(0) !important;
        visibility: visible !important;
        box-shadow: -10px 0 36px rgba(0, 32, 58, 0.22) !important;
    }

    body.woocommerce.archive #left-sidebar > aside {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 18px 86px 18px !important;
        margin: 0 !important;
        background: #ffffff !important;
        overflow: visible !important;
    }

    /* Lift #main stacking context above site header when filter drawer is open */
    body.mf-drawer-lock header,
    body.mf-drawer-lock #masthead,
    body.mf-drawer-lock .ts-header,
    body.mf-drawer-lock .header-sticky {
        z-index: 1 !important;
    }

    body.mf-drawer-lock #main {
        position: relative !important;
        z-index: 100050 !important;
    }

    /* Prioritize actionable attribute & price filters at top of mobile drawer */
    body.woocommerce.archive #left-sidebar .mf-drawer-head {
        order: 0 !important;
    }
    body.woocommerce.archive #left-sidebar .widget-container {
        order: 9 !important;
    }
    body.woocommerce.archive #left-sidebar .widget_price_filter {
        order: 1 !important;
    }
    body.woocommerce.archive #left-sidebar .widget_layered_nav {
        order: 3 !important;
    }
    body.woocommerce.archive #left-sidebar #woocommerce_layered_nav-9,
    body.woocommerce.archive #left-sidebar #woocommerce_layered_nav-10 {
        order: 2 !important;
    }
    body.woocommerce.archive #left-sidebar #woocommerce_layered_nav-2 {
        order: 4 !important;
    }
    body.woocommerce.archive #left-sidebar #woocommerce_layered_nav-4 {
        order: 5 !important;
    }
    body.woocommerce.archive #left-sidebar #ts_product_categories-3,
    body.woocommerce.archive #left-sidebar .ts-product-categories-widget,
    body.woocommerce.archive #left-sidebar .widget_ts_product_categories {
        order: 6 !important;
    }
    body.woocommerce.archive #left-sidebar .widget_search,
    body.woocommerce.archive #left-sidebar .widget_product_search {
        order: 7 !important;
    }
    body.woocommerce.archive #left-sidebar .widget_custom_html {
        order: 8 !important;
    }

    /* Hide duplicate on-sale toggle inside drawer (already in toolbar) */
    body.woocommerce.archive #left-sidebar .product-on-sale-form {
        display: none !important;
    }

    body.woocommerce.archive #left-sidebar .widget-container {
        display: block !important;
        margin-bottom: 14px !important;
    }

    body.woocommerce.archive #left-sidebar .widget-container > *:not(.widget-title-wrapper) {
        display: block !important;
    }

    body.woocommerce.archive #left-sidebar .widget-title-wrapper .block-control {
        display: none !important;
    }

    .mf-drawer-head {
        position: sticky;
        top: 0;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: 0 -18px 14px -18px;
        padding: 14px 18px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid #e2e8f0;
    }

    .mf-drawer-title {
        margin: 0;
        font-size: 16px !important;
        font-weight: 800 !important;
        color: #00203a !important;
        letter-spacing: -0.02em;
    }

    .mf-drawer-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mf-drawer-reset {
        font-size: 12.5px;
        font-weight: 700;
        color: #00ade6 !important;
        text-decoration: none !important;
        padding: 4px 8px;
        border-radius: 8px;
        background: #f0f9ff;
    }

    .mf-drawer-close {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #00203a;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 600;
        line-height: 1;
        cursor: pointer;
        padding: 0;
    }

    .mf-drawer-foot {
        position: fixed;
        bottom: 0;
        right: 0;
        width: min(88vw, 370px);
        max-width: 100vw;
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        border-top: 1px solid #e2e8f0;
        box-sizing: border-box;
        z-index: 7;
        display: none;
    }

    #left-sidebar.mf-drawer-open .mf-drawer-foot,
    #left-sidebar.active .mf-drawer-foot {
        display: block;
    }

    .mf-drawer-apply-btn {
        width: 100%;
        height: 44px;
        border-radius: 999px;
        border: none;
        background: #00203a;
        color: #ffffff;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .mf-filter-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 32, 58, 0.48);
        backdrop-filter: blur(2px);
        z-index: 100040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.24s ease, visibility 0.24s ease;
    }

    .mf-filter-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }

    body.mf-drawer-lock {
        overflow: hidden !important;
    }
}

@media only screen and (min-width: 992px) {
    .mf-drawer-head,
    .mf-drawer-foot,
    .mf-filter-backdrop {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   DESKTOP TOP BAR (Utility Bar + Newsletter Trigger styled harmoniously)
   -------------------------------------------------------------------------- */
@media only screen and (min-width: 768px) {
    .ts-header .header-top {
        background: linear-gradient(180deg, #f5faff 0%, #eef6fc 100%) !important;
        color: #3d4b64 !important;
        border-bottom: 1px solid rgba(61, 75, 100, 0.1) !important;
        text-transform: none !important;
        font-size: 12.5px !important;
        line-height: 1.25 !important;
        position: relative;
        z-index: 994;
    }

    .ts-header .header-top > .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px;
    }

    .ts-header .header-top .header-left {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0;
        display: flex !important;
        align-items: center !important;
    }

    .ts-header .header-top .header-right:not(:has(a, select, li)) {
        display: none !important;
    }

    .ts-header .header-top .header-store-notice {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        padding: 6px 0 !important;
        margin: 0 !important;
        color: #3d4b64 !important;
        text-transform: none !important;
        font-size: 12.5px !important;
    }

    .ts-header .header-top .header-store-notice a::before,
    .ts-header .header-top .header-store-notice a::after {
        content: none !important;
        display: none !important;
        border: none !important;
    }

    .mf-top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        text-transform: none !important;
    }

    .mf-top-left,
    .mf-top-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .ts-header .header-top .mf-top-pill,
    .ts-header .header-top .mf-top-pill * {
        text-transform: none !important;
    }

    .ts-header .header-top .mf-top-pill {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px;
        padding: 5px 12px !important;
        border-radius: 999px !important;
        font-size: 12.5px !important;
        line-height: 1.2 !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        white-space: nowrap;
        cursor: pointer;
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
    }

    .ts-header .header-top .mf-top-phone {
        background: #ffffff !important;
        border: 1px solid #d7e5f2 !important;
        color: #3d4b64 !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    }

    .ts-header .header-top .mf-top-phone .mf-top-ic {
        color: #0284c7;
        flex: 0 0 auto;
    }

    .ts-header .header-top .mf-top-phone-num {
        color: #00203a !important;
        font-weight: 700 !important;
        letter-spacing: 0.01em;
    }

    .ts-header .header-top .mf-top-phone:hover {
        border-color: #7dd3fc !important;
        color: #0284c7 !important;
        box-shadow: 0 3px 10px -3px rgba(2, 132, 199, 0.18) !important;
    }

    .ts-header .header-top .mf-top-shop {
        background: #ffffff !important;
        border: 1px solid #d7e5f2 !important;
        color: #00203a !important;
        font-weight: 600 !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    }

    .ts-header .header-top .mf-top-shop .mf-top-ic {
        color: #0284c7;
        flex: 0 0 auto;
    }

    .ts-header .header-top .mf-top-shop:hover {
        background: rgba(0, 173, 230, 0.08) !important;
        border-color: #7dd3fc !important;
        color: #0284c7 !important;
    }

    .ts-header .header-top .mf-top-newsletter {
        background: linear-gradient(135deg, #00a8e8 0%, #0284c7 100%) !important;
        border: 1px solid transparent !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        padding: 5px 14px !important;
        box-shadow: 0 3px 10px -3px rgba(2, 132, 199, 0.42) !important;
    }

    .ts-header .header-top .mf-top-newsletter .mf-top-ic {
        color: #ffffff;
        flex: 0 0 auto;
    }

    .ts-header .header-top .mf-top-newsletter:hover {
        background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
        color: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px -4px rgba(2, 132, 199, 0.5) !important;
    }

    .ts-header .header-top .mf-top-pill:focus-visible {
        outline: 2px solid #00a8e8 !important;
        outline-offset: 2px !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .ts-header .header-top .mf-top-phone-txt {
        display: none;
    }
}

/* Newsletter Popup (#pum-7876 / #popmake-7876) guaranteed visibility when active */
#pum-7876.pum-overlay.pum-active {
    display: block !important;
    visibility: visible !important;
    z-index: 1999999997 !important;
}

#pum-7876.pum-overlay.pum-active #popmake-7876.pum-container {
    display: block !important;
    visibility: visible !important;
    z-index: 1999999999 !important;
}

/* Newsletter Mandatory Privacy Consent Checkbox (#popmake-7876 / #sib_signup_form_1) */
#popmake-7876 #sib_signup_form_1 .mf-nl-privacy-wrap,
.sib_signup_form .mf-nl-privacy-wrap {
    margin: 4px 0 14px 0;
}

#popmake-7876 #sib_signup_form_1 .mf-nl-privacy-label,
.sib_signup_form .mf-nl-privacy-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    color: #00203a !important;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 11px !important;
    cursor: pointer !important;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease !important;
}

#popmake-7876 #sib_signup_form_1 .mf-nl-privacy-label:hover,
.sib_signup_form .mf-nl-privacy-label:hover {
    border-color: #7dd3fc !important;
    background: #f0f9ff !important;
}

#popmake-7876 #sib_signup_form_1 .mf-nl-privacy-label:has(.mf-nl-privacy-checkbox:checked),
.sib_signup_form .mf-nl-privacy-label:has(.mf-nl-privacy-checkbox:checked) {
    border-color: #00a8e8 !important;
    background: #f0f9ff !important;
}

#popmake-7876 #sib_signup_form_1 .mf-nl-privacy-checkbox,
.sib_signup_form .mf-nl-privacy-checkbox {
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    display: inline-block !important;
    position: static !important;
    opacity: 1 !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    accent-color: #0284c7 !important;
    color: #00203a !important;
    border-color: #94a3b8 !important;
    cursor: pointer !important;
    flex: 0 0 17px !important;
}

#popmake-7876 #sib_signup_form_1 .mf-nl-privacy-text,
.sib_signup_form .mf-nl-privacy-text {
    font-size: 12.5px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: #3d4b64 !important;
}

#popmake-7876 #sib_signup_form_1 .mf-nl-privacy-text a,
.sib_signup_form .mf-nl-privacy-text a {
    display: inline !important;
    padding-left: 2px !important;
    color: #0284c7 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

#popmake-7876 #sib_signup_form_1 .mf-nl-privacy-text a:hover,
.sib_signup_form .mf-nl-privacy-text a:hover {
    color: #0369a1 !important;
}

#popmake-7876 #sib_signup_form_1 .mf-nl-req,
.sib_signup_form .mf-nl-req {
    color: #e11d48 !important;
    font-weight: 700 !important;
}

#popmake-7876 #sib_signup_form_1 .mf-nl-privacy-wrap.is-invalid .mf-nl-privacy-label,
.sib_signup_form .mf-nl-privacy-wrap.is-invalid .mf-nl-privacy-label {
    border-color: #e11d48 !important;
    background: #fff1f2 !important;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12) !important;
}

#popmake-7876 #sib_signup_form_1 .mf-nl-privacy-wrap p.mf-nl-privacy-error,
.sib_signup_form .mf-nl-privacy-wrap p.mf-nl-privacy-error {
    margin: 6px 0 0 2px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #be123c !important;
}

#popmake-7876 #sib_signup_form_1 .mf-nl-privacy-wrap p.mf-nl-privacy-error[hidden],
.sib_signup_form .mf-nl-privacy-wrap p.mf-nl-privacy-error[hidden] {
    display: none !important;
}

/* ==========================================================================
   CATALOG HORIZONTAL (LIST) VIEW: PAYPAL 3 INSTALLMENTS SINGLE-LINE BAR
   ========================================================================== */
.apple-card-main-archive .loop-paypal-preview .pp-amount,
.apple-card-main-archive .loop-paypal-preview .pp-amount *,
.apple-card-main-archive .loop-paypal-preview .pp-brand,
.woocommerce.main-products .loop-paypal-preview .pp-amount,
.woocommerce.main-products .loop-paypal-preview .pp-amount *,
.woocommerce.main-products .loop-paypal-preview .pp-brand {
    color: #00203a !important;
    font-weight: 700 !important;
}

@media (min-width: 768px) {
    /* Enable container queries so PayPal text adapts cleanly to actual card width (with or without sidebar) */
    .apple-card-main-archive.list .products .product .meta-wrapper,
    .woocommerce.main-products.list .products .product .meta-wrapper,
    .main-products.list .products .product .meta-wrapper {
        container-type: inline-size;
        container-name: mf-list-meta;
    }

    .apple-card-main-archive.list .products .product .loop-paypal-preview,
    .woocommerce.main-products.list .products .product .loop-paypal-preview,
    .main-products.list .products .product .loop-paypal-preview {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 9px !important;
        width: 100% !important;
        padding: 9px 14px !important;
        margin: 0 !important;
        background: #f0f7fc !important;
        border: 1px solid #dbeafe !important;
        border-radius: 12px !important;
        color: #3d4b64 !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .apple-card-main-archive.list .products .product .loop-paypal-preview .pp-text,
    .woocommerce.main-products.list .products .product .loop-paypal-preview .pp-text,
    .main-products.list .products .product .loop-paypal-preview .pp-text {
        display: block !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.35 !important;
        color: #3d4b64 !important;
    }

    .apple-card-main-archive.list .products .product .loop-paypal-preview .pp-hook,
    .woocommerce.main-products.list .products .product .loop-paypal-preview .pp-hook,
    .main-products.list .products .product .loop-paypal-preview .pp-hook {
        color: #0284c7 !important;
        font-weight: 700 !important;
        margin-right: 4px !important;
    }

    .apple-card-main-archive.list .products .product .loop-paypal-preview .pp-lead,
    .woocommerce.main-products.list .products .product .loop-paypal-preview .pp-lead,
    .main-products.list .products .product .loop-paypal-preview .pp-lead {
        display: none !important;
    }

    /* Show full original phrase only when card column has ample space for single line */
    @container mf-list-meta (min-width: 680px) {
        .apple-card-main-archive.list .products .product .loop-paypal-preview .pp-lead,
        .woocommerce.main-products.list .products .product .loop-paypal-preview .pp-lead,
        .main-products.list .products .product .loop-paypal-preview .pp-lead {
            display: inline !important;
        }
    }

    /* Compact laptop/tablet card column: switch smoothly from question hook to "Paga in 3 rate..." on 1 line */
    @container mf-list-meta (max-width: 550px) {
        .apple-card-main-archive.list .products .product .loop-paypal-preview,
        .woocommerce.main-products.list .products .product .loop-paypal-preview,
        .main-products.list .products .product .loop-paypal-preview {
            padding: 8px 12px !important;
            gap: 8px !important;
            font-size: 11.5px !important;
        }

        .apple-card-main-archive.list .products .product .loop-paypal-preview .pp-hook,
        .woocommerce.main-products.list .products .product .loop-paypal-preview .pp-hook,
        .main-products.list .products .product .loop-paypal-preview .pp-hook {
            display: none !important;
        }

        .apple-card-main-archive.list .products .product .loop-paypal-preview .pp-offer::before,
        .woocommerce.main-products.list .products .product .loop-paypal-preview .pp-offer::before,
        .main-products.list .products .product .loop-paypal-preview .pp-offer::before {
            content: 'Paga in ';
            color: #0284c7;
            font-weight: 700;
        }
    }

    @container mf-list-meta (max-width: 440px) {
        .apple-card-main-archive.list .products .product .loop-paypal-preview,
        .woocommerce.main-products.list .products .product .loop-paypal-preview,
        .main-products.list .products .product .loop-paypal-preview {
            padding: 7px 9px !important;
            gap: 6px !important;
            font-size: 10.5px !important;
        }
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .apple-card-main-archive.list .products .product .thumbnail-wrapper,
    .woocommerce.main-products.list > .products .product-wrapper .thumbnail-wrapper,
    .woocommerce.main-products.list .products .product .thumbnail-wrapper,
    .woocommerce.apple-card-main-archive.main-products.list .products .product .thumbnail-wrapper,
    .woocommerce.apple-card-main-archive.main-products.columns-3.list .products .product .thumbnail-wrapper,
    .woocommerce.apple-card-main-archive.main-products.columns-4.list .products .product .thumbnail-wrapper,
    .main-products.list .products .product .thumbnail-wrapper {
        width: 190px !important;
        min-width: 190px !important;
        max-width: 190px !important;
        min-height: 190px !important;
        flex: 0 0 190px !important;
        padding: 15px !important;
    }

    .apple-card-main-archive.list .products .product .meta-wrapper,
    .woocommerce.main-products.list > .products .product-wrapper .meta-wrapper,
    .woocommerce.main-products.list .products .product .meta-wrapper,
    .woocommerce.apple-card-main-archive.main-products.list .products .product .meta-wrapper,
    .woocommerce.apple-card-main-archive.main-products.columns-3.list .products .product .meta-wrapper,
    .woocommerce.apple-card-main-archive.main-products.columns-4.list .products .product .meta-wrapper,
    .main-products.list .products .product .meta-wrapper {
        padding: 20px 20px !important;
    }
}

@media (max-width: 767px) {
    .apple-card-main-archive.list .products .product .loop-paypal-preview,
    .woocommerce.main-products.list .products .product .loop-paypal-preview,
    .main-products.list .products .product .loop-paypal-preview {
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;
        width: 100% !important;
        padding: 7px 10px !important;
        background: #f0f7fc !important;
        border: 1px solid #dbeafe !important;
        border-radius: 10px !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
        color: #3d4b64 !important;
        box-sizing: border-box !important;
    }

    .apple-card-main-archive.list .products .product .loop-paypal-preview::before,
    .woocommerce.main-products.list .products .product .loop-paypal-preview::before,
    .main-products.list .products .product .loop-paypal-preview::before {
        content: '';
        display: inline-block;
        width: 14px;
        height: 14px;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230284c7" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><rect x="1" y="4" width="22" height="16" rx="2" ry="2"/><line x1="1" y1="10" x2="23" y2="10"/></svg>') no-repeat center center;
        background-size: contain;
        flex-shrink: 0;
    }

    .apple-card-main-archive.list .products .product .loop-paypal-preview .pp-text,
    .woocommerce.main-products.list .products .product .loop-paypal-preview .pp-text,
    .main-products.list .products .product .loop-paypal-preview .pp-text {
        display: block !important;
        min-width: 0 !important;
        color: #3d4b64 !important;
    }

    .apple-card-main-archive.list .products .product .loop-paypal-preview .pp-hook,
    .woocommerce.main-products.list .products .product .loop-paypal-preview .pp-hook,
    .main-products.list .products .product .loop-paypal-preview .pp-hook {
        color: #0284c7 !important;
        font-weight: 700 !important;
    }

    .apple-card-main-archive.list .products .product .loop-paypal-preview .pp-lead,
    .woocommerce.main-products.list .products .product .loop-paypal-preview .pp-lead,
    .main-products.list .products .product .loop-paypal-preview .pp-lead {
        display: none !important;
    }
}

/* ==========================================================================
   MF SHOP SIDEBAR: UNIFORM CATEGORY ARROWS, ALIGNMENT & FILTER HARMONY
   Palette conforme al logo MACFaaast (#53627b slate + #00ade6 cyan + #eef6fc tint)
   ========================================================================== */

#left-sidebar,
#left-sidebar .widget-container {
    color: #53627b !important;
}

#left-sidebar .ts-product-categories-widget ul.product-categories,
#left-sidebar .widget_product_categories ul.product-categories,
#left-sidebar .widget_layered_nav ul.woocommerce-widget-layered-nav-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-item,
#left-sidebar .widget_product_categories ul.product-categories li.cat-item,
#left-sidebar .widget_layered_nav ul.woocommerce-widget-layered-nav-list li.woocommerce-widget-layered-nav-list__item {
    position: relative !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #53627b !important;
    list-style: none !important;
}

#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-item:last-child,
#left-sidebar .widget_product_categories ul.product-categories li.cat-item:last-child,
#left-sidebar .widget_layered_nav ul.woocommerce-widget-layered-nav-list li.woocommerce-widget-layered-nav-list__item:last-child {
    margin-bottom: 0 !important;
}

/* Uniform flex row on parent categories: label + count left, crisp toggle pill right */
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    column-gap: 6px !important;
    row-gap: 0 !important;
}

/* Uniform flex row on non-parent categories so count pill aligns in the same column */
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-item:not(.cat-parent),
#left-sidebar .widget_product_categories ul.product-categories li.cat-item:not(.cat-parent) {
    display: flex !important;
    align-items: center !important;
}

/* Layered nav attribute rows (Processore, RAM, SSD, Schermo): label left, count badge right */
#left-sidebar .widget_layered_nav ul.woocommerce-widget-layered-nav-list li.woocommerce-widget-layered-nav-list__item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 0 6px 0 0 !important;
    border-radius: 8px !important;
    transition: background-color 0.18s ease !important;
}

#left-sidebar .widget_layered_nav ul.woocommerce-widget-layered-nav-list li.woocommerce-widget-layered-nav-list__item:hover,
#left-sidebar .widget_layered_nav ul.woocommerce-widget-layered-nav-list li.woocommerce-widget-layered-nav-list__item:active,
#left-sidebar .widget_layered_nav ul.woocommerce-widget-layered-nav-list li.woocommerce-widget-layered-nav-list__item.chosen {
    background: #eef6fc !important;
}

/* Hide legacy theme tree-line pseudo elements inside category lists */
#left-sidebar .ts-product-categories-widget ul.product-categories li::before,
#left-sidebar .ts-product-categories-widget ul.product-categories li::after,
#left-sidebar .ts-product-categories-widget ul.children::before,
#left-sidebar .ts-product-categories-widget ul.children::after,
#left-sidebar .widget_product_categories ul.product-categories li::before,
#left-sidebar .widget_product_categories ul.product-categories li::after,
#left-sidebar .widget_product_categories ul.children::before,
#left-sidebar .widget_product_categories ul.children::after {
    content: none !important;
    display: none !important;
}

/* Top-level category links aligned cleanly with .widget-title */
#left-sidebar .ts-product-categories-widget ul.product-categories > li.cat-item > a,
#left-sidebar .widget_product_categories ul.product-categories > li.cat-item > a {
    order: 1 !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 7px 6px 7px 12px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #53627b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    text-decoration: none !important;
    transition: background-color 0.18s ease, color 0.18s ease !important;
}

/* Attribute filter links (count is sibling span in layered nav) */
#left-sidebar .widget_layered_nav ul.woocommerce-widget-layered-nav-list > li > a {
    order: 1 !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding: 7px 6px 7px 12px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #53627b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    text-decoration: none !important;
    transition: color 0.18s ease !important;
}

/* Non-parent top-level categories reserve 32px right gutter (26px button + 6px gap) for column-aligned counts */
#left-sidebar .ts-product-categories-widget ul.product-categories > li.cat-item:not(.cat-parent) > a,
#left-sidebar .widget_product_categories ul.product-categories > li.cat-item:not(.cat-parent) > a {
    margin-right: 32px !important;
}

/* Hover, pressed & active/current states using MACFaaast logo blues (#00ade6 / #eef6fc) */
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-item > a:hover,
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-item > a:active,
#left-sidebar .widget_product_categories ul.product-categories li.cat-item > a:hover,
#left-sidebar .widget_product_categories ul.product-categories li.cat-item > a:active {
    background: #eef6fc !important;
    color: #00ade6 !important;
}

#left-sidebar .widget_layered_nav ul.woocommerce-widget-layered-nav-list li > a:hover,
#left-sidebar .widget_layered_nav ul.woocommerce-widget-layered-nav-list li > a:active,
#left-sidebar .widget_layered_nav ul.woocommerce-widget-layered-nav-list li.chosen > a {
    background: transparent !important;
    color: #00ade6 !important;
}

#left-sidebar .widget_layered_nav ul.woocommerce-widget-layered-nav-list li.chosen > a {
    font-weight: 700 !important;
}

#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent.active > a,
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent.open > a,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent.active > a,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent.open > a {
    background: #f4fafe !important;
    color: #00ade6 !important;
}

#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-item.current > a,
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-item.current-cat > a,
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-item.current-cat-parent > a,
#left-sidebar .widget_product_categories ul.product-categories li.cat-item.current > a,
#left-sidebar .widget_product_categories ul.product-categories li.cat-item.current-cat > a,
#left-sidebar .widget_product_categories ul.product-categories li.cat-item.current-cat-parent > a {
    background: #eef6fc !important;
    color: #00ade6 !important;
    font-weight: 700 !important;
}

/* Right-aligned uniform toggle arrow button */
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent > span.icon-toggle,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent > span.icon-toggle {
    order: 2 !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    flex: 0 0 26px !important;
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 7px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #53627b !important;
    font-size: 0 !important;
    line-height: 0 !important;
    cursor: pointer !important;
    user-select: none !important;
    outline: none !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
}

#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent > span.icon-toggle::before,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent > span.icon-toggle::before {
    content: none !important;
    display: none !important;
}

#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent > span.icon-toggle::after,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent > span.icon-toggle::after {
    content: '' !important;
    display: block !important;
    position: static !important;
    width: 13px !important;
    height: 13px !important;
    background-color: currentColor !important;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
    transform: rotate(0deg) !important;
    transition: transform 0.2s ease !important;
}

#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent > span.icon-toggle:hover,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent > span.icon-toggle:hover {
    background: #eef6fc !important;
    border-color: rgba(0, 173, 230, 0.45) !important;
    color: #00ade6 !important;
}

#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent > span.icon-toggle:active,
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent.active > span.icon-toggle,
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent.open > span.icon-toggle,
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent > span.icon-toggle.active,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent > span.icon-toggle:active,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent.active > span.icon-toggle,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent.open > span.icon-toggle,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent > span.icon-toggle.active {
    background: #00ade6 !important;
    border-color: #00ade6 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 173, 230, 0.25) !important;
}

#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent.active > span.icon-toggle::after,
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent.open > span.icon-toggle::after,
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent > span.icon-toggle.active::after,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent.active > span.icon-toggle::after,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent.open > span.icon-toggle::after,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent > span.icon-toggle.active::after {
    transform: rotate(180deg) !important;
}

/* Uniform count pill badges across categories & attribute filters */
#left-sidebar .ts-product-categories-widget ul.product-categories span.count,
#left-sidebar .widget_product_categories ul.product-categories span.count,
#left-sidebar .widget_layered_nav ul.woocommerce-widget-layered-nav-list span.count {
    order: 2 !important;
    position: static !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 30px !important;
    height: 21px !important;
    padding: 0 6px !important;
    margin: 0 0 0 auto !important;
    flex-shrink: 0 !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    color: #53627b !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    font-variant-numeric: tabular-nums !important;
    transition: background-color 0.18s ease, color 0.18s ease !important;
}

#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-item > a:hover span.count,
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent.active > a span.count,
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent.open > a span.count,
#left-sidebar .widget_product_categories ul.product-categories li.cat-item > a:hover span.count,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent.active > a span.count,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent.open > a span.count,
#left-sidebar .widget_layered_nav ul.woocommerce-widget-layered-nav-list li:hover > span.count {
    background: #ffffff !important;
    color: #00ade6 !important;
}

#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-item.current > a span.count,
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-item.current-cat > a span.count,
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-item.current-cat-parent > a span.count,
#left-sidebar .widget_product_categories ul.product-categories li.cat-item.current > a span.count,
#left-sidebar .widget_product_categories ul.product-categories li.cat-item.current-cat > a span.count,
#left-sidebar .widget_product_categories ul.product-categories li.cat-item.current-cat-parent > a span.count,
#left-sidebar .widget_layered_nav ul.woocommerce-widget-layered-nav-list li.chosen > span.count {
    background: #00ade6 !important;
    color: #ffffff !important;
}

/* Clean vertical accent rail for expanded subcategories without broken horizontal dashes */
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent > ul.children,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent > ul.children {
    order: 3 !important;
    flex: 0 0 calc(100% - 12px) !important;
    max-width: calc(100% - 12px) !important;
    width: calc(100% - 12px) !important;
    box-sizing: border-box !important;
    margin: 4px 0 8px 12px !important;
    padding: 2px 0 2px 10px !important;
    border-left: 2px solid #e2e8f0 !important;
    list-style: none !important;
}

#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent.active > ul.children,
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent.current > ul.children,
#left-sidebar .ts-product-categories-widget ul.product-categories li.cat-parent.current-cat-parent > ul.children,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent.active > ul.children,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent.current > ul.children,
#left-sidebar .widget_product_categories ul.product-categories li.cat-parent.current-cat-parent > ul.children {
    border-left-color: rgba(0, 173, 230, 0.35) !important;
}

#left-sidebar .ts-product-categories-widget ul.children li.cat-item,
#left-sidebar .widget_product_categories ul.children li.cat-item {
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
}

#left-sidebar .ts-product-categories-widget ul.children li.cat-item > a,
#left-sidebar .widget_product_categories ul.children li.cat-item > a {
    order: 1 !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 7px 6px 7px 10px !important;
    margin: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: #53627b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    text-decoration: none !important;
    transition: background-color 0.18s ease, color 0.18s ease !important;
}

#left-sidebar .ts-product-categories-widget ul.children li.cat-item:not(.cat-parent) > a,
#left-sidebar .widget_product_categories ul.children li.cat-item:not(.cat-parent) > a {
    margin-right: 32px !important;
}

#left-sidebar .ts-product-categories-widget ul.children li.cat-item > ul.children,
#left-sidebar .widget_product_categories ul.children li.cat-item > ul.children {
    flex: 0 0 calc(100% - 10px) !important;
    max-width: calc(100% - 10px) !important;
    width: calc(100% - 10px) !important;
    margin: 3px 0 6px 10px !important;
    padding: 2px 0 2px 9px !important;
}

#left-sidebar .ts-product-categories-widget ul.children li.cat-item > a:hover,
#left-sidebar .ts-product-categories-widget ul.children li.cat-item > a:active,
#left-sidebar .ts-product-categories-widget ul.children li.cat-item.current > a,
#left-sidebar .ts-product-categories-widget ul.children li.cat-item.current-cat > a,
#left-sidebar .widget_product_categories ul.children li.cat-item > a:hover,
#left-sidebar .widget_product_categories ul.children li.cat-item > a:active,
#left-sidebar .widget_product_categories ul.children li.cat-item.current > a,
#left-sidebar .widget_product_categories ul.children li.cat-item.current-cat > a {
    background: #eef6fc !important;
    color: #00ade6 !important;
}

#left-sidebar .ts-product-categories-widget ul.children li.cat-item.current > a,
#left-sidebar .ts-product-categories-widget ul.children li.cat-item.current-cat > a,
#left-sidebar .widget_product_categories ul.children li.cat-item.current > a,
#left-sidebar .widget_product_categories ul.children li.cat-item.current-cat > a {
    font-weight: 700 !important;
}

/* ==========================================================================
   MF HORIZONTAL LIST VIEW (.list): PULSANTI THUMBNAIL (WISHLIST, COMPARA)
   Ripristina in vista orizzontale lo stesso stile e hover della vista a griglia (tab),
   annullando l'ereditarieta' bianco-su-bianco di .thumbnail-wrapper a
   ========================================================================== */

.woocommerce.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a,
.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a,
.woocommerce.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a,
.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
    color: #53627b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.woocommerce.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:hover,
.woocommerce.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:focus-visible,
.woocommerce.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:active,
.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:hover,
.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:focus-visible,
.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:active,
.woocommerce.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:hover,
.woocommerce.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:focus-visible,
.woocommerce.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:active,
.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:hover,
.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:focus-visible,
.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:active {
    background: #00ade6 !important;
    background-color: #00ade6 !important;
    border-color: #00ade6 !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.08) !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.35) !important;
    outline: none !important;
}

.woocommerce.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:hover:not(.loading)::after,
.woocommerce.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:focus-visible:not(.loading)::after,
.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:hover:not(.loading)::after,
.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:focus-visible:not(.loading)::after,
.woocommerce.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:hover:not(.loading)::after,
.woocommerce.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:focus-visible:not(.loading)::after,
.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:hover:not(.loading)::after,
.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a:focus-visible:not(.loading)::after {
    color: #ffffff !important;
    opacity: 1 !important;
}

.woocommerce.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a.added,
.woocommerce.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a.added:hover,
.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a.added,
.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a.added:hover,
.woocommerce.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a.added,
.woocommerce.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a.added:hover,
.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a.added,
.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a.added:hover {
    background: #fee2e2 !important;
    background-color: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #ef4444 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25) !important;
}

.woocommerce.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a.added:not(.loading)::after,
.apple-card-main-archive.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a.added:not(.loading)::after,
.woocommerce.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a.added:not(.loading)::after,
.main-products.list .products .product .thumbnail-wrapper .product-group-button > div.button-in a.added:not(.loading)::after {
    color: #ef4444 !important;
}

/* Disattiva/nasconde qualsiasi residuo di Vista Rapida (Quick View) */
.product-group-button > div.button-in.quickshop,
.button-in.quickshop,
a.quickshop,
#ts-quickshop-modal {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Badge "Nuovo" nei loop catalogo + row vuote spec chip senza pill finte */
.mf-bs-badge-grade.grade-nuovo {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #047857 !important;
}

.mf-cat-chips--empty {
    display: block !important;
    min-height: 22px !important;
    height: 22px !important;
    visibility: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Audit Fix 7c: rimuovi la banda dritta 5px sopra agli angoli arrotondati del popup newsletter #7876 */
#popmake-7876.pum-container::before {
    display: none !important;
    content: none !important;
    height: 0 !important;
}

/* Audit Fix 8: elimina #000000 ereditato sulle Trust Cards (Home / Shop) */
.mf-trust-bar .trust-card,
.mf-trust-bar .trust-card *,
.macfaaast-trust-grid .trust-card,
.macfaaast-trust-grid .trust-card *,
.trust-card,
.trust-card .trust-title,
.trust-card h3,
.trust-card h4 {
    color: #0f172a !important;
}

.trust-card p,
.trust-card .trust-desc,
.trust-card .trust-sub,
.trust-card span {
    color: #475569 !important;
}

/* Mobile Drawer: evidenzia voce Panoramica Hub in Garanzia & FAQ */
#group-icon-header .mf-sublinks-list li.mf-sublink-hub a {
    background: #f0f9ff !important;
    color: #0369a1 !important;
    font-weight: 700 !important;
    border: 1px solid #bae6fd !important;
    border-radius: 10px !important;
    margin-bottom: 4px !important;
}

#group-icon-header .mf-sublinks-list li.mf-sublink-hub a svg {
    color: #00ade6 !important;
}

/* Audit Fix 7a: wrapping pulito delle breadcrumb su mobile senza tagli a meta' lettera */
@media (max-width: 767px) {
    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container {
        display: inline-flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        row-gap: 4px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: initial !important;
        max-width: 100% !important;
        padding: 6px 12px !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container > span.current {
        white-space: normal !important;
        word-break: break-word !important;
        max-width: 100% !important;
    }
}
