/*
Theme Name: Nelson's Fireworks
Theme URI: https://nelsonsfireworks.com
Author: Nelson's Fireworks
Author URI: https://nelsonsfireworks.com
Description: A custom classic/hybrid WordPress theme for Nelson's Fireworks. Built with PHP templates, ACF, custom post types, and block patterns. WooCommerce-ready structure.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nelsons-fireworks
Tags: custom-menu, custom-logo, featured-images, block-patterns, full-site-editing, dark
*/

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */

:root {
	--color-bg: #070b12;
	--color-bg-elevated: #0f1623;
	--color-surface: #161f30;
	--color-surface-hover: #1c2740;
	--color-border: rgba(255, 255, 255, 0.08);
	--color-border-strong: rgba(255, 255, 255, 0.16);

	--color-text: #eef2ff;
	--color-text-muted: #94a3b8;
	--color-text-subtle: #64748b;

	--color-accent: #f59e0b;
	--color-accent-hover: #fbbf24;
	--color-accent-glow: rgba(245, 158, 11, 0.35);
	--color-spark-red: #ef4444;
	--color-spark-purple: #a855f7;
	--color-spark-blue: #38bdf8;

	--color-link: #fbbf24;
	--color-link-hover: #fde68a;
	--color-link-visited: #fcd34d;

	--font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-body: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--font-size-xs: 0.75rem;
	--font-size-sm: 0.875rem;
	--font-size-base: 1rem;
	--font-size-lg: 1.125rem;
	--font-size-xl: 1.25rem;
	--font-size-2xl: 1.5rem;
	--font-size-3xl: clamp(1.875rem, 4vw, 2.5rem);
	--font-size-4xl: clamp(2.25rem, 5vw, 3.25rem);

	--line-height-tight: 1.2;
	--line-height-base: 1.6;
	--line-height-loose: 1.75;

	--space-xs: 0.5rem;
	--space-sm: 0.75rem;
	--space-md: 1rem;
	--space-lg: 1.5rem;
	--space-xl: 2rem;
	--space-2xl: 3rem;
	--space-3xl: 4rem;
	--space-4xl: 6rem;

	--container-max: 72rem;
	--container-narrow: 48rem;
	--container-wide: 90rem;
	--container-padding: clamp(1rem, 4vw, 2rem);

	--radius-sm: 0.375rem;
	--radius-md: 0.625rem;
	--radius-lg: 1rem;
	--radius-pill: 9999px;

	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
	--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
	--shadow-glow: 0 0 24px var(--color-accent-glow);

	--transition-fast: 150ms ease;
	--transition-base: 250ms ease;
}

body.theme-light {
	--color-bg: #f6f8fc;
	--color-bg-elevated: #eef2f8;
	--color-surface: #ffffff;
	--color-surface-hover: #f3f6fb;
	--color-border: #d7deea;
	--color-border-strong: #bac6db;

	--color-text: #0f2342;
	--color-text-muted: #30486b;
	--color-text-subtle: #4e6588;

	--color-accent: #1e3a8a;
	--color-accent-hover: #1d4ed8;
	--color-accent-glow: rgba(30, 58, 138, 0.24);
	--color-spark-red: #b91c1c;
	--color-spark-purple: #5b4db4;
	--color-spark-blue: #1f5aa8;

	--color-link: #1e3a8a;
	--color-link-hover: #1d4ed8;
	--color-link-visited: #4338ca;

	--shadow-sm: 0 1px 2px rgba(9, 20, 42, 0.12);
	--shadow-md: 0 14px 34px rgba(15, 35, 66, 0.12);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font-body);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	color: var(--color-text);
	background-color: var(--color-bg);
	background-image:
		radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.12), transparent),
		radial-gradient(ellipse 60% 40% at 100% 0%, rgba(245, 158, 11, 0.08), transparent),
		radial-gradient(ellipse 50% 30% at 0% 100%, rgba(56, 189, 248, 0.06), transparent);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.theme-light {
	background-image:
		radial-gradient(ellipse 70% 45% at 0% 0%, rgba(30, 58, 138, 0.08), transparent),
		radial-gradient(ellipse 60% 42% at 100% 0%, rgba(185, 28, 28, 0.07), transparent),
		radial-gradient(ellipse 70% 40% at 50% 100%, rgba(30, 58, 138, 0.05), transparent);
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: var(--line-height-tight);
	color: var(--color-text);
	margin-block: 0 0.5em;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
	margin-block: 0 0 1em;
}

.lead {
	font-size: var(--font-size-lg);
	line-height: var(--line-height-loose);
	color: var(--color-text-muted);
}

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

.text-center {
	text-align: center;
}

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */

a {
	color: var(--color-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
	transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
	color: var(--color-link-hover);
}

a:visited {
	color: var(--color-link-visited);
}

a:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	top: -100%;
	left: var(--space-md);
	z-index: 9999;
	padding: var(--space-sm) var(--space-md);
	background: var(--color-accent);
	color: var(--color-bg);
	font-weight: 600;
	border-radius: var(--radius-sm);
	text-decoration: none;
}

.skip-link:focus {
	top: var(--space-md);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn,
button[type="submit"],
input[type="submit"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs);
	padding: 0.75em 1.5em;
	font-family: var(--font-body);
	font-size: var(--font-size-sm);
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--color-bg);
	background: linear-gradient(135deg, var(--color-accent) 0%, #ea580c 100%);
	border: none;
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-sm), var(--shadow-glow);
	cursor: pointer;
	transition:
		transform var(--transition-fast),
		box-shadow var(--transition-base),
		background var(--transition-base);
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	color: var(--color-bg);
	background: linear-gradient(135deg, var(--color-accent-hover) 0%, #f97316 100%);
	box-shadow: var(--shadow-md), 0 0 32px var(--color-accent-glow);
	transform: translateY(-1px);
}

