/* =========================================================
   PIESI Clothing — theme.css
   Design system tokens are emitted live via wp_add_inline_style
   (see functions.php piesi_build_inline_root_css) for every
   Customizer-editable color + --logo-height. Static tokens below.
   ========================================================= */

:root {
	--radius: 0.25rem;
	--font-display: 'Space Grotesk', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, sans-serif;
	--font-mono: 'Inter', system-ui, sans-serif;

	--shadow-soft: 0 4px 20px -4px rgba(0, 0, 0, 0.08);
	--shadow-elevated: 0 12px 40px -12px rgba(0, 0, 0, 0.22);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

	--header-height: 96px;

	--btn-radius: 0px;
	--btn-height: 3.25rem;
	--btn-padding: 1rem 2rem;
	--btn-font-size: 11px;
	--btn-font-weight: 500;
	--btn-letter-spacing: 0.28em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0.65rem;

	--card-radius: 0.5rem;
	--checkout-gap: 3rem;
}

/* =========================================================
   Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; margin: 0; padding: 0; }
body {
	background-color: var(--background);
	color: var(--foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	letter-spacing: 0.005em;
	font-weight: 600;
	font-size: inherit;
	margin: 0;
	line-height: 1.1;
}

/* Global cover-image rule — see the exclusion completeness note (Section 15.1) */
img:not(.cover-img):not(.product-card-img):not(.gallery-img) {
	max-width: 100%;
	height: auto;
}
.cover-img, .product-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.container-wide {
	width: 100%;
	max-width: 84rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide { padding: 0 2rem; }
}

.gallery-label {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	font-weight: 500;
	color: color-mix(in srgb, var(--foreground) 70%, transparent);
}

.scroll-mt { scroll-margin-top: 6rem; }

.link-underline { position: relative; display: inline-block; }
.link-underline::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0; width: 100%; height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: var(--btn-radius);
	min-height: var(--btn-height);
	padding: var(--btn-padding);
	font-family: var(--font-mono);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
	border: none;
	cursor: pointer;
}
.btn-primary {
	background-color: var(--primary);
	color: var(--primary-foreground);
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
	background-color: transparent;
	color: var(--foreground);
	border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--foreground); }
.btn-hero-primary {
	background-color: var(--accent);
	color: var(--accent-foreground);
}
.btn-hero-primary:hover { opacity: 0.9; }
.btn-hero-outline {
	background-color: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.8);
}
.btn-hero-outline:hover { background-color: rgba(255, 255, 255, 0.1); }

/* =========================================================
   Scroll-reveal animations (Section 2.1)
   ========================================================= */
.reveal-item { opacity: 0; }
.reveal-item[data-reveal="up"] { transform: translateY(24px); transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth); }
.reveal-item[data-reveal="fade"] { transition: opacity 0.8s var(--transition-smooth); }
.reveal-item[data-reveal="scale"] { transform: translateY(24px) scale(1.02); transition: opacity 0.9s var(--transition-smooth), transform 0.9s var(--transition-smooth); }
.reveal-item.is-visible {
	opacity: 1 !important;
	transform: translateY(0) scale(1) !important;
}
/* Customizer preview + no-JS fallback: never hide content in the editor */
body.is-customizer .reveal-item,
html.no-js .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
	.reveal-item { transition: none !important; opacity: 1 !important; transform: none !important; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes kenburns {
	0% { transform: scale(1) translate3d(0,0,0); }
	50% { transform: scale(1.08) translate3d(-1%, -0.5%, 0); }
	100% { transform: scale(1) translate3d(0,0,0); }
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.animate-fade-in { animation: fadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.6s var(--transition-smooth) forwards; }
@media (prefers-reduced-motion: reduce) {
	.animate-kenburns { animation: none !important; }
	.marquee-track { animation: none !important; }
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	background-color: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-solid,
.site-header.is-scrolled {
	background-color: color-mix(in srgb, var(--background) 90%, transparent);
	backdrop-filter: blur(8px);
	border-bottom-color: color-mix(in srgb, var(--border) 60%, transparent);
}
body.theme-no-hero .site-header { position: sticky; }

.site-nav { display: flex; align-items: center; justify-content: space-between; height: 5rem; gap: 1rem; overflow: hidden; }
@media (min-width: 768px) { .site-nav { height: 6rem; } }

.site-logo { display: flex; align-items: center; flex-shrink: 0; line-height: 1; max-height: 100%; overflow: hidden; }
.site-logo-img {
	height: 3rem; /* h-12 mobile */
	max-height: 3.5rem;
	width: auto !important;
	display: block;
	object-fit: contain;
	transition: filter 0.3s ease;
}
@media (min-width: 768px) {
	.site-logo-img { height: var(--logo-height, 56px) !important; max-height: 3.5rem; }
}
.site-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--foreground); }
.site-header:not(.is-solid):not(.is-scrolled) .site-logo-img { filter: brightness(0) invert(1); }
.site-header:not(.is-solid):not(.is-scrolled) .site-logo-text { color: #fff; }
.footer-logo.site-logo-img { height: 3.5rem !important; max-height: 3.5rem; }

.site-nav-right { display: flex; align-items: center; gap: 1.5rem; }
@media (min-width: 1024px) { .site-nav-right { gap: 2.5rem; } }

.site-nav-links { display: none; }
@media (min-width: 1024px) {
	.site-nav-links { display: flex; align-items: center; gap: 2rem; }
}
.theme-nav-list { display: flex; align-items: center; gap: 2rem; }
.theme-nav-link, .theme-nav-list a {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--foreground) 80%, transparent);
	transition: color 0.2s ease;
}
.site-header:not(.is-solid):not(.is-scrolled) .theme-nav-link,
.site-header:not(.is-solid):not(.is-scrolled) .theme-nav-list a { color: rgba(255,255,255,0.85); }
.theme-nav-link:hover, .theme-nav-list a:hover { color: var(--accent); }
.site-header:not(.is-solid):not(.is-scrolled) .theme-nav-link:hover,
.site-header:not(.is-solid):not(.is-scrolled) .theme-nav-list a:hover { color: #fff; }
.theme-nav-link.is-active, .theme-nav-list a.is-active { color: var(--accent); }

.cart-toggle { position: relative; padding: 0.375rem; color: color-mix(in srgb, var(--foreground) 80%, transparent); }
.site-header:not(.is-solid):not(.is-scrolled) .cart-toggle { color: #fff; }
.cart-toggle:hover { color: var(--accent); }
.theme-cart-count {
	position: absolute; top: -2px; right: -2px;
	min-width: 18px; height: 18px; padding: 0 4px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 999px;
	background-color: var(--accent); color: var(--accent-foreground);
	font-size: 10px; font-weight: 500; line-height: 1;
	font-family: var(--font-body);
}
.theme-cart-count:empty { display: none; }

.mobile-menu-toggle { display: block; padding: 0.5rem; color: var(--foreground); }
.site-header:not(.is-solid):not(.is-scrolled) .mobile-menu-toggle { color: #fff; }
.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.mobile-menu-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 1024px) { .mobile-menu-toggle { display: none; } }

.mobile-menu { display: none; border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); padding: 1rem 0; }
.mobile-menu.is-open { display: block; }
.theme-nav-list-mobile { display: flex; flex-direction: column; gap: 1rem; }
.theme-nav-list-mobile a { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 80%, transparent); padding: 0.5rem 0; display: block; }

