/*
 * Edmund Fratus Artist — theme stylesheet.
 * All visual styling for the theme + WooCommerce lives here (Section 10).
 */

/* ==========================================================================
   1. ROOT TOKENS (Section 6 / 6.1) — editable tokens are re-emitted via
   wp_add_inline_style() in functions.php and OVERRIDE these fallbacks.
   ========================================================================== */
:root {
	--color-background: #f8fafc;
	--color-foreground: #1d2d44;
	--color-primary: #0077b8;
	--color-primary-foreground: #ffffff;
	--color-secondary: #eef3f6;
	--color-accent: #e0795c;
	--color-accent-foreground: #ffffff;
	--color-navy: #1d2d44;
	--color-navy-light: #394f6a;
	--color-border: #dae0e7;
	--color-muted-foreground: #58697e;
	--color-card: #ffffff;
	--logo-height: 60px;

	/* Derived tokens (computed, never exposed as controls — Section 6). */
	--color-card-foreground: var(--color-foreground);
	--color-secondary-foreground: var(--color-foreground);
	--color-muted: color-mix(in srgb, var(--color-secondary) 65%, var(--color-background) 35%);
	--color-button-text: var(--color-primary-foreground);

	--font-display: 'Cormorant Garamond', 'Playfair Display', serif;
	--font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;

	--radius: 0.5rem;
	--card-radius: 0.75rem;
	--shadow-soft: 0 4px 20px -6px color-mix(in srgb, var(--color-foreground) 10%, transparent);
	--shadow-elevated: 0 18px 44px -14px color-mix(in srgb, var(--color-foreground) 22%, transparent);
	--shadow-teal: 0 18px 40px -16px color-mix(in srgb, var(--color-primary) 38%, transparent);
	--transition-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);
	--header-height: 88px;
	--header-height-scrolled: 68px;
	--checkout-gap: 2rem;

	--btn-radius: var(--radius);
	--btn-height: 44px;
	--btn-padding: 0 2.25rem;
	--btn-font-size: 0.9375rem;
	--btn-font-weight: 500;
	--btn-letter-spacing: normal;
	--btn-text-transform: none;
	--btn-icon-padding: 0.5rem;
}

@media (min-width: 1024px) {
	:root { --header-height: 96px; --header-height-scrolled: 72px; }
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.theme-product-card__image):not(.theme-cart-item__image img):not(.site-logo-img):not(#product-main-img) {
	height: auto;
}
.cover-img, .hero-bg-img, .product-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3, h4, h5, h6, .font-display {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: inherit;
	margin: 0;
	line-height: 1.15;
	text-wrap: balance;
}

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide { padding: 0 2rem; }
}

.scroll-mt { scroll-margin-top: 6rem; }

/* ==========================================================================
   3. REVEAL / ENTRANCE ANIMATION SYSTEM (Section 2.1)
   ========================================================================== */
.reveal-up, .reveal-item {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth), filter 0.7s var(--transition-smooth);
	will-change: opacity, transform;
}
.reveal-up[data-anim="fade"] { transform: none; }
.reveal-up[data-anim="fade-up"] { transform: translateY(24px); }
.reveal-up[data-anim="slide-up-big"] { transform: translateY(80px); transition-duration: 1s; }
.reveal-up[data-anim="fade-blur"] { transform: translateY(30px); filter: blur(10px); transition-duration: 0.8s; }
.reveal-up[data-anim="scale-in"] { transform: scale(0.92); transition-duration: 0.6s; }
.reveal-item { transform: translateY(24px); }

.reveal-up.is-visible, .reveal-item.is-visible {
	opacity: 1;
	transform: none;
	filter: blur(0);
}

body.is-customizer .reveal-up,
body.is-customizer .reveal-item {
	opacity: 1 !important;
	transform: none !important;
	filter: none !important;
	transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-up, .reveal-item {
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}
	.marquee-track { animation: none !important; }
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	white-space: nowrap;
	border-radius: var(--btn-radius);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	min-height: var(--btn-height);
	padding: var(--btn-padding);
	transition: transform 0.2s var(--transition-smooth), opacity 0.2s ease, background-color 0.2s ease;
	border: none;
	cursor: pointer;
}
.btn:hover { opacity: 0.95; }
.btn-primary-solid:hover, .btn-hero-primary:hover { background: color-mix(in srgb, var(--color-primary) 90%, black); opacity: 1; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.btn-primary-solid, .btn-hero-primary {
	background: var(--color-primary);
	color: var(--color-primary-foreground);
}
.btn-primary-solid:hover, .btn-hero-primary:hover { background: color-mix(in srgb, var(--color-primary) 90%, black); }

.btn-hero-outline {
	background: color-mix(in srgb, white 10%, transparent);
	color: var(--color-primary-foreground);
	border: 1px solid color-mix(in srgb, white 25%, transparent);
}
.btn-hero-outline:hover { background: color-mix(in srgb, white 20%, transparent); }

.btn-outline {
	background: var(--color-background);
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
}
.btn-outline:hover { background: var(--color-secondary); }

.btn-outline-sm, .btn-primary-sm {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	transition: all 0.3s ease;
}
.btn-outline-sm { border: 1px solid var(--color-border); background: transparent; }
.btn-outline-sm:hover { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); color: var(--color-primary); }
.btn-primary-sm { background: var(--color-primary); color: var(--color-primary-foreground); }
.btn-primary-sm:hover { background: color-mix(in srgb, var(--color-primary) 90%, black); }
.btn-primary-sm svg, .btn-outline-sm svg { width: 1rem; height: 1rem; }

