/* =====================================================================
   Ravenheim Homestead — theme.css
   All visual styling for the theme lives here (Section 10 / 15.1).
   ===================================================================== */

/* ---------------------------------------------------------------------
 * 0. ROOT TOKENS
 * ------------------------------------------------------------------- */
:root {
	/* Color tokens are re-emitted by PHP (functions.php) on top of these
	   fallbacks so the Customizer always has a value even before first save. */
	--color-background: #f8f6f1;
	--color-foreground: #1f1b22;
	--color-primary: #593b72;
	--color-primary-foreground: #faf8f5;
	--color-secondary: #efe9e1;
	--color-secondary-foreground: #2a242e;
	--color-muted: #e5dfd7;
	--color-muted-foreground: #625b67;
	--color-accent: #536a44;
	--color-accent-foreground: #faf8f5;
	--color-border: #ded8ce;
	--color-destructive: #c52020;
	--color-button-text: var(--color-primary-foreground);

	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Outfit', sans-serif;

	--radius: 6px;
	--card-radius: 8px;
	--btn-radius: 4px;
	--btn-height: 2.75rem;
	--btn-padding: 0 2rem;
	--btn-font-size: 0.875rem;
	--btn-font-weight: 500;
	--btn-letter-spacing: normal;
	--btn-text-transform: none;
	--btn-icon-padding: 0;

	--logo-height: 36px;
	--logo-height-hero: 48px;
	--header-height: 80px;
	--shadow-soft: 0 4px 20px -4px rgba(31, 27, 34, 0.07);
	--shadow-elevated: 0 8px 40px -8px rgba(31, 27, 34, 0.14);
	--transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
	--checkout-gap: 2rem;
}

/* ---------------------------------------------------------------------
 * 1. RESET / BASE
 * ------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
html { overflow-x: clip; }

/* Tailwind-preflight parity (Section 2.2) */
h1, h2, h3, h4, h5, h6 {
	font-weight: inherit;
	font-size: inherit;
	margin: 0;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-body); font-weight: 700; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
a[href], button, [role="button"], select, summary,
label[for], input[type="submit"], input[type="button"], input[type="reset"],
.theme-product-gallery-thumb, .theme-card-quick-add, .shop-cat-filter,
.site-brand, .theme-nav-link, .back-to-shop-link, .not-found-link,
.cart-toggle-btn, .cart-drawer-close, .cart-drawer-empty-btn,
.cart-item-qty-btn, .cart-item-remove, .shop-search-clear {
	cursor: pointer;
}
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font-family: inherit; }

img:not(.cover-img):not(.hero-video):not(.contact-video):not(.theme-product-card__image):not(.theme-product-main-image):not(.site-logo-img):not(.footer-logo-img) {
	max-width: 100%;
	height: auto;
}
.cover-img, .hero-video, .contact-video, .theme-product-card__image, .theme-product-main-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide { padding-inline: 2rem; }
}

.eyebrow-label {
	display: block;
	font-size: 0.875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
}
.section-heading {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 2.25rem;
	line-height: 1.15;
	margin-top: 0.75rem;
}
@media (min-width: 768px) {
	.section-heading { font-size: 3rem; }
}
.text-center { text-align: center; }
.body-copy {
	color: var(--color-muted-foreground);
	line-height: 1.75;
	font-size: 1.125rem;
	margin-bottom: 1.5rem;
}
.icon-inline { width: 1rem; height: 1rem; margin-left: 0.5rem; display: inline-block; vertical-align: middle; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-xs { width: 0.75rem; height: 0.75rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 3rem; height: 3rem; color: var(--color-muted-foreground); }

/* ---------------------------------------------------------------------
 * 2. BUTTONS
 * ------------------------------------------------------------------- */
.btn-hero-primary, .btn-hero-outline, .btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: var(--btn-height);
	padding: var(--btn-padding);
	border-radius: var(--btn-radius);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	text-transform: var(--btn-text-transform);
	transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
}
.btn-hero-primary {
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
}
.btn-hero-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-hero-outline {
	background-color: transparent;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: var(--color-background);
}
.btn-hero-outline:hover { background-color: rgba(255, 255, 255, 0.1); }
.btn-outline {
	background-color: transparent;
	border: 1px solid var(--color-border);
	color: var(--color-foreground);
}
.btn-outline:hover { background-color: var(--color-accent); color: var(--color-accent-foreground); }

