/* =======================================================================
   Onikiri Studios — theme.css
   ===================================================================== */

:root {
	--color-background: #0c1018;
	--color-foreground: #e5eaf0;
	--color-card: #161d2d;
	--color-primary: #07b6d5;
	--color-primary-foreground: #060f18;
	--color-secondary: #1a222e;
	--color-muted: #1a2333;
	--color-muted-foreground: #9dabbe;
	--color-accent: #21d5ed;
	--color-destructive: #ef4343;
	--color-border: #222f44;
	--color-grid-line: #253141;
	--color-button-text: var(--color-primary-foreground);

	--font-display: 'Chakra Petch', sans-serif;
	--font-body: 'Inter', sans-serif;
	--font-mono: 'JetBrains Mono', monospace;

	--radius: 0.5rem;
	--card-radius: 0.5rem;
	--section-padding: 2rem;

	--btn-radius: 0.375rem;
	--btn-height: 44px;
	--btn-padding: 0.75rem 2rem;
	--btn-font-size: 12px;
	--btn-font-weight: 700;
	--btn-letter-spacing: 0.18em;
	--btn-text-transform: uppercase;

	--header-height: 72px;
	--logo-height: 54px;

	--checkout-gap: 2rem;
}

/* -----------------------------------------------------------------------
   Reset & base
   --------------------------------------------------------------------- */
* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
	color-scheme: dark;
}

html, body {
	max-width: 100%;
	overflow-x: clip;
}

body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: -0.02em;
	color: var(--color-foreground);
	margin: 0;
}

p {
	margin: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

a[href],
[role="button"],
.theme-browse-link,
.theme-about-link,
.theme-404-link,
.theme-nathan-linkedin,
.theme-mailto-link,
.theme-tel-link,
.theme-footer-link-btn,
.theme-footer-logo-link,
.theme-footer-links a,
.theme-social-icon,
.theme-modal-close,
.theme-price-filter-toggle,
.theme-faq-question,
.theme-cat-filter,
.theme-mobile-menu-toggle,
.theme-cart-button,
.theme-product-card__image-link,
.theme-featured-card__image-link,
.theme-footer-credit a {
	cursor: pointer;
}

button {
	font-family: inherit;
	cursor: pointer;
	background: none;
	border: none;
	color: inherit;
}

input, textarea, select {
	font-family: inherit;
	color: inherit;
}

img:not(.cover-img):not(.product-card-img):not(.theme-product-thumb img) {
	max-width: 100%;
	height: auto;
}
.cover-img, .product-card-img, .theme-product-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

::selection {
	background: color-mix( in srgb, var(--color-primary) 30%, transparent );
}

.container-wide {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding-inline: 1rem;
	min-width: 0;
}
@media (min-width: 640px) { .container-wide { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-wide { padding-inline: 2rem; } }

.mono-label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--color-accent);
	margin-bottom: 0.75rem;
}

.section-heading {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--color-foreground);
	text-wrap: balance;
	line-height: 1.1;
	font-size: 1.875rem;
}
@media (min-width: 768px) { .section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .section-heading { font-size: 3.75rem; } }

.theme-accent-text { color: var(--color-accent); }

.theme-section-anchor { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* -----------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.theme-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	background: var(--color-primary);
	color: var(--color-primary-foreground);
	border-radius: var(--btn-radius);
	padding: 1rem 2rem;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.theme-btn-primary:hover { opacity: 0.9; box-shadow: 0 0 24px color-mix(in srgb, var(--color-primary) 30%, transparent); }

.theme-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	border-radius: var(--btn-radius);
	padding: 1rem 2rem;
	border: 1px solid #475569;
	background: color-mix(in srgb, var(--color-card) 60%, transparent);
	backdrop-filter: blur(4px);
	color: #e2e8f0;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-btn-outline:hover { border-color: var(--color-primary); color: var(--color-accent); }

.theme-btn-hero-primary, .theme-btn-hero-outline { text-transform: uppercase; }

/* -----------------------------------------------------------------------
   Announcement bar
   --------------------------------------------------------------------- */
.theme-announcement-bar {
	position: relative;
	background: var(--color-primary);
	color: var(--color-primary-foreground);
}
.theme-announcement-inner { padding-block: 0.625rem; padding-inline-end: 2.5rem; text-align: center; }
.theme-announcement-text {
	font-size: 12px;
	font-family: var(--font-mono);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	margin: 0;
}
.theme-announcement-dot, .theme-announcement-sub { display: none; }
@media (min-width: 640px) { .theme-announcement-dot, .theme-announcement-sub { display: inline; opacity: .8; } }
.theme-announcement-close {
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0.7;
}
.theme-announcement-close:hover { opacity: 1; }
.theme-announcement-bar.is-dismissed { display: none; }

/* -----------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	padding: 0.5rem 0;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	max-width: 100%;
	overflow-x: clip;
}
@media (max-width: 767px) {
	.site-header { --logo-height: 46px; }
}
.site-header.is-solid,
.site-header.is-scrolled,
body.mobile-menu-open .site-header {
	background: color-mix(in srgb, var(--color-background) 90%, transparent);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--color-border);
	box-shadow: var(--shadow-soft, 0 6px 24px -10px rgba(0,0,0,.7));
}
.site-nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
	gap: 0.5rem;
	min-width: 0;
}
@media (min-width: 768px) { .site-nav { height: 64px; } }
@media (min-width: 1024px) { .site-nav { gap: 0; } }

.site-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
	min-width: 0;
	height: 100%;
	padding: 0.25rem 0;
}
@media (max-width: 1023px) {
	.site-brand {
		flex: 1 1 auto;
		max-width: calc(100% - 6.5rem);
	}
}
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; transition: transform 0.2s ease; }
.site-brand:hover .site-logo-img { transform: scale(1.05); }
.site-logo-text { line-height: var(--logo-height); font-family: var(--font-display); font-weight: 700; color: var(--color-foreground); }
.site-brand-name {
	display: none;
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--color-foreground);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (min-width: 640px) { .site-brand-name { display: block; } }

.site-nav-links { display: none; }
@media (min-width: 1024px) {
	/* Lovable: hidden lg:flex items-center gap-8 — middle column in justify-between nav */
	.site-nav-links {
		display: flex;
		align-items: center;
		flex-shrink: 0;
	}
}
.theme-nav-list { display: flex; align-items: center; gap: 2rem; }
.theme-nav-list a {
	position: relative;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: #cbd5e1;
	padding: 0.75rem 0;
	transition: color 0.2s ease;
}
.theme-nav-list a::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0.25rem;
	height: 1px;
	background: var(--color-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}
.theme-nav-list a:hover { color: var(--color-accent); }
.theme-nav-list a:hover::after { transform: scaleX(1); }

.site-nav-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.theme-cart-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: var(--btn-radius);
	background: var(--color-primary);
	color: var(--color-primary-foreground);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.theme-cart-button-desktop { display: none; min-height: 44px; padding: 0.75rem 1rem; max-width: 100%; }