/* ==========================================================================
   5. HEADER
   ========================================================================== */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
	background: transparent;
	border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.site-header.is-scrolled,
.site-header.is-mobile-menu-open {
	background: var(--color-navy);
	border-bottom: 1px solid color-mix(in srgb, var(--color-navy-light) 40%, transparent);
	box-shadow: var(--shadow-soft);
}
.site-nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
	transition: height 0.3s ease;
}
@media (min-width: 1024px) { .site-nav { height: 96px; } }
.site-header.is-scrolled .site-nav { height: 64px; }
@media (min-width: 1024px) { .site-header.is-scrolled .site-nav { height: 72px; } }

.site-nav__side { display: none; align-items: center; gap: 2rem; flex: 1; }
@media (min-width: 768px) { .site-nav__side { display: flex; } }
.site-nav__side--right { justify-content: flex-end; }

.theme-nav-list { display: flex; align-items: center; gap: 2rem; margin: 0; }
.theme-nav-list a {
	position: relative;
	display: inline-block;
	font-size: 0.875rem;
	font-family: var(--font-body);
	letter-spacing: 0.02em;
	padding: 0.75rem 0;
	color: color-mix(in srgb, var(--color-primary-foreground) 85%, transparent);
	transition: color 0.3s ease;
}
.theme-nav-list a::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-nav-list a:hover { color: var(--color-primary-foreground); }
.theme-nav-list a:hover::after { transform: scaleX(1); }

