/*
 * Curated by James — theme stylesheet.
 * Color tokens are HSL->hex derived from the source design (see inc/helpers.php
 * theme_hsl_to_hex()). Live values are re-emitted on :root via wp_add_inline_style
 * (inc/customizer.php) — the fallbacks below match the source defaults exactly.
 */

:root {
	--background: #f9f7f4;
	--foreground: #221d1b;
	--color-primary: #855058;
	--color-primary-foreground: #f9f6f0;
	--color-secondary: #ece7e0;
	--color-muted-foreground: #605850;
	--color-border: #dcd3c6;
	--color-accent: #ded0b7;
	--color-rosa: #855058;
	--color-marigold: #a97e46;
	--color-teal: #405358;
	--color-butter: #f0ebe1;
	--color-surface-deep: #221d1b;
	--color-surface-deep-foreground: #f0ece2;
	--logo-height: 60px;

	--font-display: 'Cormorant Garamond', Georgia, serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

	--radius: 0.5rem;
	--shadow-soft: 0 4px 20px -4px rgba(34, 29, 27, 0.08);
	--shadow-elevated: 0 12px 40px -12px rgba(34, 29, 27, 0.18);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
	--header-height: 80px;

	--btn-radius: 0;
	--btn-radius-pill: 9999px;
	--btn-height: 3.25rem;
	--btn-padding: 0 2.25rem;
	--btn-font-size: 0.75rem;
	--btn-font-weight: 500;
	--btn-letter-spacing: 0.25em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0;
	--color-button-text: var(--color-primary-foreground);
	--checkout-gap: 1.5rem;
	--card-radius: 0.75rem;
	--section-padding: 2rem;
}

/* ==========================================================================
   Base / Reset
   ========================================================================== */
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	margin: 0;
	line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
img.cover-img,
.theme-hero__image,
.theme-collection-tile__image,
.theme-product-card__image,
#product-main-img,
.theme-product-thumb img,
.owners-section__image-wrap img,
.services-section__image-wrap img,
.details-tile__image-wrap img,
.sourcing-section__image-main,
.gallery-section__link img,
.cta-band__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none;
}
img:not(.cover-img):not(.theme-hero__image):not(.theme-collection-tile__image):not(.theme-product-card__image):not(#product-main-img):not(.theme-product-thumb img):not(.cta-band__bg):not(.sourcing-section__image-main):not(.sourcing-section__image-overlay) {
	max-width: 100%;
	height: auto;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font-family: inherit; }
[role="button"], summary { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: -0.015em;
	margin: 0;
}

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide { padding-left: 2rem; padding-right: 2rem; }
}

.theme-section__pad { padding-top: 4rem; padding-bottom: 4rem; }
.theme-section__pad-lg { padding-top: 5rem; padding-bottom: 5rem; padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 768px) {
	.theme-section__pad { padding-top: 5rem; padding-bottom: 5rem; }
	.theme-section__pad-lg { padding-top: 7rem; padding-bottom: 7rem; padding-left: 3.5rem; padding-right: 3.5rem; }
}

.text-rosa { color: var(--color-rosa); }
.text-marigold { color: var(--color-marigold); }
.text-teal { color: var(--color-teal); }

/* ==========================================================================
   Animation & Motion (Section 2.1)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.reveal-up, .reveal-fade, .reveal-scale {
		opacity: 0;
		transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
		transition-delay: var(--delay, 0s);
	}
	.reveal-up { transform: translateY(32px); }
	.reveal-scale { transform: scale(0.96); }
	.reveal-up.is-visible, .reveal-fade.is-visible, .reveal-scale.is-visible {
		opacity: 1;
		transform: none;
	}
	.reveal-item, .scale-in-item {
		opacity: 0;
		transform: translateY(20px);
		transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
	}
	.reveal-item.is-visible, .scale-in-item.is-visible {
		opacity: 1;
		transform: none;
	}
}
/* Customizer preview fallback (Section 2.1.5) — never hide content in the editor. */
body.is-customizer .reveal-up,
body.is-customizer .reveal-fade,
body.is-customizer .reveal-scale,
body.is-customizer .reveal-item,
body.is-customizer .scale-in-item {
	opacity: 1 !important;
	transform: none !important;
}
/* No-JS / IntersectionObserver-unavailable fallback. */
html.no-observer .reveal-up,
html.no-observer .reveal-fade,
html.no-observer .reveal-scale,
html.no-observer .reveal-item,
html.no-observer .scale-in-item {
	opacity: 1 !important;
	transform: none !important;
}

@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes theme-slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.theme-animate-fade-in { animation: theme-fade-in 0.6s var(--transition-smooth) forwards; }
.theme-animate-slide-in { animation: theme-slide-up 0.4s var(--transition-smooth) forwards; }

.theme-link-underline {
	position: relative;
	display: inline-block;
	font-family: var(--font-body);
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	background: none;
	border: none;
	padding: 0;
	color: inherit;
	cursor: pointer;
}
.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); }
.theme-link-underline--display { font-family: var(--font-display); font-weight: 500; letter-spacing: 0.28em; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: var(--btn-radius);
	min-height: var(--btn-height);
	padding: var(--btn-padding);
	font-family: var(--font-display);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	transition: opacity 0.2s ease, background-color 0.2s ease;
	cursor: pointer;
	white-space: nowrap;
}
.theme-btn:hover { opacity: 0.9; }
.theme-btn-primary { background: var(--foreground); color: var(--background); }
.theme-btn-hero-primary { background: var(--background); color: var(--foreground); text-transform: uppercase; }
.theme-btn-hero-primary:hover { background: color-mix(in srgb, var(--background) 90%, transparent); }
.theme-btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--foreground); }
.theme-btn-outline:hover { opacity: 1; border-color: var(--foreground); }
.theme-btn-rosa { background: var(--color-rosa); color: var(--color-primary-foreground); }
.theme-btn-dark { background: var(--foreground); color: var(--background); }
.btn-hero-primary, .btn-hero-outline { text-transform: none; }