@media (min-width: 640px) { .theme-cart-button-desktop { display: inline-flex; } }
@media (min-width: 640px) and (max-width: 1023px) {
	.theme-cart-button-text {
		max-width: 7.5rem;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}
.theme-cart-button:hover { opacity: 0.9; box-shadow: 0 0 24px color-mix(in srgb, var(--color-primary) 30%, transparent); }
.theme-cart-button-mobile {
	position: relative;
	display: inline-flex;
	width: 44px; height: 44px;
	align-items: center; justify-content: center;
}
@media (min-width: 640px) { .theme-cart-button-mobile { display: none; } }
.theme-cart-count-badge {
	position: absolute;
	top: -4px; right: -4px;
	min-width: 18px; height: 18px;
	padding: 0 4px;
	border-radius: var(--btn-radius);
	background: var(--color-destructive);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}
.theme-cart-count-badge:empty { display: none; }

.theme-mobile-menu-toggle {
	width: 44px; height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--color-border);
	border-radius: var(--btn-radius);
	color: #e2e8f0;
	flex-shrink: 0;
	transition: color 0.2s ease, border-color 0.2s ease;
}
@media (min-width: 1024px) { .theme-mobile-menu-toggle { display: none; } }
.theme-mobile-menu-toggle:hover { color: var(--color-accent); border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); }
.theme-mobile-menu-toggle.is-open .icon-menu { display: none; }
.theme-mobile-menu-toggle.is-open .icon-close { display: inline-block !important; }

.theme-mobile-menu {
	display: none;
	border-top: 1px solid var(--color-border);
	padding: 0.75rem 0;
	max-width: 100%;
	overflow-x: clip;
}
.theme-mobile-menu.is-open {
	display: block;
	animation: theme-fade-in 0.2s ease;
}
.theme-mobile-menu[hidden]:not(.is-open) {
	display: none !important;
}

.theme-mobile-menu-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.theme-mobile-menu-link,
.theme-mobile-menu-list a {
	display: block;
	width: 100%;
	padding: 1rem 0.25rem;
	min-height: 44px;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	line-height: 1.25;
	color: #cbd5e1;
	text-align: left;
	transition: color 0.2s ease;
}

.theme-mobile-menu-link:hover,
.theme-mobile-menu-list a:hover {
	color: var(--color-accent);
}

/* Safety: never lay out desktop nav horizontally inside the mobile drawer. */
.theme-mobile-menu .theme-nav-list,
.theme-mobile-menu .theme-mobile-menu-list {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
}

@keyframes theme-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

body.theme-no-hero .site-main,
body.theme-no-hero .theme-page-main,
body.theme-no-hero .single-product-main,
body.theme-no-hero .theme-shop-archive,
body.theme-no-hero .theme-404-main,
body.theme-no-hero .theme-index-main {
	padding-top: var(--header-height);
}

/* -----------------------------------------------------------------------
   Grid canvas decoration
   --------------------------------------------------------------------- */
.theme-hero-grid-overlay,
.theme-capabilities-grid-bg,
.theme-about-grid-bg {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, color-mix(in srgb, var(--color-grid-line) 50%, transparent) 1px, transparent 1px),
		linear-gradient(to bottom, color-mix(in srgb, var(--color-grid-line) 50%, transparent) 1px, transparent 1px);
	background-size: 56px 56px;
	opacity: 0.3;
	pointer-events: none;
}
.theme-custom-orders-grid-fine {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, color-mix(in srgb, var(--color-grid-line) 35%, transparent) 1px, transparent 1px),
		linear-gradient(to bottom, color-mix(in srgb, var(--color-grid-line) 35%, transparent) 1px, transparent 1px);
	background-size: 28px 28px;
	opacity: 0.3;
	pointer-events: none;
}

/* -----------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.theme-hero { position: relative; background: var(--color-background); overflow: hidden; }
.theme-hero-video { z-index: 0; }
.theme-hero-grid-overlay { z-index: 1; }
.theme-hero-gradient {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--color-primary) 16%, transparent) 0%, transparent 45%),
		radial-gradient(circle at 85% 75%, color-mix(in srgb, var(--color-destructive) 12%, transparent) 0%, transparent 45%),
		linear-gradient(to right, color-mix(in srgb, var(--color-background) 92%, transparent) 0%, color-mix(in srgb, var(--color-background) 78%, transparent) 55%, color-mix(in srgb, var(--color-background) 55%, transparent) 100%);
}
.theme-hero-inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	min-height: 100vh;
	padding-block: 5rem;
}
@media (min-width: 768px) { .theme-hero-inner { padding-block: 6rem; } }
.theme-hero-content { width: 100%; max-width: 48rem; }
.theme-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: var(--btn-radius);
	border: 1px solid color-mix(in srgb, var(--color-primary) 40%, transparent);
	background: color-mix(in srgb, var(--color-primary) 10%, transparent);
	padding: 0.5rem 0.75rem;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--color-accent);
}
.theme-hero-title {
	font-family: var(--font-display);
	letter-spacing: -0.02em;
	margin-top: 1.5rem;
	color: var(--color-foreground);
	text-wrap: balance;
	font-size: 1.875rem;
	line-height: 1.05;
}
@media (min-width: 640px) { .theme-hero-title { font-size: 2.25rem; } }
@media (min-width: 768px) { .theme-hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-hero-title { font-size: 3.75rem; } }
.theme-hero-title-line { display: block; font-weight: 700; }
.theme-hero-title-accent { color: var(--color-accent); }
.theme-hero-description {
	margin-top: 1.5rem;
	max-width: 36rem;
	font-size: 1rem;
	color: #e2e8f0;
	line-height: 1.6;
}
@media (min-width: 768px) { .theme-hero-description { font-size: 1.125rem; } }
.theme-hero-ctas {
	margin-top: 2.25rem;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1rem;
}
@media (min-width: 640px) { .theme-hero-ctas { flex-direction: row; align-items: center; width: auto; } }
.theme-hero-stats {
	margin-top: 3rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}
@media (min-width: 640px) { .theme-hero-stats { grid-template-columns: repeat(3, 1fr); } }
.theme-hero-stat {
	border-radius: var(--btn-radius);
	border: 1px solid var(--color-border);
	background: color-mix(in srgb, var(--color-card) 70%, transparent);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 0.75rem 1rem;
}
.theme-hero-stat dt {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--color-accent);
	margin: 0;
}
.theme-hero-stat dd {
	font-family: var(--font-display);
	font-size: 1rem;
	color: var(--color-foreground);
	margin: 0.25rem 0 0;
	text-wrap: pretty;
}

/* -----------------------------------------------------------------------
   Marquee
   --------------------------------------------------------------------- */
.theme-marquee {
	border-top: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
	overflow: hidden;
	padding: 0.875rem 0;
	background: var(--color-secondary);
	color: var(--color-muted-foreground);
}
.theme-marquee-track {
	display: flex;
	gap: 2.5rem;
	white-space: nowrap;
	width: max-content;
	animation: theme-marquee-scroll 34s linear infinite;
}
@keyframes theme-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.theme-marquee-item { display: flex; align-items: center; gap: 2.5rem; flex-shrink: 0; }
.theme-marquee-word { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.28em; font-size: 12px; }
@media (min-width: 768px) { .theme-marquee-word { font-size: 13px; } }
.theme-marquee-sparkle { width: 0.75rem; height: 0.75rem; color: var(--color-primary); }

/* -----------------------------------------------------------------------
   Reveal-on-scroll animation
   --------------------------------------------------------------------- */
