/* ==========================================================================
   Madame Inc. theme stylesheet
   ========================================================================== */

:root {
	/* Brand tokens (overridden live by the Customizer via wp_add_inline_style) */
	--background: #f5f4fb;
	--foreground: #191a33;
	--primary: #4a45a5;
	--primary-foreground: #f6f5fc;
	--secondary: #e7e5f5;
	--accent: #ffd45c;
	--accent-foreground: #202140;
	--border: #e3e0f3;
	--logo-height: 44px;

	/* Derived / structural tokens (Section 6 — never exposed as controls) */
	--card: #fbfbfe;
	--muted: #dfddee;
	--muted-foreground: #595874;
	--destructive: #c62f3b;
	--ivory: #f5f4fb;
	--linen: #e7e5f5;
	--bone: #dcd9ec;
	--radius: 0.5rem;
	--shadow-soft: 0 6px 24px -12px rgba(74, 69, 165, 0.18);
	--shadow-elevated: 0 24px 60px -24px rgba(74, 69, 165, 0.26);
	--header-height: 4.75rem;

	--font-display: 'Fraunces', 'Georgia', serif;
	--font-body: 'Nunito', system-ui, -apple-system, sans-serif;

	--btn-radius: 999px;
	--btn-height: 2.75rem;
	--btn-padding: 0 1.6rem;
	--btn-font-size: 15px;
	--btn-font-weight: 500;
	--btn-letter-spacing: normal;
	--btn-text-transform: none;
}

@media (min-width: 1024px) {
	:root {
		--header-height: 6rem;
	}
}

.theme-dark {
	--background: #17172b;
	--foreground: #f5f4fb;
	--card: #22223a;
	--secondary: #30304b;
	--muted: #3f3f5a;
	--muted-foreground: #cdcae2;
	--accent: #ffd466;
	--accent-foreground: #181830;
	--primary: #ffd466;
	--primary-foreground: #181830;
	--border: #434360;
	background-color: var(--background);
	color: var(--foreground);
}
.theme-light {
	background-color: var(--background);
	color: var(--foreground);
}

/* ==========================================================================
   Base / reset
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; }
body { overflow-x: clip; }

body {
	background-color: var(--background);
	color: var(--foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	margin: 0;
}

h1, h2, h3, h4, h5, h6, .font-display {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: -0.008em;
	margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button {
	font-family: inherit;
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
}
a[href], button, [type="button"], [type="submit"], [type="reset"], [role="button"],
select, summary, label[for], input[type="checkbox"], input[type="radio"],
.theme-shop-pill, .theme-option-picker__trigger, .theme-option-picker__item,
.theme-qty-minus, .theme-qty-plus, .theme-product-card, .theme-card-link,
.theme-service-card, .theme-anchor-link, .theme-shop-cat-link, .theme-footer-anchor,
.theme-cart-toggle, .theme-menu-toggle, .theme-back-to-top, .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
	cursor: pointer;
}
input, select, textarea { font-family: inherit; }
select { cursor: pointer; }

img:not(.cover-img) { max-width: 100%; height: auto; display: block; }
.cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

a, button, [role="button"] {
	transition: color 300ms cubic-bezier(0.22, 1, 0.36, 1), background-color 300ms cubic-bezier(0.22, 1, 0.36, 1),
		border-color 300ms cubic-bezier(0.22, 1, 0.36, 1), transform 350ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease;
}

::selection { background: color-mix(in srgb, var(--accent) 70%, transparent); color: var(--accent-foreground); }

.screen-reader-text, .skip-link {
	position: absolute; left: -9999px; top: -9999px;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 999; background: var(--background); padding: 0.5rem 1rem; border-radius: var(--radius); }

/* Matches Lovable `.container-wide`: max-w-7xl + px-6 + lg:px-16 */
.container-wide {
	width: 100%;
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide {
		padding-left: 4rem;
		padding-right: 4rem;
	}
}

.section-pad { padding: 6rem 0; }
@media (min-width: 768px) { .section-pad { padding: 8rem 0; } }

.theme-section-alt { background: color-mix(in srgb, var(--secondary) 40%, var(--background)); }

.theme-eyebrow { font-size: 13px; letter-spacing: 0.4em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 60%, transparent); margin-bottom: 1rem; font-weight: 500; }
.theme-italic { font-style: italic; }

section[id] { scroll-margin-top: 88px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.theme-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	border-radius: var(--btn-radius);
	height: var(--btn-height);
	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);
	border: 1px solid transparent;
	white-space: nowrap;
	transition: transform 150ms ease-out, box-shadow 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, opacity 150ms ease-out;
}
.theme-btn:hover { transform: scale(1.02); box-shadow: 0 4px 14px -4px rgba(0,0,0,0.18); }
.theme-btn:active { transform: scale(0.97); }
.theme-btn:disabled, .theme-btn.disabled { opacity: 0.6; pointer-events: none; }
.theme-btn-block { width: 100%; }