.site-brand {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
}
.site-brand__name {
	font-family: var(--font-display);
	color: var(--color-primary-foreground);
	font-size: 1.875rem;
	letter-spacing: 0.02em;
	transition: font-size 0.3s ease;
}
@media (min-width: 1024px) { .site-brand__name { font-size: 2.25rem; } }
.site-header.is-scrolled .site-brand__name { font-size: 1.5rem; }
@media (min-width: 1024px) { .site-header.is-scrolled .site-brand__name { font-size: 1.875rem; } }
.site-brand__subtitle {
	display: none;
	font-size: 11px;
	letter-spacing: 0.38em;
	text-transform: uppercase;
	font-family: var(--font-body);
	color: color-mix(in srgb, var(--color-primary-foreground) 60%, transparent);
	margin-top: 0.25rem;
}
@media (min-width: 480px) { .site-brand__subtitle { display: block; } }
.site-brand--logo {
	height: var(--logo-height);
	max-height: var(--logo-height);
	display: flex;
	align-items: center;
	justify-content: center;
}
.site-logo-img {
	height: 100% !important;
	width: auto !important;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

.cart-toggle {
	position: relative;
	padding: 0.75rem;
	border-radius: 0.5rem;
	color: var(--color-primary-foreground);
	transition: background-color 0.2s ease;
}
.cart-toggle:hover { background: color-mix(in srgb, var(--color-primary) 20%, transparent); }
.theme-cart-count {
	position: absolute;
	top: 2px; right: 2px;
	width: 20px; height: 20px;
	display: flex; align-items: center; justify-content: center;
	font-size: 10px; font-weight: 600;
	background: var(--color-accent);
	color: var(--color-accent-foreground);
	border-radius: 50%;
}
.theme-cart-count:empty { display: none; }

.site-nav__mobile-controls { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; flex-shrink: 0; }
@media (min-width: 768px) { .site-nav__mobile-controls { display: none; margin-left: 0; } }

/* Mobile/tablet header layout — matches Lovable (brand start, cart + menu end). */
@media (max-width: 767px) {
	.site-nav { justify-content: space-between; }
	.site-brand {
		position: static;
		left: auto;
		top: auto;
		transform: none;
		flex: 0 1 auto;
		min-width: 0;
		align-items: center;
	}
	.site-brand--logo { max-width: calc(100% - 7rem); }
}
.mobile-menu-toggle { padding: 0.75rem; border-radius: 0.5rem; color: var(--color-primary-foreground); }
.mobile-menu-toggle:hover { background: color-mix(in srgb, var(--color-primary) 20%, transparent); }

.mobile-nav {
	border-top: 1px solid color-mix(in srgb, var(--color-navy-light) 40%, transparent);
	padding: 0.75rem 0;
}
.mobile-nav:not([hidden]) {
	animation: themeFadeIn 0.6s var(--transition-smooth) forwards;
}
@media (min-width: 768px) { .mobile-nav { display: none !important; } }
.mobile-nav .theme-nav-list { flex-direction: column; align-items: flex-start; gap: 0; }
.mobile-nav .theme-nav-list a {
	width: 100%;
	padding: 0.75rem 0.25rem;
	text-align: left;
	color: color-mix(in srgb, var(--color-primary-foreground) 85%, transparent);
}
.mobile-nav .theme-nav-list a:hover { color: var(--color-primary-foreground); }
.mobile-nav .theme-nav-list a::after { display: none; }

/* ==========================================================================
   6. HERO
   ========================================================================== */
body.theme-no-hero .site-main { padding-top: var(--header-height); }

.hero-section {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--color-navy);
}
.hero-section__media {
	position: absolute;
	inset: 0;
	transform: scale(var(--hero-scale, 1));
	transition: transform 0.1s linear;
}
.hero-section__video { width: 100%; height: 100%; object-fit: cover; }
.hero-section__scrim {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--color-foreground) 50%, transparent);
}
.hero-section__scrim--dynamic {
	background: var(--color-foreground);
	opacity: var(--hero-scrim-opacity, 0.5);
	transition: opacity 0.1s linear;
}
.hero-section__content {
	position: relative;
	z-index: 10;
	text-align: center;
	padding: 5rem 0;
	transform: translateY(var(--hero-text-y, 0px));
	opacity: var(--hero-text-opacity, 1);
}
.hero-section__eyebrow { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.hero-section__rule {
	width: 32px;
	height: 1px;
	background: color-mix(in srgb, white 40%, transparent);
	display: block;
	flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
	.hero-section__rule {
		width: 0;
		animation: heroRuleGrow 0.8s var(--transition-smooth) 0.8s forwards;
	}
}
@keyframes heroRuleGrow { to { width: 32px; } }
@keyframes themeFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
.hero-section__eyebrow-text { font-size: 0.875rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 500; color: color-mix(in srgb, var(--color-primary-foreground) 80%, transparent); }
.hero-section__title-mask { overflow: hidden; padding: 0.5rem 0; }
.hero-section__title {
	font-family: var(--font-display);
	font-size: 3rem;
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: var(--color-primary-foreground);
	font-weight: 700;
}
@media (min-width: 768px) { .hero-section__title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-section__title { font-size: 6rem; } }
.hero-section__title--italic { font-style: italic; margin-bottom: 1.5rem; line-height: 1.15; }
.hero-section__subtitle {
	color: color-mix(in srgb, var(--color-primary-foreground) 75%, transparent);
	max-width: 36rem;
	margin: 0 auto 2.5rem;
	font-size: 1.125rem;
}
.hero-section__actions { display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; padding: 0 1rem; }
@media (min-width: 640px) { .hero-section__actions { flex-direction: row; } }

/* ==========================================================================
   7. MARQUEE
   ========================================================================== */
.marquee-section { background: var(--color-navy); color: var(--color-background); overflow: hidden; padding: 1rem 0; }
.marquee-track { display: flex; white-space: nowrap; gap: 2rem; width: max-content; animation: theme-marquee 20s linear infinite; will-change: transform; }
.marquee-set { display: flex; gap: 2rem; align-items: center; flex-shrink: 0; }
.marquee-item { display: flex; align-items: center; gap: 2rem; font-size: 0.875rem; letter-spacing: 0.25em; text-transform: uppercase; font-family: var(--font-body); }
@media (min-width: 768px) { .marquee-item { font-size: 1rem; } }
.marquee-item__dot { color: var(--color-primary); opacity: 0.6; }
@keyframes theme-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   8. STATS
   ========================================================================== */
.stats-section { padding: 4rem 0; background: var(--color-secondary); }
@media (min-width: 768px) { .stats-section { padding: 5rem 0; } }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; text-align: center; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stats-grid__item { display: flex; flex-direction: column; align-items: center; }
.stats-grid__number { font-family: var(--font-display); font-size: 2.25rem; font-weight: 400; letter-spacing: -0.025em; color: var(--color-foreground); line-height: 1.1; }
@media (min-width: 768px) { .stats-grid__number { font-size: 3rem; } }
@media (min-width: 1024px) { .stats-grid__number { font-size: 3.75rem; } }
.stats-grid__label { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.5rem; letter-spacing: 0.02em; }

.divider-section { background: var(--color-secondary); }
.divider-rule { border: none; border-top: 1px solid var(--color-border); margin: 0; }

/* ==========================================================================
   9. ABOUT
   ========================================================================== */
.about-section { background: var(--color-secondary); position: relative; }
.about-section__inner { padding-block: 4rem; }
@media (min-width: 768px) { .about-section__inner { padding-block: 7rem; } }
.about-section__content { max-width: 42rem; margin: 0 auto; text-align: center; }
.about-section__eyebrow { display: block; font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 0.75rem; }
.about-section .section-heading {
	font-family: var(--font-display);
	font-size: 2.25rem;
	margin-bottom: 1.5rem;
	color: var(--color-foreground);
}
@media (min-width: 768px) { .about-section .section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .about-section .section-heading { font-size: 3.75rem; } }
.about-section__body { display: flex; flex-direction: column; gap: 1rem; color: var(--color-muted-foreground); }
.about-section__body p { line-height: 1.7; }

/* ==========================================================================
   10. SHOP SECTION
   ========================================================================== */
.shop-section { padding-block: 4rem; }
@media (min-width: 768px) { .shop-section { padding-block: 5rem; } }
.shop-section__head { margin-bottom: 2.5rem; }
.shop-heading { font-family: var(--font-display); font-size: 2.25rem; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .shop-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .shop-heading { font-size: 3.75rem; } }
.shop-section__subtitle { color: var(--color-muted-foreground); max-width: 36rem; margin-bottom: 1.5rem; }

.shop-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.filter-pill {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	border-radius: 9999px;
	border: 1px solid var(--color-border);
	background: var(--color-background);
	color: var(--color-foreground);
	transition: all 0.3s ease;
}
.filter-pill:hover { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); }
.filter-pill.is-active { background: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }
.filter-pill--price { display: flex; align-items: center; gap: 0.5rem; }
.filter-pill--price.is-active { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); background: color-mix(in srgb, var(--color-primary) 5%, transparent); }
.filter-pill--price svg,
.filter-pill--price [data-price-chevron] svg { transition: transform 0.3s ease; }
.filter-pill--price[aria-expanded="true"] svg,
.filter-pill--price[aria-expanded="true"] [data-price-chevron] svg { transform: rotate(180deg); }
.shop-filter-bar__count { margin-left: auto; display: none; font-size: 0.875rem; color: var(--color-muted-foreground); }
@media (min-width: 768px) { .shop-filter-bar__count { display: block; } }