.reveal-item, .reveal-fade {
	opacity: 0;
	transform: translateY(15px);
	transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1);
	transition-delay: var(--reveal-delay, 0s);
}
.reveal-item.is-visible, .reveal-fade.is-visible {
	opacity: 1;
	transform: translateY(0);
}
body.is-customizer .reveal-item,
body.is-customizer .reveal-fade,
body.is-customizer .theme-product-card-wrap,
body.is-customizer .theme-featured-card-wrap {
	opacity: 1 !important;
	transform: none !important;
}

/* -----------------------------------------------------------------------
   Offerings / Capabilities / general section spacing
   --------------------------------------------------------------------- */
.theme-offerings-wrap { position: relative; background: var(--color-secondary); border-bottom: 1px solid var(--color-border); scroll-margin-top: 6rem; }
.theme-offerings-inner { padding-block: 3rem; }
@media (min-width: 768px) { .theme-offerings-inner { padding-block: 5rem 3.5rem; } }
@media (min-width: 1024px) { .theme-offerings-inner { padding-block-start: 6rem; } }
.theme-offerings-header { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .theme-offerings-header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.offerings-heading { margin-bottom: 0; }
.theme-heading-rule { margin-top: 1rem; width: 60px; border: 0; border-bottom: 2px solid var(--color-primary); }
.theme-browse-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	align-self: flex-start;
	padding: 0.75rem 0.25rem;
	min-height: 44px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--color-accent);
	position: relative;
}
.theme-browse-link::after {
	content: '';
	position: absolute; left: 0; right: 0; bottom: 0;
	height: 1px; background: currentColor;
	transform: scaleX(0); transition: transform .3s;
}
.theme-browse-link:hover::after { transform: scaleX(1); }

/* -----------------------------------------------------------------------
   Product grids & cards (shared)
   --------------------------------------------------------------------- */
.theme-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: stretch;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; } }
.theme-featured-grid { gap: 1.25rem; }
@media (min-width: 768px) { .theme-featured-grid { gap: 1.5rem; } }

.theme-product-card-wrap, .theme-featured-card-wrap { height: 100%; display: flex; }
.theme-shop-grid-item { display: contents; }
.theme-shop-grid-item.theme-shop-extra { display: none; }
.theme-shop-grid-item.theme-shop-extra.is-shown { display: contents; }
.theme-shop-grid-item.is-filtered-out { display: none !important; }

.theme-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}
.theme-product-card__image-link,
.theme-featured-card__image-link {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	line-height: 0;
}

.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--color-card);
	border-radius: var(--card-radius);
	overflow: hidden;
	border: 1px solid var(--color-border);
	margin-bottom: 1.25rem;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.theme-product-card:hover .theme-product-card__image-wrapper { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); box-shadow: 0 0 15px rgba(6,182,212,.15); }
.theme-product-card__image { transition: transform .3s ease-out; }
.theme-product-card:hover .theme-product-card__image { transform: scale(1.04); }
.theme-product-card__image.is-soldout { opacity: 0.6; }

.theme-badge {
	position: absolute;
	z-index: 3;
	padding: 0.375rem 0.625rem;
	border-radius: var(--btn-radius);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}
.theme-badge-soldout { top: 0.75rem; right: 0.75rem; background: var(--color-destructive); color: #fff; }
.theme-badge-category { top: 0.75rem; left: 0.75rem; background: color-mix(in srgb, var(--color-primary) 90%, transparent); color: var(--color-primary-foreground); backdrop-filter: blur(4px); }
.theme-badge-soldout-right { right: 0.75rem; }

.theme-product-card__info { padding: 0 0.25rem; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.theme-product-card__title {
	font-family: var(--font-display);
	font-size: 1.125rem;
	line-height: 1.3;
	color: var(--color-foreground);
	font-weight: 700;
	text-wrap: balance;
	transition: color .2s ease;
}
@media (min-width: 768px) { .theme-product-card__title { font-size: 1.25rem; } }
.theme-product-card:hover .theme-product-card__title { color: var(--color-accent); }
.theme-product-card__category {
	margin-top: 0.5rem;
	margin-bottom: 1rem;
	font-family: var(--font-mono);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--color-accent);
}
.theme-product-card__cta,
.theme-featured-card__cta {
	margin-top: auto;
	width: 100%;
	min-height: 44px;
	padding: 0.75rem 1rem;
	border-radius: var(--btn-radius);
	background: var(--color-primary);
	color: var(--color-primary-foreground);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: opacity .2s ease, box-shadow .2s ease;
}
.theme-product-card__cta:hover, .theme-featured-card__cta:hover { opacity: .9; box-shadow: 0 0 24px color-mix(in srgb, var(--color-primary) 30%, transparent); }
.theme-product-card__cta:disabled, .theme-featured-card__cta:disabled { opacity: .5; cursor: not-allowed; }
.theme-product-card__cta.theme-btn-loading, .theme-featured-card__cta.theme-btn-loading { opacity: .6; pointer-events: none; cursor: wait; }

/* Featured card variant */
.theme-featured-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--card-radius);
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.theme-featured-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); box-shadow: 0 0 15px rgba(6,182,212,.15); }
.theme-featured-card__image-wrapper { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--color-secondary); }
.theme-featured-card__image { transition: transform .3s ease-out; }
.theme-featured-card:hover .theme-featured-card__image { transform: scale(1.04); }
.theme-featured-card__info { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.theme-featured-card__process { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--color-accent); margin-bottom: 0.5rem; }
.theme-featured-card__title { font-family: var(--font-display); font-size: 1.125rem; color: var(--color-foreground); margin-bottom: 0.5rem; font-weight: 700; text-wrap: balance; }
@media (min-width: 768px) { .theme-featured-card__title { font-size: 1.25rem; } }
.theme-featured-card__subtitle { font-size: 13px; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }
.theme-featured-card__price { font-family: var(--font-mono); font-weight: 700; color: var(--color-accent); margin-bottom: 1rem; margin-top: auto; }

/* -----------------------------------------------------------------------
   Capabilities
   --------------------------------------------------------------------- */
