@font-face {
	font-family: "RedHatDisplay";
	font-weight: 100 900;
	font-style: normal;
	src: url("/assets/fonts/RedHatDisplay-VariableFont_wght.ttf"),
		local("Red Hat Display");
}

@font-face {
	font-family: "RedHatDisplay";
	font-weight: 100 900;
	font-style: italic;
	src: url("/assets/fonts/RedHatDisplay-Italic-VariableFont_wght.ttf"),
		local("Red Hat Display Italic");
}



:root {
	/* Color tokens */
	--color-bg: #0f172a;
	--color-surface: #1e293b; 
	--color-card-background: #26344b;
	--color-text: #e2e8f0;
	--color-text-muted: #f3f3f3;
	--color-text-muted2: #adadad;
	--color-primary: #7547ff;  /* Snapsphere purple */
	--color-primary-hover: #7e5bee;
	--color-not-selected: #a39db4;
	--color-border: #334155;
	--color-link: #b3c4db;
	--color-link-hover: #d4d7db;
	--title-background-color: #414e59;  /* silver */

	/* Typography */
	/* "Red Hat Display",  */
	--font-family-base: 
		"Segoe UI",
		Tahoma, 
		Geneva, 
		Verdana, 
		sans-serif;
	--font-size-base: 16px;
	--line-height-base: 1.5;

	/* Spacing */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-6: 1.5rem;
	--space-8: 2rem;

	/* Layout + effects */
	--radius-sm: 6px;
	--radius-md: 10px;
	--container-max-width: 1200px;
	--feature-max-width: 1400px;
	--shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.2);

	/*
	 * Seamless horizontal pan: preserve aspect ratio with background-size: auto 100vh.
	 * Set native pixel size of one full wrap in the image file (width ÷ height).
	 * Pan distance = 100vh * (width / height) = exact drawn tile width in CSS pixels.
	 */
	--bg-source-w: 1200;
	--bg-source-h: 600;
	--bg-pan-duration: 1220s;
	/* Horizontal start offset - nudge the tiled background graphic right without breaking the loop. */
	--bg-pan-offset: -25vw;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background-color: var(--color-bg);
	overflow-x: hidden;
}

html,
body {
	margin: 0;
	padding: 0;
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	color: var(--color-text);
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	position: relative;
	background-color: transparent;
}

/* Tiled strip (repeat-x): pan one exact tile width so loop is invisible when L/R edges match. */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-color: transparent;
	background-image: url('/images/as360_hi-contrast.jpg'); /*url('/images/background-trans.png');*/
	background-repeat: repeat-x;
	background-size: auto 100vh;
	background-position: var(--bg-pan-offset) center;
	/* Animate background-position, not transform: moving the whole layer leaves empty viewport. */
	will-change: background-position;
	animation: bg-pan-seamless var(--bg-pan-duration) linear infinite;
}

#main-vue-container,
.not-found-page,
.home-hero,
.home-tagline,
.home-subtagline,
.intro-text {
	position: relative;
	z-index: 1;
}

.intro-text {
	max-width: var(--feature-max-width);
	margin: 0 auto;
	padding: var(--space-4) var(--space-6) var(--space-4);
	text-align: center;
}

@keyframes bg-pan-seamless {
	from {
		background-position: var(--bg-pan-offset) center;
	}
	to {
		background-position: calc(var(--bg-pan-offset) + 100vh * var(--bg-source-w) / var(--bg-source-h)) center;
	}
}

@media (prefers-reduced-motion: reduce) {
	body::before {
		animation: none;
		background-position: var(--bg-pan-offset) center;
	}
}

#main-vue-container,
.not-found-page {
	max-width: var(--container-max-width);
	margin: var(--space-2) auto;
	padding: var(--space-2);
	flex: 1 0 auto;
	width: 100%;
	box-sizing: border-box;
}

.not-found-copy {
	margin-top: var(--space-2);
}

.not-found-copy p {
	font-size: 1.125rem;
}

/*
 * FOUC guard without display:none (which some bots treat as absent content).
 * Content stays in the HTML source and document; we only fade it in after Vue mounts.
 * <noscript> forces visibility when JS is off.
 */
#main-vue-container:not(.is-ready) {
	opacity: 0;
}

#main-vue-container.is-ready {
	opacity: 1;
}

h1,
h2,
h3 {
	margin-top: 0;
	margin-bottom: var(--space-3);
	line-height: 1.2;
}

p {
	margin-top: var(--space-2);
	margin-bottom: var(--space-2);
	color: var(--color-text-muted);
}

a {
	color: var(--color-link);
	text-decoration: none;
}

a:hover {
	color: var(--color-link-hover);
	text-decoration: underline;
}

/* Inline actions that are not <a> (e.g. Vue @click on a span); pair with role="button" when keyboard-focused. */
.text-link {
	color: var(--color-link);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.12em;
	font-weight: 600;
}

.text-link:hover {
	color: var(--color-link-hover);
}

