/* =====================================================================
   Comparateur de miels — page /compare
   Tableau BEM : .nide-compare__ (structure) + design honey/gold.
   ===================================================================== */

.nide-compare {
	padding: 3rem 0 5rem;
	background: #FFFDF7;
}

/* ---------- Intro ---------- */
.nide-compare__intro {
	max-width: 720px;
	margin: 0 auto 2.5rem;
	text-align: center;
}
.nide-compare__kicker {
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #B8892F;
	margin-bottom: 0.5rem;
}
.nide-compare__title {
	font-family: 'Cormorant Garamond', serif;
	font-size: clamp(1.75rem, 3vw, 2.3rem);
	color: #241A11;
	margin: 0 0 0.75rem;
}
.nide-compare__lead {
	color: #5A4A38;
	line-height: 1.6;
	margin: 0;
}

/* ---------- Empty state ---------- */
.nide-compare__empty {
	text-align: center;
	padding: 3rem 1rem 4rem;
	background: #fff;
	border: 1px dashed #E6D9BB;
	border-radius: 12px;
	max-width: 640px;
	margin: 0 auto;
}
.nide-compare__empty .icon {
	width: 3rem;
	height: 3rem;
	color: #D9C58A;
	margin-bottom: 1rem;
}
.nide-compare__empty-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.6rem;
	color: #241A11;
	margin: 0 0 0.75rem;
}
.nide-compare__empty-lead {
	color: #5A4A38;
	line-height: 1.6;
	margin: 0 auto 1.75rem;
	max-width: 460px;
}

/* ---------- Table wrapper ---------- */
.nide-compare__table-wrap {
	background: #fff;
	border: 1px solid #ECE1C5;
	border-radius: 14px;
	overflow-x: auto;
	box-shadow: 0 6px 24px rgba(60, 40, 10, 0.05);
}

.nide-compare__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	color: #3D2E1C;
	table-layout: fixed;
}

/* Cellules communes */
.nide-compare__table th,
.nide-compare__table td {
	padding: 0.9rem 1rem;
	vertical-align: middle;
	text-align: left;
	border-bottom: 1px solid #F1E7CE;
}
.nide-compare__table tr:last-child > th,
.nide-compare__table tr:last-child > td {
	border-bottom: 0;
}

/* ---------- Colonne label (première colonne) ---------- */
.nide-compare__label,
.nide-compare__corner {
	width: 190px;
	background: #FBF5E4;
	color: #7A5C22;
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-right: 1px solid #ECE1C5;
}
.nide-compare__corner {
	background: #F7EFDF;
	border-bottom: 1px solid #ECE1C5;
}

/* ---------- En-têtes produit ---------- */
.nide-compare__product {
	padding: 1.25rem 1rem 1.5rem !important;
	text-align: center !important;
	vertical-align: top !important;
	background: #FDFBF3;
	border-bottom: 2px solid #ECE1C5 !important;
	font-weight: normal;
}

.nide-compare__product-media {
	position: relative;
	display: block;
	margin: 0 auto 0.75rem;
	width: 100%;
	max-width: 200px;
	aspect-ratio: 1 / 1;
	background: repeating-linear-gradient(
		45deg,
		#F2E9CE 0 8px,
		#F7F0DD 8px 16px
	);
	border-radius: 10px;
	overflow: hidden;
}
.nide-compare__product-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.nide-compare__product-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.05rem;
	color: #241A11;
	margin: 0 0 0.5rem;
	line-height: 1.3;
	min-height: 2.6em;
}
.nide-compare__product-title a {
	color: inherit;
	text-decoration: none;
}
.nide-compare__product-title a:hover {
	color: #B8892F;
}

.nide-compare__price-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: 0.4rem 0.6rem;
	margin-bottom: 0.85rem;
}
.nide-compare__price {
	font-size: 1.1rem;
	font-weight: 700;
	color: #B8892F;
}
.nide-compare__price-old {
	font-size: 0.85rem;
	color: #A08862;
	text-decoration: line-through;
}

/* Badges */
.nide-compare__badge {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
	line-height: 1.4;
}
.nide-compare__badge--sale {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	background: #C0392B;
	color: #fff;
}

/* Actions */
.nide-compare__actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	align-items: stretch;
}
.nide-compare__actions .btn,
.nide-compare__remove {
	flex: 1 1 auto;
	min-width: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 0.9rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	border-radius: 4px;
	white-space: nowrap;
}
.nide-compare__actions .btn.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
.nide-compare__remove {
	color: #C0392B;
	background: #fff;
	border: 1px solid #D9C58A;
	text-decoration: none;
	transition: color .15s ease, border-color .15s ease, background .15s ease;
	cursor: pointer;
}
.nide-compare__remove:hover,
.nide-compare__remove:focus-visible {
	color: #fff;
	border-color: #C0392B;
	background: #C0392B;
}

/* ---------- Row & section titles ---------- */
.nide-compare__row td,
.nide-compare__row th {
	background: #fff;
}
.nide-compare__row:nth-child(even) td {
	background: #FDFBF3;
}

.nide-compare__section > th {
	background: #241A11 !important;
	color: #E0B45A !important;
	font-family: 'Cormorant Garamond', serif;
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: left;
	padding: 0.7rem 1rem !important;
	border-bottom: 0 !important;
}

/* ---------- Cellules ---------- */
.nide-compare__cell {
	text-align: center;
	color: #3D2E1C;
	line-height: 1.5;
}
.nide-compare__cell--text {
	text-align: left;
	line-height: 1.55;
	color: #5A4A38;
}
.nide-compare__cell--meta {
	color: #8A6E42;
	font-size: 0.82rem;
}
.nide-compare__cell strong {
	display: block;
	color: #241A11;
	font-weight: 700;
	margin-bottom: 0.15rem;
}
.nide-compare__cell-note {
	display: block;
	font-size: 0.78rem;
	color: #8A6E42;
	line-height: 1.35;
}

/* ---------- Pills disponibilité ---------- */
.nide-compare__pill {
	display: inline-block;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.03em;
}
.nide-compare__pill--stock {
	background: #E5F4E2;
	color: #2E7A2C;
}
.nide-compare__pill--out {
	background: #FBE4E4;
	color: #C0392B;
}

/* ---------- Disclaimer ---------- */
.nide-compare__disclaimer {
	margin-top: 1rem;
	font-size: 0.78rem;
	color: #8A6E42;
	line-height: 1.5;
	text-align: left;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.nide-compare__label,
	.nide-compare__corner { width: 150px; }
	.nide-compare__product { padding: 1rem 0.6rem 1.2rem !important; }
	.nide-compare__table th,
	.nide-compare__table td { padding: 0.7rem 0.55rem; font-size: 0.82rem; }
}

@media (max-width: 640px) {
	.nide-compare__intro { margin-bottom: 1.5rem; }
	.nide-compare__label,
	.nide-compare__corner { width: 120px; font-size: 0.65rem; padding-right: 0.4rem; }
	.nide-compare__product-title { font-size: 0.95rem; min-height: 0; }
	.nide-compare__price { font-size: 0.95rem; }
	.nide-compare__actions { flex-direction: column; }
	.nide-compare__actions .btn,
	.nide-compare__actions .nide-compare__remove {
		width: 100%;
		height: 34px;
		font-size: 0.72rem;
		padding: 0 0.6rem;
	}
}

/* Utilitaire */
.visually-hidden {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}