/* =========================================================
   Hero
   ========================================================= */
.hero-section {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 640px;
	overflow: hidden;
	background-color: var(--background);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-slide { opacity: 0; transition: opacity 1.4s var(--transition-smooth); }
.hero-slide.is-active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--primary) 70%, transparent); z-index: 10; pointer-events: none; }
.hero-gradient {
	position: absolute; inset: 0; z-index: 10; pointer-events: none;
	background: linear-gradient(to bottom,
		color-mix(in srgb, var(--primary) 50%, transparent),
		color-mix(in srgb, var(--primary) 30%, transparent),
		color-mix(in srgb, var(--primary) 80%, transparent));
}
.hero-content {
	position: relative; z-index: 20; height: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; color: #fff;
	max-width: 64rem; margin: 0 auto; padding: 0 0.5rem;
}
.hero-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; display: block; }
@media (min-width: 768px) { .hero-eyebrow { font-size: 12px; } }
.hero-heading {
	font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
	color: #fff; letter-spacing: -0.01em; line-height: 1.02;
	text-shadow: 0 2px 24px rgba(0,0,0,0.45);
	font-size: clamp(2.5rem, 7vw, 5.5rem);
}
.hero-subtext { margin-top: 2rem; max-width: 42rem; font-size: 1rem; color: rgba(255,255,255,0.85); line-height: 1.6; }
@media (min-width: 768px) { .hero-subtext { font-size: 1.125rem; } }
.hero-cta-row { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .hero-cta-row { flex-direction: row; } }
.hero-cta-row .btn { width: 100%; }
@media (min-width: 640px) { .hero-cta-row .btn { width: auto; } }

/* =========================================================
   About section
   ========================================================= */
.about-section { background-color: var(--background); }
.about-inner { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .about-inner { padding-top: 8rem; padding-bottom: 8rem; } }
.about-content { max-width: 48rem; margin: 0 auto; text-align: center; }
.about-content .gallery-label { display: block; margin-bottom: 1.5rem; color: var(--accent); }
.about-section .section-heading {
	font-size: 1.875rem; line-height: 1.1; text-transform: uppercase; letter-spacing: -0.01em;
	color: var(--foreground); margin-bottom: 2rem; font-weight: 600;
}
@media (min-width: 768px) { .about-section .section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .about-section .section-heading { font-size: 2.75rem; } }
.about-paragraph { color: color-mix(in srgb, var(--foreground) 75%, transparent); line-height: 1.7; font-size: 1rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .about-paragraph { font-size: 1.125rem; } }
.about-paragraph-small { color: color-mix(in srgb, var(--foreground) 60%, transparent); font-size: 0.875rem; margin-bottom: 2.5rem; }
.about-cta {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500;
	color: var(--accent);
}
.about-cta svg { transition: transform 0.3s ease; }
.about-cta:hover svg { transform: translateY(2px); }

/* =========================================================
   Gallery interlude — full-bleed strip (w-screen parity)
   ========================================================= */
