/* ==========================================================================
   Xspectah Mystery theme stylesheet
   Theme by The Free Website Guys.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. FONT FACES / TOKENS
   -------------------------------------------------------------------------- */
:root {
	/* Brand colors are re-emitted live via wp_add_inline_style (functions.php)
	   using the same variable names below — this block provides the
	   fallback/default values so the theme still renders before that runs. */
	--color-background: #0a0a0a;
	--color-ink: #efeeeb;
	--color-bone: #cac5b9;
	--color-line: #292929;
	--color-surface-1: #111111;
	--color-surface-2: #181818;
	--color-muted-foreground: #a8a8a8;
	--logo-height: 48px;
	--logo-height-mobile: 36px;
	--checkout-max-width: 1280px;
	--checkout-gap: 2rem;

	/* Fixed light-section palette (Section "About / Connect / Contact") —
	   matches the source design's .cs-section-light token overrides exactly. */
	--light-surface-0: #e9e7e2;
	--light-surface-1: #f6f5f3;
	--light-surface-2: #fbfaf9;
	--light-line: #cec8c0;
	--light-ink: #141414;
	--light-bone: #5f5245;
	--light-muted-foreground: #575757;

	--font-display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
	--font-hero: 'Bodoni Moda', 'Didot', serif;
	--font-body: 'Inter', system-ui, -apple-system, sans-serif;
	--font-label: 'Inter', system-ui, sans-serif;

	--gradient-berry: linear-gradient(120deg, var(--color-ink) 0%, var(--color-bone) 100%);
	--gradient-cocoa: linear-gradient(140deg, var(--color-surface-2) 0%, var(--color-background) 100%);
	--gradient-warm: linear-gradient(180deg, var(--color-background) 0%, var(--color-surface-1) 100%);
	--shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.5);
	--shadow-elevated: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
	--shadow-gold: 0 14px 34px -14px color-mix(in srgb, var(--color-bone) 35%, transparent);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

	--radius: 0.75rem;
	--header-height: 88px;
	--header-height-mobile: 72px;

	--btn-radius: 999px;
	--btn-height: 50px;
	--btn-padding: 15px 28px;
	--btn-font-size: 14px;
	--btn-font-weight: 600;
	--btn-letter-spacing: 0.16em;
	--btn-text-transform: uppercase;
	--color-primary: var(--color-ink);
	--color-button-text: var(--color-background);
}

/* --------------------------------------------------------------------------
   1. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: clip; }

main {
	min-width: 0;
	max-width: 100%;
}

html { scroll-behavior: smooth; }

body {
	background-color: var(--color-background);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

p, span, a, button, li, label, input, textarea, select, small, time, figcaption, blockquote, cite {
	font-size: max(0.875rem, 14px);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: -0.01em;
	line-height: 1.04;
	color: var(--color-ink);
	margin: 0;
}

.font-display { font-weight: inherit; font-size: inherit; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; background: none; border: none; padding: 0; cursor: pointer; color: inherit; }

/* Pointer cursor on every interactive element */
a[href],
button:not(:disabled),
label[for],
input[type="submit"],
input[type="button"],
input[type="reset"],
summary,
[role="button"],
.doce-btn,
.theme-nav-list a,
.theme-anchor-btn,
.theme-cart-toggle,
.theme-mobile-toggle,
.theme-cart-qty-btn,
.theme-cart-remove-btn,
.theme-cart-item-thumb,
.theme-cart-item-name,
.theme-product-card,
.theme-product-main-img-btn,
.theme-product-thumb,
.theme-watch-feature,
.theme-connect-row,
.theme-youtube-play-btn,
.theme-modal-close,
.footer-social-btn,
.footer-contact-link,
.footer-back-to-top,
.theme-ask-question-btn,
.theme-details-toggle {
	cursor: pointer;
}
button:disabled,
.doce-btn:disabled,
.doce-btn.disabled,
[aria-disabled="true"] {
	cursor: not-allowed;
}
input, textarea, select { font-family: inherit; }
svg { display: block; }

img:not(.theme-cover-img):not(.theme-hero-bg-img):not(.theme-bg-video):not(.theme-product-card-img):not(.theme-product-main-img):not(.theme-about-media img):not(.theme-watch-feature-img):not(.theme-youtube-thumb):not(.theme-music-bg-img):not(.theme-watch-bg-img):not(.site-footer-bg-img):not(.site-logo-img):not(.footer-logo-img) {
	max-width: 100%;
	height: auto;
}
.theme-cover-img, .theme-hero-bg-img, .theme-bg-video, .theme-product-card-img, .theme-product-main-img,
.theme-about-media img, .theme-watch-feature-img, .theme-youtube-thumb, .theme-music-bg-img, .theme-watch-bg-img,
.site-footer-bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none;
}

::selection { background: color-mix(in srgb, var(--color-bone) 30%, transparent); color: var(--color-ink); }

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
	min-width: 0;
}
@media (min-width: 640px) { .container-wide { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-wide { padding-left: 2.5rem; padding-right: 2.5rem; } }

.theme-section-inner { position: relative; }

/* Section surfaces */
.cs-section-cream { background-color: var(--color-background); color: var(--color-ink); position: relative; overflow: hidden; }
.cs-section-cream-alt { background-color: var(--color-surface-1); color: var(--color-ink); position: relative; overflow: hidden; }
.cs-section-light {
	background-color: var(--light-surface-0);
	color: var(--light-ink);
	position: relative;
	overflow: hidden;
}
.cs-section-light .theme-flourish-path,
.cs-section-light .theme-flourish-mark-path { stroke: var(--light-bone); }
.cs-section-light .doce-eyebrow { color: var(--light-bone); border-color: var(--light-line); background: rgba(0,0,0,0.03); }
.cs-section-light .theme-section-subtitle,
.cs-section-light .theme-about-text,
.cs-section-light .theme-contact-subtitle,
.cs-section-light .theme-connect-handle { color: var(--light-muted-foreground); }
.cs-section-light .section-heading,
.cs-section-light h1, .cs-section-light h2, .cs-section-light h3 { color: var(--light-ink); }

.film-grain { position: relative; }
.film-grain::after {
	content: '';
	position: absolute;
	inset: -50%;
	pointer-events: none;
	opacity: 0.16;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.texture-linen { position: relative; }
.texture-linen::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.5;
	background-image: repeating-linear-gradient(0deg, hsla(0,0%,100%,0.014) 0 1px, transparent 1px 3px);
}

/* --------------------------------------------------------------------------
   2. TYPOGRAPHY UTILITIES
   -------------------------------------------------------------------------- */
.font-hero {
	font-family: var(--font-hero);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 0.98;
}

.cs-label {
	font-family: var(--font-label);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.24em;
	font-size: 14px;
	line-height: 1.3;
}

.section-heading {
	text-transform: uppercase;
	margin-top: 1.5rem;
	margin-bottom: 1rem;
}
.music-heading, .watch-heading, .connect-heading { font-size: 2.25rem; }
.about-heading, .contact-heading { font-size: 2.25rem; }
@media (min-width: 768px) {
	.music-heading, .watch-heading, .connect-heading,
	.about-heading, .contact-heading { font-size: 3.75rem; }
}

/* --------------------------------------------------------------------------
   3. BUTTONS
   -------------------------------------------------------------------------- */
.doce-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: var(--btn-padding);
	border-radius: var(--btn-radius);
	font-family: var(--font-label);
	font-weight: var(--btn-font-weight);
	font-size: var(--btn-font-size);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	cursor: pointer;
	position: relative;
	overflow: hidden;
	border: none;
	transition: transform 320ms var(--transition-smooth), opacity 320ms var(--transition-smooth),
		background-color 320ms, color 320ms, border-color 320ms;
	text-decoration: none;
}
.doce-btn-primary {
	background: var(--gradient-berry);
	color: var(--color-background);
	box-shadow: var(--shadow-gold);
}
.doce-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--color-bone) 45%, transparent); }
.doce-btn-ghost {
	background: transparent;
	color: var(--color-ink);
	border: 1px solid color-mix(in srgb, var(--color-ink) 35%, transparent);
}
.doce-btn-ghost:hover { transform: translateY(-3px); border-color: var(--color-bone); opacity: 0.9; }
.cs-section-light .doce-btn-ghost { color: var(--light-ink); border-color: color-mix(in srgb, var(--light-ink) 35%, transparent); }
.cs-section-light .doce-btn-ghost:hover { border-color: var(--light-bone); }
.doce-btn-dark {
	background: #141414;
	color: #efeeeb;
	border: 1px solid #333333;
}
.doce-btn-dark:hover { transform: translateY(-3px); opacity: 0.88; }
.doce-btn:disabled, .doce-btn.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.theme-final-cta-btn { margin-top: 2.25rem; }

