/*
 * Signature Corey theme stylesheet.
 * All visual styling for the theme AND for WooCommerce templates lives here
 * (Section 10) — WooCommerce .php templates contain no styling markup.
 */

/* ---------------------------------------------------------------------
 * 1. DESIGN TOKENS
 * ------------------------------------------------------------------- */
:root {
	--color-background: #faf8f4;
	--color-foreground: #2c211c;
	--color-primary: #cc2a1e;
	--color-primary-foreground: #fcfaf8;
	--color-rosa: #ba261c;
	--color-teal: #4f7b32;
	--color-marigold: #df8e16;
	--color-butter: #f2ece3;
	--color-border: #d8d1cb;
	--color-muted-foreground: #61544c;
	--color-surface-deep: #2d211a;
	--color-surface-deep-foreground: #f5f1eb;
	--color-button-text: var(--color-primary-foreground);

	--color-secondary: color-mix(in srgb, var(--color-butter) 100%, transparent);
	--color-card: color-mix(in srgb, var(--color-butter) 55%, var(--color-background) 45%);
	--color-accent: var(--color-teal);
	--color-destructive: #c32222;

	--font-display: 'Fraunces', serif;
	--font-body: 'Inter', sans-serif;

	--radius: 0.75rem;
	--shadow-soft: 0 4px 20px -4px rgb(44 33 28 / 0.10);
	--shadow-elevated: 0 8px 40px -8px rgb(44 33 28 / 0.22);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

	--logo-height: 56px;
	--header-height: 80px;

	--btn-radius: 999px;
	--btn-height: 3rem;
	--btn-padding: 0.9rem 2rem;
	--btn-font-size: 0.72rem;
	--btn-font-weight: 500;
	--btn-letter-spacing: 0.22em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0.5rem;
	--card-radius: 1rem;
	--section-padding: 2rem;
	--checkout-gap: 3rem;
}

/* ---------------------------------------------------------------------
 * 2. RESET & BASE
 * ------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	margin: 0;
	line-height: 1.5;
}

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

img:not(.cover-img):not(.theme-product-gallery__main-img):not(.theme-product-card__img):not(.theme-cart-drawer__item-image img) {
	max-width: 100%;
	height: auto;
}
.cover-img,
.theme-product-gallery__main-img,
.theme-product-card__img,
.theme-gallery-img,
.theme-cart-drawer__item-image img {
	height: 100%;
}
.cover-img,
.theme-product-gallery__main-img {
	position: absolute;
	inset: 0;
	width: 100%;
	object-fit: cover;
}
.theme-product-card__image-wrapper {
	position: relative;
}
.theme-product-card__image-wrapper .theme-product-card__img,
.theme-product-card__image-wrapper img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.theme-cart-drawer__item-image {
	position: relative;
}
.theme-cart-drawer__item-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	object-fit: cover;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	letter-spacing: -0.015em;
	font-weight: inherit;
	font-size: inherit;
	margin: 0;
}

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

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

.theme-hairline {
	height: 1px;
	width: 100%;
	background: color-mix(in srgb, var(--color-border) 70%, transparent);
}

.theme-section-pad-lg { padding-top: 3rem; padding-bottom: 3rem; }
.theme-section-pad-xl { padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 768px) {
	.theme-section-pad-lg { padding-top: 4rem; padding-bottom: 4rem; }
	.theme-section-pad-xl { padding-top: 5rem; padding-bottom: 5rem; }
}

.scroll-mt { scroll-margin-top: 6rem; }
.theme-bg-butter { background: var(--color-butter); }
.theme-bg-surface-deep { background: var(--color-surface-deep); color: var(--color-surface-deep-foreground); }

/* ---------------------------------------------------------------------
 * 3. TYPOGRAPHY PARITY — per-section heading scales (Section 2.2)
 * ------------------------------------------------------------------- */
.section-heading { font-weight: 400; line-height: 1.05; }
.theme-eyebrow {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-family: var(--font-body);
	margin-bottom: 0.75rem;
}
.theme-eyebrow--teal { color: var(--color-teal); }
.theme-eyebrow--marigold { color: var(--color-marigold); }
.theme-eyebrow--bold { font-weight: 600; }
.theme-eyebrow--spacious { margin-bottom: 1.25rem; }
.theme-services-head .theme-eyebrow { margin-bottom: 1rem; }
.theme-icon-inline { display: inline; vertical-align: -2px; margin-right: 0.4rem; }

.theme-section-head { text-align: center; margin-bottom: 2.5rem; }
.category-section-heading { font-size: 1.875rem; }
.featured-section-heading { font-size: 1.875rem; line-height: 1.2; }
.about-section-heading { font-size: 1.875rem; font-weight: 600; line-height: 1.2; margin-bottom: 2rem; }
.owner-section-heading { font-size: 2.25rem; line-height: 1.2; margin-bottom: 1.75rem; }
.services-section-heading { font-size: 2.5rem; letter-spacing: -0.02em; line-height: 1.05; }
.community-section-heading { font-size: 2.5rem; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 1.5rem; }
.gallery-section-heading { font-size: 1.875rem; letter-spacing: -0.02em; line-height: 1.05; }
.shop-heading { font-size: 1.875rem; margin-bottom: 2.5rem; }
.cta-band__title { font-size: 1.875rem; line-height: 1.2; margin-bottom: 1.5rem; }
.related-products-heading { font-size: 1.875rem; }

