/* ==========================================================================
   Daystar theme stylesheet.
   Color tokens are emitted as CSS custom properties by wp_add_inline_style
   (functions.php / Section 6.1). The :root block below provides static
   fallbacks matching the same HSL->hex conversion in case inline styles
   have not yet been output.
   ========================================================================== */

:root {
	--color-background: #f4f1eb;
	--color-foreground: #312017;
	--color-primary: #9d3d25;
	--color-primary-foreground: #faf8f4;
	--color-secondary: #ebe1d6;
	--color-muted-foreground: #5f4e45;
	--color-border: #d1c7bd;
	--color-accent: #da8d1b;
	--color-destructive: #c32222;
	--color-rosa: #7c1d38;
	--color-marigold: #e68a1a;
	--color-teal: #296563;
	--color-surface-deep: #2f1f18;
	--color-surface-deep-foreground: #f1ece4;

	--color-button-text: var(--color-primary-foreground);
	--color-accent-foreground: var(--color-foreground);

	--font-display: 'Halant', serif;
	--font-body: 'Fira Sans', sans-serif;

	--radius: 0.75rem;
	--shadow-soft: 0 4px 20px -4px rgba(49, 32, 23, 0.10);
	--shadow-elevated: 0 8px 40px -8px rgba(49, 32, 23, 0.22);
	--transition-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);

	--header-height: 72px;
	--logo-height: 36px;

	--btn-radius: 999px;
	--btn-height: 3.25rem;
	--btn-padding: 0 2rem;
	--btn-font-size: 0.7rem;
	--btn-font-weight: 500;
	--btn-letter-spacing: 0.25em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0;

	--checkout-gap: 2rem;
	--card-radius: var(--radius);
	--section-padding: 2rem;
}

/* ==========================================================================
   BASE / RESET
   ========================================================================== */
* {
	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);
	-webkit-font-smoothing: antialiased;
	margin: 0;
	line-height: 1.5;
}

img { max-width: 100%; display: block; }

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; }

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; }

/* Clickable affordance — hand cursor on interactive controls */
a[href],
button:not(:disabled),
[role="button"],
[data-cart-open],
[data-cart-close],
[data-cart-remove],
[data-contact-close],
[data-contact-modal],
label[for],
summary,
select,
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
input[type="range"],
.theme-cat-filter,
.theme-attr-pill,
.theme-product-thumb,
.theme-gallery-btn,
.theme-qty-minus,
.theme-qty-plus,
.theme-price-filter-toggle,
.theme-accordion-trigger,
.theme-collection-tile,
.theme-essential-tile,
.theme-product-card,
.ajax_add_to_cart,
.single_add_to_cart_button {
	cursor: pointer;
}
button:disabled,
.disabled,
[aria-disabled="true"] {
	cursor: not-allowed;
}

ul { margin: 0; padding: 0; list-style: none; }

/* Section 15.1 — global img rule must not break cover/full-bleed images.
   COMPLETENESS RULE: every cover/full-bleed image class used anywhere in
   the theme MUST appear in this exclusion list. Cart and product-card
   images are covered via img.cover-img / dedicated selectors below. */
img:not(.cover-img):not(.theme-drop-media-secondary) {
	max-width: 100%;
	height: auto;
}
/* Higher specificity than WooCommerce `.woocommerce img` and the global
   height:auto rule so cover images always fill their positioned parent. */
img.cover-img,
.theme-product-card__image-wrapper img,
.theme-cart-item-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}
/* .theme-drop-media-secondary keeps its own explicit position/size rule
   further down (FEATURED DROP) — excluded above so height:auto never
   fights its fixed width/aspect-ratio box. */

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide { padding: 0 2rem; }
}

.theme-divider {
	height: 1px;
	width: 100%;
	background-color: color-mix(in srgb, var(--color-border) 70%, transparent);
}

.link-underline {
	position: relative;
	display: inline-block;
}
.link-underline::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

.theme-icon { width: 1.25rem; height: 1.25rem; }
.theme-icon-sm { width: 1rem; height: 1rem; }
.theme-icon-xs { width: 0.875rem; height: 0.875rem; }
.theme-icon-lg { width: 3rem; height: 3rem; }

/* ==========================================================================
   TYPOGRAPHY — buttons/headings must not globally inherit uppercase/serif
   ========================================================================== */