.price-range-dropdown { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth); }
.price-range-dropdown.is-open { max-height: 200px; opacity: 1; }
.price-range-dropdown[hidden] { display: block; }
.price-range-wrapper { position: relative; height: 1.5rem; max-width: 24rem; margin-top: 1rem; }
.range-track-bg, .range-track-fill { position: absolute; height: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; border-radius: 9999px; }
.range-track-bg { left: 0; right: 0; background: var(--color-border); }
.range-track-fill { background: var(--color-primary); }
.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: 20px; height: 20px; border-radius: 50%; background: var(--color-background); border: 2px solid var(--color-primary); box-shadow: var(--shadow-soft); cursor: pointer; }
.range-input::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--color-background); border: 2px solid var(--color-primary); cursor: pointer; }
.range-input::-webkit-slider-runnable-track { background: transparent; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }
.price-range-labels { display: flex; justify-content: space-between; max-width: 24rem; font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.5rem; }

.theme-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: stretch;
}
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, 1fr); } }
.theme-product-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .theme-product-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.theme-product-card-wrap { display: block; height: 100%; }
.theme-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: 0.75rem;
	padding: 0.75rem;
	transition: box-shadow 0.4s var(--transition-smooth), transform 0.4s var(--transition-smooth), border-color 0.3s ease;
}
@media (min-width: 640px) { .theme-product-card { padding: 1rem; } }
.theme-product-card-wrap:hover .theme-product-card {
	transform: translateY(-8px);
	box-shadow: var(--shadow-teal);
	border-color: color-mix(in srgb, var(--color-primary) 40%, transparent);
}
.theme-product-card__image-wrapper { position: relative; aspect-ratio: 1 / 1; background: var(--color-secondary); overflow: hidden; border-radius: 0.5rem; }
.theme-product-card__image-wrapper .theme-product-card__image,
.theme-product-card__image-wrapper .product-card-img {
	height: 100% !important;
	width: 100%;
	max-height: none;
	object-fit: cover;
	transition: transform 0.6s var(--transition-smooth);
}
.theme-product-card__image-wrapper .product-card-img {
	position: absolute;
	inset: 0;
}
.theme-product-card-wrap:hover .theme-product-card__image { transform: scale(1.06); }
.theme-product-card__badge {
	position: absolute;
	top: 0.5rem;
	padding: 0.375rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 0.375rem;
}
@media (min-width: 768px) { .theme-product-card__badge { top: 0.75rem; } }
.theme-product-card__badge--soldout { left: 0.5rem; background: var(--color-navy); color: var(--color-primary-foreground); }
@media (min-width: 768px) { .theme-product-card__badge--soldout { left: 0.75rem; } }
.theme-product-card__badge--framing { right: 0.5rem; background: var(--color-accent); color: var(--color-accent-foreground); display: flex; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .theme-product-card__badge--framing { right: 0.75rem; } }
.theme-product-card__info { flex: 1; display: flex; flex-direction: column; gap: 0.375rem; padding: 1rem 0.25rem 0.25rem; min-width: 0; }
.theme-product-card__category { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-product-card__title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; color: var(--color-foreground); transition: color 0.3s ease; }
.theme-product-card-wrap:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__desc { font-size: 0.875rem; color: var(--color-muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme-product-card__price { font-size: 1rem; font-weight: 700; color: var(--color-navy); margin-top: auto; padding-top: 0.25rem; }
.theme-product-card__price del { opacity: 0.6; margin-right: 0.375rem; font-weight: 400; }

.shop-section__empty { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); }
.shop-section__more { text-align: center; margin-top: 2.5rem; }

/* ==========================================================================
   11. ART JOURNAL / WRITING
   ========================================================================== */
.writing-section { background: var(--color-card); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.writing-section__inner { padding: 4rem 0; }
@media (min-width: 768px) { .writing-section__inner { padding: 6rem 0; } }
.writing-section__head { text-align: center; margin-bottom: 3rem; }
.writing-section__eyebrow { display: block; font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 0.75rem; }
.writing-section .section-heading { font-family: var(--font-display); font-size: 2.25rem; color: var(--color-foreground); }
@media (min-width: 768px) { .writing-section .section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .writing-section .section-heading { font-size: 3.75rem; } }
.writing-section__subtitle { color: var(--color-muted-foreground); max-width: 40rem; margin: 1rem auto 0; line-height: 1.6; }

.writing-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .writing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .writing-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.writing-card {
	display: block;
	width: 100%;
	text-align: left;
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 0.75rem;
	overflow: hidden;
	padding: 0.75rem;
	transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth), border-color 0.3s ease;
}
.writing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-teal); border-color: color-mix(in srgb, var(--color-primary) 40%, transparent); }
.writing-card__image-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0.5rem; background: var(--color-secondary); }
.writing-card__image { transition: transform 0.7s ease-out; }
.writing-card:hover .writing-card__image { transform: scale(1.05); }
.writing-card__body { padding: 1rem; }
.writing-card__kicker {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 600;
	background: color-mix(in srgb, var(--color-accent) 15%, transparent);
	color: var(--color-accent);
	padding: 0.25rem 0.625rem;
	border-radius: 0.375rem;
}
.writing-card__title { font-family: var(--font-display); font-size: 1.5rem; margin: 0.75rem 0 0.5rem; color: var(--color-foreground); transition: color 0.3s ease; }
.writing-card:hover .writing-card__title { color: var(--color-primary); }
.writing-card__excerpt { font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.6; }
.writing-card__cta { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--color-primary); }
.writing-card__cta svg { transition: transform 0.3s ease; }
.writing-card:hover .writing-card__cta svg { transform: translateX(4px); }