@media (min-width: 768px) {
	.category-section-heading { font-size: 2.25rem; }
	.featured-section-heading { font-size: 3rem; }
	.about-section-heading { font-size: 2.25rem; }
	.owner-section-heading { font-size: 3rem; }
	.services-section-heading { font-size: 3.75rem; }
	.community-section-heading { font-size: 3rem; }
	.gallery-section-heading { font-size: 3rem; }
	.shop-heading { font-size: 3rem; }
	.cta-band__title { font-size: 3rem; }
	.related-products-heading { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
	.services-section-heading { font-size: 4.5rem; }
	.community-section-heading { font-size: 3.75rem; }
	.gallery-section-heading { font-size: 3.75rem; }
	.owner-section-heading { font-size: 3.75rem; }
	.cta-band__title { font-size: 3.75rem; }
}

.theme-accent-primary { color: var(--color-primary); }
.theme-accent-rosa { color: var(--color-rosa); }
.theme-accent-teal { color: var(--color-teal); }
.theme-accent-marigold { color: var(--color-marigold); }
.theme-accent-border-primary { border-color: color-mix(in srgb, var(--color-primary) 40%, transparent); }
.theme-accent-border-rosa { border-color: color-mix(in srgb, var(--color-rosa) 40%, transparent); }
.theme-accent-border-marigold { border-color: color-mix(in srgb, var(--color-marigold) 50%, transparent); }
.theme-accent-border-teal { border-color: color-mix(in srgb, var(--color-teal) 40%, transparent); }

/* ---------------------------------------------------------------------
 * 4. BUTTONS & LINKS
 * ------------------------------------------------------------------- */
.theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-display);
	font-size: var(--btn-font-size);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	font-weight: var(--btn-font-weight);
	padding: var(--btn-padding);
	border-radius: 0;
	transition: opacity 0.2s ease, background-color 0.2s ease;
	cursor: pointer;
}
.theme-btn-hero,
.theme-btn-primary { text-transform: none; }
.theme-btn-hero {
	background: var(--color-background);
	color: var(--color-foreground);
	padding: 1.25rem 3rem;
	font-size: 0.6875rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-weight: 500;
}
.theme-btn-hero:hover { background: color-mix(in srgb, var(--color-background) 90%, transparent); }
.theme-btn-dark {
	background: var(--color-foreground);
	color: var(--color-background);
	padding: 1rem 2.25rem;
	font-size: 0.6875rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}
.theme-btn-dark:hover { opacity: 0.9; }
.theme-btn-primary { background: var(--color-foreground); color: var(--color-background); border-radius: 999px; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.2em; }
.theme-btn-primary:hover { opacity: 0.9; }
.theme-btn-accent {
	background: var(--color-primary);
	color: var(--color-primary-foreground);
	border-radius: 0.375rem;
	text-transform: none;
	letter-spacing: normal;
	font-family: var(--font-display);
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.5rem 2rem;
}
.theme-btn-accent:hover { background: color-mix(in srgb, var(--color-primary) 90%, transparent); }
.theme-btn-lg { min-height: 2.75rem; padding: 0.5rem 2rem; }
.theme-btn-sm { min-height: 2.25rem; padding: 0.375rem 0.75rem; font-size: 0.875rem; }
.theme-btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-foreground); border-radius: 999px; text-transform: none; letter-spacing: normal; font-family: var(--font-body); font-size: 0.875rem; padding: 0.6rem 1.25rem; }
.theme-btn-outline:hover { background: var(--color-secondary); }
.theme-cart-drawer__footer .theme-btn-outline {
	border-radius: 0.375rem;
	font-size: 0.875rem;
	padding: 0.375rem 0.75rem;
}
.theme-btn-block { width: 100%; }

.theme-link-underline {
	position: relative;
	display: inline-block;
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-family: var(--font-body);
}
.theme-link-underline--display { font-family: var(--font-display); font-weight: 500; letter-spacing: 0.28em; }
.theme-link-underline::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0;
	width: 100%; height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.theme-link-underline:hover::after { transform: scaleX(1); }

/* ---------------------------------------------------------------------
 * 5. ANIMATIONS (Section 2.1) — ported verbatim + scroll reveal system
 * ------------------------------------------------------------------- */
@keyframes themeFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes themeSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: themeFadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: themeSlideUp 0.6s var(--transition-smooth) forwards; }

.reveal-item {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s cubic-bezier(0.25, 0.4, 0.25, 1), transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
	transition-delay: calc(var(--reveal-delay, 0) * 1ms);
}
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

/* Customizer preview fallback — reveal content MUST be visible while editing. */
body.is-customizer .reveal-item,
.theme-no-js .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item { transition: none !important; opacity: 1 !important; transform: none !important; }
	.animate-fade-in, .animate-slide-up { animation: none !important; }
}