.theme-eyebrow {
	display: block;
	font-size: 12px;
	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--rosa { color: var(--color-rosa); }

.section-heading {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.1;
}
.collections-heading, .featured-heading { font-size: 1.875rem; text-align: center; }
@media (min-width: 768px) { .collections-heading { font-size: 2.25rem; } .featured-heading { font-size: 3rem; } }

.about-heading { font-size: 1.875rem; font-weight: 600; margin-bottom: 2rem; letter-spacing: -0.01em; }
@media (min-width: 768px) { .about-heading { font-size: 2.25rem; } }

.owners-heading { font-size: 2.25rem; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .owners-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .owners-heading { font-size: 3.75rem; } }

.services-heading { font-size: 2.25rem; letter-spacing: -0.02em; line-height: 1.05; }
@media (min-width: 768px) { .services-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .services-heading { font-size: 4.5rem; } }

.theme-service-title { font-size: 2.25rem; line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
@media (min-width: 768px) { .theme-service-title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-service-title { font-size: 3.75rem; } }

.essentials-heading { font-size: 2.25rem; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .essentials-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .essentials-heading { font-size: 3.75rem; } }
.theme-essentials-heading-emphasis { display: block; font-style: italic; color: var(--color-marigold); }

.drop-heading { font-size: 2.25rem; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .drop-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .drop-heading { font-size: 3.75rem; } }
.theme-drop-heading-emphasis { display: block; font-style: italic; color: var(--color-rosa); }

.gallery-heading { font-size: 1.875rem; line-height: 1.05; letter-spacing: -0.02em; }
@media (min-width: 768px) { .gallery-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .gallery-heading { font-size: 3.75rem; } }

.shop-heading { font-size: 1.875rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .shop-heading { font-size: 3rem; } }

.cta-heading { font-size: 1.875rem; line-height: 1.2; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .cta-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .cta-heading { font-size: 3.75rem; } }

.theme-hero__title { font-weight: 400; }

/* No global uppercase on hero CTAs / add-to-cart title etc — set explicitly per element. */
.product-title { font-family: var(--font-body); font-weight: 600; text-transform: none; }
.single-product .variations label { font-family: var(--font-body); font-weight: 600; font-style: normal; }
.btn-hero-primary, .theme-btn-hero, .single-product .single_add_to_cart_button { text-transform: none; }

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Section 2.1)
   ========================================================================== */
.reveal-item {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
	transition-delay: var(--reveal-delay, 0s);
}
.reveal-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.reveal-fade-slide {
	transform: translateY(22px);
}
body.is-customizer .reveal-item,
body.is-customizer .reveal-item.reveal-fade-slide {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
	.reveal-item { transition: none; opacity: 1; transform: none; }
}

@keyframes daystarFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes daystarSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: daystarFadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: daystarSlideUp 0.6s var(--transition-smooth) forwards; }

/* ==========================================================================
   ANNOUNCEMENT BAR
   ========================================================================== */
.theme-announcement-bar {
	position: relative;
	background-color: var(--color-foreground);
	color: var(--color-background);
}
.theme-announcement-inner { padding-block: 0.5rem; text-align: center; }
.theme-announcement-text { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
.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; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background-color: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
/* Keep sticky header below the WP admin bar */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}
.site-header.is-solid {
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(4px);
	border-bottom-color: var(--color-border);
}
body.theme-no-hero .site-header { background-color: var(--color-background); }

.theme-header-nav-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
	position: relative;
}
.theme-header-logo { display: flex; align-items: center; gap: 0.5rem; }
.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; }
.site-logo-text--beside { margin-left: 0.5rem; }

.theme-header-nav-desktop { display: none; }
@media (min-width: 1024px) {
	.theme-header-nav-desktop {
		display: flex;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
	}
}
.theme-nav-list { display: flex; align-items: center; gap: 2rem; }
.theme-nav-link {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	position: relative;
	display: inline-block;
	transition: color 0.3s;
}
.theme-nav-link::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-link:hover::after { transform: scaleX(1); }

.theme-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-header-search-btn { display: none; padding: 0.5rem; transition: opacity 0.2s; }
.theme-header-search-btn:hover { opacity: 0.6; }
@media (min-width: 768px) { .theme-header-search-btn { display: inline-flex; } }

.theme-header-cart-btn { position: relative; padding: 0.5rem; transition: opacity 0.2s; }
.theme-header-cart-btn:hover { opacity: 0.6; }
.theme-cart-count {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 1.25rem;
	height: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 500;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	border-radius: 999px;
}
.theme-cart-count:empty { display: none; }

.theme-header-menu-btn { padding: 0.5rem; }
.theme-menu-icon-close { display: none; }
#theme-mobile-menu-toggle[aria-expanded="true"] .theme-menu-icon-open { display: none; }
#theme-mobile-menu-toggle[aria-expanded="true"] .theme-menu-icon-close { display: block; }
@media (min-width: 1024px) { .theme-header-menu-btn { display: none; } }

.theme-header-nav-mobile {
	display: none;
	border-top: 1px solid var(--color-border);
	padding: 1rem 0;
}
.theme-header-nav-mobile.is-open { display: block; }
@media (min-width: 1024px) { .theme-header-nav-mobile { display: none !important; } }
.theme-nav-list-mobile, .theme-header-nav-mobile .theme-nav-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.theme-header-nav-mobile .theme-nav-link {
	font-size: 14px;
	letter-spacing: 0.18em;
	padding: 0.5rem 0;
}

/* ==========================================================================
   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__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, color-mix(in srgb, var(--color-foreground) 55%, transparent), color-mix(in srgb, var(--color-foreground) 25%, transparent), transparent);
}
.theme-hero__content-row { position: relative; height: 100%; display: flex; align-items: center; }
.theme-hero__content { max-width: 36rem; }
.theme-hero__title {
	font-size: 3rem;
	line-height: 1.05;
	color: var(--color-background);
	margin-bottom: 1.5rem;
	max-width: 32rem;
}
@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.6;
	margin-bottom: 2.5rem;
	max-width: 28rem;
}
@media (min-width: 768px) { .theme-hero__subtitle { font-size: 1.125rem; } }

.theme-btn-hero {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-background);
	color: var(--color-foreground);
	padding: 1.25rem 3rem;
	font-size: 11px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-family: var(--font-display);
	font-weight: 500;
	transition: background-color 0.3s;
}
.theme-btn-hero:hover { background-color: color-mix(in srgb, var(--color-background) 90%, transparent); }

/* ==========================================================================
   GENERIC SECTION SPACING
   ========================================================================== */
