/* ============================================================
   TUTTO – Vehicle Finder & Brand Filter Styles
   ============================================================ */

/* ── CUSTOM SEARCHABLE SELECT ──────────────────────────────── */
.tutto-cs-wrap {
    position: relative;
    width: 100%;
}

.tutto-cs-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 0 12px;
    height: 42px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: border-color .18s, background .18s;
    outline: none;
    box-sizing: border-box;
}
.tutto-cs-trigger:hover {
    border-color: rgba(250,181,5,0.7);
    background: rgba(250,181,5,0.06);
}
.tutto-cs-wrap.tutto-cs-open .tutto-cs-trigger {
    border-color: #fab505;
    background: rgba(250,181,5,0.08);
}
.tutto-cs-wrap.tutto-cs-disabled .tutto-cs-trigger {
    opacity: 0.42;
    cursor: not-allowed;
}

.tutto-cs-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255,255,255,0.45);
    transition: color .15s;
}
.tutto-cs-label.tutto-cs-selected {
    color: #fff;
}

.tutto-cs-arrow {
    font-size: 20px;
    flex-shrink: 0;
    color: rgba(255,255,255,0.55);
    transition: transform .2s;
    line-height: 1;
}
.tutto-cs-wrap.tutto-cs-open .tutto-cs-arrow {
    transform: rotate(180deg);
    color: #fab505;
}

/* Panel (dropdown) */
.tutto-cs-panel {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 99999;
    overflow: hidden;
}
.tutto-cs-wrap.tutto-cs-open .tutto-cs-panel {
    display: block;
}

/* Search box inside panel */
.tutto-cs-search-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid #ebebeb;
    background: #f8f8f8;
}
.tutto-cs-search-box .material-icons {
    font-size: 17px;
    color: #aaa;
    flex-shrink: 0;
}
.tutto-cs-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #333;
    font-size: 13px;
    font-family: inherit;
    padding: 0;
}
.tutto-cs-search-input::placeholder {
    color: #bbb;
}

/* Options list */
.tutto-cs-options {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 210px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}
.tutto-cs-options::-webkit-scrollbar { width: 4px; }
.tutto-cs-options::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.tutto-cs-group-label {
    padding: 7px 12px 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #fab505;
    pointer-events: none;
}

.tutto-cs-option {
    padding: 8px 14px;
    cursor: pointer;
    color: #333;
    font-size: 13px;
    transition: background .12s, color .12s;
    line-height: 1.3;
}
.tutto-cs-option:hover {
    background: #fff8e6;
    color: #1a1a2e;
}
.tutto-cs-option-current {
    color: #fab505;
    font-weight: 600;
}

.tutto-cs-no-result {
    padding: 10px 14px 12px;
    font-size: 13px;
    color: #aaa;
    text-align: center;
}

