body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer {
    margin-top: auto;
}

.bg-catalogo {
    background-image: url(../images/slider/d.jpg);
    background-clip: initial;
    background-color: #f6f6f6;
    background-origin: initial;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 10;
    background-size: cover !important;
}

/* .slider-parallax-catalogo {
    height: 20vh;
} */

.slider-parallax-catalogo .slider-content-middle {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 40px 0;
}

/* ── Catalogo Search Banner ─────────────────────────────── */

/* Fascia full-width che prolunga il colore dell'hero */
.ricerca-wrapper {
    padding: 0;
    border-bottom: 3px solid #ffbd00;
    border-top: 3px solid #ffbd00;
}

.catalogo-ricerca-banner {
    max-width: 1170px;
    margin: 0 auto;
    position: relative;
}


.ricerca-inner {
    padding: 24px 0px 24px;
}

.ricerca-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px;
    letter-spacing: 0.02em;
}

/* OEM row */
.ricerca-oem-row {
    margin-bottom: 16px;
}

.ricerca-oem-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    /* min-height pareggia l'altezza renderizzata di .ricerca-field (input + ts-wrapper)
       che è ~50px con padding 12px 14px e font 0.95rem. */
    min-height: 50px;
    /* niente overflow:hidden: ritaglierebbe il dropdown TomSelect.
       Gli angoli arrotondati vengono replicati sui figli (icona/bottone). */
    transition: border-color 0.2s;
}

.ricerca-oem-input-wrap:focus-within {
    border-color: #ffbd00;
}

.ricerca-oem-icon {
    color: rgba(255, 255, 255, 0.4);
    padding: 0 14px;
    font-size: 1rem;
}

.ricerca-oem-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.95rem;
    padding: 12px 0;
}

.ricerca-oem-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.ricerca-oem-btn {
    background: #ffbd00;
    color: #1a1a2e;
    border: none;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.ricerca-oem-btn:hover {
    background: #ffbd00;
}

/* Quick search row (Targa + OEM) */
.ricerca-quick-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ricerca-quick-input {
    flex: 1;
    min-width: 180px;
}

.ricerca-quick-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.78rem;
    white-space: nowrap;
    flex: 0 0 auto;
    text-transform: lowercase;
}

/* Divider */
.ricerca-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: rgba(255, 255, 255);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ricerca-divider::before,
.ricerca-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.50);
}

/* Vehicle type tabs */
.ricerca-vehicle-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.ricerca-tab {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgb(0, 0, 0);
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ricerca-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.ricerca-tab.active {
    background: #ffbd00;
    border-color: #ffbd00;
    color: #1a1a2e;
}

/* Fields row */
.ricerca-fields-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.ricerca-field-wrap {
    flex: 1;
    min-width: 140px;
}

.ricerca-field-wrap--cta {
    flex: 0 0 auto;
}

.ricerca-field-label {
    display: block;
    color: rgba(255, 255, 255);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.ricerca-field-label i {
    margin-right: 4px;
}

.ricerca-field {
    width: 100%;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    color: #1a1a2e;
    padding: 12px 14px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    /* altezza fissa per allineare input nativi (Anno) e wrapper TomSelect
       (Marca/Modello/Versione). Senza questa, TomSelect cambia altezza in base
       allo stato (item selezionato / focus / blur). */
    min-height: 50px;
    height: 50px;
}

.ricerca-field::placeholder {
    color: #6c757d;
}

.ricerca-field:focus {
    border-color: #ffbd00;
}

.ricerca-cta-btn {
    background: #ffbd00;
    color: #1a1a2e;
    border: none;
    border-radius: 6px;
    padding: 11px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}

.ricerca-cta-btn:hover {
    background: #ffbd00;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 991px) {
    .ricerca-inner {
        padding: 20px 18px 18px;
    }

    .ricerca-fields-row {
        flex-direction: column;
    }

    .ricerca-field-wrap {
        min-width: 100%;
    }

    .ricerca-field-wrap--cta {
        width: 100%;
    }

    .ricerca-cta-btn {
        width: 100%;
    }

    .catalogo-ricerca-banner {
        margin: 0;
    }
}

@media (max-width: 575px) {
    .ricerca-title {
        font-size: 1rem;
    }

    .ricerca-vehicle-tabs {
        flex-wrap: wrap;
    }
}

/* ── Sidebar toggle ─────────────────────────────────────── */
.catalog-sidebar {
    position: relative;
    flex: 0 0 auto;
    width: 16.666%;
    overflow: hidden;
}

.catalog-sidebar__inner {
    padding-right: 1.5rem;
    width: 100%;
}

.catalog-layout.sidebar-hidden .catalog-sidebar {
    width: 0;
    opacity: 0;
    pointer-events: none;
}

.catalog-layout.sidebar-hidden .catalog-main {
    flex: 0 0 100%;
    max-width: 100%;
}

.sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: #888;
    flex-shrink: 0;
    transition: color 0.15s;
    margin-right: 10px;
}

.sidebar-toggle-btn:hover {
    color: #c8102e;
}

.sidebar-toggle-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #888;
    font-size: 0.65rem;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.sidebar-toggle-btn:hover .sidebar-toggle-btn__icon {
    background: #c8102e;
    border-color: #c8102e;
    color: #fff;
    transform: translateX(-3px);
}

.sidebar-toggle-btn:hover .sidebar-toggle-btn__icon .fa {
    color: #fff;
}

.catalog-layout.sidebar-hidden .sidebar-toggle-btn:hover .sidebar-toggle-btn__icon {
    transform: translateX(3px);
}

.catalog-layout.sidebar-hidden .sidebar-toggle-btn__icon .fa {
    transform: rotate(180deg);
}

/* ── Results bar ────────────────────────────────────────── */
.part-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 12px;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 8px;
}

.part-results-bar__count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
}

.part-results-bar__count i {
    color: #c8102e;
    margin-right: 5px;
}

.part-results-bar__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #666;
}

.part-results-bar__pagesize {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

.part-results-bar__pagesize-label {
    font-weight: 500;
    color: #888;
}

.part-results-bar__select {
    width: auto;
    min-width: 60px;
    height: 30px;
    padding: 0 26px 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px 10px;
    transition: border-color 0.15s, color 0.15s;
}

.part-results-bar__select:hover,
.part-results-bar__select:focus {
    border-color: #c8102e;
    color: #c8102e;
    outline: none;
}

.listing-sidebar {
    overflow-y: hidden;
    outline: none;
}

/* Empty state */
.part-empty {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.part-empty i {
    display: block;
    margin-bottom: 16px;
}

.part-empty p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 6px;
}

.part-empty__sub {
    font-size: 0.85rem;
    color: #999;
}

/* ── Pagination ─────────────────────────────────────────── */
.part-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px 0 10px;
    flex-wrap: wrap;
}

.part-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #444;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.part-pagination__btn:hover:not(.disabled):not(.active) {
    background: #f5f5f5;
    border-color: #bbb;
    color: #222;
}

.part-pagination__btn.active {
    background: #c8102e;
    border-color: #c8102e;
    color: #fff;
    cursor: default;
}

.part-pagination__btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   Variant Backup – Bootstrap Grid  (.pr-bk)
   ══════════════════════════════════════════════════════════ */
.pr-bk {
    border: 1px solid #e5e5e5;
    border-left: 3px solid #c8102e;
    background: #fff;
    margin-bottom: 8px;
    transition: box-shadow 0.2s;
}

.pr-bk:hover {
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.10);
}

.pr-bk__img-col {
    background: #f4f4f4;
    border-right: 1px solid #eee;
}

.pr-bk__img-wrap {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 70px;
}

