/* =========================================================================
   Project Iceland — theme.css
   Single stylesheet for the entire front-end (Section 10: no CSS inside
   WooCommerce template files). Colors are emitted as CSS variables via
   wp_add_inline_style() (Section 6/22.9); this file only ever consumes
   var(--color-*) and never hardcodes a hex value that has a Customizer
   control.
   ========================================================================= */

/* ---------- Design tokens (fallbacks; live values injected inline) ---------- */
:root {
	--color-background: #ffffff;
	--color-foreground: #121821;
	--color-primary: #121821;
	--color-primary-foreground: #ffffff;
	--color-secondary: #eaf1f6;
	--color-muted: #e6ebf0;
	--color-muted-foreground: #5b687b;
	--color-accent: #36a9e2;
	--color-border: #dae0e7;
	--color-butter: #f1f5f8;
	--color-button-text: var(--color-primary-foreground);

	--font-body: 'Inter', sans-serif;
	--font-display: 'Inter', sans-serif;

	--radius: 0.25rem;
	--card-radius: 0.5rem;
	--logo-height-mobile: 48px;
	--logo-height: 56px;
	--site-header-height: 80px;
	--announcement-bar-height: 36px;
	--wp-admin-bar-height: 0px;

	--btn-radius: 999px;
	--btn-height: 52px;
	--btn-padding: 0 2rem;
	--btn-font-size: 0.75rem;
	--btn-font-weight: 500;
	--btn-letter-spacing: 0.25em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0.65rem;

	--checkout-gap: 2.5rem;

	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
	--shadow-soft: 0 4px 20px -4px rgba(18, 24, 33, 0.08);
	--shadow-elevated: 0 12px 40px -8px rgba(18, 24, 33, 0.18);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: -0.02em;
	font-feature-settings: "ss01", "ss02";
	margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dt, dd { margin: 0; padding: 0; }
[hidden] { display: none !important; }
button { font-family: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

img:not(.cover-img):not(.theme-product-card__img):not(.theme-cta-band__bg):not(.theme-category-tile__img):not(.site-logo-img) {
	max-width: 100%;
	height: auto;
}
.cover-img,
.theme-product-card__img,
.theme-cta-band__bg,
.theme-category-tile__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide { padding: 0 2rem; }
}

.theme-icon { flex-shrink: 0; }

/* ---------- Motion / reveal system (Section 2.1) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.reveal-item {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
		transition-delay: var(--reveal-delay, 0s);
	}
	.reveal-item.is-visible {
		opacity: 1;
		transform: translateY(0);
	}
}
/* Always visible if prefers-reduced-motion or JS/IO unavailable (no-js fallback) */
.reveal-item { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
	.js-reveal-ready .reveal-item { opacity: 0; }
	.js-reveal-ready .reveal-item.is-visible { opacity: 1; }
}
/* Customizer preview MUST always show content regardless of observer state */
body.is-customizer .reveal-item,
body.is-customizer.js-reveal-ready .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}

@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes theme-slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes theme-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes theme-modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes theme-modal-out { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes theme-spin { to { transform: rotate(360deg); } }

.animate-fade-in { animation: theme-fade-in 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: theme-slide-up 0.6s var(--transition-smooth) forwards; }

/* ---------- Links / buttons shared ---------- */
.theme-link-underline {
	position: relative;
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-family: var(--font-body);
}
.theme-link-underline::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0;
	width: 100%; height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.theme-link-underline:hover::after { transform: scaleX(1); }

.theme-btn-hero-primary,
.theme-btn-hero-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	padding: 0.9rem 1.5rem;
	font-size: 11px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-family: var(--font-body);
	border: 1px solid var(--color-background);
	transition: background-color 0.3s ease, color 0.3s ease;
	white-space: nowrap;
}
.theme-btn-hero-primary {
	background: var(--color-background);
	color: var(--color-foreground);
}
.theme-btn-hero-primary:hover { background: transparent; color: var(--color-background); }
.theme-btn-hero-outline {
	background: transparent;
	color: var(--color-background);
}
.theme-btn-hero-outline:hover { background: var(--color-background); color: var(--color-foreground); }

.theme-btn-primary,
.theme-btn-outline {
	text-transform: none;
	font-family: var(--font-body);
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	border-radius: 999px;
	padding: 1rem 1.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition: opacity 0.2s ease;
}
.theme-btn-primary {
	background: var(--color-foreground);
	color: var(--color-background);
	border: none;
}
.theme-btn-primary:hover { opacity: 0.9; }
.theme-btn-outline {
	background: transparent;
	border: 1px solid var(--color-border);
	color: var(--color-foreground);
}
.theme-btn-outline:hover { background: var(--color-muted); }
.theme-btn-block { width: 100%; }

/* =========================================================================
   Announcement bar + Header
   ========================================================================= */