.theme-btn-primary { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.theme-btn-primary:hover { background: color-mix(in srgb, var(--primary) 90%, black); }

.theme-btn-outline { background: transparent; color: var(--foreground); border-color: color-mix(in srgb, var(--foreground) 25%, transparent); }
.theme-btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.theme-btn-ghost { background: transparent; color: color-mix(in srgb, var(--foreground) 60%, transparent); }
.theme-btn-ghost:hover { background: color-mix(in srgb, var(--foreground) 6%, transparent); color: var(--primary); }

.theme-btn-accent { background: var(--accent); color: var(--accent-foreground); border-color: var(--accent); box-shadow: 0 4px 12px -4px rgba(0,0,0,0.3); }
.theme-btn-accent:hover { background: color-mix(in srgb, var(--accent) 90%, black); }

.theme-btn-outline-hero { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.theme-btn-outline-hero:hover { background: #fff; color: var(--primary); }

/* ==========================================================================
   Header
   ========================================================================== */
.theme-scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.theme-scroll-progress__bar { height: 100%; width: 100%; background: var(--foreground); transform-origin: left; transform: scaleX(0); transition: transform 150ms ease-out; }

.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50; width: 100%;
	background-color: transparent; border-bottom: 1px solid transparent;
	transition: background-color 300ms ease-out, border-color 300ms ease-out, box-shadow 300ms ease-out, top 150ms ease-out;
}
body.admin-bar .site-header,
body.admin-bar .theme-scroll-progress {
	top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header,
	body.admin-bar .theme-scroll-progress {
		top: var(--wp-admin--admin-bar--height, 46px);
	}
}
@media screen and (max-width: 600px) {
	body.admin-bar .site-header,
	body.admin-bar .theme-scroll-progress {
		top: 0;
	}
}
.site-header.is-solid { background-color: var(--background); border-bottom-color: var(--border); }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.75rem; }
@media (min-width: 1024px) { .site-header__inner { height: 6rem; } }

.site-header__brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; color: #fff; }
.site-header.is-solid .site-header__brand { color: var(--foreground); }

.site-header__mark { height: var(--logo-height); width: auto !important; max-height: 2.75rem; object-fit: contain; transition: transform 500ms ease-out; }
@media (min-width: 1024px) { .site-header__mark { max-height: 2.75rem; } }
.site-header.is-solid .site-header__mark { filter: none; }
.site-header:not(.is-solid) .site-header__mark { filter: brightness(0) invert(1); }
.site-header__brand:hover .site-header__mark { transform: scale(1.1) rotate(-4deg); }

.site-header__wordmark { display: flex; flex-direction: column; justify-content: center; }
.site-header__title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; }
.site-header__subtitle { display: none; margin-top: 0.25rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }
@media (min-width: 640px) { .site-header__subtitle { display: block; } }

.theme-nav-list-wrap, .site-header__nav { display: none; }
@media (min-width: 1024px) {
	.site-header__nav { display: flex; align-items: center; justify-content: center; gap: 0.25rem; flex: 1; min-width: 0; }
	.theme-nav-list-wrap { display: block; }
}
.theme-nav-list { display: flex; align-items: center; gap: 0.25rem; }
.theme-nav-link, .theme-nav-list a {
	position: relative; display: inline-block; padding: 0.5rem 0.75rem; font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
	color: rgba(255,255,255,0.85); border-radius: var(--radius); white-space: nowrap; transition: color 300ms ease, transform 300ms ease;
}
.site-header.is-solid .theme-nav-link, .site-header.is-solid .theme-nav-list a { color: color-mix(in srgb, var(--foreground) 70%, transparent); }
.theme-nav-link:hover, .theme-nav-list a:hover { transform: translateY(-2px); }
.site-header:not(.is-solid) .theme-nav-link:hover, .site-header:not(.is-solid) .theme-nav-list a:hover { color: #fff; }
.site-header.is-solid .theme-nav-link:hover, .site-header.is-solid .theme-nav-list a:hover { color: var(--primary); }
.theme-nav-link.is-active, .theme-nav-list a.is-active { color: var(--primary); }
.site-header:not(.is-solid) .theme-nav-link.is-active, .site-header:not(.is-solid) .theme-nav-list a.is-active { color: #fff; }

.site-header__actions { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }

.theme-cart-toggle {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 2.75rem; height: 2.75rem; border-radius: var(--radius); color: #fff; transition: transform 300ms ease, background-color 300ms ease;
}
.site-header.is-solid .theme-cart-toggle { color: var(--foreground); }
.theme-cart-toggle:hover { transform: scale(1.1); background-color: rgba(255,255,255,0.1); }
.site-header.is-solid .theme-cart-toggle:hover { background-color: var(--secondary); }
.theme-cart-toggle .theme-cart-count {
	position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
	background: var(--accent); color: var(--accent-foreground); font-size: 12px; font-weight: 600;
	display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft);
}
.theme-cart-count:empty { display: none; }

.theme-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius); color: #fff; }
.site-header.is-solid .theme-menu-toggle { color: var(--foreground); }
.theme-menu-toggle .icon-close { display: none; }
.theme-menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.theme-menu-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 1024px) { .theme-menu-toggle { display: none; } }

