:root {
	--primary-color: #a8741a;
	--primary-hover: #c38b25;
	--bg-body: #fafafa;
	--card-bg: #ffffff;
	--text-main: #2b2b2b;
	--text-muted: #888888;
	--border-color: #eaeaea;
}

body {
	font-family: "Outfit", sans-serif;
	background-color: var(--bg-body);
	color: var(--text-main);
}

.hero-banner {
	background-size: cover;
	background-position: center;
	padding: 60px 0;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 40px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
	text-align: center;
}

.hero-banner h1 {
	font-weight: 700;
	color: var(--text-main);
	letter-spacing: -0.5px;
	font-size: 2.5rem;
}

.hero-banner p {
	color: var(--text-muted);
	font-size: 1.1rem;
	max-width: 600px;
	margin: 0 auto;
}

.form-check {
	margin-bottom: 0.1rem;
}

.filter-sidebar {
	background: var(--card-bg);
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	border: 1px solid var(--border-color);
}

.filter-heading {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 16px;
	color: var(--text-main);
	border-bottom: 2px solid var(--bg-body);
	padding-bottom: 8px;
}

.product-card {
	background: var(--card-bg);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
	transition: all 0.3s ease;
	border: 1px solid var(--border-color);
	height: 100%;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
	border-color: var(--primary-color);
	color: inherit;
}

.product-img-wrapper {
	position: relative;
	padding-top: 100%;
	overflow: hidden;
	background-color: #f8f8f8;
}

.product-img-wrapper img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.5s ease;
	padding: 10px;
}

.product-card:hover .product-img-wrapper:not(.dual-image) img {
	transform: scale(1.05);
}

.product-category-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	background: rgba(255, 255, 255, 0.95);
	color: var(--primary-color);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	z-index: 2;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-destock-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: #e74c3c;
	color: white;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	z-index: 2;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-details {
	padding: 20px;
	text-align: center;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.product-title {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--text-main);
}

.product-dims {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-bottom: 12px;
}

.product-price {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--primary-color);
}

/* Checkboxes styling */
.custom-checkbox .form-check-input:checked {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

/* Search bar */
.search-wrapper {
	position: relative;
}

.search-wrapper input {
	padding-left: 40px;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	box-shadow: none;
	background: #fdfdfd;
}

.search-wrapper input:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(168, 116, 26, 0.25);
	background: #fff;
}

.search-wrapper i {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
}

/* Pagination */
.pagination .page-link {
	color: var(--text-main);
	border: none;
	margin: 0 4px;
	border-radius: 6px;
}

.pagination .page-item.active .page-link {
	background-color: var(--primary-color);
	color: white;
	box-shadow: 0 2px 8px rgba(168, 116, 26, 0.4);
}

.btn-primary-custom {
	background-color: var(--primary-color);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	font-weight: 500;
	width: 100%;
	transition: all 0.3s ease;
}

.btn-primary-custom:hover {
	background-color: var(--primary-hover);
	color: #fff;
	transform: translateY(-2px);
}

.btn-helloasso {
	display: inline-flex;
	align-items: center;
	padding: 10px 24px;
	background-color: var(--primary-color);
	color: #fff;
	text-decoration: none;
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(168, 116, 26, 0.2);
	vertical-align: middle;
}

.btn-helloasso:hover {
	background-color: var(--primary-hover);
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(168, 116, 26, 0.3);
}

.btn-helloasso i {
	font-size: 1.1rem;
}

.btn-reset-custom {
	background-color: transparent;
	color: var(--text-muted);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 10px 20px;
	font-weight: 500;
	width: 100%;
	transition: all 0.3s ease;
	display: inline-block;
	text-align: center;
}

.btn-reset-custom:hover {
	background-color: #f1f1f1;
	color: var(--text-main);
}

.form-select-custom {
	border-radius: 8px;
	border: 1px solid var(--border-color);
	box-shadow: none;
	padding: 10px 15px;
}

.form-select-custom:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(168, 116, 26, 0.25);
}

.main-header {
	background-color: var(--card-bg);
	padding: 40px 0;
	text-align: center;
	border-bottom: 1px solid var(--border-color);
}

.main-header img {
	max-height: 80px;
	margin-bottom: 15px;
}

.main-header h1 {
	font-family: "Outfit", sans-serif;
	font-weight: 700;
	color: var(--text-main);
	margin-bottom: 5px;
	font-size: 2.5rem;
}

.main-header p {
	font-family: "Outfit", sans-serif;
	color: var(--text-muted);
	font-size: 1.1rem;
	margin-bottom: 0;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.footer-custom {
	background-color: var(--card-bg);
	border-top: 1px solid var(--border-color);
	padding: 40px 0 20px;
	margin-top: 60px;
	color: var(--text-muted);
}

.footer-custom a {
	color: var(--primary-color);
	text-decoration: none;
	transition: color 0.3s;
}

.footer-custom a:hover {
	color: var(--primary-hover);
}

.solidarity-section {
	background-color: var(--card-bg);
	border-radius: 16px;
	padding: 40px;
	box-shadow: 0 10px 40px rgba(168, 116, 26, 0.08);
	border: 1px solid rgba(168, 116, 26, 0.2);
	position: relative;
	margin-top: 1rem;
}

.solidarity-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 5px;
	height: 100%;
	background-color: var(--primary-color);
	border-top-left-radius: 16px;
	border-bottom-left-radius: 16px;
}

.badge-solidarity {
	background-color: rgba(168, 116, 26, 0.1);
	color: var(--primary-color);
	padding: 8px 16px;
	border-radius: 30px;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	display: inline-block;
}

.solidarity-section h2 {
	font-weight: 700;
	color: var(--text-main);
}

