/*
 * Elementor Shop Reviews — mirrors the xsmokehub Home page "Customer Reviews"
 * section (Home.tsx): centered eyebrow + DM Serif title, light-gray rounded
 * cards with stars + quote + review text, avatar-initial footer, and an
 * outline "Read All Reviews" button.
 * The Elementor controls override these defaults via generated CSS.
 */

/* ---- Wrapper ---- */
.esr-reviews {
	width: 100%;
}

/* ---- Heading ---- */
.esr-heading {
	text-align: center;
	margin-bottom: 48px;
}

.esr-eyebrow {
	display: block;
	margin-bottom: 8px;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 1;
	text-transform: uppercase;
	color: #888888;
}

.esr-title {
	margin: 0;
	font-family: 'DM Serif Display', serif;
	font-size: 36px;
	font-weight: 400;
	line-height: 1.15;
	color: #222222;
}

/* ---- Grid ---- */
.esr-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)); /* fallback; Elementor overrides */
	column-gap: 24px;
	row-gap: 24px;
}

/* ---- Card ---- */
.esr-card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	background-color: #f5f5f5;
	border-radius: 16px;
}

.esr-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.esr-stars {
	display: inline-flex;
	gap: 2px;
}

.esr-stars svg {
	display: block;
}

.esr-quote {
	display: block;
	flex-shrink: 0;
}

.esr-text {
	margin: 0;
	flex: 1;
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	color: #444444;
	word-break: break-word;
}

/* ---- Footer: avatar + author ---- */
.esr-footer {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 8px;
	border-top: 1px solid #e5e5e5;
}

.esr-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background-color: #222222;
	flex-shrink: 0;
}

.esr-avatar span {
	color: #ffffff;
	font-family: 'Jost', sans-serif;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.05em;
}

.esr-meta {
	min-width: 0;
}

.esr-name {
	margin: 0;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	color: #222222;
}

.esr-product {
	margin: 0;
	font-family: 'Jost', sans-serif;
	font-size: 10px;
	font-weight: 400;
	line-height: 1.4;
	color: #888888;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---- "Read All Reviews" button ---- */
.esr-footer-btn {
	text-align: center;
	margin-top: 32px;
}

.esr-read-all {
	display: inline-block;
	border: 1px solid #222222;
	border-radius: 12px;
	background-color: transparent;
	color: #222222;
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	padding: 12px 32px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.esr-read-all:hover {
	background-color: #222222;
	color: #ffffff;
}

/* ---- Responsive: tablet 2 columns, mobile 1 column ---- */
@media (max-width: 1024px) {
	.esr-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	.esr-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
	}

	.esr-title {
		font-size: 28px;
	}
}