.theme-mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--background); }
.theme-mobile-nav.is-open { display: block; }
.theme-mobile-nav__inner {
	width: 100%;
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	padding: 0.5rem 1.5rem 1rem;
	display: flex;
	flex-direction: column;
}
.theme-mobile-nav .theme-nav-list-wrap { display: block !important; width: 100%; }
.theme-mobile-nav .theme-nav-list,
.theme-mobile-nav-list {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
.theme-mobile-nav .theme-nav-list li,
.theme-mobile-nav-list li { display: block; width: 100%; }
.theme-mobile-nav .theme-nav-list a,
.theme-mobile-nav .theme-nav-link,
.theme-mobile-nav-list a,
.theme-mobile-nav-link {
	display: block;
	width: 100%;
	padding: 0.9rem 0;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: color-mix(in srgb, var(--foreground) 85%, transparent);
	border-bottom: 1px solid var(--border);
	border-radius: 0;
	white-space: normal;
	text-align: left;
	transition: color 300ms ease, transform 300ms ease;
}
.theme-mobile-nav .theme-nav-list li:last-child a,
.theme-mobile-nav-list li:last-child a { border-bottom: none; }
.theme-mobile-nav .theme-nav-list a:hover,
.theme-mobile-nav .theme-nav-link:hover,
.theme-mobile-nav-list a:hover,
.theme-mobile-nav-link:hover {
	color: var(--primary);
	transform: translateX(4px);
}
@media (min-width: 1024px) {
	.theme-mobile-nav { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-section { position: relative; min-height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-section__bg { position: absolute; }
.theme-hero-video { display: none; }
@media (min-width: 1024px) {
	.theme-hero-video { display: block; }
}
.hero-section__scrim { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.65) 55%, rgba(0,0,0,0.8)); }
.hero-section__content { position: relative; z-index: 1; text-align: center; padding-top: 7rem; padding-bottom: 5rem; }

.hero-section__badge {
	display: inline-flex; align-items: center; gap: 0.75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4);
	padding: 0.5rem 1.25rem; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255,255,255,0.9); margin-bottom: 1.75rem;
}
.hero-section__heading {
	color: #fff; line-height: 1.04; letter-spacing: -0.015em; margin: 0 auto; max-width: 64rem;
	font-size: clamp(2.2rem, 6.6vw, 5.2rem);
	text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero-section__heading-italic { font-style: italic; color: var(--accent); }
.hero-section__subtext { margin: 2rem auto 0; max-width: 42rem; font-size: 16px; color: rgba(255,255,255,0.9); line-height: 1.7; }
@media (min-width: 640px) { .hero-section__subtext { font-size: 18px; } }
.hero-section__actions { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; }
@media (min-width: 640px) { .hero-section__actions { flex-direction: row; gap: 1rem; } }

body.theme-no-hero .site-main,
body.theme-no-hero .single-product-page,
body.theme-no-hero .shop-archive-page {
	padding-top: calc(var(--header-height) + 2.5rem);
}
@media (min-width: 1024px) {
	body.theme-no-hero .site-main,
	body.theme-no-hero .single-product-page,
	body.theme-no-hero .shop-archive-page {
		padding-top: calc(var(--header-height) + 3rem);
	}
}

/* ==========================================================================
   Reveal animations (data-reveal / reveal-item)
   ========================================================================== */
[data-reveal], .reveal-item {
	opacity: 0; transform: translateY(24px);
	transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}
[data-reveal].is-visible, .reveal-item.is-visible { opacity: 1; transform: none; }

body.is-customizer [data-reveal], body.is-customizer .reveal-item { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
	[data-reveal], .reveal-item { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes theme-slide-in-bottom { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes theme-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.theme-skeleton-shimmer {
	position: absolute; inset: 0; z-index: 0;
	background: linear-gradient(90deg, var(--muted) 0%, var(--linen) 50%, var(--muted) 100%);
	background-size: 200% 100%; animation: theme-shimmer 1.6s linear infinite;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-section__intro { max-width: 48rem; margin: 0 auto; text-align: center; }
.about-section__intro .theme-eyebrow { margin-bottom: 1.5rem; }
.about-section__heading { font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 768px) { .about-section__heading { font-size: 3rem; } }
@media (min-width: 1024px) { .about-section__heading { font-size: 3.6rem; } }
.about-section__lead { margin-top: 1.5rem; font-size: 16px; line-height: 1.7; color: color-mix(in srgb, var(--foreground) 70%, transparent); }
@media (min-width: 768px) { .about-section__lead { font-size: 17px; } }

.about-section__grid { margin-top: 4rem; display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: stretch; }
@media (min-width: 768px) { .about-section__grid { margin-top: 5rem; } }
@media (min-width: 1024px) { .about-section__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.about-section__media { display: flex; width: 100%; min-height: 16rem; }
@media (min-width: 1024px) { .about-section__media { min-height: 28rem; height: 100%; } }
.about-section__image {
	flex: 1;
	width: 100%;
	border-radius: 1rem;
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--secondary);
	box-shadow: var(--shadow-elevated);
}
.about-section__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-section__subheading { font-style: italic; font-size: 1.875rem; line-height: 1.15; margin-bottom: 2rem; }
@media (min-width: 768px) { .about-section__subheading { font-size: 2.25rem; } }
.about-section__copy-body { display: flex; flex-direction: column; gap: 1.5rem; }
.about-section__copy-body p { font-size: 15px; line-height: 1.75; color: color-mix(in srgb, var(--foreground) 75%, transparent); margin: 0; }
@media (min-width: 768px) { .about-section__copy-body p { font-size: 16px; } }
.about-section__copy strong { color: var(--foreground); font-weight: 600; }
.about-section__tagline { font-family: var(--font-display); font-style: italic; color: color-mix(in srgb, var(--foreground) 90%, transparent); font-size: 1.125rem; }
@media (min-width: 768px) { .about-section__tagline { font-size: 1.25rem; } }

.about-section__stats { margin-top: 4rem; display: grid; grid-template-columns: 1fr; gap: 2rem; border-top: 1px solid var(--border); padding-top: 2.5rem; text-align: center; }
@media (min-width: 768px) { .about-section__stats { margin-top: 5rem; } }
@media (min-width: 640px) { .about-section__stats { grid-template-columns: repeat(3, 1fr); text-align: left; } }
.about-section__stat-value { font-family: var(--font-display); font-style: italic; font-size: 1.875rem; }
@media (min-width: 768px) { .about-section__stat-value { font-size: 2.25rem; } }
.about-section__stat-label { margin-top: 0.25rem; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 55%, transparent); }
.about-section__stat-underline { display: block; margin-top: 0.75rem; height: 1px; width: 24px; background: var(--accent); margin-inline: auto; transition: width 500ms ease-out; }
@media (min-width: 640px) { .about-section__stat-underline { margin-inline: 0; } }
.about-section__stat:hover .about-section__stat-underline { width: 64px; }

/* ==========================================================================
   Seashell divider
   ========================================================================== */
.seashell-divider { background: var(--background); padding: 1.5rem 0; overflow: hidden; }
@media (min-width: 640px) { .seashell-divider { padding: 2rem 0; } }
.seashell-divider__inner { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
@media (min-width: 640px) { .seashell-divider__inner { gap: 1.25rem; } }
.seashell-divider.is-flipped .seashell-divider__inner { transform: scaleY(-1); }
.seashell-divider__line { height: 1px; flex: 1; max-width: 10rem; }
@media (min-width: 640px) { .seashell-divider__line { max-width: 16rem; } }
.seashell-divider__line--left { background: linear-gradient(to right, transparent, color-mix(in srgb, var(--primary) 40%, transparent)); }
.seashell-divider__line--right { background: linear-gradient(to left, transparent, color-mix(in srgb, var(--primary) 40%, transparent)); }
.seashell-divider__icon { flex-shrink: 0; color: color-mix(in srgb, var(--primary) 70%, transparent); width: 1.5rem; height: 1.5rem; }
@media (min-width: 640px) { .seashell-divider__icon { width: 1.75rem; height: 1.75rem; } }
.seashell-divider__icon--2 { width: 2.25rem; height: 2.25rem; }
@media (min-width: 640px) { .seashell-divider__icon--2 { width: 2.75rem; height: 2.75rem; } }
.seashell-divider__icon--1, .seashell-divider__icon--3 { width: 1.25rem; height: 1.25rem; color: color-mix(in srgb, var(--primary) 45%, transparent); }
@media (min-width: 640px) { .seashell-divider__icon--1, .seashell-divider__icon--3 { width: 1.5rem; height: 1.5rem; } }

/* ==========================================================================
   Services
   ========================================================================== */
.services-section__intro { max-width: 48rem; margin-bottom: 3.5rem; }
.services-section__heading { font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 768px) { .services-section__heading { font-size: 3rem; } }
@media (min-width: 1024px) { .services-section__heading { font-size: 3.4rem; } }
.services-section__subtext { margin-top: 1.25rem; font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--foreground) 70%, transparent); }

.theme-steps-grid { margin-bottom: 4rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .theme-steps-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-steps-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.theme-step-card { border-radius: 1rem; border: 1px solid var(--border); background: color-mix(in srgb, var(--secondary) 50%, transparent); padding: 1.5rem; transition: transform 500ms ease-out, border-color 500ms ease-out, box-shadow 500ms ease-out; }
.theme-step-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--primary) 40%, transparent); box-shadow: var(--shadow-elevated); }
.theme-step-card__number { font-family: var(--font-display); font-style: italic; font-size: 1.875rem; color: var(--primary); }
.theme-step-card__title { margin-top: 0.75rem; font-size: 16px; font-weight: 600; }
.theme-step-card__desc { margin-top: 0.5rem; font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--foreground) 70%, transparent); }

