/* =========================================================================
   Heavenly Cakes theme stylesheet.
   ========================================================================= */

:root {
	--color-background: #ffffff;
	--color-foreground: #1c2b40;
	--color-primary: #ed82a6;
	--color-primary-foreground: #ffffff;
	--color-secondary: #c6e5fa;
	--color-muted: #f1f5f9;
	--color-muted-foreground: #52637a;
	--color-accent: #75bdf0;
	--color-border: #dee6ed;
	--color-card: #f5faff;
	--color-butter: #f3f8fc;
	--color-rosa: #f9c8d8;
	--color-marigold: #f19db9;
	--color-nopal: #55aae7;
	--color-button-text: var(--color-primary-foreground);

	--font-display: 'Playfair Display', serif;
	--font-body: 'Inter', sans-serif;
	--font-handwritten: 'Cormorant Garamond', serif;

	--radius: 0.75rem;
	--shadow-soft: 0 4px 20px -4px rgb(28 43 64 / 0.08);
	--shadow-elevated: 0 8px 40px -8px rgb(28 43 64 / 0.14);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

	--logo-height: 56px;
	--footer-logo-height: 72px;
	--header-height: 80px;

	--btn-radius: 999px;
	--btn-height: 3rem;
	--btn-padding: 0.75rem 1.5rem;
	--btn-font-size: 0.8125rem;
	--btn-font-weight: 600;
	--btn-letter-spacing: 0.08em;
	--btn-text-transform: none;
	--btn-icon-padding: 0.5rem;
	--card-radius: 1rem;
	--checkout-gap: 2rem;
}

/* =========================================================================
   RESET / BASE
   ========================================================================= */
* {
	border-color: var(--color-border);
	box-sizing: border-box;
}

html, body {
	max-width: 100%;
	overflow-x: clip;
}

html {
	background: var(--color-background);
	scroll-behavior: smooth;
}

body {
	color: var(--color-foreground);
	font-family: var(--font-body);
	background: var(--color-background);
	-webkit-font-smoothing: antialiased;
	margin: 0;
}

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; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

img:not(.cover-img):not(.hero-bg-video):not(.theme-product-card__image):not(.theme-card-img-primary):not(.theme-card-img-hover):not(.about-image):not(.site-logo-img):not(.footer-logo-img) {
	max-width: 100%;
	height: auto;
}
.cover-img, .theme-product-card__image, .about-image {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover; object-position: center;
}

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1rem;
}
@media (min-width: 1024px) {
	.container-wide { padding: 0 1.5rem; }
}

.italic { font-style: italic; }

.chaos-marker-pink {
	background-image: linear-gradient(120deg, color-mix(in srgb, var(--color-rosa) 60%, transparent) 0%, color-mix(in srgb, var(--color-rosa) 60%, transparent) 100%);
	background-repeat: no-repeat;
	background-size: 100% 38%;
	background-position: 0 82%;
	padding: 0 0.12em;
}

/* =========================================================================
   ANIMATION / REVEAL SYSTEM (Section 2.1)
   ========================================================================= */
.reveal-item {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
	will-change: opacity, transform;
}
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

body.is-customizer .reveal-item,
html.no-js .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item { transition: none; opacity: 1; transform: none; }
	.trust-marquee-track, .animate-ken-burns { animation: none !important; }
}

