/* ═══════════════════════════════════════════════════════════════════
   Single Product Page — DroxAuto
   ═══════════════════════════════════════════════════════════════════ */

:root {
	--sp-page-bg: #f5f5f5;
	--sp-card-bg: #ffffff;
	--sp-accent: #f5700a;
	--sp-card-r: 0px;
	--sp-gap: 32px;
	--sp-b2b-accent: #0073aa;
	--sp-vin-accent: #1a2744;
	--sp-gallery-r: 0px;
	--sp-breadcrumb-r: 0px;
	--sp-price-r: 10px;
	--sp-btn-r: 8px;
	--sp-border: #e5e5e5;
	--sp-text: #222;
	--sp-muted: #888;
	/* Badge & element colors */
	--sp-stock-in-bg: #ecfdf5;
	--sp-stock-in-color: #059669;
	--sp-stock-out-bg: #fef2f2;
	--sp-stock-out-color: #dc2626;
	--sp-warranty-bg: #eff6ff;
	--sp-warranty-color: #2563eb;
	--sp-trust-bg: #f3f4f6;
	--sp-trust-color: #374151;
	--sp-specs-odd-bg: #fafafa;
	--sp-specs-even-bg: #ffffff;
	--sp-specs-label-color: #888;
	--sp-breadcrumb-bg: #ffffff;
	--sp-breadcrumb-border: #eeeeee;
	--sp-atc-success: #059669;
	/* Origine */
	--sp-ori-banner-bg: #f5700a;
	--sp-ori-banner-color: #ffffff;
	--sp-ori-badge-bg: #f5700a;
	--sp-ori-badge-color: #ffffff;
}

/* ─── Page wrapper ─── */
.sp-page {
	background: var(--sp-page-bg);
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 20px 40px;
	font-family: 'Barlow', sans-serif;
	line-height: 1.5;
}

/* Hide default WC stuff */
.single-product .entry-title,
.single-product .woocommerce-breadcrumb,
.single-product #sidebar { display: none; }

/* ── Kill ALL Astra container / layout padding on product pages ── */
body.single-product {
	--ast-container-default-xlg-padding: 0;
	--ast-container-default-lg-padding: 0;
	--ast-container-default-slg-padding: 0;
	--ast-container-default-md-padding: 0;
	--ast-container-default-sm-padding: 0;
	--ast-container-default-xs-padding: 0;
	--ast-container-default-xxs-padding: 0;
}
body.single-product .site-content,
body.single-product .ast-container,
body.single-product .site-content > .ast-container,
body.single-product #content > .ast-container {
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
body.single-product #primary,
body.single-product .content-area {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
}
body.single-product .site-main {
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}
body.single-product .ast-article-single,
body.single-product article.product {
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
}
body.single-product .entry-content {
	margin: 0 !important;
	padding: 0 !important;
}

/* ─── Hero (gallery + info) ─── */
.sp-hero {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: 28px;
	margin-bottom: 28px;
	align-items: start;
}

/* ─── Sections ─── */
.sp-sections {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.sp-section {
	background: var(--sp-card-bg);
	border-radius: var(--sp-card-r);
	border: 1px solid var(--sp-border);
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	transition: box-shadow 0.2s;
}

.sp-section:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sp-section__header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 28px;
	border-bottom: 1px solid var(--sp-border);
	background: linear-gradient(to right, rgba(var(--sp-accent-rgb, 245, 112, 10),0.03), transparent 40%);
	border-left: 3px solid var(--sp-accent);
}

.sp-section__icon {
	width: 22px;
	height: 22px;
	color: var(--sp-accent);
	flex-shrink: 0;
	filter: drop-shadow(0 1px 2px rgba(var(--sp-accent-rgb, 245, 112, 10),0.2));
}

.sp-section__title {
	font-size: 17px;
	font-weight: 700;
	color: var(--sp-text);
	margin: 0;
	letter-spacing: 0.2px;
}

.sp-section__body {
	padding: 24px 28px;
}

/* ═══════════════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════════════ */
.sp-gallery {
	position: sticky;
	top: 24px;
	overflow: hidden;
}