/* ==========================================================================
   Announcement bar
   ========================================================================== */
.theme-announcement-bar { position: relative; background: var(--foreground); color: var(--background); }
.theme-announcement-bar__inner { padding: 0.5rem 1.5rem; text-align: center; }
.theme-announcement-bar__text { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; margin: 0; }
.theme-announcement-bar__dismiss {
	position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
	padding: 0.25rem; opacity: 0.7; color: inherit;
}
.theme-announcement-bar__dismiss:hover { opacity: 1; }
.theme-announcement-bar.is-dismissed { display: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; left: 0; right: 0; z-index: 50;
	background: var(--background);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-solid,
.site-header.is-scrolled {
	background: color-mix(in srgb, var(--background) 95%, transparent);
	border-bottom-color: var(--color-border);
	backdrop-filter: blur(6px);
}
.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; min-width: 0; }
.site-logo-text-wrap { display: flex; flex-direction: column; line-height: 1; }
.site-logo-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; letter-spacing: -0.01em; color: var(--foreground); white-space: nowrap; }
.site-logo-text--footer { font-size: 1.25rem; }
.site-logo-text__by { font-style: italic; color: var(--color-primary); }
.site-logo-tagline { display: none; font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--color-muted-foreground); margin-top: 0.25rem; }
@media (min-width: 640px) { .site-logo-tagline { display: block; } }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; }

.site-header__center-nav { display: none; position: absolute; left: 50%; transform: translateX(-50%); align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .site-header__center-nav { 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-weight: 500; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
	position: relative; display: inline-block; color: inherit; transition: color 0.3s ease; cursor: pointer;
}
.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; color: inherit; transition: opacity 0.2s ease; cursor: pointer; }
.site-header__icon-btn:hover { opacity: 0.6; }
.site-header__search-btn { display: none; }
@media (min-width: 768px) { .site-header__search-btn { display: inline-flex; } }
.site-header__menu-btn { display: inline-flex; }
@media (min-width: 1024px) { .site-header__menu-btn { display: none; } }
.theme-cart-count {
	position: absolute; top: -2px; right: -2px; width: 20px; height: 20px;
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 500; background: var(--color-primary); color: var(--color-primary-foreground);
	border-radius: 50%;
}
.theme-cart-count:empty { display: none; }