.pr-bk__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.pr-bk__img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(200, 16, 46, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.pr-bk__img-wrap:hover .pr-bk__img-overlay {
    opacity: 1;
}

.pr-bk__overlay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.pr-bk__overlay-icon:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.08);
}

/* ── Image lightbox ─────────────────────────────────────── */
.img-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 40px;
    animation: img-lightbox-fade 0.18s ease;
}

.img-lightbox.is-open { display: flex; }

@keyframes img-lightbox-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.img-lightbox__img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 12px 50px rgba(0,0,0,0.6);
    background: #fff;
}

.img-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.img-lightbox__close:hover {
    background: rgba(255,255,255,0.22);
    transform: scale(1.05);
}

@media (max-width: 575px) {
    .img-lightbox { padding: 20px; }
    .img-lightbox__close { top: 12px; right: 12px; width: 38px; height: 38px; }
}

.pr-bk__info {
    display: flex;
    align-items: stretch;
    border-right: 1px solid #eee;
    padding: 0;
}

.pr-bk__info-main {
    flex: 1;
    padding: 6px 12px;
    min-width: 0;
    cursor: pointer;
}

.pr-bk__info-main:hover .pr-bk__title a {
    color: #c8102e;
}

.pr-bk__info-specs {
    width: 600px;
    flex-shrink: 0;
    padding: 6px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.pr-bk__header {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.pr-bk__category {
    background: #1a1a2e;
    color: #ffbd00;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.pr-bk__brand {
    background: #f0f0f0;
    color: #555;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pr-bk__sostituisce {
    background: #ffbd00;
    color: #555;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Badge "Veicolo selezionato" nella sidebar */
.filter-badge-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #ffbd00;
    color: #fff;
    font-weight: 600;
    font-size: 0.80rem;
    padding: 8px 12px;
    border-radius: 2vh;
    line-height: 1.2;
    margin-bottom: 20px;
}

.filter-badge-text {
    flex: 1 1 auto;
    word-break: break-word;
}

.filter-badge-clear {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 0 2px;
    font-size: 1rem;
    line-height: 1;
    opacity: .85;
}

.filter-badge-clear:hover {
    opacity: 1;
}

.pr-bk__title {
    margin: 0 0 2px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}

.pr-bk__title a {
    color: #1a1a2e;
    text-decoration: none;
}

.pr-bk__title a:hover {
    color: #c8102e;
}

.pr-bk__desc {
    font-size: 0.75rem;
    color: #777;
    margin: 0 0 5px;
    line-height: 1.3;
}

.pr-bk__codes {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.pr-bk__code-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.pr-bk__code-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a1a2e;
    font-family: 'Courier New', monospace;
    background: #f4f4f4;
    padding: 1px 7px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}

.pr-bk__code-sep {
    color: #ccc;
}

.pr-bk__specs {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.74rem;
}

.pr-bk__spec-extra {
    display: none;
}

.pr-bk.is-expanded .pr-bk__spec-extra {
    display: table-row;
}

.pr-bk__specs-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    padding: 2px 8px;
    background: none;
    border: none;
    color: #c8102e;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s;
    white-space: nowrap;
    align-self: flex-start;
}

.pr-bk__specs-toggle:hover {
    color: #a00d25;
}

.pr-bk__specs-toggle i {
    font-size: 0.62rem;
    transition: transform 0.2s;
}

.pr-bk.is-expanded .pr-bk__specs-toggle i {
    transform: rotate(180deg);
}

.pr-bk__spec-key {
    color: #000000;
    width: 1%;
    padding: 2px 10px 2px 0;
    font-weight: 800;
    white-space: nowrap;
    vertical-align: top;
}

.pr-bk__spec-val {
    color: #333;
    font-weight: 500;
    padding: 2px 0;
}

.pr-bk__cta {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    background: #fafafa;
}

.pr-bk__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.pr-bk__stock-inline {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
}

.pr-bk__stock-label {
    line-height: 1;
}

.pr-bk__qty {
    font-size: 0.68rem;
    color: #aaa;
    font-weight: 400;
}

.pr-bk__stock--disponibile .pr-bk__dot {
    background: #4caf50;
}

.pr-bk__stock--disponibile .pr-bk__stock-label {
    color: #3a8f3f;
}

.pr-bk__stock--limitato .pr-bk__dot {
    background: #ff9800;
}

.pr-bk__stock--limitato .pr-bk__stock-label {
    color: #c97d00;
}

.pr-bk__stock--esaurito .pr-bk__dot {
    background: #ccc;
}

.pr-bk__stock--esaurito .pr-bk__stock-label {
    color: #bbb;
}

.pr-bk__price-block {
    text-align: right;
    line-height: 1.2;
}

.pr-bk__price-old {
    font-size: 0.65rem;
    color: #bbb;
    text-decoration: line-through;
    display: block;
}

.pr-bk__price-net {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a2e;
}

.pr-bk__actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pr-bk__btn-cart,
.pr-bk__btn-notify {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.pr-bk__btn-cart {
    background: #c8102e;
    color: #fff;
}

.pr-bk__btn-cart:hover {
    background: #a50d26;
    color: #fff;
}

.pr-bk__btn-notify {
    background: #f0f0f0;
    color: #888;
    border: 1px solid #ddd;
}

.pr-bk__btn-notify:hover {
    background: #e0e0e0;
    color: #555;
}

.pr-bk__btn-info {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    color: #aaa;
    background: #f5f5f5;
    font-size: 0.82rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s;
}

.pr-bk__btn-info:hover {
    color: #555;
    border-color: #bbb;
}

@media (max-width: 991px) {
    .pr-bk__info-specs {
        width: 300px;
    }
}

@media (max-width: 767px) {
    .pr-bk__info {
        flex-direction: column;
    }

    .pr-bk__info-main {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .pr-bk__info-specs {
        width: 100%;
        padding: 6px 12px;
    }

    .pr-bk__cta {
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    .pr-bk__img-col {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════
   Articolo Detail Page  (.ad-*)
   ══════════════════════════════════════════════════════════ */

/* ── Back button ── */
.ad-panel-back {
    margin-bottom: 10px;
}

.ad-back-btn {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: #888;
    transition: color 0.15s;
}

.ad-back-btn:hover {
    color: #c8102e;
}

.ad-back-btn__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #888;
    font-size: 0.65rem;
    margin-right: 8px;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.ad-back-btn:hover .ad-back-btn__arrow {
    background: #c8102e;
    border-color: #c8102e;
    color: #fff;
    transform: translateX(-3px);
}

.ad-back-btn__label {
    letter-spacing: 0.01em;
}

.ad-section {
    background: #f4f4f4;
    min-height: 60vh;
}

/* ── Header card ── */
.ad-header-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #c8102e;
    border-radius: 4px;
    margin-bottom: 0;
    overflow: hidden;
}

.ad-header-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px 0;
    flex-wrap: wrap;
}

.ad-header-card__category {
    background: #1a1a2e;
    color: #ffbd00;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ad-header-card__brand {
    color: #c8102e;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ad-header-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f4f4f4;
    color: #666;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 3px;
    border: 1px solid #e8e8e8;
}

.ad-header-card__tag--remanufact {
    background: #fff8e6;
    color: #c97d00;
    border-color: #ffd980;
}

.ad-header-card__status {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3a8f3f;
    font-size: 0.75rem;
    font-weight: 700;
}

.ad-header-card__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.ad-header-card__title {
    margin: 6px 18px 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.25;
}

.ad-header-card__body {
    border-top: 1px solid #f0f0f0;
}

/* Image column */
.ad-img-col {
    background: #f8f8f8;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.ad-img-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 8px;
}

.ad-img {
    max-height: 90px;
    max-width: 100%;
    object-fit: contain;
}

.ad-img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.08);
    border: none;
    color: #555;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    z-index: 1;
}

.ad-img-nav:hover {
    background: rgba(0, 0, 0, 0.18);
}

.ad-img-nav--prev {
    left: 6px;
}

.ad-img-nav--next {
    right: 6px;
}

.ad-img-counter {
    position: absolute;
    bottom: 6px;
    right: 8px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 10px;
    letter-spacing: .03em;
}

.ad-img-actions {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #eee;
    align-items: center;
}

.ad-btn-add {
    flex: 1;
    font-size: 0.78rem;
    padding: 6px 10px;
    text-align: center;
}

.ad-btn-del {
    background: none;
    border: 1px solid #e0c0c0;
    color: #c8102e;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.15s;
    flex-shrink: 0;
}

.ad-btn-del:hover {
    background: #fce4ec;
}

/* Info table column */
.ad-info-col {
    border-right: 1px solid #eee;
}

.ad-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.ad-info-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.ad-info-table tr:last-child {
    border-bottom: none;
}

.ad-info-key {
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    padding: 7px 12px 7px 16px;
    width: 28%;
    white-space: nowrap;
    vertical-align: middle;
}

.ad-info-val {
    color: #333;
    padding: 7px 12px;
    vertical-align: middle;
    font-size: 0.82rem;
}

.ad-info-val--bold {
    font-weight: 700;
    color: #1a1a2e;
}

.ad-info-val--code {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #1a1a2e;
    font-size: 0.88rem;
}

.ad-info-pill {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    background: #f4f4f4;
    color: #1a1a2e;
    padding: 2px 8px;
    margin: 1px 4px 1px 0;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}

.ad-info-pill--oem {
    background: #fef2f2;
    border-color: #fcc;
    color: #c8102e;
}

.ad-info-more {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #c8102e;
    padding: 2px 4px;
    vertical-align: middle;
}

/* CTA column */
.ad-cta-col {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fafafa;
    border-left: 1px solid #eee;
}

.ad-btn-cart,
.ad-btn-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.ad-btn-cart {
    background: #c8102e;
    color: #fff;
}

.ad-btn-cart:hover {
    background: #a50d26;
    color: #fff;
}

.ad-btn-quote {
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
}

.ad-btn-quote:hover {
    border-color: #c8102e;
    color: #c8102e;
}

/* Stato + prezzo column */
.ad-stato-col {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fafafa;
}

.ad-stato-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #999;
}

.ad-stato-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    align-self: flex-start;
}