/* tailwindcss-animate style utilities used by the contact modal (Radix Dialog parity) */
@keyframes themeFadeInZoom { from { opacity: 0; transform: translate(-50%, -48%) scale(0.95); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes themeFadeOutZoom { from { opacity: 1; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, -48%) scale(0.95); } }
@keyframes themeOverlayFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes themeOverlayFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ---------------------------------------------------------------------
 * 6. ANNOUNCEMENT BAR
 * ------------------------------------------------------------------- */
.theme-announcement-bar {
	position: relative;
	background: var(--color-foreground);
	color: var(--color-background);
}
.theme-announcement-inner { padding: 0.5rem 1.5rem; text-align: center; }
.theme-announcement-text {
	font-size: 0.8125rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-family: var(--font-body);
}
.theme-announcement-dismiss {
	position: absolute;
	right: 0.75rem; top: 50%;
	transform: translateY(-50%);
	padding: 0.25rem;
	opacity: 0.7;
	transition: opacity 0.2s;
}
.theme-announcement-dismiss:hover { opacity: 1; }
.theme-announcement-bar.is-dismissed { display: none; }

/* ---------------------------------------------------------------------
 * 7. HEADER
 * ------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0; left: 0; right: 0;
	z-index: 50;
	background: var(--color-background);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled,
.site-header.menu-open {
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(6px);
	border-bottom-color: var(--color-border);
}
.site-header__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 5rem;
	position: relative;
}
.site-header__brand { display: flex; align-items: center; gap: 0.75rem; }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; }
.site-logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; display: block; }
.site-header__brand-text { display: none; flex-direction: column; line-height: 1; }
@media (min-width: 640px) { .site-header__brand-text { display: flex; } }
.site-header__brand-line { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; }
@media (min-width: 768px) { .site-header__brand-line { font-size: 1.125rem; } }
.site-header__brand-line em { font-style: italic; font-weight: 300; color: var(--color-teal); }
.site-header__brand-sub { font-size: 0.625rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-body); margin-top: 0.15rem; display: block; }

.site-header__nav-center { display: none; align-items: center; gap: 2rem; position: absolute; left: 50%; transform: translateX(-50%); }
@media (min-width: 1024px) { .site-header__nav-center { display: flex; } }
.theme-nav-list { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.theme-nav-link {
	font-family: var(--font-display);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	position: relative;
	transition: color 0.3s;
}
.theme-nav-link::after {
	content: '';
	position: absolute;
	bottom: -4px; left: 0; width: 100%; height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-link:hover::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.site-header__icon-btn {
	position: relative;
	padding: 0.5rem;
	display: inline-flex;
	transition: opacity 0.2s;
}
.site-header__icon-btn:hover { opacity: 0.6; }
.theme-search-trigger { display: none; }
@media (min-width: 768px) { .theme-search-trigger { display: inline-flex; } }
.site-header__menu-toggle { display: inline-flex; }
@media (min-width: 1024px) { .site-header__menu-toggle { display: none; } }
.icon-menu-close { display: none; }
.site-header__menu-toggle[aria-expanded="true"] .icon-menu-open { display: none; }
.site-header__menu-toggle[aria-expanded="true"] .icon-menu-close { display: block; }

.theme-cart-count {
	position: absolute;
	top: -2px; right: -2px;
	min-width: 1.25rem; height: 1.25rem;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 0.75rem; font-weight: 500;
	background: var(--color-primary); color: var(--color-primary-foreground);
	border-radius: 999px;
	padding: 0 0.25rem;
}
.theme-cart-count:empty { display: none; }

.site-header__mobile-menu {
	display: none;
	border-top: 1px solid var(--color-border);
	padding: 1rem 0;
}
.site-header__mobile-menu.is-open { display: block; }
@media (min-width: 1024px) { .site-header__mobile-menu { display: none !important; } }
.site-header__mobile-menu-inner {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.site-header__mobile-menu ul,
.site-header__mobile-menu .theme-nav-list,
.site-header__mobile-menu .theme-nav-list--mobile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	width: 100%;
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-header__mobile-menu li {
	width: 100%;
}
.site-header__mobile-menu .theme-nav-link {
	display: block;
	width: 100%;
	text-align: left;
	font-size: 0.875rem;
	letter-spacing: 0.18em;
	padding: 0.5rem 0;
}
.site-header__mobile-menu .theme-nav-link::after { display: none; }
.site-header__mobile-menu .theme-nav-link:hover { color: var(--color-muted-foreground); }

/* ---------------------------------------------------------------------
 * 8. HERO
 * ------------------------------------------------------------------- */
.theme-hero__media {
	position: relative;
	width: 100%;
	height: 78vh;
	min-height: 560px;
	overflow: hidden;
}
@media (min-width: 768px) { .theme-hero__media { height: 88vh; min-height: 680px; } }
.theme-hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom,
		color-mix(in srgb, var(--color-foreground) 40%, transparent),
		color-mix(in srgb, var(--color-foreground) 50%, transparent),
		color-mix(in srgb, var(--color-foreground) 40%, transparent));
}
.theme-hero__content { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.theme-hero__inner { max-width: 42rem; text-align: center; }
.theme-hero__title {
	font-size: 3rem; line-height: 1.05; font-weight: 400;
	color: var(--color-background);
	margin-bottom: 1.5rem;
	max-width: 42rem; margin-left: auto; margin-right: auto;
}
@media (min-width: 768px) { .theme-hero__title { font-size: 3.75rem; } }
@media (min-width: 1280px) { .theme-hero__title { font-size: 4.5rem; } }
.theme-hero__subtitle {
	color: color-mix(in srgb, var(--color-background) 90%, transparent);
	font-size: 1rem; line-height: 1.7;
	margin-bottom: 2.5rem;
	max-width: 36rem; margin-left: auto; margin-right: auto;
}
@media (min-width: 768px) { .theme-hero__subtitle { font-size: 1.125rem; } }
.theme-hero__cta { display: flex; justify-content: center; }

/* ---------------------------------------------------------------------
 * 9. CATEGORY TILES
 * ------------------------------------------------------------------- */
.theme-category-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}
@media (min-width: 768px) { .theme-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.theme-category-tile {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
}
.theme-category-tile__image { transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1); }
.theme-category-tile:hover .theme-category-tile__image { transform: scale(1.05); }
.theme-category-tile__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to top,
		color-mix(in srgb, var(--color-foreground) 85%, transparent),
		color-mix(in srgb, var(--color-foreground) 40%, transparent),
		color-mix(in srgb, var(--color-foreground) 10%, transparent));
	transition: background 0.5s;
}
.theme-category-tile:hover .theme-category-tile__overlay {
	background: linear-gradient(to top,
		color-mix(in srgb, var(--color-foreground) 90%, transparent),
		color-mix(in srgb, var(--color-foreground) 40%, transparent),
		color-mix(in srgb, var(--color-foreground) 10%, transparent));
}
.theme-category-tile__content {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 1.5rem;
	text-align: left;
	color: var(--color-background);
	text-shadow: 0 1px 8px rgb(0 0 0 / 0.45);
}
@media (min-width: 768px) { .theme-category-tile__content { padding: 1.75rem; } }
.theme-category-tile__tagline {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase;
	margin-bottom: 0.5rem; filter: brightness(1.5);
}
.theme-tagline-rule { height: 1px; width: 1.5rem; background: currentColor; }
.theme-category-tile__label { font-size: 1.5rem; font-weight: 400; margin-bottom: 0.5rem; color: var(--color-background); }
@media (min-width: 768px) { .theme-category-tile__label { font-size: 1.875rem; } }
.theme-category-tile__link { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; }

/* ---------------------------------------------------------------------
 * 10. PRODUCT GRID / CARDS (shared everywhere — Section 31.9 & 31.13)
 * ------------------------------------------------------------------- */
.theme-product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: stretch;
}
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }

.theme-featured-products .theme-product-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); max-width: 64rem; margin: 0 auto; }
@media (min-width: 768px) { .theme-featured-products .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
@media (min-width: 1024px) { .theme-featured-products .theme-product-grid { gap: 3rem; } }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-shop-card--extra { display: none; }
.theme-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-product-card:hover { transform: translateY(-4px); }
.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--color-secondary);
	margin-bottom: 1.25rem;
}
.theme-product-card__image-wrapper .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
}
.theme-product-card:hover .theme-product-card__image-wrapper img,
.theme-product-card:hover .theme-product-card__image-wrapper .theme-product-card__img { transform: scale(1.04); }
.theme-product-card__image-wrapper img,
.theme-product-card__image-wrapper .theme-product-card__img {
	transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-badge {
	position: absolute;
	top: 0.75rem; left: 0.75rem;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem; font-weight: 500;
	text-transform: uppercase; letter-spacing: 0.18em;
	border-radius: 999px;
	z-index: 1;
}
.theme-badge--soldout { background: var(--color-foreground); color: var(--color-background); }
.theme-badge--comingsoon {
	position: absolute; inset: 0; margin: auto; left: 0; right: 0; top: 0; bottom: 0;
	width: max-content; height: max-content;
	background: var(--color-teal); color: var(--color-background);
	text-align: center; white-space: nowrap;
	padding: 0.5rem 1rem;
}
.theme-coming-soon-overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-background) 70%, transparent); z-index: 1; }