.journal-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.journal-modal[hidden] { display: none; }
.journal-modal__overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-navy) 70%, transparent); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.35s var(--transition-smooth); }
.journal-modal.is-open .journal-modal__overlay { opacity: 1; }
.journal-modal__dialog {
	position: relative;
	z-index: 10;
	width: 100%;
	max-width: 42rem;
	max-height: 86vh;
	overflow-y: auto;
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: 1rem;
	box-shadow: var(--shadow-elevated);
	opacity: 0;
	transform: translateY(20px) scale(0.97);
	transition: opacity 0.35s var(--transition-smooth), transform 0.35s var(--transition-smooth);
}
.journal-modal.is-open .journal-modal__dialog { opacity: 1; transform: translateY(0) scale(1); }
.journal-modal__close {
	position: absolute; top: 0.75rem; right: 0.75rem; z-index: 20;
	padding: 0.75rem; border-radius: 50%;
	background: color-mix(in srgb, var(--color-card) 90%, transparent);
	border: 1px solid var(--color-border);
	color: var(--color-foreground);
	transition: background-color 0.2s ease;
}
.journal-modal__close:hover { background: var(--color-secondary); }
.journal-modal__image-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-secondary); border-radius: 1rem 1rem 0 0; }
.journal-modal__text { padding: 1.5rem; }
@media (min-width: 640px) { .journal-modal__text { padding: 2rem; } }
.journal-modal__meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.journal-modal__kicker { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; background: color-mix(in srgb, var(--color-accent) 15%, transparent); color: var(--color-accent); padding: 0.25rem 0.625rem; border-radius: 0.375rem; }
.journal-modal__date { font-size: 0.75rem; color: var(--color-muted-foreground); }
.journal-modal__title { font-family: var(--font-display); font-size: 1.875rem; margin-bottom: 1.25rem; color: var(--color-foreground); }
@media (min-width: 768px) { .journal-modal__title { font-size: 2.25rem; } }
.journal-modal__body { display: flex; flex-direction: column; gap: 1rem; }
.journal-modal__body p { color: var(--color-muted-foreground); line-height: 1.7; }
.journal-modal__panel[hidden] { display: none; }
.journal-modal__footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 1.5rem; background: var(--color-card); border-top: 1px solid var(--color-border); border-radius: 0 0 1rem 1rem; }
@media (min-width: 640px) { .journal-modal__footer { padding: 1rem 2rem; } }
.journal-modal__counter { font-size: 0.75rem; color: var(--color-muted-foreground); }

/* ==========================================================================
   12. COMMISSION CTA
   ========================================================================== */
.commission-section { position: relative; overflow: hidden; background: var(--color-navy); }
.commission-section__bg { position: absolute; inset: 0; background-position: center; background-size: cover; background-attachment: scroll; }
@media (min-width: 1024px) { .commission-section__bg { background-attachment: fixed; } }
.commission-section__scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-navy) 70%, transparent); }
.commission-section__content { position: relative; z-index: 10; padding: 5rem 1.5rem; text-align: center; }
@media (min-width: 768px) { .commission-section__content { padding: 8rem 1.5rem; } }
.commission-section__icon { margin: 0 auto 1rem; color: color-mix(in srgb, var(--color-primary-foreground) 80%, transparent); }
.commission-section__title { font-family: var(--font-display); font-size: 1.875rem; margin-bottom: 1rem; color: var(--color-primary-foreground); }
@media (min-width: 768px) { .commission-section__title { font-size: 3rem; } }
@media (min-width: 1024px) { .commission-section__title { font-size: 3.75rem; } }
.commission-section__title-italic { font-style: italic; }
.commission-section__paragraph { color: color-mix(in srgb, var(--color-primary-foreground) 80%, transparent); max-width: 32rem; margin: 0 auto 2.5rem; font-size: 1.125rem; line-height: 1.6; }

