/**
 * Rosha Supply — homepage sections. Scoped to .rosha-main so it never
 * touches Elementor-owned markup on other page types.
 */

.rosha-main,
.rosha-main * {
	box-sizing: border-box;
}
.rosha-main {
	background: color-mix(in srgb, var(--rosha-bg) 78%, transparent);
	font-family: var(--rosha-font-body);
	color: var(--rosha-text);
	overflow-x: hidden;
}

.rosha-section { padding-block: var(--rosha-section-space); }
.rosha-section-title {
	font-family: var(--rosha-font-display);
	font-size: var(--rosha-text-h2);
	font-weight: 700;
	margin: 0 0 28px;
	text-wrap: balance;
}

.rosha-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 28px;
	border-radius: var(--rosha-radius);
	font-size: var(--rosha-text-button);
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform var(--rosha-speed) var(--rosha-ease), background var(--rosha-speed) var(--rosha-ease), border-color var(--rosha-speed) var(--rosha-ease), color var(--rosha-speed) var(--rosha-ease);
}
.rosha-main button,
.rosha-main .rosha-btn {
	font-family: var(--rosha-font-body);
	letter-spacing: 0;
}
.rosha-main .rosha-btn-primary { background: var(--rosha-gold); color: var(--rosha-bg); border-color: var(--rosha-gold); }
.rosha-main .rosha-btn-primary:hover, .rosha-main .rosha-btn-primary:focus-visible { background: var(--rosha-turquoise); border-color: var(--rosha-turquoise-light); color: var(--rosha-accent-contrast); transform: translateY(-1px); }
.rosha-main .rosha-btn-ghost { background: transparent; color: var(--rosha-text); border-color: var(--rosha-border-gold); }
.rosha-main .rosha-btn-ghost:hover, .rosha-main .rosha-btn-ghost:focus-visible { border-color: var(--rosha-turquoise-light); color: var(--rosha-turquoise-light); }
.rosha-btn-small { padding: 9px 16px; font-size: var(--rosha-text-small); width: 100%; }

.rosha-admin-hint {
	color: var(--rosha-text-muted);
	font-size: var(--rosha-text-small);
	background: var(--rosha-surface);
	border: 1px dashed var(--rosha-border-gold);
	border-radius: var(--rosha-radius);
	padding: 14px 18px;
}

/* ---------------------------------------------------------------- */
/* Hero slider                                                        */
/* ---------------------------------------------------------------- */

.rosha-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(160deg, var(--rosha-bg-secondary), var(--rosha-bg) 70%);
}

.rosha-hero-track { position: relative; min-height: clamp(420px, 62vw, 620px); }

.rosha-hero-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	min-height: inherit;
	opacity: 0;
	visibility: hidden;
	transition: opacity 500ms var(--rosha-ease), visibility 0s linear 500ms;
}
.rosha-hero-slide.is-active { position: relative; opacity: 1; visibility: visible; transition: opacity 500ms var(--rosha-ease); }

.rosha-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.rosha-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.rosha-hero-slide:nth-child(n+2) .rosha-hero-media img {
	object-position: center center;
	transform: scaleX(-1);
	transform-origin: center center;
}
.rosha-hero-slide::after {
	/* Gradient scrim doubles as the graceful fallback when a slide has no
	   image — still reads as an intentional, on-brand background. */
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	/* Text sits on the visual right in this RTL layout (flex-start), so the
	   scrim must be opaque on the right (behind text) and clear on the
	   left (where the artwork reads) — reversed from an LTR hero. */
	background:
		linear-gradient(to left, var(--rosha-bg) 0%, rgba(8,11,12,0.68) 38%, rgba(8,11,12,0.18) 70%, transparent 100%),
		radial-gradient(circle at 15% 25%, var(--rosha-border-turquoise), transparent 55%);
}
[data-theme="light"] .rosha-hero-slide::after {
	background:
		linear-gradient(to left, var(--rosha-bg) 0%, rgba(247,244,238,0.82) 38%, rgba(247,244,238,0.3) 70%, transparent 100%),
		radial-gradient(circle at 15% 25%, var(--rosha-border-turquoise), transparent 55%);
}