/* --------------------------------------------------------------------------
   4. ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.theme-reveal-fade-in { animation: fadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.5s var(--transition-smooth) forwards; }

@keyframes ken-burns {
	0%   { transform: scale(1.04) translate3d(0, 0, 0); }
	50%  { transform: scale(1.12) translate3d(-1.2%, -0.8%, 0); }
	100% { transform: scale(1.04) translate3d(0, 0, 0); }
}
.ken-burns { animation: ken-burns 30s ease-in-out infinite; will-change: transform; }

.theme-parallax-decor { transform: translate3d(0, var(--parallax-y, 0px), 0); }

[data-reveal], [data-reveal-child] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-revealed, [data-reveal-child].is-revealed { opacity: 1; transform: translateY(0); }

/* Customizer-preview fallback (Section 2.1 rule 5) — never hide content in editor */
body.is-customizer [data-reveal],
body.is-customizer [data-reveal-child] {
	opacity: 1 !important;
	transform: none !important;
}

[data-tilt] { transform-style: preserve-3d; transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1); }

.cs-card-hover-aggressive {
	position: relative;
	z-index: 1;
	transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), opacity 500ms ease;
	will-change: transform;
}
.cs-card-hover-aggressive:hover { z-index: 10; transform: translateY(-8px); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@media (prefers-reduced-motion: reduce) {
	[data-reveal], [data-reveal-child] { opacity: 1 !important; transform: none !important; transition: none !important; }
	.cs-card-hover-aggressive, .cs-card-hover-aggressive:hover,
	.doce-card, .doce-card:hover { transition: none !important; transform: none !important; }
	.ken-burns { animation: none !important; }
	[data-tilt] { transform: none !important; }
}

/* --------------------------------------------------------------------------
   5. FLOURISH DECOR
   -------------------------------------------------------------------------- */
.theme-flourish-divider { position: relative; width: 100%; display: flex; align-items: center; gap: 1rem; }
.theme-flourish-line { height: 1px; flex: 1 1 auto; opacity: 0.35; }
.theme-flourish-line-left { background: linear-gradient(90deg, transparent, var(--color-bone)); }
.theme-flourish-line-right { background: linear-gradient(270deg, transparent, var(--color-bone)); }
.cs-section-light .theme-flourish-line-left { background: linear-gradient(90deg, transparent, var(--light-bone)); }
.cs-section-light .theme-flourish-line-right { background: linear-gradient(270deg, transparent, var(--light-bone)); }
.theme-flourish-svg { flex-shrink: 0; }
.theme-flourish-path, .theme-flourish-mark-path { stroke: var(--color-bone); fill: none; }
.theme-flourish-mark { flex-shrink: 0; width: 2rem; height: 0.75rem; }

.doce-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 16px;
	border-radius: 999px;
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--color-line);
	color: var(--color-bone);
	font-family: var(--font-label);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	font-size: 14px;
	transition: transform 320ms var(--transition-smooth), opacity 320ms var(--transition-smooth);
}
.doce-eyebrow:hover { transform: translateY(-2px); opacity: 0.85; }

.alta-nav-link {
	position: relative;
	display: inline-block;
	padding-bottom: 4px;
	transition: opacity 280ms ease;
}
.alta-nav-link::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: var(--color-bone);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cs-section-light .alta-nav-link::after { background: var(--light-bone); }
.alta-nav-link:hover::after, .alta-nav-link:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

.doce-card {
	background: var(--color-surface-2);
	border-radius: 1rem;
	border: 1px solid var(--color-line);
	overflow: hidden;
	transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), border-color 400ms, opacity 400ms;
}
.doce-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--color-bone) 50%, transparent); }

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0; left: 0; right: 0;
	z-index: 50;
	width: 100%;
	max-width: 100%;
	background-color: var(--color-background);
	border-bottom: 1px solid var(--color-line);
}
.site-header > .container-wide {
	overflow-x: clip;
	min-width: 0;
}
body.admin-bar .site-header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}
.site-nav {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	height: 4.5rem;
	gap: 0.75rem;
	min-width: 0;
	width: 100%;
}
@media (min-width: 768px) { .site-nav { height: 5.5rem; } }

.site-logo-link { display: flex; align-items: center; flex-shrink: 0; min-width: 0; max-width: min(100%, 14rem); }
.site-logo-img {
	height: var(--logo-height-mobile);
	max-height: var(--logo-height-mobile);
	width: auto !important;
	max-width: 100%;
	display: block;
	object-fit: contain;
	transition: transform 500ms;
}
@media (min-width: 768px) {
	.site-logo-img {
		height: var(--logo-height);
		max-height: var(--logo-height);
	}
}
/* WooCommerce loads img { height: auto } on shop pages — keep header/footer logos locked */
body.woocommerce-page .site-header .site-logo-img,
body.woocommerce-page .site-footer .footer-logo-img,
body.single-product .site-header .site-logo-img,
body.woocommerce-cart .site-header .site-logo-img,
body.woocommerce-checkout .site-header .site-logo-img {
	height: var(--logo-height-mobile) !important;
	max-height: var(--logo-height-mobile) !important;
	width: auto !important;
	max-width: 100% !important;
}
@media (min-width: 768px) {
	body.woocommerce-page .site-header .site-logo-img,
	body.woocommerce-page .site-footer .footer-logo-img,
	body.single-product .site-header .site-logo-img,
	body.woocommerce-cart .site-header .site-logo-img,
	body.woocommerce-checkout .site-header .site-logo-img {
		height: var(--logo-height) !important;
		max-height: var(--logo-height) !important;
	}
}
.site-logo-link:hover .site-logo-img { transform: translateY(-2px); }
.site-logo-text { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-ink); text-transform: uppercase; }

.site-nav-links {
	display: none;
	align-items: center;
	gap: 2.25rem;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}
@media (min-width: 1024px) { .site-nav-links { display: flex; } }
.theme-nav-list { display: flex; align-items: center; gap: 2.25rem; margin: 0; padding: 0; }
.theme-nav-list a {
	white-space: nowrap;
	font-family: var(--font-label);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-ink);
}
.theme-nav-list a:hover { opacity: 0.8; }

.site-header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; min-width: 0; }
.header-listen-btn { display: none; white-space: nowrap; padding-top: 0.75rem; padding-bottom: 0.75rem; padding-left: 1.5rem; padding-right: 1.5rem; font-size: 14px; }
@media (min-width: 768px) { .header-listen-btn { display: inline-flex; } }

.theme-cart-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	transition: transform 300ms;
	color: var(--color-ink);
}
.theme-cart-count-inline {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 19px;
	height: 19px;
	padding: 0 4px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	font-family: var(--font-label);
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-bone);
	color: var(--color-background);
}
.theme-cart-count-badge {
	display: none;
}
.theme-cart-count-badge:not(:empty) {
	display: none;
}
.theme-cart-toggle:hover { transform: translateY(-2px); }
.theme-cart-count-badge:empty { display: none; }

.theme-header-spacer {
	height: var(--header-height-mobile);
}
@media (min-width: 768px) {
	.theme-header-spacer { height: var(--header-height); }
}