.btn:focus-visible,
button[type="submit"]:focus-visible,
input[type="submit"]:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 2px solid var(--color-accent-hover);
	outline-offset: 3px;
}

.btn--outline {
	background: transparent;
	color: var(--color-accent);
	border: 2px solid var(--color-accent);
	box-shadow: none;
}

.btn--outline:hover {
	background: rgba(245, 158, 11, 0.1);
	color: var(--color-accent-hover);
	border-color: var(--color-accent-hover);
	box-shadow: var(--shadow-glow);
}

.btn--ghost {
	background: transparent;
	color: var(--color-text);
	border: 1px solid var(--color-border-strong);
	box-shadow: none;
}

.btn--ghost:hover {
	background: var(--color-surface-hover);
	color: var(--color-text);
	border-color: var(--color-border-strong);
}

/* --------------------------------------------------------------------------
   Layout: containers & sections
   -------------------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

.container--narrow {
	max-width: var(--container-narrow);
}

.container--wide {
	max-width: var(--container-wide);
}

.section {
	padding-block: var(--space-3xl);
}

.section--sm {
	padding-block: var(--space-2xl);
}

.section--lg {
	padding-block: var(--space-4xl);
}

.section--surface {
	background-color: var(--color-bg-elevated);
	border-block: 1px solid var(--color-border);
}

.section__header {
	margin-bottom: var(--space-2xl);
}

.section__title {
	margin-bottom: var(--space-sm);
}

.section__subtitle {
	font-size: var(--font-size-lg);
	color: var(--color-text-muted);
	max-width: 42ch;
}

.section__header--center {
	text-align: center;
}

.section__header--center .section__subtitle {
	margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Page & block editor content
   -------------------------------------------------------------------------- */

.page-content__header {
	margin-bottom: var(--space-2xl);
}

.page-content__title {
	margin-bottom: var(--space-sm);
}

.page-content__meta {
	margin: 0;
	font-size: var(--font-size-sm);
}

.entry-content {
	--block-gap: var(--space-xl);
}

.entry-content > * {
	margin-block: 0 var(--block-gap);
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content .alignwide {
	max-width: var(--container-wide);
	margin-inline: auto;
}

.entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.entry-content .wp-block-columns {
	gap: var(--space-xl);
}

.entry-content .wp-block-column > *:last-child {
	margin-bottom: 0;
}

.entry-content .nf-columns--3 {
	gap: var(--space-lg);
}

.entry-content .nf-columns--align-center {
	align-items: center;
}

.entry-content .nf-panel {
	padding: var(--space-lg);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
}

.entry-content .nf-section {
	padding: var(--space-2xl);
	background: var(--color-bg-elevated);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
}

.entry-content .nf-section--cta {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(168, 85, 247, 0.08));
	border-color: var(--color-border-strong);
}

.entry-content .nf-rounded-image img {
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
}

.entry-content .wp-block-image figcaption {
	margin-top: var(--space-sm);
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
	text-align: center;
}

.entry-content .wp-block-separator {
	border: none;
	border-top: 1px solid var(--color-border);
	margin-block: var(--space-2xl);
}

.entry-content .wp-block-separator.is-style-wide {
	max-width: var(--container-max);
}

.entry-content .wp-block-quote {
	margin-block: var(--space-xl);
	padding: var(--space-lg) var(--space-xl);
	border-left: 4px solid var(--color-accent);
	background: var(--color-surface);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.entry-content .wp-block-quote cite {
	display: block;
	margin-top: var(--space-sm);
	font-size: var(--font-size-sm);
	font-style: normal;
	color: var(--color-text-muted);
}

.entry-content .wp-block-list {
	padding-left: 1.25em;
}

.entry-content .wp-block-list li {
	margin-bottom: var(--space-xs);
}

.entry-content .wp-block-buttons {
	gap: var(--space-sm);
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--color-accent);
	border: 2px solid var(--color-accent);
	box-shadow: none;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(245, 158, 11, 0.1);
	color: var(--color-accent-hover);
}

/* FAQ accordion */

