/**
 * DigiLeather — Customer Reviews System Stylesheet
 * Luxury Aesthetics, Modern Typography & High-Conversion Trust Elements
 */

/* ----------------------------------------------------
   1. Reviews Wrapper & Section Header
---------------------------------------------------- */
.sr-wrap {
	margin: 32px 0 12px;
	position: relative;
}

.sr-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.sr-head-titles {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

.sr-head h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	color: var(--foreground, #111111);
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.sr-count {
	font-size: 13.5px;
	color: #6b7280;
	font-weight: 600;
	background: #f3f4f6;
	padding: 3px 10px;
	border-radius: 999px;
}

/* Trust Pill on Product Page */
.sr-head-trust-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: #047857;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	padding: 4px 12px;
	border-radius: 999px;
}

.sr-trust-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #059669;
	color: #ffffff;
	font-size: 10px;
	font-weight: 800;
}

/* ----------------------------------------------------
   2. Homepage Reviews Section Container (Decorated Border)
---------------------------------------------------- */
.home-reviews-section {
	margin: 48px auto 32px;
	padding: 40px 24px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 24px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
	position: relative;
	overflow: hidden;
}

.home-reviews-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--primary, #00b4d8), #0077b6, #03045e);
}

.home-reviews-head {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 32px;
}

.home-reviews-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 16px;
	background: rgba(0, 180, 216, 0.08);
	color: var(--primary, #00b4d8);
	border: 1px solid rgba(0, 180, 216, 0.25);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	margin-bottom: 14px;
}

.home-reviews-pill-stars {
	color: #f59e0b;
	font-size: 14px;
	letter-spacing: 1.5px;
}

.home-reviews-head h2 {
	font-size: 26px;
	font-weight: 800;
	color: var(--foreground, #111111);
	margin: 0 0 10px;
	letter-spacing: -0.02em;
}

.home-reviews-subtitle {
	margin: 0;
	font-size: 15px;
	color: #64748b;
	line-height: 1.6;
}

/* ----------------------------------------------------
   3. Scroll-snap Viewport & Carousel Track
---------------------------------------------------- */
.sr-viewport {
	overflow: hidden;
	position: relative;
	margin: 0 -4px;
	padding: 4px;
}

.sr-track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding: 6px 4px 18px;
	scrollbar-width: none;
}
.sr-track::-webkit-scrollbar {
	display: none;
}

/* ----------------------------------------------------
   4. The Luxury Review Card
---------------------------------------------------- */
.sr-card {
	flex: 0 0 88%;
	scroll-snap-align: start;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	padding: 22px 20px 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03), 0 8px 24px rgba(0, 0, 0, 0.02);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 14px;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

.sr-card:hover {
	transform: translateY(-4px);
	border-color: rgba(0, 180, 216, 0.45);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 20px 40px rgba(0, 180, 216, 0.12);
}

/* Elegant Watermark Quote */
.sr-card-quote-mark {
	position: absolute;
	top: 6px;
	right: 14px;
	font-size: 64px;
	font-family: Georgia, 'Times New Roman', serif;
	line-height: 1;
	color: rgba(0, 180, 216, 0.08);
	pointer-events: none;
	user-select: none;
	font-weight: bold;
}

/* Card Header */
.sr-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	position: relative;
	z-index: 1;
}

.sr-author {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.sr-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary, #00b4d8), #0077b6);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(0, 180, 216, 0.3);
}

.sr-author-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.sr-name-row {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.sr-name {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--foreground, #111111);
	line-height: 1.2;
}

.sr-badge-verified {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	background: #ecfdf5;
	color: #059669;
	font-size: 10.5px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 999px;
	border: 1px solid #a7f3d0;
	line-height: 1.3;
}

.sr-badge-verified svg {
	flex-shrink: 0;
}

.sr-date {
	font-size: 12px;
	color: #94a3b8;
}

/* SVG Stars Box */
.sr-rating-box {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.sr-stars-svg {
	display: flex;
	align-items: center;
	gap: 2px;
}

.sr-star-icon {
	width: 16px;
	height: 16px;
}

.sr-star-icon.is-filled {
	color: #f59e0b;
}

.sr-star-icon.is-empty {
	color: #e2e8f0;
}

/* Card Body */
.sr-body {
	position: relative;
	z-index: 1;
	flex: 1;
}

.sr-text {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.75;
	color: #334155;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Card Photo Attachment */
.sr-img-box {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	margin-top: 6px;
	cursor: pointer;
	max-height: 180px;
}

.sr-review-img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.sr-img-box:hover .sr-review-img {
	transform: scale(1.04);
}

.sr-img-zoom-hint {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(4px);
	color: #ffffff;
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	pointer-events: none;
	opacity: 0.9;
}

/* ----------------------------------------------------
   5. Carousel Navigation (Arrows & Dots)
---------------------------------------------------- */
.sr-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 20px;
}

.sr-arrow {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #334155;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
	transition: all 0.2s ease;
}

.sr-arrow:hover:not(:disabled) {
	border-color: var(--primary, #00b4d8);
	color: var(--primary, #00b4d8);
	transform: scale(1.06);
	box-shadow: 0 4px 12px rgba(0, 180, 216, 0.25);
}

.sr-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.sr-dots {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sr-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: #cbd5e1;
	cursor: pointer;
	transition: all 0.25s ease;
}

.sr-dot.is-active {
	background: var(--primary, #00b4d8);
	width: 24px;
	border-radius: 999px;
}

/* ----------------------------------------------------
   6. Lightbox Modal for Full-Size Review Photos
---------------------------------------------------- */
.sr-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sr-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.sr-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(8px);
}

.sr-lightbox-dialog {
	position: relative;
	z-index: 1;
	max-width: 90vw;
	max-height: 90vh;
	background: #ffffff;
	border-radius: 16px;
	padding: 12px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
	display: flex;
	flex-direction: column;
	align-items: center;
	animation: srScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes srScaleUp {
	from { transform: scale(0.92); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}

.sr-lightbox-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 0;
	background: #ffffff;
	color: #0f172a;
	font-size: 20px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sr-lightbox-img {
	max-width: 100%;
	max-height: 75vh;
	border-radius: 10px;
	object-fit: contain;
}

.sr-lightbox-caption {
	margin-top: 10px;
	font-size: 13.5px;
	color: #475569;
	font-weight: 600;
	text-align: center;
}

/* ----------------------------------------------------
   7. Responsive Breakpoints
---------------------------------------------------- */
@media (min-width: 640px) {
	.sr-card {
		flex-basis: calc((100% - 18px) / 2);
	}
}

@media (min-width: 1024px) {
	.sr-card {
		flex-basis: calc((100% - 36px) / 3);
	}
	.home-reviews-section {
		padding: 48px 36px;
	}
}