/* ---------------------------------------------------------------------
 * 3. HEADER (Section 22.7 transparent/solid pattern)
 * ------------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background-color: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth);
}
.site-header.is-solid {
	background-color: rgba(248, 246, 241, 0.95);
	backdrop-filter: blur(10px);
	border-bottom-color: var(--color-border);
	box-shadow: var(--shadow-soft);
}
.site-header .container-wide {
	position: relative;
	max-width: 100%;
}
.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	height: 6rem;
	min-width: 0;
	transition: height 0.5s var(--transition-smooth);
}
.site-header.is-solid .site-nav { height: 5rem; }

/* WordPress admin bar — prevent fixed header from sitting under the bar */
body.admin-bar .site-header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}
body.admin-bar.theme-no-hero .site-main {
	padding-top: calc(var(--header-height) + 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar.theme-no-hero .site-main {
		padding-top: calc(var(--header-height) + 46px);
	}
}
body.admin-bar .single-product .site-main,
body.admin-bar .shop-archive .site-main {
	padding-top: calc(6rem + 32px);
}
@media screen and (min-width: 1024px) {
	body.admin-bar .single-product .site-main,
	body.admin-bar .shop-archive .site-main {
		padding-top: calc(8rem + 32px);
	}
}
@media screen and (max-width: 782px) {
	body.admin-bar .single-product .site-main,
	body.admin-bar .shop-archive .site-main {
		padding-top: calc(6rem + 46px);
	}
}

.site-brand { display: flex; align-items: center; gap: 0.5rem; min-width: 0; flex: 1 1 auto; }
.site-logo-img,
.footer-logo-img {
	height: var(--logo-height);
	max-height: var(--logo-height);
	width: auto !important;
	max-width: none;
	object-fit: contain;
	flex-shrink: 0;
}
.site-logo-img {
	transition: height 0.5s var(--transition-smooth), max-height 0.5s var(--transition-smooth);
}
.site-header:not(.is-solid) .site-logo-img {
	height: var(--logo-height-hero);
	max-height: var(--logo-height-hero);
}
.site-logo-text {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: 0.02em;
	font-size: 1.25rem;
	color: var(--color-foreground);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.5s var(--transition-smooth), font-size 0.5s var(--transition-smooth);
}
.site-header:not(.is-solid) .site-logo-text { color: var(--color-background); font-size: 1.5rem; }
@media (min-width: 1024px) {
	.site-logo-text { font-size: 1.5rem; }
	.site-header:not(.is-solid) .site-logo-text { font-size: 1.875rem; }
}

.desktop-nav { display: none; flex-shrink: 0; }
@media (min-width: 1024px) {
	.desktop-nav { display: flex; align-items: center; }
}
.desktop-nav .theme-nav-list { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.theme-nav-link {
	font-size: 0.875rem;
	letter-spacing: 0.02em;
	color: var(--color-foreground);
	position: relative;
	transition: color 0.5s var(--transition-smooth), transform 0.2s ease;
}
.site-header:not(.is-solid) .desktop-nav .theme-nav-link { color: var(--color-background); }
.theme-nav-link::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -4px;
	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); }
.desktop-nav .theme-nav-link:hover { transform: translateY(-2px); }

.site-nav-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.cart-toggle-btn {
	position: relative;
	padding: 0.5rem;
	color: var(--color-foreground);
	transition: color 0.5s var(--transition-smooth), transform 0.2s ease;
}
.site-header:not(.is-solid) .cart-toggle-btn { color: var(--color-background); }
.cart-toggle-btn:hover { transform: scale(1.1); opacity: 0.6; }
.icon-cart { width: 1.25rem; height: 1.25rem; }
.theme-cart-count-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.625rem;
	font-weight: 500;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	border-radius: 999px;
}
.theme-cart-count-badge:empty { display: none; }
.theme-cart-count {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.625rem;
	font-weight: 500;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	border-radius: 999px;
}
.theme-cart-count:empty { display: none; }

.mobile-menu-toggle {
	display: block;
	padding: 0.5rem;
	color: var(--color-foreground);
	position: relative;
	width: 2.25rem;
	height: 2.25rem;
}
.site-header:not(.is-solid) .mobile-menu-toggle { color: var(--color-background); }
@media (min-width: 1024px) {
	.mobile-menu-toggle { display: none; }
}
.icon-menu-open, .icon-menu-close {
	position: absolute;
	top: 50%; left: 50%;
	width: 1.25rem; height: 1.25rem;
	transform: translate(-50%, -50%);
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.icon-menu-close { opacity: 0; transform: translate(-50%, -50%) rotate(-90deg); }
body.mobile-menu-open .icon-menu-open { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
body.mobile-menu-open .icon-menu-close { opacity: 1; transform: translate(-50%, -50%) rotate(0); }

.mobile-nav-overlay {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	top: 6rem;
	background: rgba(31, 27, 34, 0.2);
	z-index: 40;
}
.site-header.is-solid .mobile-nav-overlay { top: 5rem; }
.mobile-nav-panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--color-background);
	border-top: 1px solid var(--color-border);
	box-shadow: var(--shadow-elevated);
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: max-height 0.35s var(--transition-smooth), opacity 0.35s var(--transition-smooth), visibility 0.35s;
	z-index: 50;
}
.mobile-nav-list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem 1.5rem;
	list-style: none;
	margin: 0;
}
.mobile-nav-list .theme-nav-item { width: 100%; }
.mobile-nav-list .theme-nav-link {
	display: block;
	width: 100%;
	text-align: left;
	font-size: 1rem;
	letter-spacing: 0.02em;
	padding-block: 0.75rem;
	color: var(--color-foreground) !important;
	background: transparent;
	border: none;
	transform: none;
}
.mobile-nav-list .theme-nav-link::after { display: none; }
.mobile-nav-list .theme-nav-link:hover {
	color: var(--color-primary) !important;
	transform: translateX(6px);
}
body.mobile-menu-open {
	overflow-x: clip;
}
body.mobile-menu-open .mobile-nav-overlay {
	display: block;
}
body.mobile-menu-open .mobile-nav-panel {
	max-height: min(80vh, 32rem);
	opacity: 1;
	visibility: visible;
}
body.mobile-menu-open .site-header {
	background-color: rgba(248, 246, 241, 0.95);
	backdrop-filter: blur(10px);
	border-bottom-color: var(--color-border);
	box-shadow: var(--shadow-soft);
}
body.mobile-menu-open .site-header .site-nav {
	height: 5rem;
}
body.mobile-menu-open .site-header:not(.is-solid) .site-logo-img {
	height: var(--logo-height);
	max-height: var(--logo-height);
}
body.mobile-menu-open .site-header:not(.is-solid) .site-logo-text {
	color: var(--color-foreground);
	font-size: 1.25rem;
}
@media (min-width: 1024px) {
	body.mobile-menu-open .site-header:not(.is-solid) .site-logo-text {
		font-size: 1.5rem;
	}
}
body.mobile-menu-open .site-header .cart-toggle-btn,
body.mobile-menu-open .site-header .mobile-menu-toggle {
	color: var(--color-foreground);
}
@media (min-width: 1024px) {
	.mobile-nav-overlay,
	.mobile-nav-panel { display: none !important; }
}