.site-header__mobile-menu {
	display: block;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(-10px);
	border-top: 1px solid transparent;
	padding: 0;
	transition:
		max-height 0.45s var(--transition-smooth),
		opacity 0.35s var(--transition-smooth),
		transform 0.35s var(--transition-smooth),
		padding 0.35s var(--transition-smooth),
		border-color 0.35s ease;
}
.site-header__mobile-menu.is-open {
	max-height: 28rem;
	opacity: 1;
	transform: translateY(0);
	border-top-color: var(--color-border);
	padding: 1rem 0 1.25rem;
}
.theme-nav-list--mobile, .theme-footer-nav-list { display: flex; flex-direction: column; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.theme-nav-list--mobile .theme-nav-link {
	text-align: left;
	font-size: 13px;
	letter-spacing: 0.18em;
	padding: 0.65rem 0;
	opacity: 0;
	transform: translateX(-14px);
	transition:
		opacity 0.35s var(--transition-smooth),
		transform 0.35s var(--transition-smooth),
		color 0.3s ease;
}
.site-header__mobile-menu.is-open .theme-nav-list--mobile .theme-nav-link {
	opacity: 1;
	transform: translateX(0);
}
.site-header__mobile-menu.is-open .theme-nav-list--mobile li:nth-child(1) .theme-nav-link { transition-delay: 0.05s; }
.site-header__mobile-menu.is-open .theme-nav-list--mobile li:nth-child(2) .theme-nav-link { transition-delay: 0.1s; }
.site-header__mobile-menu.is-open .theme-nav-list--mobile li:nth-child(3) .theme-nav-link { transition-delay: 0.15s; }
.site-header__mobile-menu.is-open .theme-nav-list--mobile li:nth-child(4) .theme-nav-link { transition-delay: 0.2s; }
.site-header__mobile-menu.is-open .theme-nav-list--mobile li:nth-child(5) .theme-nav-link { transition-delay: 0.25s; }
.site-header__mobile-menu.is-open .theme-nav-list--mobile li:nth-child(6) .theme-nav-link { transition-delay: 0.3s; }
@media (min-width: 1024px) { .site-header__mobile-menu { display: none !important; } }

.theme-collection-tile,
.details-tile,
.gallery-section__link,
.theme-category-pill,
.theme-icon-square-btn,
.theme-product-card,
.theme-product-thumb,
.theme-attr-pill,
.theme-cart-qty-btn,
.theme-cart-remove-btn,
.theme-announcement-bar__dismiss,
.theme-accordion-trigger,
.shop-section__price-toggle { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
	.site-header__mobile-menu,
	.theme-nav-list--mobile .theme-nav-link {
		transition: none !important;
	}
	.site-header__mobile-menu.is-open .theme-nav-list--mobile .theme-nav-link {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   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 right, color-mix(in srgb, var(--foreground) 55%, transparent), color-mix(in srgb, var(--foreground) 25%, transparent), transparent);
}
.theme-hero__content { position: relative; height: 100%; display: flex; align-items: center; }
.theme-hero__inner { max-width: 36rem; }
.theme-hero__title {
	font-family: var(--font-display); font-weight: 400; font-size: 3rem; line-height: 1.05;
	color: var(--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(--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; } }

body.theme-no-hero .theme-hero__media { display: none; }

/* ==========================================================================
   Shared section heading system (Section 2.2.5 — per-section scales)
   ========================================================================== */
.theme-section-heading__kicker {
	display: block; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
	font-family: var(--font-body); margin-bottom: 0.75rem;
}
.theme-section-heading--center { text-align: center; margin-bottom: 2.5rem; }
.theme-featured-products .theme-section-heading--center { margin-bottom: 3.5rem; }
.theme-section-cta { text-align: center; margin-top: 3.5rem; }
.theme-section-heading__title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; }
@media (min-width: 768px) { .theme-section-heading__title { font-size: 2.25rem; } }
.theme-section-heading__title--lg { font-size: 1.875rem; }
@media (min-width: 768px) { .theme-section-heading__title--lg { font-size: 3rem; } }

.about-section .section-heading { font-size: 1.875rem; font-weight: 600; line-height: 1.25; margin-bottom: 2rem; }
@media (min-width: 768px) { .about-section .section-heading { font-size: 2.25rem; } }

.services-section__title { font-size: 2.25rem; font-weight: 400; line-height: 1.05; letter-spacing: -0.015em; }
@media (min-width: 768px) { .services-section__title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .services-section__title { font-size: 4.5rem; } }

.shop-heading, .gallery-section__title { font-size: 1.875rem; font-weight: 400; }
@media (min-width: 768px) { .shop-heading, .gallery-section__title { font-size: 3rem; } }
@media (min-width: 1024px) { .gallery-section__title { font-size: 3.75rem; } }

.cta-band__title { font-size: 1.875rem; font-weight: 400; line-height: 1.25; }
@media (min-width: 768px) { .cta-band__title { font-size: 3rem; } }
@media (min-width: 1024px) { .cta-band__title { font-size: 3.75rem; } }

/* ==========================================================================
   Collection tiles
   ========================================================================== */
.theme-collection-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .theme-collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.theme-collection-tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; display: block; width: 100%; padding: 0; text-align: left; }
.theme-collection-tile__gradient {
	position: absolute; inset: 0;
	background: linear-gradient(to top, color-mix(in srgb, var(--foreground) 85%, transparent), color-mix(in srgb, var(--foreground) 40%, transparent), color-mix(in srgb, var(--foreground) 10%, transparent));
	transition: background 0.5s ease;
}
.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(--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-bar { height: 1px; width: 1.5rem; background: currentColor; }
.theme-collection-tile__label { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; margin-bottom: 0.5rem; color: var(--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; color: var(--background); }

/* ==========================================================================
   About section
   ========================================================================== */
.about-section__inner { max-width: 42rem; margin: 0 auto; text-align: center; }
.about-section__text { color: color-mix(in srgb, var(--foreground) 80%, transparent); line-height: 1.7; margin-bottom: 1.25rem; }

/* ==========================================================================
   Owners / Founder
   ========================================================================== */
.owners-section__grid { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .owners-section__grid { grid-template-columns: 1fr 1fr; } }
.owners-section__image-wrap { position: relative; min-height: 380px; }
@media (min-width: 768px) { .owners-section__image-wrap { min-height: 520px; } }
@media (min-width: 1024px) { .owners-section__image-wrap { min-height: 620px; } }
.owners-section__image-wrap img { object-position: top; }
.owners-section__content { display: flex; align-items: center; padding: 4rem 1.5rem; }
@media (min-width: 768px) { .owners-section__content { padding: 6rem 3.5rem; } }
@media (min-width: 1280px) { .owners-section__content { padding: 6rem 6rem; } }
.owners-section__content-inner { max-width: 36rem; }
.owners-section__name { font-size: 2.25rem; font-weight: 400; line-height: 1.15; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .owners-section__name { font-size: 3rem; } }
@media (min-width: 1024px) { .owners-section__name { font-size: 3.75rem; } }
.owners-section__quote { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: color-mix(in srgb, var(--foreground) 85%, transparent); line-height: 1.35; margin-bottom: 2rem; }
@media (min-width: 768px) { .owners-section__quote { font-size: 1.5rem; } }

/* ==========================================================================
   Services / approach
   ========================================================================== */
.services-section { background: var(--color-butter); }
.services-section__heading { text-align: center; padding: 5rem 1.5rem; }
@media (min-width: 768px) { .services-section__heading { padding: 7rem 3.5rem; } }
.services-section__row { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .services-section__row { grid-template-columns: 1fr 1fr; } }
.services-section__image-wrap { position: relative; min-height: 360px; }
@media (min-width: 768px) { .services-section__image-wrap { min-height: 500px; } }
@media (min-width: 1024px) {
	.services-section__image-wrap { min-height: 560px; order: 1; }
	.services-section__content { order: 2; }
	.services-section__row.is-reversed .services-section__image-wrap { order: 2; }
	.services-section__row.is-reversed .services-section__content { order: 1; }
}
.services-section__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(--background) 85%, transparent); backdrop-filter: blur(4px);
}
.services-section__content { display: flex; align-items: center; background: var(--color-butter); padding: 4rem 1.5rem; }
@media (min-width: 768px) { .services-section__content { padding: 6rem 3.5rem; } }
@media (min-width: 1280px) { .services-section__content { padding: 6rem 6rem; } }
.services-section__content-inner { max-width: 36rem; }
.services-section__icon-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.services-section__icon { display: flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid; }
.services-section__kicker { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; }
.services-section__row-title { font-size: 2.25rem; line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -0.015em; }
@media (min-width: 768px) { .services-section__row-title { font-size: 3rem; } }
@media (min-width: 1024px) { .services-section__row-title { font-size: 3.75rem; } }
.services-section__description { font-size: 1rem; color: var(--color-muted-foreground); line-height: 1.7; }
@media (min-width: 768px) { .services-section__description { font-size: 1.125rem; } }
.border-rosa { border-color: color-mix(in srgb, var(--color-rosa) 40%, transparent); }
.border-marigold { border-color: color-mix(in srgb, var(--color-marigold) 50%, transparent); }
.border-teal { border-color: color-mix(in srgb, var(--color-teal) 40%, transparent); }