.theme-section { background-color: var(--color-background); }
/* Use padding-block so we don't wipe .container-wide horizontal padding
   when both classes share the same element. */
.theme-section--collections, .theme-section--featured { padding-block: 3rem; }
@media (min-width: 768px) {
	.theme-section--collections { padding-block: 4rem; }
	.theme-section--featured { padding-block: 5rem; }
}
.theme-section-header { text-align: center; margin-bottom: 2.5rem; }

/* ==========================================================================
   COLLECTIONS
   ========================================================================== */
.theme-collections-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .theme-collections-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.theme-collection-tile {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	display: block;
}
.theme-collection-tile__scrim {
	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-collection-tile:hover .theme-collection-tile__image { transform: scale(1.05); }
.theme-collection-tile__image { transition: transform 0.7s var(--transition-smooth); }
.theme-collection-tile__content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.5rem;
	color: var(--color-background);
	text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}
@media (min-width: 768px) { .theme-collection-tile__content { padding: 1.75rem; } }
.theme-collection-tile__tagline {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 11px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
	filter: brightness(1.5);
}
.theme-collection-tile__tagline--teal { color: var(--color-teal); }
.theme-collection-tile__tagline--marigold { color: var(--color-marigold); }
.theme-collection-tile__tagline--rosa { color: var(--color-rosa); }
.theme-collection-tile__rule { height: 1px; width: 1.5rem; background: currentColor; }
.theme-collection-tile__label { font-size: 1.5rem; font-weight: 400; margin-bottom: 0.5rem; color: var(--color-background); }
@media (min-width: 768px) { .theme-collection-tile__label { font-size: 1.875rem; } }
.theme-collection-tile__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

/* ==========================================================================
   PRODUCT CARDS (Section 31.3 — Pattern A)
   ========================================================================== */
.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: 2rem; } }
@media (min-width: 1024px) { .theme-shop-grid, .theme-archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Related matches Lovable: grid-cols-2 lg:grid-cols-4 gap-6 lg:gap-8 */
.theme-related-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}
@media (min-width: 768px) {
	.theme-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem;
	}
}
@media (min-width: 1024px) {
	.theme-related-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 2rem;
	}
}
.theme-product-grid--3 { grid-template-columns: repeat(1, minmax(0,1fr)); gap: 2rem; }
@media (min-width: 768px) { .theme-product-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 3rem; } }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.3s var(--transition-smooth);
}
.theme-product-card:hover { transform: translateY(-4px); }
.theme-product-card > .theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }
.theme-product-card .theme-product-card__quick-add {
	position: absolute;
	z-index: 3;
	pointer-events: auto;
}
.theme-product-card .theme-product-card__quick-add * {
	pointer-events: none;
}

.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 3 / 4;
	background-color: var(--color-secondary);
	overflow: hidden;
	margin-bottom: 1.25rem;
}
.theme-product-card__image { transition: transform 0.7s var(--transition-smooth); }
.theme-product-card:hover .theme-product-card__image { transform: scale(1.04); }

.theme-product-badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.25rem 0.75rem;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	background-color: var(--color-foreground);
	color: var(--color-background);
	border-radius: 999px;
	z-index: 3;
}

.theme-product-card__quick-add {
	position: absolute;
	bottom: 0.75rem;
	right: 0.75rem;
	width: 2.5rem;
	height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: var(--color-background);
	color: var(--color-foreground);
	box-shadow: var(--shadow-soft);
	opacity: 0;
	transition: opacity 0.3s, transform 0.2s;
	z-index: 3;
}
@media (max-width: 767px) { .theme-product-card__quick-add { opacity: 1; } }
.theme-product-card:hover .theme-product-card__quick-add { opacity: 1; }
.theme-product-card__quick-add:hover { transform: scale(1.08); }

.theme-product-card__info { text-align: center; margin-top: 0; flex: 1; }
.theme-product-card__title {
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	line-height: 1.4;
	margin-bottom: 0.5rem;
	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-size: 1rem; font-weight: 400; }
@media (min-width: 768px) { .theme-product-card__price { font-size: 1.125rem; } }
.theme-product-card__price del { opacity: 0.5; margin-right: 0.35rem; }
.theme-product-card__price ins { text-decoration: none; }