@keyframes kenBurns {
	0% { transform: scale(1); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}
.animate-ken-burns { animation: kenBurns 15s ease-in-out infinite; }

@keyframes trustMarquee {
	from { transform: translateX(0); }
	to { transform: translateX(-25%); }
}
@keyframes blinkCursor {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUpIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: slideUpIn 0.6s var(--transition-smooth) forwards; }

/* =========================================================================
   SPRINKLES DECORATION
   ========================================================================= */
.sprinkles-bg {
	position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.sprinkles-bg span {
	position: absolute; height: 4px; border-radius: 999px; opacity: 0.4;
}

/* =========================================================================
   ANNOUNCEMENT BAR
   ========================================================================= */
.theme-announcement-bar {
	position: relative;
	background: linear-gradient(to right, var(--color-nopal), #2d1a15);
	color: #fff;
	border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.theme-announcement-inner {
	padding: 0.5rem 1rem;
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
@media (max-width: 767px) { .theme-announcement-inner { min-height: 56px; } }
.theme-announcement-text {
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.4;
}
.theme-announcement-cursor {
	display: inline-block; width: 2px; height: 0.85em;
	background: currentColor; vertical-align: middle; margin-left: 2px;
	animation: blinkCursor 1s step-end infinite;
}
.theme-announcement-dismiss {
	position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
	padding: 0.25rem; opacity: 0.7; transition: opacity 0.2s;
	display: flex; align-items: center;
}
.theme-announcement-dismiss:hover { opacity: 1; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
	position: sticky; top: 0; left: 0; right: 0; z-index: 50; width: 100%;
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s, border-color 0.3s;
	backdrop-filter: blur(4px);
}
.site-header.is-solid,
.site-header.is-scrolled,
.site-header.mobile-open {
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	border-bottom-color: var(--color-border);
}
.site-nav {
	display: flex; align-items: center; justify-content: space-between; height: 80px;
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo-img {
	height: var(--logo-height);
	width: auto;
	max-height: var(--logo-height);
	max-width: min(100%, calc(var(--logo-height) * 1.25));
	object-fit: contain;
	display: block;
}
.site-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }

.site-nav-desktop { display: none; }
@media (min-width: 1024px) { .site-nav-desktop { display: flex; align-items: center; gap: 2rem; } }
.theme-nav-list { display: flex; align-items: center; gap: 2rem; }
.theme-nav-link {
	font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
	transition: color 0.2s;
}
.theme-nav-link:hover { color: var(--color-foreground); }

.site-nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn-header-cta {
	display: none;
	align-items: center; justify-content: center;
	background: var(--color-primary); color: var(--color-primary-foreground);
	border-radius: 999px; padding: 0.6rem 1.25rem;
	font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600;
	transition: background-color 0.2s;
}
.btn-header-cta:hover { background: color-mix(in srgb, var(--color-primary) 90%, transparent); }
@media (min-width: 768px) { .btn-header-cta:not(.mobile-cta) { display: inline-flex; } }
.btn-header-cta.mobile-cta { display: inline-flex; }

.cart-toggle-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 30%, transparent);
	transition: border-color 0.2s;
}
.cart-toggle-btn:hover { border-color: var(--color-foreground); }
.theme-cart-count {
	position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 999px; background: var(--color-primary); color: var(--color-primary-foreground);
	font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.theme-cart-count:empty { display: none; }

.mobile-menu-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	margin-right: -0.25rem;
	border-radius: 999px;
	transition: background-color 0.25s var(--transition-smooth), color 0.25s var(--transition-smooth);
}
.mobile-menu-toggle:hover {
	background: color-mix(in srgb, var(--color-foreground) 6%, transparent);
}
.mobile-menu-toggle .icon-menu,
.mobile-menu-toggle .icon-close {
	display: inline-flex;
	transition: opacity 0.22s var(--transition-smooth), transform 0.28s var(--transition-smooth);
}
.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle.is-active .icon-menu {
	display: none;
}
.mobile-menu-toggle.is-active .icon-close {
	display: inline-flex;
	animation: mobileToggleIn 0.3s var(--transition-smooth) both;
}
@media (min-width: 1024px) { .mobile-menu-toggle { display: none; } }

@keyframes mobileToggleIn {
	from { opacity: 0; transform: rotate(-45deg) scale(0.85); }
	to { opacity: 1; transform: rotate(0) scale(1); }
}
@keyframes mobileMenuReveal {
	from { opacity: 0; transform: translateY(-0.65rem); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes mobileNavItemIn {
	from { opacity: 0; transform: translateY(0.7rem); }
	to { opacity: 1; transform: translateY(0); }
}

.mobile-menu {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	margin: 0 -1rem;
	border-top: 1px solid transparent;
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--color-butter) 88%, var(--color-background)) 0%,
		var(--color-background) 100%
	);
	transition:
		grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.28s var(--transition-smooth),
		visibility 0.28s var(--transition-smooth),
		border-color 0.28s var(--transition-smooth);
}
.mobile-menu > * {
	overflow: hidden;
	min-height: 0;
}
.mobile-menu.is-open {
	grid-template-rows: 1fr;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	border-top-color: var(--color-border);
}
.mobile-menu-panel {
	padding: 0 1rem;
	overflow: hidden;
}
.mobile-menu.is-open .mobile-menu-panel {
	padding: 1.15rem 1rem 1.35rem;
	animation: mobileMenuReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-nav-list {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mobile-nav-list > li {
	opacity: 0;
	list-style: none;
}
.mobile-menu.is-open .mobile-nav-list > li {
	animation: mobileNavItemIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mobile-menu.is-open .mobile-nav-list > li:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.is-open .mobile-nav-list > li:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.is-open .mobile-nav-list > li:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.is-open .mobile-nav-list > li:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu.is-open .mobile-nav-list > li:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu.is-open .mobile-nav-list > li:nth-child(6) { animation-delay: 0.3s; }

.mobile-nav-list a,
.mobile-nav-list button,
.mobile-nav-link {
	display: flex;
	align-items: center;
	width: 100%;
	text-align: left;
	padding: 0.85rem 0.35rem;
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: color-mix(in srgb, var(--color-foreground) 82%, transparent);
	border-radius: 0.65rem;
	border: 0;
	background: transparent;
	transition: color 0.22s var(--transition-smooth), background-color 0.22s var(--transition-smooth), padding-left 0.22s var(--transition-smooth);
}
.mobile-nav-list a:hover,
.mobile-nav-list button:hover,
.mobile-nav-link:hover {
	color: var(--color-primary);
	background: color-mix(in srgb, var(--color-rosa) 28%, transparent);
	padding-left: 0.65rem;
}

.mobile-cta {
	display: inline-flex !important;
	width: fit-content;
	margin-top: 0.85rem;
	opacity: 0;
}
.mobile-menu.is-open .mobile-cta {
	animation: mobileNavItemIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

@media (min-width: 1024px) {
	.mobile-menu { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.mobile-menu,
	.mobile-menu-panel,
	.mobile-menu-toggle .icon-menu,
	.mobile-menu-toggle .icon-close,
	.mobile-nav-list a,
	.mobile-nav-list button,
	.mobile-nav-link {
		transition: none !important;
		animation: none !important;
	}
	.mobile-menu.is-open .mobile-menu-panel,
	.mobile-menu.is-open .mobile-nav-list > li,
	.mobile-menu.is-open .mobile-cta,
	.mobile-menu-toggle.is-active .icon-close {
		opacity: 1;
		transform: none;
		animation: none !important;
	}
}

.footer-nav-link {
	text-align: left; padding: 0.5rem 0; font-size: 0.9rem; transition: color 0.2s;
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero-section { background: var(--color-background); }
.hero-video-wrap {
	position: relative; width: 100%; height: 100vh; min-height: 560px; overflow: hidden; background: var(--color-foreground);
}
.hero-bg-video { z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-foreground) 50%, transparent); pointer-events: none; z-index: 1; }
.hero-content { position: relative; height: 100%; z-index: 2; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-content-inner { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-size: 0.75rem; letter-spacing: 0.32em; text-transform: uppercase;
	color: color-mix(in srgb, var(--color-background) 90%, transparent);
	margin-bottom: 1.25rem;
}
.hero-title {
	font-family: var(--font-display); font-weight: 700; color: var(--color-background);
	line-height: 1; letter-spacing: -0.02em;
	font-size: clamp(2.5rem, 7vw, 5.5rem);
}
.hero-subtitle {
	margin-top: 1.5rem; max-width: 36rem;
	color: color-mix(in srgb, var(--color-background) 90%, transparent);
	font-size: 1.125rem; line-height: 1.7;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }

.btn-hero-primary, .btn-hero-outline {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	border-radius: 999px; padding: 0.9rem 2rem;
	font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600;
	transition: background-color 0.2s, color 0.2s;
	text-transform: none !important;
}
.btn-hero-primary { background: var(--color-primary); color: var(--color-primary-foreground); }
.btn-hero-primary:hover { background: color-mix(in srgb, var(--color-primary) 90%, transparent); }
.btn-hero-outline {
	border: 1px solid color-mix(in srgb, var(--color-background) 70%, transparent);
	color: var(--color-background);
}
.btn-hero-outline:hover { background: var(--color-background); color: var(--color-foreground); }
.contact-cta-section .btn-hero-outline { border-color: color-mix(in srgb, var(--color-background) 70%, transparent); }

/* =========================================================================
   TRUST BAR MARQUEE
   ========================================================================= */
.trust-bar-section {
	background: var(--color-butter);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	overflow: hidden;
	padding: 2rem 0;
}
@media (min-width: 768px) { .trust-bar-section { padding: 2.5rem 0; } }
.trust-marquee-track {
	display: flex; width: max-content;
	animation: trustMarquee 40s linear infinite;
}
.trust-pillar-item {
	display: flex; align-items: center; gap: 1rem;
	padding: 0 2.5rem;
	flex-shrink: 0;
}
@media (min-width: 768px) { .trust-pillar-item { padding: 0 4rem; } }
.trust-pillar-item svg { color: var(--color-primary); flex-shrink: 0; }
.trust-pillar-item span {
	font-family: var(--font-display); font-weight: 600; font-size: 1.125rem;
	white-space: nowrap;
}
@media (min-width: 768px) { .trust-pillar-item span { font-size: 1.5rem; } }

/* =========================================================================
   SECTION HEADING GENERIC
   ========================================================================= */
.section-eyebrow {
	display: inline-block;
	font-size: 0.75rem; letter-spacing: 0.32em; text-transform: uppercase;
	margin-bottom: 0.75rem;
	color: color-mix(in srgb, var(--color-background) 90%, transparent);
}
.category-tiles-section .section-eyebrow { color: color-mix(in srgb, var(--color-background) 90%, transparent); }
.shop-eyebrow, .about-section .section-eyebrow { color: var(--color-primary); }
.section-heading-wrap, .shop-heading-wrap { text-align: center; margin-bottom: 3rem; }
@media (min-width: 768px) { .section-heading-wrap, .shop-heading-wrap { margin-bottom: 4rem; } }

/* =========================================================================
   CATEGORY TILES
   ========================================================================= */
.category-tiles-section { position: relative; overflow: hidden; background: var(--color-foreground); }
.category-tiles-section .container-wide { position: relative; z-index: 10; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .category-tiles-section .container-wide { padding-top: 6rem; padding-bottom: 6rem; } }
.category-tiles-heading {
	font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--color-background);
	font-size: 2.25rem;
}
@media (min-width: 768px) { .category-tiles-heading { font-size: 3rem; } }
.category-tiles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 1024px) { .category-tiles-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.category-tile {
	position: relative; aspect-ratio: 1 / 1; border-radius: 1.5rem; overflow: hidden;
	background: var(--color-butter); border: 1px solid var(--color-border);
	display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem;
	transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}
.category-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.category-tile svg {
	color: var(--color-primary);
	width: 2.5rem;   /* lucide: w-10 */
	height: 2.5rem;
	margin-bottom: 1rem;
	flex-shrink: 0;
	transition: transform 0.3s;
}
@media (min-width: 768px) {
	.category-tile svg {
		width: 3rem;   /* lucide: md:w-12 */
		height: 3rem;
	}
}
.category-tile:hover svg { transform: scale(1.1); }
.category-tile-label {
	font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; text-align: center; line-height: 1.2;
}
@media (min-width: 768px) { .category-tile-label { font-size: 1.5rem; } }
.category-tile-cta {
	margin-top: 0.75rem; font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase;
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
	transition: color 0.2s;
}
.category-tile:hover .category-tile-cta { color: var(--color-primary); }

/* =========================================================================
   SHOP SECTION
   ========================================================================= */
.shop-section { position: relative; overflow: hidden; background: var(--color-butter); scroll-margin-top: 6rem; }
.shop-section .container-wide { position: relative; z-index: 10; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .shop-section .container-wide { padding-top: 6rem; padding-bottom: 6rem; } }
.shop-heading {
	font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2.5rem;
	font-size: 2.25rem;
}
@media (min-width: 768px) { .shop-heading { font-size: 3rem; } }

.shop-controls { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2rem; width: 100%; }
@media (min-width: 768px) { .shop-controls { flex-direction: row; } }
.shop-search-wrap { position: relative; width: 100%; max-width: 28rem; }
.shop-search-wrap svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.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: 0.9375rem; color: var(--color-foreground); transition: border-color 0.2s;
}
.shop-search-input:focus { outline: none; border-color: var(--color-foreground); }
.shop-price-toggle {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.5rem 1rem; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--color-muted-foreground); transition: color 0.2s;
}
.shop-price-toggle:hover { color: var(--color-foreground); }
.shop-price-toggle svg { transition: transform 0.3s; }
.shop-price-toggle.is-open svg { transform: rotate(180deg); }
.shop-price-toggle-value { opacity: 0.7; text-transform: none; letter-spacing: normal; }

.shop-price-filter-panel {
	width: 100%; max-width: 24rem; margin: 0 auto; overflow: hidden;
	max-height: 0; opacity: 0; transition: max-height 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth);
}
.shop-price-filter-panel.is-open { max-height: 140px; opacity: 1; padding: 0.5rem 0; }

.price-range-wrapper { position: relative; height: 1.5rem; margin-bottom: 0.75rem; }
.range-track-bg, .range-track-fill {
	position: absolute; height: 4px; top: 50%; transform: translateY(-50%); border-radius: 999px; pointer-events: none;
}
.range-track-bg { left: 0; right: 0; background: var(--color-secondary); }
.range-track-fill { background: var(--color-primary); }
.range-input {
	position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0;
	-webkit-appearance: none; appearance: none; background: transparent; pointer-events: none;
}
.range-input::-webkit-slider-thumb {
	-webkit-appearance: none; pointer-events: auto;
	width: 20px; height: 20px; border-radius: 50%;
	background: var(--color-background); border: 2px solid var(--color-primary); cursor: pointer;
}
.range-input::-moz-range-thumb {
	pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
	background: var(--color-background); border: 2px solid var(--color-primary); cursor: pointer;
}
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }
.price-range-labels { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--color-muted-foreground); }

.shop-category-tabs {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin: 0 auto 1rem; max-width: 100%;
}
@media (min-width: 480px) { .shop-category-tabs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .shop-category-tabs { display: flex; flex-wrap: nowrap; justify-content: center; grid-template-columns: none; } }
.shop-cat-tab {
	min-width: 0; width: 100%; padding: 0.5rem 1rem; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
	line-height: 1.2; border-radius: 999px; border: 1px solid var(--color-border); background: transparent;
	color: var(--color-foreground); transition: all 0.3s;
}
@media (min-width: 768px) { .shop-cat-tab { width: auto; } }
.shop-cat-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.shop-cat-tab.is-active { background: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }

.theme-product-grid {
	display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.theme-product-grid--related { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .theme-product-grid--related { grid-template-columns: repeat(4, 1fr); } }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card-wrap.is-filtered-out { display: none; }
.theme-product-card { position: relative; display: flex; flex-direction: column; height: 100%; }

.theme-product-card__image-link {
	display: block;
	text-decoration: none;
	color: inherit;
}
.theme-product-card__title-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.theme-product-card__image-wrapper {
	position: relative; aspect-ratio: 1 / 1; border-radius: 1rem; overflow: hidden;
	background: var(--color-card); margin-bottom: 1.25rem;
}
.theme-card-img-primary { transition: opacity 0.5s; }
.theme-card-img-primary.has-hover { z-index: 1; }
.theme-product-card:hover .theme-card-img-primary.has-hover { opacity: 0; }
.theme-card-img-hover { opacity: 0; transition: opacity 0.5s; }
.theme-product-card:hover .theme-card-img-hover { opacity: 1; }

.theme-product-badge {
	position: absolute; top: 1rem; right: 1rem; z-index: 3;
	padding: 0.35rem 1rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.02em;
	background: var(--color-foreground); color: var(--color-background);
	pointer-events: none;
}
.theme-product-card__info { flex: 1; display: flex; flex-direction: column; padding: 0 0.25rem; }
.theme-product-card__title {
	font-family: var(--font-display); font-style: italic; font-weight: 400;
	font-size: 1.25rem; line-height: 1.2; transition: color 0.3s;
}
@media (min-width: 768px) { .theme-product-card__title { font-size: 1.5rem; } }
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__subtitle {
	margin-top: 0.5rem; margin-bottom: 1rem; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.22em;
	color: var(--color-muted-foreground);
}
.theme-card-add-btn {
	margin-top: auto; width: 100%; padding: 0.75rem; border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 70%, transparent);
	font-size: 0.8125rem; letter-spacing: 0.02em; background: transparent; color: var(--color-foreground);
	transition: background-color 0.3s, color 0.3s;
	text-align: center;
	display: block;
}
.theme-card-add-btn:hover { background: var(--color-foreground); color: var(--color-background); }
.theme-card-add-btn:disabled, .theme-card-add-btn.disabled { opacity: 0.5; cursor: not-allowed; }

.shop-empty-state { text-align: center; padding: 5rem 0; }
.shop-empty-state p { color: var(--color-muted-foreground); margin-bottom: 1rem; }
.btn-empty-cta {
	display: inline-flex; align-items: center; gap: 0.5rem; background: var(--color-primary); color: var(--color-primary-foreground);
	border-radius: 999px; padding: 0.75rem 1.5rem; font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600;
	transition: background-color 0.2s;
}
.btn-empty-cta:hover { background: color-mix(in srgb, var(--color-primary) 90%, transparent); }

/* =========================================================================
   TRANSITION STRIP
   ========================================================================= */
.transition-strip-section {
	position: relative; overflow: hidden; background-size: cover; background-position: center;
	min-height: 380px; display: flex; align-items: center; justify-content: center;
}
@media (min-width: 768px) { .transition-strip-section { min-height: 480px; } }
.transition-strip-overlay { position: absolute; inset: 0; background: rgb(0 0 0 / 0.6); pointer-events: none; }
.transition-strip-inner { position: relative; text-align: center; padding: 5rem 0; }
@media (min-width: 768px) { .transition-strip-inner { padding: 7rem 0; } }
.transition-strip-heading {
	font-style: italic; font-weight: 700; color: var(--color-background); line-height: 1.2; letter-spacing: -0.02em;
	font-size: 1.875rem;
}
@media (min-width: 768px) { .transition-strip-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .transition-strip-heading { font-size: 3.75rem; } }

/* =========================================================================
   ABOUT / STORY
   ========================================================================= */
.about-section { position: relative; overflow: hidden; background: var(--color-butter); scroll-margin-top: 6rem; }
.about-section .container-wide { position: relative; z-index: 10; padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .about-section .container-wide { padding-top: 7rem; padding-bottom: 7rem; } }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: stretch; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(2, 1fr); gap: 5rem; } }
.about-image-wrap {
	position: relative; aspect-ratio: 4 / 5; min-height: 420px; border-radius: 1.5rem; overflow: hidden;
	background-color: #f2e9dd;
}
@media (min-width: 1024px) { .about-image-wrap { aspect-ratio: auto; height: 100%; } }
.about-image-wrap::after {
	content: ''; position: absolute; inset: 0; border-radius: 1.5rem;
	border: 2px solid color-mix(in srgb, var(--color-marigold) 90%, transparent);
	box-shadow: 0 0 24px color-mix(in srgb, var(--color-marigold) 35%, transparent), inset 0 0 20px color-mix(in srgb, var(--color-marigold) 8%, transparent);
	opacity: 0; transform: scale(0.96); transition: opacity 0.5s, transform 0.5s; pointer-events: none; z-index: 10;
}
.about-image-wrap:hover::after { opacity: 1; transform: scale(1); }
.about-content { display: flex; flex-direction: column; justify-content: center; }
.about-heading {
	font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1.5rem;
	font-size: 2.25rem;
}
@media (min-width: 768px) { .about-heading { font-size: 3rem; } }
.about-paragraph {
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
	line-height: 1.75; font-size: 1.125rem; margin-bottom: 1.25rem;
}
.about-paragraph-2 { font-size: 1rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .about-paragraph-2 { font-size: 1.125rem; } }
.btn-about-cta {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5rem;
	background: var(--color-primary); color: var(--color-primary-foreground);
	border-radius: 999px; padding: 0.75rem 1.75rem; font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600;
	transition: background-color 0.2s;
}
.btn-about-cta:hover { background: color-mix(in srgb, var(--color-primary) 90%, transparent); }