.rosha-hero-content {
	position: relative;
	z-index: 2;
	max-width: 620px;
	padding: clamp(32px, 6vw, 80px) var(--rosha-gutter);
}
.rosha-hero-badge {
	display: inline-block;
	margin-bottom: 14px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--rosha-border-turquoise);
	color: var(--rosha-turquoise-light);
	font-size: var(--rosha-text-meta);
	font-weight: 600;
}
.rosha-hero-eyebrow {
	display: block;
	color: var(--rosha-gold-light);
	font-weight: 600;
	letter-spacing: 0.04em;
	margin-bottom: 12px;
	font-size: var(--rosha-text-small);
}
.rosha-hero-title {
	font-family: var(--rosha-font-display);
	font-size: var(--rosha-text-display);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 18px;
	text-wrap: balance;
}
.rosha-hero-title--h2 { font-size: var(--rosha-text-h1); }
.rosha-hero-desc { color: var(--rosha-text-muted); font-size: 1.05rem; line-height: 1.7; max-width: 46ch; margin: 0 0 28px; }
.rosha-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.rosha-hero-controls {
	position: absolute;
	bottom: clamp(16px, 3vw, 32px);
	inset-inline: var(--rosha-gutter);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}
.rosha-main .rosha-hero-prev, .rosha-main .rosha-hero-next {
	width: 46px; height: 46px;
	border-radius: 50%;
	border: 1px solid var(--rosha-border);
	background: var(--rosha-overlay);
	color: var(--rosha-text);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
	transition: background var(--rosha-speed) var(--rosha-ease), border-color var(--rosha-speed) var(--rosha-ease), color var(--rosha-speed) var(--rosha-ease), transform var(--rosha-speed) var(--rosha-ease);
}
.rosha-main .rosha-hero-prev svg, .rosha-main .rosha-hero-next svg {
	width: 26px !important;
	height: 26px !important;
	min-width: 26px;
	flex: 0 0 26px;
}
.rosha-main .rosha-hero-prev:hover, .rosha-main .rosha-hero-next:hover, .rosha-main .rosha-hero-prev:focus-visible, .rosha-main .rosha-hero-next:focus-visible { background: var(--rosha-turquoise); border-color: var(--rosha-turquoise-light); color: var(--rosha-accent-contrast); transform: translateY(-1px); }
.rosha-hero-dots { display: flex; gap: 8px; }
.rosha-main .rosha-hero-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--rosha-border-strong, var(--rosha-border));
	border: none; cursor: pointer; padding: 0;
	transition: background var(--rosha-speed) var(--rosha-ease), transform var(--rosha-speed) var(--rosha-ease);
}
.rosha-main .rosha-hero-dot.is-active { background: var(--rosha-gold); transform: scale(1.3); }

@media (prefers-reduced-motion: reduce) {
	.rosha-hero-slide { transition-duration: 0.01ms !important; }
}

@media (max-width: 700px) {
	.rosha-hero-track { min-height: 480px; }
	.rosha-hero-content { max-width: 100%; padding-top: 48px; padding-bottom: 88px; }
	.rosha-hero-slide::after {
		background:
			linear-gradient(180deg, rgba(8,11,12,0.2) 0%, var(--rosha-bg) 78%),
			radial-gradient(circle at 85% 10%, var(--rosha-border-turquoise), transparent 55%);
	}
	[data-theme="light"] .rosha-hero-slide::after {
		background:
			linear-gradient(180deg, rgba(247,244,238,0.15) 0%, var(--rosha-bg) 78%),
			radial-gradient(circle at 85% 10%, var(--rosha-border-turquoise), transparent 55%);
	}
}

/* ---------------------------------------------------------------- */
/* Trust strip                                                        */
/* ---------------------------------------------------------------- */

.rosha-trust { padding-block: 28px; border-bottom: 1px solid var(--rosha-border); }
.rosha-trust-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
}
.rosha-trust-item {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--rosha-text-muted);
	font-size: var(--rosha-text-small);
}
.rosha-trust-item svg { color: var(--rosha-gold); flex-shrink: 0; }

/* ---------------------------------------------------------------- */
/* Brands                                                             */
/* ---------------------------------------------------------------- */

.rosha-brands-row { display: flex; flex-wrap: wrap; gap: 14px; }
.rosha-brand-chip {
	padding: 12px 26px;
	border: 1px solid var(--rosha-border);
	border-radius: 999px;
	color: var(--rosha-text);
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: border-color var(--rosha-speed) var(--rosha-ease), color var(--rosha-speed) var(--rosha-ease);
}
.rosha-brand-chip:hover, .rosha-brand-chip:focus-visible { border-color: var(--rosha-turquoise-light); color: var(--rosha-turquoise-light); }

/* ---------------------------------------------------------------- */
/* Category grid                                                      */
/* ---------------------------------------------------------------- */

.rosha-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}
@media (max-width: 900px) { .rosha-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .rosha-cat-grid { grid-template-columns: repeat(2, 1fr); } }