.theme-quick-add {
	position: absolute;
	bottom: 0.75rem; right: 0.75rem;
	z-index: 4;
	width: 2.5rem; height: 2.5rem;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--color-background);
	color: var(--color-foreground);
	box-shadow: var(--shadow-soft);
	opacity: 0;
	transition: opacity 0.3s, transform 0.2s;
	pointer-events: auto;
}
.theme-product-card:hover .theme-quick-add,
.theme-product-card:focus-within .theme-quick-add { opacity: 1; }
.theme-quick-add:hover { transform: scale(1.08); }
.theme-quick-add:active { transform: scale(0.92); }
@media (max-width: 767px) { .theme-quick-add { opacity: 1; } }

.theme-product-card__info { flex: 1; text-align: center; margin-top: 1rem; }
.theme-product-card__title-link {
	font-family: var(--font-body);
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	text-transform: inherit;
	letter-spacing: inherit;
	transition: color 0.3s;
}
.theme-product-card:hover .theme-product-card__title-link { color: var(--color-primary); }
.theme-product-card__title {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	line-height: 1.4;
	transition: color 0.3s;
}
@media (min-width: 768px) { .theme-product-card__title { font-size: 1rem; } }
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { font-family: var(--font-body); font-size: 1rem; margin-top: 0.5rem; color: var(--color-foreground); font-weight: 400; }
@media (min-width: 768px) { .theme-product-card__price { font-size: 1.125rem; } }
.theme-product-card__price .woocommerce-Price-amount { font-family: var(--font-body); }

/* Card compact add-to-cart button — overrides global button rules (Section 11.4.1). */
.theme-product-card .theme-quick-add,
.theme-product-card .add_to_cart_button.ajax_add_to_cart.theme-quick-add {
	position: absolute !important;
	top: auto !important;
	left: auto !important;
	bottom: 0.75rem !important;
	right: 0.75rem !important;
	z-index: 4 !important;
	width: 2.5rem !important;
	height: 2.5rem !important;
	min-height: unset !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	background: var(--color-background) !important;
	color: var(--color-foreground) !important;
	box-shadow: var(--shadow-soft) !important;
	font-size: 0 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 0 !important;
}
.theme-product-card .theme-quick-add svg,
.theme-product-card .theme-quick-add .theme-icon {
	display: block !important;
	width: 1rem !important;
	height: 1rem !important;
	flex-shrink: 0 !important;
	margin: 0 !important;
	pointer-events: none !important;
}
.theme-product-card .theme-quick-add:hover,
.theme-product-card .add_to_cart_button.ajax_add_to_cart.theme-quick-add:hover {
	background: var(--color-background) !important;
	color: var(--color-foreground) !important;
	opacity: 1 !important;
}

/* ---------------------------------------------------------------------
 * 11. SECTION FOOTER LINK
 * ------------------------------------------------------------------- */
.theme-section-footer-link { text-align: center; margin-top: 3.5rem; }

/* ---------------------------------------------------------------------
 * 12. ABOUT
 * ------------------------------------------------------------------- */
.theme-about-pad { padding: 4rem 1.5rem; }
@media (min-width: 768px) { .theme-about-pad { padding: 6rem 3.5rem; } }
@media (min-width: 1024px) { .theme-about-pad { padding: 6rem 5rem; } }
.theme-about-inner { max-width: 56rem; margin: 0 auto; text-align: center; }
.theme-about-copy { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.75; margin-bottom: 1.25rem; }

/* ---------------------------------------------------------------------
 * 13. OWNER / FOUNDER
 * ------------------------------------------------------------------- */
.theme-owner-grid { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .theme-owner-grid { grid-template-columns: 1fr 1fr; } }
.theme-owner-image { position: relative; min-height: 380px; }
@media (min-width: 768px) { .theme-owner-image { min-height: 520px; } }
@media (min-width: 1024px) { .theme-owner-image { min-height: 620px; } }
.theme-owner-img { object-position: top; }
.theme-owner-copy-wrap { display: flex; align-items: center; background: var(--color-background); padding: 3.5rem 1.5rem; }
@media (min-width: 768px) { .theme-owner-copy-wrap { padding: 5rem 3.5rem; } }
@media (min-width: 1024px) { .theme-owner-copy-wrap { padding: 5rem 5rem; } }
.theme-owner-copy { max-width: 36rem; }
.theme-owner-quote { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); line-height: 1.4; margin-bottom: 2rem; }
@media (min-width: 768px) { .theme-owner-quote { font-size: 1.5rem; } }
.theme-owner-para { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.75; margin-bottom: 1.25rem; }

/* ---------------------------------------------------------------------
 * 14. FEATURES / SERVICES ROWS
 * ------------------------------------------------------------------- */
.theme-services-head { text-align: center; padding: 4rem 1.5rem; }
@media (min-width: 768px) { .theme-services-head { padding: 6rem 3.5rem; } }
.theme-feature-row { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .theme-feature-row { grid-template-columns: 1fr 1fr; } }
.theme-feature-row--reversed .theme-feature-row__media { order: 2; }
.theme-feature-row--reversed .theme-feature-row__copy-wrap { order: 1; }
@media (max-width: 1023px) { .theme-feature-row--reversed .theme-feature-row__media,
	.theme-feature-row--reversed .theme-feature-row__copy-wrap { order: initial; } }
