.site-header { z-index: 1040; box-shadow: 0 1px 0 rgba(25, 45, 28, .06); }
.site-topbar { background: var(--trave-green-950); color: rgba(255,255,255,.86); font-size: .78rem; }
.site-topbar .container-xxl { min-height: 34px; }
.site-topbar a { color: inherit; text-decoration: none; }
.site-topbar a:hover { color: #fff; }
.site-main-header { border-bottom: 1px solid var(--trave-border); }
.site-logo-wrap { display: inline-flex; align-items: center; text-decoration: none; }
.site-logo { display: block; width: auto; max-width: 260px; max-height: 62px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: .35rem; }

/*
.header-action, .header-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 44px;
    padding: .55rem .65rem;
    color: var(--trave-text);
    background: transparent;
    border: 0;
    border-radius: 12px;
    text-decoration: none;
    font-size: .83rem;
    font-weight: 700;
}*/

.header-action,
.header-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 44px;
    padding: .5rem;
    color: var(--trave-text);
    background: transparent;
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    font-size: .83rem;
    font-weight: 700;
}

/* Pulsante menu */
.header-menu-btn {
    width: 46px;
    height: 46px;
    padding: 8px;
    transition:
        background-color .2s ease,
        transform .2s ease;
}

.header-menu-svg {
    display: block;
    width: 29px;
    height: 29px;
    object-fit: contain;
    transition: transform .2s ease;
}

.header-menu-btn:hover {
    background: rgba(0, 0, 0, .055);
}

.header-menu-btn:hover .header-menu-svg {
    transform: scale(1.08);
}

.header-menu-btn:active {
    transform: scale(.96);
}

.header-action i, .header-icon-btn i { font-size: 2rem; }
.header-action:hover, .header-icon-btn:hover { color: var(--trave-green-700); background: var(--trave-green-100); }
.cart-badge { position: absolute; top: 1px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: var(--trave-red); font-size: .67rem; font-weight: 800; }