/* ==========================================================================
   13. CONTACT
   ========================================================================== */
.contact-section { background: var(--color-secondary); }
.contact-section__inner { padding-block: 5rem; }
@media (min-width: 768px) { .contact-section__inner { padding-block: 7rem; } }
.contact-section__head { text-align: center; margin-bottom: 2.5rem; }
.contact-section__eyebrow { display: block; font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 0.75rem; }
.contact-title { font-family: var(--font-display); font-size: 2.25rem; margin-bottom: 1.25rem; color: var(--color-foreground); }
@media (min-width: 768px) { .contact-title { font-size: 3rem; } }
@media (min-width: 1024px) { .contact-title { font-size: 3.75rem; } }
.contact-section__subtitle { color: var(--color-muted-foreground); max-width: 32rem; margin: 0 auto; line-height: 1.6; }
.contact-section__form-wrap { max-width: 48rem; margin: 0 auto; }
.contact-section__quick-links { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .contact-section__quick-links { grid-template-columns: repeat(2, 1fr); } }
.contact-quick-link {
	display: flex; align-items: center; justify-content: center; gap: 0.625rem;
	padding: 0.75rem 1.25rem; min-height: 44px;
	background: var(--color-card); border: 1px solid var(--color-border); border-radius: 0.75rem;
	font-size: 0.875rem; color: var(--color-muted-foreground);
	transition: all 0.3s ease;
}
.contact-quick-link:hover { color: var(--color-foreground); border-color: color-mix(in srgb, var(--color-primary) 40%, transparent); }
.contact-quick-link svg { color: var(--color-primary); flex-shrink: 0; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .contact-form__row { grid-template-columns: repeat(2, 1fr); } }
.contact-form__field { min-width: 0; }
.contact-form__field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.contact-form__field .required { color: var(--color-primary); }
.contact-form input, .contact-form textarea {
	width: 100%;
	padding: 0.875rem 1.25rem;
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 0.75rem;
	font-size: 0.875rem;
	transition: all 0.3s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--color-muted-foreground); }
.contact-form input:focus, .contact-form textarea:focus {
	outline: none;
	border-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 30%, transparent);
}
.contact-form textarea { resize: none; }
.contact-form__submit-wrap { text-align: center; padding-top: 0.5rem; }
.contact-form__error { color: #d32222; text-align: center; font-size: 0.875rem; }

.contact-section__success { display: none; text-align: center; padding: 2.5rem 0; }
.contact-section__success.is-visible { display: block; }
.contact-section__success-icon {
	width: 64px; height: 64px; border-radius: 50%;
	background: var(--color-primary); color: var(--color-primary-foreground);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 1.5rem;
}
.contact-section__success-title { font-family: var(--font-display); font-size: 1.875rem; margin-bottom: 0.5rem; }
.contact-section__success-message { color: var(--color-muted-foreground); }
[data-contact-form-wrap][hidden] { display: none; }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer { background: var(--color-navy); color: var(--color-primary-foreground); }
.site-footer__inner { padding-block: 3.5rem 4rem; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.site-footer__logo { display: inline-flex; flex-direction: column; line-height: 1; }
.site-footer__tagline { margin-top: 1.25rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-primary-foreground) 70%, transparent); max-width: 26rem; line-height: 1.6; }
.site-footer__insta {
	margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.75rem 1rem; border-radius: 0.5rem;
	border: 1px solid color-mix(in srgb, var(--color-primary-foreground) 20%, transparent);
	font-size: 0.875rem; color: color-mix(in srgb, var(--color-primary-foreground) 80%, transparent);
	transition: all 0.3s ease;
}
.site-footer__insta:hover { color: var(--color-primary-foreground); border-color: color-mix(in srgb, var(--color-primary-foreground) 50%, transparent); }
.site-footer__col-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; letter-spacing: 0.02em; text-transform: uppercase; color: color-mix(in srgb, var(--color-primary-foreground) 90%, transparent); }
.site-footer__nav-list { display: flex; flex-direction: column; gap: 0.25rem; }
.site-footer__nav-list a, .site-footer__nav-list .theme-fallback-nav a {
	display: block; padding: 0.5rem 0; font-size: 0.875rem;
	color: color-mix(in srgb, var(--color-primary-foreground) 70%, transparent);
	transition: color 0.2s ease;
}
.site-footer__nav-list a:hover { color: var(--color-primary-foreground); }
.site-footer__contact-list { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__contact-list li { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.5rem 0; font-size: 0.875rem; color: color-mix(in srgb, var(--color-primary-foreground) 70%, transparent); }
.site-footer__contact-list a { display: flex; align-items: center; gap: 0.5rem; color: inherit; transition: color 0.2s ease; }
.site-footer__contact-list a:hover { color: var(--color-primary-foreground); }
.site-footer__contact-list svg { flex-shrink: 0; }
.site-footer__address svg { margin-top: 0.15rem; }
.site-footer__bottom {
	margin-top: 2.5rem; padding-top: 1.5rem;
	border-top: 1px solid color-mix(in srgb, var(--color-primary-foreground) 15%, transparent);
	display: flex; flex-direction: column; gap: 0.75rem; align-items: center; justify-content: space-between;
}
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; } }
.site-footer__copyright, .site-footer__credit { font-size: 0.75rem; color: color-mix(in srgb, var(--color-primary-foreground) 60%, transparent); }
.site-footer__credit a { text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s ease; }
.site-footer__credit a:hover { color: var(--color-primary-foreground); }