.text-link:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
	border-radius: 2px;
}

.text-link[aria-disabled="true"] {
	color: var(--color-text-muted);
	cursor: not-allowed;
	text-decoration: none;
	pointer-events: none;
}

.globe-viewer {
	margin: var(--space-4) auto;
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
}


/* -- HEADER STYLES -- */
.site-header {
	position: relative;
	width: 100%;
	max-width: none;
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
	box-shadow: var(--shadow-sm);
}

.site-header-inner {
	width: 100%;
	box-sizing: border-box;
	padding: var(--space-3) var(--space-6);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-6);
}

.site-header-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-4);
	flex: 1;
	min-width: 0;
}

.list {
	margin-left: -15px;
}

.list-item-label {
	font-variant: small-caps;
	font-weight: bold;
}

/* --- CART ---------- */
.site-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	color: var(--color-text-muted);
	text-decoration: none;
}

.site-cart:hover {
	color: var(--color-primary);
	text-decoration: none;
}

.site-cart-icon {
	font-size: 1.35rem;
	line-height: 1;
}

.site-cart-count {
	position: absolute;
	top: 2px;
	right: -2px;
	min-width: 1.3rem;
	height: 1.3rem;
	padding: 0 4px;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.2rem;
	text-align: center;
	color: var(--color-text);
	background: color-mix(in srgb, var(--color-primary) 80%, transparent); /* transparent background, --color-primary unchanged */
	border-radius: 999px;
}

.site-cart--mobile {
	position: relative;
	justify-content: flex-start;
	width: 100%;
	min-height: auto;
	padding: var(--space-3) var(--space-6);
	border-top: 1px solid var(--color-border);
	gap: var(--space-2);
	color: var(--color-text-muted);
	font-weight: 500;
}

.site-cart-count--inline {
	position: static;
	margin-left: auto;
	min-width: 1.25rem;
	height: 1.25rem;
	line-height: 1.25rem;
	font-size: 0.7rem;
}

/* --- LOGO -------------- */

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	color: var(--color-text);
	text-decoration: none;
	font-weight: 600;
}

.site-logo:hover {
	color: var(--color-text);
	text-decoration: none;
}

.site-logo img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.site-logo-text {
	font-size: 1.125rem;
	letter-spacing: -0.02em;
}


/* Full-width hero on home.html */
.home-hero {
	position: relative;
	width: 100%;
	max-width: var(--feature-max-width);
	margin: 0 auto;
	max-height: min(52vh, 360px);
	overflow: hidden;
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
}

.home-hero-img {
	display: block;
	width: 100%;
	height: min(52vh, 360px);
	object-fit: cover;
	object-position: center;
}

/* Earth and Space store link - flush to hero image right edge; slides in on load. */
.home-hero-store-btn {
	position: absolute;
	right: 0;
	bottom: var(--space-4);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	max-width: calc(100% - var(--space-4));
	padding: var(--space-2) var(--space-4);
	border: 0;
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
	background: #246dc0;
	color: #272e29;
	font-family: inherit;
	font-size: clamp(0.95rem, 2.8vw, 1.15rem);
	font-weight: 600;
	font-variant: small-caps;
	letter-spacing: 0.03em;
	line-height: 1.25;
	text-decoration: none;
	text-align: left;
	box-shadow: var(--shadow-sm);
	transform: translateX(100%);
	opacity: 0;
}

#main-vue-container.is-ready .home-hero-store-btn {
	animation: home-hero-store-slide-in 0.75s ease-out forwards;
}

#main-vue-container.is-ready .home-hero-store-btn-label,
#main-vue-container.is-ready .home-hero-store-btn-icon {
	animation: home-hero-store-text-pulse 5s ease-in-out 0.75s infinite;
}

@keyframes home-hero-store-slide-in {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes home-hero-store-text-pulse {
	0%,
	100% {
		filter: brightness(0.8);
	}
	50% {
		filter: brightness(1.3);
	}
}

/* The arrow in the 'Earth and Space Store' link. */
.home-hero-store-btn-icon {
	display: inline-flex;
	align-items: center;
	font-size: 1.05em;
	line-height: 1;
	font-variant: normal;
	letter-spacing: 0;
	transform: translateY(0.12em);
	color: inherit;
}

.home-hero-store-btn:hover {
	background: #346cac;
	color: #272e29;
}

.home-hero-store-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.home-hero-store-btn {
		bottom: var(--space-3);
		padding: var(--space-2) var(--space-3);
		max-width: calc(100% - var(--space-3));
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-hero-store-btn {
		transform: none;
		opacity: 1;
	}

	#main-vue-container.is-ready .home-hero-store-btn,
	#main-vue-container.is-ready .home-hero-store-btn-label,
	#main-vue-container.is-ready .home-hero-store-btn-icon {
		animation: none;
		filter: none;
	}
}

