/* RefStore Sections: prefab section styles. Grid columns come from --rs-grid-cols. */

.rs-grid {
	display: grid;
	grid-template-columns: repeat(var(--rs-grid-cols, 4), 1fr);
	gap: 16px;
}

/* ---------- hero carousel ---------- */
.rs-hero { position: relative; border-radius: var(--rs-radius, 10px); overflow: hidden; }
.rs-hero-track { position: relative; }
.rs-hero-slide { display: none; }
.rs-hero-slide.is-active { display: block; }
.rs-hero-slide img { display: block; width: 100%; height: auto; }
.rs-hero-slide a { display: block; position: relative; }
.rs-hero-caption {
	position: absolute;
	left: 6%;
	top: 50%;
	transform: translateY(-50%);
	max-width: 46%;
	color: #fff;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.rs-hero-caption h2 { color: #fff; font-size: clamp(20px, 3.4vw, 42px); margin: 0 0 10px; }
.rs-hero-caption p { font-size: clamp(13px, 1.6vw, 17px); margin: 0 0 14px; }
.rs-hero-btn {
	display: inline-block;
	background: var(--rs-accent, #df2020);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	padding: 11px 22px;
	border-radius: 8px;
}
.rs-hero-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 5;
}
.rs-hero-dots button {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: 0;
	background: rgba(255, 255, 255, .55);
	padding: 0;
}
.rs-hero-dots button.is-active { background: var(--rs-accent, #df2020); }

/* ---------- category cards ---------- */
.rs-cat-cards .rs-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	background: var(--rs-bg-soft, #f8fafc);
	border: 1px solid var(--rs-line, #e5e7eb);
	border-radius: var(--rs-radius, 10px);
	padding: 16px 12px;
	color: #0f172a;
	font-weight: 600;
	font-size: 14px;
	text-align: center;
	transition: box-shadow .15s ease, transform .15s ease;
}
.rs-cat-cards .rs-card:hover { box-shadow: 0 10px 26px rgba(15, 23, 42, .1); transform: translateY(-2px); }
.rs-cat-cards .rs-card img { max-height: 130px; width: auto; border-radius: 8px; }

/* ---------- promo banners ---------- */
.rs-promos .rs-promo { display: block; border-radius: var(--rs-radius, 10px); overflow: hidden; }
.rs-promos .rs-promo img { display: block; width: 100%; height: auto; transition: transform .25s ease; }
.rs-promos .rs-promo:hover img { transform: scale(1.03); }

/* ---------- brand wall ---------- */
.rs-brands .rs-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid var(--rs-line, #e5e7eb);
	border-radius: var(--rs-radius, 10px);
	padding: 14px;
	min-height: 72px;
	filter: grayscale(35%);
	transition: filter .15s ease, box-shadow .15s ease;
	font-weight: 700;
	color: #0f172a;
}
.rs-brands .rs-brand:hover { filter: none; box-shadow: 0 8px 22px rgba(15, 23, 42, .08); }
.rs-brands .rs-brand img { max-height: 56px; width: auto; }

/* ---------- blog grid ---------- */
.rs-blog .rs-blog-card {
	border: 1px solid var(--rs-line, #e5e7eb);
	border-radius: var(--rs-radius, 10px);
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.rs-blog .rs-blog-card img { width: 100%; height: auto; display: block; }
.rs-blog .rs-blog-card h3 { font-size: 16px; margin: 12px 14px 4px; }
.rs-blog .rs-blog-card h3 a { color: #0f172a; }
.rs-blog .rs-blog-card h3 a:hover { color: var(--rs-accent, #df2020); }
.rs-blog .rs-blog-card p { margin: 0 14px 12px; font-size: 13.5px; color: var(--rs-muted, #64748b); }
.rs-blog .rs-blog-card .rs-blog-date { font-size: 12px; margin-bottom: 6px; }

/* ---------- testimonials ---------- */
.rs-testimonials .rs-quote {
	margin: 0;
	background: var(--rs-bg-soft, #f8fafc);
	border: 1px solid var(--rs-line, #e5e7eb);
	border-radius: var(--rs-radius, 10px);
	padding: 18px;
	font-size: 14px;
}
.rs-testimonials .rs-quote p { margin: 0 0 10px; }
.rs-testimonials .rs-quote cite { font-style: normal; font-weight: 700; color: #0f172a; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.rs-grid { grid-template-columns: repeat(min(var(--rs-grid-cols, 4), 3), 1fr); }
	.rs-hero-caption { max-width: 60%; }
}
@media (max-width: 640px) {
	.rs-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.rs-brands .rs-grid, .rs-cat-cards .rs-grid { grid-template-columns: repeat(3, 1fr); }
	.rs-hero-caption h2 { font-size: 18px; }
	.rs-hero-caption p { display: none; }
}