.theme-service-cards-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .theme-service-cards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.theme-service-card {
	display: flex; flex-direction: column; height: 100%; text-align: left; border-radius: 1rem; overflow: hidden;
	border: 1px solid var(--border); background: var(--card); transition: transform 500ms ease-out, box-shadow 500ms ease-out, border-color 500ms ease-out;
}
.theme-service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.theme-service-card__image-wrap { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; background: var(--secondary); flex-shrink: 0; }
.theme-service-card-img { transition: transform 1200ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.theme-service-card:hover .theme-service-card-img { transform: scale(1.06); }
.theme-service-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.75rem; }
.theme-service-card__brand { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: color-mix(in srgb, var(--primary) 80%, transparent); margin-bottom: 0.5rem; }
.theme-service-card__title { font-size: 1.5rem; margin-bottom: 0.75rem; transition: color 300ms ease; }
.theme-service-card:hover .theme-service-card__title { color: var(--primary); }
.theme-service-card__text { font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--foreground) 70%, transparent); }
.theme-service-card__cta { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.375rem; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); transition: gap 300ms ease; }
.theme-service-card:hover .theme-service-card__cta { gap: 0.5rem; }
.theme-service-card__cta span { transition: transform 300ms ease; }
.theme-service-card:hover .theme-service-card__cta span { transform: translateX(4px); }

/* ==========================================================================
   Language services / shop-heading shared type scale
   ========================================================================== */
.lang-section__intro, .shop-section__intro { max-width: 42rem; margin-bottom: 3rem; }
.lang-section__heading, .shop-heading { font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 768px) { .lang-section__heading, .shop-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .lang-section__heading, .shop-heading { font-size: 3.4rem; } }
.lang-section__subtext, .shop-section__subtext { margin-top: 1.25rem; font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--foreground) 70%, transparent); }
.shop-section__note { margin-top: 0.75rem; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 45%, transparent); }
.lang-section__actions { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .lang-section__actions { flex-direction: row; gap: 1rem; } }

/* ==========================================================================
   Product grid & cards
   ========================================================================== */