.entry-content .nf-faq {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

.entry-content .nf-faq > .wp-block-heading {
	margin-bottom: var(--space-md);
}

.entry-content .nf-faq .wp-block-details,
.entry-content .nf-faq__item {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	overflow: hidden;
	transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.entry-content .nf-faq .wp-block-details:hover,
.entry-content .nf-faq__item:hover {
	border-color: var(--color-border-strong);
}

.entry-content .nf-faq .wp-block-details[open],
.entry-content .nf-faq__item[open] {
	border-color: rgba(245, 158, 11, 0.45);
	box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12);
}

.entry-content .nf-faq .wp-block-details summary,
.entry-content .nf-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	padding: var(--space-md) var(--space-lg);
	font-family: var(--font-body);
	font-size: var(--font-size-base);
	font-weight: 700;
	line-height: var(--line-height-tight);
	color: var(--color-text);
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.entry-content .nf-faq .wp-block-details summary::-webkit-details-marker,
.entry-content .nf-faq__item summary::-webkit-details-marker {
	display: none;
}

.entry-content .nf-faq .wp-block-details summary::after,
.entry-content .nf-faq__item summary::after {
	flex-shrink: 0;
	font-size: var(--font-size-xl);
	font-weight: 400;
	line-height: 1;
	color: var(--color-accent);
	content: "+";
	transition: transform var(--transition-fast);
}

.entry-content .nf-faq .wp-block-details[open] summary,
.entry-content .nf-faq__item[open] summary {
	color: var(--color-accent-hover);
	border-bottom: 1px solid var(--color-border);
}

.entry-content .nf-faq .wp-block-details[open] summary::after,
.entry-content .nf-faq__item[open] summary::after {
	content: "−";
}

.entry-content .nf-faq .wp-block-details > :not(summary),
.entry-content .nf-faq__item > :not(summary) {
	margin: 0;
	padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.entry-content .nf-faq .wp-block-details p,
.entry-content .nf-faq__item p {
	margin-bottom: var(--space-md);
	color: var(--color-text-muted);
}

.entry-content .nf-faq .wp-block-details p:last-child,
.entry-content .nf-faq__item p:last-child {
	margin-bottom: 0;
}

.entry-content .nf-faq__disclaimer {
	margin-top: var(--space-lg);
	padding: var(--space-md) var(--space-lg);
	font-size: var(--font-size-sm);
	line-height: var(--line-height-loose);
	color: var(--color-text-subtle);
	background: var(--color-bg-elevated);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.home-page-content {
	padding-block: var(--space-2xl);
}

.home-page-content.entry-content,
.home-page-content .entry-content {
	max-width: none;
}

@media (max-width: 48rem) {
	.entry-content .nf-section {
		padding: var(--space-lg);
	}

	.entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) {
		gap: var(--space-lg);
	}
}

/* --------------------------------------------------------------------------
   Site header & navigation
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(7, 11, 18, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-lg);
	min-height: 100px;
	padding-block: 0;
}

.site-header__top {
	display: contents;
}

.site-header__america250 {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	display: block;
	line-height: 0;
	transform: translate(-50%, -50%);
	transition: opacity var(--transition-fast);
}

.site-header__america250:hover,
.site-header__america250:focus-visible {
	opacity: 0.85;
}

.site-header__america250:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}

.site-header__america250 img {
	display: block;
	width: auto;
	max-height: 92px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	flex-shrink: 0;
	position: relative;
	z-index: 2;
}

.primary-nav {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: var(--space-md);
	flex-shrink: 0;
}

.primary-nav__toggle {
	display: none;
}

.primary-nav__panel {
	display: block;
	order: 1;
}

.site-branding a {
	text-decoration: none;
	color: var(--color-text);
}

.site-title {
	font-family: var(--font-display);
	font-size: var(--font-size-xl);
	font-weight: 700;
	margin: 0;
	line-height: var(--line-height-tight);
}

.site-title span {
	color: var(--color-accent);
}

.custom-logo-link {
	display: block;
	line-height: 0;
}

.custom-logo {
	max-height: 88px;
	width: auto;
}

.primary-nav .menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs) var(--space-md);
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav .menu a {
	font-size: var(--font-size-xs);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--color-text-muted);
	transition: color var(--transition-fast);
}

body.theme-light .primary-nav .menu a {
	color: #fca5a5;
}

.primary-nav .menu a:hover,
.primary-nav .menu a:focus-visible,
.primary-nav .menu .current-menu-item > a,
.primary-nav .menu .current_page_item > a {
	color: var(--color-accent);
}

body.theme-light .primary-nav .menu a:hover,
body.theme-light .primary-nav .menu a:focus-visible,
body.theme-light .primary-nav .menu .current-menu-item > a,
body.theme-light .primary-nav .menu .current_page_item > a {
	color: #fecaca;
}

.primary-nav .menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 78rem) {
	.site-header__inner {
		gap: var(--space-md);
	}

	.site-header__america250 img {
		max-height: 78px;
	}

	.custom-logo {
		max-height: 78px;
	}

	.primary-nav {
		gap: var(--space-sm);
	}

	.primary-nav .menu {
		gap: 0.2rem var(--space-sm);
	}

	.site-header__wishlist {
		padding-inline: 0.55rem;
	}

	.site-header__wishlist-label {
		display: none;
	}

	.site-header__theme-toggle-label {
		display: none;
	}

	.site-header__theme-toggle {
		padding-inline: 0.45rem;
	}
}

@media (min-width: 48.0625rem) {
	.primary-nav > .site-header__theme-toggle {
		display: none;
	}

	.site-footer__theme-toggle-wrap {
		display: flex;
		align-items: center;
	}
}

@media (max-width: 48rem) {
	.site-header__inner {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		min-height: 0;
		padding-block: var(--space-sm) 0;
	}

	.site-header__top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-md);
		width: 100%;
		min-height: 4.5rem;
		padding-inline: 0;
	}

	.site-header__america250 {
		position: static;
		transform: none;
		flex-shrink: 0;
		margin-left: auto;
	}

	.site-header__america250 img {
		max-height: 3.25rem;
	}

	.custom-logo {
		max-height: 3.25rem;
	}

	.site-title {
		font-size: var(--font-size-lg);
	}

	.primary-nav {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		width: 100%;
		gap: var(--space-sm);
		padding-block: var(--space-xs);
		border-top: 1px solid var(--color-border);
	}

	.site-header__wishlist {
		order: 1;
	}

	.site-header__wishlist-label {
		display: none;
	}

	.site-header__theme-toggle {
		order: 2;
	}

	.site-header__theme-toggle-label {
		display: none;
	}

	.primary-nav__toggle {
		order: 3;
	}

	.primary-nav__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: var(--space-sm);
		margin: var(--space-xs) auto;
		padding: 0.55rem 1rem;
		font-family: var(--font-body);
		font-size: var(--font-size-sm);
		font-weight: 600;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: var(--color-text);
		background: var(--color-surface);
		border: 1px solid var(--color-border-strong);
		border-radius: var(--radius-pill);
		cursor: pointer;
		transition:
			background var(--transition-fast),
			border-color var(--transition-fast),
			color var(--transition-fast);
	}

	.primary-nav__toggle:hover,
	.primary-nav__toggle:focus-visible {
		color: var(--color-accent);
		border-color: var(--color-accent);
		background: var(--color-surface-hover);
	}

	.primary-nav__toggle-icon {
		position: relative;
		width: 1.125rem;
		height: 0.875rem;
	}

	.primary-nav__toggle-icon::before,
	.primary-nav__toggle-icon::after {
		content: "";
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		background: currentColor;
		border-radius: 1px;
		transition: transform var(--transition-fast), opacity var(--transition-fast), top var(--transition-fast);
	}

	.primary-nav__toggle-icon::before {
		top: 0;
		box-shadow: 0 6px 0 currentColor;
	}

	.primary-nav__toggle-icon::after {
		top: 12px;
	}

	.primary-nav.is-open .primary-nav__toggle-icon::before {
		top: 6px;
		box-shadow: none;
		transform: rotate(45deg);
	}

	.primary-nav.is-open .primary-nav__toggle-icon::after {
		top: 6px;
		transform: rotate(-45deg);
	}

	.primary-nav__panel {
		order: 4;
		display: none;
		width: 100%;
		padding-bottom: var(--space-md);
	}

	.site-footer__theme-toggle-wrap {
		display: none;
	}

	.primary-nav.is-open .primary-nav__panel {
		display: block;
	}

	.primary-nav .menu {
		flex-direction: column;
		align-items: center;
		gap: var(--space-sm);
		padding: var(--space-sm) 0 0;
	}

	.primary-nav .menu a {
		display: block;
		padding: 0.35rem 0.75rem;
	}

	.primary-nav .menu .sub-menu {
		margin-top: var(--space-xs);
		text-align: center;
	}

	.primary-nav .menu .sub-menu a {
		font-size: var(--font-size-xs);
		text-transform: none;
		letter-spacing: 0;
	}
}

body.nav-open {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Main content & footer
   -------------------------------------------------------------------------- */

.site-main {
	min-height: 50vh;
}

.site-footer {
	margin-top: auto;
	padding-block: var(--space-2xl);
	background-color: var(--color-bg-elevated);
	border-top: 1px solid var(--color-border);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
}

.site-footer__theme-toggle-wrap {
	display: flex;
	align-items: center;
}

.site-footer__copy {
	margin: 0;
	font-size: var(--font-size-sm);
	color: var(--color-text-subtle);
}

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

.site-footer a:hover {
	color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Front page hero
   -------------------------------------------------------------------------- */

.hero {
	position: relative;
	padding-block: var(--space-4xl);
	text-align: center;
	overflow: hidden;
	isolation: isolate;
}

body.theme-light .hero {
	background: #070b12;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 20% 80%, rgba(239, 68, 68, 0.28) 0%, transparent 45%),
		radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.28) 0%, transparent 45%),
		radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.2) 0%, transparent 58%),
		linear-gradient(to bottom, rgba(7, 11, 18, 0.1) 0%, rgba(7, 11, 18, 0.28) 100%);
}

