/* Module VehicleMax - Recherche de véhicule */

#vehicle_search_block {
	background: #323232;
	max-width: 100%;
	padding: 8px 10px 0px 15px;
	margin: 0;
	border: 1px solid #323232;
    border-radius: 8px;
	z-index: 5;
	position: relative;
}

.vehicle_search_form {
	background: transparent;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 15px;
}

#vehicle_search_block .h4 {
    color: #fff;
    font-size: 14px;
    margin: 0 10px 5px 0;
    display: inline-block;
}

.vehicle_search_form p {
    margin: 0;
    display: inline-block;
}

.vehicle_select {
    min-width: 140px;
    background: #fff;
    border: 2px solid #2A99CE;
    border-radius: 4px;
    padding: 8px 12px;
    height: 38px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    position: relative;
    z-index: 100;
}

.vehicle_select:disabled {
    background: #e9ecef;
    border-color: #ccc;
    color: #999;
    opacity: 0.6;
    cursor: not-allowed;
}

#vehicle_search_btn {
    background: #242c44;
    color: #fff;
    border: 2px solid #aaa;
    border-radius: 4px;
    padding: 8px 20px;
    height: 38px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    line-height: 1;
}

#vehicle_search_btn:disabled {
    border-color: #ccc;
    color: #999;
    opacity: 0.6;
    cursor: not-allowed;
}

#vehicle_search_btn:hover:not(:disabled) {
    background: #3093C4;
}

#selected_vehicle_display {
	color: #fff;
	font-size: 14px;
	padding: 0 0 10px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

#selected_vehicle_display strong {
	font-weight: 700;
}

.vehicle_name_link {
	color: #ff782c;
	text-decoration: none;
	position: relative;
	transition: all 0.3s ease;
	padding: 5px 10px;
	border-radius: 4px;
	display: inline-block;
}

.vehicle_name_link:hover {
	color: #fff;
	background: rgba(42, 153, 206, 0.3);
	text-decoration: none;
}

.vehicle_name_link strong {
	color: inherit;
}