.ad-stato-badge--attivo {
    background: #e8f5e9;
    color: #2e7d32;
}

.ad-stato-badge--inattivo {
    background: #f5f5f5;
    color: #999;
}

.ad-stato-price-block {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.ad-stato-price-old {
    font-size: 0.75rem;
    color: #bbb;
    text-decoration: line-through;
}

.ad-stato-price-net {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}

.ad-stato-stock {
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
    margin-top: 2px;
}

.ad-stato-stock i {
    font-size: 0.6rem;
}

.ad-stato-stock--ok i {
    color: #2e7d32;
}

.ad-stato-stock--warn i {
    color: #f57f17;
}

.ad-stato-stock--out i {
    color: #b71c1c;
}

.ad-stato-stock span {
    color: #aaa;
    font-weight: 400;
}

.ad-stato-btn-cart {
    font-size: 0.78rem;
    padding: 7px 12px;
    text-align: center;
    margin-top: 4px;
}

/* ── Tabs ── */
.ad-tabs-wrap {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.ad-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #e8e8e8;
    overflow-x: auto;
}

.ad-tab {
    padding: 11px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
    user-select: none;
}

.ad-tab:hover {
    color: #1a1a2e;
}

.ad-tab.active {
    color: #c8102e;
    border-bottom-color: #c8102e;
}

.ad-tab-count {
    display: inline-block;
    min-width: 20px;
    padding: 1px 6px;
    margin-left: 4px;
    background: #f0f0f0;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #777;
    text-align: center;
    line-height: 1.4;
}

.ad-tab.active .ad-tab-count {
    background: #c8102e;
    color: #fff;
}

/* ── Tab panels ── */
.ad-tab-panel {
    display: none;
    padding: 16px;
}

.ad-tab-panel.active {
    display: block;
    animation: ad-tab-fade 0.22s ease-out;
}

@keyframes ad-tab-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.ad-tab-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #bbb;
    font-size: 0.88rem;
}

.ad-tab-placeholder i {
    margin-right: 6px;
}

/* Caratteristiche table */
.ad-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.ad-specs-table thead tr {
    background: #f4f4f4;
    border-bottom: 2px solid #e0e0e0;
}

.ad-specs-table th {
    padding: 8px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    text-align: left;
}

.ad-specs-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s;
}

.ad-specs-table tbody tr:hover {
    background: #fafafa;
}

.ad-specs-table tbody tr:last-child {
    border-bottom: none;
}

.ad-specs-table td {
    padding: 8px 12px;
    color: #444;
    vertical-align: middle;
}

.ad-specs-n {
    width: 48px;
    color: #aaa;
    font-weight: 600;
    font-size: 0.75rem;
}

.ad-specs-criterio {
    font-weight: 600;
    color: #1a1a2e;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
}

.ad-specs-valore {
    color: #777;
}

