/**
 * Single Produit — Carrousel + Description
 */

/* Forcer pleine largeur sans sidebar */
.single-produit #main-content .container,
.single-produit .container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0;
	width: 100%;
	box-sizing: border-box;
}

.single-produit #left-area {
	width: 100% !important;
	padding-right: 0 !important;
	float: none !important;
}

.single-produit #sidebar {
	display: none !important;
}

.single-produit #main-content .container::before,
.single-produit .container::before {
	display: none !important;
}

/* Empêcher le débordement */
.single-produit #main-content,
.single-produit #page-container {
	overflow-x: hidden;
}

/* Fond gris sur le main-content */
.single-produit #main-content {
	background-color: #e5e5e5;
}

/* Layout 2 colonnes */
.dt-single-produit {
	padding: 2em 0 8em;
	max-width: 1280px;
	margin: 0 auto;
}

.dt-single-layout {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

/* Carrousel — colonne gauche */
.dt-single-carousel {
	flex: 0 0 55%;
	min-width: 0;
	overflow: hidden;
}

.dt-swiper-main {
	border-radius: 4px;
	overflow: hidden;
	width: 100%;
}

.dt-swiper-main .swiper-slide {
	overflow: hidden;
}

.dt-swiper-main .swiper-slide img,
.dt-single-img {
	width: 100%;
	height: auto;
	display: block;
	max-height: 530px;
	object-fit: cover;
}

/* Thumbnails */
.dt-swiper-thumbs {
	margin-top: 10px;
	overflow: hidden;
}

.dt-swiper-thumbs .swiper-slide {
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.3s ease;
	border: 2px solid transparent;
}

.dt-swiper-thumbs .swiper-slide-thumb-active {
	opacity: 1;
	border-color: var(--dt-rouge);
}

.dt-thumb-img {
	width: 100%;
	height: 80px;
	object-fit: cover;
	display: block;
}

.dt-swiper-main .swiper-button-prev,
.dt-swiper-main .swiper-button-next {
	color: #ffffff;
	background: rgba(0, 0, 0, 0.3);
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.dt-swiper-main .swiper-button-prev::after,
.dt-swiper-main .swiper-button-next::after {
	font-size: 18px;
}

.dt-swiper-main .swiper-pagination-bullet {
	background: #333333;
	opacity: 0.4;
	width: 10px;
	height: 10px;
}

.dt-swiper-main .swiper-pagination-bullet-active {
	background: #333333;
	opacity: 1;
}

.dt-single-featured {
	border-radius: 4px;
	overflow: hidden;
}

.dt-single-featured img {
	width: 100%;
	height: auto;
	display: block;
}

/* Description — colonne droite */
.dt-single-info {
	flex: 1;
	min-width: 0;
}

.dt-single-info-title {
	font-size: 1.5em;
	font-weight: 700;
	color: #222222;
	margin-bottom: 0;
}

.dt-single-description {
	line-height: 1.8;
	padding-right: 4em;
}

.dt-single-dispo {
	display: inline-block;
	margin-top: 20px;
	padding: 0.3em .7em !important;
	background: #f5f5f5;
	border-radius: 3px;
	font-size: 13px;
	color: #5b5b5b;
}

.dt-single-prix {
	font-size: 28px;
	font-weight: 700;
	color: var(--dt-rouge);
	margin-top: 20px;
}

/* Produits similaires — pleine largeur fond blanc */
.dt-single-similaires-wrap {
	background-color: var(--dt-blanc);
	width: 100%;
}

.dt-single-similaires {
	padding: 6em 0;
	max-width: 1280px;
	margin: 0 auto;
}

.dt-single-similaires-title {
	font-size: 2em;
	font-weight: 700;
	color: #222222;
	margin: 0 0 30px;
}

/* Responsive */
@media (max-width: 980px) {
	.single-produit #main-content .container,
	.single-produit .container {
		width: 95%;
	}

	.dt-single-similaires {
		width: 95%;
	}

	.dt-single-layout {
		flex-direction: column;
	}

	.dt-single-carousel {
		flex: 0 0 auto;
		width: 100%;
	}

	.dt-swiper-main .swiper-slide {
		aspect-ratio: 4 / 3;
	}

	.dt-swiper-main .swiper-slide img,
	.dt-single-img {
		max-height: none;
		height: 100%;
		object-fit: contain;
	}

	.dt-swiper-thumbs .swiper-slide {
		width: auto !important;
		flex-shrink: 0;
	}

	.dt-thumb-img {
		height: 60px;
		width: 80px;
	}

	.dt-single-produit {
		padding: 0em 0 8em;
	}
}

@media (max-width: 768px) {
	.dt-single-layout {
		flex-direction: column;
	}

	.dt-single-carousel {
		flex: 0 0 100%;
		width: 100%;
	}
}
