/* =========================================================================
   Stephen Schwei Poet — theme.css
   Paper & ink, cobalt accent. Independent poetry broadside.
   ========================================================================= */

/* -------------------------------------------------------------------------
   0. TOKENS (fallbacks — real values are injected inline by functions.php)
   ------------------------------------------------------------------------- */
:root {
	--color-background: #f2efe9;
	--color-foreground: #1e1d1a;
	--color-primary: #315fb5;
	--color-primary-foreground: #f8f6f2;
	--color-secondary: #e4e0d8;
	--color-muted: #d8d3cb;
	--color-muted-foreground: #5c5851;
	--color-border: #cfc7b8;
	--color-paper-deep: #e7e3da;
	--color-paper-books: #eaecf1;
	--color-paper-toast: #e4ddd3;
	--color-destructive: #ae3229;
	--logo-height: 40px;

	--font-display: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
	--font-body: 'IBM Plex Sans', system-ui, sans-serif;

	--radius: 4px;
	--btn-radius: 4px;
	--btn-height: 48px;
	--btn-padding: 0.75rem 1.5rem;
	--btn-font-size: 0.8125rem;
	--btn-font-weight: 500;
	--btn-letter-spacing: 0.01em;
	--btn-text-transform: none;
	--shadow-elevated: 0 12px 40px -20px rgba(30, 29, 26, 0.35);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
	--ease-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
	--header-height: 80px;

	/* Container tokens — match Lovable container-wide / container-narrow */
	--container-wide-max: 1240px;
	--container-narrow-max: 880px;
	--container-padding: 1.25rem;      /* px-5 */
	--container-padding-sm: 2rem;      /* sm:px-8 */
	--container-padding-lg: 3rem;      /* lg:px-12 (wide only) */
}

/* -------------------------------------------------------------------------
   1. BASE
   ------------------------------------------------------------------------- */
* {
	border-color: var(--color-border);
	box-sizing: border-box;
}

html, body {
	max-width: 100%;
	overflow-x: clip;
}

body {
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-feature-settings: "ss01", "kern";
	-webkit-font-smoothing: antialiased;
	margin: 0;
}

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

/* Heading font-weight/size reset (Tailwind preflight parity — Section 2.2.4) */
h1, h2, h3, h4, h5, h6 {
	font-weight: inherit;
	font-size: inherit;
	margin: 0;
	font-family: var(--font-display);
	letter-spacing: -0.01em;
	font-weight: 500;
	line-height: 1.15;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; background: none; border: none; padding: 0; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; }

::selection { background: color-mix(in srgb, var(--color-primary) 25%, transparent); color: var(--color-foreground); }

input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 1px;
}

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

/* -------------------------------------------------------------------------
   2. LAYOUT CONTAINERS
   ------------------------------------------------------------------------- */
.container-wide {
	width: 100%;
	max-width: var(--container-wide-max);
	margin: 0 auto;
	padding-inline: var(--container-padding);
	min-width: 0;
}
.container-narrow {
	width: 100%;
	max-width: var(--container-narrow-max);
	margin: 0 auto;
	padding-inline: var(--container-padding);
	min-width: 0;
}
@media (min-width: 640px) {
	.container-wide,
	.container-narrow {
		padding-inline: var(--container-padding-sm);
	}
}
@media (min-width: 1024px) {
	.container-wide {
		padding-inline: var(--container-padding-lg);
	}
}

/* -------------------------------------------------------------------------
   3. TYPE / EDITORIAL UTILITIES
   ------------------------------------------------------------------------- */
.folio {
	font-family: var(--font-body);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	font-weight: 500;
}

.display-xl {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.02;
}
.display-xl, .font-display { font-weight: inherit; }

.price {
	font-family: var(--font-body);
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}
.price .woocommerce-Price-amount { font-weight: inherit; }

.rule { display: block; width: 100%; height: 1px; background-color: var(--color-border); }

.link-underline { position: relative; display: inline-block; }
.link-underline::after {
	content: '';
	position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
	background: currentColor; transform-origin: left; transform: scaleX(0);
	transition: transform 300ms var(--transition-smooth);
}
.link-underline:hover::after, .link-underline[data-active="true"]::after { transform: scaleX(1); }

/* Cover image container. Uncropped, contain, paper shelf. */
.cover-frame {
	position: relative;
	overflow: hidden;
	background-color: var(--color-paper-deep);
}
.cover-frame img.cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 0.5rem;
}

/* Global img rule exclusions (Section 15.1 completeness rule) */
img:not(.cover-img):not(.theme-about__photo-img) {
	max-width: 100%;
	height: auto;
}

/* -------------------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------------------- */
.btn-cobalt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	font-family: var(--font-body);
	border-radius: var(--radius);
	transition: background-color 0.2s ease, opacity 0.2s ease;
	text-transform: none;
}
.btn-cobalt:hover { background-color: color-mix(in srgb, var(--color-primary) 90%, transparent); }

.btn-outline-ink {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border: 1px solid var(--color-foreground);
	color: var(--color-foreground);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	font-family: var(--font-body);
	border-radius: var(--radius);
	transition: background-color 0.2s ease, color 0.2s ease;
	text-transform: none;
}
.btn-outline-ink:hover { background-color: var(--color-foreground); color: var(--color-background); }

.theme-btn-arrow svg { margin-left: 0.5rem; transition: transform 0.2s ease; }
.theme-btn-arrow:hover svg { transform: translateX(3px); }

.theme-btn-primary {
	position: relative;
}

.press-scale { transition: transform 120ms var(--transition-smooth); }
.press-scale:active { transform: scale(0.98); }

/* -------------------------------------------------------------------------
   5. ANIMATIONS / SCROLL REVEALS (Section 2.1)
   ------------------------------------------------------------------------- */
.reveal-item {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.55s var(--ease-smooth), transform 0.55s var(--ease-smooth);
	transition-delay: var(--stagger-delay, 0s);
}
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