.rosha-cat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 14px;
	background: var(--rosha-surface);
	border: 1px solid var(--rosha-border);
	border-radius: var(--rosha-radius-lg);
	text-decoration: none;
	color: var(--rosha-text);
	text-align: center;
	transition: transform var(--rosha-speed) var(--rosha-ease), border-color var(--rosha-speed) var(--rosha-ease), box-shadow var(--rosha-speed) var(--rosha-ease);
}
.rosha-cat-card:hover, .rosha-cat-card:focus-visible {
	transform: translateY(-3px);
	border-color: var(--rosha-border-gold);
	box-shadow: var(--rosha-shadow);
}
.rosha-cat-card-media {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: var(--rosha-radius);
	background: var(--rosha-bg-secondary);
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
	color: var(--rosha-gold);
}
.rosha-cat-card-media img { width: 100%; height: 100%; object-fit: cover; }
.rosha-cat-card-name { font-size: var(--rosha-text-small); font-weight: 700; line-height: 1.5; }

/* ---------------------------------------------------------------- */
/* Product rail + card                                                */
/* ---------------------------------------------------------------- */

.rosha-carousel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 22px;
}
.rosha-carousel-head .rosha-section-title { margin: 0; }
.rosha-carousel-head-actions { display: flex; align-items: center; gap: 18px; }
.rosha-carousel-viewall {
	color: var(--rosha-turquoise-light);
	text-decoration: none;
	font-size: var(--rosha-text-small);
	font-weight: 600;
	white-space: nowrap;
}
.rosha-carousel-viewall:hover { color: var(--rosha-gold-light); }
.rosha-carousel-nav { display: flex; gap: 8px; }
.rosha-main .rosha-carousel-prev, .rosha-main .rosha-carousel-next {
	width: 44px; height: 44px;
	border-radius: 10px;
	border: 1px solid var(--rosha-border);
	background: var(--rosha-surface);
	color: var(--rosha-text);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
	transition: background var(--rosha-speed) var(--rosha-ease), border-color var(--rosha-speed) var(--rosha-ease), color var(--rosha-speed) var(--rosha-ease), opacity var(--rosha-speed) var(--rosha-ease), transform var(--rosha-speed) var(--rosha-ease);
}
.rosha-main .rosha-carousel-prev svg, .rosha-main .rosha-carousel-next svg {
	width: 24px !important;
	height: 24px !important;
	min-width: 24px;
	flex: 0 0 24px;
}
.rosha-main .rosha-carousel-prev:hover:not(.is-disabled), .rosha-main .rosha-carousel-next:hover:not(.is-disabled) { background: var(--rosha-turquoise); border-color: var(--rosha-turquoise-light); color: var(--rosha-accent-contrast); transform: translateY(-1px); }
.rosha-main .rosha-carousel-prev.is-disabled, .rosha-main .rosha-carousel-next.is-disabled { opacity: .35; cursor: default; pointer-events: none; }

.rosha-carousel { overflow: hidden; }
.rosha-carousel .swiper-wrapper { align-items: stretch; }
.rosha-carousel .swiper-slide { height: auto; }
.rosha-carousel .swiper-slide .rosha-product-card { height: 100%; }

.rosha-carousel:not(.swiper-initialized) {
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	padding-bottom: 6px;
}
.rosha-carousel:not(.swiper-initialized)::-webkit-scrollbar { display: none; }
.rosha-carousel:not(.swiper-initialized) .swiper-wrapper {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 72px) / 4);
	gap: 24px;
	width: auto;
	height: auto;
	box-sizing: border-box;
}
.rosha-carousel:not(.swiper-initialized) .swiper-slide {
	width: auto;
	min-width: 0;
}
@media (max-width: 1279px) {
	.rosha-carousel:not(.swiper-initialized) .swiper-wrapper { grid-auto-columns: calc((100% - 44px) / 3); gap: 22px; }
}
@media (max-width: 820px) {
	.rosha-carousel:not(.swiper-initialized) .swiper-wrapper { grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; }
}
@media (max-width: 520px) {
	.rosha-carousel:not(.swiper-initialized) .swiper-wrapper { grid-auto-columns: 82%; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.rosha-carousel-prev, .rosha-carousel-next { transition-duration: 0.01ms !important; }
}

.rosha-product-card {
	scroll-snap-align: start;
	background: var(--rosha-surface);
	border: 1px solid var(--rosha-border);
	border-radius: var(--rosha-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color var(--rosha-speed) var(--rosha-ease), box-shadow var(--rosha-speed) var(--rosha-ease);
}
.rosha-product-card:hover { border-color: var(--rosha-border-gold); box-shadow: var(--rosha-shadow); }

.rosha-product-card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--rosha-bg-secondary); }
.rosha-product-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rosha-product-badge {
	position: absolute; top: 10px; inset-inline-start: 10px;
	background: var(--rosha-turquoise); color: var(--rosha-bg);
	font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}