.theme-section-footer-link { text-align: center; margin-top: 3.5rem; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-section .theme-about-inner {
	max-width: 56rem;
	margin: 0 auto;
	text-align: center;
	padding: 4rem 1.5rem;
}
@media (min-width: 768px) { .about-section .theme-about-inner { padding: 6rem 3.5rem; } }
@media (min-width: 1024px) { .about-section .theme-about-inner { padding: 6rem 5rem; } }
.theme-about-text { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; margin-bottom: 1.25rem; }
.theme-about-link { font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; }

/* ==========================================================================
   OWNERS / FOUNDER
   ========================================================================== */
.theme-owners-grid { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .theme-owners-grid { grid-template-columns: 1fr 1fr; } }
.theme-owners-media { position: relative; min-height: 380px; }
@media (min-width: 768px) { .theme-owners-media { min-height: 520px; } }
@media (min-width: 1024px) { .theme-owners-media { min-height: 620px; } }
.theme-owners-media img { object-position: center 45%; }
.theme-owners-content { display: flex; align-items: center; padding: 3rem 1.5rem; }
@media (min-width: 768px) { .theme-owners-content { padding: 5rem 3.5rem; } }
@media (min-width: 1024px) { .theme-owners-content { padding: 5rem 5rem; } }
@media (min-width: 1280px) { .theme-owners-content { padding: 5rem 6rem; } }
.theme-owners-content-inner { max-width: 36rem; }
.theme-owners-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-owners-quote { font-size: 1.5rem; } }
.theme-owners-text { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.7; margin-bottom: 1.25rem; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.theme-services-section { background-color: var(--color-secondary); }
.theme-services-header { padding: 4rem 1.5rem 4rem; text-align: center; }
@media (min-width: 768px) { .theme-services-header { padding: 6rem 3.5rem 6rem; } }
@media (min-width: 1024px) { .theme-services-header { padding: 6rem 5rem; } }
.theme-service-row { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .theme-service-row { grid-template-columns: 1fr 1fr; } }
/* Mobile/tablet: always image then text. Desktop: alternate via --reversed. */
.theme-service-media { position: relative; min-height: 360px; order: 1; }
@media (min-width: 768px) { .theme-service-media { min-height: 500px; } }
@media (min-width: 1024px) {
	.theme-service-media { min-height: 560px; }
	.theme-service-row--reversed .theme-service-media { order: 2; }
}
.theme-service-media img { transition: transform 0.9s var(--transition-smooth); }
.theme-service-media:hover img { transform: scale(1.03); }
.theme-service-numeral {
	position: absolute;
	top: 1.25rem;
	left: 1.25rem;
	font-family: var(--font-display);
	font-size: 14px;
	letter-spacing: 0.3em;
	padding: 0.25rem 0.5rem;
	background-color: color-mix(in srgb, var(--color-background) 85%, transparent);
	backdrop-filter: blur(4px);
}
.theme-service-numeral--rosa { color: var(--color-rosa); }
.theme-service-numeral--marigold { color: var(--color-marigold); }
.theme-service-numeral--teal { color: var(--color-teal); }
.theme-service-content { display: flex; align-items: center; background-color: var(--color-secondary); padding: 3rem 1.5rem; order: 2; }
@media (min-width: 768px) { .theme-service-content { padding: 5rem 3.5rem; } }
@media (min-width: 1024px) {
	.theme-service-content { padding: 5rem 5rem; }
	.theme-service-row--reversed .theme-service-content { order: 1; }
}
@media (min-width: 1280px) { .theme-service-content { padding: 5rem 6rem; } }
.theme-service-content-inner { max-width: 36rem; }
.theme-service-kicker-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.theme-service-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 1px solid currentColor;
}
.theme-service-icon--rosa { color: var(--color-rosa); border-color: color-mix(in srgb, var(--color-rosa) 40%, transparent); }
.theme-service-icon--marigold { color: var(--color-marigold); border-color: color-mix(in srgb, var(--color-marigold) 50%, transparent); }
.theme-service-icon--teal { color: var(--color-teal); border-color: color-mix(in srgb, var(--color-teal) 40%, transparent); }
.theme-service-kicker { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; }
.theme-service-kicker--rosa { color: var(--color-rosa); }
.theme-service-kicker--marigold { color: var(--color-marigold); }
.theme-service-kicker--teal { color: var(--color-teal); }
.theme-service-desc { font-size: 1rem; color: var(--color-muted-foreground); line-height: 1.7; }
@media (min-width: 768px) { .theme-service-desc { font-size: 1.125rem; } }

/* ==========================================================================
   ESSENTIALS (dark band)
   ========================================================================== */
.theme-essentials-section {
	background-color: var(--color-surface-deep);
	color: var(--color-surface-deep-foreground);
	padding: 4rem 0;
}
@media (min-width: 768px) { .theme-essentials-section { padding: 6rem 0; } }
.theme-essentials-header { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.theme-essentials-paragraph { color: color-mix(in srgb, var(--color-surface-deep-foreground) 75%, transparent); line-height: 1.7; }
.theme-essentials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .theme-essentials-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .theme-essentials-grid { grid-template-columns: repeat(6, 1fr); } }
.theme-essential-tile { display: block; }
.theme-essential-tile__image-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: color-mix(in srgb, var(--color-surface-deep-foreground) 5%, transparent);
}
.theme-essential-tile__image-wrap img { transition: transform 0.6s var(--transition-smooth); }
.theme-essential-tile:hover .theme-essential-tile__image-wrap img { transform: scale(1.05); }
.theme-essential-tile__row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; padding-top: 0.75rem; min-width: 0; }
.theme-essential-tile__label { font-family: var(--font-display); font-size: 14px; line-height: 1.3; color: var(--color-surface-deep-foreground); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (min-width: 768px) { .theme-essential-tile__label { font-size: 1rem; } }
.theme-essential-tile__price { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-marigold); white-space: nowrap; }
.theme-essential-tile__price del { opacity: 0.5; margin-right: 0.25rem; }
.theme-essential-tile__price ins { text-decoration: none; }