.theme-capabilities-section { position: relative; background: var(--color-background); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); overflow: hidden; }
.theme-capabilities-glow {
	position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--color-primary) 14%, transparent) 0%, transparent 45%), radial-gradient(circle at 88% 82%, color-mix(in srgb, var(--color-destructive) 10%, transparent) 0%, transparent 45%);
}
.theme-capabilities-inner { position: relative; padding-block: 3rem; }
@media (min-width: 768px) { .theme-capabilities-inner { padding-block: 5rem 3.5rem; } }
@media (min-width: 1024px) { .theme-capabilities-inner { padding-block: 7rem; } }
.theme-capabilities-intro { max-width: 42rem; margin-bottom: 3rem; }
.capabilities-heading { margin-bottom: 1rem; }
.theme-capabilities-desc { font-size: 1rem; color: #cbd5e1; line-height: 1.6; }
@media (min-width: 768px) { .theme-capabilities-desc { font-size: 1.125rem; } }
.theme-capabilities-cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .theme-capabilities-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-capabilities-cards { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.5rem; } }
.theme-capability-card {
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--card-radius);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	transition: border-color .2s ease, box-shadow .2s ease;
}
@media (min-width: 768px) { .theme-capability-card { padding: 1.75rem; } }
.theme-capability-card:hover { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); box-shadow: 0 0 15px rgba(6,182,212,.15); }
.theme-capability-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.theme-capability-icon {
	width: 3rem; height: 3rem;
	border-radius: var(--btn-radius);
	background: color-mix(in srgb, var(--color-primary) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
	display: flex; align-items: center; justify-content: center;
	color: var(--color-accent);
}
.theme-capability-code { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: #64748b; }
.theme-capability-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-foreground); margin-bottom: 0.75rem; font-weight: 700; text-wrap: balance; }
@media (min-width: 768px) { .theme-capability-title { font-size: 1.5rem; } }
.theme-capability-desc { font-size: 0.9375rem; color: #94a3b8; line-height: 1.6; flex: 1; }
@media (min-width: 768px) { .theme-capability-desc { font-size: 1rem; } }

/* -----------------------------------------------------------------------
   Custom Orders
   --------------------------------------------------------------------- */
.theme-custom-orders-section {
	position: relative;
	background-color: var(--color-secondary);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-bottom: 1px solid var(--color-border);
	scroll-margin-top: 6rem;
}
.theme-custom-orders-gradient {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(to bottom, color-mix(in srgb, var(--color-background) 90%, transparent), color-mix(in srgb, var(--color-background) 94%, transparent));
}
.theme-custom-orders-inner { position: relative; padding-block: 3rem; }
@media (min-width: 768px) { .theme-custom-orders-inner { padding-block: 5rem; } }
@media (min-width: 1024px) { .theme-custom-orders-inner { padding-block: 7rem; } }
.theme-custom-orders-card {
	position: relative;
	overflow: hidden;
	border-radius: var(--card-radius);
	border: 1px solid var(--color-border);
	background: color-mix(in srgb, var(--color-card) 80%, transparent);
	backdrop-filter: blur(12px);
	padding: 1.5rem;
}
@media (min-width: 640px) { .theme-custom-orders-card { padding: 2rem; } }
@media (min-width: 768px) { .theme-custom-orders-card { padding: 3rem; } }
.theme-custom-orders-content { position: relative; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .theme-custom-orders-content { grid-template-columns: 1fr 1fr; } }
.custom-orders-heading { margin-bottom: 1.25rem; }
.theme-custom-orders-desc { font-size: 1rem; color: #cbd5e1; line-height: 1.6; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .theme-custom-orders-desc { font-size: 1.125rem; } }
.theme-custom-orders-note { display: inline-flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: #94a3b8; margin-bottom: 2rem; }
.theme-custom-orders-note svg { flex-shrink: 0; margin-top: 0.125rem; color: var(--color-accent); }
.theme-custom-orders-ctas { display: flex; flex-direction: column; flex-wrap: wrap; gap: 1rem; }
@media (min-width: 640px) { .theme-custom-orders-ctas { flex-direction: row; } }
.theme-custom-orders-steps { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .theme-custom-orders-steps { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; } }
.theme-custom-order-step {
	border-radius: var(--btn-radius);
	border: 1px solid var(--color-border);
	background: var(--color-secondary);
	padding: 1rem 1.25rem;
	display: flex; flex-direction: column; justify-content: space-between;
	min-height: 120px;
	transition: border-color .2s ease;
}
.theme-custom-order-step:hover { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); }
.theme-step-label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.2em; font-size: 12px; color: var(--color-accent); font-weight: 700; }
.theme-step-value { font-family: var(--font-display); font-size: 1rem; color: var(--color-foreground); line-height: 1.3; margin-top: 0.75rem; }
@media (min-width: 1024px) { .theme-step-value { font-size: 1.125rem; } }

/* -----------------------------------------------------------------------
   About + Meet Nathan
   --------------------------------------------------------------------- */
.theme-about-section { position: relative; background: var(--color-background); border-bottom: 1px solid var(--color-border); scroll-margin-top: 6rem; overflow: hidden; }
.theme-about-inner { position: relative; padding-block: 3rem; }
@media (min-width: 768px) { .theme-about-inner { padding-block: 5rem; } }
@media (min-width: 1024px) { .theme-about-inner { padding-block: 7rem; } }
.theme-about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .theme-about-grid { grid-template-columns: 7fr 5fr; gap: 3.5rem; } }
.about-heading { margin-bottom: 1.5rem; }
.theme-about-p1 { font-size: 1.125rem; color: #cbd5e1; line-height: 1.6; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .theme-about-p1 { font-size: 1.25rem; } }
.theme-about-p2 { font-size: 1rem; color: #94a3b8; line-height: 1.6; margin-bottom: 2rem; }
@media (min-width: 768px) { .theme-about-p2 { font-size: 1.125rem; } }
.theme-about-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.75rem 0; font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-accent); transition: color .2s ease; }
.theme-about-link:hover { color: var(--color-primary); }
.theme-about-link svg { transition: transform .2s ease; }
.theme-about-link:hover svg { transform: translateX(4px); }
.theme-about-pillars { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .theme-about-pillars { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-about-pillars { grid-template-columns: 1fr; gap: 1rem; } }
.theme-about-pillar-card {
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--card-radius);
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.theme-about-pillar-card:hover { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); box-shadow: 0 0 15px rgba(6,182,212,.15); }
.theme-pillar-title { font-family: var(--font-display); font-size: 1rem; color: var(--color-foreground); font-weight: 700; text-wrap: balance; }
@media (min-width: 768px) { .theme-pillar-title { font-size: 1.125rem; } }

.theme-nathan-section { background: var(--color-secondary); border-bottom: 1px solid var(--color-border); scroll-margin-top: 6rem; }
.theme-nathan-inner { padding-block: 3rem; }
@media (min-width: 768px) { .theme-nathan-inner { padding-block: 5rem; } }
@media (min-width: 1024px) { .theme-nathan-inner { padding-block: 7rem; } }
.theme-nathan-intro { text-align: center; max-width: 48rem; margin: 0 auto 3rem; }
.nathan-heading { margin-bottom: 1.25rem; }
.theme-nathan-intro-text { font-size: 1rem; color: #cbd5e1; line-height: 1.6; }
@media (min-width: 768px) { .theme-nathan-intro-text { font-size: 1.125rem; } }
.theme-nathan-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: stretch; }
@media (min-width: 1024px) { .theme-nathan-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.theme-nathan-photo-wrap { position: relative; border-radius: var(--card-radius); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-card); min-height: 320px; }
.theme-nathan-copy { display: flex; flex-direction: column; gap: 1rem; }
.theme-nathan-paragraph {
	flex: 1;
	border-radius: var(--card-radius);
	border: 1px solid var(--color-border);
	background: var(--color-card);
	padding: 1.25rem 1.5rem;
	color: #94a3b8;
	line-height: 1.6;
	transition: border-color .2s ease;
}
.theme-nathan-paragraph:hover { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); }
.theme-nathan-linkedin { align-self: flex-start; }

/* -----------------------------------------------------------------------
   Shop section
   --------------------------------------------------------------------- */