.hero__particles {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	pointer-events: none;
	mix-blend-mode: screen;
	opacity: 1;
}

.hero__content {
	position: relative;
	z-index: 2;
	max-width: 48rem;
	margin-inline: auto;
}

body.theme-light .hero__content {
	padding: clamp(1rem, 2vw, 1.5rem);
	background: linear-gradient(160deg, rgba(8, 20, 43, 0.7) 0%, rgba(18, 40, 78, 0.56) 100%);
	border: 1px solid rgba(214, 225, 244, 0.24);
	border-radius: var(--radius-lg);
	backdrop-filter: blur(2px);
}

.hero__eyebrow {
	display: inline-block;
	margin-bottom: var(--space-md);
	font-size: var(--font-size-sm);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-accent);
}

body.theme-light .hero__eyebrow {
	color: #f4d29a;
}

.hero__title {
	margin-bottom: var(--space-lg);
}

.hero__description {
	font-size: var(--font-size-lg);
	color: var(--color-text-muted);
	margin-bottom: var(--space-xl);
}

body.theme-light .hero__title,
body.theme-light .hero__description {
	color: #f8fbff;
}

body.theme-light .hero__description {
	text-shadow: 0 1px 10px rgba(4, 9, 18, 0.45);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-md);
}

body.theme-light .hero__overlay {
	background:
		radial-gradient(circle at 20% 80%, rgba(185, 28, 28, 0.28) 0%, transparent 45%),
		radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.28) 0%, transparent 45%),
		radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.16) 0%, transparent 58%),
		linear-gradient(to bottom, rgba(7, 11, 18, 0.06) 0%, rgba(7, 11, 18, 0.24) 100%);
}

body.theme-light .hero__actions .btn {
	color: #ffffff;
	background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
}