.theme-announcement-bar {
	position: relative;
	z-index: 51;
	background: var(--color-foreground);
	color: var(--color-background);
}
.theme-announcement-bar__inner { padding: 0.5rem 0; text-align: center; }
.theme-announcement-bar__text {
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-family: var(--font-body);
}
.theme-announcement-bar__close {
	position: absolute;
	right: 0.75rem; top: 50%;
	transform: translateY(-50%);
	opacity: 0.7;
	padding: 0.25rem;
	color: inherit;
}
.theme-announcement-bar__close:hover { opacity: 1; }
.theme-announcement-bar.is-dismissed { display: none; }

/* WordPress admin bar + fixed header offsets */
body.admin-bar {
	--wp-admin-bar-height: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar {
		--wp-admin-bar-height: 46px;
	}
}
@media screen and (max-width: 600px) {
	#wpadminbar {
		position: fixed !important;
	}
	html {
		margin-top: 0 !important;
	}
	body.admin-bar {
		--wp-admin-bar-height: var(--wp-admin--admin-bar--height, 46px);
	}
}

body {
	padding-top: 0;
	margin-top: 0;
}

.site-header {
	position: sticky;
	top: var(--wp-admin-bar-height);
	left: 0;
	right: 0;
	z-index: 50;
	background: var(--color-background);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-solid,
.site-header.is-scrolled {
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(4px);
	border-bottom-color: var(--color-border);
}
.site-header__nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--site-header-height);
}
.site-header__left {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}
.site-header__right {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
}
.site-header__logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	max-width: none;
}
.site-header__logo--desktop { display: none; }
.site-header__logo--mobile { display: inline-flex; }
@media (min-width: 1024px) {
	.site-header__logo--desktop { display: inline-flex; }
	.site-header__logo--mobile { display: none; }
}
.site-header__menu-toggle {
	padding: 0.5rem;
	display: none;
	position: relative;
	width: 36px;
	height: 36px;
}
.site-header__menu-icon {
	position: absolute;
	inset: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.site-header__menu-icon--close {
	opacity: 0;
	transform: rotate(-90deg) scale(0.8);
}
.site-header.is-menu-open .site-header__menu-icon--open {
	opacity: 0;
	transform: rotate(90deg) scale(0.8);
}
.site-header.is-menu-open .site-header__menu-icon--close {
	opacity: 1;
	transform: rotate(0) scale(1);
}
.site-logo-img {
	height: var(--logo-height-mobile);
	width: auto;
	max-width: none;
	min-width: 0;
	display: block;
	object-fit: contain;
	flex-shrink: 0;
	aspect-ratio: 180 / 56;
}
@media (min-width: 640px) {
	.site-logo-img { height: var(--logo-height); }
}
.site-logo-text {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.25rem;
	letter-spacing: -0.01em;
}
.site-header__cart-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	transition: opacity 0.2s ease;
}
.site-header__cart-btn:hover { opacity: 0.6; }
.theme-cart-count {
	position: absolute;
	top: -0.125rem;
	right: -0.125rem;
	width: 1.25rem;
	height: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	background: var(--color-primary);
	color: var(--color-primary-foreground);
	border-radius: 999px;
}
.site-header__nav-links {
	display: none;
}
@media (min-width: 1024px) {
	.site-header__nav-links {
		display: flex;
		align-items: center;
	}
}
.theme-nav-list { display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.theme-nav-link {
	font-size: 11px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-family: var(--font-body);
	transition: color 0.3s ease;
	position: relative;
}
.theme-nav-link::after {
	content: '';
	position: absolute; bottom: -6px; left: 0;
	width: 100%; height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-link:hover::after { transform: scaleX(1); }
.site-header__mobile-menu {
	display: block;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	border-top: 1px solid transparent;
	padding: 0;
	pointer-events: none;
	transition:
		max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.35s ease,
		padding 0.35s ease,
		border-color 0.35s ease;
}
.site-header__mobile-menu.is-open {
	max-height: 480px;
	opacity: 1;
	border-top-color: var(--color-border);
	padding: 1rem 0;
	pointer-events: auto;
}
.site-header__mobile-menu.is-open .theme-nav-list--mobile .theme-nav-link {
	animation: theme-mobile-nav-in 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.site-header__mobile-menu.is-open .theme-nav-list--mobile li:nth-child(1) .theme-nav-link { animation-delay: 0.04s; }
.site-header__mobile-menu.is-open .theme-nav-list--mobile li:nth-child(2) .theme-nav-link { animation-delay: 0.08s; }
.site-header__mobile-menu.is-open .theme-nav-list--mobile li:nth-child(3) .theme-nav-link { animation-delay: 0.12s; }
.site-header__mobile-menu.is-open .theme-nav-list--mobile li:nth-child(4) .theme-nav-link { animation-delay: 0.16s; }
.site-header__mobile-menu.is-open .theme-nav-list--mobile li:nth-child(5) .theme-nav-link { animation-delay: 0.2s; }
.site-header__mobile-menu .theme-nav-list { flex-direction: column; align-items: flex-start; gap: 1rem; }
.site-header__mobile-menu .theme-nav-link { font-size: 14px; letter-spacing: 0.02em; text-transform: none; }

@keyframes theme-mobile-nav-in {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1024px) {
	.site-header__menu-toggle { display: none; }
	.site-header__mobile-menu { display: none !important; }
}
@media (max-width: 1023px) {
	.site-header__menu-toggle { display: inline-flex; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.theme-hero {
	position: relative;
	height: 88vh;
	min-height: 560px;
	overflow: hidden;
	background: var(--color-foreground);
}
@media (min-width: 1280px) {
	.theme-hero { height: 92vh; min-height: 680px; }
}
.theme-hero__slides { position: absolute; inset: 0; }
.theme-hero__slide {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease-in-out;
}
.theme-hero__slide.is-active { opacity: 1; }
.theme-hero__gradient {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, color-mix(in srgb, var(--color-foreground) 30%, transparent), color-mix(in srgb, var(--color-foreground) 10%, transparent), color-mix(in srgb, var(--color-foreground) 60%, transparent));
}
@media (min-width: 1280px) {
	.theme-hero__gradient {
		background: linear-gradient(to bottom, color-mix(in srgb, var(--color-foreground) 40%, transparent), color-mix(in srgb, var(--color-foreground) 15%, transparent), color-mix(in srgb, var(--color-foreground) 55%, transparent));
	}
}
.theme-hero__content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 1.5rem;
}
.theme-hero__eyebrow {
	color: color-mix(in srgb, var(--color-background) 90%, transparent);
	font-size: 11px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-family: var(--font-body);
	margin-bottom: 1.25rem;
	text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
@media (min-width: 1280px) {
	.theme-hero__eyebrow {
		font-size: 12px;
		letter-spacing: 0.4em;
		margin-bottom: 1.5rem;
	}
}
.theme-hero__title {
	color: var(--color-background);
	font-weight: 300;
	font-size: 3rem;
	line-height: 1.02;
	letter-spacing: -0.02em;
	max-width: 60rem;
	text-shadow: 0 2px 24px rgba(0,0,0,0.55);
	text-transform: none;
}
@media (min-width: 640px) {
	.theme-hero__title { font-size: 3.75rem; }
}
.theme-hero__subtitle {
	display: none;
	margin-top: 2rem;
	max-width: 34rem;
	color: color-mix(in srgb, var(--color-background) 85%, transparent);
	font-size: 1rem;
	line-height: 1.7;
	text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}
@media (min-width: 1280px) {
	.theme-hero__subtitle { display: block; }
}
.theme-hero__actions {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
}
.theme-hero__actions .theme-btn-hero-primary,
.theme-hero__actions .theme-btn-hero-outline {
	width: 100%;
	max-width: 20rem;
}
@media (min-width: 1280px) {
	.theme-hero__title { font-size: 5.5rem; }
	.theme-hero__actions {
		margin-top: 3rem;
		flex-direction: row;
		justify-content: center;
	}
	.theme-hero__actions .theme-btn-hero-primary,
	.theme-hero__actions .theme-btn-hero-outline {
		width: auto;
		min-width: 220px;
	}
}

/* Home hero fills viewport below fixed header. */

/* Scroll targets below fixed header */
#about,
#shop,
#reviews {
	scroll-margin-top: 6rem;
}

/* =========================================================================
   Section shared spacing
   ========================================================================= */
.theme-section { border-top: 1px solid var(--color-border); background: var(--color-background); }
.theme-section .container-wide { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) {
	.theme-section .container-wide { padding-top: 6rem; padding-bottom: 6rem; }
}
.theme-about .container-wide,
.theme-reviews .container-wide {
	padding-top: 5rem;
	padding-bottom: 5rem;
}
@media (min-width: 768px) {
	.theme-about .container-wide,
	.theme-reviews .container-wide {
		padding-top: 7rem;
		padding-bottom: 7rem;
	}
}
.theme-shop .container-wide {
	padding-top: 4rem;
	padding-bottom: 4rem;
}
@media (min-width: 768px) {
	.theme-shop .container-wide {
		padding-top: 5rem;
		padding-bottom: 5rem;
	}
}
.theme-cta-band.theme-section .container-wide.theme-cta-band__inner {
	padding-top: 6rem;
	padding-bottom: 6rem;
}
@media (min-width: 768px) {
	.theme-cta-band.theme-section .container-wide.theme-cta-band__inner {
		padding-top: 8rem;
		padding-bottom: 8rem;
	}
}

/* ---------- Value props ---------- */
.theme-value-props__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}
@media (min-width: 768px) {
	.theme-value-props__grid { grid-template-columns: repeat(3, 1fr); gap: 3.5rem; }
}
.theme-value-prop { display: flex; flex-direction: column; gap: 1rem; }
.theme-value-prop .theme-icon { color: var(--color-accent); }
.theme-value-prop__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; line-height: 1.2; }
.theme-value-prop__copy { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); font-size: 15px; line-height: 1.6; }

