/* Advanced Responsive Products — styles de base (tous surchargeables depuis l'onglet Style d'Elementor). */

.arp-widget {
	position: relative;
	--arp-star: #f5a623;
	--arp-star-empty: #d9d9d9;
	--arp-badge-offset: 10px;
}

.arp-grid {
	display: grid;
	grid-template-columns: repeat(var(--arp-cols, 4), minmax(0, 1fr));
	column-gap: 20px;
	row-gap: 20px;
	transition: opacity .2s ease;
}

.arp-item {
	display: flex;
	min-width: 0;
}

.arp-item.arp-hidden,
.arp-item.arp-void {
	display: none !important;
}

.arp-item.arp-new {
	animation: arp-fade .35s ease both;
}

@keyframes arp-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Carte ---------- */

.arp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	background-color: #fff;
	transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.arp-equal-yes .arp-actions {
	margin-top: auto;
}

/* ---------- Image ---------- */

.arp-image-link {
	display: block;
	position: relative;
	overflow: hidden;
	margin-bottom: 15px;
	line-height: 0;
}

.arp-image-link img,
.arp-card img.arp-image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
	box-shadow: none;
	transition: transform .4s ease;
}

.arp-zoom-yes .arp-card:hover .arp-image-link img {
	transform: scale(1.06);
}

/* ---------- Titre ---------- */

.arp-widget .arp-title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 500;
}

.arp-title a {
	color: inherit;
	text-decoration: none;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--arp-title-lines, 2);
	overflow: hidden;
}

/* ---------- Note ---------- */

.arp-rating {
	margin-bottom: 6px;
	line-height: 1;
}

.arp-stars {
	position: relative;
	display: inline-block;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 2px;
	white-space: nowrap;
}

.arp-stars::before {
	content: "\2605\2605\2605\2605\2605";
	color: var(--arp-star-empty);
}

.arp-stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
}

.arp-stars-fill::before {
	content: "\2605\2605\2605\2605\2605";
	color: var(--arp-star);
}

/* ---------- Prix ---------- */

.arp-price {
	margin-bottom: 10px;
	font-weight: 700;
	line-height: 1.3;
}

.arp-price del {
	opacity: .6;
	font-weight: 400;
	font-size: .85em;
	margin-right: 6px;
}

.arp-price ins {
	text-decoration: none;
	background: none;
}

.arp-del-block-yes .arp-price del {
	display: block;
	margin-right: 0;
}

/* ---------- Bouton ---------- */

.arp-actions {
	padding-top: 4px;
}

.arp-widget .arp-button {
	display: inline-block;
	box-sizing: border-box;
	padding: 10px 16px;
	border: 0;
	border-radius: 0;
	text-align: center;
	text-decoration: none;
	line-height: 1.3;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.arp-btn-full-yes .arp-button {
	display: block;
	width: 100%;
}

.arp-button.loading {
	opacity: .6;
}

.arp-actions .added_to_cart {
	display: block;
	margin-top: 6px;
	font-size: .85em;
}

/* ---------- Étiquette promo ---------- */

.arp-badge {
	position: absolute;
	top: var(--arp-badge-offset);
	left: var(--arp-badge-offset);
	z-index: 2;
	padding: 4px 10px;
	border-radius: 3px;
	background-color: #c62828;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	pointer-events: none;
}

.arp-badge-right .arp-badge {
	left: auto;
	right: var(--arp-badge-offset);
}

/* ---------- Pagination ---------- */

.arp-loading .arp-grid {
	opacity: .5;
	pointer-events: none;
}

.arp-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 30px;
}

.arp-pagination[hidden],
.arp-loadmore-wrap[hidden],
.arp-spinner[hidden] {
	display: none !important;
}

.arp-widget .arp-page {
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #ddd;
	border-radius: 3px;
	background: #fff;
	color: #333;
	font: inherit;
	line-height: 36px;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.arp-widget .arp-page.is-active,
.arp-widget .arp-page:hover:not([disabled]):not(.arp-dots) {
	background: #222;
	border-color: #222;
	color: #fff;
}

.arp-widget .arp-page[disabled] {
	opacity: .4;
	cursor: default;
}

.arp-widget .arp-dots {
	border-color: transparent;
	background: transparent;
	cursor: default;
}

.arp-loadmore-wrap {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

.arp-widget .arp-loadmore {
	padding: 12px 28px;
	border: 1px solid #222;
	border-radius: 3px;
	background: #fff;
	color: #222;
	font: inherit;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.arp-widget .arp-loadmore:hover {
	background: #222;
	color: #fff;
}

.arp-widget .arp-loadmore[disabled] {
	opacity: .6;
	cursor: wait;
}

.arp-sentinel {
	height: 1px;
}

.arp-spinner {
	width: 28px;
	height: 28px;
	margin: 20px auto 0;
	border: 3px solid rgba(0, 0, 0, .1);
	border-top-color: rgba(0, 0, 0, .5);
	border-radius: 50%;
	visibility: hidden;
}

.arp-loading .arp-spinner {
	visibility: visible;
	animation: arp-spin .7s linear infinite;
}

@keyframes arp-spin {
	to { transform: rotate(360deg); }
}

.arp-empty {
	margin: 0;
	padding: 20px;
	text-align: center;
	opacity: .7;
}

@media (prefers-reduced-motion: reduce) {
	.arp-item.arp-new,
	.arp-loading .arp-spinner {
		animation: none;
	}
	.arp-image-link img,
	.arp-card {
		transition: none;
	}
}

/* Indicateur de l'éditeur Elementor (jamais affiché sur le site publié). */
.arp-debug {
	margin: 0 0 8px;
	padding: 6px 10px;
	border-left: 3px solid #92003b;
	background: #fdf1f5;
	color: #4a0020;
	font: 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