/* =========================================================================
   CONTACT CTA BAND
   ========================================================================= */
.contact-cta-section {
	position: relative; color: var(--color-background); overflow: hidden;
	background-size: cover; background-position: center; scroll-margin-top: 6rem;
}
.contact-cta-overlay { position: absolute; inset: 0; background: rgb(0 0 0 / 0.5); }
.contact-cta-inner { position: relative; padding: 5rem 0; }
@media (min-width: 768px) { .contact-cta-inner { padding: 7rem 0; } }
.contact-cta-content { max-width: 42rem; margin: 0 auto; text-align: center; }
.contact-cta-heading {
	font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1.25rem;
	font-size: 2.25rem;
}
@media (min-width: 768px) { .contact-cta-heading { font-size: 3rem; } }
.contact-highlight { color: var(--color-accent); }
.contact-cta-paragraph {
	color: color-mix(in srgb, var(--color-background) 85%, transparent); font-size: 1.125rem; margin-bottom: 2.5rem;
}
.contact-cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.contact-eyebrow { color: var(--color-accent); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--color-border); background: var(--color-butter); }
.site-footer-inner { position: relative; z-index: 10; padding-top: 3.5rem; padding-bottom: 2rem; }
@media (min-width: 1024px) { .site-footer-inner { padding-top: 4rem; padding-bottom: 2.5rem; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.footer-logo-img {
	height: var(--footer-logo-height);
	width: auto;
	max-height: var(--footer-logo-height);
	object-fit: contain;
	display: block;
}
.footer-tagline { margin-top: 1rem; font-size: 0.9375rem; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.7; max-width: 24rem; }
.footer-col-heading { font-weight: 700; font-size: 1.25rem; margin-bottom: 1.25rem; }
.footer-nav-list, .footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav-link {
	font-size: 0.9375rem; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); transition: color 0.2s;
}
.footer-nav-link:hover { color: var(--color-foreground); }
.footer-contact-link {
	display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent); transition: color 0.2s; word-break: break-word;
}
.footer-contact-link:hover { color: var(--color-foreground); }
.footer-bottom {
	margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border);
	display: grid; grid-template-columns: 1fr; align-items: center; gap: 1rem; text-align: center;
	font-size: 0.8125rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
}
@media (min-width: 768px) { .footer-bottom { grid-template-columns: repeat(3, 1fr); } }
.footer-bottom p:first-child { text-align: center; }
@media (min-width: 768px) { .footer-bottom p:first-child { text-align: left; } }
.footer-builtby a { color: var(--color-foreground); font-weight: 500; text-decoration: underline; }
.footer-back-to-top { display: flex; justify-content: center; }
@media (min-width: 768px) { .footer-back-to-top { justify-content: flex-end; } }
.btn-back-to-top {
	display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 30%, transparent); transition: all 0.2s;
}
.btn-back-to-top:hover { border-color: var(--color-foreground); background: var(--color-foreground); color: var(--color-background); }

