/*
Theme Name: Novaride Child
Template:   novaride
Theme URI: https://1.envato.market/nLr31o
Description: Novaride Child Theme
Author: Awaiken
Author URI: https://awaikenthemes.com/
Version: 1.0.0
Text Domain: novaride-child
*/

/* =========================================================
   CCMB'LOC — Single matériel : Sidebar moderne
   ========================================================= */

/* ── Variables ─────────────────────────────────────────── */
:root {
	--ccmb-red:       #c0392b;
	--ccmb-red-dark:  #a93226;
	--ccmb-red-light: #fdf2f2;
	--ccmb-grey-bg:   #f8f8f8;
	--ccmb-border:    #ececec;
	--ccmb-text:      #2c2c2c;
	--ccmb-muted:     #6b6b6b;
	--ccmb-shadow:    0 2px 20px rgba(0,0,0,.07);
	--ccmb-radius:    14px;
}

/* ── Sidebar wrapper ────────────────────────────────────── */
.ccmb-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 24px;
}

/* ── Card de base ───────────────────────────────────────── */
.ccmb-card {
	background: #fff;
	border-radius: var(--ccmb-radius);
	box-shadow: var(--ccmb-shadow);
	overflow: hidden;
}

/* ── En-tête de card ────────────────────────────────────── */
.ccmb-card-header {
	display: flex;
	align-items: center;
	gap: 9px;
	background: var(--ccmb-red);
	color: #fff;
	padding: 11px 18px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
}
.ccmb-card-header i {
	font-size: 14px;
	opacity: .9;
}

/* ── Card Catégorie ─────────────────────────────────────── */
.ccmb-category-body {
	padding: 10px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ccmb-cat-parent,
.ccmb-cat-child {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	border-radius: 8px;
	padding: 7px 10px;
	transition: background .15s;
}
.ccmb-cat-parent {
	font-weight: 700;
	font-size: 14px;
	color: var(--ccmb-red);
	background: var(--ccmb-red-light);
}
.ccmb-cat-parent:hover {
	background: #f5e0de;
	color: var(--ccmb-red-dark);
}
.ccmb-cat-parent i {
	font-size: 11px;
	color: var(--ccmb-red);
}
.ccmb-cat-child {
	font-size: 13.5px;
	color: var(--ccmb-text);
	background: var(--ccmb-grey-bg);
	margin-left: 14px;
}
.ccmb-cat-child:hover {
	background: #efefef;
	color: var(--ccmb-red);
}
.ccmb-cat-child i {
	font-size: 11px;
	color: var(--ccmb-muted);
}

/* ── Card Tarif ─────────────────────────────────────────── */
.ccmb-card-price {
	background: linear-gradient(135deg, var(--ccmb-red) 0%, #e74c3c 100%);
	padding: 18px 20px;
	text-align: center;
}
.ccmb-price-label {
	color: rgba(255,255,255,.8);
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: 4px;
}
.ccmb-price-amount {
	color: #fff;
	font-size: 38px;
	font-weight: 800;
	line-height: 1;
}
.ccmb-price-currency {
	font-size: 22px;
	font-weight: 600;
	margin-left: 2px;
}
.ccmb-price-period {
	display: block;
	font-size: 13px;
	font-weight: 400;
	color: rgba(255,255,255,.75);
	margin-top: 4px;
}

/* ── Card Caractéristiques ──────────────────────────────── */
.ccmb-carac-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ccmb-carac-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-bottom: 1px solid var(--ccmb-border);
	transition: background .12s;
}
.ccmb-carac-row:last-child {
	border-bottom: none;
}
.ccmb-carac-row:nth-child(even) {
	background: var(--ccmb-grey-bg);
}
.ccmb-carac-row:hover {
	background: var(--ccmb-red-light);
}

.ccmb-carac-icon {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	background: var(--ccmb-red-light);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ccmb-red);
	font-size: 13px;
}
.ccmb-carac-label {
	flex: 1;
	font-size: 13px;
	font-weight: 600;
	color: var(--ccmb-text);
	line-height: 1.3;
}
.ccmb-carac-value {
	font-size: 13px;
	color: var(--ccmb-muted);
	text-align: right;
	white-space: nowrap;
}