/* ── SELECTED VEHICLE BAR ──────────────────────────────────── */
/* Also relocated by JS to after #header (float:left), so needs clear:both */
.tutto-selected-vehicle-bar {
    background: #1a1a2e;
    color: #fff;
    padding: 10px 0;
    border-bottom: 3px solid #fab505;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}
.tutto-selected-vehicle-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.tutto-sv-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.tutto-sv-info .material-icons { color: #fab505; font-size: 22px; }
.tutto-sv-brand { font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; }
.tutto-sv-model { font-size: 14px; opacity: .85; }
.tutto-sv-count { font-size: 13px; background: rgba(255,255,255,.12); padding: 2px 10px; border-radius: 20px; }
a.tutto-sv-count { display: inline-block; text-decoration: none; color: inherit; cursor: pointer; transition: background .15s ease; }
a.tutto-sv-count:hover { background: rgba(255,255,255,.22); color: inherit; text-decoration: none; }
a.tutto-sv-count:focus-visible { outline: 2px solid #fab505; outline-offset: 2px; }
.tutto-sv-actions { display: flex; gap: 8px; }

/* ── VEHICLE FINDER BLOCK ──────────────────────────────────── */
/* Relocated by JS to after #header (#header is float:left so we must clear) */
.tutto-vehicle-finder {
    background: #1a1a2e;
    width: 100%;
    box-sizing: border-box;
    clear: both;
}
.tutto-finder-inner { width: 100%; }

/* ── Two-column layout: left (finder) + right (banner) ── */
.tutto-finder-layout {
    display: flex;
    align-items: stretch;
}
.tutto-finder-col-left {
    flex: 0 0 25%;
    max-width: 25%;
    border-right: 1px solid rgba(255,255,255,.12);
    display: flex;
    flex-direction: column;
}
.tutto-finder-col-right {
    flex: 1 1 75%;
    max-width: 75%;
    display: flex;
    align-items: stretch;
}
.tutto-finder-banner {
    width: 100%;
    background: #111827;
    overflow: hidden;
    position: relative;
}

/* ── Slider inside banner column: natural height drives the row ── */
.tutto-finder-banner .carousel,
.tutto-finder-banner #carousel {
    width: 100%;
    margin: 0;
}
.tutto-finder-banner figure {
    margin: 0;
    padding: 0;
    display: block;
    line-height: 0;
}
.tutto-finder-banner figure img,
.tutto-finder-banner .carousel img {
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
}

/* Vertical column stack inside left col */
.tutto-finder-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
}

/* ── FINDER SECTIONS ───────────────────────────────────────── */
.tutto-finder-section {
    padding: 10px 16px;
    flex: none;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(255,255,255,.1);
    border-left: none;
}
.tutto-finder-body > .tutto-finder-section:first-child { border-top: none; }
.tutto-section-label {
    color: rgba(255,255,255,.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 7px;
    font-weight: 600;
}
.tutto-manage-link { color: rgba(255,255,255,.6); text-decoration: none; }
.tutto-manage-link:hover { color: #fff; }

/* Plate section */
.tutto-finder-plate { flex: none; }
.tutto-plate-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.french-plate-wrapper {
    display: flex;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    transition: border-color .18s, background .18s;
    flex: 1 1 auto;
    min-width: 0;
}
.french-plate-wrapper:focus-within {
    border-color: #fab505;
    background: rgba(250,181,5,.06);
}
.french-plate-wrapper img { height: 42px; width: auto; flex-shrink: 0; }
.french-plate-input {
    height: 42px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: none;
    outline: none;
    flex: 1 1 auto;
    min-width: 0;
    letter-spacing: 1.5px;
    color: #fff;
    background: transparent;
    text-transform: uppercase;
    font-family: inherit;
    box-sizing: border-box;
}
.french-plate-input::placeholder { color: rgba(255,255,255,.28); font-size: 16px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

/* ── PLATE / VIN TABS ──────────────────────────────────────── */
.tutto-plate-search-wrap { width: 100%; }
.tutto-search-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}
.tutto-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: rgba(255,255,255,.45);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    cursor: pointer;
    font-family: inherit;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.tutto-tab-btn .material-icons { font-size: 15px; }
.tutto-tab-btn:hover { color: rgba(255,255,255,.8); }
.tutto-tab-btn.tutto-tab-active {
    color: #fab505;
    border-bottom-color: #fab505;
}

/* VIN input row */
.tutto-vin-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 2px;
}
.tutto-vin-input {
    flex: 1 1 0;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    outline: none;
    font-family: inherit;
    transition: border-color .18s;
    box-sizing: border-box;
    text-transform: uppercase;
}
.tutto-vin-input::placeholder { color: rgba(255,255,255,.28); font-size: 11px; font-weight: 400; letter-spacing: .5px; text-transform: none; }
.tutto-vin-input:focus { border-color: #fab505; background: rgba(250,181,5,.06); }

/* Modal (light theme) overrides */
.tutto-modal-plate-wrap .tutto-search-tabs { border-bottom-color: #eee; }
.tutto-modal-plate-wrap .tutto-tab-btn { color: #bbb; }
.tutto-modal-plate-wrap .tutto-tab-btn:hover { color: #666; }
.tutto-modal-plate-wrap .tutto-tab-btn.tutto-tab-active { color: #fab505; border-bottom-color: #fab505; }
.tutto-modal-plate-wrap .tutto-vin-input {
    background: #f5f5f5;
    border-color: #ddd;
    color: #333;
}
.tutto-modal-plate-wrap .tutto-vin-input::placeholder { color: #aaa; }
.tutto-modal-plate-wrap .tutto-vin-input:focus { border-color: #fab505; background: #fffef8; }
.tutto-modal-plate-wrap .french-plate-wrapper {
    background: #f5f5f5;
    border-color: #ddd;
}
.tutto-modal-plate-wrap .french-plate-wrapper:focus-within { border-color: #fab505; background: #fffef8; }
.tutto-modal-plate-wrap .french-plate-input { color: #333; }
.tutto-modal-plate-wrap .french-plate-input::placeholder { color: #aaa; }

/* ── Bottom row wrapper (Par Modèle + Mes Véhicules) ──────── */
.tutto-finder-row-bottom {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: none;
    width: 100%;
    border-left: none;
    padding: 0;
    min-width: 0;
}

/* Sections inside: same stacked style */
.tutto-finder-row-bottom .tutto-finder-section {
    padding: 10px 16px;
    flex: none;
    width: 100%;
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,.1) !important;
    min-width: 0;
    box-sizing: border-box;
}
.tutto-finder-row-bottom .tutto-finder-section:first-child { border-top: none !important; }

/* Show section label inside row-bottom */
.tutto-finder-row-bottom .tutto-section-label { display: block; }

/* ── Par Modèle section ────────────────────────────────────── */
.tutto-finder-model { flex: none; min-width: 0; border-left: none; }
.tutto-model-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    color: #fab505;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    height: auto;
}
.tutto-model-toggle strong { color: #fab505; font-weight: 700; }
.tutto-model-toggle:hover strong { text-decoration: underline; }
.tutto-toggle-arrow { font-size: 16px !important; color: #fab505; margin-left: auto; }
.tutto-toggle-mobile { display: inline-flex; }
.tutto-label-desktop { display: none; }

/* Selects wrapper: hidden (selection done via drawer) */
.tutto-model-selects-wrap { display: none; width: 100%; }
.tutto-model-selects {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
}
.tutto-select-wrap { flex: 1 1 0; min-width: 0; }
.tutto-model-selects #save_vehicle { flex-shrink: 0; }

/* Saved vehicles section */
.tutto-finder-saved { flex: none; border-left: none; min-width: 0; }

/* Trigger height inside row-bottom */
.tutto-finder-row-bottom .tutto-cs-trigger { height: 38px; }

/* Divider — hidden in vertical layout */
.tutto-finder-divider {
    display: none;
}
.tutto-finder-divider span {
    color: rgba(255,255,255,.4);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.tutto-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 9px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    text-decoration: none;
}
.tutto-btn .material-icons { font-size: 16px; }
.tutto-btn-primary {
    background: #fab505;
    color: #000;
    font-weight: 700;
}
.tutto-btn-primary:hover:not(:disabled) { background: #d99a00; color: #fff; }
.tutto-btn-primary:disabled { background: #555; color: #888; cursor: not-allowed; }
/* Plate/VIN AJAX: keep primary look while disabled + show spinner */
.tutto-btn-primary.tutto-btn--loading,
.tutto-btn-primary.tutto-btn--loading:disabled {
    background: #e6a800;
    color: #000;
    opacity: 1;
    cursor: wait;
}
.tutto-btn-primary.tutto-btn--loading .rp_button-loader .material-icons {
    color: #000;
}
.tutto-btn-secondary {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
}
.tutto-btn-secondary:hover { background: rgba(255,255,255,.2); }
.tutto-btn-change { background: rgba(255,255,255,.15); color: #fff; font-size: 12px; padding: 6px 12px; }
.tutto-btn-change:hover { background: rgba(255,255,255,.25); }
.tutto-btn-remove { background: rgba(230,57,70,.25); color: #ff8a94; font-size: 12px; padding: 6px 12px; }
.tutto-btn-remove:hover { background: rgba(230,57,70,.4); }

/* Loader (plate/VIN OK buttons — Material Icons, no Font Awesome dependency) */
.rp_button-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    vertical-align: middle;
}
.rp_button-loader .material-icons {
    font-size: 20px;
    line-height: 1;
    animation: tutto-spin .75s linear infinite;
}
@keyframes tutto-spin { to { transform: rotate(360deg); } }

/* ── COMPAT ALERTS ─────────────────────────────────────────── */
.tutto-compat-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    margin: 8px 0 0;
}

/* ── VEHICLE MODAL ─────────────────────────────────────────── */
.tutto-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(0,0,0,.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.tutto-modal-content {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 70px rgba(0,0,0,.3);
    display: flex;
    flex-direction: column;
}

/* Header */
.tutto-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 28px 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.tutto-modal-header .material-icons { color: #fab505; font-size: 24px; }
.tutto-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

/* Close button */
.tutto-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
    padding: 0;
}
.tutto-modal-close:hover { background: #ffe8a0; }
.tutto-modal-close .material-icons { font-size: 18px; color: #555; }

/* Body: two columns */
.tutto-modal-body {
    display: flex;
    gap: 0;
    flex: 1;
    min-height: 0;
}
.tutto-modal-left {
    flex: 1 1 55%;
    padding: 24px 28px;
    border-right: 1px solid #f0f0f0;
    overflow-y: auto;
}
.tutto-modal-right {
    flex: 1 1 45%;
    padding: 24px 24px;
    background: #fafafa;
    border-radius: 0 0 14px 0;
    overflow-y: auto;
}

/* Section title inside modal */
.tutto-modal-section { margin-bottom: 20px; }
.tutto-modal-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #888;
    margin-bottom: 12px;
}
.tutto-modal-section-title .material-icons { font-size: 16px; color: #fab505; }
.tutto-modal-manage-link {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: #fab505;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
}
.tutto-modal-manage-link:hover { color: #d99a00; text-decoration: underline; }

/* OR divider */
.tutto-modal-or {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: #ccc;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}
.tutto-modal-or::before,
.tutto-modal-or::after { content: ''; flex: 1; height: 1px; background: #eee; }

/* Modal selects (light theme) */
.tutto-modal-selects { display: flex; flex-direction: column; gap: 10px; }
.tutto-modal-selects .tutto-cs-trigger {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    height: 44px;
}
.tutto-modal-selects .tutto-cs-trigger:hover,
.tutto-modal-selects .tutto-cs-wrap.tutto-cs-open .tutto-cs-trigger { border-color: #fab505; }
.tutto-modal-selects .tutto-cs-label { color: #aaa; }
.tutto-modal-selects .tutto-cs-label.tutto-cs-selected { color: #333; }
.tutto-modal-selects .tutto-cs-arrow { color: #aaa; }
.tutto-modal-selects .tutto-cs-wrap.tutto-cs-open .tutto-cs-arrow { color: #fab505; }
.tutto-modal-selects .tutto-cs-wrap.tutto-cs-disabled .tutto-cs-trigger { background: #f9f9f9; border-color: #eee; }

.tutto-btn-block { width: 100%; justify-content: center; margin-top: 4px; }

/* ── Saved vehicles dropdown ───────────────────────────────── */
.tutto-saved-dropdown {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    cursor: pointer;
    appearance: auto;
    margin-top: 8px;
}
.tutto-saved-dropdown:focus {
    outline: none;
    border-color: #fab505;
    box-shadow: 0 0 0 2px rgba(250,181,5,.2);
}

/* ── Saved vehicles list ───────────────────────────────────── */
.tutto-saved-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tutto-saved-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.tutto-saved-item:hover {
    border-color: #fab505;
    box-shadow: 0 2px 10px rgba(250,181,5,.15);
}
.tutto-saved-current {
    border-color: #fab505;
    background: #fffbf0;
}
.tutto-saved-icon .material-icons {
    font-size: 22px;
    color: #fab505;
}
.tutto-saved-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.tutto-saved-brand {
    font-weight: 700;
    font-size: 13px;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.tutto-saved-model {
    font-size: 13px;
    color: #555;
}
.tutto-saved-year {
    font-size: 11px;
    color: #999;
}
.tutto-saved-check { font-size: 18px !important; color: #fab505; flex-shrink: 0; }

.tutto-saved-empty {
    text-align: center;
    padding: 30px 10px;
    color: #bbb;
}
.tutto-saved-empty .material-icons { font-size: 40px; display: block; margin-bottom: 8px; }
.tutto-saved-empty p { margin: 0 0 4px; font-size: 14px; color: #aaa; }
.tutto-saved-empty-hint { font-size: 12px !important; color: #ccc !important; }

/* ============================================================
   BRAND FILTER STYLES
   ============================================================ */
.brands section, section.brands { position: relative; }

/* Wrapper added by JS around each brand article */
.tutto-brand-item {
    cursor: pointer;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
    border-radius: 8px;
    overflow: visible;
}
.tutto-brand-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.10); }

/* Active / selected state */
.tutto-brand-item.tutto-brand-active {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(230,57,70,.25);
}
.tutto-brand-item.tutto-brand-active .brand-image {
    border: 2px solid #fab505 !important;
    border-radius: 8px;
}
.tutto-brand-item.tutto-brand-active::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #fab505;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    line-height: 20px;
    text-align: center;
}

/* Price tag below logo */
.tutto-brand-price {
    text-align: center;
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    padding: 2px 6px;
    font-weight: 500;
}
.tutto-brand-price strong {
    color: #fab505;
    font-weight: 700;
    font-size: 12px;
}

/* Dimmed state when other brands are active */
.brands.tutto-has-active .tutto-brand-item:not(.tutto-brand-active) {
    opacity: .45;
    filter: grayscale(50%);
    transform: none;
    box-shadow: none;
}

/* ── FILTER ACTION BAR ─────────────────────────────────────── */
.tutto-brand-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: #1a1a2e;
    border-top: 3px solid #fab505;
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.2);
    animation: tutto-slideup .25s ease;
}
@keyframes tutto-slideup {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.tutto-brand-action-bar.visible { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tutto-bar-brands-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #fff;
    font-size: 13px;
}
.tutto-bar-brand-tag {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    padding: 3px 10px 3px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    cursor: pointer;
    color: #fff;
}
.tutto-bar-brand-tag:hover { background: rgba(255,255,255,.2); }
.tutto-bar-brand-tag .remove-brand { font-size: 14px; font-weight: 700; line-height: 1; opacity: .7; }
.tutto-bar-actions { display: flex; gap: 10px; align-items: center; }
.tutto-bar-view-btn {
    background: #fab505;
    color: #000;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.tutto-bar-view-btn:hover { background: #d99a00; }
.tutto-bar-clear-btn {
    background: transparent;
    color: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.2);
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}
.tutto-bar-clear-btn:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ── MOBILE PLATE ICON TRIGGER ─────────────────────────────── */
/* Hidden on desktop — shown only via @media (max-width: 767px) */
.tutto-mobile-plate-btn { display: none; }

/* ── MOBILE PLATE OVERLAY ───────────────────────────────────── */
.tutto-mpo-backdrop {
    display: none; /* JS sets to flex when open */
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,.55);
    align-items: flex-end;
    justify-content: center;
}
.tutto-mpo-box {
    background: #1a1a2e;
    border-radius: 20px 20px 0 0;
    padding: 20px 20px 40px;
    width: 100%;
    max-width: 540px;
    box-sizing: border-box;
    animation: tutto-slideup .25s ease;
}
.tutto-mpo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}
.tutto-mpo-close {
    background: rgba(255,255,255,.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    padding: 0;
    flex-shrink: 0;
    transition: background .15s;
}
.tutto-mpo-close:hover { background: rgba(255,255,255,.2); }
.tutto-mpo-close .material-icons { font-size: 18px; }
.tutto-mpo-plate-row { gap: 8px; }

/* ── MODEL DRAWER (right slide-in panel) ───────────────────── */
.tutto-drawer-backdrop {
    display: none; /* JS sets to block when open */
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(0,0,0,.55);
    opacity: 0;
    overflow: hidden; /* prevent any child from bleeding outside */
    transition: opacity .28s ease;
}
.tutto-drawer-backdrop.open { opacity: 1; }
.tutto-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    max-width: 100%; /* never wider than the backdrop (= viewport) */
    background: #1a1a2e;
    box-shadow: -6px 0 28px rgba(0,0,0,.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform .28s ease;
}
.tutto-drawer-backdrop.open .tutto-drawer-panel { transform: translateX(0); }
.tutto-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-weight: 600;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
}
.tutto-drawer-header .material-icons { color: #fab505; font-size: 20px; vertical-align: middle; margin-right: 4px; }
.tutto-drawer-close {
    background: rgba(255,255,255,.1);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background .15s;
    color: #fff;
}
.tutto-drawer-close:hover { background: rgba(250,181,5,.25); }
.tutto-drawer-close .material-icons { font-size: 18px; color: #fff; }
.tutto-drawer-body { flex: 1; overflow-y: auto; padding: 20px 16px 32px; }

/* Dark-theme selects inside drawer (matches page finder) */
.tutto-drawer-selects {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tutto-drawer-selects #save_vehicle { width: 100%; justify-content: center; margin-top: 4px; }

/* ── RESPONSIVE ────────────────────────────────────────────── */

/* ── Mobile (≤767px) ── */
@media (max-width: 767px) {

    /* Plate always inline on mobile */
    .tutto-plate-desktop  { display: block !important; }
    .tutto-mobile-plate-btn { display: none !important; }

    /* Saved vehicle dropdown: prevent overflow outside screen */
    .tutto-finder-saved .tutto-cs-panel {
        min-width: 0;
        left: auto;
        right: 0;
        width: 80vw;
        max-width: 280px;
    }

    /* ─ Vehicle modal: bottom sheet ─ */
    .tutto-modal {
        padding: 0;
        align-items: flex-end;
        justify-content: flex-end;
    }
    .tutto-modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        overflow-y: auto;
        margin: 0;
    }
    /* Stack left/right columns vertically */
    .tutto-modal-body     { flex-direction: column; flex-wrap: nowrap; }
    .tutto-modal-left     { border-right: none; border-bottom: 1px solid #f0f0f0; padding: 16px; flex: none; }
    .tutto-modal-right    { border-radius: 0; padding: 16px 16px 32px; flex: none; }
    .tutto-modal-header   { padding: 16px 16px 12px; }
    .tutto-modal-header h3 { font-size: 16px; }
    .tutto-modal-or       { margin: 10px 0; }
    .tutto-modal-section  { margin-bottom: 14px; }

    /* Saved list compact */
    .tutto-saved-list  { gap: 6px; }
    .tutto-saved-item  { padding: 10px 12px; gap: 10px; }
    .tutto-saved-brand { font-size: 12px; }
    .tutto-saved-model,
    .tutto-saved-year  { font-size: 11px; }

    /* Brand filter bar */
    .tutto-bar-brands-list { display: none; }

}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
    .tutto-finder-section  { padding: 10px 14px; }
    .tutto-cs-trigger      { height: 46px; font-size: 14px; }
}

/* ── Mobile (≤767px): stack cols vertically ── */
@media (max-width: 767px) {
    .tutto-finder-layout {
        flex-direction: column;
    }
    .tutto-finder-col-left {
        flex: none;
        max-width: 100%;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .tutto-finder-col-right {
        flex: none;
        width: 100%;
    }
}

/* ── Brand logo block: product price area + category/search header strip (same markup/classes) ── */
.product-price-and-shipping .tutto-product-price-brand,
.tutto-cat-brand-filter .tutto-product-price-brand {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
}
.product-price-and-shipping .tutto-product-price-brand {
    margin: 12px 0 0;
}
.tutto-cat-brand-filter .tutto-product-price-brand {
    margin: 0;
}
.product-price-and-shipping .tutto-product-price-brand__img,
.tutto-cat-brand-filter .tutto-product-price-brand__img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    object-position: center center;
}
@media (max-width: 575px) {
    .product-price-and-shipping .tutto-product-price-brand__img,
    .tutto-cat-brand-filter .tutto-product-price-brand__img {
        max-height: 120px;
    }
}

/* Non-product listings: same block, width follows column */
.tutto-product-price-brand--listing .tutto-product-price-brand__img {
    max-height: 56px;
    object-position: center;
}

/* ── CATEGORY / SEARCH BRAND STRIP (displayHeaderCategory) ── */
/* .tutto-brand-strip: second class on same block for search+category shared markup */
.tutto-cat-brand-filter {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
    padding: 16px 0 8px;
    border-bottom: 1px solid #e8e8e8;
    box-sizing: border-box;
}
.tutto-cat-brand-filter__heading {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #222;
    letter-spacing: .02em;
}
.tutto-cat-brand-filter__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px 12px;
    align-items: stretch;
}
.tutto-cat-brand-filter__item-wrap {
    margin: 0;
    padding: 0;
    min-width: 0;
}
.tutto-cat-brand-filter__item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 100px;
    padding: 8px;
    border: 1.5px solid #e4e4e4;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background: #fafafa;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.tutto-cat-brand-filter__item:hover {
    border-color: #fab505;
    box-shadow: 0 4px 14px rgba(250, 181, 5, .18);
    background: #fffef6;
    text-decoration: none;
    color: #111;
}
.tutto-cat-brand-filter__item.is-active {
    border-color: #fab505;
    background: #fff8e6;
    box-shadow: 0 0 0 2px rgba(250, 181, 5, .25);
}
/* Strip slot: same wrapper as product page; --all uses inner span */
.tutto-cat-brand-filter .tutto-product-price-brand--strip {
    flex: 1 1 auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    width: 100%;
    overflow: hidden;
}
.tutto-cat-brand-filter .tutto-product-price-brand--strip .tutto-cat-brand-filter__logo--all {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    align-self: stretch;
    width: 100%;
    min-height: 72px;
    background: linear-gradient(135deg, #eee 0%, #ddd 100%);
    border-radius: 4px;
}
.tutto-cat-brand-filter .tutto-product-price-brand--strip .tutto-cat-brand-filter__logo--all::after {
    content: '✦';
    font-size: 22px;
    color: #888;
    line-height: 1;
    margin: auto;
}
@media (max-width: 575px) {
    .tutto-cat-brand-filter__list {
        grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
        gap: 8px 10px;
    }
    .tutto-cat-brand-filter__item {
        min-height: 88px;
        padding: 6px;
    }
    .tutto-cat-brand-filter .tutto-product-price-brand--strip,
    .tutto-cat-brand-filter .tutto-product-price-brand--strip .tutto-cat-brand-filter__logo--all {
        min-height: 56px;
    }
}

/* ── CATEGORY DESCRIPTION (bottom) ────────────────────────── */
.tutto-cat-desc-bottom {
    padding: 20px 0 10px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}
.tutto-cat-desc-truncated,
.tutto-cat-desc-full {
    margin-bottom: 8px;
}
a.tutto-cat-desc-toggle {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #fab505;
    text-decoration: underline;
    cursor: pointer;
    transition: color .15s;
}
a.tutto-cat-desc-toggle:hover {
    color: #e09e00;
    text-decoration: underline;
}

/* ── PRODUCT INCOMPATIBILITY BANNER ───────────────────────── */
.tutto-incompat-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 5px solid #e65100;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #7a3800;
    position: relative;
}
.tutto-incompat-banner .material-icons {
    font-size: 22px;
    color: #e65100;
    flex-shrink: 0;
}
.tutto-incompat-banner strong {
    font-weight: 700;
    margin-right: 4px;
}
.tutto-incompat-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #7a3800;
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
}
.tutto-incompat-close:hover { color: #e65100; }

/* Sub-SKU related products (displayFooterProduct) */
.tutto-subsku-products #tutto-subsku-spe_res .products {
    position: relative;
    overflow: visible;
}
/* Carousel prev/next: theme .customNavigation uses empty <i> + mask ::before; footer context often breaks that.
   Use real buttons + Material Icons (same pattern as elsewhere in this module). */
.tutto-subsku-products .customNavigation.tutto-subsku-nav {
    pointer-events: none;
}
.tutto-subsku-products .customNavigation.tutto-subsku-nav .tutto-subsku-nav-btn {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    line-height: 0;
}
.tutto-subsku-products .customNavigation.tutto-subsku-nav .tutto-subsku-nav-btn:hover {
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}
.tutto-subsku-products .customNavigation.tutto-subsku-nav .tutto-subsku-nav-btn .material-icons {
    font-size: 26px;
    color: #222;
    line-height: 1;
}
.tutto-subsku-products .customNavigation.tutto-subsku-nav .tutto_subsku_prev {
    left: -8px;
}
.tutto-subsku-products .customNavigation.tutto-subsku-nav .tutto_subsku_next {
    right: -8px;
}
@media (min-width: 1200px) {
    .tutto-subsku-products .customNavigation.tutto-subsku-nav .tutto_subsku_prev {
        left: -18px;
    }
    .tutto-subsku-products .customNavigation.tutto-subsku-nav .tutto_subsku_next {
        right: -18px;
    }
}
.tutto-subsku-products .tutto-subsku-brand-logo {
    margin-bottom: 8px;
    text-align: center;
}
.tutto-subsku-products .tutto-subsku-brand-logo img {
    display: inline-block;
    vertical-align: middle;
}
.tutto-subsku-products .tutto-subsku-item .product-miniature {
    margin-top: 0;
}

/* ── Product page section tabs (displayReassurance) — single row, tab strip only ── */
.tutto-prd-tabs {
    margin: 12px 0 0;
    width: 100%;
    max-width: 100%;
}
.tutto-prd-tabs__list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    border-bottom: 2px solid #ddd;
    box-sizing: border-box;
}
.tutto-prd-tabs__item {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    display: flex;
}
.tutto-prd-tabs__item + .tutto-prd-tabs__item .tutto-prd-tabs__btn {
    border-left-width: 0;
}
.tutto-prd-tabs__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    min-height: 42px;
    padding: 8px 4px;
    box-sizing: border-box;
    font-size: clamp(10px, 2.4vw, 13px);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    pointer-events: auto;
    opacity: 1;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tutto-prd-tabs__btn:not(.is-active) {
    background: #fafafa;
}
.tutto-prd-tabs__btn:hover,
.tutto-prd-tabs__btn:focus {
    color: #000;
    background: #fffef5;
    border-color: #b8b8b8;
    outline: none;
}
.tutto-prd-tabs__btn:focus-visible {
    outline: 2px solid #fab505;
    outline-offset: -2px;
    z-index: 1;
    position: relative;
}
.tutto-prd-tabs__btn.is-active {
    color: #000;
    background: #fff;
    border-color: #bbb;
    border-bottom: 2px solid #fff;
    margin-bottom: -2px;
    padding-bottom: 10px;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 2px 0 #fab505;
}

/* Scroll targets below the fold (sticky header offset) */
#tutto-prd-details.tutto-prd-anchor,
#tutto-fitting-details.tutto-prd-anchor,
#tutto-prd-ref.tutto-prd-anchor {
    scroll-margin-top: 100px;
}

/* Button inside no-vehicle compat alert */
.tutto-compat-alert .tutto-cpb-btn {
    margin-left: 12px;
    vertical-align: middle;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .tutto-compat-alert .tutto-cpb-btn {
        display: block;
        margin: 8px 0 0;
        width: 100%;
        text-align: center;
    }
}