/* =========================================================================
   CONTACT MODAL
   ========================================================================= */
.theme-modal-overlay {
	position: fixed; inset: 0; z-index: 100; background: rgb(0 0 0 / 0.5);
	display: flex; align-items: center; justify-content: center; padding: 1rem;
	opacity: 0; visibility: hidden; transition: opacity 0.25s;
}
.theme-modal-overlay.is-open { opacity: 1; visibility: visible; }
.theme-modal {
	position: relative; background: var(--color-background); border-radius: 1rem; max-width: 32rem; width: 100%;
	max-height: 90vh; overflow-y: auto; padding: 1.75rem; box-shadow: var(--shadow-elevated);
	transform: scale(0.95) translateY(10px); opacity: 0; transition: transform 0.25s var(--transition-smooth), opacity 0.25s;
}
.theme-modal-overlay.is-open .theme-modal { transform: scale(1) translateY(0); opacity: 1; }
.theme-modal-close { position: absolute; right: 1rem; top: 1rem; opacity: 0.6; transition: opacity 0.2s; }
.theme-modal-close:hover { opacity: 1; }
.theme-modal-header { margin-bottom: 1rem; padding-right: 1.5rem; }
.theme-modal-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.theme-modal-description { font-size: 0.9375rem; color: var(--color-muted-foreground); }
.theme-modal-contact-list { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-modal-contact-link { display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.2s; word-break: break-all; }
.theme-modal-contact-link:hover { color: var(--color-foreground); }
.theme-modal-form { display: flex; flex-direction: column; gap: 1rem; }
.theme-modal-form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 480px) { .theme-modal-form-row { grid-template-columns: repeat(2, 1fr); } }
.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.6rem 0.75rem; background: var(--color-background); border: 1px solid var(--color-border);
	border-radius: 0.5rem; font-size: 1rem; color: var(--color-foreground); transition: box-shadow 0.3s;
}
.theme-form-field 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-modal-form-actions { display: flex; justify-content: flex-end; }
.btn-modal-submit {
	display: inline-flex; align-items: center; gap: 0.5rem; background: var(--color-primary); color: var(--color-primary-foreground);
	padding: 0.6rem 1.25rem; border-radius: 0.5rem; font-size: 0.9375rem; font-weight: 500; transition: opacity 0.2s;
}
.btn-modal-submit:hover { opacity: 0.9; }
.btn-modal-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.theme-modal-form-error { color: #d74242; font-size: 0.875rem; text-align: center; }
.theme-modal-success { text-align: center; padding: 2rem 0; }
.theme-modal-success-icon {
	width: 56px; height: 56px; background: var(--color-primary); color: var(--color-primary-foreground);
	display: flex; align-items: center; justify-content: center; border-radius: 999px; margin: 0 auto 1rem;
}
.theme-modal-success h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-modal-success p { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* =========================================================================
   CART DRAWER + OVERLAY
   ========================================================================= */
#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--color-foreground) 20%, transparent);
	opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
body.cart-open #theme-cart-overlay { opacity: 1; visibility: visible; }

#theme-cart-drawer {
	position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem;
	background: var(--color-background); z-index: 95; 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.7; 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; }
.theme-cart-drawer-empty svg { color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-cart-drawer-empty p { color: var(--color-muted-foreground); 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-item { display: flex; gap: 1rem; }
.theme-cart-item-image { width: 80px; height: 96px; background: var(--color-secondary); overflow: hidden; flex-shrink: 0; border-radius: 0.5rem; }
.theme-cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-item-info { flex: 1; min-width: 0; }
.theme-cart-item-name { font-size: 0.875rem; font-weight: 500; display: block; margin-bottom: 0.125rem; 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); }
.theme-cart-item-variation { font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-item-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
.theme-cart-qty-btn { padding: 0.25rem; border-radius: 0.25rem; transition: background-color 0.2s; }
.theme-cart-qty-btn:hover { background: var(--color-secondary); }
.theme-cart-item-qty { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-remove { margin-left: auto; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s; }
.theme-cart-remove:hover { color: var(--color-foreground); }
.theme-cart-drawer-footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-shipping-note { font-size: 0.875rem; color: var(--color-muted-foreground); }
.btn-checkout {
	display: flex; align-items: center; justify-content: center; width: 100%; background: var(--color-primary); color: var(--color-primary-foreground);
	padding: 0.85rem; border-radius: 0.5rem; font-size: 0.9375rem; font-weight: 500; transition: opacity 0.2s;
}
.btn-checkout:hover { opacity: 0.9; }
.btn-outline {
	display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.6rem; border-radius: 0.5rem;
	border: 1px solid var(--color-border); font-size: 0.875rem; transition: background-color 0.2s;
}
.btn-outline:hover { background: var(--color-secondary); }

/* =========================================================================
   SINGLE PRODUCT PAGE
   ========================================================================= */
.single-product-main .container-wide { padding-top: 1rem; }
.product-breadcrumb {
	padding: 1.5rem 0; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground);
}
.product-breadcrumb a { transition: color 0.2s; }
.product-breadcrumb a:hover { color: var(--color-foreground); }
.breadcrumb-sep { margin: 0 0.5rem; opacity: 0.5; }
.breadcrumb-current { color: var(--color-foreground); }

.single-product .theme-product-layout { min-width: 0; }
.theme-product-layout {
	display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; padding-bottom: 6rem; padding-top: 1rem;
}
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.single-product .theme-product-gallery,
.single-product .theme-product-info { min-width: 0; max-width: 100%; }

.theme-product-thumbnails-mobile { display: block; }
@media (min-width: 1024px) { .theme-product-thumbnails-mobile { display: none; } }
.theme-product-main-image-mobile { position: relative; aspect-ratio: 1 / 1; background: var(--color-secondary); overflow: hidden; }
.single-product .theme-product-thumbnails { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; overflow-x: auto; max-width: 100%; padding-bottom: 0.25rem; }
.theme-product-thumb { position: relative; width: 80px; height: 80px; flex-shrink: 0; overflow: hidden; background: var(--color-secondary); }
.theme-product-thumb img { opacity: 0.6; transition: opacity 0.2s; width: 100%; height: 100%; object-fit: cover; }
.theme-product-thumb.is-active img { opacity: 1; }
.theme-product-thumb:hover img { opacity: 1; }
.theme-product-thumb::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--color-foreground);
	opacity: 0; transition: opacity 0.2s;
}
.theme-product-thumb.is-active::after { opacity: 1; }

.theme-product-main-image-desktop { display: none; }
@media (min-width: 1024px) { .theme-product-main-image-desktop { display: flex; flex-direction: column; gap: 1rem; } }
.theme-product-desktop-image-item { position: relative; aspect-ratio: 1 / 1; background: var(--color-secondary); overflow: hidden; }

.product-title {
	font-family: var(--font-body); font-style: italic; font-weight: 600; font-size: 2.25rem; line-height: 1.05;
}
@media (min-width: 768px) { .product-title { font-size: 2.75rem; } }
.product-subtitle { margin-top: 0.75rem; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }

.theme-field-label { font-family: var(--font-display); font-style: italic; font-size: 1.125rem; font-weight: 400; margin-bottom: 0.75rem; text-transform: lowercase; }
.theme-quantity-block { margin-top: 2rem; margin-bottom: 1.5rem; }
.theme-quantity-wrapper {
	display: inline-flex; align-items: center; border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 70%, transparent);
}
.theme-qty-minus, .theme-qty-plus { padding: 0.5rem 1rem; transition: background-color 0.2s; }
.theme-qty-minus { border-radius: 999px 0 0 999px; }
.theme-qty-plus { border-radius: 0 999px 999px 0; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
.theme-qty-input {
	width: 3rem; padding: 0.5rem 0; text-align: center; border: none; background: transparent; font-size: 0.9375rem;
	-moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-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; }
.single-product .theme-variable-cart-form { width: 100%; display: flex; flex-direction: column; gap: 1rem; }
.btn-single-cta, .single-product .single_add_to_cart_button {
	flex: 1 1 auto; min-width: 160px; width: 100%; background: var(--color-foreground); color: var(--color-background);
	padding: 1rem; border-radius: 999px; font-size: 0.875rem; font-weight: 500; text-align: center;
	transition: background-color 0.2s; display: flex; align-items: center; justify-content: center;
}
.btn-single-cta:hover { background: color-mix(in srgb, var(--color-foreground) 90%, transparent); }
.btn-single-cta:disabled, .btn-single-cta.disabled { opacity: 0.6; cursor: not-allowed; }

.theme-product-tabs { margin-top: 2.5rem; }
.theme-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	column-gap: 0.85rem;
	row-gap: 0.15rem;
	border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 22%, transparent);
	padding-bottom: 0;
	overflow: visible;
	scrollbar-width: none;
}
.theme-tabs-nav::-webkit-scrollbar { display: none; width: 0; height: 0; }
.theme-tab-btn {
	position: relative;
	font-family: var(--font-display);
	font-size: 0.8125rem;
	letter-spacing: 0.01em;
	padding: 0.4rem 0 0.65rem;
	color: color-mix(in srgb, var(--color-foreground) 55%, transparent);
	white-space: nowrap;
	transition: color 0.2s;
}
@media (min-width: 768px) {
	.theme-tab-btn { font-size: 0.9375rem; }
	.theme-tabs-nav { column-gap: 1.15rem; }
}
.theme-tab-btn:hover { color: var(--color-foreground); }
.theme-tab-btn.is-active {
	font-style: italic;
	color: var(--color-foreground);
}
.theme-tab-btn.is-active::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--color-foreground);
	border-radius: 1px;
}
.theme-tabs-panels {
	padding-top: 1.35rem;
	font-size: 0.9375rem;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
	line-height: 1.7;
}
.theme-tab-panel { display: none; }
.theme-tab-panel.is-active { display: block; }
.theme-tab-panel ul { display: flex; flex-direction: column; gap: 0.5rem; list-style: none; }
.theme-tab-panel ul li { display: flex; align-items: flex-start; }
.theme-tab-panel ul li::before {
	content: '';
	width: 4px;
	height: 4px;
	background: var(--color-foreground);
	border-radius: 999px;
	margin-top: 0.5rem;
	margin-right: 0.75rem;
	flex-shrink: 0;
}

