/* ============================================
   Loox Reviews Display — Frontend
   Style proche de Loox : masonry, photos d'abord
   ============================================ */

/* === Résumé étoiles + (count) sous le titre dans les listings et fiche produit === */
.lrd-summary {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	margin: 6px 0;
	line-height: 1;
}
.lrd-summary .lrd-stars { gap: 1px; }
.lrd-summary .lrd-star { font-size: 16px; }
.lrd-summary-count {
	color: inherit;
	font-size: 14px;
	font-weight: 500;
	opacity: 0.85;
}
.lrd-summary--single {
	margin: 8px 0 14px;
}
.lrd-summary--single .lrd-star { font-size: 18px; }
.lrd-summary--single .lrd-summary-count { font-size: 15px; }

/* Loop : si le thème met du gap, ne pas en rajouter */
.products .lrd-summary {
	margin: 4px 0;
	justify-content: center;
}

.lrd-block {
	margin: 24px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	color: #1f2328;
	line-height: 1.4;
}

/* === Header === */
.lrd-header {
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.lrd-stars-line {
	display: flex;
	align-items: center;
	gap: 12px;
}
.lrd-count {
	font-size: 15px;
	font-weight: 500;
}

/* === Stars === */
.lrd-stars { display: inline-flex; gap: 1px; }
.lrd-star { font-size: 18px; line-height: 1; }
.lrd-star--full,
.lrd-star--half { color: #fbbf24; }
.lrd-star--empty { color: #d4d4d8; }
.lrd-star--half {
	background: linear-gradient(90deg, #fbbf24 50%, #d4d4d8 50%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* === Masonry grid (CSS columns) === */
.lrd-grid {
	column-count: 5;
	column-gap: 14px;
}
@media (max-width: 1200px) { .lrd-grid { column-count: 4; } }
@media (max-width: 900px)  { .lrd-grid { column-count: 3; } }
@media (max-width: 640px)  { .lrd-grid { column-count: 2; column-gap: 10px; } }

.lrd-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
	overflow: hidden;
	margin-bottom: 14px;
	break-inside: avoid;
	display: inline-block; /* required for column-break to work in some browsers */
	width: 100%;
}

/* Hide cards beyond initial page size; JS reveals more on click. */
.lrd-card.lrd-hidden { display: none; }

.lrd-card-photo {
	margin: 0;
	background: #f3f4f6;
	display: block;
}
.lrd-card-photo img {
	display: block;
	width: 100%;
	height: auto;
	cursor: zoom-in;
}

.lrd-card-body { padding: 12px 14px 14px; }

.lrd-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	flex-wrap: wrap;
}
.lrd-card-name {
	font-weight: 600;
	font-size: 14px;
}
.lrd-verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #2563eb;
	font-weight: 500;
}
.lrd-verified svg { color: #2563eb; }

.lrd-card-stars { margin: 4px 0 8px; }
.lrd-card-stars .lrd-star { font-size: 15px; }

.lrd-card-text {
	font-size: 14px;
	color: #1f2328;
	margin: 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* === Show more === */
.lrd-show-more-wrap {
	text-align: center;
	margin-top: 22px;
}
.lrd-show-more {
	background: #fff;
	border: 1px solid #1f2328;
	color: #1f2328;
	padding: 10px 20px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	font-family: inherit;
}
.lrd-show-more:hover { background: #1f2328; color: #fff; }

/* === Lightbox === */
.lrd-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.92);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px;
}
.lrd-lightbox.is-open { display: flex; }
.lrd-lb-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	user-select: none;
}
.lrd-lb-close,
.lrd-lb-prev,
.lrd-lb-next {
	position: absolute;
	background: rgba(255,255,255,0.1);
	color: #fff;
	border: none;
	width: 48px; height: 48px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s;
}
.lrd-lb-close:hover,
.lrd-lb-prev:hover,
.lrd-lb-next:hover { background: rgba(255,255,255,0.25); }
.lrd-lb-close { top: 20px; right: 20px; }
.lrd-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lrd-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
	.lrd-lightbox { padding: 16px; }
	.lrd-lb-close { top: 8px; right: 8px; }
	.lrd-lb-prev { left: 4px; }
	.lrd-lb-next { right: 4px; }
}