.theme-mobile-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 999px;
	color: var(--color-ink);
	transition: transform 200ms;
}
@media (min-width: 1024px) { .theme-mobile-toggle { display: none; } }
.theme-mobile-toggle:hover { transform: translateY(-2px); }
.theme-mobile-toggle .icon-close { display: none; }
.theme-mobile-toggle[aria-expanded="true"] .icon-open { display: none; }
.theme-mobile-toggle[aria-expanded="true"] .icon-close { display: block; }

.theme-mobile-menu {
	display: none;
	padding: 1rem 0;
	background-color: var(--color-background);
	border-top: 1px solid var(--color-line);
	margin-left: -1.25rem;
	margin-right: -1.25rem;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}
@media (min-width: 640px) {
	.theme-mobile-menu {
		margin-left: -1.5rem;
		margin-right: -1.5rem;
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}
.theme-mobile-menu.is-open { display: block; animation: fadeIn 0.6s var(--transition-smooth) forwards; }
.theme-mobile-menu-links { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.theme-nav-list-mobile,
.theme-mobile-menu .theme-nav-list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	width: 100%;
}
.theme-nav-list-mobile a,
.theme-mobile-menu .theme-nav-list a {
	align-self: flex-start;
	text-align: left;
	padding: 0.75rem 0.25rem;
	font-family: var(--font-label);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-ink);
	display: block;
	white-space: normal;
}
.theme-nav-list-mobile a:hover,
.theme-mobile-menu .theme-nav-list a:hover { opacity: 0.8; }
.theme-mobile-menu-links > .doce-btn,
.theme-mobile-menu-cta {
	margin-top: 0.75rem;
	width: 100%;
	max-width: 100%;
}
@media (min-width: 1024px) { .theme-mobile-menu { display: none !important; } }

/* Transparent header on home / solid on inner pages (Section 22.7) */
.site-header.is-solid { background-color: var(--color-background); }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.theme-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.theme-hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; background-color: var(--color-background); }
.theme-hero-bg-img, .theme-hero-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.theme-hero-overlay { position: absolute; inset: 0; pointer-events: none; }
.theme-hero-overlay-1 { z-index: 2; background: linear-gradient(90deg, rgba(8,8,8,0.94) 0%, rgba(8,8,8,0.72) 45%, rgba(8,8,8,0.35) 100%); }
.theme-hero-overlay-2 { z-index: 3; background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, transparent 30%, rgba(10,10,10,0.9) 100%); }

.theme-hero-inner { position: relative; z-index: 5; padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .theme-hero-inner { padding-top: 6rem; padding-bottom: 6rem; } }
.theme-hero-content { max-width: 48rem; }
.theme-hero-title {
	font-size: 2.7rem;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
	color: var(--color-ink);
}
@media (min-width: 640px) { .theme-hero-title { font-size: 4rem; } }
@media (min-width: 1024px) { .theme-hero-title { font-size: 5.4rem; } }
.theme-hero-subtitle { max-width: 36rem; font-size: 1rem; line-height: 1.7; color: var(--color-muted-foreground); }
@media (min-width: 768px) { .theme-hero-subtitle { font-size: 1.125rem; } }
.theme-hero-buttons { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2.25rem; }
@media (min-width: 640px) { .theme-hero-buttons { flex-direction: row; } }

/* --------------------------------------------------------------------------
   8. SHARED SECTION LAYOUT
   -------------------------------------------------------------------------- */
.theme-music-section, .theme-watch-section, .theme-about-section, .theme-connect-section, .theme-contact-section {
	padding-top: 5rem; padding-bottom: 5rem;
}
@media (min-width: 768px) { .theme-music-section, .theme-watch-section, .theme-about-section, .theme-connect-section, .theme-contact-section { padding-top: 7rem; padding-bottom: 7rem; } }

.theme-section-heading-block { max-width: 42rem; margin-bottom: 3.5rem; }
.theme-watch-heading-block { margin-bottom: 3rem; }
.theme-section-subtitle { font-size: 1rem; margin-top: 1rem; color: var(--color-muted-foreground); }
@media (min-width: 768px) { .theme-section-subtitle { font-size: 1.125rem; } }

.theme-music-bg-img, .theme-watch-bg-img {
	pointer-events: none;
	position: absolute;
	inset: 0;
	z-index: 0;
}
.theme-music-bg-img { opacity: 0.09; }
.theme-watch-bg-img { opacity: 0.12; }

/* --------------------------------------------------------------------------
   9. PRODUCT GRID / CARDS (Music section)
   -------------------------------------------------------------------------- */
