/*
 * Riverside-Inspired Woo Home
 * 所有样式均使用 rih- 前缀，避免污染主题和 Elementor。
 */

:root {
	--rih-bg: #f5f3ef;
	--rih-surface: #ffffff;
	--rih-text: #171717;
	--rih-muted: #6d6a64;
	--rih-line: rgba(23, 23, 23, 0.14);
	--rih-dark: #171717;
	--rih-light: #ffffff;
	--rih-radius: 0;
	--rih-container: 1440px;
	--rih-shadow: 0 24px 70px rgba(20, 20, 20, 0.08);
}

html {
	scroll-behavior: smooth;
}

body.rih-home-page {
	margin: 0;
	background: var(--rih-bg);
	color: var(--rih-text);
}

body.rih-home-page.admin-bar .rih-header {
	top: 32px;
}

.rih-home,
.rih-home * {
	box-sizing: border-box;
}

.rih-home {
	min-height: 100vh;
	background: var(--rih-bg);
	color: var(--rih-text);
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.5;
}

.rih-home img {
	display: block;
	max-width: 100%;
}

.rih-home a {
	color: inherit;
	text-decoration: none;
}

.rih-container {
	width: min(calc(100% - 48px), var(--rih-container));
	margin-inline: auto;
}

.rih-skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 99999;
	padding: 10px 14px;
	background: #fff;
	color: #000;
	transform: translateY(-150%);
}

.rih-skip-link:focus {
	transform: translateY(0);
}

.rih-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(19, 19, 19, 0.82);
	color: #fff;
	backdrop-filter: blur(18px);
	transition: background 220ms ease, border-color 220ms ease;
}

.rih-header.is-scrolled {
	border-color: rgba(255, 255, 255, 0.1);
	background: rgba(19, 19, 19, 0.96);
}

.rih-header__inner {
	display: grid;
	grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
	align-items: center;
	min-height: 76px;
	gap: 24px;
}

.rih-brand {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rih-brand__logo {
	width: auto;
	max-width: 190px;
	max-height: 44px;
	object-fit: contain;
}

.rih-brand__text {
	font-size: 15px;
}

.rih-nav__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rih-nav__list a,
.rih-cart-link {
	position: relative;
	font-size: 14px;
	letter-spacing: 0.02em;
}

.rih-nav__list a::after,
.rih-cart-link::after {
	position: absolute;
	right: 0;
	bottom: -7px;
	left: 0;
	height: 1px;
	background: currentColor;
	content: "";
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 220ms ease;
}

.rih-nav__list a:hover::after,
.rih-cart-link:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.rih-cart-link {
	justify-self: end;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.rih-cart-count {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-size: 11px;
	font-weight: 700;
}

.rih-menu-toggle {
	display: none;
	border: 0;
	background: transparent;
	color: inherit;
}

.rih-menu-toggle span:not(.screen-reader-text) {
	display: block;
	width: 24px;
	height: 1px;
	margin: 5px 0;
	background: currentColor;
}

.rih-hero {
	position: relative;
	display: grid;
	min-height: min(84vh, 900px);
	place-items: end start;
	overflow: hidden;
	background: #282725;
	color: #fff;
	isolation: isolate;
}

.rih-hero--image::before {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image: var(--rih-hero-image);
	background-position: center;
	background-size: cover;
	content: "";
	transform: scale(1.035);
	animation: rih-hero-enter 1.2s cubic-bezier(.2,.7,.2,1) both;
}

.rih-hero--plain {
	background:
		radial-gradient(circle at 80% 20%, rgba(255,255,255,.15), transparent 35%),
		linear-gradient(135deg, #252525, #6f675c);
}

.rih-hero__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.12) 65%),
		linear-gradient(0deg, rgba(0,0,0,.45), transparent 55%);
}

.rih-hero__content {
	padding-top: 130px;
	padding-bottom: clamp(70px, 10vw, 150px);
}