.rule-draw-item {
	transform-origin: left center;
	transform: scaleX(0);
	transition: transform 700ms var(--transition-smooth);
}
.rule-draw-item.is-visible { transform: scaleX(1); }

/* Customizer preview fallback (Section 2.1.5) — never hide content in the editor. */
body.is-customizer .reveal-item,
body.is-customizer .theme-hero-anim,
body.is-customizer .theme-about-anim {
	opacity: 1 !important;
	transform: none !important;
}
body.is-customizer .rule-draw-item { transform: scaleX(1) !important; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-in { animation: fadeIn 0.5s var(--transition-smooth) forwards; }

.marquee { display: flex; width: max-content; animation: marquee-scroll 60s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
	.marquee { animation: none !important; transform: none !important; }
	.reveal-item, .rule-draw-item { opacity: 1 !important; transform: none !important; }
}

/* -------------------------------------------------------------------------
   6. HEADER
   ------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 40;
	background-color: var(--color-background);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled,
.site-header.is-menu-open {
	border-bottom-color: color-mix(in srgb, var(--color-foreground) 25%, transparent);
	box-shadow: 0 1px 0 var(--color-border);
}
.site-header.is-menu-open { position: fixed; }

.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4rem;
	transition: height 0.3s ease;
	position: relative;
}
@media (min-width: 1024px) {
	.site-nav { height: 5rem; }
	.site-header.is-scrolled .site-nav { height: 4rem; }
}
.site-header.is-scrolled .site-nav { height: 3.5rem; }

.site-brand { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.site-logo-text {
	font-family: var(--font-display);
	font-size: 22px;
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--color-foreground);
	transition: color 0.2s ease;
}
.site-brand:hover .site-logo-text { color: var(--color-primary); }
.site-tagline-text {
	display: none;
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	padding-bottom: 2px;
}
@media (min-width: 640px) {
	.site-tagline-text { display: inline; }
}
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; }

.site-nav-primary { display: none; }
@media (min-width: 1024px) {
	.site-nav-primary {
		display: flex;
		align-items: center;
		gap: 2.25rem;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
	}
}
.theme-nav-list { display: flex; align-items: center; gap: 2.25rem; }
.theme-nav-link {
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-family: var(--font-body);
	transition: color 0.3s ease;
	cursor: pointer;
}
.theme-nav-link:hover, .theme-nav-link[data-active="true"] { color: var(--color-primary); }

.site-nav-actions { display: flex; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) {
	.site-nav-actions { gap: 0.5rem; }
}
.theme-cart-toggle--desktop,
.theme-cart-toggle--mobile { display: none; }
@media (min-width: 1024px) {
	.theme-cart-toggle--desktop {
		display: inline-flex;
		align-items: center;
		font-size: 13.5px;
		font-weight: 600;
		letter-spacing: 0.2em;
		text-transform: uppercase;
		font-family: var(--font-body);
		position: relative;
		transition: color 0.3s ease;
		cursor: pointer;
	}
	.theme-cart-toggle--desktop:hover { color: var(--color-primary); }
}
@media (max-width: 1023px) {
	.theme-cart-toggle--mobile {
		display: inline-flex;
		align-items: center;
		gap: 0.35rem;
		min-width: 44px;
		min-height: 44px;
		justify-content: center;
		color: var(--color-primary);
		padding: 0 0.5rem;
	}
}
.theme-cart-count {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	display: inline-block;
}
.theme-cart-count--mobile { font-size: 12px; letter-spacing: 0.14em; }

.theme-mobile-menu-toggle {
	display: inline-flex;
	padding: 0.5rem;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}
.theme-mobile-menu-toggle:hover { color: var(--color-primary); }
.theme-mobile-menu-toggle .icon-close { display: none; }
.theme-mobile-menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.theme-mobile-menu-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 1024px) {
	.theme-mobile-menu-toggle { display: none; }
}

.theme-mobile-menu {
	display: none;
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	top: 4rem;
	background-color: var(--color-background);
	z-index: 30;
	border-top: 1px solid var(--color-border);
	overflow-y: auto;
}
.site-header.is-scrolled + .theme-mobile-menu,
.theme-mobile-menu { top: 4rem; }
.site-header.is-scrolled .theme-mobile-menu { top: 3.5rem; }
.theme-mobile-menu.is-open { display: block; }
@media (min-width: 1024px) {
	.theme-mobile-menu { display: none !important; }
}
.theme-mobile-menu-inner {
	padding-block: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.theme-mobile-menu .theme-nav-list {
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
}
.theme-mobile-menu .theme-nav-link {
	font-family: var(--font-display);
	font-size: 1.875rem;
	line-height: 1;
	text-transform: none;
	letter-spacing: -0.01em;
	font-weight: 500;
	padding: 0.5rem 0;
}
.theme-mobile-menu-email { font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-mobile-menu-email:hover { color: var(--color-foreground); }

/* -------------------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------------------- */
.theme-hero {
	position: relative;
	border-bottom: 1px solid var(--color-foreground);
	display: flex;
	flex-direction: column;
}
@media (min-width: 1024px) {
	.theme-hero { height: calc(100svh - 5rem); min-height: 600px; max-height: 860px; }
}
.theme-hero__inner { flex: 1; display: flex; flex-direction: column; padding: 1rem 0; min-height: 0; }
@media (min-width: 1024px) { .theme-hero__inner { padding: 1.25rem 0; } }

.theme-hero__eyebrow-row {
	display: flex; align-items: center; justify-content: space-between;
	font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
	color: var(--color-muted-foreground);
	border-bottom: 1px solid var(--color-border);
	padding-bottom: 0.625rem; margin-bottom: 1rem;
}
@media (min-width: 1024px) { .theme-hero__eyebrow-row { margin-bottom: 1.25rem; } }
.theme-hero__eyebrow-center { display: none; }
@media (min-width: 640px) { .theme-hero__eyebrow-center { display: inline; } }

.theme-hero__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; flex: 1; min-height: 0; }
@media (min-width: 1024px) { .theme-hero__grid { grid-template-columns: repeat(12, 1fr); gap: 2.5rem; } }
.theme-hero__copy { }
@media (min-width: 1024px) { .theme-hero__copy { grid-column: span 6; } }