.theme-feature-row__media { position: relative; min-height: 360px; overflow: hidden; }
@media (min-width: 768px) { .theme-feature-row__media { min-height: 500px; } }
@media (min-width: 1024px) { .theme-feature-row__media { min-height: 560px; } }
.theme-feature-row__img { transition: transform 0.9s cubic-bezier(0.25, 0.4, 0.25, 1); }
.theme-feature-row__media:hover .theme-feature-row__img { transform: scale(1.03); }
.theme-feature-row__numeral {
	position: absolute; top: 1.25rem; left: 1.25rem;
	font-family: var(--font-display);
	font-size: 0.875rem; letter-spacing: 0.3em;
	padding: 0.25rem 0.5rem;
	background: color-mix(in srgb, var(--color-background) 85%, transparent);
	backdrop-filter: blur(4px);
}
.theme-feature-row__copy-wrap { display: flex; align-items: center; background: var(--color-butter); padding: 3.5rem 1.5rem; }
@media (min-width: 768px) { .theme-feature-row__copy-wrap { padding: 5rem 3.5rem; } }
@media (min-width: 1024px) { .theme-feature-row__copy-wrap { padding: 5rem 5rem; } }
.theme-feature-row__copy { max-width: 36rem; }
.theme-feature-row__kicker-line { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.theme-feature-row__icon { display: flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--color-border); }
.theme-feature-row__kicker { font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase; }
.theme-feature-row__title { font-size: 2.25rem; line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -0.015em; }
@media (min-width: 768px) { .theme-feature-row__title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-feature-row__title { font-size: 3.75rem; } }
.theme-feature-row__desc { font-size: 1rem; color: var(--color-muted-foreground); line-height: 1.75; }
@media (min-width: 768px) { .theme-feature-row__desc { font-size: 1.125rem; } }

/* ---------------------------------------------------------------------
 * 15. COMMUNITY BAND
 * ------------------------------------------------------------------- */
.theme-community-head { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.theme-community-heading-italic { display: block; font-style: italic; color: var(--color-teal); }
.theme-community-paragraph { font-family: var(--font-body); color: color-mix(in srgb, var(--color-surface-deep-foreground) 75%, transparent); line-height: 1.75; }
.theme-community-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .theme-community-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.theme-community-tile { border: 1px solid color-mix(in srgb, var(--color-surface-deep-foreground) 15%, transparent); padding: 2rem; }
.theme-community-tile__icon { color: var(--color-marigold); margin-bottom: 1.25rem; }
.theme-community-tile__title { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--color-surface-deep-foreground); }
.theme-community-tile__copy { font-family: var(--font-body); color: color-mix(in srgb, var(--color-surface-deep-foreground) 75%, transparent); line-height: 1.75; font-size: 0.875rem; }

/* ---------------------------------------------------------------------
 * 16. GALLERY MARQUEE
 * ------------------------------------------------------------------- */
.theme-gallery-head { margin-bottom: 2.5rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
@media (min-width: 768px) { .theme-gallery-head { margin-bottom: 3.5rem; } }
.theme-gallery-head__copy { text-align: left; }
.theme-gallery-head__copy .theme-eyebrow { margin-bottom: 0.75rem; }
.theme-gallery-track {
	display: flex;
	flex-wrap: nowrap;
	gap: 1rem;
	overflow-x: auto;
	padding: 0 1.5rem 0.5rem;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) { .theme-gallery-track { gap: 1.5rem; padding: 0 3rem 0.5rem; } }
@media (min-width: 1024px) { .theme-gallery-track { padding: 0 4rem 0.5rem; } }
.theme-gallery-track::-webkit-scrollbar { display: none; }
.theme-gallery-item {
	flex-shrink: 0;
	width: 78%;
}
@media (min-width: 640px) { .theme-gallery-item { width: 55%; } }
@media (min-width: 768px) { .theme-gallery-item { width: 40%; } }
@media (min-width: 1024px) { .theme-gallery-item { width: 30%; } }
@media (min-width: 1280px) { .theme-gallery-item { width: 26%; } }
.theme-gallery-link { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5; height: auto; }
.theme-gallery-img { object-position: top; transition: transform 0.9s cubic-bezier(0.25, 0.4, 0.25, 1); width: 100%; }
.theme-gallery-link:hover .theme-gallery-img { transform: scale(1.04); }
.theme-gallery-controls-wrap { margin-top: 2.5rem; }
.theme-gallery-controls { display: flex; align-items: center; gap: 1rem; }
.theme-gallery-nav {
	height: 3rem; width: 3rem;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent);
	color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
	transition: color 0.2s, border-color 0.2s;
}
.theme-gallery-nav:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* ---------------------------------------------------------------------
 * 17. SHOP — SEARCH, FILTERS, PRICE RANGE
 * ------------------------------------------------------------------- */
.theme-shop-head { text-align: center; margin-bottom: 3rem; }
.theme-shop-search { position: relative; max-width: 28rem; margin: 0 auto 2rem; }
.theme-shop-search__icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.theme-shop-search__input {
	width: 100%;
	padding: 0.5rem 0 0.5rem 1.75rem;
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--color-border);
	font-size: 1rem;
	color: var(--color-foreground);
	transition: border-color 0.2s;
}
.theme-shop-search__input:focus { outline: none; border-bottom-color: var(--color-foreground); }
.theme-shop-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.theme-cat-filter {
	padding: 0.5rem 1.25rem;
	font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	background: transparent;
	color: var(--color-foreground);
	transition: all 0.3s;
}
.theme-cat-filter:hover { border-color: var(--color-rosa); color: var(--color-rosa); }
.theme-cat-filter.is-active { background: var(--color-rosa); color: var(--color-background); border-color: var(--color-rosa); }
.theme-cat-filter:active { transform: scale(0.96); }

.theme-shop-price-filter { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.theme-price-toggle {
	display: flex; align-items: center; gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--color-muted-foreground);
	transition: color 0.3s;
}
.theme-price-toggle:hover { color: var(--color-foreground); }
.theme-price-toggle__value { text-transform: none; letter-spacing: normal; opacity: 0.7; }
.theme-price-toggle__chevron { transition: transform 0.3s; }
.theme-price-toggle.is-open .theme-price-toggle__chevron { transform: rotate(180deg); }
.theme-price-panel {
	width: 100%; max-width: 24rem;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth);
}
.theme-price-panel.is-open { max-height: 6rem; opacity: 1; }
.theme-price-labels { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.75rem; }