/* Tooltip pour le nom du véhicule */
.vehicle_name_link[data-tooltip]::before {
	content: attr(data-tooltip);
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	background: linear-gradient(135deg, #FF782C 0%, #E5651F 100%);
	color: #fff;
	padding: 12px 18px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 99999;
	box-shadow: 0 6px 20px rgba(255, 120, 44, 0.4);
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.vehicle_name_link[data-tooltip]::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-bottom-color: #FF782C;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 99999;
}

.vehicle_name_link[data-tooltip]:hover::before {
	opacity: 1;
	transform: translateX(-50%) translateY(12px);
}

.vehicle_name_link[data-tooltip]:hover::after {
	opacity: 1;
}

.vehicle_separator {
	color: #666;
	margin: 0 5px;
}

.vehicle_action {
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	font-weight: 600;
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.vehicle_action_change {
	margin-left: auto;
	background: rgba(42, 153, 206, 0.15);
	border: 2px solid rgba(42, 153, 206, 0.3);
	gap: 8px;
	padding: 8px 15px;
}

.vehicle_change_text {
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
}

.vehicle_action_change i {
	font-size: 16px;
	color: #ff782c;
}

.vehicle_action_change:hover {
	background: rgba(42, 153, 206, 0.3);
	border-color: #ff782c;
}

.vehicle_action_change:hover .vehicle_change_text {
	color: #fff;
}

.vehicle_action_change:hover i {
	color: #fff;
	animation: rotate 0.6s ease-in-out;
}

.vehicle_action_garage {
	background: rgba(76, 175, 80, 0.15);
	border: 2px solid rgba(76, 175, 80, 0.3);
}

.vehicle_action_garage i {
	font-size: 16px;
	color: #4CAF50;
}

.vehicle_action_garage:hover {
	background: rgba(76, 175, 80, 0.3);
	border-color: #4CAF50;
}

.vehicle_action_garage:hover i {
	color: #fff;
}

.vehicle_action_remove {
	background: transparent;
	border: none;
}

.vehicle_action_remove i {
	font-size: 18px;
	color: #6c757d;
}

.vehicle_action_remove:hover {
	background: transparent;
	border: none;
}

.vehicle_action_remove:hover i {
	color: #dc3545;
	transform: scale(1.15);
	transition: all 0.2s ease;
}

@keyframes rotate {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.vehicle_action:hover {
	background: rgba(42, 153, 206, 0.2);
}

.vehicle_icon {
	font-size: 18px;
	display: inline-block;
	filter: grayscale(100%);
	opacity: 0.7;
	transition: all 0.2s ease;
}

.vehicle_action_save:hover .vehicle_icon {
	filter: grayscale(0%);
	opacity: 1;
	transform: scale(1.15);
}

/* Tooltip CSS personnalisé */
.vehicle_action[data-tooltip] {
	position: relative;
}

.vehicle_action[data-tooltip]::before {
	content: attr(data-tooltip);
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	background: linear-gradient(135deg, #FF782C 0%, #E5651F 100%);
	color: #fff;
	padding: 12px 18px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 99999;
	box-shadow: 0 6px 20px rgba(255, 120, 44, 0.4);
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.vehicle_action[data-tooltip]::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-bottom-color: #FF782C;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 99999;
}

.vehicle_action[data-tooltip]:hover::before {
	opacity: 1;
	transform: translateX(-50%) translateY(12px);
}

.vehicle_action[data-tooltip]:hover::after {
	opacity: 1;
}

/* Marques populaires */
.vehicle_select option.popular-brand {
    font-weight: 700;
    color: #2A99CE;
    background: #f0f8ff;
}

.vehicle_select option.brand-separator {
    font-size: 10px;
    color: #999;
    text-align: center;
    background: #f5f5f5;
}

#module-vehiclepmq-compat #columns {
	margin-bottom: 40px;
}

.badge-info {
	color: blue;
}

/* Badge de compatibilité sur la fiche produit */
.compatibility-badge {
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.compatibility-badge.compatible {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.compatibility-badge.maybe {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

.compatibility-badge.incompatible {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.compatibility-badge i {
    font-size: 32px;
}

.compatibility-badge.compatible i {
    color: #28a745;
}

.compatibility-badge.maybe i.fa.fa-list {
	color: #000;
	transition: 0.3s all;
}

.compatibility-badge.maybe i,
.compatibility-badge.maybe a:hover i.fa.fa-list  {
    color: #ffc107;
}

.compatibility-badge.incompatible i {
    color: #dc3545;
}

.compatibility-text {
    flex: 1;
}

.compatibility-text strong {
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.compatibility-text small {
    font-size: 14px;
    opacity: 0.9;
}

.compat-check-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
    vertical-align: middle;
}

.compat-check-btn i {
    font-size: 14px;
    line-height: 1;
    margin: 0;
}

.compat-check-btn span {
    line-height: 1.5;
    vertical-align: middle;
}

/* Dropdown personnalisé */
.custom-dropdown {
    position: relative;
    display: inline-block;
    min-width: 140px;
}

.custom-dropdown-display {
    background: #fff;
    border: 2px solid #2A99CE;
    border-radius: 4px;
    padding: 8px 12px;
    height: 38px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.custom-dropdown-display:hover {
    border-color: #1a7aa8;
    box-shadow: 0 2px 8px rgba(42, 153, 206, 0.2);
}

.custom-dropdown.disabled .custom-dropdown-display {
    background: #e9ecef;
    border-color: #ccc;
    color: #999;
    opacity: 0.6;
    cursor: not-allowed;
}

.custom-dropdown-arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
    color: #2A99CE;
}

.custom-dropdown.open .custom-dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #2A99CE;
    border-radius: 4px;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(42, 153, 206, 0.3);
    z-index: 1000;
    display: none;
    min-width: 140px;
}

#id_model + .custom-dropdown .custom-dropdown-panel {
    min-width: 250px;
}

/* Dropdown version : sélecteur fixe, panel large */
#id_version + .custom-dropdown {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
}

#id_version + .custom-dropdown .custom-dropdown-display {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#id_version + .custom-dropdown .custom-dropdown-panel {
    min-width: 450px;
    width: max-content;
    max-width: 600px;
    left: 0;
}

#id_version + .custom-dropdown .custom-dropdown-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Majuscules uniquement pour le type */
#id_type + .custom-dropdown .custom-dropdown-display,
#id_type + .custom-dropdown .custom-dropdown-item {
    text-transform: uppercase;
}

.custom-dropdown.open .custom-dropdown-panel {
    display: block;
}

.custom-dropdown-search {
    width: 100%;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.custom-dropdown-search:focus {
    outline: none;
    border-bottom-color: #2A99CE;
}

.custom-dropdown-search::placeholder {
    color: #999;
    font-weight: 400;
}

.custom-dropdown-list {
    max-height: 300px;
    overflow-y: auto;
}

.custom-dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.custom-dropdown-item:hover {
    background: #e8f4f8;
    color: #2A99CE;
}

.custom-dropdown-item.selected {
	background: #2A99CE;
	color: #fff;
	font-weight: 700;
	display: none !important;
}

.custom-dropdown-item.popular {
    font-weight: 700;
    color: #2A99CE;
}

.custom-dropdown-separator {
	padding: 0;
	border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {

    /* Version dropdown adapté au mobile */
    #id_version + .custom-dropdown {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    #id_version + .custom-dropdown .custom-dropdown-panel {
        min-width: 280px;
        max-width: calc(100vw - 40px);
        width: max-content;
        left: 0;
    }

    .vehicle_search_form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .vehicle_search_form p {
        margin: 0;
    }

    .vehicle_search_form p:last-child {
        grid-column: 1 / -1;
    }

    .custom-dropdown {
        width: 100%;
    }

    .compatibility-badge {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Masquer le texte "Lancer une nouvelle recherche" en mobile, garder seulement l'icône */
    .vehicle_change_text {
        display: none;
    }

    /* Ajuster le bouton changer en mobile */
    .vehicle_action_change {
        padding: 8px 12px;
        gap: 0;
    }

    /* Ajuster l'affichage du véhicule sélectionné en mobile */
    #selected_vehicle_display {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 13px;
    }

    .vehicle_separator {
        display: none;
    }

    .vehicle_action {
        padding: 5px 8px;
    }
}

/* ============================================
   FILTRE DE CATÉGORIES - PAGE COMPATIBILITÉ
   ============================================ */

/* Bouton filtrer */
.filters-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-active-badge {
	position: absolute;
	top: -8px;
	right: -8px;
	background: #28a745;
	color: white;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 700;
	border: 2px solid white;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.filter-active-badge i {
	margin: 0;
	padding: 0;
	line-height: 1;
}

/* Sidebar offcanvas */
.filter-list-vertical-sidebar {
    width: 100%;
}

/* Forcer 1 colonne dans la sidebar */
#categoryFilterSidebar .filter-list-vertical {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

#categoryFilterSidebar .all-categories-full {
    margin-bottom: 0;
}

#category-filter {
    background: #fff;
    margin: 20px 0;
}

.category-filter-container {
    width: 100%;
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #2A99CE 0%, #1e7ba8 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-header:hover {
    background: linear-gradient(135deg, #1e7ba8 0%, #176a8f 100%);
}

.filter-header i {
    font-size: 18px;
}

.collapse-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.filter-header[aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

.active-filter-indicator {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remove-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.remove-filter-btn:hover {
    background: rgba(231, 76, 60, 0.9);
    color: white;
    transform: scale(1.1);
}

.remove-filter-btn i {
    font-size: 14px;
}

.category-filter-list {
    padding: 0;
    background: #f8f9fa;
    max-height: 650px;
    overflow-y: auto;
}

/* Bouton "Toutes les catégories" pleine largeur */
.all-categories-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border: none;
    border-bottom: 3px solid #2A99CE;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.all-categories-full i.fa-th {
    font-size: 18px;
    color: #2A99CE;
}

.all-categories-full .cat-name {
    flex: 1;
    text-align: left;
}

.all-categories-full .badge {
    background: rgba(42, 153, 206, 0.15);
    color: #2A99CE;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.all-categories-full:hover {
    background: #e8f4f8;
    box-shadow: inset 4px 0 0 #2A99CE;
}

.all-categories-full.active {
    background: #2A99CE;
    color: #fff;
}

.all-categories-full.active i,
.all-categories-full.active .cat-name {
    color: #fff;
}

.all-categories-full.active .badge {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Champ de recherche */
.category-search-container {
    padding: 15px 20px;
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.category-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.category-search-wrapper .fa-search {
    position: absolute;
    left: 15px;
    color: #2A99CE;
    font-size: 16px;
    pointer-events: none;
}

.category-search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.category-search-input:focus {
    outline: none;
    border-color: #2A99CE;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(42, 153, 206, 0.1);
}

.category-search-input::placeholder {
    color: #999;
}

.clear-search-btn {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.filter-list-vertical {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    padding: 10px 0;
}

/* Responsive columns */
@media (min-width: 768px) {
    .filter-list-vertical {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .filter-list-vertical {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1440px) {
    .filter-list-vertical {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #e8e8e8;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: auto;
}

.category-filter-item i {
    font-size: 16px;
    color: #2A99CE;
    flex-shrink: 0;
}

.category-filter-item .cat-name {
    flex: 1;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}

/* Masquer le bloc "Catégories de produits" sur les pages vehiclemax */
#module-vehiclemax-compat .block-categories {
    display: none !important;
}

/* Sidebar filtre catégories vehiclemax */
#search_filters .facet-checkbox {
    list-style: none;
    padding: 0;
    margin: 0;
}

#search_filters .facet-checkbox li {
    margin: 0;
}

#search_filters .category-parent {
    border-bottom: 1px solid #eee;
}

#search_filters .parent-category-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5px;
}

#search_filters .parent-link {
    flex: 1;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

#search_filters .parent-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 3px;
    transition: background 0.2s;
    margin-left: 8px;
}

#search_filters .parent-toggle:hover {
    background: #e8f4f8;
}

#search_filters .parent-toggle .material-icons {
    font-size: 20px;
    color: #2A99CE;
}

#search_filters .parent-toggle .remove {
    display: none;
}

#search_filters .parent-toggle.open .add {
    display: none;
}