.theme-product-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem 1.5rem; }
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.theme-product-grid--2col { grid-template-columns: 1fr; gap: 1.5rem 1.5rem; row-gap: 3rem; }
@media (min-width: 640px) { .theme-product-grid--2col { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.theme-product-grid--3col { row-gap: 3rem; }
@media (min-width: 640px) { .theme-product-grid--3col { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-product-grid--3col { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.theme-product-card-wrap { min-width: 0; }
.theme-product-card { display: flex; flex-direction: column; height: 100%; position: relative; min-width: 0; }
.theme-product-card > .theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }
.theme-product-card__quick-actions, .theme-product-card__quick-actions a, .theme-product-card__quick-actions span { pointer-events: auto; }

.theme-product-card__image-wrapper {
	position: relative; aspect-ratio: 1/1; width: 100%; border-radius: 0.75rem; overflow: hidden;
	background: var(--linen); border: 1px solid color-mix(in srgb, var(--primary) 10%, transparent);
	margin-bottom: 1.25rem; transition: border-color 300ms ease;
}
.theme-product-card:hover .theme-product-card__image-wrapper { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.theme-product-card-img { transition: transform 1400ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.theme-product-card:hover .theme-product-card-img { transform: scale(1.04); }
.theme-product-card__image-wrapper::after {
	content: ''; position: absolute; inset: auto 0 0 0; height: 50%;
	background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
	opacity: 0; transition: opacity 500ms ease; z-index: 1;
}
.theme-product-card:hover .theme-product-card__image-wrapper::after { opacity: 1; }

.theme-stock-badge { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 3; border-radius: 999px; padding: 0.25rem 0.65rem; font-size: 13px; font-weight: 500; background: var(--primary); color: var(--primary-foreground); }

.theme-product-card__quick-actions {
	position: absolute; inset-inline: 0; bottom: 0; z-index: 3; padding: 1rem; display: flex; align-items: center; gap: 0.75rem;
	opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 500ms ease;
}
.theme-product-card:hover .theme-product-card__quick-actions { opacity: 1; transform: translateY(0); }
.add_to_cart_button.theme-product-card__add {
	flex: 1; min-width: 0; display: inline-flex !important; align-items: center; justify-content: center; gap: 0.6rem;
	height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; background: var(--primary) !important; color: var(--primary-foreground) !important;
	font-size: 15px; font-weight: 500; box-shadow: var(--shadow-elevated);
}
.add_to_cart_button.theme-product-card__add:hover { background: color-mix(in srgb, var(--primary) 90%, black) !important; }
.add_to_cart_button.theme-product-card__add span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-product-card__quickview {
	width: 2.75rem; height: 2.75rem; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; background: var(--background); color: var(--foreground); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
	box-shadow: var(--shadow-elevated);
}

.theme-product-card__category { font-size: 15px; letter-spacing: 0.24em; text-transform: uppercase; color: color-mix(in srgb, var(--primary) 80%, transparent); margin-bottom: 0.375rem; }
.theme-product-card__name { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; line-height: 1.3; transition: color 300ms ease; }
@media (min-width: 768px) { .theme-product-card__name { font-size: 1.35rem; } }
.theme-product-card:hover .theme-product-card__name { color: var(--primary); }
.theme-product-card__price { margin-top: 0.375rem; font-size: 15px; font-weight: 500; color: var(--primary); }
.theme-product-card__price .woocommerce-Price-amount { color: inherit; }
.theme-product-card__price del { opacity: 0.5; margin-right: 0.4rem; }

/* Hide WooCommerce's own "View cart" injection (Section 11.4.2) */
.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; }

/* Suppress redundant WooCommerce notices where the drawer already gives feedback */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message { display: none; }

/* ==========================================================================
   Shop section controls
   ========================================================================== */
.shop-section__controls { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }
@media (min-width: 640px) { .shop-section__controls { flex-direction: row; align-items: center; justify-content: space-between; } }
.shop-section__pills { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.theme-shop-pill {
	height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; font-size: 14px; font-weight: 500;
	border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); background: transparent; color: color-mix(in srgb, var(--foreground) 70%, transparent);
	transition: transform 300ms ease-out, box-shadow 300ms ease-out, background-color 300ms ease-out, border-color 300ms ease-out, color 300ms ease-out;
}
.theme-shop-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: var(--primary); color: var(--primary); }
.theme-shop-pill.is-active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); transform: scale(1.02); }

.shop-section__search { position: relative; width: 100%; flex-shrink: 0; }
@media (min-width: 640px) { .shop-section__search { width: 18rem; } }
@media (min-width: 1024px) { .shop-section__search { width: 20rem; } }
.shop-section__search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: color-mix(in srgb, var(--foreground) 50%, transparent); }
.theme-shop-search {
	width: 100%; height: 2.75rem; padding: 0 1rem 0 2.75rem; border-radius: 999px; background: var(--secondary);
	border: 1px solid var(--border); font-size: 14px; color: var(--foreground);
}
.theme-shop-search::placeholder { color: color-mix(in srgb, var(--foreground) 45%, transparent); }
.theme-shop-search:focus { outline: none; border-color: var(--primary); }

.shop-section__empty { text-align: center; padding: 5rem 0; color: color-mix(in srgb, var(--foreground) 55%, transparent); }
.shop-section__more { margin-top: 3.5rem; display: flex; justify-content: center; }

[data-shop-grid] [hidden] { display: none !important; }

/* ==========================================================================
   Booking / Contact forms
   ========================================================================== */
.booking-section__grid, .owner-section__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .booking-section__grid, .owner-section__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.booking-section__heading, .owner-section__heading { font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 768px) { .booking-section__heading, .owner-section__heading { font-size: 3rem; } }
@media (min-width: 1024px) { .booking-section__heading { font-size: 3.4rem; } }
.booking-section__subtext, .owner-section__bio { margin-top: 1.5rem; font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--foreground) 70%, transparent); max-width: 32rem; }
@media (min-width: 768px) { .booking-section__subtext { font-size: 16px; } }

.booking-section__info { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 1rem; font-size: 15px; color: color-mix(in srgb, var(--foreground) 75%, transparent); }
.booking-section__info li { display: flex; align-items: flex-start; gap: 0.75rem; }
.booking-section__info-icon { width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: 999px; background: var(--background); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--primary); }

.booking-section__panel { background: var(--background); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-soft); }
@media (min-width: 768px) { .booking-section__panel { padding: 2rem; } }

.theme-form-row { margin-bottom: 1rem; }
.theme-form-row--2col { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-form-row--2col { grid-template-columns: 1fr 1fr; } }
.theme-form-row label { display: block; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 55%, transparent); margin-bottom: 0.5rem; }

.theme-input, .theme-select, .theme-textarea {
	width: 100%; height: 3rem; padding: 0 1rem; background: var(--background); border: 1px solid var(--border);
	border-radius: calc(var(--radius) - 2px); font-size: 14px; color: var(--foreground); transition: border-color 300ms ease;
}
.theme-input::placeholder, .theme-textarea::placeholder { color: color-mix(in srgb, var(--foreground) 45%, transparent); }
.theme-input:focus, .theme-select:focus, .theme-textarea:focus { outline: none; border-color: var(--primary); }
.theme-textarea { height: auto; padding-top: 0.75rem; padding-bottom: 0.75rem; resize: none; }

.theme-form-note { margin-top: 0.75rem; font-size: 13px; text-align: center; color: color-mix(in srgb, var(--foreground) 55%, transparent); }

.theme-booking-confirm { text-align: center; padding: 1rem; }
.theme-booking-confirm.is-visible ~ .theme-booking-form, .theme-booking-confirm:not([hidden]) ~ .theme-booking-form { display: none; }
.theme-booking-confirm__icon { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); margin-bottom: 1.25rem; }
.theme-booking-confirm h3 { font-size: 1.875rem; }
.theme-booking-confirm p { margin-top: 1rem; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--foreground) 70%, transparent); }
.theme-booking-confirm .theme-btn { margin-top: 2rem; }

/* ==========================================================================
   Owner
   ========================================================================== */