/* ==========================================================================
   15. 404
   ========================================================================== */
.notfound-section { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; }
.notfound-section__code { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.notfound-section__message { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.notfound-section__link { color: var(--color-primary); text-decoration: underline; }

.page-title { font-family: var(--font-display); font-size: 2.25rem; margin-bottom: 1.5rem; }
.page-shell { padding: calc(var(--header-height) + 2.5rem) 0 4rem; }

/* ==========================================================================
   16. SINGLE PRODUCT (Section 11)
   ========================================================================== */
.single-product-main { padding-top: calc(var(--header-height) + 1.5rem); padding-bottom: 3rem; }
@media (min-width: 1024px) {
	.single-product-main { padding-top: calc(var(--header-height) + 2rem); }
}
.single-product-back { padding: 0 0 1.5rem; }
.single-product-back__link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.single-product-back__link:hover { color: var(--color-foreground); }

.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-info { padding-block: 2.5rem; }
}
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-gallery__main { position: relative; aspect-ratio: 3 / 4; background: var(--color-secondary); overflow: hidden; border-radius: 0.75rem; margin-bottom: 1rem; }
.theme-product-gallery__main #product-main-img,
.theme-product-gallery__main .cover-img {
	height: 100% !important;
	width: 100%;
	max-height: none;
	object-fit: cover;
	object-position: center;
}
.theme-product-thumb img {
	height: 100% !important;
	width: 100%;
	object-fit: cover;
}
.theme-product-thumbnails {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.5rem;
	max-width: 100%;
}
.theme-product-thumb {
	position: relative; aspect-ratio: 1 / 1; overflow: hidden;
	border: 2px solid transparent; border-radius: 0.375rem; opacity: 0.6; transition: all 0.3s ease;
}
.theme-product-thumb.is-active, .theme-product-thumb:hover { opacity: 1; }
.theme-product-thumb.is-active { border-color: var(--color-primary); }

.theme-product-info__category { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-product-info__category a { color: inherit; }
.product-title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin-top: 0.5rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .product-title { font-size: 1.875rem; } }
.theme-product-info__price { font-family: var(--font-body); font-size: 1.5rem; font-weight: 600; color: var(--color-primary); margin-bottom: 0.5rem; }
.theme-product-info__price del { opacity: 0.6; font-weight: 400; margin-right: 0.5rem; }
.theme-product-info__framing-note { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-accent); margin-bottom: 1rem; }
.theme-product-info__stock { font-weight: 600; margin-bottom: 1rem; }
.theme-product-info__stock.is-out-of-stock { color: var(--color-accent); }
.theme-product-info__description {
	color: var(--color-muted-foreground);
	line-height: 1.625;
	margin-bottom: 2rem;
	white-space: pre-line;
	font-family: var(--font-body);
}
.theme-product-info__details { border-top: 1px solid var(--color-border); padding-top: 2rem; margin-top: 0; }
.theme-product-info__details-title { font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.theme-product-details-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.theme-product-details-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	line-height: 1.5;
}
.theme-product-details-list li::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-primary);
	flex-shrink: 0;
	margin-top: 0.5rem;
}

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 0.5rem; overflow: hidden; }
.theme-qty-minus, .theme-qty-plus { padding: 0.75rem 1rem; transition: background-color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input {
	width: 48px; min-width: 48px; text-align: center; border: none; background: transparent; padding: 0.75rem 0;
	-moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 2rem;
}
.theme-add-to-cart-area .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

.related-products-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.related-products-section__heading { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .related-products-section__heading { font-size: 1.5rem; } }

/* ==========================================================================
   17. WOOCOMMERCE — ADD TO CART BUTTON 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: 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;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

.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;
}

/* Variations table layout (Section 11.5.1) */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}
.single-product .variations tbody td.label { padding-bottom: 0.25rem; font-weight: 600; }
.single-product .variations tbody td.value { padding-top: 0; }

.theme-variations { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 1.5rem; }
.theme-variation-label { display: block; font-size: 0.875rem; font-weight: 600; font-family: var(--font-body); margin-bottom: 0.75rem; }
.theme-variation-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-variation-pill {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-family: var(--font-body);
	border: 1px solid var(--color-border);
	border-radius: 0.375rem;
	background: var(--color-background);
	color: var(--color-foreground);
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.theme-variation-pill:hover:not(:disabled) { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); }
.theme-variation-pill.is-selected {
	background: var(--color-primary);
	color: var(--color-primary-foreground);
	border-color: var(--color-primary);
}
.theme-variation-pill.is-disabled,
.theme-variation-pill:disabled { opacity: 0.45; cursor: not-allowed; }
.theme-variation-select-wrap {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}
.theme-attr-select-hidden { display: none !important; }