/* ==========================================================================
   Details highlight band (dark)
   ========================================================================== */
.details-section { background: var(--color-surface-deep); color: var(--color-surface-deep-foreground); }
.details-section__heading { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.details-section__title { font-size: 2.25rem; line-height: 1.05; letter-spacing: -0.015em; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .details-section__title { font-size: 3rem; } }
@media (min-width: 1024px) { .details-section__title { font-size: 3.75rem; } }
.details-section__title-italic { display: block; font-style: italic; }
.details-section__text { font-family: var(--font-body); color: color-mix(in srgb, var(--color-surface-deep-foreground) 75%, transparent); line-height: 1.7; }

.details-tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 768px) { .details-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
@media (min-width: 1024px) { .details-tile-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.details-tile { display: block; text-align: left; }
.details-tile__image-wrap { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: color-mix(in srgb, var(--color-surface-deep-foreground) 5%, transparent); }
.details-tile:hover .details-tile__image-wrap img { transform: scale(1.05); }
.details-tile__image-wrap img { transition: transform 0.6s var(--transition-smooth); }
.details-tile__info { padding-top: 0.75rem; display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; min-width: 0; }
.details-tile__label { font-size: 0.875rem; line-height: 1.3; color: var(--color-surface-deep-foreground); font-weight: 400; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (min-width: 768px) { .details-tile__label { font-size: 1rem; } }
.details-tile__price { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; flex-shrink: 0; }

.details-section__footer { margin-top: 4rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.details-section__footer-kicker { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; }
.details-section__footer-bar { height: 1px; width: 2rem; background: color-mix(in srgb, var(--color-marigold) 60%, transparent); }
.details-section__footer-quote { margin-top: 1.25rem; font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.35; color: var(--color-surface-deep-foreground); }
@media (min-width: 768px) { .details-section__footer-quote { font-size: 1.875rem; } }
.details-section__footer-sub { margin-top: 0.75rem; color: color-mix(in srgb, var(--color-surface-deep-foreground) 60%, transparent); font-size: 0.875rem; letter-spacing: 0.02em; }

/* ==========================================================================
   Personal Sourcing Service section (matches Lovable #hecho-en-mexico)
   ========================================================================== */
.sourcing-section { background: var(--background); scroll-margin-top: 6rem; }
.sourcing-section__grid { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .sourcing-section__grid { grid-template-columns: 1fr 1fr; } }
.sourcing-section__image-wrap {
	position: relative;
	min-height: 420px;
	overflow: hidden;
}
@media (min-width: 768px) { .sourcing-section__image-wrap { min-height: 560px; } }
@media (min-width: 1024px) {
	.sourcing-section__image-wrap { min-height: 640px; order: 2; }
}
.sourcing-section__image-wrap .sourcing-section__image-main {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none;
	display: block;
}
.sourcing-section__image-wrap .sourcing-section__image-overlay {
	position: absolute;
	top: auto;
	right: auto;
	bottom: 1.5rem;
	left: 1.5rem;
	width: 8rem;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	max-width: none;
	display: block;
	box-shadow: var(--shadow-elevated);
	border: 4px solid var(--background);
	z-index: 1;
}
@media (min-width: 768px) { .sourcing-section__image-wrap .sourcing-section__image-overlay { width: 11rem; } }
@media (min-width: 1024px) { .sourcing-section__image-wrap .sourcing-section__image-overlay { width: 13rem; } }
.sourcing-section__content {
	display: flex;
	align-items: center;
	background: var(--background);
	padding: 4rem 1.5rem;
}
@media (min-width: 768px) { .sourcing-section__content { padding: 6rem 3.5rem; } }
@media (min-width: 1024px) {
	.sourcing-section__content { padding: 6rem 5rem; order: 1; }
}
@media (min-width: 1280px) { .sourcing-section__content { padding: 6rem 6rem; } }
.sourcing-section__content-inner { max-width: 36rem; }
.sourcing-section .theme-section-heading__kicker { margin-bottom: 1.25rem; }
.sourcing-section__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 2.25rem;
	line-height: 1.05;
	letter-spacing: -0.015em;
	margin-bottom: 1.75rem;
}
@media (min-width: 768px) { .sourcing-section__title { font-size: 3rem; } }
@media (min-width: 1024px) { .sourcing-section__title { font-size: 3.75rem; } }
.sourcing-section__title-italic { display: block; font-style: italic; }
.sourcing-section__text {
	color: color-mix(in srgb, var(--foreground) 80%, transparent);
	font-family: var(--font-body);
	line-height: 1.625;
	margin-bottom: 1.5rem;
}
.sourcing-section__text-italic {
	font-style: italic;
	color: color-mix(in srgb, var(--foreground) 70%, transparent);
	font-family: var(--font-body);
	line-height: 1.625;
	margin-bottom: 2.5rem;
}
.sourcing-section .theme-btn-rosa {
	min-height: auto;
	padding: 1rem 2.25rem;
	font-size: 11px;
	letter-spacing: 0.28em;
	color: var(--background);
	text-transform: uppercase;
}
.sourcing-section .theme-btn-rosa:hover {
	background: color-mix(in srgb, var(--color-rosa) 90%, transparent);
	opacity: 1;
}

/* ==========================================================================
   Gallery / Lookbook
   ========================================================================== */
.gallery-section__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.gallery-section__track-wrap { overflow: hidden; }
.gallery-section__track { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; padding-left: 1.5rem; padding-right: 1.5rem; scrollbar-width: none; }
.gallery-section__track::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .gallery-section__track { gap: 1.5rem; padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1024px) { .gallery-section__track { padding-left: 4rem; padding-right: 4rem; } }
.gallery-section__item { flex-shrink: 0; width: 78%; }
@media (min-width: 640px) { .gallery-section__item { width: 55%; } }
@media (min-width: 768px) { .gallery-section__item { width: 40%; } }
@media (min-width: 1024px) { .gallery-section__item { width: 30%; } }
@media (min-width: 1280px) { .gallery-section__item { width: 26%; } }
.gallery-section__link { display: block; position: relative; overflow: hidden; aspect-ratio: 4/5; }
.gallery-section__link:hover img { transform: scale(1.04); }
.gallery-section__link img { transition: transform 0.9s var(--transition-smooth); object-position: top; }
.gallery-section__controls { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; }

/* Gallery lightbox */
#theme-gallery-lightbox-overlay {
	position: fixed; inset: 0; z-index: 100;
	background: rgba(0, 0, 0, 0.88);
	opacity: 0; visibility: hidden;
	transition: opacity 0.25s ease;
}
#theme-gallery-lightbox {
	position: fixed; inset: 0; z-index: 101;
	display: flex; align-items: center; justify-content: center;
	padding: 1.5rem;
	opacity: 0; visibility: hidden;
	transition: opacity 0.25s ease;
	pointer-events: none;
}
body.gallery-lightbox-open { overflow: hidden; }
body.gallery-lightbox-open #theme-gallery-lightbox-overlay { opacity: 1; visibility: visible; }
body.gallery-lightbox-open #theme-gallery-lightbox { opacity: 1; visibility: visible; pointer-events: auto; }
.theme-gallery-lightbox__figure { margin: 0; max-width: min(92vw, 72rem); width: 100%; text-align: center; }
.theme-gallery-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 8rem);
	width: auto;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
	box-shadow: var(--shadow-elevated);
}
.theme-gallery-lightbox__caption {
	margin-top: 1rem;
	font-family: var(--font-body);
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--background) 85%, transparent);
}
.theme-gallery-lightbox__counter {
	margin-top: 0.5rem;
	font-size: 12px;
	letter-spacing: 0.18em;
	color: color-mix(in srgb, var(--background) 60%, transparent);
}
.theme-gallery-lightbox__close,
.theme-gallery-lightbox__nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--background);
	background: color-mix(in srgb, var(--background) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--background) 25%, transparent);
	transition: background-color 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
}
.theme-gallery-lightbox__close:hover,
.theme-gallery-lightbox__nav:hover {
	background: color-mix(in srgb, var(--background) 20%, transparent);
	border-color: color-mix(in srgb, var(--background) 45%, transparent);
}
.theme-gallery-lightbox__close {
	top: 1rem; right: 1rem;
	width: 2.5rem; height: 2.5rem;
}
.theme-gallery-lightbox__nav {
	top: 50%; transform: translateY(-50%);
	width: 2.75rem; height: 2.75rem;
}
.theme-gallery-lightbox__nav--prev { left: 1rem; }
.theme-gallery-lightbox__nav--next { right: 1rem; }
@media (max-width: 640px) {
	.theme-gallery-lightbox__nav--prev { left: 0.5rem; }
	.theme-gallery-lightbox__nav--next { right: 0.5rem; }
}