/* ---------- Category tiles ---------- */
.theme-category-tiles__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	background: var(--color-border);
}
@media (min-width: 768px) {
	.theme-category-tiles__grid { grid-template-columns: repeat(2, 1fr); }
}
.theme-category-tile { display: block; width: 100%; text-align: left; background: var(--color-background); }
.theme-category-tile__media {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
}
@media (min-width: 768px) {
	.theme-category-tile__media { aspect-ratio: auto; height: calc(100vh - 14rem); }
}
.theme-category-tile__img { transition: transform 1.5s ease-out; }
.theme-category-tile:hover .theme-category-tile__img { transform: scale(1.05); }
.theme-category-tile__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to top, color-mix(in srgb, var(--color-foreground) 70%, transparent), color-mix(in srgb, var(--color-foreground) 10%, transparent), transparent);
}
.theme-category-tile__text { position: absolute; inset-inline: 0; bottom: 0; padding: 2rem; color: var(--color-background); }
@media (min-width: 768px) { .theme-category-tile__text { padding: 3rem; } }
.theme-category-tile__eyebrow { display: block; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.8; margin-bottom: 0.75rem; }
.theme-category-tile__label { font-family: var(--font-display); font-size: 1.875rem; font-weight: 300; line-height: 1.05; }
@media (min-width: 768px) { .theme-category-tile__label { font-size: 3rem; } }