/* Dual-handle price range — overlapping full-width inputs (Section 31.4). */
.price-range-wrapper { position: relative; height: 1.5rem; padding: 0.5rem 0; }
.range-track-bg,
.range-track-fill {
	position: absolute; height: 4px; top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	border-radius: 999px;
}
.range-track-bg { left: 0; right: 0; background: var(--color-secondary); }
.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: 18px; height: 18px;
	border-radius: 999px;
	background: var(--color-background);
	border: 2px solid var(--color-primary);
	cursor: pointer;
	margin-top: 3px;
}
.range-input::-moz-range-thumb {
	pointer-events: auto;
	width: 18px; height: 18px;
	border-radius: 999px;
	background: var(--color-background);
	border: 2px solid var(--color-primary);
	cursor: pointer;
}
.range-input::-moz-range-track { background: transparent; border: none; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.theme-shop-empty { text-align: center; padding: 4rem 0; color: var(--color-muted-foreground); font-family: var(--font-body); }
.theme-shop-showmore-wrap { text-align: center; margin-top: 3rem; }

/* ---------------------------------------------------------------------
 * 18. FINAL CTA BAND
 * ------------------------------------------------------------------- */
.theme-cta-band { position: relative; overflow: hidden; }
.theme-cta-band__bg { opacity: 0.5; z-index: 0; }
.theme-cta-band__inner-wrap { position: relative; z-index: 1; }
.theme-cta-band__card {
	max-width: 42rem; margin: 0 auto; text-align: center;
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(4px);
	box-shadow: var(--shadow-elevated);
	padding: 3rem 2rem;
	border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
}
@media (min-width: 768px) { .theme-cta-band__card { padding: 4rem 3.5rem; } }
.theme-cta-band__paragraph { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.75; margin-bottom: 2.5rem; max-width: 28rem; margin-left: auto; margin-right: auto; }
.theme-cta-band__actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; }
@media (min-width: 640px) { .theme-cta-band__actions { flex-direction: row; } }

/* ---------------------------------------------------------------------
 * 19. FOOTER
 * ------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-teal) 10%, var(--color-background) 90%); }
.site-footer__inner { padding: 3rem 1.5rem; }
@media (min-width: 1024px) { .site-footer__inner { padding: 3.5rem 2rem; } }
.site-footer__row { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 1024px) { .site-footer__row { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer__brand .site-logo-img {
	width: 3.5rem;
	height: 3.5rem;
	object-fit: contain;
}
.site-footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.theme-footer-nav-list { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .theme-footer-nav-list { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1.25rem; } }
.theme-footer-nav-list .theme-nav-link,
.theme-footer-nav-list a {
	font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	transition: color 0.2s;
}
.theme-footer-nav-list a:hover { color: var(--color-foreground); }
.site-footer__contact { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .site-footer__contact { flex-direction: row; align-items: center; gap: 1.25rem; } }
.site-footer__contact-link { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s; }
.site-footer__contact-link:hover { color: var(--color-foreground); }
.site-footer__bottom {
	margin-top: 2.5rem; padding-top: 1.5rem;
	border-top: 1px solid var(--color-border);
	display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
	text-align: center;
}
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; justify-content: space-between; } }
.site-footer__quote, .site-footer__copy, .site-footer__credit { font-size: 0.75rem; color: var(--color-muted-foreground); letter-spacing: 0.02em; }
.site-footer__quote { font-family: var(--font-display); font-style: italic; }
.site-footer__credit a { text-decoration: underline; transition: color 0.2s; }
.site-footer__credit a:hover { color: var(--color-foreground); }

/* ---------------------------------------------------------------------
 * 20. SIDE CART DRAWER
 * ------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed; inset: 0;
	background: color-mix(in srgb, var(--color-foreground) 20%, transparent);
	z-index: 90;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s;
}
body.cart-open #theme-cart-overlay { opacity: 1; visibility: visible; }

#theme-cart-drawer {
	position: fixed; right: 0; top: 0;
	height: 100%; width: 100%; max-width: 28rem;
	background: var(--color-background);
	z-index: 91;
	box-shadow: var(--shadow-elevated);
	display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer__close { padding: 0.25rem; transition: opacity 0.2s; }
.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; }
.theme-cart-drawer__empty p { 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-drawer__item { display: flex; gap: 1rem; }
.theme-cart-drawer__item-image { width: 5rem; height: 6rem; flex-shrink: 0; overflow: hidden; background: var(--color-secondary); display: block; }
.theme-cart-drawer__item-image img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-drawer__item-info { flex: 1; min-width: 0; }
.theme-cart-drawer__item-name { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-cart-drawer__item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.15rem; }
.theme-cart-drawer__item-variation { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.theme-cart-drawer__item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-qty-btn { padding: 0.25rem; border-radius: 4px; transition: background 0.2s; display: inline-flex; }
.theme-qty-btn:hover { background: var(--color-secondary); }
.theme-cart-drawer__item-qty { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-drawer__item-remove { margin-left: auto; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s; }
.theme-cart-drawer__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__shipping-note { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* ---------------------------------------------------------------------
 * 21. CONTACT MODAL
 * ------------------------------------------------------------------- */
#theme-contact-overlay {
	position: fixed; inset: 0;
	background: rgb(0 0 0 / 0.8);
	z-index: 95;
	opacity: 0; visibility: hidden;
	transition: opacity 0.2s;
}
body.contact-open #theme-contact-overlay { opacity: 1; visibility: visible; animation: themeOverlayFadeIn 0.2s ease; }

#theme-contact-modal {
	position: fixed; left: 50%; top: 50%;
	transform: translate(-50%, -48%) scale(0.95);
	width: calc(100% - 2rem);
	max-width: 32rem;
	max-height: 90vh;
	z-index: 96;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, transform 0.2s;
}
body.contact-open #theme-contact-modal {
	opacity: 1; visibility: visible;
	transform: translate(-50%, -50%) scale(1);
}
.theme-contact-modal__panel {
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--card-radius);
	box-shadow: var(--shadow-elevated);
	padding: 1.5rem;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
}
.theme-contact-modal__close { position: absolute; right: 1rem; top: 1rem; opacity: 0.7; transition: opacity 0.2s; }
.theme-contact-modal__close:hover { opacity: 1; }
.theme-contact-modal__title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.theme-contact-modal__description { color: var(--color-muted-foreground); font-size: 0.875rem; margin-bottom: 1rem; }
.theme-contact-modal__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1.25rem; }
.theme-contact-modal__meta a { display: flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.theme-contact-modal__meta a:hover { color: var(--color-foreground); }

.theme-contact-form { display: flex; flex-direction: column; gap: 1rem; }
.theme-contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-contact-form__row { grid-template-columns: 1fr 1fr; } }
.theme-contact-form__field label { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4rem; display: block; }
.theme-contact-form__field input,
.theme-contact-form__field textarea {
	width: 100%;
	padding: 0.6rem 0.75rem;
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 0.375rem;
	font-size: 1rem;
	transition: box-shadow 0.3s;
	resize: none;
}
.theme-contact-form__field input::placeholder,
.theme-contact-form__field textarea::placeholder { color: var(--color-muted-foreground); }
.theme-contact-form__field input:focus,
.theme-contact-form__field textarea:focus {
	outline: none;
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent);
}
.theme-contact-form__actions { display: flex; justify-content: flex-end; }
.theme-contact-form__actions .theme-btn { text-transform: none; letter-spacing: normal; font-size: 0.875rem; border-radius: 0.375rem; padding: 0.6rem 1.25rem; background: var(--color-primary); color: var(--color-primary-foreground); }
.theme-contact-form__actions .theme-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.theme-contact-success { text-align: center; padding: 2rem 0; }
.theme-contact-success__icon {
	width: 3.5rem; height: 3.5rem;
	background: var(--color-primary); color: var(--color-primary-foreground);
	display: flex; align-items: center; justify-content: center;
	border-radius: 999px;
	margin: 0 auto 1rem;
}
.theme-contact-success h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-contact-success p { color: var(--color-muted-foreground); font-size: 0.875rem; }