.gallery-interlude {
	background-color: var(--background);
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	overflow: hidden;
}
.gallery-grid {
	display: grid; gap: 0;
	grid-template-columns: 1fr;
	grid-template-rows: auto;
}
@media (min-width: 640px) {
	.gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 320px 320px; }
}
@media (min-width: 1024px) {
	.gallery-grid { grid-template-columns: repeat(5, 1fr); grid-template-rows: clamp(460px, 54vw, 620px); }
}
.gallery-item {
	position: relative; overflow: hidden; cursor: zoom-in;
	aspect-ratio: 4 / 5; height: 100%; width: 100%;
	background-color: #000;
	display: block;
	border: none; padding: 0;
}
@media (min-width: 640px) { .gallery-item { aspect-ratio: auto; } }
.gallery-item-first { display: none; }
@media (min-width: 1024px) { .gallery-item-first { display: block; } }
.gallery-img {
	width: 100%; height: 100%; max-width: none;
	object-fit: cover; object-position: center;
	transition: transform 0.9s ease;
}
.gallery-item:hover .gallery-img { transform: scale(1.03); }
.gallery-item:focus-visible { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent); }

.theme-lightbox {
	position: fixed; inset: 0; z-index: 100;
	background-color: color-mix(in srgb, var(--primary) 90%, transparent);
	backdrop-filter: blur(4px);
	display: none;
	align-items: center; justify-content: center;
	padding: 1rem;
}
@media (min-width: 640px) { .theme-lightbox { padding: 2.5rem; } }
.theme-lightbox.is-open { display: flex; }
.theme-lightbox-img { max-width: 100%; max-height: 100%; width: auto; height: auto; position: static; object-fit: contain; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
.theme-lightbox-close, .theme-lightbox-prev, .theme-lightbox-next {
	position: absolute; color: rgba(255,255,255,0.8); padding: 0.75rem; border-radius: 999px;
	transition: color 0.2s ease;
}
.theme-lightbox-close:hover, .theme-lightbox-prev:hover, .theme-lightbox-next:hover { color: #fff; }
.theme-lightbox-close { top: 1rem; right: 1rem; }
@media (min-width: 640px) { .theme-lightbox-close { top: 1.5rem; right: 1.5rem; } }
.theme-lightbox-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
@media (min-width: 640px) { .theme-lightbox-prev { left: 1.5rem; } }
.theme-lightbox-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }
@media (min-width: 640px) { .theme-lightbox-next { right: 1.5rem; } }

/* =========================================================
   Services / Four Pillars
   ========================================================= */
.services-section { background-color: var(--primary); color: var(--primary-foreground); overflow-x: clip; }
.services-header { padding-top: 6rem; padding-bottom: 3rem; text-align: center; max-width: 42rem; margin: 0 auto; }
@media (min-width: 768px) { .services-header { padding-top: 8rem; padding-bottom: 4rem; } }
.services-header .gallery-label { display: block; margin-bottom: 1.25rem; color: rgba(255,255,255,0.7); }
.services-section .section-heading {
	font-size: 1.875rem; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.05;
	margin-bottom: 1.25rem; color: var(--primary-foreground); font-weight: 600;
}
@media (min-width: 768px) { .services-section .section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .services-section .section-heading { font-size: 3.75rem; } }
.services-subtext { color: color-mix(in srgb, var(--primary-foreground) 75%, transparent); line-height: 1.7; }

.pillars-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars-grid { grid-template-columns: repeat(4, 1fr); } }
.pillar-item {
	position: relative; overflow: hidden; background-color: var(--muted);
	aspect-ratio: 4 / 5; transition: background-color 0.5s ease;
}
@media (min-width: 640px) and (max-width: 1023px) { .pillar-item { aspect-ratio: 3 / 4; } }
.pillar-img { transition: transform 0.5s ease, filter 0.5s ease; }
.pillar-item:hover .pillar-img { transform: scale(1.05); filter: brightness(1.1) contrast(1.05); }
.pillar-overlay {
	position: absolute; inset: 0;
	background-color: color-mix(in srgb, var(--primary) 70%, transparent);
	transition: background-color 0.5s ease;
}
.pillar-item:hover .pillar-overlay { background-color: color-mix(in srgb, var(--primary) 85%, transparent); }
.pillar-text {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; padding: 2.5rem 1.5rem;
}
.pillar-title { font-size: 1.5rem; color: #fff; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: -0.01em; transition: transform 0.5s ease; font-weight: 600; }
@media (min-width: 768px) { .pillar-title { font-size: 1.875rem; } }
.pillar-item:hover .pillar-title { transform: translateY(-4px); }
.pillar-blurb { font-size: 0.875rem; color: rgba(255,255,255,0.85); line-height: 1.6; max-width: 28ch; transition: color 0.5s ease, transform 0.5s ease; }
.pillar-item:hover .pillar-blurb { color: #fff; transform: translateY(-2px); }

/* =========================================================
   Shop section
   ========================================================= */
.shop-section { background-color: var(--card); }
.shop-section > .container-wide { padding-top: 5rem; padding-bottom: 7rem; }
@media (min-width: 768px) { .shop-section > .container-wide { padding-top: 7rem; padding-bottom: 7rem; } }
.shop-header { text-align: center; margin-bottom: 3rem; }
@media (min-width: 768px) { .shop-header { margin-bottom: 4rem; } }
.shop-header .gallery-label { display: block; margin-bottom: 1.25rem; color: var(--accent); }
.shop-heading { font-size: 1.875rem; line-height: 1.2; text-transform: uppercase; letter-spacing: -0.01em; font-weight: 600; }
@media (min-width: 768px) { .shop-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .shop-heading { font-size: 3.75rem; } }

.shop-section .theme-shop-cat-nav { margin-bottom: 2.5rem; gap: 0.5rem; }
@media (min-width: 768px) { .shop-section .theme-shop-cat-nav { margin-bottom: 3.5rem; gap: 0.75rem; } }
.theme-shop-empty[hidden] { display: none; }
.theme-product-card-wrap.is-filter-hidden { display: none !important; }

.theme-drop-kicker { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 60%, transparent); margin-bottom: 1rem; }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; min-width: 0; }
@media (min-width: 768px) { .theme-product-layout { gap: 3.5rem; } }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.theme-product-gallery { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; max-width: 100%; }
@media (min-width: 768px) { .theme-product-gallery { gap: 1.75rem; } }
.theme-product-image-wrap { position: relative; width: 100%; aspect-ratio: 4 / 5; background-color: var(--muted); overflow: hidden; border: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.theme-product-image-wrap.theme-product-image-natural {
	aspect-ratio: auto;
	height: auto;
	background-color: var(--muted);
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.theme-product-natural-img {
	position: static;
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}
.theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-info { position: sticky; top: 7rem; align-self: start; } }
.theme-product-category { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 60%, transparent); margin-bottom: 1rem; }
.theme-product-category a { color: inherit; }
.product-title {
	font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em;
	line-height: 1.05; color: var(--foreground); margin-bottom: 0.75rem; font-size: 1.875rem;
}
@media (min-width: 768px) { .product-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .product-title { font-size: 3rem; } }
.theme-product-price { font-family: var(--font-mono); font-size: 1rem; color: color-mix(in srgb, var(--foreground) 90%, transparent); margin-bottom: 1.75rem; }
@media (min-width: 768px) { .theme-product-price { font-size: 1.125rem; } }
.theme-product-price del { opacity: 0.5; margin-right: 0.5rem; }
.theme-stock-badge { display: inline-flex; align-items: center; padding: 0.35rem 0.75rem; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.theme-stock-out { background-color: var(--foreground); color: var(--background); }
.theme-product-desc { color: color-mix(in srgb, var(--foreground) 75%, transparent); line-height: 1.7; margin-bottom: 2rem; font-size: 1rem; overflow-wrap: break-word; word-break: break-word; }
@media (min-width: 768px) { .theme-product-desc { font-size: 1.125rem; } }

.theme-product-details-block { margin-top: 2rem; }
.theme-details-heading { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; font-weight: 600; }
.theme-product-details { margin-bottom: 2.5rem; border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.theme-product-info .theme-product-details {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}
.theme-product-info .theme-product-details li::marker { content: none; }
.theme-price-currency { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0.12em; }
.theme-product-details li {
	padding: 0.75rem 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
	color: color-mix(in srgb, var(--foreground) 70%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.theme-contact-link {
	margin-top: 1.25rem; display: block; width: 100%; text-align: center;
	font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
	color: color-mix(in srgb, var(--foreground) 70%, transparent);
	text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.theme-contact-link:hover { color: var(--foreground); text-decoration-color: var(--foreground); }

/* Size / quantity blocks */
.theme-product-purchase { margin-bottom: 2rem; width: 100%; }
.theme-attr-row { margin-bottom: 2rem; }
.theme-attr-label-row {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	width: 100%;
	margin-bottom: 0.75rem;
}
.theme-attr-label-text {
	font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
	color: color-mix(in srgb, var(--foreground) 80%, transparent);
}
.theme-attr-selected-value {
	font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
	color: color-mix(in srgb, var(--foreground) 55%, transparent);
}
.theme-attr-value select[name^="attribute_"] {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.theme-size-row { margin-bottom: 2rem; }
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-pill {
	min-width: 3rem; padding: 0.625rem 1rem; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
	border: 1px solid var(--border); background: transparent; color: color-mix(in srgb, var(--foreground) 80%, transparent);
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.theme-attr-pill:hover { border-color: var(--foreground); }
.theme-attr-pill.is-selected { background-color: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

.theme-qty-block { margin-bottom: 2rem; }
.theme-product-purchase .theme-qty-block { margin-bottom: 2rem; }
.theme-product-purchase .theme-qty-label {
	display: block;
	margin-bottom: 0.75rem;
}
.theme-qty-label {
	display: block; margin-bottom: 0.75rem;
	font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
	color: color-mix(in srgb, var(--foreground) 80%, transparent);
}
.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--border); }
.theme-qty-minus, .theme-qty-plus { padding: 0.75rem; color: color-mix(in srgb, var(--foreground) 80%, transparent); transition: color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { color: var(--foreground); }
.theme-qty-input {
	min-width: 2.5rem; width: 2.5rem; text-align: center; font-family: var(--font-mono); font-size: 0.875rem; color: var(--foreground);
	border: none; background: transparent; -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-variations-form .single_add_to_cart_button,
.theme-product-info .theme-product-purchase .single_add_to_cart_button,
.theme-product-info > .single_add_to_cart_button,
.theme-atc-full {
	width: 100%;
	max-width: 100%;
	margin-bottom: 0.5rem;
}

.theme-product-info .woocommerce-variation-add-to-cart,
.theme-product-info .single_variation_wrap.theme-product-purchase {
	display: block;
	width: 100%;
}

.theme-product-info .woocommerce-variation-add-to-cart {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.theme-product-info .woocommerce-variation-add-to-cart .theme-qty-block,
.theme-product-info .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.theme-product-info .theme-product-purchase .single_add_to_cart_button {
	width: 100%;
	max-width: 100%;
	flex: none;
	min-width: 0;
}

.theme-product-info .theme-product-purchase .single_add_to_cart_button,
.theme-product-info .theme-product-purchase .theme-atc-full {
	display: flex !important;
	width: 100% !important;
	max-width: 100% !important;
}

.theme-product-info .single_add_to_cart_button.button:disabled,
.theme-product-info .single_add_to_cart_button.button.disabled,
.theme-product-info .add_to_cart_button.button:disabled,
.theme-product-info .add_to_cart_button.button.disabled {
	opacity: 0.55 !important;
	background-color: var(--primary) !important;
	color: var(--primary-foreground) !important;
}

.theme-product-info .single_add_to_cart_button.button:disabled:hover,
.theme-product-info .single_add_to_cart_button.button.disabled:hover,
.theme-product-info .add_to_cart_button.button:disabled:hover,
.theme-product-info .add_to_cart_button.button.disabled:hover {
	opacity: 0.55 !important;
	background-color: var(--primary) !important;
}

.single-product .theme-add-to-cart-area,
.theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}
.single-product .single_add_to_cart_button,
.theme-add-to-cart-area .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
}

/* Variations form — hide duplicate WC price/availability */
.single_variation_wrap .woocommerce-variation-price,
.single_variation_wrap .woocommerce-variation-availability { display: none !important; }

/* Legacy variations table (if any) */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td,
.theme-variations-form .variations tbody,
.theme-variations-form .variations tbody tr,
.theme-variations-form .variations tbody td {
	display: block;
	width: 100%;
}
.theme-variations-form .variations tbody td.label { padding-bottom: 0.5rem; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 80%, transparent); }
.theme-variations-form .variations tbody td.label label {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
}
.theme-variations-form .variations tbody td.value { padding-top: 0; margin-bottom: 2rem; }
.theme-variations-form .variations,
.theme-variations-form .variations.theme-attr-rows { width: 100%; border: none; margin: 0; display: block; }
.theme-variations-form .variations.theme-attr-rows .theme-attr-row:last-child { margin-bottom: 0; }
.theme-attr-select-hidden { display: none !important; }
.theme-variations-form .variations select { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* 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,
button.single_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-mono) !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;
}
.single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }

/* =========================================================
   Related products / breadcrumb / single product page
   ========================================================= */
.theme-single-product .theme-product-wrap { padding-top: 1rem; padding-bottom: 6rem; }
.theme-back-row { padding-top: 1.5rem; }
.theme-back-link {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
	color: color-mix(in srgb, var(--foreground) 60%, transparent);
	transition: color 0.2s ease;
}
.theme-back-link:hover { color: var(--foreground); }
.theme-breadcrumb { padding: 1.5rem 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 60%, transparent); }
.theme-breadcrumb a { transition: color 0.2s ease; }
.theme-breadcrumb a:hover { color: var(--foreground); }
.theme-breadcrumb-sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb-current { color: var(--foreground); }

.related-products-section { padding: 5rem 0; border-top: 1px solid var(--border); }
.theme-related-heading { text-align: center; margin-bottom: 3rem; }
.theme-related-kicker { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: color-mix(in srgb, var(--foreground) 60%, transparent); margin-bottom: 0.5rem; font-weight: 400; }
.theme-related-title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; }
@media (min-width: 768px) { .theme-related-title { font-size: 3rem; } }
.theme-related-grid { gap: 1.5rem; }
@media (min-width: 1024px) { .theme-related-grid { gap: 2rem; } }

/* =========================================================
   Product grid / cards (Section 31.3 Pattern A, 31.9, 31.13)
   ========================================================= */
.theme-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem 1.5rem;
	align-items: stretch;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; } }