body.theme-light .hero__actions .btn:hover {
	background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

body.theme-light .hero__actions .btn.btn--outline {
	color: #f8fbff;
	border-color: rgba(248, 251, 255, 0.84);
	background: rgba(6, 16, 36, 0.32);
}

body.theme-light .hero__actions .btn.btn--outline:hover {
	color: #ffffff;
	border-color: #ffffff;
	background: rgba(6, 16, 36, 0.48);
}

@media (prefers-reduced-motion: reduce) {
	.hero__particles {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Content cards & posts (index fallback)
   -------------------------------------------------------------------------- */

.post-list {
	display: grid;
	gap: var(--space-xl);
}

.post-card {
	padding: var(--space-xl);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.post-card:hover {
	border-color: var(--color-border-strong);
	box-shadow: var(--shadow-md);
}

.post-card__title {
	margin-bottom: var(--space-sm);
}

.post-card__title a {
	text-decoration: none;
	color: var(--color-text);
}

.post-card__title a:hover {
	color: var(--color-accent);
}

.post-card__meta {
	font-size: var(--font-size-sm);
	color: var(--color-text-subtle);
	margin-bottom: var(--space-md);
}

.post-card__excerpt {
	color: var(--color-text-muted);
	margin-bottom: var(--space-md);
}

.post-card__excerpt:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   WordPress & accessibility utilities
   -------------------------------------------------------------------------- */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.screen-reader-text:focus {
	background-color: var(--color-surface);
	border-radius: var(--radius-sm);
	clip: auto;
	clip-path: none;
	color: var(--color-text);
	display: block;
	font-size: var(--font-size-sm);
	font-weight: 600;
	height: auto;
	left: var(--space-sm);
	line-height: normal;
	padding: var(--space-sm) var(--space-md);
	text-decoration: none;
	top: var(--space-sm);
	width: auto;
	z-index: 100000;
}

.alignwide {
	max-width: var(--container-wide);
	margin-inline: auto;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* --------------------------------------------------------------------------
   Product catalog
   -------------------------------------------------------------------------- */

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: var(--space-xl);
}

.product-filters {
	margin-bottom: var(--space-xl);
}

.product-filters__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	list-style: none;
	margin: 0;
	padding: 0;
}

.product-filters__link {
	display: inline-block;
	padding: 0.5em 1em;
	font-size: var(--font-size-sm);
	font-weight: 600;
	text-decoration: none;
	color: var(--color-text-muted);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	transition:
		color var(--transition-fast),
		border-color var(--transition-fast),
		background var(--transition-fast);
}

.product-filters__link:hover,
.product-filters__link:focus-visible,
.product-filters__link.is-active {
	color: var(--color-accent);
	border-color: var(--color-accent);
	background: rgba(245, 158, 11, 0.08);
}

.product-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
	border-color: var(--color-border-strong);
	box-shadow: var(--shadow-md);
}

.product-card__media-link {
	display: block;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.product-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--color-bg-elevated);
}

.product-card__media .product-badge {
	position: absolute;
	top: var(--space-sm);
	left: var(--space-sm);
	z-index: 1;
}

.product-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-card__media-link:has(.product-card__image--placeholder) {
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-card__image--placeholder {
	width: auto;
	height: auto;
	max-width: 45%;
	max-height: 65%;
	object-fit: contain;
}

.product-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: var(--font-size-sm);
	color: var(--color-text-subtle);
}

.product-card__body {
	padding: var(--space-lg);
}

.product-card__title {
	font-family: var(--font-body);
	font-size: var(--font-size-lg);
	font-weight: 700;
	margin: 0 0 var(--space-sm);
	color: var(--color-text);
}

.product-card__title a {
	text-decoration: none;
	color: inherit;
}

.product-card__title a:hover {
	color: var(--color-accent);
}

.product-card__price {
	margin-bottom: var(--space-sm);
}

.product-card__meta {
	margin: 0;
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
}

.product-badge {
	display: inline-block;
	padding: 0.25em 0.65em;
	font-size: var(--font-size-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: var(--radius-pill);
}

.product-badge--featured {
	color: var(--color-bg);
	background: var(--color-accent);
}

.product-price {
	font-weight: 700;
	color: var(--color-accent);
}

.product-price--regular {
	font-weight: 400;
	font-size: var(--font-size-sm);
	color: var(--color-text-subtle);
	text-decoration: line-through;
}

.product-price--sale {
	color: var(--color-spark-red);
}

/* Wishlist */

.wishlist-toggle {
	position: absolute;
	top: var(--space-sm);
	right: var(--space-sm);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-pill);
	background: rgba(7, 11, 18, 0.72);
	color: var(--color-text-muted);
	cursor: pointer;
	transition:
		color var(--transition-fast),
		background var(--transition-fast),
		border-color var(--transition-fast),
		transform var(--transition-fast);
}

.wishlist-toggle:hover,
.wishlist-toggle:focus-visible {
	color: var(--color-accent);
	border-color: var(--color-accent);
	background: rgba(7, 11, 18, 0.92);
	transform: scale(1.05);
}

.wishlist-toggle.is-active {
	color: var(--color-bg);
	background: var(--color-accent);
	border-color: var(--color-accent);
}

.wishlist-toggle__icon {
	display: block;
	width: 1rem;
	height: 1rem;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.product-single__actions {
	margin-top: var(--space-md);
}

.wishlist-toggle--labeled {
	position: static;
	width: auto;
	min-height: 2.5rem;
	padding: 0.65rem 1.1rem;
	gap: 0.45rem;
	color: #070b12;
	background: #f59e0b;
	border-color: #f59e0b;
	transform: none;
}

.wishlist-toggle--labeled:hover,
.wishlist-toggle--labeled:focus-visible {
	color: #070b12;
	background: #fbbf24;
	border-color: #fbbf24;
	transform: none;
}

.wishlist-toggle--labeled.is-active {
	color: #070b12;
	background: #f59e0b;
	border-color: #f59e0b;
}

body.theme-light .wishlist-toggle--labeled,
body.theme-light .wishlist-toggle--labeled.is-active {
	color: #ffffff;
	background: #b91c1c;
	border-color: #b91c1c;
}

body.theme-light .wishlist-toggle--labeled:hover,
body.theme-light .wishlist-toggle--labeled:focus-visible {
	color: #ffffff;
	background: #dc2626;
	border-color: #dc2626;
}

.wishlist-toggle--labeled .wishlist-toggle__icon {
	flex-shrink: 0;
}

.wishlist-toggle--labeled .wishlist-toggle__label {
	position: static;
	display: inline;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	overflow: visible;
	clip: auto;
	clip-path: none;
	border: 0;
	word-wrap: normal;
	white-space: nowrap;
	color: inherit;
	font-size: var(--font-size-sm);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.site-header__wishlist {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	flex-shrink: 0;
	order: 2;
	padding: 0.45rem 0.85rem;
	font-size: var(--font-size-sm);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--color-text-muted);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	transition:
		color var(--transition-fast),
		border-color var(--transition-fast),
		background var(--transition-fast);
}

.site-header__wishlist:hover,
.site-header__wishlist:focus-visible {
	color: var(--color-accent);
	border-color: var(--color-accent);
	background: var(--color-surface-hover);
}

.site-header__wishlist.has-items {
	color: var(--color-accent);
	border-color: rgba(245, 158, 11, 0.45);
}

.site-header__wishlist-icon {
	width: 1rem;
	height: 1rem;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.site-header__wishlist-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.35rem;
	font-size: var(--font-size-xs);
	line-height: 1;
	color: var(--color-bg);
	background: var(--color-accent);
	border-radius: var(--radius-pill);
}

.site-header__theme-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
	min-height: 2rem;
	padding: 0.35rem 0.55rem;
	font-size: var(--font-size-xs);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	cursor: pointer;
	transition:
		color var(--transition-fast),
		border-color var(--transition-fast),
		background var(--transition-fast);
}

.site-header__theme-toggle:hover,
.site-header__theme-toggle:focus-visible {
	color: var(--color-accent);
	border-color: var(--color-accent);
	background: var(--color-surface-hover);
}

.site-header__theme-toggle[aria-pressed="true"] {
	color: var(--color-accent);
	border-color: rgba(30, 58, 138, 0.35);
}

.site-header__theme-toggle-icon {
	width: 0.95rem;
	height: 0.95rem;
	border-radius: 50%;
	background: linear-gradient(140deg, var(--color-accent) 0%, var(--color-spark-red) 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.site-footer__theme-toggle {
	margin-left: auto;
}

.wishlist-page__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	margin-bottom: var(--space-xl);
	padding: var(--space-md) var(--space-lg);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
}

.wishlist-page__count {
	margin: 0;
	font-weight: 600;
	color: var(--color-text-muted);
}

.wishlist-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

.wishlist-page__empty {
	padding: var(--space-2xl);
	text-align: center;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
}

.wishlist-page__empty p {
	max-width: 36rem;
	margin: 0 auto var(--space-lg);
	color: var(--color-text-muted);
}

.btn--sm {
	padding: 0.55rem 1rem;
	font-size: var(--font-size-xs);
}

@media print {
	.wishlist-page__toolbar,
	.wishlist-toggle,
	.site-header,
	.site-footer {
		display: none !important;
	}

	.wishlist-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.5rem;
	}

	.wishlist-grid .product-card__body {
		padding: 0.5rem;
	}

	.wishlist-grid .product-card__title {
		font-size: 0.85rem;
		margin-bottom: 0.2rem;
	}

	.wishlist-grid .product-card__price,
	.wishlist-grid .product-card__meta {
		font-size: 0.7rem;
		margin-bottom: 0.2rem;
	}

	.wishlist-grid .btn {
		display: none !important;
	}
}

/* Single product */

.product-single__layout {
	display: grid;
	gap: var(--space-2xl);
	margin-bottom: var(--space-2xl);
}

@media (min-width: 48rem) {
	.product-single__layout {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.product-gallery__main {
	margin-bottom: var(--space-md);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
}

.product-gallery__image {
	width: 100%;
	height: auto;
	display: block;
}

.product-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	list-style: none;
	margin: 0;
	padding: 0;
}

.product-gallery__thumb-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition:
		border-color var(--transition-fast),
		box-shadow var(--transition-fast);
}

.product-gallery__thumb-btn:hover,
.product-gallery__thumb-btn:focus-visible {
	border-color: var(--color-accent);
}

.product-gallery__thumb-btn.is-active {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 1px var(--color-accent);
}

.product-gallery__thumb {
	border-radius: var(--radius-sm);
}

.product-gallery__thumb-label {
	font-size: var(--font-size-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.product-gallery--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 16rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
}

.product-gallery__placeholder {
	color: var(--color-text-subtle);
}

.product-single__title {
	margin-bottom: var(--space-md);
}

.product-single__price {
	margin-bottom: var(--space-sm);
	font-size: var(--font-size-2xl);
}

.product-single__stock {
	font-size: var(--font-size-sm);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.product-single__stock.is-in-stock {
	color: #4ade80;
}

.product-single__stock.is-out-of-stock {
	color: var(--color-spark-red);
}

.product-single__excerpt {
	margin-bottom: var(--space-lg);
}

.product-specs {
	display: grid;
	gap: var(--space-sm);
	margin: 0 0 var(--space-lg);
	padding: var(--space-lg);
	background: var(--color-bg-elevated);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.product-specs__row {
	display: grid;
	grid-template-columns: 8rem 1fr;
	gap: var(--space-md);
}

.product-specs dt {
	margin: 0;
	font-size: var(--font-size-sm);
	font-weight: 600;
	color: var(--color-text-subtle);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.product-specs dd {
	margin: 0;
	color: var(--color-text);
}

.product-single__terms {
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
}

.product-single__terms-label {
	font-weight: 600;
	margin-right: var(--space-xs);
}

.product-single__terms a {
	text-decoration: none;
}

.product-single__content,
.product-single__video,
.product-single__safety {
	margin-bottom: var(--space-2xl);
}

.product-video {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--color-surface);
}

.product-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.product-safety {
	padding: var(--space-lg);
	background: rgba(239, 68, 68, 0.08);
	border: 1px solid rgba(239, 68, 68, 0.25);
	border-radius: var(--radius-md);
	color: var(--color-text-muted);
}

/* Featured products */

.featured-products__cta {
	margin-top: var(--space-xl);
}

/* Store locations */

.locations-map {
	width: 100%;
	min-height: 24rem;
	margin-bottom: var(--space-2xl);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--color-bg-elevated);
}

.locations-map--single {
	min-height: 20rem;
}

.locations-map__notice {
	margin-bottom: var(--space-xl);
}

.location-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
	gap: var(--space-xl);
	margin-bottom: var(--space-xl);
}

.location-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.location-card:hover {
	border-color: var(--color-border-strong);
	box-shadow: var(--shadow-md);
}

.location-card--mega {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15);
}

.location-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--color-bg-elevated);
}