.theme-essentials-coming-soon { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; }
.theme-essentials-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border: 1px solid color-mix(in srgb, var(--color-marigold) 40%, transparent);
	color: var(--color-marigold);
	font-size: 11px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}
.theme-essentials-badge__rule { height: 1px; width: 1rem; background-color: var(--color-marigold); }
.theme-essentials-coming-soon-text { color: color-mix(in srgb, var(--color-surface-deep-foreground) 70%, transparent); font-size: 0.875rem; }

/* ==========================================================================
   FEATURED DROP
   ========================================================================== */
.theme-drop-grid { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .theme-drop-grid { grid-template-columns: 1fr 1fr; } }
.theme-drop-media { position: relative; min-height: 420px; order: 2; }
@media (min-width: 768px) { .theme-drop-media { min-height: 560px; } }
@media (min-width: 1024px) { .theme-drop-media { min-height: 640px; order: 2; } }
.theme-drop-media-main { position: absolute; inset: 0; overflow: hidden; }
.theme-drop-media-main__image { transform: scale(0.75); }
.theme-drop-media-secondary {
	position: absolute;
	bottom: 1.5rem;
	left: 1.5rem;
	width: 8rem;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	box-shadow: var(--shadow-elevated);
	border: 4px solid var(--color-background);
}
@media (min-width: 768px) { .theme-drop-media-secondary { width: 11rem; } }
@media (min-width: 1024px) { .theme-drop-media-secondary { width: 13rem; } }
.theme-drop-content { display: flex; align-items: center; padding: 3rem 1.5rem; order: 1; }
@media (min-width: 768px) { .theme-drop-content { padding: 5rem 3.5rem; } }
@media (min-width: 1024px) { .theme-drop-content { padding: 5rem 5rem; } }
@media (min-width: 1280px) { .theme-drop-content { padding: 5rem 6rem; } }
.theme-drop-content-inner { max-width: 36rem; }
.theme-drop-text { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; margin-bottom: 1.5rem; }
.theme-drop-text--italic { font-style: italic; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); margin-bottom: 2.5rem; }
.theme-btn-rosa {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-rosa);
	color: var(--color-background);
	padding: 1rem 2.25rem;
	font-size: 11px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-family: var(--font-display);
	transition: background-color 0.3s;
}
.theme-btn-rosa:hover { background-color: color-mix(in srgb, var(--color-rosa) 90%, transparent); }

/* ==========================================================================
   GALLERY
   ========================================================================== */
/* Match Lovable gallery spacing (py-16 md:py-24) */
#gallery.theme-section {
	padding: 4rem 0;
}
@media (min-width: 768px) {
	#gallery.theme-section {
		padding: 6rem 0;
	}
}
.theme-gallery-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .theme-gallery-header { margin-bottom: 3.5rem; } }
.theme-gallery-track-wrap { overflow: hidden; }
.theme-gallery-track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	scrollbar-width: none;
}
.theme-gallery-track::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .theme-gallery-track { gap: 1.5rem; padding-left: 3rem; padding-right: 3rem; } }
.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 { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; }
.theme-gallery-link img { object-position: top; transition: transform 0.9s var(--transition-smooth); }
.theme-gallery-link:hover img { transform: scale(1.04); }
.theme-gallery-controls { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.theme-gallery-btn {
	width: 3rem;
	height: 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-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* ==========================================================================
   SHOP SECTION
   ========================================================================== */
.theme-shop-section { padding-block: 3rem; }
@media (min-width: 768px) { .theme-shop-section { padding-block: 5rem; } }
.theme-shop-header { text-align: center; margin-bottom: 3rem; }
.theme-shop-search { position: relative; max-width: 28rem; margin: 0 auto 2rem; }
.theme-shop-search svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; 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-color: var(--color-foreground); }
.theme-shop-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.theme-cat-filter {
	padding: 0.5rem 1.25rem;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	background-color: 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-color: var(--color-rosa); color: var(--color-background); border-color: var(--color-rosa); }

.theme-shop-price-filter { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.theme-price-filter-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	transition: color 0.3s;
}
.theme-price-filter-toggle:hover { color: var(--color-foreground); }
.theme-price-filter-toggle svg { transition: transform 0.3s; }
.theme-price-filter-toggle.is-open svg { transform: rotate(180deg); }
.theme-price-filter-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-filter-panel.is-open { max-height: 10rem; opacity: 1; padding: 0.5rem 0; }
.theme-price-range-labels { display: flex; justify-content: space-between; font-size: 14px; color: var(--color-muted-foreground); margin-top: 0.5rem; }

/* Section 31.4 — dual-handle overlapping range */
.price-range-wrapper { position: relative; height: 1.5rem; }
.range-track-bg, .range-track-fill { position: absolute; height: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.range-track-bg { left: 0; right: 0; background: var(--color-border); }
.range-track-fill { background: var(--color-primary); }
.range-input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; }
.range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	border: 2px solid var(--color-primary);
	background-color: var(--color-background);
	cursor: pointer;
}
.range-input::-moz-range-thumb {
	pointer-events: auto;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	border: 2px solid var(--color-primary);
	background-color: var(--color-background);
	cursor: pointer;
}
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.theme-shop-show-more, .theme-shop-empty { text-align: center; margin-top: 3rem; }
.theme-shop-empty p { color: var(--color-muted-foreground); }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.theme-cta-section { position: relative; overflow: hidden; background-color: var(--color-secondary); }
.theme-cta-bg { z-index: 0; }
.theme-cta-inner { position: relative; padding-block: 5rem; }
@media (min-width: 768px) { .theme-cta-inner { padding-block: 7rem; } }
.theme-cta-card {
	max-width: 42rem;
	margin: 0 auto;
	text-align: center;
	background-color: 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-card { padding: 4rem 3.5rem; } }