/* ---------------------------------------------------------------------
 * 4. REVEAL ANIMATIONS (Section 2.1)
 * ------------------------------------------------------------------- */
.reveal-fade-up, .reveal-fade-in, .reveal-fade-left, .reveal-scale-up, .reveal-blur, .reveal-slide-up, .reveal-item, .stagger-item {
	transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth), filter 0.7s var(--transition-smooth);
}
.reveal-fade-up { opacity: 0; transform: translateY(50px); }
.reveal-fade-in { opacity: 0; }
.reveal-fade-left { opacity: 0; transform: translateX(-60px); }
.reveal-scale-up { opacity: 0; transform: scale(0.85); }
.reveal-blur { opacity: 0; filter: blur(12px); transform: translateY(20px); }
.reveal-slide-up { opacity: 0; transform: translateY(80px); transition-duration: 0.7s; }
.reveal-item { opacity: 0; transform: translateY(24px) scale(0.97); }
.stagger-item { opacity: 0; transform: translateY(40px); }

.reveal-fade-up.is-visible, .reveal-fade-in.is-visible, .reveal-fade-left.is-visible,
.reveal-scale-up.is-visible, .reveal-blur.is-visible, .reveal-slide-up.is-visible,
.reveal-item.is-visible, .stagger-item.is-visible,
.is-visible-on-load {
	opacity: 1;
	transform: none;
	filter: none;
}

/* Customizer preview fallback — never leave content hidden in the editor. */
body.is-customizer .reveal-fade-up, body.is-customizer .reveal-fade-in, body.is-customizer .reveal-fade-left,
body.is-customizer .reveal-scale-up, body.is-customizer .reveal-blur, body.is-customizer .reveal-slide-up,
body.is-customizer .reveal-item, body.is-customizer .stagger-item {
	opacity: 1 !important;
	transform: none !important;
	filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-fade-up, .reveal-fade-in, .reveal-fade-left, .reveal-scale-up, .reveal-blur, .reveal-slide-up, .reveal-item, .stagger-item {
		transition: opacity 0.2s linear !important;
		transform: none !important;
		filter: none !important;
	}
}

/* ---------------------------------------------------------------------
 * 5. HERO
 * ------------------------------------------------------------------- */
.hero-section {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: var(--color-foreground);
}
body.theme-no-hero .hero-section { display: none; }
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.hero-video { width: 100%; height: 100%; }
.hero-scrim { position: absolute; inset: 0; background: rgba(31, 27, 34, 0.65); z-index: 1; }
.hero-inner { position: relative; z-index: 10; padding-block: 8rem; text-align: center; }
.hero-content { max-width: 42rem; margin: 0 auto; }
.hero-badge {
	display: inline-block;
	font-size: 0.875rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(248, 246, 241, 0.8);
	margin-bottom: 1.5rem;
}
.hero-title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 2.5rem;
	line-height: 1.1;
	color: var(--color-background);
	margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
.hero-subtitle {
	color: rgba(248, 246, 241, 0.75);
	font-size: 1.25rem;
	max-width: 32rem;
	margin: 0 auto 2.5rem;
	line-height: 1.6;
}
.hero-ctas { display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }

.hero-scroll-indicator { position: absolute; bottom: 6rem; left: 50%; transform: translateX(-50%); z-index: 10; }
@media (max-width: 639px) { .hero-scroll-indicator { display: none; } }
.scroll-indicator-pill {
	width: 1.5rem; height: 2.5rem;
	border: 2px solid rgba(248, 246, 241, 0.4);
	border-radius: 999px;
	display: flex;
	justify-content: center;
	padding-top: 0.5rem;
	animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-indicator-dot { width: 0.25rem; height: 0.5rem; background: rgba(248, 246, 241, 0.6); border-radius: 999px; }
@keyframes scrollBounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(8px); }
}

.hero-marquee-wrap { position: absolute; bottom: 0; left: 0; right: 0; z-index: 20; }
.theme-marquee {
	width: 100%;
	overflow: hidden;
	border-top: 1px solid rgba(248, 246, 241, 0.2);
	border-bottom: 1px solid rgba(248, 246, 241, 0.2);
	background: rgba(31, 27, 34, 0.4);
	backdrop-filter: blur(4px);
	padding-block: 0.75rem;
}
.theme-marquee-track { display: flex; width: max-content; animation: themeMarquee 34s linear infinite; }
@keyframes themeMarquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
.theme-marquee-item {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	white-space: nowrap;
	padding: 0 1.5rem;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: rgba(248, 246, 241, 0.9);
}
@media (min-width: 768px) { .theme-marquee-item { font-size: 1rem; } }
.theme-marquee-dot { color: var(--color-primary); }
@media (prefers-reduced-motion: reduce) {
	.theme-marquee-track { animation: none; }
}

/* ---------------------------------------------------------------------
 * 6. ABOUT
 * ------------------------------------------------------------------- */
.about-section { padding-block: 5rem; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-section .section-heading { font-size: 2.25rem; }
@media (min-width: 768px) { .about-section .section-heading { font-size: 3rem; } }
.about-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 28rem; margin: 0 auto; }
.about-gallery-item { position: relative; overflow: hidden; border-radius: 0.75rem; box-shadow: var(--shadow-soft); }
.about-gallery-item.is-tall { aspect-ratio: 3/4; }
.about-gallery-item.is-square { aspect-ratio: 1/1; }