.owner-section__greeting { margin-top: 1.5rem; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: color-mix(in srgb, var(--foreground) 90%, transparent); }
.owner-section__credentials { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 15px; }
.owner-section__credentials li { display: flex; gap: 0.75rem; align-items: flex-start; }
.owner-section__credentials li span:first-child { margin-top: 0.5rem; height: 6px; width: 6px; border-radius: 999px; background: var(--accent); flex-shrink: 0; }
.owner-section__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.owner-section__linkedin { font-size: 14px; font-weight: 500; color: color-mix(in srgb, var(--foreground) 75%, transparent); }
.owner-section__linkedin:hover { color: var(--primary); }
.owner-section__image { position: relative; aspect-ratio: 4/5; border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-soft); }
.owner-section__image .cover-img { object-position: top; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section { padding: 6rem 0 4rem; }
@media (min-width: 768px) { .contact-section { padding: 8rem 0 5rem; } }
.contact-section__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: stretch; }
@media (min-width: 1024px) { .contact-section__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.contact-title { font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 768px) { .contact-title { font-size: 3rem; } }
@media (min-width: 1024px) { .contact-title { font-size: 3.4rem; } }
.contact-section__subtext { margin-top: 1.5rem; font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--foreground) 70%, transparent); max-width: 28rem; }
.contact-section__list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-section__list a, .contact-section__list > li { display: inline-flex; align-items: center; gap: 1rem; }
.contact-section__list a:hover .contact-section__icon { border-color: var(--primary); }
.contact-section__list a:hover { color: var(--primary); }
.contact-section__icon { width: 2.75rem; height: 2.75rem; flex-shrink: 0; border-radius: 999px; background: var(--secondary); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; transition: border-color 300ms ease; }
.contact-section__text { display: flex; flex-direction: column; text-align: left; }
.contact-section__text small { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 55%, transparent); }
.contact-section__text { font-size: 15px; font-weight: 500; }

.contact-section__form { background: var(--secondary); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; height: 100%; }
@media (min-width: 768px) { .contact-section__form { padding: 2rem; } }
.contact-section__form .theme-form-row:last-of-type { flex: 1; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); }
.site-footer.theme-dark { background-color: var(--background); color: var(--foreground); }
.site-footer__inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 1024px) { .site-footer__inner { padding-top: 5rem; padding-bottom: 5rem; } }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }
img.site-footer__logo { height: 5rem; width: auto; max-width: none; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); margin-bottom: 1rem; transition: transform 500ms ease-out; }
.site-footer__logo-link:hover .site-footer__logo { transform: scale(1.1); }
.site-footer__blurb { margin-top: 1rem; font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--foreground) 70%, transparent); max-width: 20rem; }
.site-footer__col h3 { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: 1rem; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.site-footer__col a, .site-footer__col button { font-size: 14px; color: color-mix(in srgb, var(--foreground) 70%, transparent); display: inline-block; transition: color 300ms ease, transform 300ms ease; text-align: left; cursor: pointer; }
.site-footer__col a:hover, .site-footer__col button:hover { color: var(--primary); transform: translateX(4px); }
.site-footer__contact-list { gap: 0.75rem; }
.site-footer__contact-list li { display: flex; align-items: flex-start; gap: 0.5rem; color: color-mix(in srgb, var(--foreground) 75%, transparent); font-size: 14px; }
.site-footer__contact-list a, .site-footer__contact-list .site-footer__contact-static {
	display: inline-flex; align-items: flex-start; gap: 0.5rem; color: color-mix(in srgb, var(--foreground) 75%, transparent); transform: none;
}
.site-footer__contact-list a:hover { color: var(--primary); transform: none; }
.site-footer__contact-list svg { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.125rem; }
.site-footer__contact-list .break-all { overflow-wrap: anywhere; word-break: break-all; }

.site-footer__bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.75rem; align-items: center; justify-content: space-between; }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; } }
.site-footer__bottom p { font-size: 13px; color: color-mix(in srgb, var(--foreground) 60%, transparent); }
.theme-back-to-top { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 13px; color: color-mix(in srgb, var(--foreground) 70%, transparent); }
.theme-back-to-top:hover { color: var(--primary); }
.theme-back-to-top__circle { width: 2rem; height: 2rem; border-radius: 999px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; transition: border-color 300ms ease, transform 300ms ease; }
.theme-back-to-top:hover .theme-back-to-top__circle { border-color: var(--primary); transform: translateY(-2px); }

/* ==========================================================================
   Cart drawer
   ========================================================================== */
#theme-cart-overlay { position: fixed; inset: 0; background: rgba(25,26,51,0.3); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 300ms ease; }
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

#theme-cart-drawer {
	position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem; background: var(--ivory);
	z-index: 91; box-shadow: var(--shadow-elevated); display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
body.admin-bar #theme-cart-drawer {
	top: var(--wp-admin--admin-bar--height, 32px);
	height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}
@media screen and (max-width: 782px) {
	body.admin-bar #theme-cart-drawer {
		top: var(--wp-admin--admin-bar--height, 46px);
		height: calc(100% - var(--wp-admin--admin-bar--height, 46px));
	}
}
@media screen and (max-width: 600px) {
	body.admin-bar #theme-cart-drawer { top: 0; height: 100%; }
}
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(--border); }
.theme-cart-drawer__header h2 { font-size: 1.5rem; }
.theme-cart-drawer__close { padding: 0.375rem; border-radius: 999px; }
.theme-cart-drawer__close:hover { background: color-mix(in srgb, var(--foreground) 6%, transparent); }

.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1rem; }
.theme-cart-drawer__empty svg { color: color-mix(in srgb, var(--foreground) 30%, transparent); }
.theme-cart-drawer__empty p { color: color-mix(in srgb, var(--foreground) 65%, transparent); font-size: 15px; }