.sp-gallery__main {
	position: relative;
	background: var(--sp-card-bg);
	border-radius: var(--sp-gallery-r);
	border: 1px solid var(--sp-border);
	overflow: hidden;
	cursor: zoom-in;
	aspect-ratio: 4/3;
	max-height: 440px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sp-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 24px;
	transition: transform 0.3s ease;
}

.sp-gallery--zoom .sp-gallery__main:hover img {
	transform: scale(1.15);
}

.sp-gallery__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.sp-gallery__thumb {
	width: 72px;
	height: 72px;
	border-radius: 4px;
	border: 2px solid var(--sp-border);
	overflow: hidden;
	cursor: pointer;
	flex-shrink: 0;
	transition: border-color 0.2s, box-shadow 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}

.sp-gallery__thumb.is-active,
.sp-gallery__thumb:hover {
	border-color: var(--sp-accent);
	box-shadow: 0 0 0 2px rgba(var(--sp-accent-rgb, 245, 112, 10),0.15);
}

.sp-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 4px;
}

/* Left thumbnails layout */
.sp-gallery--thumbs-left {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 12px;
}

.sp-gallery--thumbs-left .sp-gallery__thumbs {
	flex-direction: column;
	overflow-y: auto;
	overflow-x: hidden;
	max-height: 500px;
	margin-top: 0;
	order: -1;
}

/* Lightbox overlay */
.sp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0,0,0,0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}

.sp-lightbox.is-open {
	opacity: 1;
	pointer-events: auto;
}

.sp-lightbox__img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 0;
}

.sp-lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255,255,255,0.15);
	border: none;
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.sp-lightbox__close:hover {
	background: rgba(255,255,255,0.3);
}

.sp-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,0.15);
	border: none;
	color: #fff;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sp-lightbox__nav--prev { left: 20px; }
.sp-lightbox__nav--next { right: 20px; }

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT INFO
   ═══════════════════════════════════════════════════════════════════ */