/* ---------- About ---------- */
.theme-about { background: var(--color-butter); }
.theme-about__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: stretch; }
@media (min-width: 768px) { .theme-about__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.theme-about__media { position: relative; min-height: 420px; overflow: hidden; }
@media (min-width: 768px) { .theme-about__media { min-height: 0; } }
.theme-about__eyebrow { display: block; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-about__title { font-family: var(--font-display); font-size: 2.25rem; font-weight: 300; line-height: 1.05; margin-bottom: 2rem; }
@media (min-width: 768px) { .theme-about__title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-about__title { font-size: 3.75rem; } }
.theme-about__body { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); font-size: 1rem; line-height: 1.8; margin-bottom: 1.25rem; }

/* ---------- Marquee ---------- */
.theme-marquee {
	position: relative;
	overflow: hidden;
	background: var(--color-foreground);
	color: var(--color-background);
	border-top: 1px solid var(--color-foreground);
	border-bottom: 1px solid var(--color-foreground);
	padding: 1.5rem 0;
}
@media (min-width: 768px) { .theme-marquee { padding: 2rem 0; } }
.theme-marquee__track {
	display: flex;
	white-space: nowrap;
	width: max-content;
	animation: theme-marquee 40s linear infinite;
	will-change: transform;
}
.theme-marquee__group { display: flex; flex-shrink: 0; align-items: center; }
.theme-marquee__item { display: flex; align-items: center; }
.theme-marquee__word {
	font-family: var(--font-display);
	font-weight: 300;
	font-style: italic;
	font-size: 1.875rem;
	padding: 0 2rem;
}
@media (min-width: 768px) { .theme-marquee__word { font-size: 3rem; padding: 0 3rem; } }
@media (min-width: 1024px) { .theme-marquee__word { font-size: 3.75rem; } }
.theme-marquee__dot { font-size: 1.5rem; opacity: 0.5; }
@media (min-width: 768px) { .theme-marquee__dot { font-size: 1.875rem; } }

/* ---------- Shop ---------- */
.theme-shop__header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1.5rem; }
.theme-shop__heading { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 400; }
.theme-shop__filter-toggle {
	display: flex; align-items: center; gap: 0.5rem;
	font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
	color: var(--color-muted-foreground);
	transition: color 0.2s ease;
}
.theme-shop__filter-toggle:hover { color: var(--color-foreground); }
.theme-shop__filter-toggle .theme-icon { transition: transform 0.3s ease; }
.theme-shop__filter-toggle[aria-expanded="true"] .theme-icon { transform: rotate(180deg); }

.theme-shop__categories {
	display: flex; flex-wrap: wrap; align-items: center;
	gap: 1.5rem 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--color-border);
}
.theme-shop__cat-btn {
	font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
	color: var(--color-muted-foreground);
	transition: color 0.2s ease;
}
.theme-shop__cat-btn:hover, .theme-shop__cat-btn.is-active { color: var(--color-foreground); }

.theme-shop__filter-panel { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.4s var(--transition-smooth), opacity 0.4s var(--transition-smooth); }
.theme-shop__filter-panel.is-open { max-height: 400px; opacity: 1; }
.theme-shop__filter-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 0; }
@media (min-width: 768px) { .theme-shop__filter-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.theme-shop__search-wrap { position: relative; }
.theme-shop__search-wrap .theme-icon { position: absolute; left: 0.5rem; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.theme-shop__search-wrap input {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--color-border);
	padding: 0.5rem 0 0.5rem 1.75rem;
	font-size: 1rem;
	color: var(--color-foreground);
}
.theme-shop__search-wrap input:focus { outline: none; border-color: var(--color-foreground); }
.theme-shop__price-row { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }

.theme-shop__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 3rem 1.5rem;
	margin-top: 2.5rem;
	align-items: stretch;
}
@media (min-width: 768px) { .theme-shop__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .theme-shop__grid { grid-template-columns: repeat(4, 1fr); } }
.theme-shop__grid--archive { margin-top: 1rem; }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card-wrap[hidden] { display: none; }
.theme-product-card { display: flex; flex-direction: column; flex: 1; text-align: left; }
.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 4 / 5;
	background: var(--color-secondary);
	overflow: hidden;
	margin-bottom: 1rem;
}
.theme-product-card__img { transition: transform 0.7s var(--transition-smooth); }
.theme-product-card:hover .theme-product-card__img { transform: scale(1.03); }
.theme-product-card__image-wrapper.is-sold-out .theme-product-card__img,
.theme-product-card:has(.theme-product-card__badge) .theme-product-card__img { opacity: 0.6; }
.theme-product-card__badge {
	position: absolute; top: 0.75rem; left: 0.75rem;
	padding: 0.35rem 0.75rem;
	font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
	background: var(--color-foreground);
	color: var(--color-background);
}
.theme-product-card__info { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; text-align: left; }
.theme-product-card__title { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; }
.theme-product-card__price { font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-product-card__price .amount,
.theme-product-card__price ins,
.theme-product-card__price del { font-size: inherit; }

.theme-shop__show-more { text-align: center; margin-top: 3rem; }
.theme-shop__empty { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); }
[data-shop-grid] { min-height: 0; }