.theme-cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.theme-cart-drawer__item { display: flex; gap: 1rem; }
.theme-cart-drawer__thumb { position: relative; width: 5rem; height: 6rem; flex-shrink: 0; border-radius: calc(var(--radius) - 2px); overflow: hidden; background: var(--bone); }
.theme-cart-drawer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-drawer__item-info { flex: 1; min-width: 0; }
.theme-cart-drawer__item-name { font-size: 15px; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-cart-drawer__item-name:hover { color: var(--primary); }
.theme-cart-drawer__item-meta { font-size: 13px; color: color-mix(in srgb, var(--foreground) 60%, transparent); margin-top: 0.125rem; }
.theme-cart-drawer__item-price { font-size: 15px; color: color-mix(in srgb, var(--foreground) 80%, transparent); margin-top: 0.125rem; }
.theme-cart-drawer__item-each { margin-left: 0.5rem; font-size: 13px; color: color-mix(in srgb, var(--foreground) 55%, transparent); }
.theme-cart-drawer__qty-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-qty-btn { padding: 0.25rem; border-radius: calc(var(--radius) - 2px); width: 1.75rem; height: 1.75rem; display: inline-flex; align-items: center; justify-content: center; }
.theme-qty-btn:hover { background: var(--bone); }
.theme-cart-drawer__qty-value { font-size: 15px; width: 1.5rem; text-align: center; }
.theme-cart-drawer__remove { margin-left: auto; font-size: 15px; color: color-mix(in srgb, var(--foreground) 55%, transparent); }
.theme-cart-drawer__remove:hover { color: var(--destructive); }

.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--linen) 40%, transparent); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 15px; }
.theme-cart-drawer__subtotal span { color: color-mix(in srgb, var(--foreground) 65%, transparent); }
.theme-cart-drawer__note { font-size: 15px; color: color-mix(in srgb, var(--foreground) 55%, transparent); }

/* ==========================================================================
   Single product page
   ========================================================================== */
.single-product-page { background: var(--ivory); }
.single-product-page { padding-top: calc(var(--header-height) + 2.5rem); }
@media (min-width: 1024px) { .single-product-page { padding-top: calc(var(--header-height) + 3rem); } }

.theme-breadcrumb { padding: 1.5rem 0; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 55%, transparent); }
.theme-breadcrumb a:hover { color: var(--primary); }
.theme-breadcrumb__sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb__current { color: var(--foreground); }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 5rem; align-items: start; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; } }

.theme-product-gallery { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-gallery { position: sticky; top: calc(var(--header-height) + 1.5rem); } }
.theme-product-gallery__main { position: relative; aspect-ratio: 1/1; width: 100%; background: var(--linen); border-radius: 0.75rem; overflow: hidden; margin-bottom: 1rem; }
.theme-product-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.625rem; flex-wrap: wrap; max-width: 100%; }
.theme-thumb { position: relative; aspect-ratio: 1/1; background: var(--linen); border-radius: calc(var(--radius) - 2px); overflow: hidden; border: 2px solid transparent; }
.theme-thumb.is-active { border-color: var(--primary); }
.theme-thumb:hover { border-color: color-mix(in srgb, var(--foreground) 20%, transparent); }

.theme-product-info { min-width: 0; max-width: 100%; }
.theme-back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 15px; color: color-mix(in srgb, var(--foreground) 60%, transparent); margin-bottom: 1.25rem; }
.theme-back-link:hover { color: var(--primary); }
.theme-product-info__category { font-size: 15px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem; font-weight: 500; }
.theme-product-info__category a {
	color: inherit;
	pointer-events: none;
	cursor: default;
	text-decoration: none;
}
.product-title { font-family: var(--font-body); font-weight: 600; font-size: 1.875rem; line-height: 1.05; margin-bottom: 1rem; }
@media (min-width: 768px) { .product-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .product-title { font-size: 2.6rem; } }
.theme-product-info__price { font-size: 20px; font-weight: 500; color: color-mix(in srgb, var(--foreground) 90%, transparent); margin-bottom: 1.75rem; }
.theme-product-info__price .woocommerce-Price-amount { font-weight: 500; }
.theme-product-info__description { font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--foreground) 75%, transparent); margin-bottom: 2rem; overflow-wrap: break-word; word-break: break-word; }
.theme-product-info__description p { margin-bottom: 1rem; }

.theme-stock-badge--out { position: static; display: inline-block; margin-bottom: 1.5rem; }

.theme-product-options { margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.theme-option-picker { position: relative; }
.theme-option-picker__label { display: block; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 55%, transparent); margin-bottom: 0.5rem; }
.theme-attr-select-hidden { display: none !important; }
.theme-option-picker__trigger {
	width: 100%; display: flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; padding: 0.5rem 0.75rem;
	background: var(--background); border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); text-align: left;
}
.theme-option-picker__trigger:hover { border-color: color-mix(in srgb, var(--primary) 60%, transparent); }
.theme-option-picker__swatch { width: 2.5rem; height: 2.5rem; border-radius: calc(var(--radius) - 2px); background: var(--secondary); flex-shrink: 0; background-size: cover; background-position: center; }
.theme-option-picker__value { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-option-picker__trigger svg { flex-shrink: 0; color: color-mix(in srgb, var(--foreground) 50%, transparent); transition: transform 300ms ease; }
.theme-option-picker.is-open .theme-option-picker__trigger svg { transform: rotate(180deg); }
.theme-option-picker__list {
	position: absolute; z-index: 20; margin-top: 0.5rem; width: 100%; max-height: 20rem; overflow-y: auto;
	border-radius: calc(var(--radius) - 2px); border: 1px solid var(--border); background: var(--background); box-shadow: var(--shadow-elevated);
	padding: 0.375rem; display: none;
}
.theme-option-picker.is-open .theme-option-picker__list { display: block; }
.theme-option-picker__item { width: 100%; display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; border-radius: calc(var(--radius) - 2px); text-align: left; }
.theme-option-picker__item:hover { background: color-mix(in srgb, var(--secondary) 70%, transparent); }
.theme-option-picker__item img, .theme-option-picker__item-placeholder { width: 3rem; height: 3rem; border-radius: calc(var(--radius) - 2px); object-fit: cover; flex-shrink: 0; background: var(--secondary); }
.theme-option-picker__item-label { display: block; font-size: 15px; }
.theme-option-picker__item-note { display: block; font-size: 13px; color: color-mix(in srgb, var(--foreground) 55%, transparent); }
.theme-product-options__helper { font-size: 13px; color: color-mix(in srgb, var(--foreground) 55%, transparent); }

.theme-quantity-block { margin-bottom: 1.5rem; }
.theme-quantity-block__label { font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 55%, transparent); margin-bottom: 0.625rem; }
.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--foreground) 20%, transparent); border-radius: 999px; }
.theme-qty-minus, .theme-qty-plus { padding: 0.6rem 1rem; }
.theme-qty-minus:hover, .theme-qty-plus:hover { color: var(--primary); }
.theme-qty-input { width: 3rem; text-align: center; border: none; background: transparent; font-size: 15px; font-weight: 500; -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; margin-bottom: 2rem; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }
.theme-buy-now { flex: 1 1 auto; min-width: 160px; }