.theme-product-grid, .theme-music-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	align-items: stretch;
	min-width: 0;
}
@media (min-width: 768px) { .theme-music-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.theme-shop-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.theme-product-card-wrap { height: 100%; }
.theme-product-card-music { height: 100%; display: flex; flex-direction: column; }
.theme-product-card-media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: var(--color-surface-1);
}
.theme-product-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease-out; }
.theme-product-card-media:hover img { transform: scale(1.06); }
.theme-product-card-media-fade {
	position: absolute; inset: 0; opacity: 0; transition: opacity 500ms;
	background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.75) 100%);
}
.theme-product-card-media:hover .theme-product-card-media-fade { opacity: 1; }
.theme-product-card-category {
	position: absolute;
	top: 1rem; left: 1rem;
	padding: 0.375rem 0.75rem;
	border-radius: 999px;
	background-color: rgba(10,10,10,0.7);
	color: var(--color-bone);
	border: 1px solid var(--color-line);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.theme-product-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.theme-product-card-title { font-size: 22px; line-height: 1.35; }
.theme-product-card-desc { margin-top: 0.75rem; font-size: 14px; line-height: 1.6; color: var(--color-muted-foreground); }
.theme-product-card-divider { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.theme-product-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.theme-product-card-price { font-family: var(--font-display); font-size: 21px; font-variant-numeric: tabular-nums; color: var(--color-ink); }
.theme-product-card-price .woocommerce-Price-amount { font-family: inherit; }
.theme-product-card-price del { opacity: 0.5; margin-right: 0.4em; font-size: 0.85em; }
.theme-product-card-view-btn { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.theme-product-card-note, .theme-product-card-stock { margin-top: 0.75rem; font-size: 14px; color: var(--color-muted-foreground); }
.theme-out-of-stock { color: #d98b8b; }

/* Generic (related / archive) product card — Pattern A hit-area overlay */
.theme-product-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.theme-product-card > .theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }
.theme-product-card .theme-product-card-quick-add,
.theme-product-card .theme-product-card-body a { pointer-events: auto; }
.theme-product-card .theme-product-card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background-color: var(--color-surface-1); border-radius: 1rem 1rem 0 0; }
.theme-product-card:hover .theme-product-card-media img { transform: scale(1.06); }
.theme-product-card-quick-add {
	position: absolute;
	bottom: 0.875rem; right: 0.875rem;
	z-index: 3;
	width: 48px; height: 48px;
	border-radius: 999px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--gradient-berry);
	color: var(--color-background);
	opacity: 0;
	transform: translateY(0.5rem);
	transition: all 400ms;
}
.theme-product-card:hover .theme-product-card-quick-add { opacity: 1; transform: translateY(0); }
.theme-product-card-quick-add:hover { transform: scale(1.1); }
.theme-product-card .theme-product-card-body { background: var(--color-surface-2); border: 1px solid var(--color-line); border-top: none; border-radius: 0 0 1rem 1rem; padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.theme-product-card .theme-product-card-title { font-size: 20px; }
@media (min-width: 768px) { .theme-product-card .theme-product-card-title { font-size: 22px; } }
.theme-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme-product-card-price-standalone { margin-top: auto; padding-top: 1rem; display: block; font-size: 21px; }

/* --------------------------------------------------------------------------
   10. ABOUT SECTION
   -------------------------------------------------------------------------- */
.theme-about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .theme-about-grid { grid-template-columns: repeat(12, 1fr); gap: 4rem; } }
.theme-about-media { position: relative; overflow: hidden; border-radius: 1rem; }
@media (min-width: 1024px) { .theme-about-media { grid-column: span 6; } }
.theme-about-media-inner { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 1rem; }
.theme-about-copy { min-width: 0; }
@media (min-width: 1024px) { .theme-about-copy { grid-column: span 6; padding-left: 1.5rem; } }
.theme-about-text { margin-top: 1.75rem; margin-bottom: 1.75rem; max-width: 42rem; font-size: 1rem; line-height: 1.7; color: var(--color-muted-foreground); }
.theme-about-text > * + * { margin-top: 1.25rem; }
.theme-about-quote { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; color: var(--color-ink); }
.cs-section-light .theme-about-quote { color: var(--light-ink); }
@media (min-width: 768px) { .theme-about-quote { font-size: 1.5rem; } }

/* --------------------------------------------------------------------------
   11. MANIFESTO / FINAL CTA (video sections)
   -------------------------------------------------------------------------- */
.theme-manifesto-section, .theme-final-cta-section {
	position: relative;
	overflow: hidden;
	padding-top: 6rem; padding-bottom: 6rem;
	background-color: var(--color-background);
}
@media (min-width: 768px) { .theme-manifesto-section, .theme-final-cta-section { padding-top: 9rem; padding-bottom: 9rem; } }
.theme-manifesto-media, .theme-final-cta-media { position: absolute; inset: 0; }
.theme-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.theme-manifesto-media .theme-bg-video { opacity: 0.22; }
.theme-final-cta-media .theme-bg-video { opacity: 0.4; }
.theme-manifesto-vignette {
	position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(ellipse at 50% 50%, transparent 20%, rgba(10,10,10,0.9) 85%);
}
.theme-final-cta-vignette {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.7) 50%, rgba(10,10,10,0.95) 100%);
}
.theme-manifesto-inner { text-align: center; }
.theme-manifesto-content { max-width: 56rem; margin-left: auto; margin-right: auto; }
.theme-manifesto-heading {
	font-size: 2.2rem;
	text-transform: uppercase;
	line-height: 1.02;
}
@media (min-width: 640px) { .theme-manifesto-heading { font-size: 3.2rem; } }
@media (min-width: 1024px) { .theme-manifesto-heading { font-size: 4.4rem; } }
h2.font-hero.theme-final-cta-heading {
	font-family: var(--font-hero);
	font-weight: 700;
	letter-spacing: -0.02em;
	font-size: 2.2rem;
	line-height: 1.03;
	text-transform: uppercase;
}
@media (min-width: 640px) {
	h2.font-hero.theme-final-cta-heading { font-size: 3.2rem; }
}
@media (min-width: 1024px) {
	h2.font-hero.theme-final-cta-heading { font-size: 4.2rem; }
}
.theme-manifesto-subtitle { margin-top: 2rem; font-size: 1rem; max-width: 36rem; margin-left: auto; margin-right: auto; color: var(--color-muted-foreground); }
@media (min-width: 768px) { .theme-manifesto-subtitle { font-size: 1.125rem; } }
.theme-manifesto-divider-top { margin-bottom: 2.5rem; }
.theme-manifesto-divider-bottom { margin-top: 2.5rem; }
.theme-final-cta-content { max-width: 48rem; position: relative; }
.theme-final-cta-subtitle {
	margin-top: 1.75rem;
	font-size: 1rem;
	line-height: 1.5;
	max-width: 36rem;
	color: var(--color-muted-foreground);
}
@media (min-width: 768px) { .theme-final-cta-subtitle { font-size: 1.125rem; } }
.theme-br-sm-only { display: none; }
@media (min-width: 640px) { .theme-br-sm-only { display: block; } }

/* --------------------------------------------------------------------------
   12. WATCH SECTION
   -------------------------------------------------------------------------- */
.theme-watch-feature {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 1rem;
	margin-bottom: 2.5rem;
	background-color: var(--color-surface-2);
	border: 1px solid var(--color-line);
}
.theme-watch-feature-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; transition: transform 1.4s; }
.theme-watch-feature:hover .theme-watch-feature-img { transform: scale(1.05); }
.theme-watch-feature-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(10,10,10,0.92) 20%, rgba(10,10,10,0.45) 100%);
}
.theme-watch-feature-content {
	position: relative;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
}
@media (min-width: 768px) { .theme-watch-feature-content { padding: 3.5rem; flex-direction: row; align-items: center; gap: 2.5rem; } }
.theme-watch-feature-play {
	width: 64px; height: 64px;
	border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
	background-color: rgba(239,238,235,0.92);
	color: var(--color-background);
	transition: transform 500ms;
}
.theme-watch-feature:hover .theme-watch-feature-play { transform: scale(1.1); }
.theme-play-icon { margin-left: 2px; }
.theme-watch-feature-text { min-width: 0; }
.theme-watch-feature-label { color: var(--color-bone); }
.theme-watch-feature-title { font-size: 1.875rem; margin-top: 0.5rem; text-transform: uppercase; }
@media (min-width: 768px) { .theme-watch-feature-title { font-size: 3rem; } }
.theme-watch-feature-subtitle { margin-top: 0.75rem; font-size: 15px; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-muted-foreground); }
.theme-watch-feature-arrow { transition: transform 300ms; }
.theme-watch-feature:hover .theme-watch-feature-arrow { transform: translate(4px, -4px); }

.theme-watch-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
@media (min-width: 768px) { .theme-watch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.theme-watch-grid-item { height: 100%; }

.theme-youtube-card {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 0.75rem;
	height: 100%;
	background-color: var(--color-surface-2);
	border: 1px solid var(--color-line);
}
.theme-youtube-play-btn { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.theme-youtube-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: all 700ms; }
.theme-youtube-card:hover .theme-youtube-thumb { opacity: 1; transform: scale(1.04); }
.theme-youtube-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.8) 100%); }
.theme-youtube-play-circle-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.theme-youtube-play-circle {
	width: 56px; height: 56px;
	border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	background-color: rgba(239,238,235,0.92);
	color: var(--color-background);
	transition: transform 500ms;
}
.theme-youtube-card:hover .theme-youtube-play-circle { transform: scale(1.1); }
.theme-youtube-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   13. CONNECT SECTION
   -------------------------------------------------------------------------- */