/* ---------- Dual-handle price range slider (Section 31.4) ---------- */
.price-range-wrapper { position: relative; height: 1.5rem; }
.range-track-bg, .range-track-fill {
	position: absolute; height: 4px; top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	border-radius: 999px;
}
.range-track-bg { left: 0; right: 0; background: var(--color-border); }
.range-track-fill { background: var(--color-accent); }
.range-input {
	position: absolute; left: 0; top: 0;
	width: 100%; height: 100%; margin: 0;
	-webkit-appearance: none; appearance: none;
	background: transparent;
	pointer-events: none;
}
.range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 18px; height: 18px;
	border-radius: 999px;
	background: var(--color-background);
	border: 2px solid var(--color-primary);
	cursor: pointer;
	margin-top: 0;
}
.range-input::-moz-range-thumb {
	pointer-events: auto;
	width: 18px; height: 18px;
	border-radius: 999px;
	background: var(--color-background);
	border: 2px solid var(--color-primary);
	cursor: pointer;
}
.range-input::-moz-range-track { background: transparent; border: none; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

/* ---------- Reviews ---------- */
.theme-reviews { background: var(--color-butter); }
.theme-reviews__intro { max-width: 42rem; margin-bottom: 3.5rem; }
.theme-reviews__eyebrow { display: block; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-reviews__title { font-family: var(--font-display); font-size: 2.25rem; font-weight: 300; line-height: 1.05; }
@media (min-width: 768px) { .theme-reviews__title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-reviews__title { font-size: 3.75rem; } }
.theme-reviews__grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--color-border); }
@media (min-width: 768px) { .theme-reviews__grid { grid-template-columns: 1fr 1fr; } }
.theme-review { background: var(--color-butter); padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; margin: 0; }
@media (min-width: 768px) { .theme-review { padding: 2.5rem; } }
.theme-review__stars { display: flex; align-items: center; gap: 0.25rem; color: var(--color-accent); }
.theme-review__stars .theme-icon { fill: var(--color-accent); }
.theme-review__quote { font-size: 1.25rem; line-height: 1.4; font-family: var(--font-display); }
@media (min-width: 768px) { .theme-review__quote { font-size: 1.5rem; } }
.theme-review__caption { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--color-muted-foreground); }

/* ---------- CTA band ---------- */
.theme-cta-band { position: relative; overflow: hidden; min-height: 26rem; display: flex; align-items: center; }
.theme-cta-band__bg,
.theme-cta-band__bg-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.theme-cta-band__overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-foreground) 65%, transparent); }
.theme-cta-band__inner { position: relative; z-index: 2; width: 100%; }
.theme-cta-band__inner > * { max-width: 42rem; margin-left: auto; margin-right: auto; text-align: center; }
.theme-cta-band__eyebrow { display: block; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: color-mix(in srgb, var(--color-background) 70%, transparent); margin-bottom: 1.5rem; }
.theme-cta-band__title { color: var(--color-background); font-size: 2.25rem; font-weight: 300; line-height: 1.02; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .theme-cta-band__title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .theme-cta-band__title { font-size: 4.5rem; } }
.theme-cta-band__actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 576px) { .theme-cta-band__actions { flex-direction: row; } }
.theme-cta-band__actions .theme-btn-hero-primary,
.theme-cta-band__actions .theme-btn-hero-outline { width: 100%; max-width: 20rem; }
@media (min-width: 576px) { .theme-cta-band__actions .theme-btn-hero-primary, .theme-cta-band__actions .theme-btn-hero-outline { width: 13.75rem; } }