.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); }
.related-products-heading { text-align: center; margin-bottom: 3rem; }
.related-eyebrow { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.related-products-heading h2 { font-size: 1.875rem; font-weight: 400; }
@media (min-width: 768px) { .related-products-heading h2 { font-size: 2.25rem; } }

/* =========================================================================
   VARIATIONS / SWATCHES
   ========================================================================= */
.single-product .variations {
	width: 100%;
	border: 0;
	margin: 0;
}
.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}
.single-product .variations tbody tr + tr {
	margin-top: 1.25rem;
}
.single-product .variations tbody td.label {
	padding: 0 0 0.65rem;
}
.single-product .variations tbody td.label .theme-field-label {
	margin: 0;
	display: block;
}
.single-product .variations tbody td.value {
	padding: 0;
	position: relative;
}

/* Keep native select for form POST; swatches drive the UI. */
.theme-variable-cart-form select.theme-variation-select,
.theme-variable-cart-form .variations select {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

.theme-variation-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.theme-swatch {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.85rem;
	min-height: 2.85rem;
	padding: 0.55rem 1.15rem;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	background: var(--color-butter);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.2;
	cursor: pointer;
	transition:
		background-color 0.25s var(--transition-smooth),
		border-color 0.25s var(--transition-smooth),
		color 0.25s var(--transition-smooth),
		transform 0.25s var(--transition-smooth),
		box-shadow 0.25s var(--transition-smooth);
}
.theme-swatch:hover {
	border-color: color-mix(in srgb, var(--color-primary) 70%, var(--color-border));
	color: var(--color-primary);
	transform: translateY(-1px);
	box-shadow: var(--shadow-soft);
}
.theme-swatch.is-selected {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-primary-foreground);
	box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--color-primary) 70%, transparent);
}
.theme-swatch.is-selected:hover {
	background: color-mix(in srgb, var(--color-primary) 92%, #000);
	border-color: color-mix(in srgb, var(--color-primary) 92%, #000);
	color: var(--color-primary-foreground);
}
.theme-swatch:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}
.theme-swatch.is-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
	transform: none;
	box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
	.theme-swatch {
		transition: none;
	}
	.theme-swatch:hover {
		transform: none;
	}
}