/* ---------------------------------------------------------------------
 * 7. SERVICES ("What We Offer")
 * ------------------------------------------------------------------- */
.services-section { background-color: var(--color-secondary); padding-block: 5rem; }
.services-heading-wrap { margin-bottom: 3rem; }
.services-section .section-heading { font-size: 2.25rem; }
@media (min-width: 768px) { .services-section .section-heading { font-size: 3rem; } }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; } }
.service-card {
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 2rem;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -15px rgba(89, 59, 114, 0.18); }
.service-card-icon { width: 1.75rem; height: 1.75rem; color: var(--color-primary); margin-bottom: 1rem; }
.service-card-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card-desc { font-size: 1rem; color: var(--color-muted-foreground); line-height: 1.7; }

/* ---------------------------------------------------------------------
 * 8. PROCESS ("How It Works")
 * ------------------------------------------------------------------- */
.process-section { padding-block: 5rem; }
.process-heading-wrap { margin-bottom: 4rem; }
.process-section .section-heading { font-size: 2.25rem; }
@media (min-width: 768px) { .process-section .section-heading { font-size: 3rem; } }

.process-stepper-desktop { display: none; }
@media (min-width: 1024px) {
	.process-stepper-desktop {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		max-width: 64rem;
		margin: 0 auto;
		position: relative;
	}
}
.process-track-bg, .process-track-fill {
	position: absolute;
	top: 2.5rem;
	left: 10%;
	right: 10%;
	height: 2px;
}
.process-track-bg { background-color: var(--color-border); }
.process-track-fill {
	background-color: var(--color-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 1.2s var(--transition-smooth) 0.3s;
}
.process-track-fill.is-visible { transform: scaleX(1); }
.process-step-desktop { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; text-align: center; width: 25%; padding: 0 1rem; }
.process-step-icon-circle {
	width: 5rem; height: 5rem;
	border-radius: 999px;
	background: var(--color-background);
	border: 2px solid var(--color-primary);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 1rem;
	box-shadow: var(--shadow-soft);
	transition: transform 0.3s ease;
}
.process-step-desktop:hover .process-step-icon-circle { transform: scale(1.1) rotate(5deg); }
.process-step-icon { width: 2rem; height: 2rem; color: var(--color-primary); }
.process-step-number {
	display: inline-flex; align-items: center; justify-content: center;
	width: 1.75rem; height: 1.75rem; border-radius: 999px;
	background: var(--color-primary); color: var(--color-primary-foreground);
	font-size: 0.875rem; font-weight: 700; margin-bottom: 0.5rem;
}
.process-step-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.process-step-desc { font-size: 1rem; color: var(--color-muted-foreground); line-height: 1.7; }

.process-stepper-mobile { max-width: 28rem; margin: 0 auto; position: relative; padding-left: 3rem; }
@media (min-width: 1024px) { .process-stepper-mobile { display: none; } }
.process-line-bg, .process-line-fill {
	position: absolute; left: 19px; top: 0; bottom: 0; width: 2px;
}
.process-line-bg { background-color: var(--color-border); }
.process-line-fill {
	background-color: var(--color-primary);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 1.5s var(--transition-smooth) 0.2s;
}
.process-line-fill.is-visible { transform: scaleY(1); }
.process-step-mobile { position: relative; display: flex; align-items: flex-start; gap: 1.25rem; padding-bottom: 2.5rem; }
.process-step-mobile:last-child { padding-bottom: 0; }
.process-step-number-circle {
	position: absolute; left: -3rem;
	width: 2.5rem; height: 2.5rem; border-radius: 999px;
	background: var(--color-primary); color: var(--color-primary-foreground);
	display: flex; align-items: center; justify-content: center;
	font-size: 0.875rem; font-weight: 700; z-index: 10; box-shadow: var(--shadow-soft);
}
.process-step-mobile-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; }
.process-step-icon-sm { width: 1.25rem; height: 1.25rem; color: var(--color-primary); flex-shrink: 0; }

/* ---------------------------------------------------------------------
 * 9. SHOP + PRODUCT CARD (shared, Section 31.13)
 * ------------------------------------------------------------------- */
.shop-section { padding-block: 5rem; }
.shop-heading-wrap { margin-bottom: 3rem; }
.shop-heading { font-size: 2.25rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .shop-heading { font-size: 3rem; } }

.shop-search-wrap { position: relative; max-width: 28rem; margin: 0 auto 1.5rem; }
.shop-search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--color-muted-foreground); }
.shop-search-input {
	width: 100%; height: 3rem;
	border: 1px solid var(--color-border);
	background-color: var(--color-background);
	padding: 0 2.5rem;
	font-size: 1rem;
	border-radius: var(--radius);
	color: var(--color-foreground);
}
.shop-search-input::placeholder { color: var(--color-muted-foreground); }
.shop-search-input:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--color-primary); }
.shop-search-clear { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.shop-search-clear:hover { color: var(--color-foreground); }

.shop-category-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.shop-cat-filter {
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	border-radius: 999px;
	background-color: var(--color-secondary);
	color: var(--color-secondary-foreground);
	transition: all 0.3s ease;
}
.shop-cat-filter:hover { background-color: var(--color-muted); transform: translateY(-2px); }
.shop-cat-filter.is-active { background-color: var(--color-primary); color: var(--color-primary-foreground); }

.theme-product-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	margin-top: 2rem;
	align-items: stretch;
	min-width: 0;
	max-width: 100%;
}
@media (min-width: 1024px) { .theme-product-grid { gap: 2rem; } }
.theme-product-card-wrap {
	width: 100%;
	max-width: 20rem;
	display: flex;
}
@media (min-width: 640px) { .theme-product-card-wrap { width: calc(50% - 0.75rem); } }
@media (min-width: 1024px) { .theme-product-card-wrap { width: calc(25% - 1.5rem); } }

