/**
 * WooCommerce shop page — layout from ron-preview rc-shop.
 */

.sttm-shop-page {
	--shop-head: #02749c;
	--shop-line: #65a30d;
	--shop-line-bright: #84cc16;
	--shop-ink: #023d67;
	--shop-ink-soft: rgba(2, 61, 103, 0.78);
	--shop-line-soft: rgba(101, 163, 13, 0.28);
	--shop-surface: #f8fafc;
	--rc-container: 1200px;
	--rc-gutter: clamp(16px, 4vw, 32px);
	--rc-prose: 62ch;
	background: #fff;
	color: var(--shop-ink);
	font-family: Inter, system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.65;
}

.sttm-shop-page .sttm-shop-wrap {
	width: 100%;
	max-width: var(--rc-container);
	margin-inline: auto;
	padding-inline: var(--rc-gutter);
}

.sttm-shop-page h1,
.sttm-shop-page h2,
.sttm-shop-page h3 {
	font-family: Oswald, system-ui, sans-serif;
	text-wrap: balance;
}

.sttm-shop-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 16px;
	font-family: Oswald, system-ui, sans-serif;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--shop-line);
}

.sttm-shop-eyebrow::before {
	content: "";
	width: 52px;
	height: 3px;
	background: var(--shop-line);
}

.sttm-shop-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(56px, 7vw, 88px) 0 clamp(48px, 6vw, 72px);
	background:
		linear-gradient(135deg, #021a2e 0%, #023d67 42%, #02749c 100%);
	border-bottom: none;
	color: #f8fafc;
}

.sttm-shop-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.sttm-shop-hero-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(40px);
}

.sttm-shop-hero-glow--a {
	width: min(55vw, 520px);
	height: min(55vw, 520px);
	top: -30%;
	right: -8%;
	background: rgba(132, 204, 22, 0.22);
}

.sttm-shop-hero-glow--b {
	width: min(45vw, 420px);
	height: min(45vw, 420px);
	bottom: -35%;
	left: -10%;
	background: rgba(56, 189, 248, 0.18);
}

.sttm-shop-hero-pattern {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	color: rgba(255, 255, 255, 0.08);
}

.sttm-shop-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: linear-gradient(90deg, transparent 0%, var(--shop-line-bright) 20%, #38bdf8 50%, var(--shop-line-bright) 80%, transparent 100%);
	z-index: 2;
}

.sttm-shop-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 760px;
}

.sttm-shop-hero .sttm-shop-eyebrow {
	color: var(--shop-line-bright);
}

.sttm-shop-hero .sttm-shop-eyebrow::before {
	background: var(--shop-line-bright);
}

.sttm-shop-hero h1 {
	margin: 0 0 18px;
	color: #fff;
	font-size: clamp(2.2rem, 5.5vw, 3.6rem);
	font-weight: 700;
	line-height: 1.08;
	text-transform: uppercase;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.sttm-shop-lead {
	margin: 0;
	max-width: var(--rc-prose);
	font-size: 1.12rem;
	color: rgba(248, 250, 252, 0.82);
}

.sttm-shop-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin-top: 28px;
	font-family: Oswald, system-ui, sans-serif;
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--shop-line-bright);
}

.sttm-shop-hero-meta span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid rgba(132, 204, 22, 0.35);
	background: rgba(2, 26, 46, 0.28);
	backdrop-filter: blur(6px);
}

.sttm-shop-hero-meta svg {
	flex-shrink: 0;
}

.sttm-shop-accent {
	position: absolute;
	pointer-events: none;
	color: var(--shop-line-bright);
	z-index: 1;
	width: clamp(240px, 36vw, 460px);
	height: auto;
	top: 50%;
	right: -6%;
	transform: translateY(-48%);
	opacity: 0.55;
}

.sttm-shop-toolbar {
	padding: 28px 0 8px;
}

.sttm-shop-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sttm-shop-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid var(--shop-line-soft);
	border-radius: 999px;
	background: #fff;
	color: var(--shop-ink);
	font-family: Oswald, system-ui, sans-serif;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sttm-shop-filter:hover,
.sttm-shop-filter.is-active {
	border-color: var(--shop-line);
	background: rgba(132, 204, 22, 0.1);
	color: var(--shop-head);
}

.sttm-shop-filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	padding: 2px 6px;
	border-radius: 999px;
	background: rgba(2, 61, 103, 0.08);
	font-size: 0.72rem;
}

.sttm-shop-filter.is-active .sttm-shop-filter-count {
	background: var(--shop-line-bright);
	color: var(--shop-ink);
}

.sttm-shop-toolbar-note {
	margin: 16px 0 0;
	color: var(--shop-ink-soft);
	font-size: 0.95rem;
}

.sttm-shop-section-head {
	max-width: 680px;
	margin: 0 auto 28px;
	text-align: center;
}

.sttm-shop-section-head--left {
	margin: 0 0 28px;
	text-align: left;
}