/* ---------------------------------------------------------------------
 * 22. SINGLE PRODUCT PAGE (Section 11.13)
 * ------------------------------------------------------------------- */
.single-product-main { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 1024px) { .single-product-main { padding-top: 7rem; } }
.theme-breadcrumb { padding: 1.5rem 0; font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-breadcrumb a { transition: color 0.2s; }
.theme-breadcrumb a:hover { color: var(--color-foreground); }
.theme-breadcrumb__sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb__current { color: var(--color-foreground); }

.theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: start;
	min-width: 0;
}
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; } }

.theme-product-gallery { min-width: 0; max-width: 100%; }
.theme-product-gallery__main { position: relative; aspect-ratio: 1 / 1; background: var(--color-secondary); overflow: hidden; }
@media (min-width: 1024px) { .theme-product-gallery__main { display: none; } }
.theme-product-gallery__desktop-stack { display: none; }
@media (min-width: 1024px) {
	.theme-product-gallery__desktop-stack { display: flex; flex-direction: column; gap: 1rem; }
}
.theme-product-gallery__desktop-item {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--color-secondary);
}
.theme-product-gallery__stack-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.theme-product-thumbnails { display: flex; gap: 0.75rem; margin-top: 1rem; overflow-x: auto; flex-wrap: wrap; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-thumbnails { display: none; } }
.theme-product-thumb { position: relative; width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden; background: var(--color-secondary); }
.theme-product-thumb img { opacity: 0.6; transition: opacity 0.2s; }
.theme-product-thumb.is-active img { opacity: 1; }
.theme-product-thumb::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: var(--color-foreground); opacity: 0; transition: opacity 0.2s;
}
.theme-product-thumb.is-active::after { opacity: 1; }

.theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) {
	.theme-product-info {
		position: sticky;
		top: 7rem;
		align-self: start;
		padding-left: 1rem;
	}
}
.theme-product-info__category { font-size: 0.8125rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-product-info__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.875rem;
	line-height: 1.1;
	margin-top: 0.75rem;
	margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .theme-product-info__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-product-info__title { font-size: 2.75rem; } }
.theme-product-info__price { font-size: 1.25rem; margin-bottom: 1rem; }
.theme-product-info__teaser { color: var(--color-muted-foreground); line-height: 1.75; margin-bottom: 2rem; overflow-wrap: break-word; word-break: break-word; }
.theme-stock-indicator { display: inline-block; font-size: 0.8125rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; padding: 0.35rem 0.85rem; border-radius: 999px; }
.theme-stock-indicator--soldout { background: var(--color-foreground); color: var(--color-background); }
.theme-stock-indicator--comingsoon { background: var(--color-teal); color: var(--color-background); }

.theme-quantity-label { font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }
.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); }
.theme-qty-minus, .theme-qty-plus { padding: 0.6rem 0.9rem; transition: background 0.2s; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input {
	width: 3rem; text-align: center; border: none; background: transparent;
	font-size: 0.875rem; -moz-appearance: textfield; padding: 0.6rem 0;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.posted_in, .woocommerce-variation-description, .woocommerce-product-details__short-description {
	overflow-wrap: break-word; word-break: break-word;
}

.theme-product-accordions { margin-top: 2.5rem; border-top: 1px solid var(--color-border); }
.theme-accordion { border-bottom: 1px solid var(--color-border); }
.theme-accordion__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; text-align: left; font-size: 0.8125rem; letter-spacing: 0.25em; text-transform: uppercase; }
.theme-accordion__chevron { transition: transform 0.2s; }
.theme-accordion.is-open .theme-accordion__chevron { transform: rotate(180deg); }
.theme-accordion__panel { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--transition-smooth); }
.theme-accordion.is-open .theme-accordion__panel { max-height: 3000px; padding-bottom: 1.5rem; }
.theme-product-description { font-size: 0.9375rem; color: var(--color-muted-foreground); line-height: 1.75; margin-bottom: 1rem; }
.theme-product-description p { margin-bottom: 0.75rem; }
.theme-details-heading { font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; margin: 1.25rem 0 0.75rem; font-family: var(--font-body); font-weight: 600; }
.theme-details-list { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-details-list li { font-size: 0.9375rem; color: var(--color-muted-foreground); display: flex; align-items: flex-start; }
.theme-details-dot { width: 4px; height: 4px; background: var(--color-foreground); border-radius: 999px; margin-top: 0.5rem; margin-right: 0.75rem; flex-shrink: 0; }

.theme-related-products { padding: 5rem 0; border-top: 1px solid var(--color-border); margin-top: 3rem; }
.theme-related-products .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) {
	.theme-related-products .theme-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.theme-related-products__head { text-align: center; margin-bottom: 3rem; }
.theme-related-products__eyebrow { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-muted-foreground); margin-bottom: 0.5rem; }