.theme-shop-section { background: var(--color-background); border-bottom: 1px solid var(--color-border); scroll-margin-top: 6rem; }
.theme-shop-inner { padding-block: 3rem; }
@media (min-width: 768px) { .theme-shop-inner { padding-block: 5rem; } }
@media (min-width: 1024px) { .theme-shop-inner { padding-block: 7rem; } }
.theme-shop-header { text-align: center; margin-bottom: 3rem; }
.shop-heading { margin-bottom: 2rem; }
.theme-shop-search { position: relative; max-width: 28rem; margin: 0 auto 2rem; }
.theme-shop-search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: #64748b; }
.theme-shop-search-input {
	width: 100%;
	height: 3rem;
	padding: 0 1rem 0 2.5rem;
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--btn-radius);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-size: 1rem;
}
.theme-shop-search-input::placeholder { color: var(--color-muted-foreground); }
.theme-shop-search-input:focus { outline: none; box-shadow: 0 0 0 1px var(--color-primary); border-color: var(--color-primary); }
.theme-shop-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.theme-cat-filter {
	min-height: 44px;
	padding: 0.75rem 1.25rem;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	border-radius: var(--btn-radius);
	border: 1px solid var(--color-border);
	background: var(--color-card);
	color: #cbd5e1;
	transition: all .2s ease;
}
.theme-cat-filter:hover { border-color: color-mix(in srgb, var(--color-primary) 60%, transparent); color: var(--color-accent); }
.theme-cat-filter.is-active { background: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }

.theme-shop-price-filter { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.theme-price-filter-toggle {
	display: flex; align-items: center; gap: 0.5rem;
	padding: 0.75rem 1rem;
	min-height: 44px;
	font-family: var(--font-mono);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--color-muted-foreground);
	transition: color .2s ease;
}
.theme-price-filter-toggle:hover { color: var(--color-accent); }
.theme-price-filter-toggle svg { transition: transform .2s ease; }
.theme-price-filter-toggle.is-open svg { transform: rotate(180deg); }
.theme-price-filter-panel { width: 100%; max-width: 24rem; padding: 0.5rem 0; }
.theme-price-range-labels { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--color-muted-foreground); font-family: var(--font-mono); margin-top: 0.75rem; }

.price-range-wrapper { position: relative; height: 1.5rem; }
.range-track-bg, .range-track-fill { position: absolute; height: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; border-radius: 2px; }
.range-track-bg { left: 0; right: 0; background: var(--color-border); }
.range-track-fill { background: var(--color-primary); }
.range-input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; }
.range-input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--color-background); border: 2px solid var(--color-primary); cursor: pointer; }
.range-input::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--color-background); border: 2px solid var(--color-primary); cursor: pointer; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.theme-shop-show-more { text-align: center; margin-top: 3rem; }
.theme-shop-empty-state { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); }

/* -----------------------------------------------------------------------
   FAQ
   --------------------------------------------------------------------- */