.sttm-shop-section-head h2 {
	margin: 0 0 10px;
	color: var(--shop-head);
	font-size: clamp(1.8rem, 3.5vw, 2.4rem);
	font-weight: 700;
	line-height: 1.08;
	text-transform: uppercase;
}

.sttm-shop-section-head p {
	margin: 0;
	color: var(--shop-ink-soft);
}

.sttm-shop-featured {
	padding: clamp(36px, 5vw, 56px) 0;
}

.sttm-shop-featured-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 24px;
	align-items: stretch;
}

.sttm-shop-catalog {
	padding: clamp(36px, 5vw, 56px) 0 clamp(48px, 6vw, 72px);
	border-top: 1px solid var(--shop-line-soft);
}

.sttm-shop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 22px;
}

.sttm-shop-merch {
	padding: clamp(36px, 5vw, 56px) 0 clamp(48px, 6vw, 72px);
	border-top: 1px solid var(--shop-line-soft);
}

.sttm-shop-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--shop-line-soft);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 8px 28px -18px rgba(2, 61, 103, 0.16);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sttm-shop-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px -18px rgba(2, 61, 103, 0.22);
}

.sttm-shop-card--featured {
	flex-direction: column;
}

.sttm-shop-card-media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--shop-surface);
	overflow: hidden;
	text-decoration: none;
}

.sttm-shop-card--featured .sttm-shop-card-media,
.sttm-shop-card-media--course {
	flex: none;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 0;
	max-height: none;
	background: #0b1f2e;
}

.sttm-shop-card-media--book {
	aspect-ratio: 2 / 3;
	max-height: none;
	padding: 0;
	background: #e8eef3;
}

.sttm-shop-card-media--merch {
	aspect-ratio: 1 / 1;
	max-height: 220px;
}

.sttm-shop-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sttm-shop-card-media--course img {
	object-fit: cover;
	object-position: center;
}

.sttm-shop-card-media--book img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
}

.sttm-shop-cover {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 180px;
	color: rgba(2, 116, 156, 0.45);
}

.sttm-shop-cover--book {
	background: linear-gradient(145deg, #e8f4f8 0%, #d4e8f0 50%, #c5dde8 100%);
}

.sttm-shop-cover--course {
	background: linear-gradient(145deg, #f0f7e8 0%, #e2f0d4 50%, #d4e8c5 100%);
	color: rgba(132, 204, 22, 0.55);
}

.sttm-shop-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	border-radius: 4px;
	background: var(--shop-line-bright);
	color: var(--shop-ink);
	font-family: Oswald, system-ui, sans-serif;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sttm-shop-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 10px;
	padding: 20px;
}

.sttm-shop-card-body h3 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.25;
	text-transform: uppercase;
}

.sttm-shop-card-body h3 a {
	color: var(--shop-head);
	text-decoration: none;
}

.sttm-shop-card-body h3 a:hover {
	color: var(--shop-line);
}

.sttm-shop-card-body p {
	margin: 0;
	flex: 1;
	font-size: 0.92rem;
	color: var(--shop-ink-soft);
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sttm-shop-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--shop-line-soft);
}

.sttm-shop-price {
	font-family: Oswald, system-ui, sans-serif;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--shop-head);
	line-height: 1.2;
}

.sttm-shop-price del {
	margin-right: 8px;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--shop-ink-soft);
	opacity: 0.85;
}

.sttm-shop-price ins {
	text-decoration: none;
}

.sttm-shop-buy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: Oswald, system-ui, sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--shop-head);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	white-space: nowrap;
}

.sttm-shop-buy:hover {
	color: var(--shop-line);
}

.sttm-shop-cta-card .sttm-shop-eyebrow--on-dark {
	color: var(--shop-line-bright);
	margin-bottom: 12px;
}

.sttm-shop-cta-card .sttm-shop-eyebrow--on-dark::before {
	background: var(--shop-line-bright);
}

.sttm-shop-cta {
	padding: 0 0 clamp(56px, 8vw, 96px);
}

.sttm-shop-cta-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: clamp(28px, 4vw, 40px);
	border-radius: 12px;
	background: linear-gradient(135deg, #023d67 0%, #02749c 100%);
	color: #fff;
}

.sttm-shop-cta-card h2 {
	margin: 0 0 8px;
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
	line-height: 1.15;
}

.sttm-shop-cta-card p {
	margin: 0;
	max-width: 42ch;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.98rem;
}

.sttm-shop-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.sttm-shop-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 6px;
	background: var(--shop-line-bright);
	color: var(--shop-ink);
	font-family: Oswald, system-ui, sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform 0.2s ease;
}

.sttm-shop-cta-btn:hover {
	transform: translateY(-2px);
	color: var(--shop-ink);
}

.sttm-shop-cta-btn--ghost {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.sttm-shop-cta-btn--ghost:hover {
	border-color: #fff;
	color: #fff;
}

@media (max-width: 720px) {
	.sttm-shop-cta-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.sttm-shop-accent {
		opacity: 0.28;
		right: -28%;
		width: min(70vw, 320px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.sttm-shop-card:hover,
	.sttm-shop-cta-btn:hover {
		transform: none;
	}
}