.theme-cta-text { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; margin: 0 auto 2.5rem; max-width: 26rem; }
.theme-cta-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; }
@media (min-width: 640px) { .theme-cta-actions { flex-direction: row; } }
.theme-btn-dark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-foreground);
	color: var(--color-background);
	padding: 1rem 2.25rem;
	font-size: 11px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-family: var(--font-display);
	transition: background-color 0.3s;
}
.theme-btn-dark:hover { background-color: color-mix(in srgb, var(--color-foreground) 90%, transparent); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--color-border); background-color: var(--color-secondary); }
.theme-footer-inner { padding-block: 3rem 3.5rem; }
.theme-footer-top { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) { .theme-footer-top { flex-direction: row; align-items: center; justify-content: space-between; } }
.theme-footer-logo { display: flex; align-items: center; }
.site-logo-img--footer { height: calc(var(--logo-height) * 1.15) !important; }
.theme-footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
@media (min-width: 768px) { .theme-footer-nav { gap: 1.75rem; } }
.theme-footer-nav-link, .theme-footer-nav .theme-nav-link {
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	transition: color 0.2s;
}
.theme-footer-nav-link:hover, .theme-footer-nav .theme-nav-link:hover { color: var(--color-foreground); }
.theme-footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .theme-footer-contact { flex-direction: row; align-items: center; gap: 1.25rem; } }
.theme-footer-contact-link { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s; }
.theme-footer-contact-link:hover { color: var(--color-foreground); }
.theme-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;
	justify-content: space-between;
	gap: 0.75rem;
	text-align: center;
}
@media (min-width: 640px) { .theme-footer-bottom { flex-direction: row; } }
.theme-footer-tagline, .theme-footer-copyright, .theme-footer-credit { font-size: 12px; letter-spacing: 0.02em; color: var(--color-muted-foreground); }
.theme-footer-tagline { font-style: italic; font-family: var(--font-display); }
.theme-footer-credit a { text-decoration: underline; transition: color 0.2s; }
.theme-footer-credit a:hover { color: var(--color-foreground); }

/* ==========================================================================
   CONTACT MODAL
   ========================================================================== */
#theme-contact-overlay {
	position: fixed;
	inset: 0;
	background-color: color-mix(in srgb, var(--color-foreground) 40%, transparent);
	z-index: 90;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s;
}
body.contact-modal-open #theme-contact-overlay { opacity: 1; visibility: visible; }
#theme-contact-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -48%) scale(0.96);
	width: calc(100% - 2rem);
	max-width: 34rem;
	max-height: 90vh;
	overflow-y: auto;
	background-color: var(--color-background);
	box-shadow: var(--shadow-elevated);
	border-radius: var(--radius);
	z-index: 91;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s, transform 0.25s;
}
body.contact-modal-open #theme-contact-modal { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.theme-contact-modal-inner { position: relative; padding: 2rem; }
.theme-contact-modal-close { position: absolute; top: 1.25rem; right: 1.25rem; padding: 0.25rem; opacity: 0.6; 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-desc { color: var(--color-muted-foreground); margin-bottom: 1.25rem; }
.theme-contact-modal-info { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-contact-modal-info a { display: flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.theme-contact-modal-info a:hover { color: var(--color-foreground); }
.theme-form-row-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .theme-form-row-2 { grid-template-columns: 1fr 1fr; } }
.theme-form-field { margin-bottom: 1rem; }
.theme-form-field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.theme-form-field input, .theme-form-field textarea, .theme-contact-form input, .theme-contact-form textarea {
	width: 100%;
	padding: 0.625rem 0.75rem;
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	font-size: 1rem;
	color: var(--color-foreground);
	transition: box-shadow 0.3s;
}
.theme-contact-form textarea { resize: none; }
.theme-form-field input:focus, .theme-form-field textarea:focus {
	outline: none;
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent);
}
.theme-form-actions { display: flex; justify-content: flex-end; }
.theme-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	padding: 0.625rem 1.5rem;
	border-radius: 8px;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 0.9rem;
	transition: opacity 0.2s;
}
.theme-btn-primary:hover { opacity: 0.9; }
.theme-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background-color: transparent;
	border: 1px solid var(--color-border);
	color: var(--color-foreground);
	padding: 0.6rem 1.5rem;
	border-radius: 8px;
	font-family: var(--font-display);
	font-size: 0.875rem;
	transition: background-color 0.2s, color 0.2s;
}
.theme-btn-outline:hover { background-color: var(--color-accent); color: var(--color-accent-foreground); }
.theme-contact-form-note { text-align: center; font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 1rem; }
.theme-contact-success { text-align: center; padding: 2rem 0; }
.theme-contact-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	border-radius: 50%;
	margin-bottom: 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; }