.icon-circle {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: rgba(168, 116, 26, 0.1);
	color: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	flex-shrink: 0;
}

.discover-link:hover {
	background: rgba(168, 116, 26, 0.06) !important;
	border-color: var(--primary-color) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(168, 116, 26, 0.12);
}

.info-section {
	background-color: var(--card-bg);
	padding: 80px 0;
	border-bottom: 1px solid var(--border-color);
	border-top: 1px solid var(--border-color);
}

.info-section h2 {
	font-weight: 700;
	color: var(--text-main);
	margin-bottom: 20px;
}

.info-section p {
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--text-muted);
	margin-bottom: 20px;
}

.info-image {
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	width: 100%;
	height: auto;
	object-fit: cover;
}

.destockage-header {
	text-align: center;
	padding: 60px 0 30px;
}

.destockage-header h2 {
	font-weight: 700;
	font-size: 2.5rem;
	color: var(--text-main);
}

.footer-simple {
	background-color: var(--text-main);
	color: #ffffff;
	padding: 20px 0;
	font-size: 0.9rem;
}

.footer-simple a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.3s;
}

.footer-simple a:hover {
	color: var(--primary-hover);
}

/* ===== DUAL IMAGE DIAGONAL SPLIT ===== */
.product-img-wrapper.dual-image .img-model {
	clip-path: polygon(0 0, 100% 0, 0 100%);
	z-index: 1;
	transition: transform 0.5s ease;
}

.product-img-wrapper.dual-image .img-type {
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
	z-index: 1;
	transition: transform 0.5s ease;
}

/* Diagonal separator line */
.product-img-wrapper.dual-image::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom right, transparent calc(50% - 1.5px), rgba(255, 255, 255, 0.95) calc(50% - 1.5px), rgba(255, 255, 255, 0.95) calc(50% + 1.5px), transparent calc(50% + 1.5px));
	z-index: 3;
	pointer-events: none;
}

/* Hover: uniform zoom for dual-image cards */
.product-card:hover .product-img-wrapper.dual-image .img-model,
.product-card:hover .product-img-wrapper.dual-image .img-type {
	transform: scale(1.05);
}

/* ===== MOBILE FILTER STYLES ===== */

/* Toggle button - fixed at bottom-left on mobile */
.mobile-filter-toggle {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.mobile-filter-toggle.visible {
	opacity: 1;
	pointer-events: auto;
}

.mobile-filter-toggle .btn-filter-toggle {
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 50px;
	box-shadow: 0 4px 20px rgba(168, 116, 26, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background-color: var(--primary-color);
	color: #fff;
	border: none;
	transition: all 0.3s ease;
	font-family: "Outfit", sans-serif;
}

.mobile-filter-toggle .btn-filter-toggle:hover {
	background-color: var(--primary-hover);
	transform: translateX(-50%) translateY(-2px);
	box-shadow: 0 6px 25px rgba(168, 116, 26, 0.45);
}

.mobile-filter-toggle .filter-count {
	background: rgba(255, 255, 255, 0.3);
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: bold;
	min-width: 20px;
	text-align: center;
}

.mobile-filter-toggle .filter-count:empty {
	display: none;
}

/* Overlay behind sidebar */
.mobile-filter-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	backdrop-filter: blur(2px);
}

.mobile-filter-overlay.active {
	display: block;
	opacity: 1;
}

/* Mobile slide-in header */
.mobile-filter-header {
	display: none; /* hidden on desktop */
}

.btn-close-filters {
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	padding: 5px;
	color: var(--text-muted);
	transition: color 0.2s;
}

.btn-close-filters:hover {
	color: var(--text-main);
}

/* Mobile filter bottom actions (sticky Apply/Reset) */
.mobile-filter-actions {
	display: none; /* hidden on desktop */
}

@media (max-width: 991px) {
	/* Hide the desktop filter column entirely */
	.col-lg-3 .filter-sidebar {
		position: fixed;
		top: 0;
		left: -100%;
		width: 88%;
		max-width: 400px;
		height: 100vh;
		z-index: 1001;
		overflow-y: auto;
		transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
		border-radius: 0;
		border: none;
		box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
		padding: 0;
		display: flex;
		flex-direction: column;
	}

	.col-lg-3 .filter-sidebar.active {
		left: 0;
	}

	.col-lg-3 .filter-sidebar .filter-body {
		padding: 20px 24px;
		flex: 1;
		overflow-y: auto;
		padding-bottom: 100px; /* space for sticky actions */
	}

	.mobile-filter-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 16px 24px;
		background: var(--card-bg);
		border-bottom: 1px solid var(--border-color);
		position: sticky;
		top: 0;
		z-index: 100;
	}

	.mobile-filter-header h3 {
		margin: 0;
		font-size: 1.1rem;
		font-weight: 700;
		color: var(--text-main);
		font-family: "Outfit", sans-serif;
	}

	.mobile-filter-actions {
		display: flex;
		gap: 10px;
		padding: 16px 24px;
		background: var(--card-bg);
		border-top: 1px solid var(--border-color);
		position: sticky;
		bottom: 0;
		z-index: 100;
	}

	.mobile-filter-actions .btn-primary-custom,
	.mobile-filter-actions .btn-reset-custom {
		flex: 1;
		padding: 12px 10px;
		font-size: 0.95rem;
	}

	/* Also hide the desktop actions inside the form body */
	.filter-body .desktop-filter-actions {
		display: none;
	}

	body.filters-open {
		overflow: hidden;
	}
}

/* Hide toggle button on desktop */
@media (min-width: 992px) {
	.mobile-filter-toggle {
		display: none;
	}

	.mobile-filter-overlay {
		display: none !important;
	}
}