.location-card__image-link {
	display: block;
	height: 100%;
}

.location-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.location-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--color-bg-elevated), var(--color-surface));
}

.location-card__body {
	padding: var(--space-lg);
	flex: 1;
	display: flex;
	flex-direction: column;
}

.location-card__badge {
	display: inline-block;
	margin: 0 0 var(--space-sm);
	padding: 0.25em 0.65em;
	font-size: var(--font-size-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-bg);
	background: var(--color-accent);
	border-radius: var(--radius-pill);
}

.location-card__badge--overlay {
	position: absolute;
	top: var(--space-sm);
	left: var(--space-sm);
	z-index: 1;
	margin: 0;
	box-shadow: var(--shadow-sm);
}

.location-card__title {
	margin: 0 0 var(--space-sm);
	font-family: var(--font-body);
	font-size: var(--font-size-lg);
}

.location-card__title a {
	text-decoration: none;
	color: var(--color-text);
}

.location-card__title a:hover {
	color: var(--color-accent);
}

.location-card__address,
.location-card__phone,
.location-card__hours {
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
	margin: 0 0 var(--space-sm);
}

.location-card__hours {
	margin-bottom: var(--space-md);
}

.location-card__body .btn {
	margin-top: auto;
}

.locations-section__cta {
	margin-top: var(--space-md);
}