.theme-anchor-offset { display: block; margin-top: -3rem; padding-top: 3rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--color-foreground); color: var(--color-background); }
.site-footer__inner { padding-top: 4rem; padding-bottom: 2rem; }
@media (min-width: 1024px) { .site-footer__inner { padding-top: 5rem; padding-bottom: 2.5rem; } }
.site-footer__top { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .site-footer__top { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
@media (min-width: 1024px) { .site-footer__top { gap: 4rem; } }
.site-footer__newsletter-heading { font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.4; margin-bottom: 1.5rem; }
@media (min-width: 1024px) { .site-footer__newsletter-heading { font-size: 1.125rem; } }
.site-footer__newsletter-form { display: flex; width: 100%; min-width: 0; }
.site-footer__newsletter-input {
	flex: 1; min-width: 0;
	background: transparent;
	border: 1px solid color-mix(in srgb, var(--color-background) 40%, transparent);
	border-right: 0;
	padding: 0.65rem 1rem;
	font-size: 0.875rem;
	color: var(--color-background);
}
.site-footer__newsletter-input::placeholder { color: color-mix(in srgb, var(--color-background) 50%, transparent); }
.site-footer__newsletter-input:focus { outline: none; border-color: var(--color-background); }
.site-footer__newsletter-button {
	padding: 0.65rem 1.25rem;
	background: var(--color-background);
	color: var(--color-foreground);
	font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
	flex-shrink: 0;
	transition: opacity 0.2s ease;
}
.site-footer__newsletter-button:hover { opacity: 0.9; }
.site-footer__col-heading { font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 1.5rem; }
.theme-footer-nav { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-footer-nav-link { text-align: left; font-size: 0.875rem; color: color-mix(in srgb, var(--color-background) 70%, transparent); transition: color 0.2s ease; }
.theme-footer-nav-link:hover { color: var(--color-background); }
.site-footer__contact-links { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__contact-link { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-background) 70%, transparent); transition: color 0.2s ease; }
.site-footer__contact-link:hover { color: var(--color-background); }

.site-footer__bottom { margin-top: 4rem; display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 1024px) { .site-footer__bottom { margin-top: 5rem; flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.site-footer__brand {
	display: block;
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 300;
	font-size: 2.25rem;
	line-height: 0.85;
	letter-spacing: -0.03em;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}
.site-footer__brand:hover { opacity: 0.9; }
@media (min-width: 640px) { .site-footer__brand { font-size: 3rem; } }
@media (min-width: 768px) { .site-footer__brand { font-size: 4rem; } }
@media (min-width: 1280px) { .site-footer__brand { font-size: 6.5rem; } }
.site-footer__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
@media (min-width: 1024px) { .site-footer__meta { align-items: flex-end; } }
.site-footer__social-link { color: color-mix(in srgb, var(--color-background) 70%, transparent); transition: color 0.2s ease; }
.site-footer__social-link:hover { color: var(--color-background); }
.site-footer__legal { display: flex; flex-direction: column; gap: 0.75rem; }
@media (max-width: 1023px) {
	.site-footer__legal { align-items: flex-start; }
	.site-footer__legal-link { text-align: left; }
}
@media (min-width: 1024px) { .site-footer__legal { flex-direction: row; align-items: center; gap: 1.5rem; } }
.site-footer__legal-link { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-background) 70%, transparent); transition: color 0.2s ease; }
.site-footer__legal-link:hover { color: var(--color-background); }
.site-footer__credit { font-size: 11px; letter-spacing: 0.15em; color: color-mix(in srgb, var(--color-background) 50%, transparent); transition: color 0.2s ease; }
.site-footer__credit:hover { color: var(--color-background); }

/* =========================================================================
   Modals (Contact + Newsletter)
   ========================================================================= */
.theme-modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 1rem; }
.theme-modal.is-open { display: flex; }
.theme-newsletter-popup.is-open { align-items: flex-end; }
@media (min-width: 640px) {
	.theme-newsletter-popup.is-open { align-items: center; }
}
.theme-modal__overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-foreground) 40%, transparent); backdrop-filter: blur(2px); }
.theme-modal__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 32rem;
	max-height: 90vh;
	overflow-y: auto;
	background: var(--color-background);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-elevated);
	padding: 2rem;
	border-radius: var(--card-radius);
	animation: theme-modal-in 0.3s var(--transition-smooth);
}
.theme-modal.is-closing .theme-modal__panel { animation: theme-modal-out 0.25s var(--transition-smooth) forwards; }
.theme-modal__close { position: absolute; right: 0.75rem; top: 0.75rem; padding: 0.5rem; opacity: 0.6; transition: opacity 0.2s ease; }
.theme-modal__close:hover { opacity: 1; }
.theme-modal__header { margin-bottom: 1.25rem; }
.theme-modal__title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.theme-modal__description { color: var(--color-muted-foreground); font-size: 0.9rem; line-height: 1.6; }
.theme-modal__quick-contact { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-modal__quick-contact a { display: flex; align-items: center; gap: 0.5rem; transition: color 0.2s ease; }
.theme-modal__quick-contact a:hover { color: var(--color-foreground); }
.theme-modal__form { display: flex; flex-direction: column; gap: 1rem; }
.theme-modal__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 576px) { .theme-modal__row { grid-template-columns: 1fr 1fr; } }
.theme-modal__field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.theme-modal__field input,
.theme-modal__field textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	resize: vertical;
}
.theme-modal__field input:focus,
.theme-modal__field textarea:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 40%, transparent); }
.theme-modal__actions { display: flex; justify-content: flex-end; }
.theme-modal__success { text-align: center; padding: 2rem 0; }
.theme-modal__success-icon {
	width: 3.5rem; height: 3.5rem;
	background: var(--color-primary);
	color: var(--color-primary-foreground);
	border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 1rem;
}
.theme-newsletter-popup__success-icon {
	width: 3.5rem; height: 3.5rem;
	background: var(--color-accent);
	color: var(--color-foreground);
	border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 1rem;
}
.theme-modal__success h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-modal__success p { color: var(--color-muted-foreground); font-size: 0.9rem; }