.rih-hero h1 {
	max-width: 920px;
	margin: 10px 0 22px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(56px, 9vw, 132px);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: .88;
}

.rih-hero__content > p:not(.rih-kicker) {
	max-width: 620px;
	margin: 0;
	font-size: clamp(16px, 2vw, 22px);
	color: rgba(255,255,255,.83);
}

.rih-kicker {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.rih-hero__actions {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 34px;
}

.rih-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 13px 23px;
	border: 1px solid transparent;
	border-radius: var(--rih-radius);
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.rih-button:hover {
	transform: translateY(-2px);
}

.rih-button--light {
	background: #fff;
	color: #111 !important;
}

.rih-button--dark {
	background: #171717;
	color: #fff !important;
}

.rih-button--small {
	width: 100%;
	min-height: 44px;
	margin-top: 18px;
	border-color: #171717;
	background: transparent;
	color: #171717 !important;
}

.rih-button--small:hover {
	background: #171717;
	color: #fff !important;
}

.rih-text-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border-bottom: 1px solid currentColor;
	padding-bottom: 4px;
	font-size: 14px;
}

.rih-text-link--dark {
	color: var(--rih-text);
}

.rih-section {
	padding: clamp(78px, 9vw, 140px) 0;
}

.rih-featured {
	background: var(--rih-bg);
}

.rih-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 45px;
}

.rih-section-heading h2,
.rih-contact h2 {
	margin: 8px 0 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(42px, 5vw, 76px);
	font-weight: 400;
	letter-spacing: -.035em;
	line-height: 1;
}

.rih-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px 22px;
}

.rih-product-card {
	min-width: 0;
}

.rih-product-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: #e9e6e0;
}

.rih-product-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}

.rih-product-card:hover .rih-product-card__image {
	transform: scale(1.035);
}

.rih-product-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	padding: 7px 10px;
	background: #171717;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.rih-product-card__body {
	padding-top: 17px;
}

.rih-product-card__title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 500;
}

.rih-product-card__price {
	min-height: 25px;
	font-size: 14px;
	color: var(--rih-muted);
}

.rih-product-card__price del {
	opacity: .55;
}

.rih-product-card__price ins {
	color: var(--rih-text);
	text-decoration: none;
}

.rih-empty-state {
	padding: 70px 30px;
	border: 1px solid var(--rih-line);
	text-align: center;
}

.rih-contact {
	background: #ddd7ce;
}

.rih-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(420px, .8fr);
	gap: clamp(50px, 9vw, 150px);
	align-items: start;
}

.rih-contact__copy p:last-child {
	max-width: 620px;
	margin-top: 26px;
	color: #504c46;
	font-size: 17px;
}

.rih-contact-form {
	display: grid;
	gap: 20px;
	padding: clamp(28px, 4vw, 52px);
	background: #fff;
	box-shadow: var(--rih-shadow);
}

.rih-contact-form label {
	display: grid;
	gap: 9px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.rih-contact-form input,
.rih-contact-form textarea,
.rih-country-form select {
	width: 100%;
	border: 1px solid rgba(23,23,23,.28);
	border-radius: 0;
	background: #fff;
	color: #171717;
	font: inherit;
}

.rih-contact-form input,
.rih-country-form select {
	min-height: 50px;
	padding: 0 14px;
}

.rih-contact-form textarea {
	min-height: 150px;
	padding: 14px;
	resize: vertical;
}

.rih-contact-form input:focus,
.rih-contact-form textarea:focus,
.rih-country-form select:focus {
	outline: 2px solid #171717;
	outline-offset: 2px;
}

.rih-contact-form.is-loading {
	opacity: .72;
	pointer-events: none;
}

.rih-form-status {
	min-height: 24px;
	margin: 0;
	font-size: 14px;
}

.rih-form-status.is-error {
	color: #a22020;
}

.rih-form-status.is-success {
	color: #17642b;
}

.rih-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.rih-footer {
	padding: 72px 0 26px;
	background: #171717;
	color: rgba(255,255,255,.76);
}

.rih-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr .7fr 1fr;
	gap: 70px;
}