/* ── Cards CACES & Accessoires ──────────────────────────── */
.ccmb-badges-body {
	padding: 14px 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ccmb-badge {
	display: inline-flex;
	align-items: center;
	border-radius: 20px;
	padding: 5px 14px;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity .15s;
}
.ccmb-badge:hover { opacity: .8; }

.ccmb-badge-caces {
	background: #1a3a5c;
	color: #fff;
}
.ccmb-badge-acc {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #c8e6c9;
}

/* ── Card CTA ────────────────────────────────────────────── */
.ccmb-card-cta {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ccmb-btn-devis,
.ccmb-btn-wa {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	border-radius: 30px;
	padding: 13px 20px;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none;
	transition: transform .15s, box-shadow .15s;
}
.ccmb-btn-devis:hover,
.ccmb-btn-wa:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.ccmb-btn-devis {
	background: var(--ccmb-red);
	color: #fff;
}
.ccmb-btn-devis:hover { background: var(--ccmb-red-dark); color: #fff; }

.ccmb-btn-wa {
	background: #25d366;
	color: #fff;
}
.ccmb-btn-wa:hover { background: #1ebe57; color: #fff; }

/* ── Image principale ───────────────────────────────────── */
.ccmbloc-main-image {
	width: 100%;
	height: auto;
	border-radius: 12px;
	margin-bottom: 24px;
	display: block;
}

/* ── Description ────────────────────────────────────────── */
.car-description-content {
	font-size: 15px;
	line-height: 1.75;
	color: #444;
}

/* ── Responsive single ──────────────────────────────────── */
@media (max-width: 991px) {
	.ccmb-sidebar {
		position: static;
		margin-bottom: 32px;
	}
	.ccmb-price-amount { font-size: 30px; }
}

/* =========================================================
   CCMB'LOC — Sidebar catalogue (archive + taxonomie)
   ========================================================= */

.ccmb-filter-sidebar {
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: sticky;
	top: 24px;
}

/* ── Card filtre ─────────────────────────────────────────── */
.ccmb-filter-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 2px 18px rgba(0,0,0,.07);
	overflow: hidden;
}

.ccmb-filter-header {
	display: flex;
	align-items: center;
	gap: 9px;
	background: var(--ccmb-red);
	color: #fff;
	padding: 11px 18px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
}
.ccmb-filter-header i { font-size: 14px; opacity: .9; }

.ccmb-filter-body {
	padding: 12px 14px;
}

/* ── Recherche SF Pro ────────────────────────────────────── */
.ccmb-search-body .searchandfilter {
	display: flex;
	gap: 0;
}
.ccmb-search-body .searchandfilter ul,
.ccmb-search-body .searchandfilter li {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}
.ccmb-search-body .searchandfilter input[type="search"],
.ccmb-search-body .searchandfilter input[type="text"] {
	width: 100%;
	border: 2px solid var(--ccmb-border);
	border-radius: 30px;
	padding: 10px 18px;
	font-size: 13.5px;
	outline: none;
	transition: border-color .2s;
	box-sizing: border-box;
}
.ccmb-search-body .searchandfilter input[type="search"]:focus,
.ccmb-search-body .searchandfilter input[type="text"]:focus {
	border-color: var(--ccmb-red);
}
/* Masquer le bouton submit SF dans la zone recherche seule */
.ccmb-search-body .searchandfilter input[type="submit"] {
	display: none;
}

/* ── Catégories ─────────────────────────────────────────── */
.ccmb-cats-body {
	padding: 8px 10px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* Lien "Tous" */
.ccmb-cat-all {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ccmb-text);
	text-decoration: none;
	background: var(--ccmb-grey-bg);
	margin-bottom: 4px;
	transition: background .15s;
}
.ccmb-cat-all:hover,
.ccmb-cat-all.active {
	background: var(--ccmb-red-light);
	color: var(--ccmb-red);
}
.ccmb-cat-all i { color: var(--ccmb-muted); font-size: 13px; }
.ccmb-cat-all.active i { color: var(--ccmb-red); }

/* Compteur commun */
.ccmb-cat-count {
	margin-left: auto;
	background: var(--ccmb-border);
	color: var(--ccmb-muted);
	font-size: 11px;
	font-weight: 600;
	border-radius: 10px;
	padding: 1px 7px;
	flex-shrink: 0;
}

/* Groupe parent */
.ccmb-cat-group {
	border-radius: 10px;
	overflow: hidden;
}

.ccmb-cat-parent-row {
	display: flex;
	align-items: center;
	gap: 0;
}

.ccmb-cat-parent-link {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 10px 9px 12px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ccmb-text);
	text-decoration: none;
	border-radius: 10px 0 0 10px;
	transition: background .15s, color .15s;
}
.ccmb-cat-parent-link .ccmb-cat-arrow {
	font-size: 10px;
	color: var(--ccmb-muted);
	transition: transform .2s;
	flex-shrink: 0;
}
.ccmb-cat-parent-link:hover,
.ccmb-cat-parent-link.active {
	background: var(--ccmb-red-light);
	color: var(--ccmb-red);
}
.ccmb-cat-parent-link.active .ccmb-cat-arrow { color: var(--ccmb-red); }
.ccmb-cat-group.open .ccmb-cat-arrow { transform: rotate(90deg); }

/* Bouton toggle (+/-) */
.ccmb-cat-toggle {
	background: var(--ccmb-grey-bg);
	border: none;
	width: 34px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--ccmb-muted);
	font-size: 11px;
	border-radius: 0 10px 10px 0;
	transition: background .15s, color .15s;
	flex-shrink: 0;
}
.ccmb-cat-toggle:hover { background: var(--ccmb-red-light); color: var(--ccmb-red); }

/* Enfants */
.ccmb-cat-children {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s ease;
}
.ccmb-cat-group.open .ccmb-cat-children {
	max-height: 600px;
}

.ccmb-cat-child-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px 7px 30px;
	font-size: 13px;
	color: var(--ccmb-muted);
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: background .12s, color .12s, border-color .12s;
}
.ccmb-cat-child-link i { font-size: 10px; color: var(--ccmb-border); }
.ccmb-cat-child-link:hover,
.ccmb-cat-child-link.active {
	background: var(--ccmb-red-light);
	color: var(--ccmb-red);
	border-left-color: var(--ccmb-red);
}
.ccmb-cat-child-link.active i,
.ccmb-cat-child-link:hover i { color: var(--ccmb-red); }
.ccmb-cat-child-link.active .ccmb-cat-count {
	background: var(--ccmb-red);
	color: #fff;
}