/* Main tagline on home.html */
.home-tagline {
	max-width: var(--feature-max-width);
	margin: 0 auto;
	padding: var(--space-2) var(--space-2) var(--space-6);
	text-align: center;
}

.home-tagline-logo {
	display: block;
	width: clamp(8rem, 40vw, 14rem);
	max-width: 100%;
	height: auto;
	margin: 0 auto var(--space-4);
	margin-bottom: 2px;
}

.home-tagline p {
	margin: 0;
	color: #ccd8e9;
	font-size: clamp(1.15rem, 7vw, 3rem);
	font-weight: 700;
	font-variant: small-caps;
	line-height: 1.1;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

/* Soft silver sheen - occasional light band, then rests (not a constant shimmer). */
.home-tagline-glint,
.card-title a,
.home-contact-section > .card-title,
.custom-sidebar-heading > span {
	background-size: 240% 100%;
	background-position: 130% 50%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	animation: text-glint 8s ease-in-out infinite;
}

.home-tagline-glint {
	background-image: linear-gradient(
		105deg,
		#7f8b9c 0%,
		#9aa6b6 28%,
		#c5ced9 42%,
		#f2f5f8 50%,
		#c5ced9 58%,
		#9aa6b6 72%,
		#7f8b9c 100%
	);
}

/* Card / sidebar titles rest brighter so they stay readable between glints. */
.card-title a,
.home-contact-section > .card-title,
.custom-sidebar-heading > span {
	background-image: linear-gradient(
		105deg,
		#c5ced9 0%,
		#d7dee8 28%,
		#eef2f7 42%,
		#ffffff 50%,
		#eef2f7 58%,
		#d7dee8 72%,
		#c5ced9 100%
	);
}

@keyframes text-glint {
	0%,
	62% {
		background-position: 130% 50%;
	}
	78% {
		background-position: -5% 50%;
	}
	100% {
		background-position: -5% 50%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-tagline-glint,
	.card-title a,
	.home-contact-section > .card-title,
	.custom-sidebar-heading > span {
		animation: none;
		background-position: 70% 50%;
	}
}

/* Secondary line under the home tagline - centered, smaller type */
.home-subtagline {
	max-width: var(--feature-max-width);
	margin: 0 auto;
	padding: 0 var(--space-6) var(--space-8);
	text-align: center;
}

.home-subtagline p {
	margin: 0;
	color: var(--color-text-muted);
	font-size: clamp(1.2rem, 2.0vw + 0.15rem, 2.0rem);
	font-weight: 500;
	line-height: 1.3;
	font-style: italic;
	margin-top: var(--space-4);
}

/* General bordered panel - same border, radius, and fill as .card / .product-card (add padding as needed). */
.bordered {
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
	background-color: var(--color-card-background);
	color: var(--color-text);
	padding: var(--space-4);
}

/* Dim inactive UI (panels, wrappers). Combine with aria-disabled on the region for assistive tech. */
.is-disabled {
	filter: brightness(0.52);
	pointer-events: none;
	user-select: none;
	transition: filter 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
	.is-disabled {
		transition: none;
	}
}

/* custom.html - topic links under intro */
.custom-subjects {
	max-width: 1050px;
	margin: 0 auto var(--space-6);
	padding: 0 var(--space-4);
}

.custom-subject-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-4);
	margin-bottom: var(--space-3);
}

.custom-subject-link {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
}

.custom-subject-link.is-active {
	color: var(--color-text);
	text-decoration-thickness: 2px;
}

.custom-subject-panel {
	position: relative;
	margin-top: var(--space-2);
	padding-right: 2.5rem;
}

.custom-subject-close {
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: none;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--color-text-muted);
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
}

.custom-subject-close:hover {
	color: var(--color-text);
	background: rgba(163, 157, 180, 0.2);
}

.custom-subject-close:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.custom-subject-panel p {
	font-variant: small-caps;
	margin-top: -10px;
	font-size: 1.2rem;
}

.custom-subject-panel div {
	margin-top: 5px;
}

.custom-subject-title {
	font-size: 0.9rem;
	color: var(--color-text);
	background-color: var(--title-background-color);
	font-variant: small-caps;
	padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 8px;
	margin-bottom: 5px;
	margin-top: -8px;
	margin-left: -10px;
	border-radius: 5px;
}

.custom-subject-list {
	margin: 0;
	padding-left: 1.25rem;
	color: var(--color-text-muted);
	line-height: var(--line-height-base);
}

.custom-subject-list li + li {
	margin-top: var(--space-2);
}

/* custom.html - source tabs under title */
.custom-sources {
	max-width: var(--container-max-width);
	margin: 0 auto var(--space-8);
	padding: 0 var(--space-4);
}

.custom-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-2);
	margin-bottom: var(--space-4);
}

.custom-tab {
	min-width: 5.25rem;
	padding: var(--space-2) var(--space-4);
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--color-not-selected);
	color: var(--color-text);
	font-weight: 600;
	font-family: inherit;
	font-size: 0.9375rem;
	cursor: pointer;
	line-height: 1.2;
}