/* ==========================================================================
   SIDE CART DRAWER
   ========================================================================== */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background-color: color-mix(in srgb, var(--color-foreground) 20%, transparent);
	z-index: 95;
	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-color: var(--color-background);
	z-index: 96;
	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-header h2 { font-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer-close { padding: 0.25rem; opacity: 0.6; transition: opacity 0.2s; }
.theme-cart-drawer-close:hover { opacity: 1; }
.theme-cart-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1.25rem; }
.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-item { display: flex; gap: 1rem; }
.theme-cart-item-image {
	position: relative;
	width: 5rem;
	height: 6rem;
	background-color: var(--color-secondary);
	overflow: hidden;
	flex-shrink: 0;
	display: block;
}
.theme-cart-item-info { flex: 1; min-width: 0; }
.theme-cart-item-name { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: opacity 0.2s; }
.theme-cart-item-name:hover { opacity: 0.7; }
.theme-cart-item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.theme-cart-item-variation { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.theme-cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-qty-btn { padding: 0.25rem; border-radius: 4px; transition: background-color 0.2s; }
.theme-cart-qty-btn:hover { background-color: var(--color-secondary); }
.theme-cart-qty-value { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-remove-btn { margin-left: auto; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s; }
.theme-cart-remove-btn:hover { color: var(--color-foreground); }
.theme-cart-item-total { font-size: 0.875rem; font-weight: 500; }
.theme-cart-drawer-footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-subtotal-value { font-weight: 500; }
.theme-cart-shipping-note { font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-cart-checkout-btn { width: 100%; padding: 0.875rem; }
.theme-cart-empty-btn { width: 100%; }

/* Section 11.4.2 — hide "View cart" injected after AJAX add */
.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;
}

/* ==========================================================================
   Section 14.1 — scoped WooCommerce notice visibility
   ========================================================================== */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message {
	display: none;
}
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	font-family: var(--font-body);
	border-top-color: var(--color-primary);
	padding: 1rem 1.5rem 1rem 3.5rem;
	border-radius: 8px;
	background-color: var(--color-secondary);
	color: var(--color-foreground);
	margin-bottom: 1.5rem;
}

/* ==========================================================================
   SECTION 11.4.1 — ADD TO CART BUTTON OVERRIDE
   ========================================================================== */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: none !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }

/* Card-scoped compact circular quick-add button overrides the global rules above. */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
	position: absolute !important;
	min-height: unset !important;
	width: 2.5rem !important;
	height: 2.5rem !important;
	padding: var(--btn-icon-padding) !important;
	border-radius: 50% !important;
	inset: auto 0.75rem 0.75rem auto !important;
}

/* ==========================================================================
   SINGLE PRODUCT PAGE
   ========================================================================== */
.theme-single-product { padding-top: 1.5rem; padding-bottom: 6rem; }
.theme-breadcrumb { padding: 1.5rem 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-breadcrumb a { transition: color 0.2s; }
.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; padding-top: 1rem; align-items: start; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }

.theme-product-main-image {
	position: relative;
	aspect-ratio: 1 / 1;
	background-color: var(--color-secondary);
	overflow: hidden;
	margin-bottom: 1rem;
}
.theme-product-thumbnails { display: flex; gap: 0.75rem; overflow-x: auto; flex-wrap: wrap; max-width: 100%; padding-bottom: 0.25rem; }
.theme-product-thumb {
	position: relative;
	width: 5rem;
	height: 5rem;
	flex-shrink: 0;
	overflow: hidden;
	background-color: var(--color-secondary);
}
.theme-product-thumb img { opacity: 0.6; transition: opacity 0.2s; }
.theme-product-thumb.is-active img, .theme-product-thumb:hover img { opacity: 1; }
.theme-product-thumb::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background-color: var(--color-foreground);
	opacity: 0;
	transition: opacity 0.2s;
}
.theme-product-thumb.is-active::after { opacity: 1; }