.theme-icon-square-btn {
	height: 3rem; width: 3rem; display: flex; align-items: center; justify-content: center;
	border: 1px solid color-mix(in srgb, var(--foreground) 20%, transparent); color: color-mix(in srgb, var(--foreground) 70%, transparent);
	transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-icon-square-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* ==========================================================================
   Shop section
   ========================================================================== */
.shop-section__search { position: relative; max-width: 28rem; margin: 0 auto 2rem; }
.shop-section__search svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.shop-section__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(--foreground); outline: none; transition: border-color 0.2s ease;
}
.shop-section__search input:focus { border-color: var(--foreground); }
.shop-section__categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.theme-category-pill {
	padding: 0.5rem 1.25rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-family: var(--font-body);
	border-radius: var(--btn-radius-pill); border: 1px solid var(--color-border); background: transparent; color: var(--foreground);
	transition: all 0.3s ease;
}
.theme-category-pill:hover { border-color: var(--color-rosa); color: var(--color-rosa); }
.theme-category-pill.is-active { background: var(--color-rosa); color: var(--color-primary-foreground); border-color: var(--color-rosa); }

.shop-section__price-filter-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.shop-section__price-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 ease;
}
.shop-section__price-toggle:hover { color: var(--foreground); }
.shop-section__price-toggle svg { transition: transform 0.3s ease; }
.shop-section__price-toggle.is-open svg { transform: rotate(180deg); }
.shop-section__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); }
.shop-section__price-panel.is-open { max-height: 12rem; opacity: 1; padding: 0.5rem 0; }
.price-range-labels { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.5rem; }

.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; border-radius: 999px; }
.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; height: 20px; width: 20px; border-radius: 50%; border: 2px solid var(--color-primary); background: var(--background); cursor: pointer; }
.range-input::-moz-range-thumb { pointer-events: auto; height: 20px; width: 20px; border-radius: 50%; border: 2px solid var(--color-primary); background: var(--background); cursor: pointer; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.theme-shop-grid-item.is-hidden-initial,
.theme-shop-grid-item.is-filtered-out { display: none; }
.shop-section__show-more { text-align: center; margin-top: 3rem; }
.shop-section__show-more.is-hidden { display: none; }
.shop-section__empty { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); }