.theme-product-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 3/4;
	background-color: var(--color-secondary);
	overflow: hidden;
	border-radius: var(--radius);
	margin-bottom: 1rem;
	transition: transform 0.4s var(--transition-smooth);
}
.theme-product-card__image-link {
	display: block;
	position: absolute;
	inset: 0;
	z-index: 1;
}
.theme-product-card:hover .theme-product-card__image-wrapper { transform: scale(1.02); }
.theme-product-card__image { transition: transform 0.6s var(--transition-smooth); }
.theme-product-card:hover .theme-product-card__image { transform: scale(1.08); }

.sold-out-badge, .new-badge {
	position: absolute;
	top: 0.75rem;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 999px;
	z-index: 3;
}
.sold-out-badge { left: 0.75rem; background-color: var(--color-foreground); color: var(--color-background); }
.new-badge { right: 0.75rem; background-color: var(--color-primary); color: var(--color-primary-foreground); }

.theme-card-quick-add {
	position: absolute;
	bottom: 0.75rem;
	right: 0.75rem;
	z-index: 3;
	width: 2rem; height: 2rem;
	border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	background-color: rgba(248, 246, 241, 0.9);
	color: var(--color-foreground);
	box-shadow: var(--shadow-soft);
	border: none;
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.theme-card-quick-add:hover { transform: scale(1.15); background-color: var(--color-primary); color: var(--color-primary-foreground); }
.theme-card-quick-add .icon-check { display: none; }
.theme-card-quick-add.is-added { background-color: var(--color-primary); color: var(--color-primary-foreground); }
.theme-card-quick-add.is-added .icon-plus { display: none; }
.theme-card-quick-add.is-added .icon-check { display: block; }
.theme-card-quick-add .icon-plus, .theme-card-quick-add .icon-check { width: 1rem; height: 1rem; }

.theme-product-card__info { display: flex; flex-direction: column; gap: 0.375rem; flex: 1; }
.theme-product-card__category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-muted-foreground); }
.theme-product-card__title {
	font-size: 1.125rem;
	font-weight: 700;
	transition: opacity 0.2s ease;
}
.theme-product-card__title-link {
	color: inherit;
	text-decoration: none;
}
.theme-product-card__title-link:hover { opacity: 0.7; }
.theme-product-card:hover .theme-product-card__title-link { opacity: 0.7; }
.theme-product-card__excerpt {
	font-size: 1rem;
	color: var(--color-muted-foreground);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-width: 0;
}
.theme-product-card__price { font-size: 1.125rem; font-weight: 500; color: var(--color-foreground); }
.theme-product-card__price .woocommerce-Price-amount { font-weight: 500; }

.shop-empty-state { text-align: center; padding-block: 5rem; }
.shop-empty-state p { color: var(--color-muted-foreground); margin-bottom: 1rem; }
.shop-footnote {
	text-align: center;
	color: var(--color-muted-foreground);
	font-size: 1rem;
	max-width: 42rem;
	margin: 2.5rem auto 0;
}

/* ---------------------------------------------------------------------
 * 10. OWNER
 * ------------------------------------------------------------------- */
.owner-section { background-color: var(--color-secondary); padding-block: 5rem; }
.owner-heading-wrap { margin-bottom: 3rem; }
.owner-section .section-heading { font-size: 2.25rem; }
@media (min-width: 768px) { .owner-section .section-heading { font-size: 3rem; } }
.owner-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .owner-grid { grid-template-columns: 1fr 1fr; } }
.owner-photo-wrap { position: relative; aspect-ratio: 3/4; max-width: 28rem; margin: 0 auto; width: 100%; border-radius: 0.75rem; overflow: hidden; box-shadow: var(--shadow-elevated); }

/* ---------------------------------------------------------------------
 * 11. CONTACT
 * ------------------------------------------------------------------- */
.contact-section { position: relative; overflow: hidden; color: var(--color-background); padding-block: 5rem; background-color: var(--color-foreground); }
.contact-scrim { position: absolute; inset: 0; background: rgba(31, 27, 34, 0.8); z-index: 1; }
.contact-inner { position: relative; z-index: 10; }
.contact-content { max-width: 42rem; margin: 0 auto; text-align: center; }
.contact-label { color: rgba(248, 246, 241, 0.7); margin-bottom: 1rem; }
.contact-title { margin-bottom: 1rem; font-size: 2.25rem; }
@media (min-width: 768px) { .contact-title { font-size: 3rem; } }
.contact-desc { color: rgba(248, 246, 241, 0.75); margin-bottom: 1.5rem; font-size: 1.125rem; }
.contact-info-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; color: rgba(248, 246, 241, 0.7); font-size: 1rem; margin-bottom: 1rem; }
.contact-info-item { display: flex; align-items: center; gap: 0.5rem; transition: color 0.2s ease; }
.contact-info-item:hover { color: var(--color-background); }
.contact-form-wrap { margin-top: 2.5rem; }
.contact-form { text-align: left; display: flex; flex-direction: column; gap: 1rem; }
.contact-form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .contact-form-row { grid-template-columns: 1fr 1fr; } }
.contact-form-field label { display: block; font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; color: rgba(248, 246, 241, 0.8); }
.contact-form-field input, .contact-form-field textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	background-color: rgba(248, 246, 241, 0.1);
	border: 1px solid rgba(248, 246, 241, 0.2);
	border-radius: var(--radius);
	font-size: 1rem;
	color: var(--color-background);
	transition: border-color 0.2s ease;
}
.contact-form-field input::placeholder, .contact-form-field textarea::placeholder { color: rgba(248, 246, 241, 0.4); }
.contact-form-field input:focus, .contact-form-field textarea:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 1px var(--color-primary);
}
.contact-form-field textarea { resize: none; }
.contact-form-submit-row { text-align: center; padding-top: 0.5rem; }
.contact-success-state { text-align: center; }
.contact-success-icon {
	width: 4rem; height: 4rem; border-radius: 999px;
	background-color: var(--color-primary);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 1.5rem;
}
.contact-success-icon svg { color: var(--color-primary-foreground); width: 2rem; height: 2rem; }
.contact-success-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-success-desc { color: rgba(248, 246, 241, 0.75); }