/* 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(--primary) !important;
	color: var(--primary-foreground) !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(--primary) !important;
	color: var(--primary-foreground) !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(--primary) !important;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
	min-height: unset !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; }

.theme-product-details { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent); }
.theme-product-details__label { font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 55%, transparent); margin-bottom: 1rem; }
.theme-product-details ul { display: flex; flex-direction: column; gap: 0.625rem; }
.theme-product-details li { display: flex; align-items: flex-start; font-size: 15px; color: color-mix(in srgb, var(--foreground) 75%, transparent); overflow-wrap: break-word; word-break: break-word; }
.theme-product-details__dot { width: 4px; height: 4px; border-radius: 999px; background: var(--primary); margin-top: 0.55rem; margin-right: 0.75rem; flex-shrink: 0; }

.theme-detail-badges { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent); }
.theme-detail-badge { text-align: center; }
.theme-detail-badge svg { margin: 0 auto 0.5rem; color: var(--primary); }
.theme-detail-badge p { font-size: 15px; letter-spacing: 0.15em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 60%, transparent); }

.theme-related-products { padding: 5rem 0; border-top: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent); }
.theme-related-products__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; }
.theme-related-products__head h2 { font-size: 1.875rem; }
@media (min-width: 768px) { .theme-related-products__head h2 { font-size: 2.25rem; } }
.theme-related-products__viewall { display: none; align-items: center; gap: 0.375rem; font-size: 15px; font-weight: 500; color: color-mix(in srgb, var(--foreground) 70%, transparent); }
@media (min-width: 640px) { .theme-related-products__viewall { display: inline-flex; } }
.theme-related-products__viewall:hover { color: var(--primary); }
.theme-related-products__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 1024px) { .theme-related-products__grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* Variations layout (kept for forward-compatibility, no variable products ship by default) */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; }
.single-product .variations tbody td.value { padding-top: 0; }

/* ==========================================================================
   Archive / shop page
   ========================================================================== */
.shop-archive-page { padding-bottom: 5rem; background: var(--ivory); }
.shop-archive-page .page-title { font-size: 2.25rem; margin-bottom: 2rem; }
.theme-no-products { text-align: center; padding: 5rem 0; color: color-mix(in srgb, var(--foreground) 55%, transparent); }

/* ==========================================================================
   404
   ========================================================================== */
.theme-404 { min-height: 60vh; display: flex; align-items: center; padding-top: calc(var(--header-height) + 2.5rem); }
.theme-404__inner { text-align: center; padding: 4rem 0; }
.theme-404__inner h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.theme-404__inner p { margin-bottom: 2rem; color: color-mix(in srgb, var(--foreground) 65%, transparent); }

/* ==========================================================================
   Thank you page
   ========================================================================== */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .site-main { padding-top: calc(var(--header-height) + 2.5rem); padding-bottom: 4rem; }
@media (min-width: 1024px) {
	body.theme-thankyou-page .site-main { padding-top: calc(var(--header-height) + 3rem); }
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { padding: 0 0 1rem 0; font-size: 1.75rem; }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1rem 2rem; list-style: none; padding: 0; margin: 1.5rem 0; }
body.theme-thankyou-page .woocommerce-order-overview li { border: none; padding: 0; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 1.5rem 0; }
body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td { padding: 0.75rem; border-bottom: 1px solid var(--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 { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 480px; overflow-wrap: break-word; border: 1px solid var(--border); padding: 1.25rem; border-radius: var(--radius); font-style: normal; }
@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; max-width: none; }
}

/* ==========================================================================
   WooCommerce Checkout Block (Section 13)
   ========================================================================== */
body.woocommerce-checkout .site-main { padding-top: calc(var(--header-height) + 2.5rem); padding-bottom: 4rem; }
@media (min-width: 1024px) {
	body.woocommerce-checkout .site-main { padding-top: calc(var(--header-height) + 3rem); }
}
body.woocommerce-checkout .page-title { margin-bottom: 2rem; font-size: 2.25rem; }
body.woocommerce-checkout .entry-content { max-width: 100%; }

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: 2.5rem;
		align-items: start;
	}
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar { min-width: 0; width: 100%; max-width: none; }

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: color-mix(in srgb, var(--secondary) 60%, transparent);
	border-radius: var(--radius);
	padding: 2rem;
}

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 {
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--foreground);
	border: 1px solid var(--border);
	border-radius: calc(var(--radius) - 2px);
	background-color: var(--background);
	width: 100% !important;
	max-width: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus { outline: none; border-color: var(--primary); }
body.woocommerce-checkout .wc-block-components-text-input input { padding: revert; }

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--primary) !important; color: var(--primary-foreground) !important; border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important; font-weight: 500 !important; text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }

body.woocommerce-checkout .wc-block-components-notice-banner { border-radius: var(--radius); grid-column: 1 / -1; }
body.woocommerce-checkout .wc-block-cart-items { font-size: 14px; }

/* ==========================================================================
   Cart / Account page width parity (Section 13.7)
   ========================================================================== */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main { padding-top: calc(var(--header-height) + 2.5rem); padding-bottom: 4rem; }
@media (min-width: 1024px) {
	body.woocommerce-cart .site-main,
	body.woocommerce-account .site-main { padding-top: calc(var(--header-height) + 3rem); }
}
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title { margin-bottom: 2rem; font-size: 2.25rem; }

/* ==========================================================================
   Page transitions
   ========================================================================== */
.page-transition-fade { animation: theme-fade-in 620ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@media (prefers-reduced-motion: reduce) { .page-transition-fade { animation: none; } }