.sp-info {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Breadcrumb */
.sp-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	flex-wrap: wrap;
	margin-bottom: 6px;
	padding: 10px 16px;
	background: var(--sp-breadcrumb-bg);
	border: 1px solid var(--sp-breadcrumb-border);
	border-radius: var(--sp-breadcrumb-r);
	box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.sp-breadcrumb__home {
	width: 18px;
	height: 18px;
	color: var(--sp-accent);
	flex-shrink: 0;
}

.sp-breadcrumb__arrow {
	width: 12px;
	height: 12px;
	color: #ccc;
	flex-shrink: 0;
	opacity: 0.6;
}

.sp-breadcrumb__item {
	color: var(--sp-muted);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.15s;
}

.sp-breadcrumb__item:hover {
	color: var(--sp-accent);
}

.sp-breadcrumb__current {
	color: var(--sp-accent);
	font-weight: 600;
	max-width: 300px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Title row: title left, logo right */
.sp-info__brand-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

/* Brand logo — large, in the empty space to the right */
.sp-info__brand-logo {
	width: 68px;
	height: 68px;
	object-fit: contain;
	flex-shrink: 0;
	padding: 8px;
	background: #fafafa;
	border: 1px solid var(--sp-border);
	border-radius: 6px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Title */
.sp-info__title {
	font-size: 24px;
	font-weight: 800;
	color: var(--sp-text);
	line-height: 1.3;
	margin: 0;
	letter-spacing: -0.3px;
}

/* Meta row */
.sp-info__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
	padding: 10px 0;
	border-top: 1px solid var(--sp-border);
	border-bottom: 1px solid var(--sp-border);
}

.sp-info__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 16px;
	border-right: 1px solid var(--sp-border);
}

.sp-info__meta-item:first-child {
	padding-left: 0;
}

.sp-info__meta-item:last-child {
	border-right: none;
}

.sp-info__meta-label {
	font-size: 12px;
	font-weight: 500;
	color: var(--sp-muted);
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.sp-info__meta-value {
	font-size: 14px;
	font-weight: 700;
	color: var(--sp-meta-value, var(--sp-accent));
}

/* Stock badge */
.sp-info__stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 4px;
	letter-spacing: 0.2px;
}
.sp-info__stock--instock {
	background: var(--sp-stock-in-bg);
	color: var(--sp-stock-in-color);
}

.sp-info__stock--outofstock {
	background: var(--sp-stock-out-bg);
	color: var(--sp-stock-out-color);
}

/* Warranty badge */
.sp-info__warranty {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 4px;
	background: var(--sp-warranty-bg);
	color: var(--sp-warranty-color);
	letter-spacing: 0.2px;
}

/* ─── B2B Price Toggle ─── */
.sp-price-block {
	display: flex;
	gap: 16px;
	margin: 4px 0;
}

.sp-price-card {
	flex: 1;
	padding: 12px 28px;
	border-radius: var(--sp-price-r);
	border: 2px solid var(--sp-border);
	background: var(--sp-card-bg);
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
	position: relative;
}

.sp-price-card:hover {
	border-color: #c4c9d0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sp-price-card.is-active {
	border-color: var(--sp-accent);
	box-shadow: 0 0 0 3px rgba(var(--sp-accent-rgb, 245, 112, 10),0.1);
}

.sp-price-card__radio {
	position: absolute;
	top: 14px;
	right: 22px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #c4c9d0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	background: transparent;
	box-sizing: border-box;
}

.sp-price-card.is-active .sp-price-card__radio {
	border-color: var(--sp-accent);
	border-width: 6px;
	background: transparent;
}

.sp-price-card__label {
	font-size: 14px;
	font-weight: 600;
	color: #2c2c2c;
	margin-bottom: 14px;
	padding-right: 36px;
}

.sp-price-card__amount {
	font-size: 26px;
	font-weight: 800;
	color: #1a1a2e;
	line-height: 1.1;
}

.sp-price-card__amount .woocommerce-Price-currencySymbol {
	font-size: 17px;
	font-weight: 700;
}

.sp-price-card--b2b .sp-price-card__amount {
	color: var(--sp-accent);
}

.sp-price-card__amount--blurred {
	filter: blur(8px);
	-webkit-filter: blur(8px);
	user-select: none;
	pointer-events: none;
}

.sp-price-card--locked {
	cursor: pointer;
	touch-action: manipulation;
}

.sp-price-card--locked:hover {
	border-color: #dfe3e8;
}

.sp-price-tax {
	display: block;
	font-size: 13px;
	color: var(--sp-accent);
	margin-top: 4px;
	font-weight: 500;
}

.sp-price-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--sp-accent);
	font-weight: 600;
	margin-top: 6px;
	text-decoration: none;
	cursor: pointer;
}

.sp-price-card__cta:hover { text-decoration: underline; }

/* Simple price (when B2B disabled) */
.sp-price-simple {
	font-size: 32px;
	font-weight: 800;
	color: var(--sp-text);
}

.sp-price-simple del {
	font-size: 18px;
	color: var(--sp-muted);
	font-weight: 400;
	margin-left: 8px;
}

.sp-price-simple ins {
	text-decoration: none;
	color: var(--sp-accent);
}

/* ─── Quantity + ATC ─── */
.sp-atc-row {
	display: flex;
	gap: 12px;
	align-items: center;
}

.sp-qty {
	display: flex;
	align-items: center;
	border: 2px solid var(--sp-border);
	border-radius: var(--sp-btn-r);
	overflow: hidden;
	background: var(--sp-card-bg);
}

.sp-qty__btn {
	width: 36px;
	height: 40px;
	background: none;
	border: none;
	font-size: 18px;
	font-weight: 700;
	color: var(--sp-text);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}

.sp-qty__btn:hover { background: var(--sp-page-bg); }

.sp-qty__input {
	width: 40px;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	border: none;
	border-left: 1px solid var(--sp-border);
	border-right: 1px solid var(--sp-border);
	outline: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

.sp-qty__input::-webkit-inner-spin-button,
.sp-qty__input::-webkit-outer-spin-button {
	-webkit-appearance: none;
}

.sp-atc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--sp-accent);
	color: #fff;
	border: none;
	border-radius: var(--sp-btn-r);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	padding: 10px 100px;
	margin: 0 auto;
	transition: all 0.2s;
	box-shadow: 0 2px 8px rgba(var(--sp-accent-rgb, 245, 112, 10),0.25);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sp-atc-btn:hover {
	filter: brightness(1.08);
	box-shadow: 0 4px 16px rgba(var(--sp-accent-rgb, 245, 112, 10),0.35);
	transform: translateY(-1px);
}
.sp-atc-btn:active { transform: translateY(0) scale(0.98); box-shadow: 0 1px 4px rgba(var(--sp-accent-rgb, 245, 112, 10),0.2); }