.theme-faq-section { background: var(--color-background); border-bottom: 1px solid var(--color-border); scroll-margin-top: 6rem; }
.theme-faq-inner { padding-block: 3rem; max-width: 48rem; margin: 0 auto; }
@media (min-width: 768px) { .theme-faq-inner { padding-block: 5rem; } }
@media (min-width: 1024px) { .theme-faq-inner { padding-block: 7rem; } }
.theme-faq-header { text-align: center; margin-bottom: 2.5rem; }
.faq-heading { margin-bottom: 0; }
.theme-faq-list { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--card-radius); padding: 0 1.25rem; }
@media (min-width: 640px) { .theme-faq-list { padding: 0 2rem; } }
.theme-faq-item { border-bottom: 1px solid var(--color-border); }
.theme-faq-item:last-child { border-bottom: none; }
.theme-faq-question {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	text-align: left;
	padding: 1.25rem 0;
	min-height: 44px;
}
.theme-faq-question span { font-family: var(--font-display); font-size: 1.125rem; color: var(--color-foreground); text-wrap: pretty; transition: color .2s ease; }
@media (min-width: 768px) { .theme-faq-question span { font-size: 1.25rem; } }
.theme-faq-question:hover span { color: var(--color-accent); }
.theme-faq-chevron { color: var(--color-accent); margin-top: 0.25rem; flex-shrink: 0; transition: transform .2s ease; }
.theme-faq-item.is-open .theme-faq-chevron { transform: rotate(180deg); }
.theme-faq-answer { overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.theme-faq-item.is-open .theme-faq-answer { max-height: 480px; }
.theme-faq-answer p { font-size: 0.9375rem; color: #94a3b8; line-height: 1.6; padding-bottom: 1.5rem; padding-right: 2rem; }
@media (min-width: 768px) { .theme-faq-answer p { font-size: 1rem; } }

/* -----------------------------------------------------------------------
   Contact section
   --------------------------------------------------------------------- */
.theme-contact-section { position: relative; background: var(--color-secondary); overflow: hidden; scroll-margin-top: 6rem; }
.theme-contact-video { z-index: 0; }
.theme-contact-grid-overlay {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background-image:
		linear-gradient(to right, color-mix(in srgb, var(--color-grid-line) 35%, transparent) 1px, transparent 1px),
		linear-gradient(to bottom, color-mix(in srgb, var(--color-grid-line) 35%, transparent) 1px, transparent 1px);
	background-size: 56px 56px;
	opacity: 0.25;
}
.theme-contact-gradient {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--color-primary) 16%, transparent) 0%, transparent 45%), radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--color-destructive) 12%, transparent) 0%, transparent 45%), linear-gradient(to bottom, color-mix(in srgb, var(--color-background) 86%, transparent), color-mix(in srgb, var(--color-background) 90%, transparent));
}
.theme-contact-inner { position: relative; z-index: 2; padding-block: 3rem; }
@media (min-width: 768px) { .theme-contact-inner { padding-block: 5rem; } }
@media (min-width: 1024px) { .theme-contact-inner { padding-block: 7rem; } }
.theme-contact-content { max-width: 42rem; margin: 0 auto; text-align: center; }
@media (min-width: 768px) { .theme-contact-content { max-width: 56rem; } }
.contact-heading { margin-bottom: 1.25rem; }
.theme-contact-desc { font-size: 1rem; color: #cbd5e1; line-height: 1.6; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .theme-contact-desc { font-size: 1.125rem; } }
.theme-contact-ctas { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .theme-contact-ctas { flex-direction: row; align-items: center; } }
.theme-contact-links { margin-top: 2.5rem; display: flex; flex-direction: column; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; font-size: 0.875rem; color: #cbd5e1; }
@media (min-width: 640px) { .theme-contact-links { flex-direction: row; gap: 1.5rem; } }
.theme-contact-links a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; min-height: 44px; transition: color .2s ease; word-break: break-all; }
.theme-contact-links a svg { flex-shrink: 0; color: var(--color-primary); }
.theme-contact-links a:hover { color: var(--color-accent); }
.theme-contact-links a:hover svg { color: var(--color-primary); }

/* -----------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--color-border); background: #08090d; color: #cbd5e1; }
.theme-footer-inner { padding-block: 3rem 1.5rem; }
@media (min-width: 1024px) { .theme-footer-inner { padding-block: 4rem 2rem; } }
.theme-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2.5rem; padding-bottom: 2rem; }
@media (min-width: 640px) { .theme-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-footer-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 3rem; } }
.theme-footer-logo-link .site-logo-img { height: 64px !important; }
.theme-footer-tagline { margin-top: 1.25rem; font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.6; }
.theme-footer-col-title { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; color: var(--color-accent); margin-bottom: 1rem; }
.theme-footer-links li { margin: 0; }
.theme-footer-links a, .theme-footer-link-btn {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	padding: 0.5rem 0;
	display: inline-block;
	text-align: left;
	transition: color .2s ease;
}
.theme-footer-links a:hover, .theme-footer-link-btn:hover { color: var(--color-accent); }
.theme-footer-contact-list a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; word-break: break-all; }
.theme-footer-socials { display: flex; align-items: center; gap: 1rem; padding-top: 0.25rem; }
.theme-social-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem;
	border-radius: var(--btn-radius);
	background: color-mix(in srgb, #1e293b 60%, transparent);
	border: 1px solid var(--color-border);
	color: var(--color-muted-foreground);
	transition: color .2s ease, border-color .2s ease;
}
.theme-social-icon:hover { color: var(--color-accent); border-color: color-mix(in srgb, var(--color-accent) 40%, transparent); }
.theme-footer-bottom { padding-top: 1.25rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 0.75rem; align-items: center; justify-content: space-between; text-align: center; }
@media (min-width: 768px) { .theme-footer-bottom { flex-direction: row; text-align: left; } }
.theme-footer-copy, .theme-footer-credit { font-size: 12px; color: #64748b; font-family: var(--font-mono); letter-spacing: 0.02em; margin: 0; }
.theme-footer-credit a { color: var(--color-accent); transition: color .2s ease; }
.theme-footer-credit a:hover { color: var(--color-primary); }

/* -----------------------------------------------------------------------
   Cart drawer + overlay
   --------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 100;
	background: color-mix(in srgb, var(--color-background) 80%, transparent);
	backdrop-filter: blur(4px);
	opacity: 0; visibility: hidden;
	transition: opacity .2s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; visibility: visible; }

#theme-cart-drawer {
	position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem;
	background: var(--color-card);
	z-index: 101;
	box-shadow: -24px 0 48px -18px rgba(0,0,0,.6);
	display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(0.4,0,0.2,1);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-foreground); }
.theme-cart-drawer-close { padding: 0.25rem; color: #cbd5e1; transition: color .2s ease; }
.theme-cart-drawer-close:hover { color: var(--color-accent); }

.theme-cart-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1rem; }
.theme-cart-drawer-empty svg { color: #475569; }
.theme-cart-drawer-empty p { color: var(--color-muted-foreground); }

.theme-cart-drawer-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-drawer-item { display: flex; gap: 1rem; }
.theme-cart-item-image { width: 5rem; height: 6rem; flex-shrink: 0; border-radius: var(--btn-radius); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-secondary); display: block; }
.theme-cart-item-image img { width: 100%; height: 100%; 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; color: var(--color-foreground); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s ease; }
.theme-cart-item-name:hover { color: var(--color-accent); }
.theme-cart-item-meta { list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.theme-cart-item-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-item-meta-label { font-weight: 500; }
.theme-cart-item-meta-color { display: inline-flex; align-items: center; gap: 0.375rem; }
.theme-cart-item-meta-swatch { width: 0.75rem; height: 0.75rem; border-radius: 50%; border: 1px solid var(--color-border); flex-shrink: 0; }
.theme-cart-item-variation { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.theme-cart-item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.theme-cart-item-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.theme-cart-qty-btn { padding: 0.375rem 0.625rem; color: #cbd5e1; border-radius: var(--btn-radius); transition: background .2s ease, color .2s ease; }
.theme-cart-qty-btn:hover { background: var(--color-secondary); color: var(--color-accent); }
.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: var(--color-muted-foreground); transition: color .2s ease; }
.theme-cart-item-remove:hover { color: var(--color-destructive); }

.theme-cart-drawer-footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; background: var(--color-card); }
.theme-cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-subtotal-value { font-family: var(--font-mono); font-weight: 700; color: var(--color-accent); }
.theme-cart-shipping-note { font-size: 12px; color: var(--color-muted-foreground); text-transform: uppercase; letter-spacing: 0.16em; }
.theme-cart-checkout-btn { width: 100%; padding: 1.1rem; }
.theme-cart-empty-btn { width: 100%; }

/* -----------------------------------------------------------------------
   Contact / custom order modal
   --------------------------------------------------------------------- */
.theme-modal-overlay {
	position: fixed; inset: 0; z-index: 200;
	background: color-mix(in srgb, var(--color-background) 80%, transparent);
	backdrop-filter: blur(4px);
	opacity: 0; visibility: hidden;
	transition: opacity .2s ease;
}
body.contact-modal-open .theme-modal-overlay { opacity: 1; visibility: visible; }
.theme-modal {
	position: fixed; top: 50%; left: 50%;
	width: calc(100% - 2rem);
	max-width: 32rem;
	max-height: 90vh;
	overflow-y: auto;
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--card-radius);
	z-index: 201;
	padding: 1.75rem;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -48%) scale(0.96);
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
body.contact-modal-open .theme-modal { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.theme-modal-close { position: absolute; top: 1.25rem; right: 1.25rem; color: var(--color-muted-foreground); }
.theme-modal-close:hover { color: var(--color-accent); }
.theme-modal-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; padding-right: 2rem; }
.theme-modal-description { font-size: 0.9375rem; color: var(--color-muted-foreground); line-height: 1.5; margin-bottom: 1.25rem; }
.theme-modal-contact-row { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-modal-contact-row a { display: inline-flex; align-items: center; gap: 0.5rem; }
.theme-modal-contact-row a:hover { color: var(--color-accent); }
.theme-modal-success { text-align: center; padding: 2rem 0; }
.theme-modal-success-icon { width: 3.5rem; height: 3.5rem; background: var(--color-primary); color: var(--color-primary-foreground); border-radius: var(--btn-radius); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.theme-modal-success h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-modal-success p { font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-modal-form { display: flex; flex-direction: column; gap: 1rem; }
.theme-modal-form.is-hidden { display: none; }
.theme-form-row-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-form-row-2 { grid-template-columns: 1fr 1fr; } }
.theme-form-field { display: flex; flex-direction: column; gap: 0.375rem; }
.theme-form-field label { font-size: 0.875rem; font-weight: 500; }
.theme-form-field input, .theme-form-field textarea {
	width: 100%;
	padding: 0.625rem 0.75rem;
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--btn-radius);
	font-size: 1rem;
	resize: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.theme-form-field input::placeholder, .theme-form-field textarea::placeholder { color: var(--color-muted-foreground); }
.theme-form-field input:focus, .theme-form-field textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 50%, transparent); }
.theme-form-actions { display: flex; justify-content: flex-end; }
.theme-modal-submit { border-radius: 9999px; text-transform: none; letter-spacing: normal; }
.theme-modal-submit:disabled { opacity: .6; cursor: not-allowed; }

/* -----------------------------------------------------------------------
   Single product page
   --------------------------------------------------------------------- */