/* WooCommerce notices — scoped visibility (Section 14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	font-family: var(--font-body);
	border-radius: 0.5rem;
	padding: 1rem 1.5rem;
	border-top: 3px solid var(--color-primary);
	background: var(--color-secondary);
	color: var(--color-foreground);
	list-style: none;
	margin: 0 0 1.5rem;
}
.woocommerce-error { border-top-color: #d32222; }

/* ==========================================================================
   18. SIDE CART DRAWER
   ========================================================================== */
#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 55;
	background: color-mix(in srgb, var(--color-foreground) 20%, transparent);
	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: 56;
	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; }

.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-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer__close { padding: 0.25rem; transition: opacity 0.2s ease; }
.theme-cart-drawer__close:hover { opacity: 0.6; }
.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 { width: 80px; height: 96px; background: var(--color-secondary); overflow: hidden; flex-shrink: 0; border-radius: 0.375rem; }
.theme-cart-item__image img {
	width: 100%;
	height: 100% !important;
	max-height: none;
	object-fit: cover;
}
.theme-cart-item__info { flex: 1; min-width: 0; }
.theme-cart-item__title { display: block; font-size: 0.875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.2s ease; }
.theme-cart-item__title:hover { opacity: 0.7; }
.theme-cart-item__price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.theme-cart-item__variation { font-size: 0.75rem; 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; min-width: 0; }
.theme-cart-qty-btn { padding: 0.25rem; border-radius: 0.25rem; transition: background-color 0.2s ease; }
.theme-cart-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.75rem; color: var(--color-muted-foreground); transition: color 0.2s ease; flex-shrink: 0; }
.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__subtotal span:last-child { font-weight: 500; }
.theme-cart-drawer__note { font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-drawer__checkout { width: 100%; }

/* ==========================================================================
   19. WOOCOMMERCE CHECKOUT BLOCK (Section 13)
   ========================================================================== */
body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-top: calc(var(--header-height) + 1.5rem);
	padding-bottom: 4rem;
}
@media (max-width: 1023px) {
	body.woocommerce-checkout .site-main {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
	body.woocommerce-checkout .site-main .container-wide {
		padding-left: 0;
		padding-right: 0;
	}
}
@media (min-width: 768px) and (max-width: 1023px) {
	body.woocommerce-checkout .site-main {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}
body.woocommerce-checkout .page-shell,
body.woocommerce-cart .page-shell,
body.woocommerce-account .page-shell {
	padding-top: 0;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--checkout-gap);
	align-items: start;
}
@media (min-width: 1024px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	}
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	display: block !important;
	grid-column: auto;
}
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-form,
body.woocommerce-checkout .wc-block-checkout__main .wc-block-checkout__form {
	display: block !important;
	max-width: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body) !important;
	font-size: 0.875rem !important;
	border: 1px solid var(--color-border) !important;
	border-radius: 0 !important;
	background: var(--color-background) !important;
	color: var(--color-foreground) !important;
	box-shadow: none !important;
}
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout select.wc-block-components-select-control__select,
body.woocommerce-checkout .wc-block-components-select-control__button,
body.woocommerce-checkout .wc-block-components-select-control .components-button,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-combobox-control input.components-combobox-control__input,
body.woocommerce-checkout .wc-block-components-combobox-control button.components-button {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body) !important;
	font-size: 0.875rem !important;
	border: 1px solid var(--color-border) !important;
	border-radius: 0 !important;
	background: var(--color-background) !important;
	color: var(--color-foreground) !important;
	box-shadow: none !important;
	min-height: auto !important;
}
body.woocommerce-checkout .wc-block-components-select-control {
	border: none !important;
	background: transparent !important;
}
body.woocommerce-checkout .wc-block-components-select-control__button svg,
body.woocommerce-checkout .wc-block-components-combobox-control svg {
	color: var(--color-muted-foreground) !important;
	fill: currentColor !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-select-control__button:focus,
body.woocommerce-checkout .wc-block-components-select-control__button:focus-visible,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
body.woocommerce-checkout .wc-block-components-combobox-control input.components-combobox-control__input:focus {
	border-color: var(--color-primary) !important;
	box-shadow: 0 0 0 1px var(--color-primary) !important;
	outline: none !important;
}
body.woocommerce-checkout .wc-block-components-textarea textarea {
	border-radius: 0.5rem !important;
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: var(--color-muted-foreground) !important; }
body.woocommerce-checkout .wc-block-components-notice-banner { grid-column: 1 / -1; border-radius: 0.5rem; }

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-secondary);
	border-radius: var(--card-radius);
	padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: 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 { opacity: 0.9; }

/* ==========================================================================
   20. THANK YOU PAGE (Section 22.8)
   ========================================================================== */
body.theme-thankyou-page { overflow-x: hidden; }
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 { margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex; flex-wrap: wrap; gap: 1.5rem; 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 h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}
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); text-align: left;
}
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; }

/* ==========================================================================
   21. GENERIC OVERLAY LINK PATTERN GUARD (Section 31.3)
   ========================================================================== */
.theme-product-card-wrap { position: relative; }

/* ==========================================================================
   22. UTILITIES
   ========================================================================== */
.section-heading { line-height: 1.1; }
[hidden] { display: none !important; }