/* =========================================================================
   WOOCOMMERCE GLOBAL OVERRIDES (Section 14)
   ========================================================================= */
.woocommerce-breadcrumb { display: none; }

.woocommerce-no-products-found { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); }

.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}

/* Card compact button variant */
.theme-product-card .add_to_cart_button.ajax_add_to_cart,
.theme-card-add-btn.add_to_cart_button {
	min-height: unset !important;
	padding: 0.75rem !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--color-foreground) !important;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 70%, transparent) !important;
	font-size: 0.8125rem !important;
	font-weight: 400 !important;
	letter-spacing: 0.02em !important;
	width: 100%;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart:hover,
.theme-card-add-btn.add_to_cart_button:hover {
	background: var(--color-foreground) !important;
	color: var(--color-background) !important;
	opacity: 1 !important;
}

.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-error { display: block; }

/* =========================================================================
   404
   ========================================================================= */
.notfound-main { min-height: 60vh; display: flex; align-items: center; justify-content: center; background: var(--color-muted); }
.notfound-inner { text-align: center; padding: 1.5rem; }
.notfound-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.notfound-text { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.notfound-link { color: var(--color-primary); text-decoration: underline; }
.notfound-link:hover { color: color-mix(in srgb, var(--color-primary) 90%, transparent); }

/* =========================================================================
   GENERIC PAGE
   ========================================================================= */
.generic-page-main { padding: 3rem 0 5rem; }
.page-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.entry-content { font-size: 1rem; line-height: 1.75; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }
.entry-content p { margin-bottom: 1rem; }

/* =========================================================================
   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 { margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 1.5rem; background: var(--color-card); border-radius: var(--card-radius);
}
body.theme-thankyou-page .woocommerce-order-overview li { flex: 1 1 160px; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-size: 1.5rem; font-weight: 700; padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; }
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td { padding: 0.75rem; border-bottom: 1px solid var(--color-border); text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 480px; overflow-wrap: break-word; list-style: none; border: 1px solid var(--color-border); border-radius: var(--card-radius); padding: 1rem; }
@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; }
}

/* =========================================================================
   WOOCOMMERCE CHECKOUT BLOCK OVERRIDES (Section 13)
   ========================================================================= */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .generic-page-main,
body.woocommerce-checkout #page-content,
body.woocommerce-checkout article {
	max-width: none;
	width: 100%;
}
body.woocommerce-checkout .site-main {
	padding-top: var(--header-height, 80px);
	padding-bottom: 4rem;
}

/* Parent wrappers must not compress the checkout block. */
body.woocommerce-checkout .container-wide,
body.woocommerce-checkout .entry-content,
.entry-content .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout {
	max-width: none;
	width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout h1.page-title {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5rem;
	padding-left: 1rem;
	padding-right: 1rem;
	box-sizing: border-box;
}
@media (min-width: 1024px) {
	body.woocommerce-checkout h1.page-title {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

/* Checkout + notices share the same centered width. */
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout,
body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
	max-width: 1280px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	padding-left: 1rem;
	padding-right: 1rem;
}
@media (min-width: 1024px) {
	body.woocommerce-checkout .wp-block-woocommerce-checkout,
	body.woocommerce-checkout .wc-block-checkout,
	.entry-content .wp-block-woocommerce-checkout,
	.entry-content .wc-block-checkout,
	body.woocommerce-checkout .wc-block-components-notices,
	.entry-content .wc-block-components-notices {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

body.woocommerce-checkout .wc-block-checkout,
.entry-content .wc-block-checkout {
	display: block;
}

/* Real 2-column layout lives on the sidebar-layout wrapper. */
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-components-sidebar-layout,
	.entry-content .wc-block-checkout-sidebar-layout {
		display: grid !important;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: 1.5rem;
		align-items: start;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	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,
	body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-notice,
	body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-notice {
		grid-column: 1 / -1;
		order: 1;
		width: 100%;
		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;
	}
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-main,
body.woocommerce-checkout .wc-block-components-sidebar,
.entry-content .wc-block-checkout__main,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-main,
.entry-content .wc-block-components-sidebar {
	min-width: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
.entry-content .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
.entry-content .wc-block-components-sidebar {
	background-color: var(--color-butter);
	border-radius: var(--card-radius);
	padding: var(--section-padding, 2rem);
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
.entry-content .wc-block-checkout .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-select select {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	background: var(--color-background);
	color: var(--color-foreground);
	padding: revert;
	box-sizing: border-box;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-text-input input:focus-visible,
.entry-content .wc-block-checkout .wc-block-components-text-input input:focus,
.entry-content .wc-block-checkout .wc-block-components-select select:focus {
	outline: none;
	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,
.entry-content .wc-block-checkout .wc-block-components-text-input input::placeholder {
	color: var(--color-muted-foreground);
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-components-checkout-place-order-button {
	background: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	font-weight: 600 !important;
	text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-components-notice-banner {
	border-radius: 0.5rem;
}

/* =========================================================================
   WP ADMIN BAR + STICKY HEADER OFFSET
   ========================================================================= */
body.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: var(--wp-admin--admin-bar--height, 46px);
	}
}

/* WP switches #wpadminbar to absolute below 600px; keep it fixed so the
   sticky header stays anchored under it (frontend + Customizer preview). */
@media screen and (max-width: 600px) {
	body.admin-bar #wpadminbar {
		position: fixed !important;
		top: 0;
		left: 0;
		right: 0;
		width: 100%;
	}
	body.admin-bar .site-header {
		top: var(--wp-admin--admin-bar--height, 46px);
	}
}

/* Avoid position:relative on body — it triggers the classic admin-bar
   white-gap / pushed-bar bug at ≤600px. */
body.admin-bar {
	position: static;
}