.custom-tab:hover {
	background: rgba(163, 157, 180, 0.85);
}

.custom-tab.is-active {
	background: var(--color-primary);
	color: #06220f;
}

.custom-tab.is-active:hover {
	background: var(--color-primary-hover);
}

.custom-tab-panels {
	min-height: 6rem;
}

.custom-tab-panel-title {
	margin: 0 0 var(--space-3);
	font-size: 1.125rem;
	color: var(--color-text);
}

.custom-tab-panel-text {
	margin: 0;
	color: var(--color-text-muted);
	line-height: var(--line-height-base);
}

/* custom.html - canvas + sidebar; wide: sidebar left, canvas right; narrow: canvas above */
.custom-viewer-layout {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-4);
	margin-top: var(--space-4);
}

.custom-viewer-canvas-col {
	display: flex;
	justify-content: center;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.custom-viewer-canvas-col .globe-viewer {
	margin-block: 0;
	margin-inline: auto;
	display: block;
	width: 100%;
	max-width: 500px;
	height: auto;
	aspect-ratio: 1;
}

/* Contact form: overlay nav on the globe canvas (pointer-events: none on bar, auto on buttons). */
.contact-viewer-canvas-wrap {
	position: relative;
	display: inline-block;
	max-width: 100%;
}

.contact-viewer-canvas-wrap .globe-viewer {
	display: block;
}

.contact-viewer-nav {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-2) var(--space-3);
	pointer-events: none;
}

/* Prefixed with `button.` so generic `button` rules later in this file don't override overlay arrows. */
button.contact-viewer-nav-btn {
	appearance: none;
	margin: 0;
	margin-bottom: 4px;
	padding: 0.35rem 0.6rem;
	font: inherit;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 0.8;
	color: var(--color-bg);
	background: var(--color-text);
	border: 1px solid #a9aebd;
	border-radius: var(--radius-sm);
	cursor: pointer;
	pointer-events: auto;
	box-shadow: var(--shadow-sm);
}

button.contact-viewer-nav-btn:hover {
	background: #f8fafc;
	color: var(--color-bg);
	border-color: var(--color-primary);
}

button.contact-viewer-nav-btn:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.custom-viewer-sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.custom-viewer-sidebar .custom-sidebar-heading {
	font-size: 1.1rem;
	color: var(--color-text);
	background-color: var(--title-background-color);
	font-variant: small-caps;
	padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 5px;
	margin-bottom: 0px;
	margin-top: -8px;
	margin-left: -10px;
	border-radius: 5px;
}

.custom-viewer-sidebar .custom-sidebar-heading:not(:first-child) {
	margin-top: var(--space-4);
}

.custom-viewer-sidebar .custom-sidebar-text {
	color: var(--color-text-muted);
	font-size: 0.9375rem;
	line-height: var(--line-height-base);
}

.custom-viewer-sidebar .custom-sidebar-text--secondary {
	margin-top: var(--space-2);
	font-style: italic;
}

.custom-viewer-sidebar .custom-sidebar-error {
	margin-top: var(--space-2);
	margin-bottom: 0;
	font-style: normal;
	color: #f87171;
	font-size: 0.875rem;
}

/* Step 3: reuse product-card footer controls inside the custom sidebar */
.custom-sidebar-order-footer {
	margin-top: var(--space-3);
}

.custom-sidebar-checkbox {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	margin-top: 0;
	font-size: 0.9375rem;
	color: var(--color-text-muted2);
	cursor: pointer;
	user-select: none;
	pointer-events: auto;
}

.custom-sidebar-checkbox input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: var(--color-primary);
	cursor: pointer;
}

.custom-sidebar-ui-dummy {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	align-items: center;
}

.custom-sidebar-dummy-control {
	display: inline-block;
	width: 5rem;
	height: 2.25rem;
	border-radius: var(--radius-sm);
	background: var(--color-not-selected);
	border: 1px dashed var(--color-border);
	opacity: 0.85;
}

@media (min-width: 900px) {
	.custom-viewer-layout {
		flex-direction: row-reverse;
		align-items: flex-start;
		justify-content: center;
		gap: var(--space-6);
	}

	.custom-viewer-canvas-col {
		flex: 0 0 auto;
		width: auto;
		max-width: none;
	}

	.custom-viewer-canvas-col .globe-viewer {
		width: 500px;
		max-width: 500px;
	}

	.custom-viewer-sidebar {
		flex: 0 1 30rem;
		max-width: 32rem;
		align-self: stretch;
	}
}

/* -- GENERAL CARD ---------------------- */

/* Reusable single-column card section. */
.card {
	width: 100%;
	margin-bottom: 25px;
	padding: var(--space-4);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: rgba(15, 23, 42, 0.4);
	color: var(--color-text);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: var(--space-4);
	align-items: start;
	background-color: var(--color-card-background);
}

.card:last-child {
	margin-bottom: 0;
}