.location-single__layout {
	display: grid;
	gap: var(--space-2xl);
}

@media (min-width: 48rem) {
	.location-single__layout {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.location-single__title {
	margin-bottom: var(--space-md);
}

.location-single__media {
	margin: 0 0 var(--space-xl);
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--color-border);
}

.location-single__image {
	display: block;
	width: 100%;
	height: auto;
}

.location-single__address,
.location-single__phone {
	color: var(--color-text-muted);
	margin-bottom: var(--space-sm);
}

.location-single__hours {
	margin: var(--space-lg) 0;
	padding: var(--space-lg);
	background: var(--color-bg-elevated);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.location-single__hours h2 {
	font-size: var(--font-size-lg);
	margin-bottom: var(--space-sm);
}

.map-info strong {
	display: block;
	margin-bottom: 0.25rem;
}

.map-info p {
	margin: 0.25rem 0;
	font-size: 0.875rem;
}

/* Coupons page */

.is-coupons-page {
	background: #f5f5f4;
	color: #111827;
}

.is-coupons-page .coupon-page {
	padding: var(--space-xl) var(--space-md);
	min-height: 100vh;
}

.coupon-sheet {
	max-width: 56rem;
	margin: 0 auto;
	padding: var(--space-xl);
	background: #ffffff;
	border: 2px dashed #d97706;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

.coupon-sheet__header {
	text-align: center;
	margin-bottom: var(--space-xl);
	padding-bottom: var(--space-lg);
	border-bottom: 1px solid #e5e7eb;
}

.coupon-sheet__logo img {
	max-height: 3.5rem;
	width: auto;
	margin: 0 auto;
}

.coupon-sheet__site-name {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--font-size-xl);
	color: #111827;
}

.coupon-sheet__title {
	margin: var(--space-md) 0 0;
	font-family: var(--font-display);
	font-size: var(--font-size-2xl);
	color: #111827;
}

.coupon-sheet__intro {
	margin-top: var(--space-md);
	font-size: var(--font-size-base);
	color: #374151;
}

.coupon-sheet__expired-banner {
	margin: var(--space-md) 0 0;
	padding: var(--space-sm) var(--space-md);
	font-weight: 700;
	color: #991b1b;
	background: #fee2e2;
	border-radius: var(--radius-md);
}

.coupon-sheet__expiration {
	margin: var(--space-md) 0 0;
	font-size: var(--font-size-base);
	color: #374151;
}

.coupon-sheet__expiration--expired {
	color: #991b1b;
}

.coupon-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
	gap: var(--space-lg);
	margin-bottom: var(--space-xl);
}

.coupon-item {
	display: flex;
	flex-direction: column;
	padding: var(--space-md);
	background: #fafaf9;
	border: 1px solid #e5e7eb;
	border-radius: var(--radius-md);
	text-align: center;
}

.coupon-item__media {
	margin: 0 0 var(--space-sm);
	border-radius: var(--radius-sm);
	overflow: hidden;
	border: 1px solid #e5e7eb;
}

.coupon-item__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

.coupon-item__title {
	margin: 0 0 var(--space-xs);
	font-family: var(--font-body);
	font-size: var(--font-size-sm);
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
}

.coupon-price {
	display: block;
	font-size: var(--font-size-xl);
	font-weight: 700;
	line-height: 1.1;
	color: #d97706;
}

.coupon-item__packaging {
	margin: var(--space-xs) 0 0;
	font-size: var(--font-size-xs);
	line-height: 1.4;
	color: #6b7280;
}

.coupon-sheet__empty {
	text-align: center;
	color: #6b7280;
	margin-bottom: var(--space-xl);
}

.coupon-sheet__note {
	margin: 0 0 var(--space-lg);
	font-size: var(--font-size-base);
	font-weight: 600;
	text-align: center;
	color: #374151;
}

.coupon-sheet__scan-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-xl);
	padding-top: var(--space-lg);
	border-top: 1px solid #e5e7eb;
}