.theme-connect-list { display: grid; grid-template-columns: 1fr; position: relative; }
.theme-connect-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.75rem 0;
	border-top: 1px solid var(--color-line);
	transition: transform 500ms;
	min-width: 0;
}
.cs-section-light .theme-connect-row { border-top-color: var(--light-line); }
.theme-connect-row:hover { transform: translateX(0.5rem); }
.theme-connect-row-left { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.theme-connect-icon { color: var(--color-bone); flex-shrink: 0; transition: transform 500ms; }
.cs-section-light .theme-connect-icon { color: var(--light-bone); }
.theme-connect-row:hover .theme-connect-icon { transform: translateY(-4px); }
.theme-connect-text { min-width: 0; }
.theme-connect-label { font-size: 1.5rem; text-transform: uppercase; display: block; overflow-wrap: break-word; word-break: break-word; }
@media (min-width: 768px) { .theme-connect-label { font-size: 2.25rem; } }
.theme-connect-handle { display: block; font-size: 14px; margin-top: 0.25rem; color: var(--color-muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-connect-arrow { flex-shrink: 0; transition: transform 500ms; }
.theme-connect-row:hover .theme-connect-arrow { transform: translate(4px, -4px); }
.theme-connect-row-border { display: block; border-top: 1px solid var(--color-line); }
.cs-section-light .theme-connect-row-border { border-top-color: var(--light-line); }

/* --------------------------------------------------------------------------
   14. CONTACT SECTION
   -------------------------------------------------------------------------- */
.theme-contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .theme-contact-grid { grid-template-columns: repeat(12, 1fr); gap: 4rem; } }
.theme-contact-info { min-width: 0; }
@media (min-width: 1024px) { .theme-contact-info { grid-column: span 5; } }
.theme-contact-subtitle { margin-top: 1rem; max-width: 28rem; line-height: 1.7; color: var(--color-muted-foreground); }
.theme-contact-links { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.theme-contact-link { display: flex; align-items: center; gap: 0.75rem; font-size: 15px; transition: transform 300ms; color: var(--color-ink); word-break: break-all; }
.cs-section-light .theme-contact-link { color: var(--light-ink); }
.theme-contact-link:hover { transform: translateX(4px); }
.theme-contact-link svg { color: var(--color-bone); flex-shrink: 0; }
.cs-section-light .theme-contact-link svg { color: var(--light-bone); }
.theme-contact-divider { margin-top: 2.5rem; max-width: 24rem; }
.theme-contact-form-col { min-width: 0; width: 100%; }
@media (min-width: 1024px) { .theme-contact-form-col { grid-column: span 7; } }

.theme-contact-form, .theme-modal-form {
	border-radius: 1rem;
	padding: 1.5rem;
	background-color: var(--color-surface-2);
	border: 1px solid var(--color-line);
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}
.cs-section-light .theme-contact-form { background-color: var(--light-surface-1); border-color: var(--light-line); }
@media (min-width: 768px) { .theme-contact-form { padding: 2rem; } }
.theme-form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .theme-form-grid-2 { grid-template-columns: 1fr 1fr; } }
.theme-field label { font-size: 14px; font-weight: 500; margin-bottom: 0.5rem; display: block; font-family: var(--font-label); }
.theme-field input, .theme-field textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	font-size: 1rem;
	background-color: var(--color-surface-1);
	border: 1px solid var(--color-line);
	color: var(--color-ink);
	transition: box-shadow 200ms;
}
.cs-section-light .theme-field input, .cs-section-light .theme-field textarea {
	background-color: var(--light-surface-2);
	border-color: var(--light-line);
	color: var(--light-ink);
}
.theme-field input:focus, .theme-field textarea:focus { outline: none; box-shadow: 0 0 0 1px var(--color-bone); }
.theme-field textarea { resize: vertical; }
.theme-contact-form-footer, .theme-modal-form-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.theme-modal-form-footer { justify-content: flex-end; }
.theme-contact-form-status { font-size: 14px; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--color-muted-foreground); }
.theme-contact-form-status.is-success { color: var(--color-bone); }

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
	position: relative;
	overflow: hidden;
	background-color: var(--color-background);
	color: var(--color-ink);
	border-top: 1px solid var(--color-line);
}
.site-footer-bg-img { pointer-events: none; opacity: 0.07; position: absolute; inset: 0; }
.site-footer-inner { position: relative; padding-top: 4rem; padding-bottom: 2rem; }
@media (min-width: 1024px) { .site-footer-inner { padding-top: 5rem; padding-bottom: 2.5rem; } }
.site-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer-grid { grid-template-columns: repeat(12, 1fr); gap: 3.5rem; } }
.site-footer-brand { min-width: 0; }
@media (min-width: 768px) { .site-footer-brand { grid-column: span 5; } }
.footer-logo-img {
	height: calc(var(--logo-height-mobile) * 1.333);
	max-height: calc(var(--logo-height-mobile) * 1.333);
	width: auto !important;
	max-width: 100%;
	object-fit: contain;
}
@media (min-width: 768px) {
	.footer-logo-img {
		height: calc(var(--logo-height) * 1.333);
		max-height: calc(var(--logo-height) * 1.333);
	}
}
.footer-tagline { margin-top: 1.5rem; max-width: 28rem; font-size: 15px; line-height: 1.7; color: var(--color-muted-foreground); }
.footer-socials { margin-top: 1.75rem; display: flex; align-items: center; gap: 0.75rem; }
.footer-social-btn {
	width: 44px; height: 44px;
	border-radius: 999px;
	border: 1px solid var(--color-line);
	display: flex; align-items: center; justify-content: center;
	color: var(--color-ink);
	transition: transform 300ms;
}
.footer-social-btn:hover { transform: translateY(-4px); }
.site-footer-explore, .site-footer-contact { min-width: 0; }
@media (min-width: 768px) { .site-footer-explore { grid-column: span 3; } .site-footer-contact { grid-column: span 4; } }
.footer-col-heading { margin-bottom: 1.25rem; color: var(--color-bone); }
.footer-links-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links-list a, .footer-contact-link {
	font-size: 14px;
	color: var(--color-muted-foreground);
	transition: opacity 200ms;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.footer-links-list a:hover, .footer-contact-link:hover { opacity: 0.7; }
.footer-contact-link { word-break: break-all; }
.footer-back-to-top { margin-top: 1.5rem; padding: 0.75rem 1.5rem !important; }
.footer-flourish-divider { margin-top: 3.5rem; }
.footer-bottom-row { margin-top: 1.5rem; padding-bottom: 1rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
@media (min-width: 640px) { .footer-bottom-row { flex-direction: row; align-items: center; padding-right: 5rem; } }
.footer-copyright, .footer-credit { font-size: 14px; color: var(--color-muted-foreground); }
.footer-credit a { color: var(--color-ink); text-decoration: underline; text-underline-offset: 4px; transition: opacity 200ms; }
.footer-credit a:hover { opacity: 0.7; }

/* --------------------------------------------------------------------------
   16. BACK TO TOP BUTTON
   -------------------------------------------------------------------------- */
.theme-back-to-top {
	position: fixed;
	bottom: 2rem; right: 2rem;
	z-index: 50;
	width: 44px; height: 44px;
	border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	background: var(--gradient-berry);
	color: var(--color-background);
	box-shadow: var(--shadow-gold);
	transition: all 300ms;
	opacity: 0;
	pointer-events: none;
}
@media (min-width: 768px) { .theme-back-to-top { width: 48px; height: 48px; } }
.theme-back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.theme-back-to-top:hover { transform: scale(1.1) translateY(-4px); }
.rotate-neg-90 { transform: rotate(-90deg); }

/* --------------------------------------------------------------------------
   17. CONTACT MODAL (dialog)
   -------------------------------------------------------------------------- */
.theme-modal { position: fixed; inset: 0; z-index: 100; display: none; }
.theme-modal[data-state="open"] { display: block; }
.theme-modal-overlay {
	position: fixed; inset: 0;
	background: rgba(0,0,0,0.8);
	opacity: 0;
	transition: opacity 200ms ease;
}
.theme-modal[data-state="open"] .theme-modal-overlay { opacity: 1; }
.theme-modal-content {
	position: fixed;
	left: 50%; top: 50%;
	width: calc(100% - 2rem);
	max-width: 32rem;
	max-height: 90vh;
	overflow-y: auto;
	transform: translate(-50%, -48%) scale(0.95);
	opacity: 0;
	background-color: var(--color-surface-2);
	border: 1px solid var(--color-line);
	border-radius: 1rem;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	transition: opacity 200ms ease, transform 200ms ease;
}
@media (min-width: 640px) { .theme-modal-content { padding: 1.75rem; } }
.theme-modal[data-state="open"] .theme-modal-content { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.theme-modal-close {
	position: absolute; top: 1rem; right: 1rem;
	width: 32px; height: 32px;
	border-radius: 0.375rem;
	display: flex; align-items: center; justify-content: center;
	color: var(--color-muted-foreground);
	opacity: 0.7;
	transition: opacity 200ms;
}
.theme-modal-close:hover { opacity: 1; }
.theme-modal-title { font-size: 1.875rem; text-transform: uppercase; }
.theme-modal-desc { font-size: 14px; margin-top: 0.5rem; color: var(--color-muted-foreground); }
.theme-modal-contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; font-size: 14px; color: var(--color-muted-foreground); }
.theme-modal-contact-row a { display: inline-flex; align-items: center; gap: 0.5rem; transition: opacity 200ms; }
.theme-modal-contact-row a:hover { opacity: 0.7; }
.theme-modal-success { text-align: center; padding: 2rem 0; }
.theme-modal-success-icon {
	width: 64px; height: 64px;
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 1rem;
	border-radius: 999px;
	background: var(--gradient-berry);
	color: var(--color-background);
}
.theme-modal-success-title { font-size: 1.5rem; margin-bottom: 0.5rem; text-transform: uppercase; }
.theme-modal-success-text { font-size: 14px; color: var(--color-muted-foreground); }

/* --------------------------------------------------------------------------
   18. CART DRAWER + OVERLAY
   -------------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 50;
	background-color: rgba(8,8,8,0.7);
	backdrop-filter: blur(4px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 300ms;
}
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;
	z-index: 50;
	display: flex;
	flex-direction: column;
	background-color: var(--color-surface-1);
	border-left: 1px solid var(--color-line);
	translate: 100% 0;
	transition: translate 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
body.cart-open #theme-cart-drawer { translate: 0 0; }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-line); }
.theme-cart-drawer-title { font-size: 1.5rem; text-transform: uppercase; }
.theme-cart-drawer-close {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 300ms ease;
}
.theme-cart-drawer-close:hover { transform: rotate(90deg); }

/* Drawer controls: opacity-only hovers (no translateY lift — avoids hover jitter). */
#theme-cart-drawer .doce-btn-primary:hover,
#theme-cart-drawer .doce-btn-ghost:hover,
#theme-cart-drawer .doce-btn-dark:hover {
	transform: none;
	opacity: 0.9;
}
#theme-cart-drawer .theme-cart-checkout-btn:hover {
	box-shadow: var(--shadow-gold);
}