@media (min-width: 768px) { .theme-product-grid { gap: 3.5rem 2rem; } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 2rem; } }
.theme-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .theme-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.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-card-add-to-cart { pointer-events: auto; }

.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 4 / 5;
	background-color: var(--card);
	overflow: hidden;
	margin-bottom: 1.25rem;
}
.theme-card-badge {
	position: absolute; top: 1rem; left: 1rem; z-index: 3;
	padding: 0.25rem 0.75rem; font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
	background-color: color-mix(in srgb, var(--background) 90%, transparent); color: var(--foreground);
}
.theme-card-add-to-cart {
	position: absolute; z-index: 3;
	left: 1rem; right: 1rem; bottom: 1rem;
	padding: 0.75rem 1rem;
	background-color: var(--primary); color: var(--primary-foreground);
	font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
	text-align: center;
	opacity: 0; transform: translateY(8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.theme-product-card:hover .theme-card-add-to-cart,
.theme-product-card:focus-within .theme-card-add-to-cart { opacity: 1; transform: translateY(0); }
.theme-card-add-to-cart.disabled { pointer-events: none; opacity: 0.4 !important; }

.theme-product-card__info { flex: 1; display: flex; flex-direction: column; gap: 0.35rem; padding: 0 0.25rem; }
.theme-card-category { font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: color-mix(in srgb, var(--foreground) 60%, transparent); }
.theme-card-title {
	font-family: var(--font-display); font-weight: 400; font-size: 1.125rem; line-height: 1.3; color: var(--foreground);
	transition: color 0.3s ease;
}
@media (min-width: 768px) { .theme-card-title { font-size: 1.25rem; } }
.theme-product-card:hover .theme-card-title { color: var(--primary); }
.theme-card-price { font-size: 0.875rem; color: color-mix(in srgb, var(--foreground) 80%, transparent); }

.theme-product-card .theme-product-card__image-wrapper:hover .product-card-img,
.theme-product-card:hover .product-card-img { transform: scale(1.03); }
.product-card-img { transition: transform 0.8s var(--transition-smooth); }

.theme-no-products, .theme-shop-archive .woocommerce-info {
	text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
	color: color-mix(in srgb, var(--foreground) 60%, transparent); padding: 3rem 0;
}

/* Shop archive */
.theme-shop-archive-inner { padding-top: 6rem; padding-bottom: 6rem; }
.theme-shop-header { text-align: center; margin-bottom: 2rem; }
.shop-heading { font-weight: 600; }
.theme-shop-cat-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 3rem; }
.theme-cat-pill {
	padding: 0.6rem 1.25rem; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
	border: 1px solid var(--border); color: color-mix(in srgb, var(--foreground) 75%, transparent); background: transparent;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
	cursor: pointer;
}
.theme-cat-pill:hover { border-color: var(--foreground); color: var(--foreground); }
.theme-cat-pill.is-active { background-color: var(--accent); color: var(--accent-foreground); border-color: var(--accent); }

/* =========================================================
   Follow section (marquee)
   ========================================================= */
.follow-section { background-color: var(--background); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.marquee-strip { position: relative; width: 100%; overflow: hidden; border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); background-color: var(--primary); color: var(--primary-foreground); padding: 1rem 0; }
.marquee-track { display: flex; width: max-content; white-space: nowrap; animation: marquee 32s linear infinite; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-word { display: flex; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; }
@media (min-width: 768px) { .marquee-word { font-size: 12px; } }
.marquee-word span:first-child { padding: 0 2rem; }
.marquee-diamond { color: var(--accent); }

.follow-inner { padding-top: 5rem; padding-bottom: 5rem; max-width: 48rem; margin: 0 auto; text-align: center; }
@media (min-width: 768px) { .follow-inner { padding-top: 6rem; padding-bottom: 6rem; } }
.follow-inner .gallery-label { display: block; margin-bottom: 1.5rem; color: var(--accent); }
.follow-heading { font-size: 1.875rem; line-height: 1.05; margin-bottom: 1.5rem; color: var(--primary); text-transform: uppercase; letter-spacing: -0.01em; font-weight: 600; }
@media (min-width: 768px) { .follow-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .follow-heading { font-size: 3.75rem; } }
.follow-paragraph { color: color-mix(in srgb, var(--foreground) 70%, transparent); line-height: 1.7; max-width: 42rem; margin: 0 auto 2.5rem; }
.follow-social-row { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .follow-social-row { display: flex; flex-wrap: wrap; justify-content: center; grid-template-columns: none; } }
.follow-social-link {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.75rem 1.25rem; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
	color: var(--primary); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.follow-social-link:hover { border-color: var(--accent); background-color: var(--accent); color: #fff; }
.follow-social-link svg { opacity: 0.7; }

/* =========================================================
   Contact CTA band
   ========================================================= */
.contact-cta-section {
	position: relative; overflow: hidden; min-height: 640px;
	display: flex; align-items: center; justify-content: center;
}
@media (min-width: 768px) { .contact-cta-section { min-height: 680px; } }
@media (min-width: 1024px) { .contact-cta-section { min-height: 88vh; } }
.contact-bg-img { animation: kenburns 24s ease-in-out infinite; will-change: transform; }
.contact-cta-overlay { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--primary) 75%, transparent); }
.contact-cta-gradient {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom,
		color-mix(in srgb, var(--primary) 60%, transparent),
		color-mix(in srgb, var(--primary) 40%, transparent),
		color-mix(in srgb, var(--primary) 80%, transparent));
}
.contact-cta-inner { position: relative; z-index: 10; width: 100%; max-width: 42rem; margin: 0 auto; text-align: center; padding: 6rem 1.5rem; color: #fff; }
@media (min-width: 768px) { .contact-cta-inner { padding: 7rem 2.5rem; } }
.contact-cta-label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 500; margin-bottom: 1.75rem; color: rgba(255,255,255,0.85); }
.contact-cta-heading { font-size: 2.25rem; line-height: 1.05; margin-bottom: 2rem; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.35); text-transform: uppercase; letter-spacing: -0.01em; font-weight: 600; }
@media (min-width: 768px) { .contact-cta-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .contact-cta-heading { font-size: 4.5rem; } }
.contact-cta-paragraph { color: rgba(255,255,255,0.85); line-height: 1.7; max-width: 36rem; margin: 0 auto 2.25rem; }
.contact-cta-details { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2.5rem; color: rgba(255,255,255,0.95); }
@media (min-width: 640px) { .contact-cta-details { flex-direction: row; gap: 2rem; } }
.contact-cta-detail-link { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); text-underline-offset: 4px; transition: text-decoration-color 0.2s ease; word-break: break-all; }
.contact-cta-detail-link:hover { text-decoration-color: #fff; }
.contact-cta-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .contact-cta-actions { flex-direction: row; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--border); background-color: var(--card); }
.footer-inner { padding-top: 3.5rem; padding-bottom: 0.75rem; }
@media (min-width: 1024px) { .footer-inner { padding-top: 4rem; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem 3rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }
.footer-col-brand { text-align: center; }
@media (min-width: 640px) { .footer-col-brand { text-align: left; } }
.footer-logo { margin: 0 auto; }
@media (min-width: 640px) { .footer-logo { margin: 0; } }
.footer-description { margin-top: 1rem; font-size: 0.875rem; color: color-mix(in srgb, var(--foreground) 70%, transparent); line-height: 1.6; max-width: 24rem; margin-left: auto; margin-right: auto; }
@media (min-width: 640px) { .footer-description { margin-left: 0; margin-right: 0; } }
.footer-col-heading { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.24em; color: color-mix(in srgb, var(--foreground) 60%, transparent); margin-bottom: 1.25rem; font-weight: 400; }
.footer-link-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-anchor-link, .footer-link-list button {
	font-size: 0.875rem; color: color-mix(in srgb, var(--foreground) 80%, transparent); transition: color 0.2s ease;
	display: inline-flex; align-items: center; gap: 0.5rem; text-align: left;
}
.footer-anchor-link:hover, .footer-link-list button:hover { color: var(--accent); }
.footer-mailto { word-break: break-all; }
.footer-bottom {
	margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
	display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem; text-align: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; text-align: left; } }