.header-search-wrap { position: relative; }
.header-search-icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); z-index: 5; color: var(--trave-green-700); pointer-events: none; }
.header-search-wrap .select2-container { width: 100% !important; max-width: 100%; }
.header-search-wrap .select2-container .select2-selection--single {
    height: 50px;
    display: flex;
    align-items: center;
    border: 1px solid #cad4ca;
    border-radius: 999px;
    background: #fbfcfb;
}
.header-search-wrap .select2-container--default .select2-selection--single .select2-selection__rendered { width: 100%; padding-left: 44px; padding-right: 42px; line-height: 48px; color: #49514b; }
.header-search-wrap .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #7a827c; }
.header-search-wrap .select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; right: 10px; }
.header-search-wrap .select2-container--focus .select2-selection--single { border-color: var(--trave-green-700); box-shadow: 0 0 0 .18rem rgba(53, 98, 57, .11); }
.select2-dropdown { overflow: hidden; border: 1px solid #cdd6ce; border-radius: 16px !important; box-shadow: 0 22px 48px rgba(18, 35, 21, .16); }
.select2-search--dropdown { padding: .65rem; background: #fff; }
.select2-search--dropdown .select2-search__field { border: 1px solid #cfd8d0 !important; border-radius: 10px; padding: .55rem .75rem; }
.select2-results__option {     padding: 10px;
    text-align: center;
    color: #ff0000; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--trave-green-100); color: var(--trave-text); }
.search-product-result { display: grid; grid-template-columns: 62px minmax(0,1fr) auto; gap: .75rem; align-items: center; padding: .7rem .75rem; }
.search-product-result img { width: 62px; height: 62px; object-fit: contain; background: #fff; border: 1px solid #edf0ed; border-radius: 10px; }
.search-product-body { min-width: 0; }
.search-product-name { font-size: .9rem; font-weight: 800; line-height: 1.18; white-space: normal; }
.search-product-code, .search-product-meta { margin-top: .18rem; color: var(--trave-muted); font-size: .72rem; line-height: 1.2; white-space: normal; }
.search-product-price { color: var(--trave-green-800); font-size: .86rem; font-weight: 800; white-space: nowrap; }
.search-all-results { padding: .65rem; border-top: 1px solid var(--trave-border); background: #fff; }
.search-all-results a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; border-radius: 10px; color: #fff; background: var(--trave-green-800); text-decoration: none; font-size: .86rem; font-weight: 800; }
.search-all-results a:hover { background: var(--trave-green-950); }
.search-all-results a.is-disabled { opacity: .45; pointer-events: none; }

.site-nav { background: #fff; border-bottom: 1px solid var(--trave-border); }
.site-nav-inner { display: flex; align-items: center; gap: 0; min-height: 46px; }
.site-nav-inner a { display: inline-flex; align-items: center; gap: .32rem; height: 46px; padding: 0 .9rem; 
                   color: #134e3e; text-decoration: none; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; border-bottom: 3px solid transparent; }
.site-nav-inner a:first-child { padding-left: 0; }
.site-nav-inner a:hover { color: var(--trave-green-700); border-bottom-color: var(--trave-green-700); }

.mobile-offcanvas { width: min(90vw, 420px) !important; }
.mobile-nav { display: grid; }
.mobile-nav a { display: flex; align-items: center; gap: .8rem; min-height: 48px; padding: .55rem .2rem; color: var(--trave-text); text-decoration: none; border-bottom: 1px solid var(--trave-border); font-weight: 700; }
.mobile-nav a i { width: 24px; color: var(--trave-green-700); font-size: 1.05rem; }
.mobile-filter-panel { padding-top: .5rem; }
.mobile-contact-box { display: grid; gap: .55rem; padding: 1rem; border-radius: 14px; background: var(--trave-green-100); }
.mobile-contact-box a { color: var(--trave-green-800); text-decoration: none; }

@media (max-width: 991.98px) {
    .site-header { position: sticky; top: 0; }
    .site-logo { max-width: 190px; max-height: 48px; }
    .header-search-mobile .select2-container .select2-selection--single { height: 44px; }
    .header-search-mobile .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px; }
    .header-search-mobile .select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
    .search-product-result { grid-template-columns: 52px minmax(0,1fr); }
    .search-product-result img { width: 52px; height: 52px; }
    .search-product-price { grid-column: 2; }
}

/* ==========================================================
   CARRELLO DESKTOP - dropdown ricco stile Pirotools
   ========================================================== */
.dropdown-no-caret::after { display: none !important; }
.header-cart-dropdown { position: relative; }
.header-cart-trigger { min-width: 54px; }
.header-cart-icon-wrap { position: relative; display: inline-grid; place-items: center; }
.header-cart-trigger-copy { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.05; }
.header-cart-trigger-copy > span { color: var(--trave-muted); font-size: .66rem; font-weight: 700; }
.header-cart-trigger-copy > strong { margin-top: .18rem; color: var(--trave-green-950); font-size: .82rem; font-weight: 800; }
.header-cart-menu {
    width: min(430px, calc(100vw - 24px));
    margin-top: 10px !important;
    overflow: hidden;
    border: 1px solid #e1e7e1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 58px rgba(20, 38, 23, .18);
}
.header-cart-panel { background: #fff; }
.header-cart-head {
    display: flex;
    min-height: 76px;
    padding: 15px 17px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    background: var(--trave-green-950);
}
.header-cart-head > div { min-width: 0; }
.header-cart-eyebrow { display: block; margin-bottom: 2px; color: rgba(255,255,255,.62); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.header-cart-head strong { display: block; font-size: 1rem; font-weight: 800; }
.header-cart-count { flex: 0 0 auto; padding: .35rem .55rem; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: rgba(255,255,255,.88); background: rgba(255,255,255,.08); font-size: .68rem; font-weight: 800; }
.header-cart-list { max-height: 390px; overflow-y: auto; overscroll-behavior: contain; }
.header-cart-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #edf1ed;
    color: var(--trave-text);
    text-decoration: none;
    transition: background-color .16s ease;
}
.header-cart-item:hover { color: var(--trave-text); background: #f7faf7; }
.header-cart-item-media { display: grid; width: 72px; height: 72px; place-items: center; overflow: hidden; border: 1px solid #e8ede8; border-radius: 12px; background: #fff; }
.header-cart-item-media img { width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.header-cart-item-body { display: flex; min-width: 0; flex-direction: column; justify-content: center; }
.header-cart-item-title { display: -webkit-box; overflow: hidden; color: var(--trave-green-950); font-size: .82rem; font-weight: 800; line-height: 1.28; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.header-cart-item-code { margin-top: 3px; color: var(--trave-muted); font-size: .66rem; }
.header-cart-item-bottom { display: flex; margin-top: 7px; align-items: center; justify-content: space-between; gap: 8px; color: #6f786f; font-size: .72rem; }
.header-cart-item-bottom strong { color: var(--trave-green-800); font-size: .78rem; }
.header-cart-empty { display: flex; min-height: 150px; padding: 24px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--trave-muted); font-size: .82rem; }
.header-cart-empty i { color: #9aa59b; font-size: 2rem; }
.header-cart-summary { display: flex; padding: 13px 16px; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e8ede8; background: #f8faf8; }
.header-cart-summary span { color: var(--trave-muted); font-size: .75rem; font-weight: 700; }
.header-cart-summary strong { color: var(--trave-green-950); font-size: 1rem; font-weight: 900; }
.header-cart-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e8ede8; }
.header-cart-actions a { display: flex; min-height: 50px; padding: 10px; align-items: center; justify-content: center; gap: 7px; text-decoration: none; font-size: .76rem; font-weight: 800; }
.header-cart-secondary { color: var(--trave-green-800); background: #fff; }
.header-cart-secondary:hover { color: var(--trave-green-950); background: #f5f8f5; }
.header-cart-primary { color: #fff; background: var(--trave-green-800); }
.header-cart-primary:hover { color: #fff; background: var(--trave-green-950); }
.header-cart-primary.is-disabled { pointer-events: none; opacity: .48; }

/* ===== Account cliente ===== */
.customer-account-dropdown { position: relative; }
.customer-account-menu { width: min(330px, calc(100vw - 24px)); overflow: hidden; border: 1px solid #e1e7e1; border-radius: 16px; box-shadow: 0 20px 48px rgba(20,38,23,.16); }
.customer-account-head { display: flex; align-items: center; gap: 12px; padding: 15px 16px; color: #fff; background: var(--trave-green-950); }
.customer-account-icon { display: inline-grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(255,255,255,.10); font-size: 1.1rem; }
.customer-account-head small { display: block; color: rgba(255,255,255,.65); font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.customer-account-head strong { display: block; margin-top: 2px; font-size: .9rem; }
.customer-account-body { padding: 14px; background: #fff; }
.mobile-account-status, .mobile-logout-form button { display: flex; width: 100%; min-height: 48px; padding: .55rem .2rem; align-items: center; gap: .8rem; border: 0; border-bottom: 1px solid var(--trave-border); color: var(--trave-text); background: transparent; font-weight: 700; text-align: left; }
.mobile-account-status i, .mobile-logout-form button i { width: 24px; color: var(--trave-green-700); font-size: 1.05rem; }
.mobile-logout-form { margin: 0; }
.mobile-logout-form button { color: #a72c2c; }

/* ==========================================================
   HEADER - maggiore profondità + logo centrato su mobile
   ========================================================== */
.site-header {
    background: #fff;
    box-shadow: 0 6px 22px rgba(20, 38, 23, .09);
}

.site-main-header {
    background: #fff;
    box-shadow: 0 3px 12px rgba(20, 38, 23, .045);
}

.site-nav {
   box-shadow: 0 4px 12px rgba(20, 38, 23, .035);
    background-color: #fff;
    
}

@media (max-width: 991.98px) {
    .site-header {
        position: sticky;
        top: 0;
        background: #fff;
        box-shadow: 0 9px 28px rgba(20, 38, 23, .14);
    }

    .site-main-header {
        position: relative;
        border-bottom: 1px solid #dfe6df;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
        box-shadow: 0 5px 18px rgba(20, 38, 23, .075);
    }

    .site-main-header > .container-xxl {
        position: relative;
        min-height: 70px;
    }

    .site-logo-wrap {
        position: absolute;
        z-index: 3;
        
        left: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        max-width: 48vw;
        transform: translate(-50%, -50%);
    }

    .site-logo {
        width: auto;
        max-width: min(175px, 46vw);
        max-height: 52px;
        object-fit: contain;
        filter: drop-shadow(0 3px 7px rgba(20, 38, 23, .10));
    }

    .header-actions {
        position: relative;
        z-index: 4;
        margin-left: auto;
        gap: .4rem;
    }

    .header-icon-btn,
    .header-action {
        
    }

    .header-icon-btn {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border-radius: 13px;
    }

    .header-action:hover,
    .header-icon-btn:hover,
    .header-action:focus,
    .header-icon-btn:focus {
        border-color: #cbd8cb;
        background: var(--trave-green-100);
        box-shadow: 0 5px 15px rgba(20, 38, 23, .09);
    }

    .header-search-mobile {
        padding-top: .65rem;
        padding-bottom: .75rem;
        border-top: 1px solid #eef2ee;
        background: #fff;
    }

    .header-search-mobile .select2-container .select2-selection--single {
        border-color: #d0dad1;
        background: #fff;
        box-shadow: 0 4px 13px rgba(20, 38, 23, .055);
    }

    .mobile-offcanvas {
        border-left: 1px solid #dde5dd;
        box-shadow: -16px 0 42px rgba(20, 38, 23, .18);
    }

    .mobile-offcanvas .offcanvas-header {
        border-bottom: 1px solid #e1e7e1;
        background: #fff;
        box-shadow: 0 5px 16px rgba(20, 38, 23, .05);
    }
}

@media (max-width: 575.98px) {
    .site-main-header > .container-xxl {
        min-height: 66px;
    }

    .site-logo {
        max-width: min(155px, 44vw);
        max-height: 48px;
    }

    .header-icon-btn {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
    }
}