/* ==========================================================================
   Product grid + cards (shared across shop, homepage, related — Section 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: 2rem; } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.theme-product-grid--featured { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 2rem; }
@media (min-width: 768px) { .theme-product-grid--featured { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.theme-product-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (min-width: 1024px) { .theme-product-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }

.theme-product-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.theme-product-card__image-wrapper {
	position: relative; aspect-ratio: 3/4; background: var(--color-secondary); overflow: hidden; margin-bottom: 1.25rem;
}
.theme-product-card__image-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
}
.theme-product-card:hover .theme-product-card__image { transform: scale(1.04); }
.theme-product-card__image { transition: transform 0.7s var(--transition-smooth); }
.theme-product-card__image.is-sold-out { opacity: 0.6; }
.theme-product-card__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: var(--foreground); color: var(--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; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: var(--background); color: var(--foreground);
	box-shadow: var(--shadow-soft); opacity: 0; transition: opacity 0.3s ease, transform 0.15s ease;
	z-index: 2; border: none; padding: 0; cursor: pointer;
}
@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__quick-add:active { transform: scale(0.92); }
.theme-product-card__info { flex: 1; text-align: center; margin-top: 1rem; min-width: 0; }
.theme-product-card__title {
	font-size: 0.875rem; font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em;
	line-height: 1.4; color: var(--foreground); transition: color 0.3s ease; margin-bottom: 0.5rem;
}
.theme-product-card__title a { color: inherit; text-decoration: none; }
@media (min-width: 768px) { .theme-product-card__title { font-size: 1rem; } }
.theme-product-card:hover .theme-product-card__title,
.theme-product-card:hover .theme-product-card__title a { color: var(--color-primary); }
.theme-product-card__price { font-size: 1rem; color: var(--foreground); font-weight: 400; }
@media (min-width: 768px) { .theme-product-card__price { font-size: 1.125rem; } }
.theme-product-card__price del { color: var(--color-muted-foreground); margin-right: 0.35rem; }
.theme-product-card__price ins { text-decoration: none; }

.theme-no-products { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); }

/* ==========================================================================
   Final CTA band
   ========================================================================== */
.cta-band { position: relative; background: var(--color-butter); overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; }
.cta-band__wrap { position: relative; padding: 6rem 1.5rem; }
@media (min-width: 768px) { .cta-band__wrap { padding: 8rem 2rem; } }
.cta-band__card {
	max-width: 42rem; margin: 0 auto; text-align: center; background: color-mix(in srgb, var(--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) { .cta-band__card { padding: 4rem 3.5rem; } }
.cta-band__text { color: color-mix(in srgb, var(--foreground) 80%, transparent); line-height: 1.7; margin: 1.5rem 0 2.5rem; max-width: 26rem; margin-left: auto; margin-right: auto; }
.cta-band__actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; }
@media (min-width: 640px) { .cta-band__actions { flex-direction: row; } }

/* ==========================================================================
   Footer (matches Lovable layout)
   ========================================================================== */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-butter); }
.site-footer > .container-wide { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) {
	.site-footer > .container-wide { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}
.site-footer__row { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) {
	.site-footer__row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.site-footer .site-logo-tagline { display: block; font-family: var(--font-body); }
.site-footer__brand { display: flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; }
.site-footer__nav .theme-footer-nav-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (min-width: 768px) {
	.site-footer__nav .theme-footer-nav-list { gap: 1.75rem; }
}
.site-footer .theme-footer-nav-list a,
.site-footer .theme-footer-nav-list .theme-nav-link {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	text-decoration: none;
	transition: color 0.2s ease;
}
.site-footer .theme-footer-nav-list a::after,
.site-footer .theme-footer-nav-list .theme-nav-link::after { display: none; }
.site-footer .theme-footer-nav-list a:hover,
.site-footer .theme-footer-nav-list .theme-nav-link:hover { color: var(--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-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	transition: color 0.2s ease;
}
.site-footer__contact-link:hover { color: var(--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;
	justify-content: space-between;
	gap: 0.75rem;
	text-align: center;
}
@media (min-width: 640px) {
	.site-footer__bottom { flex-direction: row; align-items: center; text-align: left; }
}
.site-footer__copyright,
.site-footer__credit {
	font-family: var(--font-body);
	font-size: 12px;
	color: var(--color-muted-foreground);
	letter-spacing: 0.025em;
	margin: 0;
}
.site-footer__credit a { text-decoration: underline; transition: color 0.2s ease; }
.site-footer__credit a:hover { color: var(--foreground); }
.site-footer__credit strong { font-weight: 600; }

/* ==========================================================================
   Contact modal
   ========================================================================== */
#theme-contact-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0.6); opacity: 0; visibility: hidden; transition: opacity 0.25s ease; }
body.contact-open #theme-contact-overlay { opacity: 1; visibility: visible; }
#theme-contact-modal {
	position: fixed; left: 50%; top: 50%; z-index: 91; width: calc(100% - 2rem); max-width: 32rem; max-height: 90vh; overflow-y: auto;
	background: var(--background); border: 1px solid var(--color-border); border-radius: 0.75rem; box-shadow: var(--shadow-elevated);
	transform: translate(-50%, -48%) scale(0.96); opacity: 0; visibility: hidden; transition: opacity 0.2s ease, transform 0.2s ease;
}
body.contact-open #theme-contact-modal { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.theme-contact-modal__inner { padding: 1.5rem; position: relative; }
.theme-contact-modal__close { position: absolute; right: 1rem; top: 1rem; padding: 0.35rem; opacity: 0.7; }
.theme-contact-modal__close:hover { opacity: 1; }
.theme-contact-modal__title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; padding-right: 1.5rem; }
.theme-contact-modal__desc { font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1.25rem; }
.theme-contact-modal__meta { display: flex; flex-wrap: wrap; 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 ease; }
.theme-contact-modal__meta a:hover { color: var(--foreground); }
.theme-contact-modal__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-contact-modal__grid { 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 {
	width: 100%; padding: 0.625rem 0.75rem; background: var(--background); border: 1px solid var(--color-border); border-radius: 0.375rem;
	font-size: 1rem; color: var(--foreground); transition: box-shadow 0.3s ease; outline: none;
}
.theme-form-field input:focus, .theme-form-field textarea:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent); }
.theme-form-field textarea { resize: none; }
.theme-contact-modal__submit-row { display: flex; justify-content: flex-end; }
.theme-contact-modal__success { text-align: center; padding: 2rem 0; }
.theme-contact-modal__success-icon {
	width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--color-primary); color: var(--color-primary-foreground);
	display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.theme-contact-modal__success h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-contact-modal__success p { font-size: 0.875rem; color: var(--color-muted-foreground); margin: 0; }

/* ==========================================================================
   Side cart drawer
   ========================================================================== */
#theme-cart-overlay { position: fixed; inset: 0; z-index: 95; background: color-mix(in srgb, var(--foreground) 20%, transparent); opacity: 0; visibility: hidden; transition: opacity 0.25s ease; }
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; z-index: 96;
	background: var(--background); 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; opacity: 0.7; }