.card-content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.card-title {
	margin: 0 0 var(--space-2);
	margin-left: -8px;
	color: var(--color-text);
	cursor: pointer;
	background-color: var(--title-background-color);
	font-variant: small-caps;
	padding-left: 8px;
	padding-top: 5px;
	padding-bottom: 5px;
	border-radius: 5px;
}

.card-title a {
	color: var(--color-text);
	text-decoration: none;
	letter-spacing: 0.03em;
}

.card-title a::first-letter {
	font-size: 1.5em;
	vertical-align: top;
}

.card-title a:hover {
	color: transparent;
	-webkit-text-fill-color: transparent;
	text-decoration: none;
	filter: brightness(1.2);
}

.card-text {
	margin: 0;
	color: var(--color-text-muted);
}

.card-footer {
	margin-top: auto;
	padding-top: var(--space-4);
}

.card-footer .button-row {
	margin-bottom: 0;
}

.card-image {
	width: 100%;
	height: 240px;
	object-fit: cover;
	border-radius: var(--radius-sm);
	border: 1px solid var(--color-border);
}

@media (max-width: 767px) {
	.card {
		grid-template-columns: 1fr;
	}

	.card-image {
		height: 240px;
	}
}

/* -- GALLERY CARD -- */

.gallery-media-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-6);
	max-width: var(--feature-max-width);
	margin: 0 auto var(--space-8);
}

.gallery-media-card {
	margin: 0;
	padding: var(--space-3);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
	background-color: var(--color-card-background);
}

.gallery-media-card-media {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	object-position: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: #000;
}

.gallery-media-card-caption {
	margin: var(--space-3) 0 0;
	color: var(--color-text-muted);
	font-size: 0.97rem;
	line-height: 1.5;
}

@media (max-width: 900px) {
	.gallery-media-grid {
		grid-template-columns: 1fr;
	}
}

/* Tradeshow image + assembly video row (home.html). */
.home-solo-gallery-video {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: var(--space-6);
	max-width: var(--feature-max-width);
	margin: 0 auto var(--space-8);
	padding: 0 var(--space-4);
}

.home-solo-gallery-video .gallery-media-card {
	flex: 1 1 0;
	width: 100%;
	/* Slightly under half the feature width (gallery column × 1.4). */
	max-width: calc(((min(100%, var(--feature-max-width)) - 2 * var(--space-6)) / 3) * 1.4);
	min-width: 0;
}

.home-solo-gallery-video .gallery-media-card-media {
	aspect-ratio: 16 / 9;
}

.home-solo-gallery-video .gallery-media-card-caption {
	text-align: center;
	font-style: italic;
	margin-top: 4px;
}

@media (max-width: 900px) {
	.home-solo-gallery-video {
		flex-direction: column;
		padding: 0;
		max-width: none;
	}

	.home-solo-gallery-video .gallery-media-card {
		max-width: none;
		width: 100%;
		flex: none;
	}
}


/* -- Product Card -------------- */

/* Reusable single-column card section. */
.product-card {
	width: 100%;
	margin-bottom: var(--space-4);
	padding: var(--space-4);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: rgba(15, 23, 42, 0.4);
	color: var(--color-text);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: var(--space-4);
	align-items: start;
	background-color: var(--color-card-background);
}

.product-card:last-child {
	margin-bottom: 0;
}

.product-card-content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.product-card-title {
	margin: 0 0 var(--space-2);
	color: var(--color-text);
}

.product-card-text {
	margin: 0;
	color: var(--color-text-muted);
}

.product-card-footer {
	margin-top: auto;
	padding-top: var(--space-4);
}

.product-card-footer-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: var(--space-4);
	row-gap: var(--space-3);
}

.product-card-variants {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
}

.product-card-variant-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

.product-card-variant-btn {
	min-width: 5.25rem;
	flex: 0 1 auto;
	background: #b6b6b6;
	color: #121212;
}

/* Sits in the variant chip row; sized like a variant button, distinct price styling */
.product-card-variant-list .product-card-price {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 4rem;
	margin-left: var(--space-4);
	padding: var(--space-1) var(--space-4);
	border: 1px solid #334155;
	border-radius: var(--radius-sm);
	/* background: rgba(117, 71, 255, 0.14); */
	color: #f4f1ff;
	font-size: 1.0rem;
	font-weight: normal;
	line-height: 1.1;
	letter-spacing: 0.01em;
	font-variant-numeric: tabular-nums;
	flex: 0 0 auto;
	user-select: none;
	pointer-events: none;
}

.product-card-variant-btn:hover {
	background: rgba(163, 157, 180, 0.85);
}

.product-card-variant-btn.is-selected {
	background: var(--color-primary);
	color: #06220f;
}

.product-card-variant-btn.is-selected:hover {
	background: var(--color-primary-hover);
}

.product-card-size-help-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid var(--color-border);
	border-radius: 50%;
	background: transparent;
	color: var(--color-text-muted);
	cursor: pointer;
	flex: 0 0 auto;
	font-size: 1.125rem;
	line-height: 1;
}