.theme-hero__title {
	font-size: 38px;
	color: var(--color-foreground);
	margin-top: 0.75rem;
}
@media (min-width: 640px) { .theme-hero__title { font-size: 48px; } }
@media (min-width: 1024px) { .theme-hero__title { font-size: 52px; } }
@media (min-width: 1280px) { .theme-hero__title { font-size: 60px; } }

.theme-hero__subtitle {
	margin-top: 1rem;
	font-size: 15px;
	line-height: 1.7;
	color: color-mix(in srgb, var(--color-foreground) 85%, transparent);
	max-width: 36em;
}
@media (min-width: 1024px) { .theme-hero__subtitle { margin-top: 1.25rem; font-size: 16px; } }

.theme-hero__ctas { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
@media (min-width: 1024px) { .theme-hero__ctas { margin-top: 1.5rem; } }

.theme-hero__shelf-col { width: 100%; min-height: 0; display: flex; align-items: center; }
@media (min-width: 1024px) { .theme-hero__shelf-col { grid-column: span 6; } }
.theme-hero__shelf {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
}
@media (min-width: 640px) { .theme-hero__shelf { gap: 1rem; } }
@media (min-width: 1024px) { .theme-hero__shelf { max-width: 420px; margin-inline: 0 0 0 auto; } }
@media (min-width: 1280px) { .theme-hero__shelf { max-width: 460px; } }

.theme-hero__shelf-item {
	aspect-ratio: 3 / 4;
	border: 1px solid var(--color-border);
	position: relative;
	display: block;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
	transition-delay: var(--stagger-delay, 0s);
}
body.is-customizer .theme-hero__shelf-item,
.theme-hero__shelf-item.is-visible { opacity: 1; transform: translateY(0); }
.theme-hero__shelf-item--offset { transform: translateY(24px) translateY(0.75rem); }
body.is-customizer .theme-hero__shelf-item--offset,
.theme-hero__shelf-item--offset.is-visible { transform: translateY(0.75rem); }
@media (min-width: 640px) {
	.theme-hero__shelf-item--offset { transform: translateY(24px) translateY(1rem); }
	body.is-customizer .theme-hero__shelf-item--offset,
	.theme-hero__shelf-item--offset.is-visible { transform: translateY(1rem); }
}
.theme-hero__shelf-item:hover { transform: translateY(-5px); }
.theme-hero__shelf-item--offset:hover { transform: translateY(0.75rem) translateY(-5px); }

.theme-hero__shelf-img { padding: 0.375rem; transition: opacity 0.5s ease; }
@media (min-width: 640px) { .theme-hero__shelf-img { padding: 0.5rem; } }
.theme-hero__shelf-img--back { opacity: 0; }
.theme-hero__shelf-item:hover .theme-hero__shelf-img--front { opacity: 0; }
.theme-hero__shelf-item:hover .theme-hero__shelf-img--back { opacity: 1; }

/* Publication ribbon */
.theme-ribbon {
	width: 100%;
	background-color: var(--color-foreground);
	color: var(--color-background);
	height: 34px;
	overflow: hidden;
	border-top: 1px solid var(--color-foreground);
	display: flex;
	align-items: center;
}
.theme-ribbon__track { height: 100%; display: flex; align-items: center; }
.theme-ribbon__row { display: flex; flex-shrink: 0; align-items: center; }
.theme-ribbon__item-wrap { display: flex; align-items: center; }
.theme-ribbon__item {
	padding: 0 1.5rem;
	font-size: 11px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-weight: 500;
	color: color-mix(in srgb, var(--color-background) 90%, transparent);
	white-space: nowrap;
}
.theme-ribbon__dot { color: color-mix(in srgb, var(--color-background) 40%, transparent); user-select: none; }

/* -------------------------------------------------------------------------
   8. PRODUCT GRID + CARD (shared across Books / Shop / Related — Section 31.13)
   ------------------------------------------------------------------------- */
.theme-books-section { padding: 3.5rem 0; background-color: var(--color-paper-books); border-bottom: 1px solid var(--color-foreground); }
@media (min-width: 1024px) { .theme-books-section { padding: 5rem 0; } }

.theme-books-header {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}
.theme-books-header .theme-books-rule {
	display: block;
	flex: 0 0 100%;
	width: 100%;
	margin-top: 1rem;
}
.theme-books-header__subtitle { max-width: 24em; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }

.theme-books-heading { font-size: 2.25rem; }
@media (min-width: 640px) { .theme-books-heading { font-size: 3rem; } }

.theme-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem 2.5rem;
	max-width: 980px;
	margin: 0 auto;
	align-items: stretch;
}
@media (min-width: 640px) {
	.theme-product-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2.5rem; }
}
.theme-product-grid--related { max-width: none; }
@media (min-width: 640px) {
	.theme-product-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.theme-shop-empty { text-align: center; padding: 3rem 0; color: var(--color-muted-foreground); }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 2px;
}
.theme-product-card:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 3px;
	border-radius: 2px;
}

.theme-product-card__image-wrapper {
	aspect-ratio: 3 / 4;
	margin-bottom: 1rem;
	transition: box-shadow 0.3s ease, transform 0.2s var(--ease-smooth);
}
.theme-product-card:hover .theme-product-card__image-wrapper {
	box-shadow: 0 10px 24px -18px color-mix(in srgb, var(--color-foreground) 45%, transparent);
	transform: translateY(-5px);
}
@media (hover: none) {
	.theme-product-card:hover .theme-product-card__image-wrapper { transform: none; }
}
.theme-product-card__image { padding: 0.75rem; transition: transform 0.5s ease; }
@media (min-width: 768px) { .theme-product-card__image { padding: 1.25rem; } }
.theme-product-card:hover .theme-product-card__image { transform: scale(1.01); }