.theme-newsletter-popup__panel { max-width: 28rem; }
.theme-newsletter-popup__eyebrow { display: block; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-newsletter-popup__title { font-size: 1.875rem; font-weight: 300; line-height: 1.1; margin-bottom: 0.75rem; }
@media (min-width: 576px) { .theme-newsletter-popup__title { font-size: 2.25rem; } }
.theme-newsletter-popup__body { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); font-size: 15px; line-height: 1.6; margin-bottom: 1.5rem; }
.theme-newsletter-popup__form { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-newsletter-popup__input-wrap { position: relative; }
.theme-newsletter-popup__input-wrap .theme-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.theme-newsletter-popup__input-wrap input {
	width: 100%; padding: 0.75rem 0.75rem 0.75rem 2.25rem;
	background: var(--color-background); border: 1px solid var(--color-border);
	border-radius: var(--radius);
}
.theme-newsletter-popup__input-wrap input:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 40%, transparent); }
.theme-newsletter-popup__submit {
	width: 100%; padding: 0.75rem;
	font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
	background: var(--color-foreground); color: var(--color-background);
	border: 1px solid var(--color-foreground);
	transition: background-color 0.2s ease, color 0.2s ease;
}
.theme-newsletter-popup__submit:hover { background: transparent; color: var(--color-foreground); }
.theme-newsletter-popup__disclaimer { font-size: 12px; color: var(--color-muted-foreground); text-align: center; }
.theme-newsletter-popup__success { text-align: center; padding: 1.5rem 0; }

/* =========================================================================
   Inner pages / 404
   ========================================================================= */
.theme-inner-page { padding-top: 2rem; padding-bottom: 4rem; min-height: 50vh; }
.page-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.5rem; }
.theme-404 { min-height: 100vh; display: flex; align-items: center; background: var(--color-muted); }
.theme-404__inner { text-align: center; }
.theme-404__title { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.theme-404__text { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-404__link { color: var(--color-primary); text-decoration: underline; transition: opacity 0.2s ease; }
.theme-404__link:hover { opacity: 0.9; }

/* =========================================================================
   Single Product
   ========================================================================= */
.theme-single-product { padding-top: 2rem; padding-bottom: 6rem; }
.theme-breadcrumb { padding: 1.5rem 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-breadcrumb a { transition: color 0.2s ease; }
.theme-breadcrumb a:hover { color: var(--color-foreground); }
.theme-breadcrumb__sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb__current { color: var(--color-foreground); }

.theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: start;
	min-width: 0;
	padding-top: 0.5rem;
	padding-bottom: 2rem;
}
@media (min-width: 1024px) {
	.theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; }
}
.theme-product-gallery,
.theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-gallery__main { position: relative; aspect-ratio: 1 / 1; background: var(--color-secondary); overflow: hidden; }
.theme-product-thumbnails { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumb { position: relative; width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden; background: var(--color-secondary); }
.theme-product-thumb img { opacity: 0.6; transition: opacity 0.2s ease; }
.theme-product-thumb:hover img,
.theme-product-thumb.is-active img { opacity: 1; }
.theme-product-thumb::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
	background: var(--color-foreground);
	opacity: 0; transition: opacity 0.2s ease;
}
.theme-product-thumb.is-active::after { opacity: 1; }

@media (min-width: 1024px) {
	.theme-product-info { position: sticky; top: 7rem; padding-left: 1rem; }
}
.theme-product-info__category { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-product-info__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-style: normal;
	font-size: 1.875rem;
	line-height: 1.1;
	margin-top: 0.75rem;
	margin-bottom: 1.25rem;
	text-transform: none;
}
@media (min-width: 1024px) {
	.theme-product-info__title { font-size: 2.75rem; }
}
.theme-product-info__price { font-size: 1.25rem; margin-bottom: 1.5rem; }
.theme-product-info__price .amount { font-size: inherit; }
.theme-product-info__stock.is-out-of-stock { color: var(--color-foreground); font-weight: 600; margin-bottom: 1rem; }
.theme-product-info__teaser { color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 2rem; font-size: 1rem; overflow-wrap: break-word; word-break: break-word; }
.theme-product-info__teaser p { margin-bottom: 0.75rem; }
.theme-product-info__label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }
.theme-product-info__quantity-block { margin-bottom: 1rem; }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); }
.theme-qty-minus, .theme-qty-plus { padding: 0.5rem 0.75rem; transition: background-color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input {
	width: 3rem; text-align: center;
	border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border);
	background: transparent;
	-moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.single-product .theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}
.single-product .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
}

/* Add-to-cart button style override (Section 11.4.1) */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: 999px !important;
	min-height: 3.25rem !important;
	padding: 0 2rem !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: 0.75rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.02em !important;
	text-transform: none !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