.product-card-size-help-btn:hover {
	color: var(--color-text);
	border-color: var(--color-primary);
	background: rgba(117, 71, 255, 0.12);
}

.product-card-size-help-btn:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.size-help-dialog {
	max-width: min(28rem, calc(100vw - 2rem));
	padding: 0;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	color: var(--color-text);
	box-shadow: var(--shadow-sm);
}

.size-help-dialog::backdrop {
	background: rgba(15, 23, 42, 0.72);
}

.size-help-dialog-panel {
	display: flex;
	flex-direction: column;
}

.size-help-dialog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-4);
	border-bottom: 1px solid var(--color-border);
}

.size-help-dialog-title {
	margin: 0;
	font-size: 1.125rem;
	color: var(--color-text);
}

.size-help-dialog-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: none;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--color-text-muted);
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
}

.size-help-dialog-close:hover {
	color: var(--color-text);
	background: rgba(163, 157, 180, 0.2);
}

.size-help-dialog-close:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.size-help-dialog-body {
	padding: var(--space-4);
	color: var(--color-text-muted);
	line-height: var(--line-height-base);
}

.size-help-dialog-body ul {
	margin: 0;
	padding-left: 1.25rem;
}

.product-card-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-3) var(--space-4);
	flex: 0 0 auto;
	margin-left: auto;
}

.product-card-qty-row {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
}

.product-card-qty-label {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-text-muted);
}

.product-card-total-label {
	margin: 0;
	margin-right: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-text-muted);
}

.product-card-total {
	color: var(--color-text);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	font-size: 1.3rem;
	line-height: 1.1;
	letter-spacing: 0.01em;
	width: 60px;
	text-align: right;
}

.product-card-buy {
	flex-shrink: 0;
}

.product-card-buy:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.product-card-buy:disabled:hover {
	background: var(--color-primary);
}

.product-card-no-variant {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--color-text-muted);
}

.product-card-media {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.product-card-image-wrap {
	position: relative;
	display: block;
	width: 100%;
}

.product-card-image {
	width: 100%;
	height: 240px;
	object-fit: cover;
	border-radius: var(--radius-sm);
	border: 1px solid var(--color-border);
}

.product-card-video {
	width: 100%;
	max-height: 240px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--color-border);
	background: #000;
	object-fit: contain;
}

.product-card-video-embed {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--radius-sm);
	border: 1px solid var(--color-border);
	background: #000;
}

@media (max-width: 767px) {
	.product-card {
		grid-template-columns: 1fr;
	}

	.product-card-image {
		height: 240px;
	}
}

/* -- BUTTON STYLES -- */
button {
	border: 0;
	border-radius: var(--radius-sm);
	padding: var(--space-2) var(--space-4);
	background: var(--color-primary);
	color: #06220f;
	font-weight: 600;
	cursor: pointer;
}

button:hover {
	background: var(--color-primary-hover);
}

.button-row {
	display: flex;
	gap: var(--space-3);
	margin-bottom: var(--space-6);
	flex-wrap: wrap;
}

.button-secondary {
	background: transparent;
	color: var(--color-text);
	border: 1px solid var(--color-border);
}

.button-secondary:hover {
	background: rgba(148, 163, 184, 0.12);
}


/* -- The Quantity Selector Component (quantity-stepper.js) -------------- */
.qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	overflow: hidden;
	vertical-align: middle;
}

.qty-stepper-btn {
	min-width: 1.9rem;
	height: 1.9rem;
	padding: 0;
	border-radius: 0;
	background: rgba(148, 163, 184, 0.12);
	color: var(--color-text);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
}

.qty-stepper-btn:hover {
	background: rgba(148, 163, 184, 0.2);
}

.qty-stepper-input {
	width: 2.3rem;
	height: 1.9rem;
	border: 0;
	border-left: 1px solid var(--color-border);
	border-right: 1px solid var(--color-border);
	background: rgba(15, 23, 42, 0.65);
	color: var(--color-text);
	text-align: center;
	font-weight: 600;
	-moz-appearance: textfield;
	appearance: textfield;
}

.qty-stepper-input::-webkit-outer-spin-button,
.qty-stepper-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.qty-stepper-input:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: -2px;
}

/* -- Cart page (cart.html) -- */
.cart-page-status {
	text-align: center;
	margin-bottom: var(--space-4);
}

.cart-line-list {
	list-style: none;
	margin: 0 auto var(--space-6);
	padding: 0;
	max-width: var(--container-max-width);
}

.cart-line {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto auto;
	gap: var(--space-4);
	align-items: center;
	margin-bottom: var(--space-4);
	padding: var(--space-4);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
	background-color: var(--color-card-background);
}

.cart-line:last-child {
	margin-bottom: 0;
}

.cart-line-media {
	min-width: 0;
}

.cart-line-image {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: var(--radius-sm);
	border: 1px solid var(--color-border);
}