.theme-product-card__badge {
	position: absolute;
	bottom: 0.75rem;
	right: 0.75rem;
	background-color: var(--color-foreground);
	color: var(--color-background);
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding: 0.35rem 0.6rem;
	border-radius: 2px;
	z-index: 2;
}

.theme-product-card__info { position: relative; padding-top: 0.75rem; flex: 1; }
.theme-product-card__rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background-color: var(--color-border); }
.theme-product-card__rule-accent {
	position: absolute; left: 0; top: 0; height: 2px; width: 0;
	transition: width 0.5s ease-out;
}
.theme-product-card:hover .theme-product-card__rule-accent { width: 100%; }

.theme-product-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.theme-product-card__text { min-width: 0; }
.theme-product-card__folio { margin-bottom: 0.375rem; transition: color 0.3s ease; }
.theme-product-card:hover .theme-product-card__folio { color: var(--accent, var(--color-foreground)); }
.theme-product-card__title {
	font-size: 20px;
	line-height: 1.2;
	color: var(--color-foreground);
	transition: color 0.2s ease;
}
.theme-product-card:hover .theme-product-card__title { color: var(--accent, var(--color-foreground)); }
.theme-product-card__author { font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); margin-top: 0.25rem; font-style: italic; }

.theme-product-card__meta { flex-shrink: 0; display: flex; align-items: center; gap: 0.5rem; padding-top: 0.25rem; }
.theme-product-card__price { font-size: 16px; font-weight: 500; color: var(--color-foreground); }
.theme-product-card__arrow {
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
	transition: transform 0.2s ease, color 0.2s ease;
}
.theme-product-card:hover .theme-product-card__arrow { transform: translate(3px, -2px); color: var(--accent, var(--color-foreground)); }

/* -------------------------------------------------------------------------
   9. ABOUT SECTION
   ------------------------------------------------------------------------- */
.theme-about-section { padding: 5rem 0; background-color: var(--color-paper-deep); border-top: 1px solid var(--color-foreground); border-bottom: 1px solid var(--color-foreground); }
@media (min-width: 1024px) { .theme-about-section { padding: 7rem 0; } }

.theme-about__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .theme-about__grid { grid-template-columns: repeat(12, 1fr); gap: 4rem; } }
.theme-about__photo-col { display: flex; }
@media (min-width: 1024px) { .theme-about__photo-col { grid-column: span 5; align-items: flex-start; } }
.theme-about__photo {
	width: 100%;
	aspect-ratio: 4 / 5;
	border: 1px solid var(--color-border);
	background-color: var(--color-background);
}
.theme-about__photo-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.theme-about__text-col { display: flex; flex-direction: column; justify-content: space-between; }
@media (min-width: 1024px) { .theme-about__text-col { grid-column: span 7; } }

.theme-about__title {
	font-size: 2.25rem;
	margin-top: 1rem;
	margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .theme-about__title { font-size: 3rem; } }

.theme-about__paragraphs { display: flex; flex-direction: column; gap: 1.25rem; font-size: 17px; line-height: 1.7; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); max-width: 40em; }
.theme-about__pullquote { font-style: italic; font-family: var(--font-display); font-size: 19px; color: var(--color-muted-foreground); }

.theme-about__stats {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}
@media (min-width: 640px) { .theme-about__stats { grid-template-columns: repeat(3, 1fr); } }
.theme-about__stats-rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background-color: var(--color-border); }
.theme-about__stats-rule-accent {
	position: absolute; left: 0; right: 0; top: 0; height: 2px;
	background-color: var(--color-foreground);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.6s var(--transition-smooth);
}
body.is-customizer .theme-about__stats-rule-accent,
.theme-about__stats-rule-accent.is-visible { transform: scaleX(1); }
.theme-about__stat-label { margin-bottom: 0.375rem; }
.theme-about__stat-value { font-family: var(--font-display); font-size: 18px; }

/* -------------------------------------------------------------------------
   10. CONTACT SECTION
   ------------------------------------------------------------------------- */
.theme-contact-section {
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	min-height: 280px;
	display: flex;
	align-items: center;
	padding: 2.5rem 0;
}
@media (min-width: 1024px) { .theme-contact-section { min-height: 340px; padding: 3rem 0; } }
.theme-contact__inner { text-align: center; }
.theme-contact__folio { color: color-mix(in srgb, var(--color-primary-foreground) 75%, transparent); margin-bottom: 0.75rem; }
.theme-contact__title { font-size: 1.875rem; margin-bottom: 0.75rem; color: var(--color-primary-foreground); }
@media (min-width: 640px) { .theme-contact__title { font-size: 2.25rem; } }
.theme-contact__subtitle { font-size: 15px; color: color-mix(in srgb, var(--color-primary-foreground) 85%, transparent); max-width: 32em; margin: 0 auto 1.5rem; line-height: 1.6; }

.theme-contact__ctas { display: grid; grid-template-columns: 1fr; gap: 0.75rem; max-width: 36em; margin: 0 auto; }
@media (min-width: 640px) { .theme-contact__ctas { grid-template-columns: repeat(2, 1fr); } }
.theme-contact__cta {
	display: inline-flex; align-items: center; justify-content: space-between;
	padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em;
	border-radius: var(--radius); transition: background-color 0.2s ease, color 0.2s ease;
}
.theme-contact__cta--email { background-color: var(--color-background); color: var(--color-foreground); }
.theme-contact__cta--email:hover { background-color: var(--color-foreground); color: var(--color-background); }
.theme-contact__cta--linkedin { border: 1px solid var(--color-primary-foreground); color: var(--color-primary-foreground); }
.theme-contact__cta--linkedin:hover { background-color: var(--color-primary-foreground); color: var(--color-primary); }
.theme-contact__cta svg { transition: transform 0.2s ease; }
.theme-contact__cta:hover svg { transform: translateX(3px); }