.theme-cart-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.theme-cart-drawer-empty-icon { width: 80px; height: 80px; border-radius: 999px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; background-color: var(--color-surface-2); border: 1px solid var(--color-line); color: var(--color-bone); }
.theme-cart-drawer-empty-text { margin-bottom: 1.5rem; color: var(--color-muted-foreground); }

.theme-cart-drawer-items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.theme-cart-drawer-item { display: flex; gap: 1rem; padding: 0.75rem; border-radius: 1rem; }
@media (hover: hover) and (pointer: fine) {
	.theme-cart-drawer-item { transition: transform 300ms ease; }
	.theme-cart-drawer-item:hover { transform: translateX(4px); }
}
.theme-cart-item-thumb { width: 80px; height: 80px; overflow: hidden; flex-shrink: 0; border-radius: 0.75rem; background-color: var(--color-surface-2); display: block; }
.theme-cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-item-body { flex: 1; min-width: 0; }
.theme-cart-item-name { font-size: 15px; font-family: var(--font-display); line-height: 1.35; display: block; transition: opacity 200ms; }
.theme-cart-item-name:hover { opacity: 0.7; }
.theme-cart-item-price { font-size: 14px; font-weight: 600; margin-top: 0.25rem; color: var(--color-bone); }
.theme-cart-item-variation { font-size: 13px; margin-top: 0.25rem; color: var(--color-muted-foreground); }
.theme-cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; min-width: 0; }
.theme-cart-qty-btn { width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-line); transition: opacity 200ms; }
.theme-cart-qty-btn:hover { opacity: 0.7; }
.theme-cart-qty-value { font-size: 14px; width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.theme-cart-remove-btn { margin-left: auto; font-size: 14px; color: var(--color-muted-foreground); transition: opacity 200ms; white-space: nowrap; }
.theme-cart-remove-btn:hover { opacity: 0.7; }

.theme-cart-drawer-footer { padding: 1.5rem; border-top: 1px solid var(--color-line); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-subtotal-row { display: flex; align-items: baseline; justify-content: space-between; }
.theme-cart-subtotal-value { font-family: var(--font-display); font-size: 1.875rem; font-variant-numeric: tabular-nums; color: var(--color-ink); }
.theme-cart-subtotal-value .woocommerce-Price-amount { font-family: inherit; }
.theme-cart-checkout-btn { width: 100%; }
.theme-cart-clear-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 14px; padding: 0.5rem; color: var(--color-muted-foreground); transition: opacity 200ms; text-transform: none; letter-spacing: normal; }
.theme-cart-clear-btn:hover { opacity: 0.75; }

/* Hide WooCommerce's own "View cart" link after AJAX add (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; }

/* Scoped WooCommerce notice visibility (Section 14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	font-family: var(--font-body);
	border-radius: 0.75rem;
	padding: 1rem 1.25rem;
	background-color: var(--color-surface-2);
	border: 1px solid var(--color-line);
	color: var(--color-ink);
	list-style: none;
}

/* --------------------------------------------------------------------------
   19. SINGLE PRODUCT PAGE
   -------------------------------------------------------------------------- */
.theme-single-product-inner { position: relative; padding-top: 0.5rem; }
.theme-product-breadcrumb { padding: 1.5rem 0; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-label); }
.theme-product-breadcrumb a:hover { color: var(--color-bone); }
.theme-breadcrumb-sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb-current { color: var(--color-ink); }

.theme-product-layout, .theme-product-grid-cols { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 6rem; align-items: start; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout, .theme-product-grid-cols { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }

.theme-product-main-img-btn { display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; cursor: zoom-in; border-radius: 1rem; position: relative; background-color: var(--color-surface-1); border: 1px solid var(--color-line); }
.theme-product-main-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s; }
.theme-product-main-img-btn:hover .theme-product-main-img { transform: scale(1.05); }