.cart-line-image--placeholder {
	background: rgba(15, 23, 42, 0.5);
}

.cart-line-body {
	min-width: 0;
}

.cart-line-title {
	margin: 0 0 var(--space-2);
	font-size: 1.125rem;
	color: var(--color-text);
}

.cart-line-variant {
	margin: 0 0 var(--space-2);
	font-size: 0.9375rem;
	color: var(--color-text-muted);
}

.cart-line-price {
	margin: 0;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--color-text);
}

.cart-line-qty {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

.cart-line-qty-label {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-text-muted);
}

.cart-line-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.cart-page-footer {
	max-width: var(--container-max-width);
	margin: 0 auto var(--space-8);
	padding: 0 var(--space-2);
	text-align: right;
}

.cart-page-footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	margin-top: 1rem;
	flex-wrap: wrap;
}

.cart-page-footer-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 40px;
	margin-left: auto;
}

.cart-page-prices-note {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 0.97rem;
	font-style: italic;
	text-align: left;
}

button.cart-clear-btn {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--color-link);
	font: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.12em;
	cursor: pointer;
}

button.cart-clear-btn:hover {
	background: transparent;
	color: var(--color-link-hover);
}

button.cart-clear-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.cart-checkout-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-2) var(--space-6);
	border-radius: var(--radius-sm);
	background: var(--color-primary);
	color: #06220f;
	font-weight: 600;
	text-decoration: none;
}

.cart-checkout-btn:hover {
	background: var(--color-primary-hover);
	text-decoration: none;
}

@media (max-width: 767px) {
	.cart-line {
		grid-template-columns: 80px minmax(0, 1fr);
		grid-template-areas:
			"media body"
			"media qty"
			"actions actions";
	}

	.cart-line-media {
		grid-area: media;
	}

	.cart-line-body {
		grid-area: body;
	}

	.cart-line-qty {
		grid-area: qty;
	}

	.cart-line-actions {
		grid-area: actions;
		justify-content: stretch;
	}

	.cart-line-remove {
		width: 100%;
	}

	.cart-line-image {
		width: 80px;
		height: 80px;
	}
}

/* --- CONTACT FORM -------------- */

.contact-form-wrap {
	display: block;
	margin-top: 10px;
}

.contact-form-wrap.has-image {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: var(--space-4);
	align-items: start;
}

.contact-form {
	width: 100%;
	max-width: none;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3) var(--space-4);
}

.contact-form-field {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.contact-form-field:last-of-type {
	grid-column: 1 / -1;
}

.contact-form-input {
	width: 100%;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: rgba(0, 0, 0, 0.12);
	color: var(--color-text);
	padding: var(--space-2) var(--space-3);
	font: inherit;
}

.contact-form-textarea {
	min-height: 6.5rem;
	resize: vertical;
}

.contact-form-input:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 1px;
}

.contact-form-actions {
	grid-column: 1 / -1;
}

.contact-form-send {
	appearance: none;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	background: var(--color-primary);
	color: var(--color-text);
	font-weight: 700;
	padding: 0.55rem 1.1rem;
	cursor: pointer;
}

.contact-form-send:hover {
	background: var(--color-primary-hover);
}

.contact-form-message {
	grid-column: 1 / -1;
	margin: 0;
}

.contact-form-message--error {
	color: #ffb3b3;
}

.contact-form-message--success {
	color: #9fd9ac;
}

.contact-form-image {
	display: block;
	width: 100%;
	height: 240px;
	object-fit: cover;
	object-position: center;
	margin: 0;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
}

.home-contact-section {
	max-width: var(--container-max-width);
	margin: 0 auto var(--space-8);
	padding: var(--space-4) var(--space-4) var(--space-4);
	background: var(--color-card-background);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
}

.home-contact-title {
	margin: 0 0 var(--space-4);
	text-align: center;
	color: var(--color-text);
}

@media (max-width: 767px) {
	.contact-form-wrap.has-image {
		grid-template-columns: 1fr;
	}

	.contact-form {
		grid-template-columns: 1fr;
	}

	.contact-form-field:last-of-type {
		grid-column: auto;
	}
}


/* -- SITE HEADER ----- */

/* Sticks to the top of the viewport while scrolling (menu bar always visible). */
#site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	width: 100%;
	max-width: var(--feature-max-width);
	margin: 0 auto;
	display: block;
}

.site-header {
	position: relative;
	width: 100%;
	max-width: none;
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
	box-shadow: var(--shadow-sm);
}

.site-header-inner {
	width: 100%;
	box-sizing: border-box;
	padding: var(--space-3) var(--space-6);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-6);
}

.site-header-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-4);
	flex: 1;
	min-width: 0;
}


.site-nav {
	display: flex;
	align-items: center;
}