/* ── Tarif slider ───────────────────────────────────────── */
.ccmb-price-body { padding: 16px 18px; }
#sf-price-slider {
	margin: 8px 0 14px;
}
.sf-price-display {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--ccmb-red);
	text-align: center;
	margin-bottom: 12px;
}

/* ── CACES badges ───────────────────────────────────────── */
.ccmb-caces-body {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 14px;
}
.ccmb-caces-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	background: #eef2f8;
	color: #1a3a5c;
	text-decoration: none;
	border: 1.5px solid #d0daea;
	transition: background .15s, border-color .15s;
}
.ccmb-caces-badge:hover,
.ccmb-caces-badge.active {
	background: #1a3a5c;
	color: #fff;
	border-color: #1a3a5c;
}
.ccmb-caces-badge span {
	font-weight: 400;
	opacity: .7;
}

/* ── SF Pro widget intégré ───────────────────────────────── */
.ccmb-sf-widget-card .widget { padding: 0; margin: 0; }
.ccmb-sf-widget-card .widget-title,
.ccmb-sf-widget-card p.sf-widget-title {
	background: var(--ccmb-red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	padding: 11px 18px;
	margin: 0;
}
.ccmb-sf-widget-card .searchandfilter { padding: 12px 14px; }
.ccmb-sf-widget-card .searchandfilter ul { list-style: none; margin: 0; padding: 0; }
.ccmb-sf-widget-card .searchandfilter h4 {
	font-size: 11px; font-weight: 700; text-transform: uppercase;
	letter-spacing: .07em; color: var(--ccmb-muted); margin: 10px 0 6px;
}
.ccmb-sf-widget-card .searchandfilter input[type="search"],
.ccmb-sf-widget-card .searchandfilter input[type="text"] {
	width: 100%; border: 2px solid var(--ccmb-border); border-radius: 30px;
	padding: 9px 16px; font-size: 13.5px; box-sizing: border-box; outline: none;
	transition: border-color .2s;
}
.ccmb-sf-widget-card .searchandfilter input[type="search"]:focus { border-color: var(--ccmb-red); }
.ccmb-sf-widget-card .searchandfilter label {
	display: flex; align-items: center; gap: 8px;
	font-size: 13px; padding: 5px 0; cursor: pointer; color: var(--ccmb-text);
}
.ccmb-sf-widget-card .searchandfilter label:hover { color: var(--ccmb-red); }
.ccmb-sf-widget-card .searchandfilter input[type="checkbox"],
.ccmb-sf-widget-card .searchandfilter input[type="radio"] {
	accent-color: var(--ccmb-red); width: 15px; height: 15px; cursor: pointer;
}
.ccmb-sf-widget-card .searchandfilter input[type="submit"] {
	background: var(--ccmb-red); color: #fff; border: none; border-radius: 30px;
	padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer;
	width: 100%; margin-top: 10px; transition: background .2s;
}
.ccmb-sf-widget-card .searchandfilter input[type="submit"]:hover { background: var(--ccmb-red-dark); }

/* ── Sliders caractéristiques ───────────────────────────── */
.ccmb-sliders-body { display: flex; flex-direction: column; gap: 18px; }

.ccmb-slider-wrap {
	padding-bottom: 4px;
	border-bottom: 1px solid var(--ccmb-border);
}
.ccmb-slider-wrap:last-of-type { border-bottom: none; }
.ccmb-slider-wrap.is-active .ccmb-slider-label { color: var(--ccmb-red); }

.ccmb-slider-label {
	display: flex; align-items: center; gap: 7px;
	font-size: 12.5px; font-weight: 700; color: var(--ccmb-text);
	margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em;
}
.ccmb-slider-label i:first-child {
	width: 22px; height: 22px; background: var(--ccmb-red-light);
	border-radius: 6px; display: flex; align-items: center; justify-content: center;
	color: var(--ccmb-red); font-size: 11px; flex-shrink: 0;
}
.ccmb-slider-label span { flex: 1; }

.ccmb-slider-reset {
	background: none; border: none; cursor: pointer;
	color: var(--ccmb-muted); font-size: 11px; padding: 2px 4px;
	border-radius: 4px; transition: color .15s;
}
.ccmb-slider-reset:hover { color: var(--ccmb-red); }

.ccmb-slider-display {
	font-size: 12px; font-weight: 600; color: var(--ccmb-red);
	text-align: center; margin-bottom: 6px;
}

/* En-tête avec bouton reset */
.ccmb-filter-header { position: relative; }
.ccmb-header-reset {
	margin-left: auto; background: rgba(255,255,255,.2); border: none;
	border-radius: 50%; width: 22px; height: 22px; cursor: pointer;
	color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center;
	transition: background .15s;
}
.ccmb-header-reset:hover { background: rgba(255,255,255,.4); }

.ccmb-reset-btn {
	width: 100%; background: var(--ccmb-grey-bg); border: 1.5px solid var(--ccmb-border);
	border-radius: 8px; padding: 8px; font-size: 12.5px; font-weight: 600;
	color: var(--ccmb-muted); cursor: pointer; transition: all .15s;
	display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ccmb-reset-btn:hover { border-color: var(--ccmb-red); color: var(--ccmb-red); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
	.ccmb-filter-sidebar { position: static; margin-bottom: 28px; }
}