.footer-copyright { font-size: 12px; color: color-mix(in srgb, var(--foreground) 60%, transparent); }
.footer-builtby { font-size: 12px; }
.footer-builtby span { color: color-mix(in srgb, var(--foreground) 50%, transparent); }
.footer-builtby a { font-weight: 600; color: color-mix(in srgb, var(--foreground) 85%, transparent); transition: color 0.2s ease; }
.footer-builtby a:hover { color: var(--accent); }

/* =========================================================
   Cart drawer + overlay
   ========================================================= */
#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 60;
	background-color: color-mix(in srgb, var(--foreground) 20%, transparent);
	opacity: 0; visibility: hidden;
	transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; visibility: visible; }

#theme-cart-drawer {
	position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 28rem;
	background-color: var(--background); z-index: 61;
	box-shadow: var(--shadow-elevated);
	display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--border); }
.theme-cart-drawer-title { font-size: 1.125rem; font-weight: 700; }
.theme-cart-close { padding: 0.25rem; opacity: 0.7; transition: opacity 0.2s ease; }
.theme-cart-close:hover { opacity: 1; }

.theme-cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1rem; }
.theme-cart-empty svg { color: color-mix(in srgb, var(--foreground) 45%, transparent); }
.theme-cart-empty p { color: color-mix(in srgb, var(--foreground) 55%, transparent); }