/* ---------------------------------------------------------------------
 * 12. FOOTER
 * ------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--color-border); background-color: var(--color-secondary); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-grid { gap: 3rem; } }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.02em; }
@media (min-width: 1024px) { .footer-brand-name { font-size: 1.5rem; } }
.footer-description { margin-top: 1rem; font-size: 1rem; color: var(--color-muted-foreground); max-width: 24rem; line-height: 1.625; }
.footer-nav-col h4, .footer-contact-col h4 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.footer-nav-list, .footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav-list a, .footer-contact-list a, .footer-contact-list span {
	font-size: 1rem;
	color: var(--color-muted-foreground);
	transition: color 0.2s ease;
}
.footer-nav-list a:hover, .footer-contact-list a:hover { color: var(--color-foreground); }
.footer-contact-list li { display: flex; align-items: center; gap: 0.5rem; }
.footer-contact-item--address { align-items: flex-start; }
.footer-contact-item--address .icon-sm { margin-top: 0.25rem; flex-shrink: 0; }
.footer-contact-list a { display: inline-flex; align-items: center; gap: 0.5rem; word-break: break-all; }
.footer-bottom {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	text-align: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; text-align: left; } }
.footer-bottom a { text-decoration: underline; }
.footer-bottom a:hover { color: var(--color-foreground); }

/* ---------------------------------------------------------------------
 * 13. 404 / GENERIC PAGE
 * ------------------------------------------------------------------- */