.theme-product-thumbnails { margin-top: 1rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumb { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 0.75rem; transition: transform 300ms; background-color: var(--color-surface-1); border: 1px solid var(--color-line); }
.theme-product-thumb:hover { transform: translateY(-4px); }
.theme-product-thumb.is-active { border: 2px solid var(--color-bone); }
.theme-product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.theme-audio-preview-box { margin-top: 1.5rem; border-radius: 1rem; padding: 1.5rem; display: flex; align-items: flex-start; gap: 1rem; background-color: var(--color-surface-2); border: 1px dashed var(--color-line); }
.theme-audio-icon { color: var(--color-bone); flex-shrink: 0; margin-top: 0.125rem; }
.theme-audio-preview-copy { min-width: 0; }
.theme-audio-heading { color: var(--color-bone); }
.theme-audio-text { margin-top: 0.5rem; font-size: 14px; line-height: 1.6; color: var(--color-muted-foreground); overflow-wrap: break-word; }

.theme-product-title, .product-title {
	font-size: 1.875rem;
	line-height: 1.04;
	margin-top: 1.25rem;
	margin-bottom: 1.25rem;
	font-family: var(--font-body);
	font-weight: 600;
	text-transform: none;
}
@media (min-width: 768px) { .theme-product-title, .product-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-product-title, .product-title { font-size: 3.1rem; } }
.theme-product-price-row { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.5rem; }
.theme-product-price { font-family: var(--font-display); font-size: 2.25rem; font-variant-numeric: tabular-nums; color: var(--color-ink); }
.theme-product-price .woocommerce-Price-amount { font-family: inherit; }
.theme-product-currency { color: var(--color-bone); }
.theme-product-price-note { font-size: 14px; margin-bottom: 1.75rem; color: var(--color-muted-foreground); }
.theme-product-description { line-height: 1.7; margin-bottom: 2rem; font-size: 1rem; color: var(--color-muted-foreground); overflow-wrap: break-word; word-break: break-word; }

.theme-quantity-block { margin-bottom: 1.5rem; }
.theme-quantity-heading { margin-bottom: 0.75rem; color: var(--color-muted-foreground); }
.theme-quantity-wrapper { display: inline-flex; align-items: center; border-radius: 999px; overflow: hidden; background-color: var(--color-surface-2); border: 1px solid var(--color-line); }
.theme-qty-minus, .theme-qty-plus { padding: 0.75rem 1rem; transition: opacity 200ms; }
.theme-qty-minus:hover, .theme-qty-plus:hover { opacity: 0.7; }
.theme-qty-input {
	padding: 0.75rem 1.25rem;
	min-width: 48px;
	text-align: center;
	font-variant-numeric: tabular-nums;
	background: transparent;
	border: none;
	color: var(--color-ink);
	-moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-add-to-cart-row, .theme-add-to-cart-area { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.75rem; min-width: 0; }
.theme-product-add-btn, .theme-ask-question-btn { flex: 1 1 auto; min-width: min(100%, 160px); }
@media (max-width: 479px) {
	.theme-product-add-btn, .theme-ask-question-btn { flex: 1 1 100%; min-width: 0; }
}

.theme-download-note {
	margin-top: 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-size: 14px;
	border-radius: 1rem;
	padding: 0.75rem 1rem;
	background-color: var(--color-surface-2);
	color: var(--color-bone);
	border: 1px solid var(--color-line);
}
.theme-product-divider { margin-top: 2.5rem; }

.theme-details-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; text-align: left; }
.theme-details-toggle:hover .cs-label { opacity: 0.7; }
.theme-details-chevron { transition: transform 300ms; }
.theme-details-toggle[aria-expanded="true"] .theme-details-chevron { transform: rotate(180deg); }
.theme-details-panel { padding-bottom: 1.5rem; overflow: hidden; }
.theme-details-panel[hidden] { display: none; }
.theme-details-panel ul { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-details-panel li, .theme-details-panel p { font-size: 15px; color: var(--color-muted-foreground); }
.theme-details-panel ul li { display: flex; align-items: flex-start; }
.theme-details-panel ul li::before {
	content: '';
	width: 6px; height: 6px; border-radius: 999px;
	margin-top: 0.6rem; margin-right: 0.75rem; flex-shrink: 0;
	background-color: var(--color-bone);
}

.theme-related-products-section { padding-top: 5rem; padding-bottom: 5rem; border-top: 1px solid var(--color-line); }
.theme-related-heading-block { margin-bottom: 2.5rem; }
.theme-related-heading { font-size: 1.875rem; margin-top: 1rem; text-transform: uppercase; }
@media (min-width: 768px) { .theme-related-heading { font-size: 3rem; } }
.theme-related-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
@media (min-width: 640px) { .theme-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-related-grid { grid-template-columns: repeat(3, 1fr); } }

.theme-product-not-found { padding: 6rem 0; text-align: center; }
.theme-not-found-heading { font-size: 1.875rem; margin-bottom: 1.5rem; }

/* PDP — attribute swatches / selects (Section A) */
.theme-variation-attribute { margin-bottom: 1.5rem; }
.theme-variation-label { margin-bottom: 0.75rem; color: var(--color-muted-foreground); }
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.75rem; }
.theme-attr-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.875rem;
	border-radius: 999px;
	border: 1px solid var(--color-line);
	background: transparent;
	color: var(--color-ink);
	font-size: 14px;
	font-family: var(--font-label);
	transition: border-color 200ms, background-color 200ms, color 200ms;
}
.theme-attr-pill--color.is-selected {
	border-color: var(--color-primary);
	background: color-mix(in srgb, var(--color-primary) 5%, transparent);
}
.theme-attr-pill--license.is-selected {
	background: var(--color-ink);
	color: var(--color-background);
	border-color: var(--color-ink);
}
.theme-attr-swatch {
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: var(--swatch-color, #ccc);
	border: 1px solid color-mix(in srgb, var(--color-line) 80%, transparent);
	flex-shrink: 0;
}
.theme-attr-select {
	width: 100%;
	max-width: 20rem;
	padding: 0.75rem 1rem;
	border-radius: 999px;
	background-color: var(--color-surface-2);
	border: 1px solid var(--color-line);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: 14px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a8a8a8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
}
.theme-attr-select-hidden { display: none !important; }

/* Cart drawer — line item meta (Section B) */
.theme-cart-item-meta {
	list-style: none;
	margin: 0.35rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.theme-cart-item-meta-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 13px;
	color: var(--color-muted-foreground);
}
.theme-cart-item-meta-swatch {
	width: 12px;
	height: 12px;
	border-radius: 999px;
	background: var(--swatch-color, #ccc);
	border: 1px solid var(--color-line);
	flex-shrink: 0;
}
.theme-cart-item-meta-label { color: var(--color-muted-foreground); }
.theme-cart-item-meta-value { color: var(--color-bone); }

/* Lightbox */
.theme-lightbox {
	position: fixed; inset: 0; z-index: 100;
	display: none;
	align-items: center; justify-content: center;
	padding: 1rem;
	background-color: rgba(8,8,8,0.94);
	backdrop-filter: blur(4px);
}
@media (min-width: 768px) { .theme-lightbox { padding: 2.5rem; } }
.theme-lightbox.is-open { display: flex; animation: fadeIn 0.4s var(--transition-smooth) forwards; }
.theme-lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: default; border-radius: 1rem; }
.theme-lightbox-close {
	position: absolute; top: 1rem; right: 1rem;
	width: 44px; height: 44px;
	border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	background-color: rgba(239,238,235,0.14);
	color: var(--color-ink);
	transition: opacity 200ms;
}
@media (min-width: 768px) { .theme-lightbox-close { top: 1.5rem; right: 1.5rem; } }
.theme-lightbox-close:hover { opacity: 0.7; }

/* --------------------------------------------------------------------------
   20. WOOCOMMERCE ADD-TO-CART BUTTON OVERRIDE (Section 11.4.1)
   -------------------------------------------------------------------------- */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}

/* Card compact circular quick-add button — overrides the global rules above */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
	min-height: unset !important;
	padding: 0 !important;
	border-radius: 50% !important;
	width: 48px !important;
	height: 48px !important;
	background: var(--gradient-berry) !important;
}

/* Loading / added state cleanup (Section 31.8) */
.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;
}

/* --------------------------------------------------------------------------
   21. WOOCOMMERCE PRICE / GENERIC ELEMENTS
   -------------------------------------------------------------------------- */
.woocommerce-Price-amount { font-family: inherit; }
del .woocommerce-Price-amount { opacity: 0.5; text-decoration: line-through; }

/* --------------------------------------------------------------------------
   22. SHOP ARCHIVE / GENERIC PAGE / 404
   -------------------------------------------------------------------------- */
.theme-shop-archive, .theme-generic-page, .theme-404-page { padding-top: 4rem; padding-bottom: 5rem; }
.theme-shop-heading { margin-bottom: 3rem; }
.theme-shop-empty { color: var(--color-muted-foreground); padding: 3rem 0; }
.page-title { font-size: 1.875rem; text-transform: uppercase; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .page-title { font-size: 2.5rem; } }
.entry-content { line-height: 1.7; color: var(--color-muted-foreground); }
.entry-content > * + * { margin-top: 1rem; }

.theme-404-page { display: flex; min-height: 70vh; align-items: center; justify-content: center; }
.theme-404-inner { text-align: center; padding: 6rem 0; }
.theme-404-heading { font-size: 3rem; text-transform: uppercase; margin-top: 1.5rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .theme-404-heading { font-size: 4.5rem; } }
.theme-404-text { margin-bottom: 2rem; color: var(--color-muted-foreground); }

/* --------------------------------------------------------------------------
   23. CHECKOUT (WooCommerce Blocks) — Sections C–H
   -------------------------------------------------------------------------- */
body.woocommerce-checkout .theme-checkout-main {
	padding-top: 0;
}
body.woocommerce-checkout .theme-checkout-shell {
	padding-block: 0.5rem 4rem;
	padding-inline: 1.25rem;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}