.theme-product-category { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-product-category a {
	color: inherit;
	pointer-events: none;
	cursor: default;
	text-decoration: none;
}
.product-title { font-size: 1.875rem; line-height: 1.1; margin-top: 0.75rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .product-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .product-title { font-size: 2.75rem; } }
.theme-product-price { font-size: 1.25rem; margin-bottom: 1.5rem; }
.theme-product-price del { opacity: 0.5; margin-right: 0.5rem; }
.theme-product-price ins { text-decoration: none; }
.theme-stock-indicator--oos { color: var(--color-destructive); font-weight: 500; margin-bottom: 1rem; }
.theme-product-short-desc { color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 2rem; overflow-wrap: break-word; word-break: break-word; }

.theme-attribute-group { margin-bottom: 1.5rem; }
.theme-attribute-label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.75rem; font-weight: 600; font-style: normal; font-family: var(--font-body); }
.theme-attribute-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	transition: all 0.2s;
}
.theme-attr-pill:hover { border-color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-attr-pill.is-selected { border-color: var(--color-foreground); background-color: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
.theme-attribute-pills:has(.theme-attr-pill--color) .theme-attr-pill.is-selected { background: transparent; }
.theme-attr-swatch { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 50%; border: 1px solid var(--color-border); }

/* Variations table layout (Section 11.5.1) */
.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 { display: none; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; }
.single-product .variations tbody td.value { padding-top: 0; }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); }
.theme-qty-minus, .theme-qty-plus { padding: 0.5rem 0.75rem; transition: background-color 0.2s; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-input {
	width: 3.5rem;
	text-align: center;
	border: none;
	background: transparent;
	font-size: 0.875rem;
	-moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-add-to-cart-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.theme-add-to-cart-area .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

.theme-accordions { margin-top: 2.5rem; border-top: 1px solid var(--color-border); }
.theme-accordion { border-bottom: 1px solid var(--color-border); }
.theme-accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; text-align: left; font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; }
.theme-accordion-chevron { transition: transform 0.2s; }
.theme-accordion.is-open .theme-accordion-chevron { transform: rotate(180deg); }
.theme-accordion-panel { padding-bottom: 1.5rem; font-size: 15px; color: var(--color-muted-foreground); line-height: 1.7; }
.theme-accordion-panel p { margin-bottom: 1rem; }
.theme-product-features-lead {
	font-size: 15px;
	color: var(--color-muted-foreground);
	line-height: 1.7;
	margin-bottom: 1rem;
	white-space: pre-line;
}
.theme-product-long-desc p { margin-bottom: 1rem; overflow-wrap: break-word; word-break: break-word; }
.theme-product-long-desc ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.theme-product-long-desc ul li {
	display: flex;
	align-items: flex-start;
	font-size: 15px;
	color: var(--color-muted-foreground);
	line-height: 1.7;
}
.theme-product-long-desc ul li::before {
	content: '';
	width: 0.25rem;
	height: 0.25rem;
	margin-top: 0.5rem;
	margin-right: 0.75rem;
	border-radius: 50%;
	background-color: var(--color-foreground);
	flex-shrink: 0;
}

.theme-related-products { padding: 5rem 0; border-top: 1px solid var(--color-border); margin-top: 2rem; }
.theme-related-header { text-align: center; margin-bottom: 3rem; }
.theme-related-eyebrow { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.theme-related-heading { font-size: 1.875rem; }
@media (min-width: 768px) { .theme-related-heading { font-size: 2.25rem; } }

/* ==========================================================================
   Section 11.13 — responsive safety nets
   ========================================================================== */
.woocommerce-product-details__short-description,
.woocommerce-variation-description,
.posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
}

/* ==========================================================================
   ARCHIVE / SHOP FALLBACK PAGE
   ========================================================================== */
.theme-archive-page { padding: 3rem 0 5rem; }
.theme-archive-header { text-align: center; margin-bottom: 2.5rem; }
.theme-archive-title { font-size: 2rem; margin-bottom: 0.5rem; }
.theme-archive-empty { text-align: center; color: var(--color-muted-foreground); padding: 3rem 0; }
.theme-archive-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.theme-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--color-border);
	border-radius: 6px;
}
.theme-archive-pagination .page-numbers.current { background-color: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }

/* ==========================================================================
   404
   ========================================================================== */
.theme-404-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; background-color: var(--color-secondary); }
.theme-404-inner { text-align: center; padding: 4rem 1.5rem; }
.theme-404-heading { font-size: 2.5rem; margin-bottom: 1rem; }
.theme-404-text { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-404-link { color: var(--color-primary); text-decoration: underline; transition: opacity 0.2s; }
.theme-404-link:hover { opacity: 0.8; }

/* ==========================================================================
   GENERIC PAGE / CHECKOUT PAGE TITLE
   ========================================================================== */
.theme-generic-page { padding-top: calc(var(--header-height) + 2rem); padding-bottom: 4rem; }
body.theme-no-hero .theme-generic-page { padding-top: calc(var(--header-height) + 2rem); }
.theme-page-container .page-title { font-size: 2rem; margin-bottom: 2rem; font-family: var(--font-display); }

/* ==========================================================================
   SECTION 13 — CHECKOUT BLOCK
   ========================================================================== */
body.woocommerce-checkout .site-main { padding-top: calc(var(--header-height) + 1rem); padding-bottom: 4rem; }
body.woocommerce-checkout .entry-content { max-width: 100%; }
body.woocommerce-checkout .page-title { margin-bottom: 2rem; }

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
	display: block;
}
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap);
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background-color: var(--color-background);
	padding: revert;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent);
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: var(--color-muted-foreground); }

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-secondary);
	border-radius: var(--card-radius);
	padding: var(--section-padding);
}
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(--btn-radius) !important;
	text-transform: none !important;
	font-family: var(--font-body) !important;
}
body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 8px;
	font-family: var(--font-body);
	grid-column: 1 / -1;
}
body.woocommerce-checkout .wc-block-cart-items {
	font-family: var(--font-body);
}

/* Classic shortcode selectors (fallback compatibility) */
.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select {
	font-family: var(--font-body);
	border: 1px solid var(--color-border);
	border-radius: 6px;
}

/* ==========================================================================
   SECTION 13.7 — Cart / My Account width parity
   ========================================================================== */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-top: calc(var(--header-height) + 1rem);
	padding-bottom: 4rem;
}
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
}

/* ==========================================================================
   SECTION 22.8 — THANK YOU PAGE
   ========================================================================== */
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);
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.9rem; }
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}
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 address {
	min-width: 0;
	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;
	}
}
.theme-thankyou-content { padding: 2rem 0 4rem; }