.sp-atc-btn svg { flex-shrink: 0; }

.sp-atc-btn--added {
	background: var(--sp-atc-success);
}

/* Trust badges row */
.sp-trust-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--sp-border);
}

.sp-trust-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--sp-trust-color);
	background: var(--sp-trust-bg);
	padding: 8px 14px;
	border-radius: 6px;
	border: 1px solid rgba(0,0,0,0.04);
	transition: all .2s;
}

.sp-trust-item:hover {
	background: var(--sp-card-bg);
	border-color: var(--sp-border);
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.sp-trust-item svg {
	color: var(--sp-accent);
	flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   SPECIFICATIONS
   ═══════════════════════════════════════════════════════════════════ */
.sp-specs-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.sp-specs-row {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) 2fr;
	align-items: baseline;
	padding: 13px 24px;
	border-bottom: 1px solid rgba(0,0,0,0.04);
	gap: 24px;
	transition: background 0.15s;
}

.sp-specs-row:hover {
	background: rgba(var(--sp-accent-rgb, 245, 112, 10),0.02) !important;
}

.sp-specs-row:nth-child(odd) {
	background: var(--sp-specs-odd-bg);
}

.sp-specs-row:nth-child(even) {
	background: var(--sp-specs-even-bg);
}

.sp-specs-row:first-child {
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}

.sp-specs-row:last-child {
	border-bottom: none;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}

.sp-specs-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--sp-specs-label-color);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sp-specs-value {
	font-size: 14px;
	font-weight: 500;
	color: var(--sp-text);
}

/* ═══════════════════════════════════════════════════════════════════
   OEM NUMBERS
   ═══════════════════════════════════════════════════════════════════ */
.sp-oem-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sp-oem-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 5px;
	background: var(--sp-card-bg);
	border: 1px solid var(--sp-border);
	font-size: 13px;
	font-weight: 600;
	font-family: 'Courier New', monospace;
	color: var(--sp-text);
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
	box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.sp-oem-pill:hover {
	border-color: var(--sp-accent);
	background: var(--sp-card-bg);
	box-shadow: 0 2px 6px rgba(var(--sp-accent-rgb, 245, 112, 10),0.12);
	transform: translateY(-1px);
}

.sp-oem-pill__copy-icon {
	width: 14px;
	height: 14px;
	color: var(--sp-muted);
	transition: color 0.15s;
}

.sp-oem-pill:hover .sp-oem-pill__copy-icon { color: var(--sp-accent); }

.sp-oem-pill__toast {
	position: absolute;
	top: -28px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--sp-text);
	color: #fff;
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 0;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}

.sp-oem-pill.is-copied .sp-oem-pill__toast { opacity: 1; }

.sp-oem-hidden { display: none; }

.sp-oem-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: var(--sp-btn-r);
	background: none;
	border: 1px dashed var(--sp-border);
	font-size: 13px;
	font-weight: 600;
	color: var(--sp-accent);
	cursor: pointer;
	transition: all 0.15s;
}

.sp-oem-toggle:hover {
	border-color: var(--sp-accent);
	background: rgba(245, 112, 10, 0.05);
}

/* ═══════════════════════════════════════════════════════════════════
   COMPATIBLE VEHICLES
   ═══════════════════════════════════════════════════════════════════ */
.sp-vehicles-loader {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 32px;
}

.sp-vehicles-load-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	border-radius: var(--sp-btn-r);
	background: var(--sp-accent);
	color: #fff;
	border: none;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 2px 8px rgba(var(--sp-accent-rgb, 245, 112, 10),0.2);
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.sp-vehicles-load-btn:hover {
	filter: brightness(1.08);
	box-shadow: 0 4px 12px rgba(var(--sp-accent-rgb, 245, 112, 10),0.3);
	transform: translateY(-1px);
}

.sp-vehicles-load-btn.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.sp-vehicles-content { display: none; }

.sp-vehicles-content.is-loaded { display: block; }