@media (min-width: 640px) {
	body.woocommerce-checkout .theme-checkout-shell {
		padding-inline: 1.5rem;
	}
}
@media (min-width: 1024px) {
	body.woocommerce-checkout .theme-checkout-shell {
		padding-inline: 2.5rem;
	}
}
body.woocommerce-checkout .theme-checkout-main > .container-wide,
body.woocommerce-checkout .theme-checkout-shell,
body.woocommerce-checkout .theme-checkout-main .entry-content {
	max-width: none;
	width: 100%;
}
.theme-checkout-header {
	max-width: var(--checkout-max-width);
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
	margin-bottom: 0;
}
.checkout-continue-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	font-size: 14px;
	color: var(--color-muted-foreground);
	transition: opacity 200ms;
}
.checkout-continue-link:hover { opacity: 0.7; }
.theme-checkout-title {
	margin: 0;
	font-size: 2.25rem;
	text-transform: uppercase;
	overflow-wrap: break-word;
	word-break: break-word;
}
@media (min-width: 768px) {
	.theme-checkout-title { font-size: 3.75rem; }
}
.theme-checkout-intro {
	margin: 0.75rem 0 0;
	max-width: 42rem;
	color: var(--color-muted-foreground);
}
body.woocommerce-checkout .theme-checkout-main .entry-content,
.entry-content:has(.wc-block-checkout) {
	margin-top: 0;
	padding-top: 0;
}
body.woocommerce-checkout .theme-checkout-main .entry-content > .wc-block-checkout,
body.woocommerce-checkout .theme-checkout-main .entry-content > .wp-block-woocommerce-checkout,
.entry-content > .wc-block-checkout:first-child,
.entry-content > .wp-block-woocommerce-checkout:first-child {
	margin-top: 0;
}
body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout {
	display: block;
	max-width: var(--checkout-max-width);
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
	min-width: 0;
	margin-top: 0;
	padding-top: 0;
	font-family: var(--font-body);
	color: var(--color-ink);
}
body.woocommerce-checkout .wc-block-checkout.alignwide,
.entry-content .wc-block-checkout.alignwide {
	margin-top: 0;
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-main,
.entry-content .wc-block-checkout__main,
.entry-content .wc-block-components-main {
	margin-top: 0;
	padding-top: 0;
}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
	margin-top: 0;
	padding-top: 0;
}
body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices:empty,
.entry-content .wc-block-checkout > .wc-block-components-notices:empty {
	display: none;
	margin: 0;
	padding: 0;
}
body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
	max-width: var(--checkout-max-width);
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
	margin-top: 0;
	padding-top: 0;
	margin-bottom: var(--checkout-gap);
}
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
		display: grid !important;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: var(--checkout-gap);
		align-items: start;
		flex-direction: unset;
		flex-wrap: nowrap;
		margin: 0;
	}
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
		width: auto !important;
		max-width: 100%;
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
		box-sizing: border-box;
	}
	body.woocommerce-checkout .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar),
	.entry-content .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar) {
		display: grid;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: var(--checkout-gap);
		align-items: start;
	}
	body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices,
	.entry-content .wc-block-checkout > .wc-block-components-notices {
		grid-column: 1 / -1;
	}
}
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar {
	background: transparent;
	padding: 0;
	border-radius: 0;
	border: none;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	background-color: var(--color-surface-2);
	border-radius: var(--radius);
	padding: 2rem;
	border: 1px solid var(--color-line);
	box-sizing: border-box;
}
body.woocommerce-checkout .wc-block-checkout-empty,
.entry-content .wc-block-checkout-empty {
	margin-inline: auto;
	max-width: 36rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}
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,
.entry-content .wc-block-checkout .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-select select,
.entry-content .wc-block-checkout .wc-block-components-textarea textarea {
	font-family: var(--font-body);
	border-radius: 0.75rem;
}
/* Checkout form fields — label/value contrast follows surface (dark default, light when active). */
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-text-input:not(.is-active) label,
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-combobox:not(.is-active):not(:focus-within) .wc-block-components-combobox-control label,
.entry-content .wc-block-checkout .wc-block-checkout__main .wc-block-components-text-input:not(.is-active) label,
.entry-content .wc-block-checkout .wc-block-checkout__main .wc-block-components-combobox:not(.is-active):not(:focus-within) .wc-block-components-combobox-control label {
	color: var(--color-ink);
}
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-text-input.is-active label,
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-text-input:focus-within label,
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-combobox.is-active .wc-block-components-combobox-control label,
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-combobox:focus-within .wc-block-components-combobox-control label,
.entry-content .wc-block-checkout .wc-block-checkout__main .wc-block-components-text-input.is-active label,
.entry-content .wc-block-checkout .wc-block-checkout__main .wc-block-components-text-input:focus-within label,
.entry-content .wc-block-checkout .wc-block-checkout__main .wc-block-components-combobox.is-active .wc-block-components-combobox-control label,
.entry-content .wc-block-checkout .wc-block-checkout__main .wc-block-components-combobox:focus-within .wc-block-components-combobox-control label {
	color: var(--light-ink);
}
body.woocommerce-checkout .wc-block-checkout__main .wc-blocks-components-select .wc-blocks-components-select__label,
.entry-content .wc-block-checkout .wc-block-checkout__main .wc-blocks-components-select .wc-blocks-components-select__label {
	color: var(--light-ink);
}
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-text-input:not(.is-active) input,
.entry-content .wc-block-checkout .wc-block-checkout__main .wc-block-components-text-input:not(.is-active) input {
	color: var(--color-ink);
	background-color: var(--color-surface-1);
	border: 1px solid var(--color-line);
}
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-text-input.is-active input,
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-text-input:focus-within input,
.entry-content .wc-block-checkout .wc-block-checkout__main .wc-block-components-text-input.is-active input,
.entry-content .wc-block-checkout .wc-block-checkout__main .wc-block-components-text-input:focus-within input {
	color: var(--light-ink);
	background-color: var(--light-surface-2);
	border: 1px solid var(--light-line);
}
body.woocommerce-checkout .wc-block-checkout__main .wc-blocks-components-select select,
.entry-content .wc-block-checkout .wc-block-checkout__main .wc-blocks-components-select select {
	color: var(--light-ink);
	background-color: var(--light-surface-2);
	border: 1px solid var(--light-line);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
.entry-content .wc-block-checkout .wc-block-components-text-input input:focus,
.entry-content .wc-block-checkout .wc-block-components-select select:focus {
	outline: none;
	box-shadow: 0 0 0 1px var(--color-bone);
}
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-text-input.is-active input:focus,
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-text-input:focus-within input:focus,
body.woocommerce-checkout .wc-block-checkout__main .wc-blocks-components-select select:focus,
.entry-content .wc-block-checkout .wc-block-checkout__main .wc-block-components-text-input.is-active input:focus,
.entry-content .wc-block-checkout .wc-block-checkout__main .wc-block-components-text-input:focus-within input:focus,
.entry-content .wc-block-checkout .wc-block-checkout__main .wc-blocks-components-select select:focus {
	box-shadow: 0 0 0 1px var(--light-bone);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: var(--gradient-berry) !important;
	color: var(--color-background) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-label) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	font-weight: var(--btn-font-weight) !important;
	border: none !important;
}
body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-components-notice-banner {
	border-radius: 0.75rem;
	font-family: var(--font-body);
}
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-top: 2.5rem;
	padding-bottom: 4rem;
}

/* --------------------------------------------------------------------------
   24. THANK YOU PAGE — Section 22.8
   -------------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
.theme-thankyou-content { max-width: 42rem; margin: 0 auto; text-align: center; padding: 3rem 0; }
.theme-thankyou-icon {
	width: 80px; height: 80px;
	margin: 0 auto 1.5rem;
	border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	background: var(--gradient-berry);
	color: var(--color-background);
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-size: 1.875rem;
	text-transform: uppercase;
	padding: 0 0 1rem 0;
	text-align: center;
}
body.theme-thankyou-page .woocommerce-order-overview {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	padding: 1.5rem 0;
	border-top: 1px solid var(--color-line);
	border-bottom: 1px solid var(--color-line);
	margin: 1.5rem 0;
}
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	margin-top: 1.5rem;
}
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-line);
	text-align: left;
	overflow-wrap: break-word;
}
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;
	text-align: left;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 30rem;
	margin: 0 auto;
	overflow-wrap: break-word;
	border: 1px solid var(--color-line);
	border-radius: 0.75rem;
	padding: 1.25rem;
	background-color: var(--color-surface-2);
}
.theme-thankyou-back-btn { margin-top: 2rem; }