.single-product-main { padding-block: 1.5rem 6rem; }
.theme-breadcrumb { padding-block: 1.5rem; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-body); overflow-wrap: anywhere; word-break: break-word; line-height: 1.5; }
.theme-breadcrumb a { transition: color .2s ease; }
.theme-breadcrumb a:hover { color: var(--color-foreground); }
.theme-breadcrumb-sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb-current { color: var(--color-foreground); }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-top: 1rem; align-items: start; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }

.theme-product-gallery-main { aspect-ratio: 1/1; position: relative; background: var(--color-secondary); overflow: hidden; border-radius: var(--card-radius); border: 1px solid var(--color-border); }
.theme-product-thumbnails { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.theme-product-thumb { position: relative; width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden; background: var(--color-secondary); border-radius: var(--btn-radius); }
.theme-product-thumb img { opacity: 0.6; transition: opacity .2s ease; }
.theme-product-thumb.is-active img { opacity: 1; }
.theme-product-thumb:hover img { opacity: 1; }
.theme-product-thumb::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--color-foreground); opacity: 0; transition: opacity .2s ease; }
.theme-product-thumb.is-active::after { opacity: 1; }

.theme-product-info { lg-position: sticky; }
@media (min-width: 1024px) { .theme-product-info { position: sticky; top: 7rem; padding-left: 1rem; } }
.theme-product-categories { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }
.theme-product-categories a { transition: color .2s ease; }
.theme-product-categories a:hover { color: var(--color-accent); }
.theme-product-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.875rem;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--color-foreground);
	text-wrap: balance;
	overflow-wrap: break-word;
	word-break: break-word;
}
@media (min-width: 768px) { .theme-product-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-product-title { font-size: 3rem; } }
.theme-product-subtitle { margin-top: 0.75rem; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.theme-product-price { margin-top: 1rem; font-size: 1.25rem; font-family: var(--font-mono); color: var(--color-accent); font-weight: 700; }
.theme-stock-indicator.theme-stock-out { margin-top: 0.75rem; display: inline-block; padding: 0.375rem 0.75rem; border-radius: var(--btn-radius); background: var(--color-destructive); color: #fff; font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border-radius: var(--btn-radius); border: 1px solid var(--color-border); background: var(--color-card); height: var(--btn-height); }
.theme-qty-minus, .theme-qty-plus { padding: 0 1rem; height: 100%; transition: background .2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
.theme-qty-input { width: 3.5rem; text-align: center; background: transparent; border: none; height: 100%; -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-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.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: 0.9375rem !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
	flex: 1 1 auto;
	min-width: 160px;
}
.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;
}
.single-product .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; }

/* Variations table */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.75rem; font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; color: #e2e8f0; }
.single-product .variations tbody td.value { padding-top: 0; }
.single-product .variations tbody tr { margin-bottom: 1.5rem; }
.single-product .variations { margin-bottom: 0; }
.single-product .variations select:not(.theme-attr-select-hidden) {
	width: 100%;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border-radius: var(--btn-radius);
	border: 1px solid var(--color-border);
	background-color: var(--color-card);
	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='%23e5eaf0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1.25rem center;
	background-size: 1rem 1rem;
	padding: 0.75rem 3rem 0.75rem 1.25rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--color-foreground);
	cursor: pointer;
	transition: border-color 0.2s ease;
	color-scheme: dark;
}
.single-product .variations select:not(.theme-attr-select-hidden):hover {
	border-color: color-mix(in srgb, var(--color-foreground) 40%, var(--color-border));
}
.single-product .variations select:not(.theme-attr-select-hidden):focus {
	outline: none;
	border-color: var(--color-foreground);
}
.single-product .variations select:not(.theme-attr-select-hidden) option {
	background-color: var(--color-card);
	color: var(--color-foreground);
	padding: 0.5rem 0.75rem;
}
.single-product .variations select:not(.theme-attr-select-hidden) option:checked {
	background-color: color-mix(in srgb, var(--color-foreground) 10%, var(--color-card));
}
.theme-attr-select-hidden { display: none !important; }
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.theme-attr-pills--color { gap: 0.75rem; }
.theme-attr-pill {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	border: 1px solid var(--color-border);
	border-radius: 9999px;
	color: var(--color-foreground);
	transition: all .2s ease;
}
.theme-attr-pill:hover { border-color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-attr-pill.is-selected { border-color: var(--color-foreground); background: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
.theme-attr-pills--color .theme-attr-pill.is-selected {
	border-color: var(--color-primary);
	background: color-mix(in srgb, var(--color-primary) 5%, transparent);
	color: var(--color-foreground);
}
.theme-attr-pill-swatch { width: 0.75rem; height: 0.75rem; border-radius: 50%; border: 1px solid var(--color-border); display: inline-block; flex-shrink: 0; }

.theme-product-tabs { margin-top: 2.5rem; }
.theme-product-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem 1rem;
	border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 30%, transparent);
	padding-bottom: 0.5rem;
}
@media (min-width: 640px) { .theme-product-tabs-nav { gap: 1rem 1.5rem; } }
.theme-product-tab { position: relative; font-family: var(--font-display); font-size: 0.875rem; padding-bottom: 0.5rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); white-space: nowrap; transition: color .2s ease; }
@media (min-width: 768px) { .theme-product-tab { font-size: 1rem; } }
.theme-product-tab:hover { color: var(--color-foreground); }
.theme-product-tab.is-active { color: var(--color-accent); }
.theme-product-tab.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; background: var(--color-foreground); }
.theme-product-tab-panel { display: none; padding-top: 1.5rem; font-size: 15px; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.6; overflow-wrap: break-word; word-break: break-word; }
.theme-product-tab-panel.is-active { display: block; }
.theme-product-description p { margin-bottom: 1em; white-space: pre-line; }
.theme-product-details-list ul { list-style: none; padding: 0; }
.theme-product-details-list li { position: relative; padding-left: 1.25rem; margin-bottom: 0.5rem; }
.theme-product-details-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 4px; height: 4px; border-radius: 50%; background: var(--color-foreground); }

/* Responsive layout safety (Section 11.13) */
.single-product .theme-product-thumbnails { max-width: 100%; }

/* -----------------------------------------------------------------------
   Related products
   --------------------------------------------------------------------- */
.related-products-section { padding-block: 5rem; border-top: 1px solid var(--color-border); margin-top: 4rem; }
.theme-related-header { text-align: center; margin-bottom: 3rem; }
.theme-related-header .section-heading { font-size: 1.875rem; font-weight: 700; }
@media (min-width: 768px) { .theme-related-header .section-heading { font-size: 2.25rem; } }

/* -----------------------------------------------------------------------
   Shop archive (WooCommerce categories, tags)
   --------------------------------------------------------------------- */
.theme-shop-archive { padding-block: 3rem 6rem; }
.theme-shop-archive-title { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 2rem; }
.theme-shop-empty { text-align: center; padding: 4rem 0; color: var(--color-muted-foreground); }
.theme-shop-pagination { margin-top: 3rem; text-align: center; }

/* -----------------------------------------------------------------------
   404
   --------------------------------------------------------------------- */