.ad-specs-empty {
    text-align: center;
    color: #bbb;
    padding: 30px;
    font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .ad-info-col {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .ad-stato-col {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px;
    }

    .ad-stato-price-block {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
}

@media (max-width: 575px) {
    .ad-img-wrap {
        min-height: 90px;
    }

    .ad-tab {
        padding: 10px 12px;
        font-size: 0.78rem;
    }
}

/* ══════════════════════════════════════════════════════════
   Variant V1 – Dark Pro Card  (.pr-v1)
   ══════════════════════════════════════════════════════════ */
.pr-v1 {
    display: flex;
    align-items: stretch;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    color: #ccc;
}

.pr-v1:hover {
    border-color: #c8102e;
    box-shadow: 0 4px 18px rgba(200, 16, 46, 0.18);
}

/* Image col */
.pr-v1__img-col {
    width: 160px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #111;
    position: relative;
}

.pr-v1__img-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.pr-v1__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

.pr-v1:hover .pr-v1__img {
    transform: scale(1.06);
}

.pr-v1__img-veil {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 16, 46, 0.55);
    color: #fff;
    font-size: 1.4rem;
    opacity: 0;
    transition: opacity 0.25s;
}

.pr-v1:hover .pr-v1__img-veil {
    opacity: 1;
}

.pr-v1__category {
    display: block;
    padding: 4px 8px;
    background: #c8102e;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Body */
.pr-v1__body {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 1px solid #2a2a2a;
}

.pr-v1__top {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pr-v1__brand {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #c8102e;
}

.pr-v1__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1.3;
}

.pr-v1__desc {
    margin: 0;
    font-size: 0.74rem;
    color: #888;
    line-height: 1.4;
}

.pr-v1__codes {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pr-v1__oem {
    font-size: 0.72rem;
    color: #aaa;
    font-family: monospace;
}

.pr-v1__cod {
    font-size: 0.72rem;
    color: #777;
    font-family: monospace;
}

.pr-v1__specs {
    font-size: 0.72rem;
    width: 100%;
    border-collapse: collapse;
    margin-top: auto;
}

.pr-v1__specs tr {
    border-top: 1px solid #222;
}

.pr-v1__sk {
    color: #666;
    padding: 2px 8px 2px 0;
    white-space: nowrap;
    width: 1%;
}

.pr-v1__sv {
    color: #bbb;
    padding: 2px 0;
}

/* CTA */
.pr-v1__cta {
    width: 180px;
    flex-shrink: 0;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
}

.pr-v1__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pr-v1__price-old {
    font-size: 0.72rem;
    color: #555;
    text-decoration: line-through;
}

.pr-v1__price-net {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.pr-v1__stock {
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pr-v1__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.pr-v1__stock--disponibile {
    color: #4caf50;
}

.pr-v1__stock--disponibile .pr-v1__dot {
    background: #4caf50;
    box-shadow: 0 0 5px #4caf50;
}

.pr-v1__stock--limitato {
    color: #ff9800;
}

.pr-v1__stock--limitato .pr-v1__dot {
    background: #ff9800;
    box-shadow: 0 0 5px #ff9800;
}

.pr-v1__stock--esaurito {
    color: #555;
}

.pr-v1__stock--esaurito .pr-v1__dot {
    background: #444;
}

.pr-v1__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pr-v1__btn-cart,
.pr-v1__btn-notify {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.pr-v1__btn-cart {
    background: #c8102e;
    color: #fff;
}

.pr-v1__btn-cart:hover {
    background: #a50d26;
    color: #fff;
}

.pr-v1__btn-notify {
    background: #2a2a2a;
    color: #888;
    border: 1px solid #333;
}

.pr-v1__btn-notify:hover {
    border-color: #555;
    color: #bbb;
}

.pr-v1__btn-info {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #222;
    color: #666;
    border: 1px solid #2a2a2a;
    font-size: 0.9rem;
    text-decoration: none;
    align-self: flex-end;
    transition: border-color 0.15s, color 0.15s;
}

.pr-v1__btn-info:hover {
    border-color: #555;
    color: #bbb;
}

@media (max-width: 991px) {
    .pr-v1__img-col {
        width: 120px;
    }

    .pr-v1__cta {
        width: 150px;
    }
}

@media (max-width: 575px) {
    .pr-v1 {
        flex-direction: column;
    }

    .pr-v1__img-col {
        width: 100%;
        height: 140px;
        flex-direction: row;
    }

    .pr-v1__img-wrap {
        flex: 1;
    }

    .pr-v1__cta {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}

/* ══════════════════════════════════════════════════════════
   Variant V2 – Compact Grid (TecDoc style)  (.pr-v2)
   ══════════════════════════════════════════════════════════ */
.pr-v2 {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-left: 3px solid transparent;
    border-radius: 3px;
    margin-bottom: 4px;
    transition: border-left-color 0.15s, box-shadow 0.15s;
    cursor: pointer;
    font-size: 0.78rem;
    color: #333;
}

.pr-v2:hover {
    border-left-color: #c8102e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background: #fafafa;
}

.pr-v2__img-cell {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    overflow: hidden;
    position: relative;
}

.pr-v2__img {
    width: 64px;
    height: 56px;
    object-fit: contain;
    display: block;
    transition: transform 0.25s;
}

.pr-v2:hover .pr-v2__img {
    transform: scale(1.08);
}

.pr-v2__info {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    border-right: 1px solid #eee;
}

.pr-v2__top {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.pr-v2__brand {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #c8102e;
    letter-spacing: .05em;
    white-space: nowrap;
}

.pr-v2__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pr-v2__codes {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pr-v2__badge {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 2px;
    background: #f0f0f0;
    color: #555;
    font-size: 0.65rem;
    font-family: monospace;
    font-weight: 600;
    border: 1px solid #ddd;
}

.pr-v2__desc {
    color: #888;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pr-v2__specs-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pr-v2__spec {
    display: flex;
    gap: 3px;
    align-items: baseline;
}

.pr-v2__sk {
    color: #999;
    font-size: 0.65rem;
}

.pr-v2__sv {
    color: #444;
    font-size: 0.72rem;
    font-weight: 600;
}

.pr-v2__stock-cell {
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-width: 90px;
    border-right: 1px solid #eee;
}

.pr-v2__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: block;
}

.pr-v2__stock-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: center;
}

.pr-v2__qty {
    font-size: 0.65rem;
    color: #999;
}

.pr-v2__stock--disponibile .pr-v2__dot {
    background: #4caf50;
}

.pr-v2__stock--disponibile .pr-v2__stock-label {
    color: #3a8f3f;
}

.pr-v2__stock--limitato .pr-v2__dot {
    background: #ff9800;
}

.pr-v2__stock--limitato .pr-v2__stock-label {
    color: #c97d00;
}

.pr-v2__stock--esaurito .pr-v2__dot {
    background: #ccc;
}

.pr-v2__stock--esaurito .pr-v2__stock-label {
    color: #aaa;
}

.pr-v2__cta-cell {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    min-width: 130px;
}

.pr-v2__price {
    text-align: right;
    line-height: 1.2;
}

.pr-v2__price-old {
    font-size: 0.65rem;
    color: #bbb;
    text-decoration: line-through;
    display: block;
}

.pr-v2__price-net {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
}

.pr-v2__actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.pr-v2__btn-cart,
.pr-v2__btn-notify {
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.pr-v2__btn-cart {
    background: #c8102e;
    color: #fff;
}

.pr-v2__btn-cart:hover {
    background: #a50d26;
    color: #fff;
}

.pr-v2__btn-notify {
    background: #f0f0f0;
    color: #888;
    border: 1px solid #ddd;
}

.pr-v2__btn-notify:hover {
    background: #e0e0e0;
    color: #555;
}

.pr-v2__btn-info {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 3px;
    background: #f5f5f5;
    color: #999;
    border: 1px solid #e0e0e0;
    font-size: 0.8rem;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.pr-v2__btn-info:hover {
    border-color: #bbb;
    color: #555;
}

@media (max-width: 991px) {
    .pr-v2 {
        grid-template-columns: 68px 1fr 80px;
    }

    .pr-v2__stock-cell {
        display: none;
    }
}

@media (max-width: 575px) {
    .pr-v2 {
        grid-template-columns: 56px 1fr;
    }

    .pr-v2__cta-cell {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════
   Variant V3 – Glow Card  (.pr-v3)
   ══════════════════════════════════════════════════════════ */
.pr-v3 {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
    transition: box-shadow 0.3s, transform 0.2s;
    cursor: pointer;
}

.pr-v3::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 10px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #c8102e, #ff6b6b, #c8102e) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.pr-v3:hover::before {
    opacity: 1;
}

.pr-v3:hover {
    box-shadow: 0 8px 32px rgba(200, 16, 46, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.pr-v3__img-col {
    width: 170px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
}

.pr-v3__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pr-v3:hover .pr-v3__img {
    transform: scale(1.07);
}

.pr-v3__img-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(200, 16, 46, 0.9);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    backdrop-filter: blur(4px);
}

.pr-v3__body {
    flex: 1;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid #f0f0f0;
}

.pr-v3__brand {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #c8102e;
    letter-spacing: .08em;
}

.pr-v3__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
}

.pr-v3__desc {
    font-size: 0.76rem;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

.pr-v3__codes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.pr-v3__oem,
.pr-v3__cod {
    font-size: 0.7rem;
    font-family: monospace;
    padding: 2px 7px;
    border-radius: 3px;
    border: 1px solid #e8e8e8;
    color: #555;
    background: #fafafa;
}

.pr-v3__oem {
    border-color: #d0d0d0;
    color: #333;
}

.pr-v3__specs {
    font-size: 0.72rem;
    width: 100%;
    border-collapse: collapse;
    margin-top: auto;
}

.pr-v3__specs tr {
    border-top: 1px solid #f2f2f2;
}

.pr-v3__sk {
    color: #aaa;
    padding: 2px 10px 2px 0;
    white-space: nowrap;
    width: 1%;
}

.pr-v3__sv {
    color: #444;
    font-weight: 600;
    padding: 2px 0;
}

.pr-v3__cta {
    width: 185px;
    flex-shrink: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
}

.pr-v3__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pr-v3__price-old {
    font-size: 0.72rem;
    color: #bbb;
    text-decoration: line-through;
}

.pr-v3__price-net {
    font-size: 1.3rem;
    font-weight: 800;
    color: #111;
    line-height: 1;
}

.pr-v3__stock {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 600;
}

.pr-v3__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pr-v3__stock--disponibile {
    color: #3a8f3f;
}

.pr-v3__stock--disponibile .pr-v3__dot {
    background: #4caf50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

.pr-v3__stock--limitato {
    color: #c97d00;
}

.pr-v3__stock--limitato .pr-v3__dot {
    background: #ff9800;
    box-shadow: 0 0 6px rgba(255, 152, 0, 0.6);
}

.pr-v3__stock--esaurito {
    color: #bbb;
}

.pr-v3__stock--esaurito .pr-v3__dot {
    background: #ddd;
}

.pr-v3__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pr-v3__btn-cart,
.pr-v3__btn-notify {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.pr-v3__btn-cart {
    background: linear-gradient(135deg, #c8102e, #e8183a);
    color: #fff;
    box-shadow: 0 3px 10px rgba(200, 16, 46, 0.3);
}

.pr-v3__btn-cart:hover {
    background: linear-gradient(135deg, #a50d26, #c8102e);
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.45);
    color: #fff;
    transform: translateY(-1px);
}

.pr-v3__btn-notify {
    background: #f5f5f5;
    color: #888;
    border: 1px solid #e0e0e0;
}

.pr-v3__btn-notify:hover {
    background: #ebebeb;
    color: #555;
}

.pr-v3__btn-info {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #aaa;
    border: 1px solid #e8e8e8;
    font-size: 0.9rem;
    text-decoration: none;
    align-self: flex-end;
    transition: all 0.2s;
}

.pr-v3__btn-info:hover {
    background: #ebebeb;
    color: #555;
    border-color: #ccc;
}

@media (max-width: 991px) {
    .pr-v3__img-col {
        width: 130px;
    }

    .pr-v3__cta {
        width: 155px;
    }
}

@media (max-width: 575px) {
    .pr-v3 {
        flex-direction: column;
    }

    .pr-v3__img-col {
        width: 100%;
        height: 150px;
    }

    .pr-v3__cta {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}

/* ══════════════════════════════════════════════════════════
   Article Detail Header — Varianti (A / B / C)
   ══════════════════════════════════════════════════════════ */

.adh-variant-label {
    display: inline-block;
    margin: 18px 0 6px;
    padding: 3px 10px;
    background: #1a1a2e;
    color: #ffbd00;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-radius: 3px;
}

/* ── Variante A — Hero compatto orizzontale ─────────────── */
.adh-a {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-left: 3px solid #c8102e;
    border-radius: 4px;
    margin-bottom: 24px;
    overflow: hidden;
}
.adh-a__img {
    flex: 0 0 auto;
    width: 120px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-right: 1px solid #eee;
}
.adh-a__img img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}
.adh-a__body {
    flex: 1;
    padding: 12px 16px;
    min-width: 0;
}
.adh-a__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.adh-a__category {
    background: #1a1a2e;
    color: #ffbd00;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.adh-a__brand {
    color: #888;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.adh-a__status {
    margin-left: auto;
    color: #3a8f3f;
    font-size: 0.72rem;
    font-weight: 700;
}
.adh-a__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.25;
}
.adh-a__meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 16px;
    font-size: 0.75rem;
}
.adh-a__meta-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.adh-a__meta-key {
    color: #999;
    font-weight: 600;
    white-space: nowrap;
}
.adh-a__meta-val {
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.adh-a__meta-val--code {
    font-family: monospace;
    background: #f4f4f4;
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid #e8e8e8;
}
.adh-a__meta-val small { color: #c8102e; font-weight: 700; }
.adh-a__cta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #fafafa;
    border-left: 1px solid #eee;
}
.adh-a__btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #c8102e;
    color: #fff;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}
.adh-a__btn-cart:hover { background: #a50d26; color: #fff; }

@media (max-width: 767px) {
    .adh-a { flex-wrap: wrap; }
    .adh-a__img { width: 100%; height: 140px; }
    .adh-a__cta { width: 100%; border-left: none; border-top: 1px solid #eee; }
    .adh-a__cta .adh-a__btn-cart { width: 100%; justify-content: center; }
}

/* ── Variante B — Card scheda prodotto ──────────────────── */
.adh-b {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.adh-b__main {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}
.adh-b__img {
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
    background: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.adh-b__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.adh-b__head { flex: 1; min-width: 0; }
.adh-b__breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.adh-b__breadcrumb i { font-size: 0.6rem; }
.adh-b__crumb { color: #666; }
.adh-b__title {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}
.adh-b__brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #888;
    font-size: 0.8rem;
}
.adh-b__brand {
    color: #c8102e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.adh-b__code {
    font-family: monospace;
    background: #f4f4f4;
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid #e8e8e8;
    color: #333;
    font-weight: 600;
}
.adh-b__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 20px;
}
.adh-b__cell-key {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 2px;
}
.adh-b__cell-val {
    font-size: 0.85rem;
    color: #1a1a2e;
    font-weight: 600;
}
.adh-b__cell-val small { color: #c8102e; }
.adh-b__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
}
.adh-b__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3a8f3f;
    font-weight: 600;
    font-size: 0.85rem;
}
.adh-b__status-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 6px rgba(76,175,80,0.5);
}
.adh-b__btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #c8102e;
    color: #fff;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}
.adh-b__btn-cart:hover { background: #a50d26; color: #fff; }

@media (max-width: 767px) {
    .adh-b__main { flex-direction: column; }
    .adh-b__img { width: 100%; height: 160px; }
    .adh-b__grid { grid-template-columns: 1fr 1fr; }
    .adh-b__footer { flex-direction: column; align-items: stretch; }
    .adh-b__btn-cart { justify-content: center; }
}

/* ── Variante C — Minimal strip ─────────────────────────── */
.adh-c {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 24px;
}
.adh-c__img {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    background: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}
.adh-c__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.adh-c__core {
    flex: 1;
    min-width: 0;
}
.adh-c__brand-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 2px;
}
.adh-c__brand {
    color: #c8102e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.adh-c__sep { color: #ccc; }
.adh-c__category {
    color: #666;
    font-weight: 600;
}
.adh-c__title {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.adh-c__codes {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.adh-c__code-pill {
    font-family: monospace;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 12px;
    background: #f4f4f4;
    color: #333;
    border: 1px solid #e0e0e0;
}
.adh-c__code-pill--oem {
    background: #fef2f2;
    border-color: #fcc;
    color: #c8102e;
}
.adh-c__right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}
.adh-c__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3a8f3f;
    font-size: 0.75rem;
    font-weight: 700;
}
.adh-c__status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 5px rgba(76,175,80,0.5);
}
.adh-c__btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #c8102e;
    color: #fff;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}
.adh-c__btn-cart:hover { background: #a50d26; color: #fff; }

@media (max-width: 767px) {
    .adh-c { flex-wrap: wrap; }
    .adh-c__right { width: 100%; justify-content: space-between; }
}

/* ══════════════════════════════════════════════════════════
   Article Detail Card  (.ad-card)
   ══════════════════════════════════════════════════════════ */

.ad-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    margin-bottom: 12px;
}

.ad-card__top {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.ad-card__main {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-right: 1px solid #eee;
}

.ad-card__main .ad-card__head {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ad-card__top .ad-tabs-wrap {
    flex: 1 1 50%;
    min-width: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.ad-card__top .ad-tabs-wrap .ad-tab-panel {
    flex: 1;
    overflow-y: auto;
    max-height: 460px;
}

/* Nasconde scrollbar in tutta la card dettaglio (panels, OEM grid, ecc.) */
.ad-card *::-webkit-scrollbar,
.ad-tabs-wrap *::-webkit-scrollbar,
.ad-card::-webkit-scrollbar,
.ad-tabs-wrap::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    display: none !important;
}

.ad-card,
.ad-card *,
.ad-tabs-wrap,
.ad-tabs-wrap * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.ad-card__img {
    position: relative;
    flex: 0 0 512px;
    width: 512px;
    height: 512px;
    background: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}
.ad-card__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.ad-card__img.img-zoom-trigger {
    cursor: zoom-in;
}
/* I bottoni prev/next mantengono il loro cursore default — non ereditano zoom-in. */
.ad-card__img.img-zoom-trigger .ad-img-nav {
    cursor: pointer;
}

.ad-card__head {
    flex: 1;
    min-width: 0;
}

.ad-card__brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.ad-card__brand {
    color: #c8102e;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ad-card__code-hero {
    margin: 0 0 4px;
    font-family: 'Courier New', monospace;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.05;
    letter-spacing: 0.01em;
}

.ad-card__subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.3;
}

.ad-card__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 6px 0 14px;
}

.ad-card__price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--cd-primary-color, #ffbd00);
    line-height: 1;
}

.ad-card__price-note {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ad-card__breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #aaa;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ad-card__breadcrumb i { font-size: 0.55rem; color: #ccc; }
.ad-card__crumb { color: #888; }
.ad-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f4f4f4;
    color: #666;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 3px;
    border: 1px solid #e8e8e8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ad-card__tag--remanufact {
    background: #fff8e6;
    color: #c97d00;
    border-color: #ffd980;
}

.ad-card__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 16px;
}
.ad-card__cell-key {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}
.ad-card__cell-val {
    font-size: 0.85rem;
    color: #1a1a2e;
    font-weight: 600;
    word-break: break-word;
}

.ad-card__pill {
    display: inline-block;
    font-family: monospace;
    font-size: 0.74rem;
    font-weight: 600;
    background: #f4f4f4;
    color: #1a1a2e;
    padding: 2px 9px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}
.ad-card__pill--oem {
    background: #fef2f2;
    border-color: #fcc;
    color: #c8102e;
}

/* OEM block */
.ad-card__oem {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fcfcfc;
}
.ad-card__oem-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.ad-card__oem-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ad-card__oem-count {
    display: inline-block;
    min-width: 22px;
    padding: 1px 7px;
    background: #c8102e;
    color: #fff;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
}
.ad-card__oem-search {
    margin-left: auto;
    position: relative;
    flex: 0 0 auto;
}
.ad-card__oem-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.78rem;
    pointer-events: none;
}
.ad-card__oem-search input {
    padding: 6px 10px 6px 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.78rem;
    color: #333;
    background: #fff;
    outline: none;
    width: 220px;
    transition: border-color 0.15s;
}
.ad-card__oem-search input:focus {
    border-color: #c8102e;
}

.ad-card__oem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid #ececec;
    border-radius: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 220px;
    background: #fff;
}

.ad-card__oem-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 12px;
    border-bottom: 1px solid #f3f3f3;
    border-right: 1px solid #f3f3f3;
    font-size: 0.78rem;
    min-width: 0;
}
.ad-card__oem-row:nth-child(3n) { border-right: none; }
.ad-card__oem-row:hover { background: #fafafa; }

.ad-card__oem-code {
    font-family: monospace;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ad-card__oem-brand {
    color: #888;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    max-width: 50%;
}

.ad-card__oem-empty {
    padding: 18px 12px;
    text-align: center;
    color: #999;
    font-size: 0.82rem;
}

@media (max-width: 991px) {
    .ad-card__oem-grid { grid-template-columns: repeat(2, 1fr); }
    .ad-card__oem-row:nth-child(3n) { border-right: 1px solid #f3f3f3; }
    .ad-card__oem-row:nth-child(2n) { border-right: none; }
}
@media (max-width: 575px) {
    .ad-card__oem-grid { grid-template-columns: 1fr; }
    .ad-card__oem-row { border-right: none; }
    .ad-card__oem-search input { width: 100%; }
    .ad-card__oem-search { width: 100%; margin-top: 6px; }
    .ad-card__oem-header { flex-wrap: wrap; }
}

/* OEM grid quando è dentro la tab a destra: colonna stretta → 2 colonne, niente max-height */
#tab-oem .ad-card__oem-grid {
    grid-template-columns: repeat(2, 1fr);
    max-height: none;
}
#tab-oem .ad-card__oem-row:nth-child(3n) { border-right: 1px solid #f3f3f3; }
#tab-oem .ad-card__oem-row:nth-child(2n) { border-right: none; }
@media (max-width: 575px) {
    #tab-oem .ad-card__oem-grid { grid-template-columns: 1fr; }
    #tab-oem .ad-card__oem-row { border-right: none; }
}

/* Search input dentro una tab (riusato dalla tab OEM) */
.ad-tab-search {
    position: relative;
    margin-bottom: 10px;
}
.ad-tab-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.78rem;
    pointer-events: none;
}
.ad-tab-search input {
    width: 100%;
    padding: 6px 10px 6px 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.78rem;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}
.ad-tab-search input:focus {
    border-color: #c8102e;
}

/* Sezione Veicoli compatibili (sotto la card top, a tutta larghezza) */
.ad-card__veicoli {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fcfcfc;
}
.ad-card__veicoli-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.ad-card__veicoli-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ad-card__veicoli-count {
    display: inline-block;
    min-width: 22px;
    padding: 1px 7px;
    background: #c8102e;
    color: #fff;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
}
.ad-card__veicoli-search {
    margin-left: auto;
    position: relative;
    flex: 0 0 auto;
}
.ad-card__veicoli-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.78rem;
    pointer-events: none;
}
.ad-card__veicoli-search input {
    padding: 6px 10px 6px 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.78rem;
    color: #333;
    background: #fff;
    outline: none;
    width: 260px;
    transition: border-color 0.15s;
}
.ad-card__veicoli-search input:focus {
    border-color: #c8102e;
}
.ad-card__veicoli-table-wrap {
    border: 1px solid #ececec;
    border-radius: 4px;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 650px;
    background: #fff;
}
.ad-card__veicoli-table-wrap .ad-specs-table {
    margin: 0;
}
.ad-card__veicoli-empty {
    padding: 18px 12px;
    text-align: center;
    color: #999;
    font-size: 0.82rem;
}
.ad-card__veicoli-pagination {
    margin-top: 12px;
    justify-content: center;
}
.ad-card__veicoli.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s;
}
@media (max-width: 575px) {
    .ad-card__veicoli-header { flex-wrap: wrap; }
    .ad-card__veicoli-search { width: 100%; margin-top: 6px; }
    .ad-card__veicoli-search input { width: 100%; }
}

/* CTA accanto alle info articolo (stato + bottoni) - ancorato in fondo */
.ad-card__head-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}
.ad-card__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3a8f3f;
    font-weight: 700;
    font-size: 0.82rem;
}
.ad-card__status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 6px rgba(76,175,80,0.5);
}
.ad-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ad-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.ad-card__btn--primary {
    background: #c8102e;
    color: #fff;
}
.ad-card__btn--primary:hover {
    background: #a50d26;
    color: #fff;
}
.ad-card__btn--secondary {
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
}
.ad-card__btn--secondary:hover {
    border-color: #c8102e;
    color: #c8102e;
}

/* Responsive */
@media (max-width: 1599px) {
    .ad-card__img { flex: 0 0 420px; width: 420px; height: 420px; }
}
@media (max-width: 1399px) {
    .ad-card__img { flex: 0 0 360px; width: 360px; height: 360px; }
}
@media (max-width: 1199px) {
    .ad-card__grid { grid-template-columns: 1fr 1fr; }
    .ad-card__img { flex: 0 0 280px; width: 280px; height: 280px; }
}
@media (max-width: 991px) {
    .ad-card__top { flex-direction: column; }
    .ad-card__main { border-right: none; border-bottom: 1px solid #eee; flex: 1 1 auto; }
    .ad-card__top .ad-tabs-wrap { flex: 1 1 auto; }
    .ad-card__top .ad-tabs-wrap .ad-tab-panel { max-height: none; }
    .ad-card__img { flex: 0 0 320px; width: 320px; height: 320px; }
    .ad-card__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .ad-card__main { align-items: stretch; }
    .ad-card__img { width: 100%; height: auto; max-height: 400px; aspect-ratio: 1; flex: 0 0 auto; }
    .ad-card__code-hero { font-size: 1.7rem; }
    .ad-card__head-cta { flex-direction: column; align-items: stretch; }
    .ad-card__actions { justify-content: stretch; }
    .ad-card__btn { flex: 1; justify-content: center; }
}
@media (max-width: 575px) {
    .ad-card__grid { grid-template-columns: 1fr; }
}

.ricerca-veh-drop {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
    max-height: 55vh;
    overflow-y: auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.ricerca-veh-drop-item {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.ricerca-veh-drop-item:last-child {
    border-bottom: none;
}

.ricerca-veh-drop-item:hover {
    background: #f5f5f5;
}

.ricerca-veh-drop-empty {
    padding: 10px 12px;
    font-size: 13px;
    color: #999;
}

/* ── Spinner autocomplete dropdown ─────────────────────── */
.ricerca-drop-spinner {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ricerca-drop-spinner::after {
    content: '';
    width: 22px;
    height: 22px;
    border: 2px solid #e0e0e0;
    border-top-color: #ffbd00;
    border-radius: 50%;
    animation: ricerca-spin 0.6s linear infinite;
}

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

/* ── Panel loading overlay ──────────────────────────────── */
.catalog-loading {
    position: relative;
    pointer-events: none;
    min-height: 80px;
}

.catalog-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    z-index: 5;
    border-radius: 4px;
}

/* Spinner centrato sul viewport (non sul solo #catalog-list, che è la colonna
   destra: lì risulterebbe spostato a destra per via della sidebar). */
.catalog-loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    /* centramento via margin (NON transform: il transform è usato dall'animazione
       di rotazione, userebbe in conflitto e farebbe "scivolare" lo spinner). */
    margin: -15px 0 0 -15px;
    width: 30px;
    height: 30px;
    border: 3px solid #e0e0e0;
    border-top-color: #ffbd00;
    border-radius: 50%;
    animation: ricerca-spin 0.6s linear infinite;
    z-index: 1060;
}

/* Righe veicolo compatibile: cliccabili → popolano la ricerca per veicolo */
.ad-veicoli-row { cursor: pointer; }
.ad-veicoli-row:hover { background: rgba(255, 189, 0, 0.10); }

/* ── Vista lista vs dettaglio: due container distinti, ne mostro uno solo. ──
   In vista lista si vede #catalog-list-view (sidebar + #catalog-list);
   con .detail-view sul section si nasconde la lista e si mostra #catalog-detail
   a tutta larghezza. La sidebar appartiene alla lista, quindi non serve più
   nasconderla a parte. */
#catalog-detail { display: none; }
#catalog-section.detail-view #catalog-list-view { display: none; }
#catalog-section.detail-view #catalog-detail { display: block; }

/* Effetto carousel: il dettaglio entra scorrendo da destra verso sinistra.
   La classe .catalog-detail--enter viene (ri)applicata via JS ad ogni apertura. */
#catalog-detail.catalog-detail--enter {
    animation: catalogDetailSlideIn 0.28s ease-out;
}
@keyframes catalogDetailSlideIn {
    from { transform: translateX(3%); opacity: 0; }
    to   { transform: translateX(0);  opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    #catalog-detail.catalog-detail--enter { animation: none; }
}


/* ── Sidebar categoria dinamica ───────────────────────────── */
/* Il tema nasconde gli ul annidati con .product-listing ul li ul { display:none }.
   Override solo per cat-list; cat-sublist resta controllato da jQuery. */
.cat-list {
    display: block !important;
}

/* Sopprime le frecce aggiunte dal tema su tutti i link della sidebar */
.cat-group-link::after,
.cat-item-link::after {
    content: none !important;
}

/* Riga principale con bottone e link */
.cat-group-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    width: 100% !important;
}

/* Override del link per attivare il Flexbox interno */
.product-listing ul li a.cat-group-link,
.product-listing ul li a.cat-item-link,
.cat-group-link,
.cat-item-link {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    min-width: 0 !important;
    color: inherit !important;
    text-decoration: none !important;
    padding: 2px 0 !important;
    font-size: 0.83rem !important;
}

/* Testo della categoria troncabile */
.cat-text {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    margin-right: 8px !important; /* Spazio di sicurezza per non far incollare i tre puntini (...) al numero */
}

.cat-group-link {
    font-weight: 600 !important;
}

.cat-group-link:hover,
.cat-item-link:hover {
    color: #ffbd00 !important;
}

/* Bottone freccia (chevron) */
.cat-toggle-btn {
    flex: 0 0 auto !important;
    background: none !important;
    border: none !important;
    padding: 1px 5px !important;
    color: #bbb !important;
    font-size: 0.65rem !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: color 0.15s !important;
}
.cat-toggle-btn:hover { color: #ffbd00 !important; }
.cat-toggle-btn.is-open .fa { transform: rotate(90deg) !important; }
.cat-toggle-btn .fa { transition: transform 0.2s !important; }

/* Il contatore viene spinto stabilmente a destra accanto alla freccia */
.cat-count { 
    font-size: 0.72rem !important; 
    color: #aaa !important; 
    font-weight: normal !important; 
    margin-left: auto !important;   /* 🚀 Pone il contatore all'estrema destra del blocco */
    padding-right: 4px !important;  /* Piccolo margine di respiro prima del chevron */
    flex-shrink: 0 !important;      /* Impedisce al numero di collassare */
    white-space: nowrap !important;  
}

/* ===================================================================
 * TomSelect — dark banner context overrides
 * Applies to vehicle fields (.ricerca-field.ts-wrapper)
 * and to code search (.ricerca-oem-input-wrap .ts-wrapper)
 * =================================================================== */

/* --- Vehicle select fields (marca / modello / versione) ---
   Allineati visivamente all'input #ricerca-anno-input: padding 10/12, font 0.9rem,
   stesso bg/border ereditati da .ricerca-field. Chevron bianco custom (l'override
   di app.css disegna un chevron grigio scuro illeggibile su sfondo dark). */
.ricerca-field.ts-wrapper {
    padding: 0;
    /* !important needed: app.css's .ts-wrapper rules carry !important on bg/border
       and would zero them out, leaving the wrapper invisible. */
    background: #fff !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 8px !important;
    /* height fisso ereditato da .ricerca-field; ribadiamolo qui per superare
       le regole min-height di app.css su .ts-wrapper. */
    min-height: 50px !important;
    height: 50px !important;
}
.ricerca-field.ts-wrapper.disabled {
    opacity: 0.4;
}
.ricerca-field.ts-wrapper.focus {
    border-color: #ffbd00 !important;
}
/* !important needed: app.css has .ts-wrapper.single.input-active .ts-control{background:#fff}
   with spec (0,4,0) which would beat our (0,3,0) in active state */
.ricerca-field.ts-wrapper .ts-control,
.ricerca-field.ts-wrapper.single.input-active .ts-control {
    background: transparent !important;
    border: none !important;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: none !important;
    color: #1a1a2e;
    font-size: 0.95rem;
    /* altezza del .ts-control coincide con .ts-wrapper (50px) meno il bordo
       (1px sopra/sotto) → 48px. */
    height: 48px;
    /* nowrap: impedisce all'input (min-width:7rem da app.css) di andare a capo
       quando l'.item selezionato occupa quasi tutta la riga. */
    flex-wrap: nowrap !important;
    align-items: center;
    overflow: hidden;
}
.ricerca-field.ts-wrapper.single .ts-control {
    /* !important su tutte le sub-properties: la regola sopra usa "background: transparent !important"
       (shorthand) che propaga !important anche a repeat/size/position azzerandoli ai default
       (repeat / auto / 0% 0%). Senza !important qui, il chevron verrebbe tilato orizzontalmente. */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231a1a2e' stroke-opacity='0.6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 8px !important;
    padding-right: 34px;
}
.ricerca-field.ts-wrapper .ts-control input {
    color: #1a1a2e !important;
    font-size: 0.95rem;
    /* app.css imposta min-width:7rem sull'input: combinato con il flex-wrap del
       .ts-control faceva andare l'input a capo, raddoppiando l'altezza. Lo
       comprimiamo a 0 così sta sulla stessa riga dell'item (priorità all'item). */
    min-width: 0 !important;
    flex-shrink: 1 !important;
}
.ricerca-field.ts-wrapper .ts-control .item {
    color: #1a1a2e !important;
    /* item non si comprime: l'input shrinka per primo. */
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.ricerca-field.ts-wrapper .ts-control input::placeholder {
    color: #6c757d !important;
}
.ricerca-field.ts-wrapper .ts-dropdown {
    background: #fff;
    border: 1px solid #ffbd00 !important;
    max-height: 45vh !important; /* Non supera mai metà schermo su mobile */
}
.ricerca-field.ts-wrapper .ts-dropdown .option {
    color: rgb(0, 0, 0);
}
.ricerca-field.ts-wrapper .ts-dropdown .option.active,
.ricerca-field.ts-wrapper .ts-dropdown [data-selectable].active {
    background: #ffbd00;
    color: #000;
}
.ricerca-field.ts-wrapper .ts-dropdown .no-results {
    color: rgb(0, 0, 0);
}

/* --- Code search TomSelect (inside .ricerca-oem-input-wrap) --- */
.ricerca-oem-input-wrap .ts-wrapper {
    flex: 1;
    background: transparent !important;
    border: none;
    padding: 0;
    min-height: auto;
}
/* !important needed for same specificity reason as above */
.ricerca-oem-input-wrap .ts-wrapper .ts-control,
.ricerca-oem-input-wrap .ts-wrapper.single.input-active .ts-control {
    background: transparent !important;
    border: none !important;
    padding: 0;
    box-shadow: none !important;
    min-height: auto;
}
.ricerca-oem-input-wrap .ts-wrapper.single .ts-control {
    background-image: none !important;
    padding-right: 0;
}
.ricerca-oem-input-wrap .ts-wrapper .ts-control input {
    color: #fff !important;
    font-size: 0.95rem;
    padding: 12px 0;
    min-width: 120px;
}
.ricerca-oem-input-wrap .ts-wrapper .ts-control input::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}
.ricerca-oem-input-wrap .ts-wrapper .ts-control .item {
    color: #fff !important;
    background: transparent !important;
    border: none;
    padding: 12px 0;
    font-size: 0.95rem;
}
.ricerca-oem-input-wrap .ts-dropdown {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: none;
    color: #fff;
    z-index: 1055;
}
.ricerca-oem-input-wrap .ts-dropdown .option {
    color: #eee;
}
.ricerca-oem-input-wrap .ts-dropdown .option.active,
.ricerca-oem-input-wrap .ts-dropdown [data-selectable].active {
    background: rgba(255, 189, 0, 0.2);
    color: #fff;
}
.ricerca-oem-input-wrap .ts-dropdown .optgroup-header {
    color: #aaa;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: transparent;
}
.ricerca-oem-input-wrap .ts-dropdown .create {
    color: rgba(255, 255, 255, 0.5);
}
.ricerca-oem-input-wrap .ts-dropdown .no-results {
    color: rgba(255, 255, 255, 0.45);
}

/* ── Lang switch nel menu ──────────────────────────────────────
   Usiamo il dropdown nativo del mega-menu (.drop-down-multilevel):
   posizionamento e hover gestiti da mega_menu.js. Qui solo l'evidenziazione
   della lingua corrente. */
.menu-links li.lang-switch > a .fa-globe {
    margin-right: 4px;
}
.menu-links li.lang-switch .drop-down-multilevel li.active > a {
    color: #ffbd00 !important;
    font-weight: 700;
}

/* ── Compattazione e Pulizia Sidebar Filtri ──────────────── */

/* 1. Elimina la linea grigia superiore che stacca la lista dal titolo */
.listing-sidebar .widget .list-group-item {
    border-top: none !important;
}

/* 2. Riduce il divario eccessivo sotto la linea gialla del titolo */
.listing-sidebar .widget .widget-search h5 {
    margin-bottom: 10px !important; 
}

/* 3. Opzionale: Rende più puliti i sottomenu eliminando i bordi inutili */
.listing-sidebar .widget .list-group {
    border: none !important;
}

.bg-overlay-black-100::before {
  background: rgba(0, 0, 0, 0.75);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;
}

.ts-dropdown .optgroup-header {
  font-weight: bold;
}

.ts-dropdown [data-selectable] .highlight {
  background: #ffbd003b;
  font-weight: bold;
}

.ts-dropdown-content {
  max-height: 45vh;
}

.mega-menu.desktopTopFixed .menu-list-items {
  background: rgb(0, 0, 0) !important;
}

.mega-menu .menu-links li.user-menu .user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cd-primary-color, #ffbd00);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}
.mega-menu .menu-links li.user-menu .user-menu__info {
    padding: 10px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    line-height: 1.3;
}
.mega-menu .menu-links li.user-menu .user-menu__name {
    display: block;
    font-weight: 700;
    color: #1f2937;
}
.mega-menu .menu-links li.user-menu .user-menu__sub {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

/* Layout senza sidebar (es. Nuovi articoli) */
.catalog-layout--no-sidebar #catalog-sidebar { display: none !important; }
.catalog-layout--no-sidebar .catalog-main {
    flex: 0 0 100%;
    max-width: 100%;
}
.catalog-layout--no-sidebar .sidebar-toggle-btn { display: none !important; }

.pr-bk__badge-new {
    position: absolute;
    top: 6px;
    left: 6px;
    background-color: var(--cd-primary-color, #ffbd00);
    color: #000;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 6px;
    z-index: 3;
    animation: pulse-new 2s infinite;
}

@keyframes pulse-new {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}