#search_filters .parent-toggle.open .remove {
    display: inline;
}

#search_filters .category-children {
    list-style: none;
    padding: 0 0 0 20px;
    margin: 0;
    background: #fafafa;
}

#search_filters .category-children li {
    border-bottom: 1px solid #f0f0f0;
}

#search_filters .category-children .facet-label {
    padding: 6px 10px;
    display: block;
}

#search_filters .category-children a {
    text-decoration: none;
    font-size: 13px;
}

#search_filters .facet-label.active a {
    color: #2A99CE;
    font-weight: 700;
}

#search_filters .magnitude {
    font-size: 11px;
    color: #999;
    margin-left: 4px;
}

/* Accordéon des catégories parentes */
.category-parent-accordion {
    margin-bottom: 2px;
}

.category-parent-header {
    cursor: pointer;
    background: #e8f4f8;
    border-left: 4px solid #2A99CE;
    font-weight: 700;
    font-size: 15px;
    color: #1e7ba8;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    user-select: none;
}

.category-parent-header:hover {
    background: #d4ebf5;
    box-shadow: inset 4px 0 0 #2A99CE;
}

.category-parent-header .toggle-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
    color: #2A99CE;
}

.category-parent-header .fa-folder {
    color: #2A99CE;
}

.category-parent-header .cat-name {
    flex: 1;
}