.rosha-product-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.rosha-product-card-title {
	color: var(--rosha-accent-contrast);
	text-decoration: none;
	font-weight: 600;
	font-size: var(--rosha-text-small);
	line-height: 1.5;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rosha-product-rating { color: var(--rosha-gold); font-size: 12.5px; }
.rosha-product-rating-count { color: var(--rosha-text-muted); }
.rosha-product-price { font-weight: 700; color: var(--rosha-text); }
.rosha-product-price ins { text-decoration: none; color: var(--rosha-turquoise); }
.rosha-product-price del { color: var(--rosha-text-muted); font-weight: 400; font-size: 0.9em; }
.rosha-product-stock { font-size: 12px; font-weight: 600; }
.rosha-product-stock--out { color: var(--rosha-text-muted); }
.rosha-product-stock--low { color: var(--rosha-gold); }
.rosha-product-cta { margin-top: auto; padding-top: 4px; }
.rosha-main .rosha-product-cta .button,
.rosha-main .rosha-product-cta .added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	padding: 9px 14px;
	border: 1px solid var(--rosha-gold);
	border-radius: var(--rosha-radius);
	background: var(--rosha-gold);
	color: var(--rosha-bg);
	font-family: var(--rosha-font-body);
	font-size: var(--rosha-text-small);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	transition: background var(--rosha-speed) var(--rosha-ease), border-color var(--rosha-speed) var(--rosha-ease), transform var(--rosha-speed) var(--rosha-ease);
}
.rosha-main .rosha-product-cta .button:hover,
.rosha-main .rosha-product-cta .button:focus-visible,
.rosha-main .rosha-product-cta .added_to_cart:hover,
.rosha-main .rosha-product-cta .added_to_cart:focus-visible {
	background: var(--rosha-turquoise);
	border-color: var(--rosha-turquoise-light);
	color: var(--rosha-text);
	transform: translateY(-1px);
}

/* ---------------------------------------------------------------- */
/* Promotional banner                                                 */
/* ---------------------------------------------------------------- */
.rosha-promo {
	background: color-mix(in srgb, var(--rosha-bg-secondary) 84%, transparent);
	border-block: 1px solid var(--rosha-border);
	backdrop-filter: blur(3px);
}
.rosha-promo-inner {
	display: grid;
	grid-template-columns: 220px 1fr;
	align-items: center;
	gap: 40px;
}
.rosha-promo--reverse .rosha-promo-inner { grid-template-columns: 1fr 220px; }
.rosha-promo--reverse .rosha-promo-visual { order: 2; }
@media (max-width: 700px) {
	.rosha-promo-inner { grid-template-columns: 1fr; text-align: center; }
	.rosha-promo--reverse .rosha-promo-visual { order: 0; }
}
.rosha-promo-visual {
	aspect-ratio: 1/1;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: var(--rosha-gold);
	background:
		radial-gradient(circle at 30% 25%, var(--rosha-border-turquoise), transparent 60%),
		radial-gradient(circle at 75% 80%, var(--rosha-border-gold), transparent 55%),
		var(--rosha-surface);
	border: 1px solid var(--rosha-border);
}
.rosha-promo-eyebrow { display: block; color: var(--rosha-turquoise-light); font-weight: 600; font-size: var(--rosha-text-small); margin-bottom: 8px; }
.rosha-promo-text p { color: var(--rosha-text-muted); line-height: 1.8; max-width: 56ch; margin: 0 0 22px; }

/* ---------------------------------------------------------------- */
/* Aftercare spotlight                                                */
/* ---------------------------------------------------------------- */

.rosha-spotlight {
	background: color-mix(in srgb, var(--rosha-bg-secondary) 84%, transparent);
	border-block: 1px solid var(--rosha-border);
	backdrop-filter: blur(3px);
}
.rosha-spotlight-inner { max-width: 720px; text-align: center; margin-inline: auto; }
.rosha-spotlight p { color: var(--rosha-text-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 26px; }

/* ---------------------------------------------------------------- */
/* Blog grid                                                          */
/* ---------------------------------------------------------------- */

.rosha-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 700px) { .rosha-blog-grid { grid-template-columns: 1fr; } }
.rosha-blog-card { text-decoration: none; color: var(--rosha-text); display: block; }
.rosha-blog-card-media { display: block; aspect-ratio: 16/10; background: var(--rosha-surface); border-radius: var(--rosha-radius); overflow: hidden; margin-bottom: 12px; }
.rosha-blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.rosha-blog-card-title { font-weight: 600; font-size: var(--rosha-text-small); line-height: 1.6; }
.rosha-blog-card:hover .rosha-blog-card-title { color: var(--rosha-gold-light); }

/* ---------------------------------------------------------------- */
/* Social CTA                                                         */
/* ---------------------------------------------------------------- */

.rosha-social-cta { text-align: center; }
.rosha-social-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