.coupon-sheet__barcode-wrap {
	text-align: center;
}

.coupon-sheet__qr-wrap {
	flex: 0 0 auto;
	text-align: center;
}

.coupon-sheet__qr {
	display: block;
	width: 10rem;
	height: auto;
}

.coupon-sheet__barcode {
	display: block;
	width: 100%;
	max-width: 20rem;
	height: auto;
	margin: 0 auto;
}

.coupon-sheet__barcode-digits {
	margin: var(--space-sm) 0 0;
	font-family: ui-monospace, monospace;
	font-size: var(--font-size-sm);
	letter-spacing: 0.12em;
	color: #374151;
}

.coupon-sheet__fine-print {
	margin: var(--space-lg) 0 0;
	font-size: var(--font-size-xs);
	line-height: 1.5;
	color: #6b7280;
	text-align: center;
}

.coupon-sheet__actions {
	display: flex;
	justify-content: center;
	margin-top: var(--space-xl);
}

.is-coupons-page--expired .coupon-sheet {
	opacity: 0.9;
}

@media print {
	@page {
		size: letter portrait;
		margin: 0.2in;
	}

	html,
	body {
		margin: 0;
		padding: 0;
	}

	.is-coupons-page {
		background: #ffffff;
	}

	.is-coupons-page .coupon-page {
		padding: 0;
		min-height: auto;
	}

	.coupon-sheet {
		max-width: none;
		margin: 0;
		padding: 0;
		box-shadow: none;
		border-width: 1px;
		border-radius: 0;
		page-break-inside: avoid;
	}

	.coupon-sheet__header {
		margin-bottom: 0.1in;
		padding-bottom: 0.08in;
		overflow: hidden;
		text-align: left;
	}

	.coupon-sheet__logo {
		float: left;
		margin: 0 0.12in 0.04in 0;
	}

	.coupon-sheet__logo img {
		max-height: 0.55in;
		margin: 0;
	}

	.coupon-sheet__title {
		margin: 0;
		font-size: 13pt;
		line-height: 1.1;
	}

	.coupon-sheet__intro {
		margin: 0.03in 0 0;
		font-size: 7pt;
		line-height: 1.25;
	}

	.coupon-sheet__intro p {
		margin: 0;
	}

	.coupon-sheet__expired-banner {
		margin: 0.03in 0 0;
		padding: 0.04in 0.08in;
		font-size: 7pt;
	}

	.coupon-sheet__expiration {
		margin: 0.03in 0 0;
		font-size: 7pt;
	}

	.coupon-grid {
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: repeat(4, auto);
		gap: 0.07in;
		margin-bottom: 0.08in;
	}

	.coupon-item {
		break-inside: avoid;
		page-break-inside: avoid;
		padding: 0.05in;
		border-radius: 2px;
	}

	.coupon-item__media {
		margin-bottom: 0.03in;
		border-width: 1px;
	}

	.coupon-item__image {
		aspect-ratio: auto;
		max-height: 0.85in;
		object-fit: contain;
	}

	.coupon-item__title {
		margin: 0 0 0.02in;
		font-size: 7pt;
		line-height: 1.15;
	}

	.coupon-price {
		font-size: 9pt;
		line-height: 1;
	}

	.coupon-item__packaging {
		margin: 0.02in 0 0;
		font-size: 6.5pt;
		line-height: 1.15;
	}

	.coupon-sheet__note {
		margin: 0 0 0.06in;
		font-size: 7pt;
		line-height: 1.2;
	}

	.coupon-sheet__scan-wrap {
		gap: 0.12in;
		padding-top: 0.06in;
		border-top-width: 1px;
	}

	.coupon-sheet__barcode-wrap {
		padding-top: 0;
		border-top: 0;
	}

	.coupon-sheet__qr {
		width: 1.3in;
		height: 1.3in;
		object-fit: contain;
	}

	.coupon-sheet__barcode {
		max-width: 2.25in;
		height: 0.4in;
	}

	.coupon-sheet__barcode-digits {
		margin: 0.02in 0 0;
		font-size: 7pt;
		letter-spacing: 0.08em;
	}

	.coupon-sheet__fine-print {
		margin: 0.04in 0 0;
		font-size: 6pt;
		line-height: 1.2;
	}

	.no-print {
		display: none !important;
	}
}