.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; color: var(--color-muted-foreground); }
.theme-cart-drawer__empty svg { margin-bottom: 1rem; }
.theme-cart-drawer__empty p { margin-bottom: 1.5rem; }
.theme-cart-drawer__items { flex: 1; overflow: 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; background: var(--color-secondary); overflow: hidden; display: block; }
.theme-cart-drawer__item-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.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, .theme-cart-drawer__item-variation { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.theme-cart-drawer__item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-qty-btn { padding: 0.25rem; border-radius: 0; transition: background-color 0.2s ease; display: flex; }
.theme-cart-qty-btn:hover { background: 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 ease; }
.theme-cart-remove-btn:hover { color: var(--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-value { font-weight: 500; }
.theme-cart-drawer__shipping-note { font-size: 0.875rem; color: var(--color-muted-foreground); margin: 0; }
.theme-cart-drawer__checkout-btn { width: 100%; }
.theme-cart-drawer__empty-btn { width: 100%; }

/* Hide "View cart" injected by WooCommerce after AJAX add-to-cart. */
.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; }

/* ==========================================================================
   Single product page
   ========================================================================== */
.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: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-breadcrumb a { transition: color 0.2s ease; }
.theme-breadcrumb a:hover { color: var(--foreground); }
.theme-breadcrumb__sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb__current { color: var(--foreground); }

.theme-product-layout {
	display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 1rem 0 6rem; align-items: start; min-width: 0;
}
@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-gallery { display: flex; flex-direction: column; gap: 1rem; }
.theme-product-gallery__main { position: relative; aspect-ratio: 1/1; background: var(--color-secondary); overflow: hidden; }
.theme-product-thumbnails { display: flex; gap: 0.75rem; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumb { position: relative; width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden; background: var(--color-secondary); border: none; padding: 0; opacity: 0.6; transition: opacity 0.2s ease; }
.theme-product-thumb:hover, .theme-product-thumb.is-active { opacity: 1; }
.theme-product-thumb::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--foreground); opacity: 0; transition: opacity 0.2s ease; }
.theme-product-thumb.is-active::after { opacity: 1; }

.theme-product-info__cat { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-muted-foreground); }
.product-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; text-transform: none; font-style: normal; }
@media (min-width: 768px) { .product-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .product-title { font-size: 2.75rem; } }
.theme-product-info__price { font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--foreground); }
.theme-product-info__price del { color: var(--color-muted-foreground); margin-right: 0.5rem; }
.theme-product-info__price ins { text-decoration: none; }
.theme-stock-indicator { font-size: 0.875rem; margin-bottom: 1.5rem; }
.theme-stock-indicator--out { color: var(--foreground); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

.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 ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input { width: 3rem; min-width: 44px; text-align: center; border: none; background: transparent; padding: 0.5rem 0; -moz-appearance: textfield; }
.theme-qty-input::-webkit-inner-spin-button, .theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.single-product .theme-add-to-cart-area {
	display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0;
}
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

/* Variations table layout. */
.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.5rem; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.single-product .variations tbody td.value { padding-top: 0; padding-bottom: 1rem; }
.theme-attr-select-hidden { display: none !important; }
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-pill {
	padding: 0.5rem 1rem; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; border: 1px solid var(--color-border);
	border-radius: var(--btn-radius-pill); transition: all 0.2s ease; background: transparent; color: var(--foreground);
}
.theme-attr-pill:hover { border-color: color-mix(in srgb, var(--foreground) 60%, transparent); }
.theme-attr-pill.is-selected { background: var(--foreground); color: var(--background); border-color: var(--foreground); }

.theme-details-heading { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; margin: 1.5rem 0 0.75rem; font-family: var(--font-body); font-weight: 600; }

.theme-product-accordion { margin-top: 2.5rem; border-top: 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; border-bottom: 1px solid var(--color-border); }
.theme-accordion-trigger span { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; }
.theme-accordion-trigger svg { transition: transform 0.2s ease; }
.theme-accordion-trigger.is-open svg { transform: rotate(180deg); }
.theme-accordion-panel { display: none; padding-bottom: 1.5rem; font-size: 15px; color: var(--color-muted-foreground); line-height: 1.7; }
.theme-accordion-panel.is-open { display: block; }
.theme-accordion-panel p { margin: 0 0 1rem; }
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

.related-products-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.theme-related-heading { text-align: center; margin-bottom: 3rem; }
.theme-related-heading__kicker { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.theme-related-heading__title { font-size: 1.875rem; font-weight: 400; }
@media (min-width: 768px) { .theme-related-heading__title { font-size: 2.25rem; } }

/* Add-to-cart button style override (Section 11.4.1) */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
/* PDP add-to-cart — pill shape matches Lovable ProductDetail. */
.single-product .single_add_to_cart_button.button,
.single-product a.single_add_to_cart_button.button {
	border-radius: var(--btn-radius-pill) !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;
}
/* Card compact quick-add button — overrides the global rules above. */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
	min-height: unset !important;
	padding: var(--btn-icon-padding) !important;
	border-radius: 50% !important;
	width: 2.5rem !important;
	height: 2.5rem !important;
	background-color: var(--background) !important;
	color: var(--foreground) !important;
	box-shadow: var(--shadow-soft);
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart:hover { opacity: 1 !important; background-color: var(--background) !important; 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; }

/* ==========================================================================
   Checkout / Cart / Account (WooCommerce Blocks)
   ========================================================================== */
body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-top: calc(var(--header-height) + 2rem);
	padding-bottom: 4rem;
}
body.woocommerce-checkout .page-title,
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
	font-family: var(--font-display); font-size: 2rem; margin-bottom: 2rem; text-transform: none;
}