.not-found-page { min-height: 70vh; display: flex; align-items: center; }
.not-found-title { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.not-found-message { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.not-found-link { color: var(--color-primary); text-decoration: underline; }
.not-found-link:hover { opacity: 0.85; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-12 { padding-block: 3rem; }
@media (min-width: 1024px) {
	.lg-py-16 { padding-block: 4rem; }
}
.page-content-wrap { padding-top: 8rem; padding-bottom: 4rem; }
body.theme-no-hero .site-main { padding-top: var(--header-height); }
.page-title { font-family: var(--font-display); font-size: 2.25rem; font-weight: 500; margin-bottom: 1.5rem; }

/* =====================================================================
 * 14. WOOCOMMERCE OVERRIDES (Section 14)
 * ===================================================================== */
.single-product .site-main,
.shop-archive .site-main {
	padding-top: 6rem;
}
@media (min-width: 1024px) { .single-product .site-main, .shop-archive .site-main { padding-top: 8rem; } }

.woocommerce-page .woocommerce-message,
.woocommerce-page .woocommerce-info,
#theme-cart-drawer .woocommerce-message {
	display: none;
}
.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}
.woocommerce-error {
	background: #fef2f2;
	color: var(--color-destructive);
	border-radius: var(--radius);
	padding: 1rem 1.5rem;
	margin-bottom: 1.5rem;
	list-style: none;
}

/* Back to shop */
.back-to-shop-row { padding-block: 1.5rem; }
.back-to-shop-link { display: inline-flex; align-items: center; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.back-to-shop-link:hover { color: var(--color-foreground); }

/* Single product layout */
.theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-bottom: 5rem;
	min-width: 0;
}
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-main-image-wrap { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background-color: var(--color-secondary); margin-bottom: 1rem; }
.theme-product-thumbnails { display: flex; gap: 0.75rem; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumb {
	position: relative;
	width: 5rem; height: 5rem;
	border-radius: var(--radius);
	overflow: hidden;
	border: 2px solid transparent;
	opacity: 0.6;
	transition: all 0.2s ease;
}
.theme-product-thumb.is-active, .theme-product-thumb:hover { opacity: 1; border-color: var(--color-foreground); }

.theme-product-category { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-product-category a { color: inherit; }
.product-title {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 1.5rem;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}
@media (min-width: 768px) { .product-title { font-size: 1.875rem; } }
.theme-product-price { font-size: 1.25rem; margin-bottom: 1.5rem; }
.theme-product-price .woocommerce-Price-amount { font-weight: 500; }
.theme-stock-indicator.is-out-of-stock {
	display: inline-block;
	padding: 0.5rem 1rem;
	background-color: var(--color-muted);
	color: var(--color-muted-foreground);
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: var(--radius);
	margin-bottom: 1rem;
}
.theme-product-description {
	color: var(--color-muted-foreground);
	line-height: 1.75;
	margin-bottom: 2rem;
	overflow-wrap: break-word;
	word-break: break-word;
}
.theme-product-description p { margin-bottom: 1rem; }

.theme-quantity-wrapper {
	display: flex;
	align-items: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	flex-shrink: 0;
}
.theme-qty-minus, .theme-qty-plus { padding: 0.75rem; transition: background-color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-input {
	width: 3rem;
	text-align: center;
	border: none;
	background: transparent;
	-moz-appearance: textfield;
	padding-block: 0.75rem;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-dispatch-note { text-align: center; font-size: 0.75rem; color: var(--color-muted-foreground); margin: 1rem 0 1.5rem; }

.theme-product-details { border-top: 1px solid var(--color-border); padding-top: 2rem; }
.theme-details-heading { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.woocommerce-product-details__short-description ul { display: flex; flex-direction: column; gap: 0.5rem; }
.woocommerce-product-details__short-description li {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	display: flex;
	align-items: flex-start;
	overflow-wrap: break-word;
	word-break: break-word;
}
.woocommerce-product-details__short-description li::before {
	content: '';
	width: 0.375rem; height: 0.375rem;
	background-color: var(--color-primary);
	border-radius: 999px;
	margin: 0.45rem 0.75rem 0 0;
	flex-shrink: 0;
}

.related-products-section { padding-block: 5rem; border-top: 1px solid var(--color-border); }
.related-products-heading { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .related-products-heading { font-size: 1.5rem; } }
.related-products-grid { justify-content: flex-start; }
.related-products-grid .theme-product-card-wrap { max-width: none; width: calc(50% - 0.75rem); }
@media (min-width: 1024px) { .related-products-grid .theme-product-card-wrap { width: calc(25% - 1.5rem); } }

/* SECTION 11.13 — responsive safety rules */
.single-product .theme-product-layout { min-width: 0; }
.single-product .theme-product-gallery, .single-product .theme-product-info { min-width: 0; max-width: 100%; }
.single-product .theme-product-thumbnails { flex-wrap: wrap; max-width: 100%; }
.single-product .theme-variable-product-form {
	flex-direction: column;
	align-items: stretch;
}
.single-product .theme-variable-attributes {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: 100%;
	flex: 1 1 100%;
	margin-bottom: 0.25rem;
}
.single-product .theme-variable-attribute__label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 0.375rem;
}
.single-product .theme-variable-attribute__select {
	width: 100%;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-size: 1rem;
}
.theme-attr-select-hidden { display: none !important; }
.theme-attr-pills--color {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 0.25rem;
}
.theme-attr-pill--color {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: transparent;
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-size: 0.875rem;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
.theme-attr-pill--color:hover { border-color: var(--color-foreground); }
.theme-attr-pill--color.is-selected {
	border-color: var(--color-primary);
	background-color: color-mix(in srgb, var(--color-primary) 5%, transparent);
}
.theme-attr-pill__swatch {
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 999px;
	background-color: var(--theme-swatch-color);
	border: 1px solid rgba(31, 27, 34, 0.12);
	flex-shrink: 0;
}
.theme-attr-pill__label { line-height: 1.2; }
.single-product .theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1rem;
}
.single-product .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
}
.single-product .woocommerce-product-details__short-description,
.single-product .posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
}

/* SECTION 11.4.1 — add-to-cart button style override */
.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: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !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;
}
.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

/* Card compact quick-add button — overrides global rules for the card context */
.theme-product-card .add_to_cart_button.ajax_add_to_cart.theme-card-quick-add {
	min-height: unset !important;
	height: 2rem !important;
	width: 2rem !important;
	padding: 0 !important;
	border-radius: 50% !important;
	background-color: rgba(248, 246, 241, 0.9) !important;
	color: var(--color-foreground) !important;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart.theme-card-quick-add:hover {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	opacity: 1 !important;
}

/* SECTION 11.4.2 — hide "View cart" injected by WooCommerce */
.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;
}

/* Shop archive header */
.archive-header { padding-block: 6rem 2rem; text-align: center; }
.archive-product-grid { margin-bottom: 4rem; }
.woocommerce-no-products-found { text-align: center; padding-block: 5rem; color: var(--color-muted-foreground); }

/* =====================================================================
 * 15. SIDE CART DRAWER (Section 12)
 * ===================================================================== */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(31, 27, 34, 0.2);
	z-index: 60;
	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: 61;
	box-shadow: var(--shadow-elevated);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.4s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.cart-drawer-header-left { display: flex; align-items: center; gap: 0.75rem; }
.cart-drawer-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }
.cart-drawer-empty-btn { font-size: 0.75rem; color: var(--color-muted-foreground); }
.cart-drawer-empty-btn:hover { color: var(--color-destructive); }
.cart-drawer-close { padding: 0.25rem; }
.cart-drawer-close:hover { opacity: 0.6; }

.cart-drawer-empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.cart-drawer-empty-state p { color: var(--color-muted-foreground); margin: 1rem 0 1.5rem; }

.cart-drawer-items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.cart-drawer-item { display: flex; gap: 1rem; }
.cart-item-thumb { position: relative; width: 5rem; height: 6rem; background: var(--color-secondary); border-radius: 0.25rem; overflow: hidden; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: opacity 0.2s ease; }
.cart-item-name:hover { opacity: 0.7; }
.cart-item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.theme-cart-item-meta {
	list-style: none;
	margin: 0.25rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.theme-cart-item-meta-row {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
}
.theme-cart-item-meta-swatch {
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 999px;
	border: 1px solid rgba(31, 27, 34, 0.12);
	flex-shrink: 0;
}
.cart-item-qty-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.cart-item-qty-btn { padding: 0.25rem; border-radius: 0.25rem; transition: background-color 0.2s ease; }
.cart-item-qty-btn:hover { background-color: var(--color-secondary); }
.cart-item-qty-value { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.cart-item-remove { margin-left: auto; font-size: 0.75rem; color: var(--color-muted-foreground); }
.cart-item-remove:hover { color: var(--color-foreground); }

.cart-drawer-footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.cart-drawer-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.cart-drawer-subtotal-row span:last-child { font-weight: 500; }
.cart-drawer-shipping-note { font-size: 0.75rem; color: var(--color-muted-foreground); }
.cart-drawer-checkout-btn { width: 100%; }

/* =====================================================================
 * 16. CHECKOUT BLOCK OVERRIDES (Section 13)
 * ===================================================================== */
body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-top: var(--header-height, 80px);
	padding-bottom: 4rem;
}

/* Checkout: avoid double offset — page-content-wrap defaults to 8rem top */
.theme-checkout-main .page-content-wrap {
	padding-block: 2.5rem;
}

.theme-checkout-header { margin-bottom: 2rem; }
.theme-checkout-continue-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	margin-bottom: 1.5rem;
	transition: color 0.2s ease;
}
.theme-checkout-continue-link:hover { color: var(--color-foreground); }
.theme-checkout-title {
	font-family: var(--font-display);
	font-size: 1.875rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
	.theme-checkout-title { font-size: 2.25rem; }
}
.theme-checkout-intro {
	color: var(--color-muted-foreground);
	max-width: 42rem;
}

/* D — checkout container width (dual selectors) */
.theme-checkout-main > .container-wide,
body.woocommerce-checkout .theme-checkout-main > .container-wide {
	max-width: none;
	width: 100%;
}
body.woocommerce-checkout .entry-content,
.entry-content:has(.wc-block-checkout),
.entry-content:has(.wp-block-woocommerce-checkout) {
	max-width: none;
	width: 100%;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout {
	max-width: 1280px;
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
	min-width: 0;
}

/* E — two-column grid on internal wrapper only */
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
		display: grid !important;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: var(--checkout-gap, 2rem);
		align-items: start;
		flex-direction: unset;
		flex-wrap: nowrap;
		margin: 0;
	}
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
	body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-components-main,
	body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-components-sidebar,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-checkout__main,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-components-main,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-checkout__sidebar,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-components-sidebar {
		width: auto !important;
		max-width: 100%;
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
		box-sizing: border-box;
	}
	/* Fallback — main/sidebar as direct children of checkout root */
	body.woocommerce-checkout .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar),
	.entry-content .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar) {
		display: grid;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: var(--checkout-gap, 2rem);
		align-items: start;
	}
	body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices,
	.entry-content .wc-block-checkout > .wc-block-components-notices {
		grid-column: 1 / -1;
	}
}