.theme-contact__social { margin-top: 1.25rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-primary-foreground) 80%, transparent); }
.theme-contact__social-handle { color: var(--color-primary-foreground); font-weight: 500; }

/* -------------------------------------------------------------------------
   11. FOOTER
   ------------------------------------------------------------------------- */
.site-footer { margin-top: 0; background-color: var(--color-paper-toast); border-top: 2px solid var(--color-foreground); }
.theme-footer-inner { padding: 3.5rem 0; }
@media (min-width: 1024px) { .theme-footer-inner { padding: 4rem 0; } }

.theme-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) {
	.theme-footer-grid { grid-template-columns: repeat(12, 1fr); }
	.theme-footer-col--colophon { grid-column: span 5; }
	.theme-footer-col--nav { grid-column: span 3; }
	.theme-footer-col--contact { grid-column: span 4; }
}

.theme-footer-brand { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.theme-footer-brand .site-logo-text { font-size: 32px; }
.theme-footer-brand .site-tagline-text { display: inline; padding-bottom: 3px; }
.theme-footer-bio { margin-top: 1.25rem; font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); max-width: 28em; }

.theme-footer-nav-heading,
.theme-footer-contact-heading { margin-bottom: 1rem; }

.theme-footer-nav-list,
.theme-footer-contact-list {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	font-family: var(--font-body);
	font-size: 16px;
	color: color-mix(in srgb, var(--color-foreground) 85%, transparent);
}
.theme-footer-nav-link { transition: color 0.2s ease; }
.theme-footer-nav-link:hover,
.theme-footer-contact-list a:hover { color: var(--color-primary); }
.theme-footer-mailto { word-break: break-all; }
.theme-footer-muted { color: var(--color-muted-foreground); }

.theme-footer-bottom {
	margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border);
	display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 0.75rem;
}
@media (min-width: 640px) { .theme-footer-bottom { flex-direction: row; align-items: center; } }
.theme-footer-copyright, .theme-footer-credit { font-size: 13px; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); letter-spacing: 0.01em; }
.theme-footer-credit a { text-decoration: underline; }
.theme-footer-credit a:hover { color: var(--color-foreground); }

/* -------------------------------------------------------------------------
   12. CART DRAWER + OVERLAY (Section 12, 31.6)
   ------------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed; inset: 0; background-color: color-mix(in srgb, var(--color-foreground) 40%, transparent);
	z-index: 50; opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease-smooth);
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

.theme-cart-drawer {
	position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem;
	background-color: var(--color-background); z-index: 51;
	box-shadow: var(--shadow-elevated);
	display: flex; flex-direction: column;
	border-left: 2px solid var(--color-foreground);
	transform: translateX(100%);
	transition: transform 0.32s var(--ease-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.25rem 1.5rem; border-bottom: 2px solid var(--color-foreground); }
.theme-cart-drawer__title { font-size: 1.5rem; line-height: 1; }
.theme-cart-drawer__close { padding: 0.5rem; margin-right: -0.5rem; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; transition: color 0.2s ease; }
.theme-cart-drawer__close:hover { color: var(--color-primary); }

.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 1.5rem; text-align: center; }
.theme-cart-drawer__empty-title { font-family: var(--font-display); font-size: 1.875rem; margin-bottom: 0.5rem; line-height: 1.2; }
.theme-cart-drawer__empty-subtitle { font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 2rem; max-width: 20em; }

.theme-cart-drawer__body { flex: 1; overflow: auto; }
.theme-cart-drawer__list { padding: 0 1.5rem; }
.theme-cart-drawer__item { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--color-border); transition: background-color 0.2s ease; }
.theme-cart-drawer__item:hover { background-color: color-mix(in srgb, var(--color-paper-deep) 60%, transparent); }
.theme-cart-drawer__item-image { width: 5rem; height: 7rem; flex-shrink: 0; border: 1px solid var(--color-border); position: relative; overflow: hidden; background-color: var(--color-paper-deep); display: block; }
.theme-cart-drawer__item-image.cover-frame img.cover-img { padding: 0.5rem; }
.theme-cart-drawer__item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.theme-cart-drawer__item-eyebrow { margin-bottom: 0.25rem; }
.theme-cart-drawer__item-title { font-family: var(--font-display); font-size: 17px; line-height: 1.2; display: block; transition: color 0.2s ease; }
.theme-cart-drawer__item-title:hover { color: var(--color-primary); }
.theme-cart-drawer__item-variation { font-size: 12px; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.theme-cart-drawer__item-controls { margin-top: auto; padding-top: 0.75rem; display: flex; align-items: center; gap: 0.75rem; }
.theme-cart-drawer__remove { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); text-decoration: underline; text-underline-offset: 4px; transition: color 0.2s ease; }
.theme-cart-drawer__remove:hover { color: var(--color-foreground); }
.theme-cart-drawer__item-price { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; font-variant-numeric: tabular-nums; }
.theme-cart-drawer__item-unit { font-size: 11px; color: var(--color-muted-foreground); }

.theme-cart-drawer__footer { padding: 1.25rem 1.5rem; border-top: 2px solid var(--color-foreground); background-color: var(--color-paper-deep); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; align-items: baseline; justify-content: space-between; }
.theme-cart-drawer__subtotal-value { font-size: 1.125rem; }
.theme-cart-drawer__shipping-note { font-size: 11px; color: var(--color-muted-foreground); margin-top: -0.5rem; }
.theme-cart-drawer__checkout { width: 100%; padding: 1rem; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; }
.theme-cart-drawer__empty-btn { width: 100%; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-muted-foreground); text-decoration: underline; text-underline-offset: 4px; padding: 0.25rem 0; transition: color 0.2s ease; }
.theme-cart-drawer__empty-btn:hover { color: var(--color-foreground); }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-foreground); border-radius: var(--radius); }
.theme-quantity-wrapper--sm { border-color: var(--color-border); background-color: var(--color-background); }
.theme-qty-minus, .theme-qty-plus { padding: 0.5rem 0.65rem; transition: background-color 0.2s ease, color 0.2s ease; display: inline-flex; align-items: center; justify-content: center; }
.theme-quantity-wrapper--sm .theme-qty-minus, .theme-quantity-wrapper--sm .theme-qty-plus { width: 2.25rem; height: 2.25rem; padding: 0; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-foreground); color: var(--color-background); }
.theme-qty-display { padding: 0 0.75rem; min-width: 2.25rem; text-align: center; font-variant-numeric: tabular-nums; font-size: 0.875rem; }
.theme-qty-input {
	width: 3rem; min-width: 0; text-align: center; border: none; background: transparent;
	padding: 0.75rem 0; font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Hide WooCommerce's injected "View cart" link (Section 11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* -------------------------------------------------------------------------
   13. SINGLE PRODUCT PAGE
   ------------------------------------------------------------------------- */