.theme-404-main { min-height: 60vh; display: flex; align-items: center; justify-content: center; background-image: linear-gradient(to right, color-mix(in srgb, var(--color-grid-line) 50%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--color-grid-line) 50%, transparent) 1px, transparent 1px); background-size: 56px 56px; }
.theme-404-inner { text-align: center; }
.theme-404-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.theme-404-text { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-404-link { color: var(--color-primary); text-decoration: underline; }
.theme-404-link:hover { color: color-mix(in srgb, var(--color-primary) 90%, transparent); }

/* -----------------------------------------------------------------------
   Generic page template
   --------------------------------------------------------------------- */
.theme-page-main { padding-block: 3rem 6rem; }
.page-title { font-family: var(--font-display); font-size: 2.25rem; margin-bottom: 2rem; }
.theme-index-main { padding-block: 3rem 6rem; }
.theme-index-article { margin-bottom: 2.5rem; }
.theme-index-title a { font-family: var(--font-display); font-size: 1.5rem; }

/* -----------------------------------------------------------------------
   WooCommerce notices — scoped visibility (Section 14.1)
   --------------------------------------------------------------------- */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--btn-radius);
	padding: 1rem 1.25rem;
	color: var(--color-foreground);
	font-size: 0.9375rem;
	list-style: none;
	margin: 0 0 1.5rem;
}
.woocommerce-error { border-color: var(--color-destructive); }

/* -----------------------------------------------------------------------
   WooCommerce Checkout Block overrides
   --------------------------------------------------------------------- */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .theme-checkout-main { padding-top: var(--header-height); padding-bottom: 4rem; }

.theme-checkout-header { margin-bottom: 2.5rem; }
.theme-checkout-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 2rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	transition: color 0.2s ease;
}
.theme-checkout-back-link:hover { color: var(--color-foreground); }
.theme-checkout-title {
	font-family: var(--font-display);
	font-size: 1.875rem;
	font-weight: 700;
	margin: 0 0 1rem;
}
@media (min-width: 768px) { .theme-checkout-title { font-size: 2.25rem; } }
.theme-checkout-intro {
	margin: 0 0 2.5rem;
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--color-muted-foreground);
	line-height: 1.6;
}

/* Neutralize parent width constraints on checkout pages. */
body.woocommerce-checkout .theme-page-main > .container-wide,
body.woocommerce-checkout .theme-checkout-main > .container-wide,
.entry-content:has(.wc-block-checkout) {
	max-width: none;
	width: 100%;
}

body.woocommerce-checkout .entry-content,
.entry-content:has(.wc-block-checkout) {
	max-width: none;
	width: 100%;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout {
	max-width: 1280px;
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
	max-width: 1280px;
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-components-notice-banner {
	grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-components-notice-banner {
	grid-column: 1 / -1;
}

/* Checkout root: span full row; preserve WC container queries (#60714). */
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout {
	width: 100%;
	min-width: 0;
}

/* 2-column layout on the inner layout wrapper only — never on .wc-block-checkout itself. */
@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: minmax(0, 1fr) minmax(min(280px, 100%), 400px);
		gap: var(--checkout-gap);
		align-items: start;
		flex-direction: unset;
		flex-wrap: nowrap;
		margin: 0;
	}

	/* Fallback when main/sidebar are direct children of the checkout block. */
	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: minmax(0, 1fr) minmax(min(280px, 100%), 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;
	}

	/* Undo WC flex % widths so grid columns don't overlap. */
	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,
	body.woocommerce-checkout .wc-block-checkout > .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout > .wc-block-checkout__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,
	.entry-content .wc-block-checkout > .wc-block-checkout__main,
	.entry-content .wc-block-checkout > .wc-block-checkout__sidebar {
		width: auto !important;
		max-width: 100%;
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
		box-sizing: border-box;
	}
}

/* Sidebar wrappers stay transparent; card bg only on order summary. */
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,
.entry-content .wp-block-woocommerce-checkout-totals-block {
	background: transparent;
	border-radius: 0;
	padding: 0;
}

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-card);
	border-radius: var(--card-radius);
	padding: var(--section-padding);
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-checkout-empty,
.entry-content .wc-block-checkout-empty {
	margin-inline: auto;
	max-width: 36rem;
	width: 100%;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
}

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-components-text-input input,
.entry-content .wc-block-components-select select,
.entry-content .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
	border-radius: var(--btn-radius);
	background-color: var(--color-card);
	box-sizing: border-box;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
.entry-content .wc-block-components-text-input input:focus,
.entry-content .wc-block-components-select select:focus { border-color: var(--color-accent); }
body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
.entry-content .wc-block-components-text-input input::placeholder { color: var(--color-muted-foreground); }

body.woocommerce-checkout .wc-block-checkout .wc-block-components-text-input label,
.entry-content .wc-block-checkout .wc-block-components-text-input label {
	color: #000;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-mono) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.14em !important;
}

/* -----------------------------------------------------------------------
   Cart / My Account / Order Received width parity (Section 13.7)
   --------------------------------------------------------------------- */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
body.theme-thankyou-page .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }

/* -----------------------------------------------------------------------
   Thank you page (Section 22.8)
   --------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: clip; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details { color: var(--color-foreground); }
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; margin: 1.5rem 0 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
	border: 1px solid var(--color-border);
	background: var(--color-card);
	border-radius: var(--btn-radius);
	padding: 1rem 1.25rem;
	font-size: 0.875rem;
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-family: var(--font-display); font-size: 1.5rem; padding: 0 0 1rem 0; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td { padding: 0.75rem; border-bottom: 1px solid var(--color-border); text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
@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; border: 1px solid var(--color-border); border-radius: var(--btn-radius); padding: 1.25rem; background: var(--color-card); }

/* -----------------------------------------------------------------------
   Customizer preview stability
   --------------------------------------------------------------------- */
@media (max-width: 1023px) {
	body.is-customizer .theme-mobile-menu.is-open { display: block; }
}

/* -----------------------------------------------------------------------
   Responsive overflow guards
   --------------------------------------------------------------------- */
.site-main,
.theme-home-main,
.theme-page-main,
.single-product-main,
.theme-shop-archive,
.theme-checkout-page,
.entry-content,
.site-footer {
	max-width: 100%;
	min-width: 0;
	overflow-x: clip;
}

.theme-hero-title,
.theme-product-title,
.theme-shop-archive-title,
.section-heading {
	overflow-wrap: break-word;
	word-break: break-word;
}

.theme-hero-inner,
.theme-offerings-inner,
.theme-shop-inner,
.theme-capabilities-inner,
.theme-custom-orders-inner,
.theme-about-inner,
.theme-nathan-inner,
.theme-faq-inner,
.theme-contact-inner {
	min-width: 0;
	max-width: 100%;
}

.theme-offerings-header,
.theme-shop-header,
.theme-contact-ctas,
.theme-custom-orders-ctas {
	min-width: 0;
}

.theme-shop-search-input,
.theme-modal-form input,
.theme-modal-form textarea,
.theme-modal-form select {
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 639px) {
	.single_add_to_cart_button.button,
	.add_to_cart_button.button,
	a.single_add_to_cart_button,
	a.add_to_cart_button {
		min-width: 0;
		width: 100%;
	}

	.theme-add-to-cart-area {
		flex-direction: column;
		align-items: stretch;
	}

	.site-brand {
		max-width: calc(100% - 5.5rem);
	}
}

@media (max-width: 399px) {
	.theme-hero-stats {
		grid-template-columns: 1fr;
	}
}
