/**
 * Product Tabs Widget - Styles
 *
 * @package Ermax_Garage
 */

/* ============================================
   WRAPPER
   ============================================ */
.ermax-product-tabs {
	width: 100%;
}

/* ============================================
   ONGLETS PILULES
   ============================================ */
.ermax-pt-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	margin-bottom: 32px;
	background-color: #F4F2EE;
	border: none;
	border-radius: 14px;
	padding: 3px;
}

.ermax-pt-tab {
	flex: 1;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 4px 8px;
	border: none !important;
	border-radius: 14px;
	background: transparent;
	color: #0C0C0C;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.35px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	outline: none;
	white-space: nowrap;
}

.ermax-pt-tab:hover:not(.ermax-pt-tab--active) {
	border-color: #3FAF7A;
	color: #3FAF7A;
}

.ermax-pt-tab--active {
	background-color: #3FAF7A;
	color: #FFFFFF;
	border-color: #3FAF7A;
}

/* ============================================
   PANNEAUX
   ============================================ */
.ermax-pt-panel {
	display: none;
}

.ermax-pt-panel--active {
	display: block;
}

/* ============================================
   TITRE DE SECTION
   ============================================ */
.ermax-pt-title {
	font-family: 'Zalando Sans Expanded', 'Inter', sans-serif;
	font-weight: 300;
	font-style: italic;
	font-size: 24px;
	line-height: 1.3;
	color: #0C0C0C;
	margin: 0 0 24px 0;
	padding: 0;
}

/* ============================================
   DESCRIPTION
   ============================================ */
.ermax-pt-description {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.7;
	color: #333333;
}

.ermax-pt-description p {
	margin: 0 0 16px 0;
}

.ermax-pt-description p:last-child {
	margin-bottom: 0;
}

.ermax-pt-description ul,
.ermax-pt-description ol {
	margin: 0 0 16px 20px;
	padding: 0;
}

.ermax-pt-description li {
	margin-bottom: 6px;
}

.ermax-pt-description img {
	max-width: 100%;
	height: auto;
}

/* ============================================
   TABLEAU CARACTERISTIQUES
   ============================================ */
.ermax-pt-specs-grid {
	width: 100%;
}

.ermax-pt-spec-row {
	display: flex;
	align-items: baseline;
	border-bottom: 1px solid #E5E5E5;
	padding: 14px 0;
}

.ermax-pt-spec-row:last-child {
	border-bottom: none;
}

.ermax-pt-spec-label {
	flex: 0 0 200px;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.3px;
	color: #0C0C0C;
}

.ermax-pt-spec-value {
	flex: 1;
	font-size: 14px;
	color: #555555;
}

.ermax-pt-spec-DELETED_UNUSED {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 18px;
}

/* Vertical separator between columns */
.ermax-pt-spec:first-child {
	border-right: 1px solid #E5E5E5;
}

.ermax-pt-spec-label {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 12px;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #0C0C0C;
}

.ermax-pt-spec-value {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5;
	color: #555555;
}

.ermax-pt-spec--empty {
	border: none;
}

/* ============================================
   COMPATIBILITE - INTRO
   ============================================ */
.ermax-pt-compat-intro {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.6;
	color: #555555;
	margin: 0 0 20px 0;
}

/* ============================================
   ACCORDEON
   ============================================ */
.ermax-pt-compat-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ermax-pt-accordion-item {
	border: 1px solid #E5E5E5;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.ermax-pt-accordion-item:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ermax-pt-accordion-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 18px;
	background-color: #F4F2EE;
	border: none;
	color: #0C0C0C;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.2s ease;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	outline: none;
	text-align: left;
}

.ermax-pt-accordion-header:hover {
	background-color: #EBE9E4;
}

.ermax-pt-chevron {
	flex-shrink: 0;
	transition: transform 0.3s ease;
	margin-left: 12px;
}

.ermax-pt-accordion-item--open .ermax-pt-chevron {
	transform: rotate(180deg);
}

.ermax-pt-accordion-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, padding 0.3s ease;
	background-color: #FFFFFF;
	padding: 0 18px;
}

.ermax-pt-accordion-item--open .ermax-pt-accordion-body {
	max-height: 500px !important;
	padding: 14px 18px !important;
}

/* ============================================
   BADGES MILLESIMES
   ============================================ */
.ermax-pt-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ermax-pt-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 14px;
	background-color: #3FAF7A;
	color: #FFFFFF;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.3;
	border-radius: 999px;
	white-space: nowrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
	/* Onglets : scroll horizontal */
	.ermax-pt-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding-bottom: 12px;
		margin-bottom: 24px;
	}

	.ermax-pt-tabs::-webkit-scrollbar {
		display: none;
	}

	.ermax-pt-tab {
		flex-shrink: 0;
		font-size: 13px;
		padding: 8px 18px;
	}

	/* Titre */
	.ermax-pt-title {
		font-size: 20px;
		margin-bottom: 18px;
	}

	/* Specs : 1 colonne sur mobile */
	.ermax-pt-spec-row {
		grid-template-columns: 1fr;
	}

	.ermax-pt-spec:first-child {
		border-right: none;
		border-bottom: 1px solid #E5E5E5;
	}

	/* Accordeon */
	.ermax-pt-accordion-header {
		font-size: 13px;
		padding: 12px 14px;
	}

	.ermax-pt-accordion-item--open .ermax-pt-accordion-body {
		padding: 12px 14px !important;
	}

	/* Badges */
	.ermax-pt-badge {
		font-size: 12px;
		padding: 5px 12px;
	}
}

@media (max-width: 480px) {
	.ermax-pt-tab {
		font-size: 12px;
		padding: 7px 14px;
	}

	.ermax-pt-title {
		font-size: 18px;
	}
}