.site-nav-list {
	display: flex;
	align-items: center;
	gap: var(--space-6);
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav-item {
	position: relative;
}

.site-nav-link,
.site-nav-parent {
	color: var(--color-text-muted);
	font-weight: 500;
	text-decoration: none;
}

.site-nav-link {
	display: inline-flex;
	align-items: center;
}

.site-nav-parent {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	border: 0;
	background: transparent;
	padding: 0;
	font: inherit;
	cursor: pointer;
}

.site-nav-link:hover,
.site-nav-parent:hover,
.site-nav-item.is-active > .site-nav-link,
.site-nav-item.is-active > .site-nav-parent {
	color: var(--color-primary);
	text-decoration: none;
}

.site-subnav {
	display: none;
	position: absolute;
	top: 100%;
	left: auto;
	right: 0;
	min-width: 11rem;
	list-style: none;
	margin: 0;
	padding: var(--space-2) 0;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
	z-index: 150;
}

.site-nav-item--has-submenu:hover .site-subnav,
.site-nav-item--has-submenu:focus-within .site-subnav,
.site-nav-item--submenu-open .site-subnav {
	display: block;
}

.site-subnav-link {
	display: block;
	padding: var(--space-2) var(--space-4);
	color: var(--color-text-muted);
	text-decoration: none;
	white-space: nowrap;
}

.site-subnav-link:hover,
.site-subnav-link.is-active {
	color: var(--color-primary);
	text-decoration: none;
}

.site-mobile-submenu {
	border-top: 1px solid var(--color-border);
}

.site-mobile-submenu-title {
	margin: 0;
	padding: var(--space-3) var(--space-6) var(--space-2);
	color: var(--color-text);
	font-weight: 600;
	font-size: 0.95rem;
}

/* Style used when the navigation menu is collapsed on mobile devices. */
.site-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: var(--space-2);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--color-text);
	cursor: pointer;
}

.site-nav-toggle:hover {
	background: rgba(148, 163, 184, 0.12);
}

.site-nav-toggle-icon {
	font-size: 1.5rem;
	line-height: 1;
}

.site-nav-dropdown {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 100;
	flex-direction: column;
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
	box-shadow: var(--shadow-sm);
}

.site-nav-dropdown.is-open {
	display: flex;
}

.site-nav--mobile {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: var(--space-2) 0;
}

.site-nav--mobile .site-nav-link,
.site-nav--mobile .site-subnav-link--mobile {
	display: block;
	padding: var(--space-3) var(--space-6);
	border-top: 1px solid var(--color-border);
}

.site-nav--mobile .site-nav-link:first-child {
	border-top: 0;
}
/* 
  @media is a CSS at-rule used for defining responsive design rules that apply only if a browser meets certain conditions, such as a minimum or maximum screen width.
  For example, @media (min-width: 768px) { ... } contains CSS that only applies when the screen is at least 768px wide.
  This allows the design to adapt to different devices and screen sizes.
*/
@media (min-width: 768px) {
	.site-nav--desktop {
		display: flex;
	}

	.site-nav-toggle {
		display: none !important;
	}

	.site-nav-dropdown {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.site-nav--desktop {
		display: none;
	}

	.site-nav-toggle {
		display: inline-flex;
	}
}



/* --- SITE FOOTER -------------------- */

#site-footer {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--feature-max-width);
	margin: var(--space-8) auto 0;
	display: block;
	flex-shrink: 0;
}

.site-footer {
	width: 100%;
	background: var(--color-surface);
	border-top: 1px solid var(--color-border);
	box-shadow: var(--shadow-sm);
}

.site-footer-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--space-4);
	width: 100%;
	padding: var(--space-4) var(--space-6);
}

.site-footer-instagram {
	justify-self: start;
}

.site-footer-brand,
.site-footer-copy,
.site-footer-location {
	margin: 0;
	color: var(--color-text-muted);
}

.site-footer-brand {
	font-family: "Tempus Sans ITC";
	color: var(--color-text);
}

.site-footer-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-4);
}

.site-footer-links--center {
	grid-column: 2;
	justify-self: center;
	text-align: center;
}

.site-footer-copy {
	justify-self: end;
	text-align: right;
	font-size: 0.8rem;
}

.site-footer-link,
.site-footer-location {
	display: inline-flex;
	align-items: center;
	margin: 0;
	gap: var(--space-2);
	font-weight: 500;
}

.site-footer-link {
	color: var(--color-text-muted);
	text-decoration: none;
}

.site-footer-link:hover {
	color: var(--color-primary);
	text-decoration: none;
}

.site-footer-contact {
	border-top: 1px solid var(--color-border);
	padding: var(--space-4) var(--space-6) var(--space-6);
}


@media (max-width: 767px) {
	.site-footer-inner {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
	}

	.site-footer-instagram {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
	}

	.site-footer-copy {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		align-self: center;
	}

	.site-footer-links--center {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: center;
		width: 100%;
		justify-content: center;
	}

	.contact-form {
		grid-template-columns: 1fr;
	}

	.contact-form-field:last-of-type {
		grid-column: auto;
	}
}