body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content { max-width: 100%; }

/* Parents must not compress the checkout block layout. */
body.woocommerce-checkout .site-main > .container-wide,
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout #page-content,
body.woocommerce-checkout article,
body.woocommerce-checkout .site-main {
	max-width: none;
	width: 100%;
	box-sizing: border-box;
}
body.woocommerce-checkout .site-main > .container-wide {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
@media (min-width: 1024px) {
	body.woocommerce-checkout .site-main > .container-wide {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

/* Checkout block root — centered max width (checkout page or any page with the block). */
body.woocommerce-checkout .entry-content .wp-block-woocommerce-checkout,
body.woocommerce-checkout .entry-content .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
}

/* Notices container (class uses "notices" with s). */
body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices,
body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices,
.entry-content .wc-block-checkout > .wc-block-components-notices {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-checkout { font-family: var(--font-body); color: var(--foreground); }

/* Two-column layout lives on the sidebar-layout wrapper, not the outer checkout shell. */
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout,
	body.woocommerce-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-components-sidebar-layout.wc-block-checkout,
	.entry-content .wc-block-components-sidebar-layout,
	.entry-content .wc-block-checkout-sidebar-layout {
		display: grid !important;
		grid-template-columns: 1fr minmax(360px, 400px) !important;
		gap: var(--checkout-gap) !important;
		align-items: start;
		width: 100%;
		max-width: 1280px;
		margin-left: auto;
		margin-right: auto;
		box-sizing: border-box;
	}

	/* Notices as first grid row when rendered inside the layout wrapper. */
	body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-notices,
	body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-notices,
	.entry-content .wc-block-components-sidebar-layout > .wc-block-components-notices,
	.entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-notices {
		grid-column: 1 / -1;
		order: 1;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		box-sizing: border-box;
	}

	body.woocommerce-checkout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-components-main,
	.entry-content .wc-block-checkout__main,
	.entry-content .wc-block-components-main {
		order: 2;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		box-sizing: border-box;
	}

	body.woocommerce-checkout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-components-sidebar,
	.entry-content .wc-block-checkout__sidebar,
	.entry-content .wc-block-components-sidebar {
		order: 3;
		width: 100%;
		min-width: 360px;
		max-width: 100%;
		box-sizing: border-box;
	}
}

/* Empty checkout — collapse sidebar grid and center the message. */
body.woocommerce-checkout .wc-block-components-sidebar-layout:has( > .wc-block-checkout-empty ),
body.woocommerce-checkout .wc-block-checkout-sidebar-layout:has( > .wc-block-checkout-empty ),
.entry-content .wc-block-components-sidebar-layout:has( > .wc-block-checkout-empty ),
.entry-content .wc-block-checkout-sidebar-layout:has( > .wc-block-checkout-empty ) {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	grid-template-columns: none !important;
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

body.woocommerce-checkout .wc-block-checkout-empty,
.entry-content .wc-block-checkout-empty {
	width: 100%;
	text-align: center;
	padding: 3rem 1.5rem;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-checkout-empty .wc-block-components-button,
.entry-content .wc-block-checkout-empty .wc-block-components-button {
	margin-top: 1.5rem;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	background-color: var(--color-butter);
	border-radius: var(--card-radius);
	padding: var(--section-padding);
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar,
.entry-content .wp-block-woocommerce-checkout-totals-block {
	background: transparent;
	border-radius: 0;
	padding: 0;
}
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 .woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .woocommerce-checkout .form-row select {
	font-family: var(--font-body); font-size: 1rem; color: var(--foreground);
	border: 1px solid var(--color-border); border-radius: 0.375rem; background-color: var(--background);
	width: 100% !important; max-width: none !important;
	box-sizing: border-box;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus { border-color: var(--color-primary); }
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: var(--color-muted-foreground); }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .checkout-button,
body.woocommerce-account .woocommerce-Button,
body.woocommerce-account .button,
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
	border-radius: var(--btn-radius) !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important; color: var(--color-button-text) !important;
	font-family: var(--font-body) !important; text-transform: none !important; min-height: var(--btn-height) !important;
}
body.woocommerce-checkout .wc-block-components-notice-banner { border-radius: 0.5rem; }

/* ==========================================================================
   Thank you page
   ========================================================================== */
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 h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-size: 1.5rem; padding: 0 0 1rem 0; text-transform: none; }
body.theme-thankyou-page .woocommerce-order-overview { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.5rem 0; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
}
body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; overflow-wrap: break-word; }

/* ==========================================================================
   404
   ========================================================================== */
.theme-404 { min-height: 60vh; display: flex; align-items: center; }
.theme-404__inner { text-align: center; padding: 6rem 0; }
.theme-404__title { font-size: 4rem; font-weight: 700; margin-bottom: 1rem; }
.theme-404__message { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-404__link { color: var(--color-primary); text-decoration: underline; }

/* ==========================================================================
   Customizer media control (front-end reused minimal styles are in the
   dedicated customizer-controls.css)
   ========================================================================== */