.category-parent-header .badge {
    background: rgba(42, 153, 206, 0.2);
    color: #1e7ba8;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.category-children {
    background: #fff;
}

.category-child {
    border-left: 4px solid transparent !important;
    padding-left: 45px !important;
}

/* Indentation pour l'arborescence */
.category-filter-item.indent-level-0 {
    font-weight: 700;
    font-size: 15px;
    background: #f8f9fa;
    border-left: 4px solid #2A99CE;
    padding: 12px 16px;
    break-after: avoid;
    page-break-after: avoid;
}

.category-filter-item.indent-level-1 {
    padding-left: 45px;
    background: #fff;
    font-weight: 400;
    font-size: 13px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.category-filter-item.indent-level-2 {
    padding-left: 65px;
    background: #fff;
    font-size: 13px;
    font-weight: 400;
    break-inside: avoid;
    page-break-inside: avoid;
}

.category-filter-item.indent-level-3 {
    padding-left: 85px;
    background: #fff;
    font-size: 13px;
    font-weight: 400;
    break-inside: avoid;
    page-break-inside: avoid;
}

.category-filter-item:hover {
    background: #e8f4f8 !important;
    border-left-color: #2A99CE;
    color: #2A99CE;
    box-shadow: inset 4px 0 0 #2A99CE;
}

.category-filter-item.active {
    background: #2A99CE !important;
    border-left-color: #1e7ba8;
    color: #fff;
}

.category-filter-item.active i {
    color: #fff;
}

.category-filter-item.active .cat-name,
.category-filter-item.active .badge {
    color: #fff;
}

.category-filter-item.active:hover {
    background: #1e7ba8 !important;
    box-shadow: inset 4px 0 0 #176a8f;
}

.category-filter-item .badge {
    background: rgba(42, 153, 206, 0.15);
    color: #2A99CE;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.category-filter-item.active .badge {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

@media (max-width: 768px) {

    .filter-header {
        flex-wrap: wrap;
    }
    
    .active-filter-indicator {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .category-filter-item.indent-level-1 {
        padding-left: 30px;
    }
    
    .category-filter-item.indent-level-2 {
        padding-left: 45px;
    }
    
    .category-filter-item.indent-level-3 {
        padding-left: 60px;
    }
}

@media (min-width: 768.98px) {

    #vehicle_search_block {
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px);
    }
}

/* ============================================
   GARAGE - BOUTONS ACTIONS
   ============================================ */

/* Espacement des boutons dans la colonne Actions du garage */
.btn.btn-outline-secondary.btn-sm,
.btn.btn-outline-primary.btn-sm.view-products {
    margin-right: 5px;
}

/* Améliorer le style du bouton désactivé */
.btn.btn-outline-secondary.btn-sm:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Style pour les lignes actives dans le tableau */
.table-success {
    background-color: rgba(40, 167, 69, 0.1) !important;
}

/* ============================================
   FILTRES CATÉGORIES - PAGE COMPAT
   ============================================ */

/* Bordure supérieure pour les sections de facettes */
#search_filters .facet {
    border-top: 1px solid #ebebeb;
    padding-top: 1.875rem;
    padding-bottom: 1rem;
}

/* Masquer la left-column sur mobile et tablette pour les pages compat */
@media (max-width: 991px) {
    body[class*="module-vehiclemax"] #left-column {
        display: none !important;
    }
    #search_filters {
        height: auto;
    }
}

/* Masquer la scrollbar webkit si le contenu ne dépasse pas */
body[class*="module-vehiclemax"] .filters-canvas::-webkit-scrollbar {
    width: 5px;
}

body[class*="module-vehiclemax"] .filters-canvas::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

body[class*="module-vehiclemax"] .filters-canvas::-webkit-scrollbar-track {
    background-color: transparent;
}

/* Corriger l'affichage des badges sur les produits sans image */
body#product .product-cover-container {
    min-height: 60px !important;
}

body#product .product-cover-container .product-flags {
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

/* Masquer la colonne de gauche vide sur les pages produit */
body#product #left-column {
    display: none !important;
}

/* Ajuster la largeur du contenu principal quand la colonne de gauche est masquée */
body#product #content-wrapper {
    width: 100% !important;
}

body#product #content {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}