.rih-footer h2 {
	margin: 0 0 18px;
	color: #fff;
	font-size: 12px;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.rih-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rih-footer li + li {
	margin-top: 10px;
}

.rih-brand--footer {
	color: #fff;
}

.rih-country-form select {
	border-color: rgba(255,255,255,.24);
	background: #171717;
	color: #fff;
}

.rih-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 60px;
	padding-top: 22px;
	border-top: 1px solid rgba(255,255,255,.14);
	font-size: 12px;
}

[data-rih-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}

[data-rih-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0,0,0,0);
	border: 0;
	white-space: nowrap;
}

@keyframes rih-hero-enter {
	from {
		opacity: .4;
		transform: scale(1.10);
	}
	to {
		opacity: 1;
		transform: scale(1.035);
	}
}

@media (max-width: 1050px) {
	.rih-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rih-contact__grid {
		grid-template-columns: 1fr;
	}

	.rih-contact-form {
		max-width: 760px;
	}

	.rih-header__inner {
		grid-template-columns: 1fr auto auto;
	}

	.rih-menu-toggle {
		display: block;
		order: 2;
	}

	.rih-cart-link {
		order: 3;
	}

	.rih-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		padding: 24px;
		border-top: 1px solid rgba(255,255,255,.14);
		background: #171717;
	}

	.rih-nav.is-open {
		display: block;
	}

	.rih-nav__list {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
	}
}

@media (max-width: 782px) {
	body.rih-home-page.admin-bar .rih-header {
		top: 46px;
	}

	.rih-container {
		width: min(calc(100% - 28px), var(--rih-container));
	}

	.rih-header__inner {
		min-height: 66px;
		gap: 15px;
	}

	.rih-brand__logo {
		max-width: 130px;
		max-height: 36px;
	}

	.rih-cart-link {
		font-size: 0;
	}

	.rih-cart-count {
		font-size: 11px;
	}

	.rih-hero {
		min-height: 700px;
	}

	.rih-hero h1 {
		font-size: clamp(50px, 18vw, 88px);
	}

	.rih-hero__actions,
	.rih-section-heading,
	.rih-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.rih-product-grid {
		gap: 28px 12px;
	}

	.rih-product-card__title {
		font-size: 14px;
	}

	.rih-footer__grid {
		grid-template-columns: 1fr;
		gap: 38px;
	}
}

@media (max-width: 520px) {
	.rih-product-grid {
		grid-template-columns: 1fr;
	}

	.rih-product-card__media {
		aspect-ratio: 4 / 4.8;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.rih-home *,
	.rih-home *::before,
	.rih-home *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}

	[data-rih-reveal] {
		opacity: 1;
		transform: none;
	}
}

/* Desktop featured-products scale adjustment: mobile/tablet remain unchanged. */
@media (min-width: 1051px) {
	.rih-featured .rih-container {
		width: min(calc(100% - 72px), 1800px);
	}

	.rih-featured {
		padding-top: clamp(105px, 7vw, 150px);
		padding-bottom: clamp(115px, 8vw, 170px);
	}

	.rih-featured .rih-section-heading {
		margin-bottom: 58px;
	}

	.rih-featured .rih-section-heading h2 {
		font-size: clamp(58px, 4.4vw, 88px);
	}

	.rih-featured .rih-kicker {
		font-size: 13px;
	}

	.rih-featured .rih-product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 46px 30px;
	}

	.rih-featured .rih-product-card__body {
		padding-top: 21px;
	}

	.rih-featured .rih-product-card__title {
		margin-bottom: 10px;
		font-size: 18px;
	}

	.rih-featured .rih-product-card__price {
		min-height: 29px;
		font-size: 16px;
	}

	.rih-featured .rih-button--small {
		min-height: 52px;
		margin-top: 21px;
		font-size: 13px;
	}

	.rih-featured .rih-text-link--dark {
		font-size: 15px;
	}
}