.single-product-main { padding-top: 0.5rem; padding-bottom: 7rem; background-color: var(--color-background); }
@media (min-width: 1024px) { .single-product-main { padding-bottom: 0; } }

/* Suppress default WooCommerce single-product output if hooks still fire */
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-tabs,
.single-product .related.products:not(.theme-related-products),
.single-product .upsells.products,
.single-product .entry-content > .woocommerce {
	display: none !important;
}

.theme-breadcrumb {
	padding: 1.25rem 0;
	font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-muted-foreground);
	display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--color-border);
}
.theme-breadcrumb a:hover { color: var(--color-foreground); }
.theme-breadcrumb__sep { opacity: 0.5; }
.theme-breadcrumb__current { color: var(--color-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.theme-product-layout {
	display: grid; grid-template-columns: 1fr; gap: 2.5rem;
	padding: 2rem 0 4rem; align-items: start; min-width: 0;
}
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: repeat(12, 1fr); gap: 4rem; padding: 3rem 0 6rem; } }
.theme-product-gallery { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-gallery { grid-column: span 7; } }
.theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-info { grid-column: span 5; position: sticky; top: 6rem; align-self: start; } }

.theme-product-gallery__main { aspect-ratio: 3 / 4; border: 1px solid var(--color-border); position: relative; }
.theme-product-gallery__main img#product-main-img { padding: 1.5rem; transition: opacity 0.25s var(--ease-smooth); }
@media (min-width: 768px) { .theme-product-gallery__main img#product-main-img { padding: 3.5rem; } }
.theme-product-gallery__main img#product-main-img.is-fading { opacity: 0; }
.theme-product-gallery__zoom {
	position: absolute; top: 0.75rem; right: 0.75rem; padding: 0.5rem;
	background-color: color-mix(in srgb, var(--color-background) 90%, transparent);
	border: 1px solid var(--color-border); border-radius: var(--radius);
	opacity: 0; transition: opacity 0.2s ease, background-color 0.2s ease;
	z-index: 2;
}
.theme-product-gallery:hover .theme-product-gallery__zoom,
.theme-product-gallery__zoom:focus-visible { opacity: 1; }
.theme-product-gallery__zoom:hover { background-color: var(--color-background); }

.theme-product-thumbnails { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; max-width: 100%; }
.theme-product-thumbnail {
	position: relative; width: 6rem; height: 8rem; flex-shrink: 0;
	background-color: var(--color-paper-deep); overflow: hidden;
	border: 1px solid var(--color-border); opacity: 0.75; transition: opacity 0.2s ease, border-color 0.2s ease;
}
.theme-product-thumbnail.is-active { opacity: 1; border-color: var(--accent, var(--color-primary)); }
.theme-product-thumbnail img { width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; }
.theme-product-thumbnail::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px;
	background-color: var(--accent, var(--color-primary)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.theme-product-thumbnail.is-active::after { transform: scaleX(1); }

.theme-product-info__eyebrow { margin-bottom: 1rem; color: var(--accent, var(--color-muted-foreground)); }
.theme-product-info__eyebrow a { color: inherit; text-decoration: underline; }
.theme-product-info__title { font-size: 36px; max-width: 16ch; color: var(--color-foreground); }
@media (min-width: 640px) { .theme-product-info__title { font-size: 44px; } }
@media (min-width: 1024px) { .theme-product-info__title { font-size: 52px; } }
.theme-product-info__author { margin-top: 0.75rem; font-size: 17px; font-style: italic; font-family: var(--font-display); color: var(--color-muted-foreground); }

.theme-product-info__rule {
	display: block; margin-top: 1.5rem; height: 2px; width: 100%;
	background-color: var(--accent, var(--color-primary));
	transform-origin: left; transform: scaleX(1);
}

.theme-product-info__description { margin-top: 2rem; font-size: 16px; line-height: 1.7; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); max-width: 54ch; overflow-wrap: break-word; word-break: break-word; }
.theme-product-info__description p + p { margin-top: 1rem; }

.theme-product-info__purchase { margin-top: 2.5rem; border-top: 1px solid var(--color-border); padding-top: 2rem; }
.theme-product-info__price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; }
.theme-product-info__price,
.theme-product-info__price .amount,
.theme-product-info__price .woocommerce-Price-amount,
.theme-product-info__price bdi,
.theme-product-info__price ins,
.theme-product-info__price ins .amount,
.single-product-main .woocommerce-variation-price .price,
.single-product-main .woocommerce-variation-price .amount,
.single-product-main .woocommerce-variation-price .woocommerce-Price-amount,
.single-product-main .woocommerce-variation-price bdi {
	font-size: 28px;
	color: var(--color-foreground) !important;
	font-weight: 500;
	text-decoration: none;
}
.theme-product-info__price del,
.theme-product-info__price del .amount {
	color: var(--color-muted-foreground) !important;
	font-size: 20px;
	opacity: 0.7;
}
.theme-product-info__price-note { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-muted-foreground); }