/* Accordion brand row */
.sp-veh-brand {
	border-bottom: 1px solid var(--sp-border);
}

.sp-veh-brand:last-child { border-bottom: none; }

.sp-veh-brand__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 12px;
	width: 100%;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--sp-text);
	text-align: left;
	transition: background 0.15s;
}

.sp-veh-brand__toggle:hover {
	background: rgba(0,0,0,0.015);
}

.sp-veh-brand__left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.sp-veh-brand__right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sp-veh-brand__logo {
	width: 44px;
	height: 44px;
	object-fit: contain;
	border-radius: 6px;
	background: #f8f8f8;
	border: 1px solid var(--sp-border);
	padding: 4px;
	flex-shrink: 0;
}

.sp-veh-brand__logo--letter {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 18px;
	color: var(--sp-accent);
}

.sp-veh-brand__name {
	font-size: 17px;
	font-weight: 700;
	color: var(--sp-text);
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.sp-veh-brand__count {
	font-size: 13px;
	color: var(--sp-muted);
	font-weight: 400;
	white-space: nowrap;
}

.sp-veh-brand__chevron {
	width: 20px;
	height: 20px;
	color: var(--sp-muted);
	transition: transform 0.25s ease;
	flex-shrink: 0;
}

.sp-veh-brand.is-open .sp-veh-brand__chevron {
	transform: rotate(180deg);
}

.sp-veh-brand__body {
	display: none;
	padding: 0 8px 20px 68px;
}

.sp-veh-brand.is-open .sp-veh-brand__body { display: block; }

/* Model name */
.sp-veh-model {
	margin-bottom: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--sp-border);
}

.sp-veh-model:first-child {
	border-top: none;
	padding-top: 0;
}

.sp-veh-model__name {
	font-size: 14px;
	font-weight: 800;
	color: var(--sp-text);
	margin-bottom: 10px;
	text-transform: uppercase;
	display: inline-block;
	padding: 5px 14px;
	background: var(--sp-page-bg);
	border-radius: 4px;
	letter-spacing: 0.5px;
	border: 1px solid var(--sp-border);
}

/* Engine list — aligned table grid */
.sp-veh-engine-list {
	display: grid;
	grid-template-columns: minmax(70px, auto) minmax(55px, auto) minmax(55px, auto) minmax(55px, auto) minmax(100px, auto) minmax(80px, auto);
	row-gap: 0;
	column-gap: 24px;
	align-items: baseline;
}

.sp-veh-engine {
	display: contents;
}

