/* =========================================================================
   Nerdy Loops — theme.css
   Design tokens are injected as CSS variables via wp_add_inline_style
   (Section 6 / 22.9). This file consumes var(--color-*) exclusively.
   ========================================================================= */

:root {
	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Quicksand', system-ui, sans-serif;
	--radius: 1.25rem;
	--shadow-soft: 0 24px 50px -28px color-mix(in srgb, var(--color-plum, #3a2740) 28%, transparent);
	--shadow-pink: 0 18px 45px -18px color-mix(in srgb, var(--color-primary, #e0578f) 45%, transparent);
	--gradient-sweet: linear-gradient(135deg, var(--color-blush, #f9d9e6) 0%, color-mix(in srgb, var(--color-accent, #9b6fc4) 55%, transparent) 55%, color-mix(in srgb, var(--color-gold, #d9a53f) 45%, transparent) 100%);
	--gradient-gold: linear-gradient(100deg, var(--color-gold, #d9a53f) 0%, #eecb87 50%, var(--color-gold, #d9a53f) 100%);
	--header-height: 84px;
	--btn-radius: 999px;
	--btn-height: 2.75rem;
	--btn-padding: 0.9rem 1.75rem;
	--btn-font-size: 0.875rem;
	--btn-font-weight: 600;
	--btn-letter-spacing: 0.02em;
	--btn-text-transform: none;
	--card-radius: 1.5rem;
	--section-padding: 2rem;
}

/* =========================================================================
   Reset / base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
	margin: 0;
	background: var(--color-background, #fdf5f7);
	color: var(--color-foreground, #3a2740);
	font-family: var(--font-body);
	font-weight: 500;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: -0.01em;
	margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a[href],
button,
[role="button"],
input[type="submit"],
input[type="button"],
input[type="reset"],
select,
label[for],
.theme-attr-pill,
.theme-thumb,
.theme-shop-filter,
.category-card,
.hero-cta-secondary,
.theme-nav-link,
.site-header__cta,
.site-header__cart-btn,
.theme-back-link,
.theme-card-add-btn,
.theme-card-details-btn,
.theme-product-card__link,
.theme-card-link,
.theme-form__submit,
summary {
	cursor: pointer;
}
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: color-mix(in srgb, var(--color-primary, #e0578f) 85%, transparent); color: var(--color-primary-foreground, #fff); }

img:not(.cover-img):not(.hero-bg-img):not(.theme-product-card__img):not(.theme-thumb__img):not(.theme-product-gallery__main-img):not(.site-logo-img) {
	max-width: 100%;
	height: auto;
	display: block;
}
.cover-img, .hero-bg-img, .theme-product-card__img, .theme-thumb__img, .theme-product-gallery__main-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.icon { width: 1em; height: 1em; }

/* =========================================================================
   Layout helpers
   ========================================================================= */
.container-nl {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}
@media (min-width: 640px) { .container-nl { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container-nl { padding: 0 2.5rem; } }

.site-main { min-height: 40vh; }
body.theme-no-hero .site-main:not(.front-page):not(.custom-orders-page):not(.single-product-page) { padding-top: var(--header-height); }

.eyebrow {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.3em;
	color: var(--color-accent, #9b6fc4); font-weight: 700;
}
.eyebrow::before { content: ''; display: inline-block; width: 1.75rem; height: 1px; background: var(--color-accent, #9b6fc4); }

.section-heading {
	font-family: var(--font-display);
	font-weight: 600;
	text-wrap: balance;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn-primary, .theme-btn-primary {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	border-radius: var(--btn-radius);
	background: var(--color-primary, #e0578f);
	color: var(--color-button-text, #fff);
	padding: var(--btn-padding);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	min-height: var(--btn-height);
	transition: all 0.3s ease;
	box-shadow: var(--shadow-pink);
	border: none;
	cursor: pointer;
}
.btn-primary:hover, .theme-btn-primary:hover {
	background: var(--color-accent, #9b6fc4);
	transform: translateY(-2px);
}

.btn-outline, .theme-btn-outline {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	border-radius: var(--btn-radius);
	border: 1px solid color-mix(in srgb, var(--color-foreground, #3a2740) 25%, transparent);
	color: var(--color-foreground, #3a2740);
	padding: var(--btn-padding);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	min-height: var(--btn-height);
	transition: all 0.3s ease;
	background: transparent;
	cursor: pointer;
}
.btn-outline:hover, .theme-btn-outline:hover {
	background: var(--color-foreground, #3a2740);
	color: var(--color-background, #fff);
}

.btn-gold {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	border-radius: var(--btn-radius);
	padding: var(--btn-padding);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	min-height: var(--btn-height);
	color: var(--color-plum, #3a2740);
	background-image: var(--gradient-gold);
	transition: transform 0.3s ease;
	border: none;
	cursor: pointer;
}
.btn-gold:hover { transform: translateY(-2px); }

/* =========================================================================
   Forms
   ========================================================================= */
.field {
	width: 100%;
	border-radius: 1rem;
	border: 1px solid var(--color-border, #e7d3de);
	background: #fff;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	color: var(--color-foreground, #3a2740);
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	font-family: var(--font-body);
}
.field:focus {
	border-color: var(--color-primary, #e0578f);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary, #e0578f) 25%, transparent);
}
.label {
	display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.14em; color: color-mix(in srgb, var(--color-foreground, #3a2740) 70%, transparent);
	margin-bottom: 0.5rem;
}

.surface-card {
	background: #fff;
	border-radius: 1.5rem;
	box-shadow: var(--shadow-soft);
	border: 1px solid color-mix(in srgb, var(--color-border, #e7d3de) 70%, transparent);
}
.surface-card-lilac {
	background-color: #ebb5f5;
	border-radius: 1.5rem;
	box-shadow: var(--shadow-soft);
	border: 1px solid color-mix(in srgb, var(--color-accent, #9b6fc4) 30%, transparent);
}
.bg-sweet { background-image: var(--gradient-sweet); }

/* =========================================================================
   Scroll-reveal animation system (Section 2.1)
   ========================================================================= */
.reveal-item {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
.scale-in-item { transform: translateY(28px) scale(0.94); }
.scale-in-item.is-visible { transform: translateY(0) scale(1); }

/* Customizer preview fallback — reveal content is ALWAYS visible while editing. */
body.is-customizer .reveal-item,
body.is-customizer .scale-in-item {
	opacity: 1 !important;
	transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
	.reveal-item, .scale-in-item { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.reveal-word { display: inline-block; overflow: hidden; }

@keyframes marquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 500;
	background-color: var(--color-header-footer-bg, #daa6f1);
	border-bottom: 1px solid color-mix(in srgb, var(--color-border, #e7d3de) 60%, transparent);
	padding: 0.75rem 0;
	transition: all 0.5s ease;
}
/* Offset fixed header under the WP admin bar */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}
.site-header.is-solid { backdrop-filter: blur(8px); padding: 0.5rem 0; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; position: relative; }
.site-header__brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.site-header__logo { width: 4rem; height: 4rem; object-fit: contain; border-radius: 50%; transition: transform 0.5s ease; }
.site-header__brand:hover .site-header__logo { transform: scale(1.05); }
.site-header__brand-text { display: none; flex-direction: column; line-height: 1.2; font-family: var(--font-display); text-align: left; min-width: 0; }
@media (min-width: 640px) { .site-header__brand-text { display: flex; } .site-header__logo { width: 5rem; height: 5rem; } }
.site-header__brand-name { font-size: 1.25rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 640px) { .site-header__brand-name { font-size: 1.5rem; } }
.site-header__brand-tagline { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.9); font-weight: 700; }

.site-header__nav { display: none; }
@media (min-width: 1024px) {
	.site-header__nav { display: flex; position: absolute; left: 50%; transform: translateX(-50%); align-items: center; gap: 2rem; }
}
.theme-nav-list { display: flex; align-items: center; gap: 2rem; }
.theme-nav-link { font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.9); transition: color 0.2s ease; }
.theme-nav-link:hover { color: #fff; }

.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }
.site-header__cart-btn {
	position: relative; width: 2.5rem; height: 2.5rem; display: none; align-items: center; justify-content: center;
	border-radius: 50%; border: 1px solid var(--color-border, #e7d3de); background: rgba(255,255,255,0.7);
	color: color-mix(in srgb, var(--color-foreground, #3a2740) 80%, transparent);
}
@media (min-width: 1024px) { .site-header__cart-btn:not(.site-header__cart-btn--mobile) { display: flex; } }
.site-header__cart-btn--mobile { display: flex; width: auto; height: auto; background: none; border: none; color: rgba(255,255,255,0.9); }
@media (min-width: 1024px) { .site-header__cart-btn--mobile { display: none; } }
.site-header__cart-btn .theme-cart-count {
	position: absolute; top: -6px; right: -6px; background: var(--color-primary, #e0578f); color: var(--color-button-text, #fff);
	font-size: 0.68rem; font-weight: 700; width: 1.25rem; height: 1.25rem; display: grid; place-items: center; border-radius: 50%;
}
.theme-cart-count:empty { display: none; }
.site-header__cart-btn--mobile .icon-cart { width: 1.5rem; height: 1.5rem; }

.site-header__cta {
	display: none; align-items: center; gap: 0.5rem; border-radius: 999px; background: var(--color-primary, #e0578f);
	padding: 0.6rem 1.25rem; font-size: 0.875rem; font-weight: 700; color: var(--color-button-text, #fff);
	box-shadow: var(--shadow-pink); transition: transform 0.2s ease;
}
.site-header__cta:hover { transform: scale(1.03); }
@media (min-width: 1024px) { .site-header__cta { display: inline-flex; } }

.site-header__burger { display: flex; color: rgba(255,255,255,0.9); padding: 0.25rem; }
@media (min-width: 1024px) { .site-header__burger { display: none; } }
.site-header__burger .icon { width: 1.5rem; height: 1.5rem; }
.site-header__burger-icon-close { display: none; }
.site-header__burger[aria-expanded="true"] .site-header__burger-icon-open { display: none; }
.site-header__burger[aria-expanded="true"] .site-header__burger-icon-close { display: block; }

.site-header__mobile-menu {
	display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-background, #fff);
	border-bottom: 1px solid var(--color-border, #e7d3de); box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.site-header__mobile-menu.is-open { display: block; }
/* padding-block only — keep container-nl horizontal gutters (px-5) */
.site-header__mobile-menu-inner { padding-block: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.theme-nav-list--mobile {
	display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; width: 100%;
}
.theme-nav-list--mobile .theme-nav-link {
	display: block; width: 100%; text-align: left; font-size: 1rem;
	text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700;
	color: color-mix(in srgb, var(--color-foreground, #3a2740) 80%, transparent);
}
.theme-nav-list--mobile .theme-nav-link:hover { color: var(--color-primary, #e0578f); }
.site-header__mobile-menu-inner > .theme-nav-link--accent,
.theme-nav-link--accent {
	display: block; width: 100%; text-align: left; font-size: 1rem;
	color: var(--color-accent, #9b6fc4); text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700;
}
.site-header__mobile-menu-inner > .theme-nav-link--accent:hover { color: var(--color-primary, #e0578f); }
@media (min-width: 1024px) { .site-header__mobile-menu { display: none !important; } }

body.theme-mobile-menu-open { overflow: hidden; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero-section { position: relative; min-height: 100svh; width: 100%; overflow: hidden; }
.hero-grid { display: grid; min-height: 100svh; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; max-height: 100svh; } }

.hero-copy { position: relative; z-index: 20; display: flex; flex-direction: column; justify-content: center; padding: 6rem 1.5rem 1.25rem; }
@media (min-width: 768px) { .hero-copy { padding-top: 7rem; } }
@media (min-width: 1024px) {
	.hero-copy { padding: 4rem 3.5rem 1.5rem max(2.5rem, calc((100vw - 80rem) / 2 + 2.5rem)); }
}
.hero-copy__inner { max-width: 36rem; margin: 0 auto; text-align: center; }
@media (min-width: 1024px) { .hero-copy__inner { margin: 0; text-align: left; } }

.hero-title {
	font-size: clamp(1.7rem, 7vw, 3.2rem);
	line-height: 1.05;
	font-weight: 600;
	text-wrap: balance;
}
.hero-title .reveal-word {
	display: inline-block;
	overflow: hidden;
	vertical-align: bottom;
	line-height: 1.05;
}
.hero-title__badge {
	display: inline-block;
	background: var(--color-primary, #e0578f);
	color: var(--color-primary-foreground, #fff);
	border-radius: 999px;
	padding: 0 1rem 0.25rem;
	transform: rotate(-1deg);
	vertical-align: bottom;
	line-height: 1.05;
	margin: 0 0.12em;
}
@media (min-width: 768px) { .hero-title__badge { padding: 0 1.25rem 0.25rem; } }
.hero-title__badge--rotate { transform: rotate(1deg); }
.hero-title .block { display: block; }

.hero-subtitle {
	margin-top: 1rem; max-width: 28rem; margin-left: auto; margin-right: auto;
	font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground, #3a2740) 60%, transparent); line-height: 1.7;
}
@media (min-width: 1024px) { .hero-subtitle { margin-top: 1.5rem; margin-left: 0; margin-right: 0; } }
@media (min-width: 768px) { .hero-subtitle { font-size: 1rem; } }

.hero-ctas { margin-top: 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; gap: 1rem; } }
@media (min-width: 1024px) { .hero-ctas { margin-top: 2rem; justify-content: flex-start; } }
.hero-cta-primary { width: 100%; }
@media (min-width: 640px) { .hero-cta-primary { width: auto; } }
.hero-cta-secondary {
	display: inline-flex; align-items: center; justify-content: center; width: 100%;
	border-radius: 999px; border: 2px solid var(--color-gold, #d9a53f); color: var(--color-gold, #d9a53f);
	background: rgba(255,255,255,0.4); backdrop-filter: blur(4px);
	padding: var(--btn-padding); font-size: 0.875rem; font-weight: 600; min-height: var(--btn-height);
	transition: all 0.3s ease;
}
.hero-cta-secondary:hover { background: color-mix(in srgb, var(--color-gold, #d9a53f) 10%, transparent); transform: translateY(-2px); }
@media (min-width: 640px) { .hero-cta-secondary { width: auto; } }

.hero-media { position: relative; padding: 0.5rem 1rem 1.25rem; min-height: 28svh; }
@media (min-width: 768px) { .hero-media { min-height: 22svh; } }
@media (min-width: 1024px) { .hero-media { padding: 0; min-height: 0; } }
.hero-media__frame {
	position: relative; overflow: hidden; border-radius: 2rem; min-height: 28svh;
	box-shadow: var(--shadow-soft); border: 1px solid color-mix(in srgb, var(--color-gold, #d9a53f) 30%, transparent);
}
@media (min-width: 768px) { .hero-media__frame { min-height: 22svh; } }
@media (min-width: 1024px) { .hero-media__frame { border-radius: 0 3rem 3rem 0; height: 100%; border: none; } }
.hero-media__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media__tint { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-primary, #e0578f) 10%, transparent); }

.hero-tag {
	position: absolute; z-index: 10; display: flex; align-items: center; gap: 0.6rem;
	border-radius: 999px; background: color-mix(in srgb, var(--color-background, #fff) 95%, transparent);
	backdrop-filter: blur(6px); border: 1px solid var(--color-gold, #d9a53f);
	padding: 0.4rem 0.4rem 0.4rem 1rem; box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--color-primary, #e0578f) 15%, transparent);
	font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
@media (min-width: 768px) { .hero-tag { font-size: 0.875rem; } }
.hero-tag--1 { top: 10%; left: 8%; }
.hero-tag--2 { top: 40%; right: 8%; }
.hero-tag--3 { bottom: 16%; left: 14%; }
@media (min-width: 1024px) {
	.hero-tag--1 { top: 16%; left: 10%; }
	.hero-tag--2 { top: 46%; right: 10%; }
	.hero-tag--3 { bottom: 14%; left: 16%; }
}
.hero-tag__plus {
	width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--color-primary, #e0578f);
	color: var(--color-primary-foreground, #fff); display: grid; place-items: center; flex-shrink: 0;
}

/* =========================================================================
   Marquee
   ========================================================================= */
.marquee-band { background: var(--color-accent, #9b6fc4); color: var(--color-accent-foreground, #fff); padding: 1rem 0; overflow: hidden; }
.marquee-band__track { display: flex; width: max-content; white-space: nowrap; font-family: var(--font-display); font-size: 1.25rem; animation: marquee 38s linear infinite; }
@media (min-width: 768px) { .marquee-band__track { font-size: 1.5rem; } }
.marquee-band__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-band__item { display: flex; align-items: center; padding: 0 2rem; }
.marquee-heart { margin-left: 2rem; opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .marquee-band__track { animation: none; } }

/* =========================================================================
   Categories
   ========================================================================= */
.categories-section, .mary-section, .shop-section, .commissions-section, .about-section, .contact-section, .cta-band__content {
	padding: 5rem 0;
}
@media (min-width: 768px) { .categories-section, .mary-section, .shop-section, .commissions-section, .about-section, .contact-section, .cta-band__content { padding: 7rem 0; } }

.categories-section__heading { font-size: 1.875rem; margin-top: 1rem; margin-bottom: 2.5rem; max-width: 42rem; }
@media (min-width: 768px) { .categories-section__heading { font-size: 3rem; } }

.categories-grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }

.category-card {
	background: #fff; border-radius: 1.5rem; box-shadow: var(--shadow-soft); border: 1px solid color-mix(in srgb, var(--color-border, #e7d3de) 70%, transparent);
	text-align: left; padding: 1.5rem; display: flex; flex-direction: column; transition: transform 0.3s ease;
}
@media (min-width: 768px) { .category-card { padding: 2rem; } }
.category-card:hover { transform: translateY(-6px); }
.category-card__img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; transition: transform 0.7s ease; }
.category-card:hover .category-card__img { transform: scale(1.05); }
.category-card__title { font-size: 1.5rem; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.category-card__blurb { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground, #3a2740) 70%, transparent); line-height: 1.6; }
.category-card__browse {
	margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; text-transform: uppercase;
	letter-spacing: 0.18em; font-weight: 700; color: var(--color-accent, #9b6fc4);
}
.category-card__browse .icon { transition: transform 0.2s ease; }
.category-card:hover .category-card__browse .icon { transform: translateX(4px); }

/* =========================================================================
   Meet Mary
   ========================================================================= */
.mary-section { background-image: var(--gradient-sweet); position: relative; overflow: hidden; }
.mary-section__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .mary-section__grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; } }
.mary-section__text { order: 2; display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) { .mary-section__text { order: 1; gap: 2rem; } }
.mary-section__eyebrow {
	display: inline-block; font-family: var(--font-body); color: var(--color-accent, #9b6fc4); text-transform: uppercase;
	letter-spacing: 0.2em; font-size: 0.72rem; font-weight: 700; border-bottom: 1px solid var(--color-accent, #9b6fc4); padding-bottom: 0.25rem; width: max-content;
}
.mary-section__heading { font-size: 2.25rem; color: var(--color-plum, #3a2740); font-weight: 600; line-height: 1.05; }
@media (min-width: 768px) { .mary-section__heading { font-size: 3.75rem; } }
.mary-section__body { display: flex; flex-direction: column; gap: 1.25rem; color: color-mix(in srgb, var(--color-plum, #3a2740) 85%, transparent); font-size: 1rem; line-height: 1.7; max-width: 36rem; }
@media (min-width: 768px) { .mary-section__body { font-size: 1.125rem; } }
.mary-section__flourish { width: 4rem; height: 1px; background: var(--color-accent, #9b6fc4); }

.mary-section__portrait { order: 1; position: relative; display: flex; justify-content: center; align-items: center; }
@media (min-width: 768px) { .mary-section__portrait { order: 2; } }
.mary-section__portrait-blur {
	position: absolute; inset: -1.5rem; background: color-mix(in srgb, var(--color-primary, #e0578f) 20%, transparent);
	border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; filter: blur(24px); pointer-events: none;
}
.mary-section__portrait-frame { position: relative; }
.mary-section__portrait-dashed { position: absolute; top: -1rem; right: -1rem; width: 100%; height: 100%; border: 2px dashed color-mix(in srgb, var(--color-accent, #9b6fc4) 50%, transparent); border-radius: 2rem; }
.mary-section__portrait-img-wrap {
	position: relative; width: 16rem; height: 20rem; border-radius: 2rem; overflow: hidden; box-shadow: var(--shadow-soft);
	outline: 8px solid rgba(255,255,255,0.6);
}
@media (min-width: 768px) { .mary-section__portrait-img-wrap { width: 20rem; height: 28rem; } }
.mary-section__heart-badge {
	position: absolute; bottom: -1.5rem; left: -1.5rem; width: 6rem; height: 6rem; background: var(--color-primary, #e0578f);
	border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px -8px rgba(0,0,0,0.3);
	border: 4px solid #fff; color: var(--color-plum, #3a2740);
}
.mary-section__heart-badge .icon { width: 2rem; height: 2rem; }

/* =========================================================================
   Shop
   ========================================================================= */
.shop-section { background: color-mix(in srgb, var(--color-secondary, #f6e3f0) 50%, transparent); }
.shop-section__head { display: flex; flex-direction: column; gap: 1.5rem; justify-content: space-between; margin-bottom: 2.5rem; }
@media (min-width: 1024px) { .shop-section__head { flex-direction: row; align-items: flex-end; } }
.shop-heading { font-size: 1.875rem; margin-top: 1rem; }
@media (min-width: 768px) { .shop-heading { font-size: 3rem; } }
.theme-select-wrap { position: relative; display: inline-flex; width: 100%; }
@media (min-width: 1024px) { .theme-select-wrap { width: auto; } }
.theme-shop-filter {
	appearance: none; width: 100%; min-height: var(--btn-height); padding: 0.6rem 3rem 0.6rem 1.25rem;
	border-radius: 999px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700;
	border: 1px solid var(--color-border, #e7d3de); background: #fff; color: color-mix(in srgb, var(--color-foreground, #3a2740) 80%, transparent); cursor: pointer;
}
@media (min-width: 1024px) { .theme-shop-filter { width: auto; } }
.theme-select-wrap .theme-select-chevron { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; }

.theme-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; align-items: stretch; }
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.theme-product-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 1.5rem; background: #fff; box-shadow: var(--shadow-soft); border: 1px solid color-mix(in srgb, var(--color-border, #e7d3de) 70%, transparent); transition: transform 0.3s ease; }
.theme-product-card:hover { transform: translateY(-6px); }
.theme-product-card__image-wrapper { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--color-muted, #f5eaf0); }
.theme-product-card__image-wrapper .theme-card-link { position: absolute; inset: 0; z-index: 2; }
.theme-product-card__img { transition: transform 0.7s ease; pointer-events: none; }
.theme-product-card:hover .theme-product-card__img { transform: scale(1.05); }
.theme-product-card__badge { position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 3; background: var(--color-plum, #3a2740); color: #fff; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.6rem; border-radius: 999px; pointer-events: none; }
.theme-product-card__info { flex: 1; display: flex; flex-direction: column; padding: 1.5rem; min-width: 0; position: relative; z-index: 3; }
.theme-product-card__tagline { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--color-accent, #9b6fc4); font-weight: 700; margin-bottom: 0.5rem; }
.theme-product-card__title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; margin-bottom: 0.25rem; overflow: hidden; text-overflow: ellipsis; }
.theme-product-card__title a { transition: color 0.2s ease; }
.theme-product-card__title a:hover { color: var(--color-primary, #e0578f); }
.theme-product-card__price { font-family: var(--font-display); font-size: 1.125rem; color: var(--color-primary, #e0578f); margin-bottom: 1.25rem; }
.theme-product-card__price .woocommerce-Price-amount { color: var(--color-primary, #e0578f); }
.theme-product-card__price del { opacity: 0.5; margin-right: 0.4rem; }
.theme-product-card__actions { margin-top: auto; display: flex; gap: 0.5rem; }
.theme-card-add-btn, .theme-card-details-btn {
	flex: 1;
	padding-left: 1rem;
	padding-right: 1rem;
	font-size: 0.72rem;
	position: relative;
	z-index: 4;
	pointer-events: auto !important;
}

/* =========================================================================
   Commissions
   ========================================================================= */
.commissions-section__intro { max-width: 42rem; margin-bottom: 3rem; }
.commissions-section__heading { font-size: 1.875rem; margin-top: 1rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .commissions-section__heading { font-size: 3rem; } }
.commissions-section__paragraph { color: color-mix(in srgb, var(--color-foreground, #3a2740) 75%, transparent); line-height: 1.7; }
.commissions-grid { display: grid; gap: 2rem; align-items: stretch; }
@media (min-width: 1024px) { .commissions-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.commissions-col { display: flex; flex-direction: column; height: 100%; }
.commissions-col__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.commissions-col__icon { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; display: grid; place-items: center; }
.commissions-col__icon--primary { background: color-mix(in srgb, var(--color-primary, #e0578f) 12%, transparent); color: var(--color-primary, #e0578f); }
.commissions-col__icon--accent { background: color-mix(in srgb, var(--color-accent, #9b6fc4) 15%, transparent); color: var(--color-accent, #9b6fc4); }
.commissions-col__title { font-size: 1.5rem; }

.theme-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 1.5rem;
	flex: 1;
	min-height: 0;
}
@media (min-width: 640px) { .theme-form { padding: 2rem; } }
.theme-form--card {
	background: #fff;
	border-radius: 1.5rem;
	box-shadow: var(--shadow-soft);
	border: 1px solid color-mix(in srgb, var(--color-border, #e7d3de) 70%, transparent);
}
.theme-form--lilac {
	background-color: #ebb5f5;
	border-radius: 1.5rem;
	box-shadow: var(--shadow-soft);
	border: 1px solid color-mix(in srgb, var(--color-accent, #9b6fc4) 30%, transparent);
}
.theme-form--stacked { display: flex; }
.theme-form__fields { display: flex; flex-direction: column; gap: 1.25rem; flex: 1; }
.theme-form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .theme-form__row { grid-template-columns: repeat(2, 1fr); } }
.theme-field--full { grid-column: 1 / -1; }
.theme-form__submit {
	position: relative;
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
}
.theme-form__submit--full { width: 100%; }
.theme-form__spinner { display: none; animation: theme-spin 1s linear infinite; }
.theme-form__submit.is-busy .theme-form__spinner { display: inline-block; }
@keyframes theme-spin { to { transform: rotate(360deg); } }
/* display:flex must not override the HTML hidden attribute */
.theme-form__success {
	text-align: center;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding: 2rem;
	height: 100%;
}
.theme-form__success:not([hidden]) { display: flex; }
.theme-form__success[hidden] { display: none !important; }
.theme-form__fields[hidden] { display: none !important; }
.theme-form__success-icon {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--color-primary, #e0578f) 15%, transparent);
	display: grid;
	place-items: center;
	margin-bottom: 1rem;
	color: var(--color-primary, #e0578f);
}
.theme-form__success h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; }
.theme-form__success p { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground, #3a2740) 70%, transparent); line-height: 1.6; }

/* =========================================================================
   About
   ========================================================================= */
.about-section__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .about-section__grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.about-section__image { position: relative; aspect-ratio: 4 / 3; border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow-soft); }
.about-section__heading { font-size: 1.875rem; margin-top: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .about-section__heading { font-size: 3rem; } }
.about-section__body { display: flex; flex-direction: column; gap: 1.25rem; color: color-mix(in srgb, var(--color-foreground, #3a2740) 80%, transparent); line-height: 1.7; max-width: 36rem; }
.about-section__features { margin-top: 2.5rem; display: grid; gap: 1.5rem 0; }
@media (min-width: 640px) { .about-section__features { grid-template-columns: repeat(3, 1fr); } }
.about-feature { padding: 0 1.25rem; border-right: 1px solid color-mix(in srgb, var(--color-border, #e7d3de) 60%, transparent); min-width: 0; }
@media (max-width: 639px) { .about-feature { border-right: none; border-bottom: 1px solid color-mix(in srgb, var(--color-border, #e7d3de) 60%, transparent); padding: 0 0 1.25rem; } }
.about-feature:nth-child(3n), .about-feature:last-child { border-right: none; }
.about-feature__title { font-family: var(--font-display); font-size: 1.125rem; color: var(--color-primary, #e0578f); margin-bottom: 0.4rem; }
.about-feature__body { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground, #3a2740) 70%, transparent); line-height: 1.6; overflow-wrap: break-word; }

/* =========================================================================
   Custom order CTA band
   ========================================================================= */
.cta-band { position: relative; width: 100%; overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; height: 120%; top: -10%; width: 100%; }
.cta-band__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to top, var(--color-background, #fff) 0%, var(--color-background, #fff) 14%, color-mix(in srgb, var(--color-background, #fff) 55%, transparent) 45%, transparent 80%);
}
.cta-band__content { position: relative; z-index: 10; }
.cta-band__inner { text-align: center; max-width: 42rem; margin: 0 auto; }
.cta-band__icon { width: 2rem; height: 2rem; color: var(--color-primary, #e0578f); margin: 0 auto 1.25rem; }
.cta-band__title { font-size: 1.875rem; margin-bottom: 1.25rem; text-wrap: balance; color: var(--color-foreground, #3a2740); filter: drop-shadow(0 2px 12px rgba(0,0,0,0.25)); }
@media (min-width: 768px) { .cta-band__title { font-size: 3rem; } }
.cta-band__paragraph { color: color-mix(in srgb, var(--color-foreground, #3a2740) 85%, transparent); max-width: 34rem; margin: 0 auto 2rem; line-height: 1.7; }

/* =========================================================================
   Contact
   ========================================================================= */
.contact-section { background: linear-gradient(to bottom, var(--color-background, #fff), color-mix(in srgb, var(--color-secondary, #f6e3f0) 60%, transparent)); }
.contact-section__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .contact-section__grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }
.contact-title { font-size: 1.875rem; margin-top: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .contact-title { font-size: 3rem; } }
.contact-section__paragraph { color: color-mix(in srgb, var(--color-foreground, #3a2740) 75%, transparent); line-height: 1.7; max-width: 32rem; margin-bottom: 2rem; }
.contact-list { display: flex; flex-direction: column; }
.contact-list__link { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid color-mix(in srgb, var(--color-border, #e7d3de) 60%, transparent); transition: color 0.2s ease; }
.contact-list li:first-child .contact-list__link { border-top: none; }
.contact-list__link:hover { color: var(--color-primary, #e0578f); }
.contact-list__icon { width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; display: grid; place-items: center; flex-shrink: 0; }
.contact-list__icon--primary { background: color-mix(in srgb, var(--color-primary, #e0578f) 12%, transparent); color: var(--color-primary, #e0578f); }
.contact-list__icon--accent { background: color-mix(in srgb, var(--color-accent, #9b6fc4) 15%, transparent); color: var(--color-accent, #9b6fc4); }
.contact-list__text { min-width: 0; }
.contact-list__label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; color: color-mix(in srgb, var(--color-foreground, #3a2740) 60%, transparent); }
.contact-list__value { display: block; font-family: var(--font-display); font-size: 1.125rem; overflow-wrap: break-word; word-break: break-word; }

.contact-card { background: #fff; border-radius: 1.5rem; box-shadow: var(--shadow-soft); border: 1px solid color-mix(in srgb, var(--color-border, #e7d3de) 70%, transparent); padding: 2rem; text-align: center; }
@media (min-width: 768px) { .contact-card { padding: 2.5rem; } }
.contact-card__logo { width: 6rem; height: 6rem; object-fit: contain; border-radius: 50%; margin: 0 auto 1.5rem; }
.contact-card__title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.75rem; }
.contact-card__body { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground, #3a2740) 70%, transparent); line-height: 1.6; margin-bottom: 1.75rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { position: relative; overflow: hidden; background-color: var(--color-header-footer-bg, #daa6f1); color: var(--color-footer-text, #5c2a7e); }
.site-footer__glow {
	position: absolute; inset: 0; opacity: 0.18; pointer-events: none;
	background-image: radial-gradient(circle at 18% 30%, var(--color-primary, #e0578f) 0, transparent 40%), radial-gradient(circle at 82% 70%, var(--color-accent, #9b6fc4) 0, transparent 42%);
}
/* padding-block only — keep container-nl horizontal gutters on mobile */
.site-footer__grid { position: relative; display: grid; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; padding-block: 5rem; } }
.site-footer__brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.site-footer__logo { width: 3.5rem; height: 3.5rem; object-fit: contain; border-radius: 50%; background: color-mix(in srgb, var(--color-background, #fff) 95%, transparent); padding: 0.1rem; }
.site-footer__brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.site-footer__brand-tagline { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.75; font-weight: 700; }
.site-footer__description { font-size: 0.875rem; opacity: 0.85; line-height: 1.6; max-width: 20rem; }
.site-footer__heading { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 1.25rem; }
.site-footer__contact-list { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; opacity: 0.95; }
.site-footer__contact-list li { display: flex; align-items: center; gap: 0.75rem; }
.site-footer__contact-list a:hover { color: var(--color-blush, #f9d9e6); }
.site-footer__made-body { font-size: 0.875rem; opacity: 0.8; line-height: 1.6; margin-bottom: 1rem; }
.site-footer__made-link { font-size: 0.875rem; font-weight: 700; text-decoration: underline; }
.site-footer__made-link:hover { color: var(--color-blush, #f9d9e6); }
.site-footer__bottom { position: relative; border-top: 1px solid color-mix(in srgb, var(--color-background, #fff) 15%, transparent); }
.site-footer__bottom-inner { padding-block: 1.25rem; font-size: 0.72rem; opacity: 0.8; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
@media (min-width: 640px) { .site-footer__bottom-inner { flex-direction: row; align-items: center; } }
.site-footer__madewith { display: inline-flex; align-items: center; gap: 0.4rem; }
.icon-heart { color: var(--color-blush, #f9d9e6); }
.site-footer__credit-link { font-weight: 700; text-decoration: underline; }
.site-footer__credit-link:hover { color: var(--color-blush, #f9d9e6); }

/* =========================================================================
   Single Product Page
   ========================================================================= */
.theme-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: color-mix(in srgb, var(--color-foreground, #3a2740) 60%, transparent);
	margin: 0 0 2rem;
	transition: color 0.2s ease;
}
.theme-back-link:hover { color: var(--color-primary, #e0578f); }
.single-product-page { padding-top: 7rem; padding-bottom: 5rem; }
body.admin-bar .single-product-page { padding-top: calc(7rem + 32px); }
@media screen and (max-width: 782px) {
	body.admin-bar .single-product-page { padding-top: calc(7rem + 46px); }
}
body.admin-bar.theme-no-hero .site-main:not(.front-page):not(.custom-orders-page):not(.single-product-page) {
	padding-top: calc(var(--header-height) + 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar.theme-no-hero .site-main:not(.front-page):not(.custom-orders-page):not(.single-product-page) {
		padding-top: calc(var(--header-height) + 46px);
	}
}

.single-product .theme-product-layout { display: grid; gap: 3rem; min-width: 0; }
@media (min-width: 1024px) { .single-product .theme-product-layout { grid-template-columns: repeat(2, 1fr); gap: 4rem; } }
.single-product .theme-product-gallery, .single-product .theme-product-info { min-width: 0; max-width: 100%; }

.theme-product-gallery__main { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 0.5rem; background: var(--color-muted, #f5eaf0); border: 1px solid var(--color-border, #e7d3de); }
.theme-gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; border-radius: 50%; background: color-mix(in srgb, var(--color-background, #fff) 90%, transparent); border: 1px solid var(--color-border, #e7d3de); display: grid; place-items: center; z-index: 3; }
.theme-gallery-nav--prev { left: 0.75rem; }
.theme-gallery-nav--next { right: 0.75rem; }
.single-product .theme-product-thumbnails { margin-top: 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; flex-wrap: wrap; max-width: 100%; }
.theme-thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: 0.5rem; border: 2px solid var(--color-border, #e7d3de); transition: border-color 0.2s ease; cursor: pointer; }
.theme-thumb.is-active { border-color: var(--color-primary, #e0578f); }
.theme-thumb:hover { border-color: color-mix(in srgb, var(--color-primary, #e0578f) 50%, transparent); }

.product-title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 2.25rem;
	line-height: 1.15;
	margin: 0 0 1rem;
}
@media (min-width: 768px) { .product-title { font-size: 3rem; } }

.theme-product-info .eyebrow { margin-bottom: 0.75rem; }

.theme-product-price {
	font-family: var(--font-display);
	font-size: 1.875rem;
	color: var(--color-primary, #e0578f);
	margin-bottom: 1.5rem;
	line-height: 1.2;
}
.theme-product-price__currency {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: color-mix(in srgb, var(--color-foreground, #3a2740) 50%, transparent);
	font-family: var(--font-body);
	font-weight: 700;
}
.theme-product-price__qty-note {
	margin-left: 0.75rem;
	font-size: 0.875rem;
	color: color-mix(in srgb, var(--color-foreground, #3a2740) 50%, transparent);
	font-family: var(--font-body);
	font-weight: 500;
	text-transform: none;
	letter-spacing: normal;
}
.theme-product-price__qty-note[hidden] { display: none !important; }
.theme-product-price .price,
.theme-product-price .screen-reader-text { display: none !important; }

.theme-stock-status { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.theme-stock-status--out { color: var(--color-destructive, #c0392b); }
.theme-product-description {
	color: color-mix(in srgb, var(--color-foreground, #3a2740) 75%, transparent);
	line-height: 1.7;
	margin-bottom: 2rem;
	overflow-wrap: break-word;
	word-break: break-word;
}
.theme-product-description p { margin: 0; }
.theme-product-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	color: color-mix(in srgb, var(--color-foreground, #3a2740) 60%, transparent);
	margin-bottom: 2rem;
}
.theme-product-badges span { display: inline-flex; align-items: center; gap: 0.4rem; }
.theme-product-badges .icon { width: 0.875rem; height: 0.875rem; color: var(--color-primary, #e0578f); }

.theme-product-purchase {
	border-top: 1px solid var(--color-border, #e7d3de);
	padding-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}
.theme-product-purchase .variations_form { display: flex; flex-direction: column; gap: 1.25rem; margin: 0; }
.theme-product-purchase .variations { margin: 0; width: 100%; border: 0; }
.theme-product-purchase .single_variation_wrap { display: flex; flex-direction: column; gap: 1.25rem; }
.theme-product-purchase .woocommerce-variation-price,
.theme-product-purchase .woocommerce-variation-availability,
.theme-product-purchase .woocommerce-variation-description { display: none !important; }

.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; border: 0; padding: 0; }
.single-product .variations tbody td.label {
	padding-bottom: 0.5rem;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	color: color-mix(in srgb, var(--color-foreground, #3a2740) 60%, transparent);
}
.single-product .variations tbody td.value { padding-top: 0; padding-bottom: 0; }
.single-product .variations tbody tr + tr td.label { margin-top: 0.25rem; }
.single-product .variations select.theme-attr-select-hidden,
.single-product .variations select { display: none !important; }
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-pill {
	padding: 0.5rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--color-border, #e7d3de);
	font-size: 0.875rem;
	transition: all 0.2s ease;
	cursor: pointer;
	background: transparent;
}
.theme-attr-pill:hover { border-color: color-mix(in srgb, var(--color-primary, #e0578f) 50%, transparent); }
.theme-attr-pill.is-selected {
	border-color: var(--color-primary, #e0578f);
	background: var(--color-primary, #e0578f);
	color: var(--color-primary-foreground, #fff);
}

.theme-qty-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}
.theme-qty-row__label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: color-mix(in srgb, var(--color-foreground, #3a2740) 60%, transparent);
	font-weight: 600;
}
.theme-quantity-wrapper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--color-border, #e7d3de);
	border-radius: 0.5rem;
	overflow: hidden;
}
.theme-qty-minus, .theme-qty-plus {
	width: 2.5rem;
	height: 2.5rem;
	display: grid;
	place-items: center;
	transition: background 0.2s ease;
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-muted, #f5eaf0); }
.theme-qty-input {
	width: 3rem;
	height: 2.5rem;
	text-align: center;
	border: none;
	border-left: 1px solid var(--color-border, #e7d3de);
	border-right: 1px solid var(--color-border, #e7d3de);
	font-family: var(--font-display);
	font-size: 1.125rem;
	-moz-appearance: textfield;
	background: transparent;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-add-to-cart-area {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	margin-top: 0;
}
@media (min-width: 640px) {
	.theme-add-to-cart-area { flex-direction: row; }
}
.theme-add-to-cart-area .single_add_to_cart_button,
.theme-add-to-cart-area .theme-buy-now-button {
	flex: 1 1 0;
	min-width: 0;
	justify-content: center;
}
/* Add to cart = outline on PDP (matches Lovable) */
.single-product .theme-add-to-cart-area .single_add_to_cart_button.button,
.single-product .theme-add-to-cart-area a.single_add_to_cart_button {
	background-color: transparent !important;
	color: var(--color-primary, #e0578f) !important;
	border: 2px solid var(--color-primary, #e0578f) !important;
	box-shadow: none !important;
}
.single-product .theme-add-to-cart-area .single_add_to_cart_button.button:hover {
	background-color: color-mix(in srgb, var(--color-primary, #e0578f) 8%, transparent) !important;
	opacity: 1 !important;
}

.theme-product-note {
	margin-top: 1.5rem;
	font-size: 0.75rem;
	color: color-mix(in srgb, var(--color-foreground, #3a2740) 60%, transparent);
	line-height: 1.6;
}

.related-products-section { margin-top: 6rem; }
.related-products-section__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; }
.related-products-section__head .section-heading { font-size: 1.5rem; }
@media (min-width: 768px) { .related-products-section__head .section-heading { font-size: 2.25rem; } }
.related-products-section__viewall { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-primary, #e0578f); text-decoration: underline; white-space: nowrap; }

/* =========================================================================
   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, #e0578f) !important;
	color: var(--color-button-text, #fff) !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;
	gap: 0.5rem !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, #e0578f) !important;
	color: var(--color-button-text, #fff) !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, #e0578f) !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }

/* Card compact variant — overrides global rules, placed after them */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
	min-height: 2.25rem !important;
	padding: 0.5rem 1rem !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; }

/* =========================================================================
   Notices — scoped hiding only (Section 14.1)
   ========================================================================= */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	border-radius: 1rem; border: 1px solid var(--color-border, #e7d3de); background: #fff;
	padding: 1rem 1.5rem; font-size: 0.875rem; margin-bottom: 1.5rem; list-style: none;
}

/* =========================================================================
   Shop archive (fallback for direct /shop or category visits)
   ========================================================================= */
.shop-archive-page { padding-top: 7rem; padding-bottom: 5rem; }
.shop-archive-page__head { margin-bottom: 2.5rem; }
.theme-empty-state { text-align: center; padding: 4rem 0; color: color-mix(in srgb, var(--color-foreground, #3a2740) 60%, transparent); }

/* =========================================================================
   Side cart drawer
   ========================================================================= */
#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 800; background: rgba(58,39,64,0.4); backdrop-filter: blur(4px);
	opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

#theme-cart-drawer {
	position: fixed; top: 0; right: 0; z-index: 900; height: 100dvh; width: 100%; max-width: 28rem;
	background: var(--color-background, #fff); border-left: 1px solid var(--color-border, #e7d3de);
	box-shadow: -20px 0 60px -20px rgba(0,0,0,0.3); display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--color-border, #e7d3de); }
.theme-cart-drawer__title { font-size: 1.125rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); }
.theme-cart-drawer__count { font-size: 0.875rem; font-weight: 600; color: color-mix(in srgb, var(--color-foreground, #3a2740) 60%, transparent); }
.theme-cart-drawer__close { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--color-border, #e7d3de); display: grid; place-items: center; transition: all 0.2s ease; }
.theme-cart-drawer__close:hover { color: var(--color-primary, #e0578f); border-color: color-mix(in srgb, var(--color-primary, #e0578f) 40%, transparent); }
.theme-cart-drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.theme-cart-drawer__empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; }
.theme-cart-drawer__empty-icon { width: 3rem; height: 3rem; color: color-mix(in srgb, var(--color-foreground, #3a2740) 40%, transparent); }
.theme-cart-drawer__continue { font-size: 0.875rem; font-weight: 700; color: var(--color-primary, #e0578f); text-decoration: underline; }
.theme-cart-drawer__list { display: flex; flex-direction: column; }
.theme-cart-drawer__item { padding: 1rem 0; display: flex; gap: 1rem; border-bottom: 1px solid var(--color-border, #e7d3de); }
.theme-cart-drawer__item-img { width: 4rem; height: 4rem; flex-shrink: 0; border-radius: 0.75rem; overflow: hidden; border: 1px solid var(--color-border, #e7d3de); display: block; }
.theme-cart-drawer__item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-cart-drawer__item-body { flex: 1; min-width: 0; }
.theme-cart-drawer__item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.theme-cart-drawer__item-name { font-weight: 700; font-size: 0.875rem; line-height: 1.3; }
.theme-cart-drawer__item-variation { font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground, #3a2740) 55%, transparent); margin-top: 0.15rem; }
.theme-cart-drawer__remove { color: color-mix(in srgb, var(--color-foreground, #3a2740) 45%, transparent); padding: 0.25rem; transition: color 0.2s ease; }
.theme-cart-drawer__remove:hover { color: var(--color-destructive, #c0392b); }
.theme-cart-drawer__item-bottom { margin-top: 0.5rem; display: flex; align-items: center; justify-content: space-between; }
.theme-cart-drawer__qty { display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--color-border, #e7d3de); border-radius: 999px; padding: 0.25rem 0.5rem; }
.theme-cart-drawer__qty button { width: 1.5rem; height: 1.5rem; display: grid; place-items: center; color: color-mix(in srgb, var(--color-foreground, #3a2740) 70%, transparent); }
.theme-cart-drawer__qty button:hover { color: var(--color-primary, #e0578f); }
.theme-cart-drawer__qty span { font-size: 0.875rem; font-weight: 700; width: 1.25rem; text-align: center; }
.theme-cart-drawer__item-price { font-weight: 700; font-size: 0.875rem; }
.theme-cart-drawer__footer { border-top: 1px solid var(--color-border, #e7d3de); padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; align-items: center; justify-content: space-between; }
.theme-cart-drawer__subtotal span:first-child { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground, #3a2740) 60%, transparent); }
.theme-cart-drawer__subtotal span:last-child { font-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer__note { font-size: 0.72rem; color: color-mix(in srgb, var(--color-foreground, #3a2740) 55%, transparent); }
.theme-cart-drawer__checkout-btn { display: block; text-align: center; border-radius: 999px; background: var(--color-primary, #e0578f); color: var(--color-button-text, #fff); padding: 0.9rem 1.5rem; font-size: 0.875rem; font-weight: 700; box-shadow: var(--shadow-pink); transition: transform 0.2s ease; }
.theme-cart-drawer__checkout-btn:hover { transform: scale(1.02); }

/* =========================================================================
   Checkout Block (Section 13)
   ========================================================================= */
body.woocommerce-checkout .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }
body.woocommerce-checkout .entry-content { width: 100%; }
body.woocommerce-checkout .page-title { margin-bottom: 2rem; }

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}
body.woocommerce-checkout .wc-block-checkout { display: block; }
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2rem);
		align-items: start;
	}
	body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notice-banner {
		grid-column: 1 / -1;
	}
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	border-radius: 1rem;
	border: 1px solid var(--color-border, #e7d3de);
	font-family: var(--font-body);
	font-size: 0.9rem;
	color: var(--color-foreground, #3a2740);
	background: #fff;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
	border-color: var(--color-primary, #e0578f);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary, #e0578f) 25%, transparent);
}
body.woocommerce-checkout .wc-block-components-text-input input { padding: revert; }

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: var(--color-primary, #e0578f) !important;
	color: var(--color-button-text, #fff) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	font-weight: 700 !important;
	text-transform: none !important;
	border: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-secondary, #f6e3f0);
	border-radius: var(--card-radius);
	padding: var(--section-padding);
}
body.woocommerce-checkout .wc-block-components-notice-banner { border-radius: 1rem; }

/* =========================================================================
   Cart / My Account / Thank You page width & alignment parity (13.7)
   ========================================================================= */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
body.theme-thankyou-page .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }

/* =========================================================================
   Thank You page
   ========================================================================= */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-family: var(--font-display); font-size: 1.5rem; padding: 0 0 1rem; }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; margin: 1.5rem 0; }
body.theme-thankyou-page .woocommerce-order-overview li { border-right: 1px solid var(--color-border, #e7d3de); padding-right: 1.5rem; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; margin-top: 1rem; 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, #e7d3de); 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 { margin-top: 2rem; }
@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: 100vh; display: flex; align-items: center; justify-content: center; background-image: var(--gradient-sweet); }
.theme-404__wrap { display: flex; justify-content: center; padding: 3rem 0; }
.theme-404__card { max-width: 28rem; width: 100%; padding: 2.5rem; text-align: center; }
.theme-404__heading { font-size: 3rem; margin-bottom: 0.75rem; }
.theme-404__text { margin-bottom: 1.75rem; color: color-mix(in srgb, var(--color-foreground, #3a2740) 70%, transparent); line-height: 1.6; }

/* =========================================================================
   Custom Orders page
   ========================================================================= */
.custom-orders-page { padding-top: 7rem; padding-bottom: 5rem; }
body.admin-bar .custom-orders-page { padding-top: calc(7rem + 32px); }
@media screen and (max-width: 782px) {
	body.admin-bar .custom-orders-page { padding-top: calc(7rem + 46px); }
}
/* Customizer preview has no admin-bar offset — keep back link clear of fixed header */
body.is-customizer .custom-orders-page { padding-top: 7.5rem; }
.custom-orders-title {
	font-family: var(--font-display);
	font-size: 2.25rem;
	margin: 1rem 0 1.25rem;
	line-height: 1.05;
	font-weight: 600;
	text-wrap: balance;
}
@media (min-width: 768px) { .custom-orders-title { font-size: 3.75rem; } }
.custom-orders-paragraph {
	color: color-mix(in srgb, var(--color-foreground, #3a2740) 75%, transparent);
	line-height: 1.7;
	margin-bottom: 2rem;
	max-width: 32rem;
}
.custom-orders-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .custom-orders-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; } }
.custom-orders-steps { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.custom-orders-step {
	display: flex;
	gap: 1rem;
	padding: 1.25rem;
	background: #fff;
	border-radius: 1.5rem;
	box-shadow: var(--shadow-soft);
	border: 1px solid color-mix(in srgb, var(--color-border, #e7d3de) 70%, transparent);
}
.custom-orders-step__icon {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.75rem;
	background: color-mix(in srgb, var(--color-primary, #e0578f) 12%, transparent);
	color: var(--color-primary, #e0578f);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.custom-orders-step__icon .icon {
	width: 1.25rem;
	height: 1.25rem;
}
.custom-orders-step__title { display: block; font-family: var(--font-display); font-size: 1.125rem; }
.custom-orders-step__body {
	display: block;
	font-size: 0.875rem;
	color: color-mix(in srgb, var(--color-foreground, #3a2740) 70%, transparent);
	line-height: 1.6;
	margin-top: 0.25rem;
}
.custom-orders-image {
	position: relative;
	aspect-ratio: 4/3;
	border-radius: 1.5rem;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	display: none;
}
@media (min-width: 1024px) { .custom-orders-image { display: block; } }
.custom-orders-form-col { position: sticky; top: 7rem; }
body.admin-bar .custom-orders-form-col { top: calc(7rem + 32px); }
@media screen and (max-width: 782px) {
	body.admin-bar .custom-orders-form-col { top: calc(7rem + 46px); }
}
.custom-orders-form-col__head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	color: var(--color-accent, #9b6fc4);
}
.custom-orders-form-col__head h2 {
	font-family: var(--font-display);
	font-size: 1.5rem;
	color: var(--color-foreground, #3a2740);
}
.custom-orders-form-col__note {
	font-size: 0.75rem;
	color: color-mix(in srgb, var(--color-foreground, #3a2740) 55%, transparent);
	margin-top: 1rem;
	text-align: center;
	line-height: 1.6;
}

/* =========================================================================
   Generic page
   ========================================================================= */
.site-main--page { padding-top: 7rem; padding-bottom: 5rem; }
.page-title { font-size: 2rem; margin-bottom: 1.5rem; }