.theme-cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item-thumb { width: 5rem; height: 6rem; background-color: var(--secondary); overflow: hidden; flex-shrink: 0; position: relative; }
.theme-cart-item-thumb img,
#theme-cart-drawer .theme-cart-item-thumb img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	display: block;
}
.theme-cart-item-info { flex: 1; min-width: 0; }
.theme-cart-item-name { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.2s ease; }
.theme-cart-item-name:hover { opacity: 0.7; }
.theme-cart-item-price { font-size: 0.875rem; color: color-mix(in srgb, var(--foreground) 60%, transparent); margin-top: 0.15rem; }
.theme-cart-item-variation { font-size: 0.75rem; color: color-mix(in srgb, var(--foreground) 55%, transparent); margin-top: 0.25rem; }
.theme-cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-item-controls .theme-qty-minus, .theme-cart-item-controls .theme-qty-plus { padding: 0.2rem; }
.theme-cart-item-controls .theme-qty-minus:hover, .theme-cart-item-controls .theme-qty-plus:hover { background-color: var(--secondary); }
.theme-cart-item-qty { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-item-remove { margin-left: auto; font-size: 0.875rem; color: color-mix(in srgb, var(--foreground) 55%, transparent); transition: color 0.2s ease; }
.theme-cart-item-remove:hover { color: var(--foreground); }

.theme-cart-drawer-footer { padding: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-subtotal-value { font-weight: 500; }
.theme-cart-shipping-note { font-size: 0.875rem; color: color-mix(in srgb, var(--foreground) 60%, transparent); }
.theme-cart-checkout-btn { width: 100%; }
.theme-cart-empty-btn { width: 100%; }

/* =========================================================
   Contact modal
   ========================================================= */
.theme-modal-overlay {
	position: fixed; inset: 0; z-index: 70;
	background-color: rgba(0,0,0,0.8);
	opacity: 0; visibility: hidden; transition: opacity 0.2s ease;
}
body.contact-modal-open .theme-modal-overlay { opacity: 1; visibility: visible; }
.theme-modal {
	position: fixed; top: 50%; left: 50%; z-index: 71;
	width: calc(100% - 2rem); max-width: 32rem; max-height: 90vh; overflow-y: auto;
	background-color: var(--background); border: 1px solid var(--border); border-radius: var(--card-radius);
	box-shadow: var(--shadow-elevated);
	transform: translate(-50%, -48%) scale(0.95);
	opacity: 0; visibility: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
body.contact-modal-open .theme-modal { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.theme-modal-inner { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.theme-modal-close { position: absolute; top: 1rem; right: 1rem; padding: 0.4rem; opacity: 0.7; border-radius: 0.25rem; transition: opacity 0.2s ease; }
.theme-modal-close:hover { opacity: 1; }
.theme-modal-title { font-size: 1.875rem; font-family: var(--font-display); font-weight: 600; }
.theme-modal-description { font-size: 0.875rem; color: color-mix(in srgb, var(--foreground) 60%, transparent); margin-top: 0.25rem; }
.theme-modal-contactrow { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.875rem; color: color-mix(in srgb, var(--foreground) 60%, transparent); }
.theme-modal-contactlink { display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.2s ease; word-break: break-all; }
.theme-modal-contactlink:hover { color: var(--foreground); }

.theme-modal-form { display: flex; flex-direction: column; gap: 1rem; }
.theme-modal-form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-modal-form-row { grid-template-columns: repeat(2, 1fr); } }
.theme-modal-field label { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.35rem; display: block; }
.theme-modal-field input, .theme-modal-field textarea {
	width: 100%; padding: 0.6rem 0.75rem; background-color: var(--background); border: 1px solid var(--border);
	border-radius: 0.375rem; font-size: 1rem; font-family: var(--font-body); color: var(--foreground);
	transition: box-shadow 0.3s ease;
}
.theme-modal-field textarea { resize: none; }
.theme-modal-field input:focus, .theme-modal-field textarea:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--foreground) 20%, transparent); }
.theme-modal-field input::placeholder, .theme-modal-field textarea::placeholder { color: color-mix(in srgb, var(--foreground) 45%, transparent); }
.theme-modal-note { font-size: 0.75rem; color: color-mix(in srgb, var(--foreground) 55%, transparent); }
.theme-modal-error { font-size: 0.8rem; color: #c0392b; }
.theme-modal-form-actions { display: flex; justify-content: flex-end; }

.theme-modal-success { text-align: center; padding: 2rem 0; }
.theme-modal-success-icon { width: 3.5rem; height: 3.5rem; background-color: var(--primary); color: var(--primary-foreground); border-radius: 999px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.theme-modal-success h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-modal-success p { font-size: 0.875rem; color: color-mix(in srgb, var(--foreground) 60%, transparent); }

/* =========================================================
   404
   ========================================================= */
.theme-404 { min-height: 70vh; display: flex; align-items: center; }
.theme-404-inner { text-align: center; padding-top: 5rem; padding-bottom: 5rem; }
.theme-404-title { font-size: 2.5rem; margin-bottom: 1rem; }
.theme-404-message { color: color-mix(in srgb, var(--foreground) 60%, transparent); margin-bottom: 2rem; }

/* =========================================================
   WooCommerce notices (Section 14.1)
   ========================================================= */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	list-style: none; padding: 1rem 1.5rem; border-radius: 0.375rem; margin: 0 0 1.5rem;
	font-family: var(--font-body); font-size: 0.9rem;
	background-color: var(--secondary); color: var(--foreground); border-left: 3px solid var(--accent);
}
.woocommerce-error { border-left-color: #c0392b; }
.single-product .woocommerce-message, .single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* =========================================================
   Checkout Block overrides (Section 13)
   ========================================================= */
body.woocommerce-checkout .site-main { padding-top: var(--header-height, 96px); padding-bottom: 4rem; }
body.woocommerce-checkout .page-title { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; margin-bottom: 2rem; }
body.woocommerce-checkout .entry-content.container-wide {
	width: 100%;
	max-width: 84rem;
	margin-left: auto;
	margin-right: auto;
}
body.woocommerce-checkout .wc-block-checkout { display: block; max-width: 100%; }
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap);
		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-components-notice-banner { grid-column: 1 / -1; }
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	border: 1px solid var(--border);
	border-radius: 0.375rem;
	background-color: var(--background);
	color: var(--foreground);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--foreground) 20%, transparent);
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--secondary);
	border-radius: var(--card-radius);
	padding: 2rem;
}
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-mono) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	font-size: var(--btn-font-size) !important;
}

body.woocommerce-cart .site-main,
body.woocommerce-account .site-main { padding-top: var(--header-height, 96px); padding-bottom: 4rem; }

/* =========================================================
   Thank-you page
   ========================================================= */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .site-main { padding-top: var(--header-height, 96px); padding-bottom: 4rem; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; }
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-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { padding: 0 0 1rem 0; font-family: var(--font-display); font-size: 1.5rem; }
@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; }
}

/* =========================================================
   Body offset for non-front pages (fixed header)
   ========================================================= */
body.theme-no-hero:not(.woocommerce-checkout):not(.theme-thankyou-page) .site-main { padding-top: var(--header-height, 96px); }