.sp-veh-engine--header > span {
	font-size: 11px;
	font-weight: 700;
	color: var(--sp-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 0 0 10px;
	border-bottom: 2px solid var(--sp-border);
}

.sp-veh-engine > span {
	padding: 8px 0;
	font-size: 14px;
	line-height: 1;
	border-bottom: 1px solid rgba(0,0,0,0.04);
}

.sp-veh-engine:last-child > span {
	border-bottom: none;
}

.sp-veh-engine__name {
	font-weight: 700;
	color: var(--sp-text);
}

.sp-veh-engine__cell {
	color: #666;
	font-weight: 400;
}

.sp-veh-engine__code {
	font-family: 'Courier New', monospace;
	font-size: 12px;
	color: #999;
	letter-spacing: 0.3px;
}

.sp-veh-engine__years {
	color: var(--sp-text);
	font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   VIN CHECK — Compact inline card
   ═══════════════════════════════════════════════════════════════════ */
.sp-vin {
	background: var(--sp-vin-bg, #f8f9fa);
	color: var(--sp-vin-text, #222);
	border: 1px solid var(--sp-vin-border, #e5e5e5);
	border-radius: var(--sp-btn-r, 6px);
	padding: 16px;
	margin-top: 16px;
}

.sp-vin__header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.sp-vin__icon {
	color: var(--sp-vin-accent, #1a2744);
	flex-shrink: 0;
}

.sp-vin__title {
	font-size: 14px;
	font-weight: 700;
	margin: 0;
}

.sp-vin__desc {
	font-size: 12px;
	line-height: 1.5;
	opacity: 0.7;
	margin: 0 0 10px;
}

.sp-vin__form {
	display: flex;
	gap: 8px;
}

.sp-vin__input {
	flex: 1;
	padding: 10px 12px;
	border-radius: var(--sp-btn-r, 6px);
	border: 1px solid var(--sp-vin-border, #e5e5e5);
	background: #fff;
	color: var(--sp-vin-text, #222);
	font-size: 13px;
	font-weight: 600;
	font-family: 'Courier New', monospace;
	letter-spacing: 1.5px;
	outline: none;
	transition: border-color 0.2s;
}

.sp-vin__input::placeholder { color: #999; font-family: inherit; letter-spacing: 0; font-weight: 400; }
.sp-vin__input:focus { border-color: var(--sp-vin-accent, #1a2744); }

.sp-vin__submit {
	padding: 10px 20px;
	border-radius: var(--sp-btn-r, 6px);
	background: var(--sp-vin-accent, #1a2744);
	color: #fff;
	border: none;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	white-space: nowrap;
}

.sp-vin__submit:hover { opacity: 0.9; }
.sp-vin__submit:active { transform: scale(0.97); }

.sp-vin__result {
	margin-top: 8px;
	padding: 8px 12px;
	border-radius: var(--sp-btn-r, 6px);
	font-size: 12px;
	font-weight: 600;
	display: none;
	align-items: flex-start;
	gap: 8px;
	line-height: 1.4;
}

.sp-vin__result.is-visible { display: flex; }

.sp-vin__result-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	margin-top: 1px;
}

.sp-vin__result-text { flex: 1 1 auto; }

.sp-vin__result--ok {
	background: #ecfdf5;
	color: #047857;
}
.sp-vin__result--ok .sp-vin__result-icon { background: #059669; }

.sp-vin__result--error {
	background: #fef2f2;
	color: #b91c1c;
}
.sp-vin__result--error .sp-vin__result-icon { background: #dc2626; }

.sp-vin__result--warn {
	background: #fffbeb;
	color: #b45309;
}
.sp-vin__result--warn .sp-vin__result-icon { background: #d97706; }

.sp-vin__result--pending {
	background: #f0f4ff;
	color: #4f46e5;
}

/* Back-compat alias */
.sp-vin__result--success {
	background: #ecfdf5;
	color: #059669;
}

/* ═══════════════════════════════════════════════════════════════════
   RELATED PRODUCTS
   ═══════════════════════════════════════════════════════════════════ */
.sp-related-scroll {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding-bottom: 8px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.sp-rel-card {
	flex: 0 0 200px;
	scroll-snap-align: start;
	background: var(--sp-card-bg);
	border-radius: 8px;
	border: 1px solid var(--sp-border);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.25s, transform 0.25s;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sp-rel-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
	transform: translateY(-4px);
}

.sp-rel-card__img-wrap {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
	border-bottom: 1px solid var(--sp-border);
}

.sp-rel-card__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 12px;
}

.sp-rel-card__body {
	padding: 14px;
}

.sp-rel-card__brand {
	font-size: 11px;
	font-weight: 700;
	color: var(--sp-accent);
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.sp-rel-card__title {
	font-size: 13px;
	font-weight: 600;
	color: var(--sp-text);
	margin: 4px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sp-rel-card__price {
	font-size: 16px;
	font-weight: 800;
	color: var(--sp-text);
}

/* Sticky ATC bar (mobile) */
.sp-sticky-atc {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999;
	background: var(--sp-card-bg);
	border-top: 1px solid var(--sp-border);
	padding: 12px 16px;
	box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.sp-sticky-atc__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1280px;
	margin: 0 auto;
}

.sp-sticky-atc__price {
	font-size: 20px;
	font-weight: 800;
	color: var(--sp-text);
	white-space: nowrap;
}

.sp-sticky-atc__btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	background: var(--sp-accent);
	color: #fff;
	border: none;
	border-radius: var(--sp-btn-r);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(var(--sp-accent-rgb, 245, 112, 10),0.25);
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

/* Spinner */
@keyframes sp-spin {
	to { transform: rotate(360deg); }
}

.sp-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: sp-spin 0.6s linear infinite;
}

.sp-spinner--dark {
	border-color: rgba(0,0,0,0.1);
	border-top-color: var(--sp-accent);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
	.sp-hero {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}
}

@media (max-width: 768px) {
	.sp-page { padding: 10px 12px 20px; }

	.sp-hero {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.sp-gallery { position: relative; }

	.sp-gallery--thumbs-left {
		grid-template-columns: 1fr;
	}

	.sp-gallery--thumbs-left .sp-gallery__thumbs {
		flex-direction: row;
		overflow-x: auto;
		overflow-y: hidden;
		max-height: none;
	}

	.sp-info__title { font-size: 22px; }

	.sp-price-block { flex-direction: column; }
	.sp-price-card__amount { font-size: 24px; }

	.sp-atc-row { flex-direction: column; }
	.sp-atc-btn { padding: 14px 20px; }

	.sp-section__header { padding: 14px 16px; }
	.sp-section__body { padding: 16px; }

	.sp-specs-grid { grid-template-columns: 1fr !important; }

	.sp-veh-brand__body { padding-left: 16px; }

	.sp-veh-engine-list {
		grid-template-columns: minmax(50px, auto) minmax(45px, auto) minmax(45px, auto) minmax(45px, auto) minmax(70px, auto) minmax(70px, auto);
		column-gap: 12px;
		overflow-x: auto;
	}

	.sp-veh-engine > span { font-size: 12px; white-space: nowrap; }

	.sp-vin__form { flex-direction: column; }

	.sp-rel-card { flex: 0 0 160px; }

	.sp-sticky-atc.is-enabled {
		display: block;
	}

	.sp-sections { gap: 20px; }
}

@media (max-width: 480px) {
	.sp-page { padding: 8px 10px 12px; }
	.sp-info__title { font-size: 20px; }
	.sp-price-simple { font-size: 26px; }
	.sp-gallery__thumb { width: 56px; height: 56px; }
	.sp-oem-pill { font-size: 12px; padding: 6px 10px; }
	.sp-ori-banner { font-size: 13px; padding: 8px 12px; }
	.sp-ori-badge { font-size: 9px; padding: 3px 8px; }
}

/* ═══════════════════════════════════════════════════════════════════
   Origine Banner & Badge
   ═══════════════════════════════════════════════════════════════════ */

.sp-ori-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px 20px;
	background: linear-gradient(135deg, var(--sp-ori-banner-bg), color-mix(in srgb, var(--sp-ori-banner-bg) 85%, #000));
	color: var(--sp-ori-banner-color);
	border-radius: var(--sp-card-r);
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.sp-ori-banner__icon {
	flex-shrink: 0;
	stroke: var(--sp-ori-banner-color);
	opacity: 0.9;
}

.sp-ori-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--sp-ori-badge-bg);
	color: var(--sp-ori-badge-color);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 4px;
	white-space: nowrap;
	line-height: 1;
}

.sp-ori-badge--gallery {
	position: absolute;
	top: 14px;
	left: -40px;
	z-index: 5;
	transform: rotate(-45deg);
	min-width: 200px;
	justify-content: center;
	padding: 5px 44px;
	border-radius: 0;
	box-shadow: 0 2px 6px rgba(0,0,0,0.18);
	font-size: 9px;
	letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════════
   Trust Platforms — "Retrouvez-nous également sur ces plateformes"
   ═══════════════════════════════════════════════════════════════════ */
.sp-tp {
	margin-top: 16px;
	padding: 14px 16px;
	background: var(--sp-tp-bg, transparent);
	border-top: 1px solid var(--sp-tp-border, #eee);
	border-radius: 6px;
}

.sp-tp__title {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: var(--sp-muted, #888);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 10px;
}

.sp-tp__list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.sp-tp__item {
	display: inline-flex;
	align-items: center;
	transition: filter 0.25s, opacity 0.25s, transform 0.2s;
}

.sp-tp__item:hover {
	transform: scale(1.05);
}

.sp-tp__logo {
	height: var(--sp-tp-logo-h, 32px);
	width: auto;
	object-fit: contain;
}

/* Grayscale mode */
.sp-tp--grayscale .sp-tp__logo {
	filter: grayscale(1) opacity(0.6);
	transition: filter 0.25s;
}

.sp-tp--grayscale .sp-tp__item:hover .sp-tp__logo {
	filter: grayscale(0) opacity(1);
}