/* Hide "View cart" injected by WooCommerce after AJAX add-to-cart (Section 11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
	display: none !important;
}

.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

.theme-product-accordions { margin-top: 2.5rem; border-top: 1px solid var(--color-border); }
.theme-accordion { border-bottom: 1px solid var(--color-border); }
.theme-accordion__trigger {
	width: 100%;
	display: flex; align-items: center; justify-content: space-between;
	padding: 1.25rem 0;
	text-align: left;
	font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase;
}
.theme-accordion__trigger .theme-icon { transition: transform 0.3s ease; }
.theme-accordion.is-open .theme-accordion__trigger .theme-icon { transform: rotate(180deg); }
.theme-accordion__panel { display: none; padding-bottom: 1.5rem; color: var(--color-muted-foreground); font-size: 15px; line-height: 1.7; overflow-wrap: break-word; word-break: break-word; }
.theme-accordion.is-open .theme-accordion__panel { display: block; }
.theme-accordion__panel p { margin-bottom: 0.75rem; }
.theme-accordion__panel ul { list-style: disc; padding-left: 1.25rem; }
.theme-accordion__panel li { margin-bottom: 0.4rem; }
.theme-product-details { list-style: none; padding-left: 0; margin-top: 1rem; }
.theme-product-details li { position: relative; padding-left: 1rem; margin-bottom: 0.5rem; }
.theme-product-details li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 4px; height: 4px; border-radius: 999px; background: currentColor; }

.posted_in { overflow-wrap: break-word; word-break: break-word; }

.theme-related-products { padding-top: 5rem; padding-bottom: 5rem; border-top: 1px solid var(--color-border); }
.theme-related-products__heading { text-align: center; margin-bottom: 3rem; }
.theme-related-products__line1 { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.theme-related-products__line2 { font-size: 1.875rem; font-weight: 400; }
@media (min-width: 768px) { .theme-related-products__line2 { font-size: 2.25rem; } }
.theme-related-products__grid,
.theme-product-grid.theme-related-products__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}
@media (min-width: 1024px) { .theme-related-products__grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* =========================================================================
   Side cart drawer + overlay
   ========================================================================= */
#theme-cart-overlay {
	position: fixed; inset: 0;
	background: color-mix(in srgb, var(--color-foreground) 20%, transparent);
	z-index: 90;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

#theme-cart-drawer {
	position: fixed;
	top: 0; right: 0;
	height: 100%;
	width: 100%;
	max-width: 28rem;
	background: var(--color-background);
	z-index: 91;
	box-shadow: var(--shadow-elevated);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__title { font-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer__close { padding: 0.25rem; opacity: 0.7; transition: opacity 0.2s ease; }
.theme-cart-drawer__close:hover { opacity: 1; }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1rem; color: var(--color-muted-foreground); }
.theme-cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item__image { position: relative; width: 5rem; height: 6rem; flex-shrink: 0; overflow: hidden; background: var(--color-secondary); }
.theme-cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-item__body { flex: 1; min-width: 0; }
.theme-cart-item__name { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.15rem; transition: opacity 0.2s ease; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-cart-item__name:hover { opacity: 0.7; }
.theme-cart-item__price { font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-cart-item__variation { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.theme-cart-item__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-item__qty-btn { padding: 0.25rem; border-radius: var(--radius); transition: background-color 0.2s ease; }
.theme-cart-item__qty-btn:hover { background: var(--color-secondary); }
.theme-cart-item__qty { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-item__remove { margin-left: auto; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.theme-cart-item__remove:hover { color: var(--color-foreground); }

.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-drawer__subtotal span:first-child { color: var(--color-muted-foreground); }
.theme-cart-drawer__free-note { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* Scoped WC notice hiding (Section 14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* =========================================================================
   WooCommerce Checkout Block (Section 13)
   ========================================================================= */
body.woocommerce-checkout .site-main,
body.theme-thankyou-page .site-main {
	padding-top: 2rem;
	padding-bottom: 4rem;
}
body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
	width: 100%;
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap);
		align-items: start;
	}
	body.woocommerce-checkout .wc-block-checkout {
		display: block;
	}
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-family: var(--font-body);
	color: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
	outline: none;
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 40%, transparent);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: 999px !important;
	font-family: var(--font-body) !important;
	text-transform: none !important;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-butter);
	border-radius: var(--card-radius);
	padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-notice-banner {
	grid-column: 1 / -1;
	border-radius: var(--radius);
}
body.woocommerce-checkout .page-title,
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
	margin-bottom: 2rem;
}

/* =========================================================================
   Thank-you page (Section 22.8)
   ========================================================================= */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-size: 1.5rem; font-weight: 600; padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; margin: 1.5rem 0; }
body.theme-thankyou-page .woocommerce-order-overview li { border-right: 1px solid var(--color-border); padding-right: 1.5rem; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: start;
	}
}
body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; overflow-wrap: break-word; }

/* =========================================================================
   Customizer control CSS (media picker) is in customizer-controls.css
   ========================================================================= */