/* Section 11.4.1 — Add to cart button override (all contexts). */
.single_add_to_cart_button.button:not(.theme-quick-add),
.add_to_cart_button.button:not(.theme-quick-add),
a.single_add_to_cart_button:not(.theme-quick-add),
a.add_to_cart_button:not(.theme-quick-add) {
	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: none !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single-product .single_add_to_cart_button.button {
	background-color: var(--color-foreground) !important;
	color: var(--color-background) !important;
	width: 100% !important;
	min-height: unset !important;
	padding: 1rem 2rem !important;
	font-size: 0.75rem !important;
	letter-spacing: 0.25em !important;
	text-transform: uppercase !important;
	font-weight: 500 !important;
	border-radius: 999px !important;
}
.single-product .single_add_to_cart_button.button:hover {
	opacity: 0.9 !important;
	background-color: color-mix(in srgb, var(--color-foreground) 90%, transparent) !important;
	color: var(--color-background) !important;
}
.single_add_to_cart_button.button:not(.theme-quick-add):hover,
.add_to_cart_button.button:not(.theme-quick-add):hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled:not(.theme-quick-add),
.single_add_to_cart_button.button.disabled:not(.theme-quick-add),
.add_to_cart_button.button:disabled:not(.theme-quick-add),
.add_to_cart_button.button.disabled:not(.theme-quick-add) {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:not(.theme-quick-add):hover,
.single_add_to_cart_button.button.disabled:not(.theme-quick-add):hover,
.add_to_cart_button.button:disabled:not(.theme-quick-add):hover,
.add_to_cart_button.button.disabled:not(.theme-quick-add):hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
.single-product .single_add_to_cart_button.button:disabled,
.single-product .single_add_to_cart_button.button.disabled {
	opacity: 0.6 !important;
	background-color: var(--color-foreground) !important;
	color: var(--color-background) !important;
}
.single-product .single_add_to_cart_button,
.single-product .single_add_to_cart_button.button { text-transform: uppercase !important; letter-spacing: 0.25em !important; font-size: 0.75rem !important; }
.single_add_to_cart_button.button.loading::after,
.ajax_add_to_cart.loading::after { display: none !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; }

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

.single-product .variations.shop_attributes,
.single-product table.variations { display: none !important; }

.theme-variations { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 1.5rem; }
.theme-variation-label {
	font-size: 0.8125rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-family: var(--font-body);
	font-weight: 400;
	color: var(--color-muted-foreground);
	margin-bottom: 0.75rem;
}
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-pill {
	padding: 0.5rem 1rem;
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-family: var(--font-body);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	background: transparent;
	color: var(--color-foreground);
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.theme-attr-pill:hover { border-color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-attr-pill.is-active {
	background: var(--color-foreground);
	color: var(--color-background);
	border-color: var(--color-foreground);
}
.theme-attr-select-hidden,
.theme-attr-select-wrap.theme-attr-select-hidden { display: none !important; }

.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; padding-bottom: 1rem; }
.theme-attr-select-hidden { display: none !important; }

.product-title,
.variations label { font-family: var(--font-body); font-weight: 600; font-style: normal; }

/* Section 14.1 — scoped notice visibility. */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-error { font-family: var(--font-body); border-radius: 0.5rem; }

/* ---------------------------------------------------------------------
 * 23. SHOP ARCHIVE FALLBACK
 * ------------------------------------------------------------------- */
.theme-archive-main { padding-top: 2rem; padding-bottom: 4rem; }

/* ---------------------------------------------------------------------
 * 24. GENERIC PAGE / 404
 * ------------------------------------------------------------------- */
.theme-page-main { padding-top: 6rem; padding-bottom: 4rem; }
.theme-page-inner .page-title { font-size: 2rem; margin-bottom: 2rem; }
.theme-404-main { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.theme-404-inner { text-align: center; padding: 4rem 0; }
.theme-404-code { font-size: 3rem; margin-bottom: 1rem; }
.theme-404-message { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }

/* ---------------------------------------------------------------------
 * 25. WOOCOMMERCE CHECKOUT BLOCK (Section 13)
 * ------------------------------------------------------------------- */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .theme-page-main { padding-top: calc(var(--header-height) - 4rem); padding-bottom: 4rem; }
body.woocommerce-checkout .entry-content { max-width: 100%; }

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-account .wc-block-components-sidebar-layout,
body.woocommerce-cart .wc-block-cart {
	font-family: var(--font-body);
	color: var(--color-foreground);
}

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

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
	body.woocommerce-checkout .wc-block-checkout__main-with-sidebar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap);
		align-items: start;
	}
	body.woocommerce-checkout .wc-block-components-notice-banner {
		grid-column: 1 / -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-butter);
	border-radius: var(--card-radius);
	padding: var(--section-padding);
}

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,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control select,
body.woocommerce-checkout select,
body.woocommerce-checkout input[type="text"],
body.woocommerce-checkout input[type="email"],
body.woocommerce-checkout input[type="tel"],
body.woocommerce-checkout input[type="number"],
body.woocommerce-checkout textarea {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	border: 1px solid var(--color-border) !important;
	border-radius: 0.375rem !important;
	background-color: var(--color-background) !important;
	color: var(--color-foreground) !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,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout input:focus,
body.woocommerce-checkout textarea:focus {
	outline: none !important;
	box-shadow: 0 0 0 1px var(--color-primary) !important;
	border-color: var(--color-primary) !important;
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder,
body.woocommerce-checkout input::placeholder,
body.woocommerce-checkout 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: 999px !important;
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }
body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 0.5rem;
	font-family: var(--font-body);
}
.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select {
	font-family: var(--font-body);
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	background-color: var(--color-background);
}

body.woocommerce-checkout .page-title,
body.woocommerce-account .page-title,
body.woocommerce-cart .page-title { max-width: 80rem; margin: 0 auto 2rem; padding: 0 1.5rem; }
@media (min-width: 1024px) { body.woocommerce-checkout .page-title,
	body.woocommerce-account .page-title,
	body.woocommerce-cart .page-title { padding: 0 2rem; } }

/* ---------------------------------------------------------------------
 * 26. THANK YOU PAGE (Section 22.8)
 * ------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; }
body.theme-thankyou-page .woocommerce-order { font-family: var(--font-body); }
body.theme-thankyou-page 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-overview { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; margin: 1.5rem 0; }
body.theme-thankyou-page .woocommerce-order-overview li { border-right: 1px solid var(--color-border); padding-right: 1rem; }
body.theme-thankyou-page .woocommerce-order-overview li:last-child { border-right: none; }
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; margin-top: 2rem; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 480px; overflow-wrap: break-word; }
@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; }
}

/* ---------------------------------------------------------------------
 * 27. MEDIA QUERY SAFETY FOR FLEX TEXT
 * ------------------------------------------------------------------- */
.theme-card-title-row { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.theme-card-title-row .title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