.theme-stock-indicator--out { font-size: 13px; color: var(--color-destructive); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

.theme-add-to-cart-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.75rem; }

/* Single product add-to-cart — Lovable btn-cobalt parity (override WC .button) */
.single-product-main .theme-add-to-cart-area .theme-variation-add-btn,
.single-product-main .theme-add-to-cart-area .single_add_to_cart_button,
.single-product-main .theme-add-to-cart-area a.add_to_cart_button,
.single-product-main .theme-add-to-cart-area .btn-cobalt {
	flex: 1 1 auto !important;
	min-width: 160px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0.75rem 1.5rem !important;
	min-height: auto !important;
	height: auto !important;
	background-color: var(--color-primary) !important;
	background-image: none !important;
	color: var(--color-primary-foreground) !important;
	border: none !important;
	border-radius: var(--radius) !important;
	font-family: var(--font-body) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
	cursor: pointer !important;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: background-color 0.2s ease, opacity 0.2s ease !important;
}
.single-product-main .theme-add-to-cart-area .theme-variation-add-btn:hover,
.single-product-main .theme-add-to-cart-area .single_add_to_cart_button:hover,
.single-product-main .theme-add-to-cart-area a.add_to_cart_button:hover,
.single-product-main .theme-add-to-cart-area .btn-cobalt:hover {
	background-color: color-mix(in srgb, var(--color-primary) 90%, transparent) !important;
	color: var(--color-primary-foreground) !important;
	opacity: 1 !important;
}
.single-product-main .theme-add-to-cart-area .theme-variation-add-btn:disabled,
.single-product-main .theme-add-to-cart-area .theme-variation-add-btn.disabled,
.single-product-main .theme-add-to-cart-area .single_add_to_cart_button.disabled {
	opacity: 0.6 !important;
	cursor: not-allowed !important;
	pointer-events: none !important;
}
.single-product-main .theme-add-to-cart-area .button.alt,
.single-product-main .theme-add-to-cart-area .button {
	background-image: none !important;
}

.theme-product-info__details { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--color-border); overflow-wrap: break-word; word-break: break-word; }
.theme-product-info__details-list { margin-top: 0.75rem; font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.theme-product-info__details-item { display: flex; align-items: baseline; gap: 0.75rem; }
.theme-product-info__details-num { color: var(--color-muted-foreground); font-family: var(--font-body); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 0.125rem; flex-shrink: 0; }
.theme-product-info__details-list p + p { margin-top: 0.5rem; }

.theme-related-products { padding: 2rem 0 6rem; border-top: 1px solid var(--color-foreground); }
.theme-related-products__header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin: 2.5rem 0; }
.theme-related-products__heading { font-size: 1.875rem; }
@media (min-width: 640px) { .theme-related-products__heading { font-size: 2.25rem; } }
.theme-related-products__viewall { font-size: 0.875rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.theme-related-products__viewall svg { transition: transform 0.2s ease; }
.theme-related-products__viewall:hover svg { transform: translateX(3px); }

.theme-sticky-purchase-bar {
	display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
	background-color: var(--color-background); border-top: 1px solid var(--color-foreground);
}
@media (min-width: 1024px) { .theme-sticky-purchase-bar { display: none; } }
.theme-sticky-purchase-bar__inner { padding: 0.75rem 0; display: flex; align-items: center; gap: 0.75rem; }
.theme-sticky-purchase-bar__text { min-width: 0; }
.theme-sticky-purchase-bar__name { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-sticky-purchase-bar__price { font-size: 17px; }
.theme-sticky-purchase-bar__btn { margin-left: auto; padding: 0.75rem 1.25rem; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; flex-shrink: 0; }

.theme-zoom-overlay {
	display: none; position: fixed; inset: 0; z-index: 60;
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
	align-items: center; justify-content: center; padding: 1rem;
}
.theme-zoom-overlay.is-open { display: flex; }
.theme-zoom-overlay__close {
	position: absolute; top: 1.5rem; right: 1.5rem; padding: 0.5rem;
	border: 1px solid var(--color-foreground); border-radius: var(--radius);
	transition: background-color 0.2s ease, color 0.2s ease;
}
.theme-zoom-overlay__close:hover { background-color: var(--color-foreground); color: var(--color-background); }
.theme-zoom-overlay__img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* -------------------------------------------------------------------------
   14. WOOCOMMERCE — GLOBAL 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-primary-foreground) !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-primary-foreground) !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.button,
.single-product a.single_add_to_cart_button {
	font-size: 13px !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase !important;
	padding-top: 0.75rem !important;
	padding-bottom: 0.75rem !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { 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-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted-foreground); }
.single-product .variations tbody td.value { padding-top: 0; padding-bottom: 1rem; }
.single-product .variations select {
	width: 100%; padding: 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius);
	background-color: var(--color-background); font-family: var(--font-body); font-size: 15px;
	color: var(--color-foreground) !important;
}
.single-product-main .woocommerce-variation.single_variation { margin-bottom: 0.75rem; }
.single-product-main .woocommerce-variation-price .price { margin: 0; }
.single-product-main p.price,
.woocommerce div.product .single-product-main p.price {
	color: var(--color-foreground) !important;
}
.theme-sticky-purchase-bar__price,
.theme-sticky-purchase-bar__price .amount,
.theme-sticky-purchase-bar__price .woocommerce-Price-amount {
	color: var(--color-foreground) !important;
}
/* WooCommerce notices — scoped visibility (Section 14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	font-family: var(--font-body); font-size: 14px; border-radius: var(--radius);
	padding: 1rem 1.25rem; margin-bottom: 1.5rem; list-style: none; border-left: 3px solid var(--color-primary);
	background-color: var(--color-paper-deep); color: var(--color-foreground);
}
.woocommerce-error { border-left-color: var(--color-destructive); }

/* -------------------------------------------------------------------------
   15. WOOCOMMERCE — SHOP ARCHIVE PARITY
   ------------------------------------------------------------------------- */