/* F — sidebar card background only on order summary */
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar,
.entry-content .wp-block-woocommerce-checkout-totals-block {
	background: transparent;
	padding: 0;
	border-radius: 0;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	background-color: var(--color-secondary);
	border-radius: var(--card-radius);
	padding: 2rem;
	box-sizing: border-box;
}

/* G — notices container */
body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
	max-width: 1280px;
	margin-inline: auto;
	width: 100%;
	box-sizing: border-box;
}
body.woocommerce-checkout .wc-block-components-sidebar-layout + .wc-block-components-notices,
.entry-content .wc-block-components-sidebar-layout + .wc-block-components-notices {
	margin-bottom: 1rem;
}

/* H — empty checkout cart */
body.woocommerce-checkout .wc-block-checkout-empty,
.entry-content .wc-block-checkout-empty {
	margin-inline: auto;
	max-width: 36rem;
	width: 100%;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
.entry-content .wc-block-components-text-input input,
.entry-content .wc-block-components-select select {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background-color: var(--color-background);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
.entry-content .wc-block-components-text-input input:focus,
.entry-content .wc-block-components-select select:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 1px var(--color-primary);
}
body.woocommerce-checkout .wc-block-components-text-input input,
.entry-content .wc-block-components-text-input input {
	padding: revert;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.entry-content .wc-block-components-checkout-place-order-button:hover {
	opacity: 0.9;
}
body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-components-notice-banner {
	border-radius: var(--radius);
	font-family: var(--font-body);
}
body.woocommerce-checkout .wc-block-cart-items,
.entry-content .wc-block-cart-items {
	font-family: var(--font-body);
}

/* =====================================================================
 * 17. CART / ACCOUNT PAGE WIDTH PARITY (Section 13.7)
 * ===================================================================== */
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
	width: 100%;
}

/* =====================================================================
 * 18. THANK YOU PAGE (Section 22.8)
 * ===================================================================== */
body.theme-thankyou-page { overflow-x: clip; }
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
}
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details {
	font-family: var(--font-body);
	color: var(--color-foreground);
	margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	list-style: none;
	padding: 1.5rem;
	background: var(--color-secondary);
	border-radius: var(--card-radius);
}
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
	padding: 0.75rem;
	border-bottom: 1px solid var(--color-border);
	overflow-wrap: break-word;
	word-break: break-word;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 500;
	padding-block-end: 1rem;
}
body.theme-thankyou-page .woocommerce-customer-details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 1rem;
}
@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; }
}

/* =====================================================================
 * 20. RESPONSIVE SAFETY (overflow / min-width)
 * ===================================================================== */
.site-main,
.site-footer,
.page-content-wrap {
	max-width: 100%;
	min-width: 0;
}
.theme-product-grid,
.shop-section,
.about-grid,
.services-grid,
.owner-grid,
.footer-grid,
.theme-product-layout,
.entry-content,
.hero-inner,
.contact-inner {
	min-width: 0;
	max-width: 100%;
}
.shop-section,
.about-section,
.services-section,
.process-section,
.owner-section,
.related-products-section {
	overflow-x: clip;
}
.contact-form-row,
.hero-ctas,
.single-product .theme-add-to-cart-area,
.footer-bottom {
	min-width: 0;
}
@media (max-width: 639px) {
	.single-product .single_add_to_cart_button {
		min-width: 0;
		flex: 1 1 100%;
	}
}

/* =====================================================================
 * 19. UTILITIES
 * ===================================================================== */
[hidden] { display: none !important; }