.theme-shop-archive { padding-top: 1rem; }
.theme-shop-archive .theme-books-heading { font-size: 2.25rem; }

/* -------------------------------------------------------------------------
   16. WOOCOMMERCE — CHECKOUT / CART BLOCKS (Section 13)
   ------------------------------------------------------------------------- */
.theme-page-main { padding: 1rem 0 4rem; }
@media (min-width: 1024px) { .theme-page-main { padding: 2rem 0 4rem; } }
.page-title { font-size: 2.25rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .page-title { font-size: 3rem; } }

body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-top: var(--header-height, 80px);
	padding-bottom: 4rem;
}

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-cart .wc-block-cart {
	font-family: var(--font-body);
	color: var(--color-foreground);
	max-width: 100%;
	min-width: 0;
}

body.woocommerce-checkout .wc-block-checkout {
	display: block;
}

/* Stack checkout until lg; summary first on mobile/tablet (Lovable order) */
body.woocommerce-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout__main-and-sidebar {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	align-items: stretch;
}
body.woocommerce-checkout .wc-block-checkout__sidebar { order: 1; }
body.woocommerce-checkout .wc-block-checkout__main { order: 2; }

@media (min-width: 1024px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
	body.woocommerce-checkout .wc-block-checkout__main-and-sidebar {
		display: grid;
		grid-template-columns: 7fr 5fr;
		gap: 4rem;
		align-items: start;
	}
	body.woocommerce-checkout .wc-block-checkout__sidebar { order: 2; }
	body.woocommerce-checkout .wc-block-checkout__main { order: 1; }
}

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-checkout__sidebar {
	background-color: var(--color-paper-deep);
	border: 1px solid var(--color-foreground);
	border-radius: var(--radius);
	padding: 1.5rem 1.5rem 0;
}
@media (min-width: 640px) {
	body.woocommerce-checkout .wc-block-checkout__sidebar {
		padding: 2rem 2rem 0;
	}
}
body.woocommerce-checkout .wc-block-checkout__main {
	border: 1px solid var(--color-border);
	background-color: var(--color-background);
	border-radius: var(--radius);
	padding: 1.5rem;
}
@media (min-width: 640px) {
	body.woocommerce-checkout .wc-block-checkout__main {
		padding: 2.5rem;
	}
}

/* Cart page — single column until lg */
body.woocommerce-cart .wc-block-components-sidebar-layout {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	max-width: 100%;
}
body.woocommerce-cart .wc-block-cart__main { order: 2; }
body.woocommerce-cart .wc-block-cart__sidebar { order: 1; }
@media (min-width: 1024px) {
	body.woocommerce-cart .wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
	}
	body.woocommerce-cart .wc-block-cart__main { order: 1; }
	body.woocommerce-cart .wc-block-cart__sidebar { order: 2; }
}
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-select label,
body.woocommerce-checkout .wc-block-components-textarea label,
body.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__label {
	display: block !important;
	font-family: var(--font-body) !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase !important;
	color: var(--color-muted-foreground) !important;
	margin-bottom: 0.375rem !important;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body) !important;
	font-size: 15px !important;
	color: var(--color-foreground) !important;
	border: 1px solid var(--color-border) !important;
	border-radius: var(--radius) !important;
	background-color: var(--color-background) !important;
	transition: border-color 0.2s ease, color 0.2s ease !important;
	box-shadow: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus {
	outline: none !important;
	border-color: var(--color-primary) !important;
	box-shadow: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
	color: var(--color-muted-foreground) !important;
	opacity: 1 !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: var(--radius) !important;
	font-family: var(--font-body) !important;
	text-transform: none !important;
	letter-spacing: 0.01em;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	opacity: 0.85;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--radius);
	font-family: var(--font-body);
	grid-column: 1 / -1;
}

/* -------------------------------------------------------------------------
   17. WOOCOMMERCE — 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 {
	font-family: var(--font-body);
	color: var(--color-foreground);
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	font-size: 1.75rem;
	padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 0; margin-bottom: 2rem;
	border-bottom: 1px solid var(--color-border); padding-bottom: 1.5rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
	list-style: none; font-size: 13px; letter-spacing: 0.02em;
}
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 2rem;
}
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; }

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);
	padding: 1.25rem; border-radius: var(--radius); font-style: normal;
}

/* -------------------------------------------------------------------------
   18. RESPONSIVE / MOBILE-TABLET PARITY (Lovable)
   ------------------------------------------------------------------------- */

/* Keep block content inside container gutters */
.theme-page-container,
.theme-page-container .entry-content {
	min-width: 0;
	max-width: 100%;
}

.theme-page-container .entry-content > *,
.theme-page-container .wc-block-checkout,
.theme-page-container .wc-block-cart {
	max-width: 100%;
	min-width: 0;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout,
body.woocommerce-cart .wc-block-components-sidebar-layout {
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

/* 404 */
.theme-404-main { padding: 2.5rem 0 4rem; min-height: 50vh; }
.theme-404-inner { text-align: center; padding-block: 5rem; }
.theme-404-title { font-size: 2.25rem; margin: 0.75rem 0 1rem; }
@media (min-width: 640px) { .theme-404-title { font-size: 2.5rem; } }
.theme-404-subtitle { color: var(--color-muted-foreground); margin-bottom: 2rem; max-width: 28em; margin-inline: auto; }

/* WooCommerce pagination stays inside container gutters */
.woocommerce-pagination {
	max-width: 100%;
	overflow-x: auto;
}

@media (hover: none) {
	.no-hover-lift:hover { transform: none !important; }
}
