/*
 * Tech Vision Store — theme stylesheet.
 * All styling lives here (Section 10) — no CSS in WooCommerce template files.
 */

/* ====================================================================== */
/* Tokens (fallback — the live values are injected inline by PHP,         */
/* Section 22.9. These match theme_default() via theme_hsl_to_hex()).     */
/* ====================================================================== */
:root {
	--color-background: #08090b;
	--color-foreground: #eef4f5;
	--color-card: #0f1318;
	--color-secondary: #191f28;
	--color-muted: #1e2732;
	--color-muted-foreground: #9caab3;
	--color-accent: #17d3f2;
	--color-accent-foreground: #08090b;
	--color-highlight: #f2b53d;
	--color-highlight-foreground: #08090b;
	--color-destructive: #e33636;
	--color-border: #262f3a;

	--radius: 0.75rem;
	--radius-lg: 1rem;
	--logo-height: 56px;

	--font-body: 'Manrope', system-ui, sans-serif;
	--font-display: 'Sora', system-ui, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, monospace;

	--btn-radius: 999px;
	--btn-height: 3rem;
	--btn-padding: 0 1.5rem;
	--btn-font-size: 0.875rem;
	--btn-font-weight: 600;
	--btn-letter-spacing: normal;
	--btn-text-transform: none;
	--btn-icon-padding: 0.6rem;
	--header-height: 80px;
	--checkout-gap: 2.5rem;
}

/* ====================================================================== */
/* Reset & base                                                           */
/* ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: -0.02em;
	margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* Clickable affordance (matches Lovable / browser link hand cursor). */
a,
button,
[role="button"],
summary,
label[for],
.btn-hero-primary,
.btn-hero-outline,
.btn-header-cta,
.theme-btn-add-to-bag,
.theme-btn-retailer,
.theme-nav-link,
.theme-cart-toggle,
.theme-mobile-toggle,
.footer-contact-link,
.footer-pill-link,
.contact-link-card,
.contact-pill-link,
.hero-partner-link,
.theme-product-card__details-link,
.theme-faq-item__question,
input[type="submit"],
input[type="button"],
input[type="reset"] {
	cursor: pointer;
}

img:not(.cover-img):not(.hero-image):not(.hero-slider__image):not(.about-image):not(.theme-product-card__image):not(.theme-blog-card__image):not(.theme-product-gallery__main-img):not(.single-post__image) {
	max-width: 100%;
	height: auto;
}
.cover-img, .hero-image, .about-image, .theme-blog-card__image,
.theme-product-gallery__main-img, .single-post__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

/* Lateral gutters match Lovable: container mx-auto px-4 sm:px-6 */
:root {
	--container-pad-x: 1rem; /* px-4 */
}
@media (min-width: 640px) {
	:root {
		--container-pad-x: 1.5rem; /* sm:px-6 */
	}
}
.container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding-left: var(--container-pad-x);
	padding-right: var(--container-pad-x);
}
.container--narrow { max-width: 768px; }
.container--article { max-width: 768px; }

.hide-mobile { display: none; }
@media (min-width: 640px) { .hide-mobile { display: inline; } }

.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }
.icon-lg { width: 36px; height: 36px; }
.theme-icon { flex-shrink: 0; }

.text-gradient {
	background-image: linear-gradient(100deg, var(--color-accent), var(--color-highlight));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ====================================================================== */
/* Scroll progress bar                                                    */
/* ====================================================================== */
#theme-scroll-progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: var(--color-accent);
	transform-origin: left;
	transform: scaleX(0);
	z-index: 60;
	transition: transform 0.1s linear, top 0.2s ease;
}

/* ====================================================================== */
/* Animation utilities (Section 2.1)                                      */
/* ====================================================================== */
.reveal-item {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-item[data-reveal="fade-right"] { transform: translateX(32px); }
.reveal-item.is-visible {
	opacity: 1;
	transform: none;
}
body.is-customizer .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
	.reveal-item { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ====================================================================== */
/* Header                                                                 */
/* ====================================================================== */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	height: var(--header-height);
	background: transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease, top 0.2s ease;
}
.site-header.is-solid {
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	border-bottom: 1px solid var(--color-border);
}

/* WP admin bar sits above fixed chrome — offset so header/progress don't overlap it. */
body.admin-bar .site-header,
body.admin-bar #theme-scroll-progress {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header,
	body.admin-bar #theme-scroll-progress {
		top: 46px;
	}
}
body.admin-bar.cart-open #theme-cart-drawer {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar.cart-open #theme-cart-drawer {
		top: 46px;
	}
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}
.site-branding {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-width: 0;
}
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; object-fit: contain; }
.site-logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.site-brand-name { font-family: var(--font-display); font-weight: 700; }

.site-nav { display: none; }
.theme-nav-list { display: flex; align-items: center; gap: 2.25rem; }
@media (min-width: 1024px) { .site-nav { display: block; } }
.theme-nav-link, .theme-nav-list a {
	font-size: 0.875rem;
	font-weight: 500;
	color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
	transition: color 0.2s ease;
}
.theme-nav-link:hover, .theme-nav-list a:hover { color: var(--color-accent); }

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.btn-header-cta {
	display: none;
	align-items: center;
	padding: 0.625rem 1rem;
	border-radius: var(--btn-radius);
	font-size: 0.875rem;
	font-weight: 600;
	background: var(--color-accent);
	color: var(--color-accent-foreground);
	transition: opacity 0.2s ease;
}
.btn-header-cta:hover { opacity: 0.9; }
@media (min-width: 640px) { .btn-header-cta { display: inline-flex; } }

.theme-cart-toggle {
	position: relative;
	background: none;
	border: none;
	padding: 0.6rem;
	color: var(--color-foreground);
	transition: color 0.2s ease;
}
.theme-cart-toggle:hover { color: var(--color-accent); }
.theme-cart-count {
	position: absolute;
	top: 2px; right: 2px;
	min-width: 18px; height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--color-accent);
	color: var(--color-accent-foreground);
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
.theme-cart-count:empty { display: none; }

.theme-mobile-toggle {
	display: inline-flex;
	background: none;
	border: none;
	padding: 0.6rem;
	color: var(--color-foreground);
}
@media (min-width: 1024px) { .theme-mobile-toggle { display: none; } }
.theme-mobile-toggle[aria-expanded="true"] .icon-menu { display: none; }
.theme-mobile-toggle[aria-expanded="true"] .icon-close { display: block !important; }
.theme-mobile-toggle .icon-close { display: none; }

.theme-mobile-nav {
	background: var(--color-background);
	border-bottom: 1px solid var(--color-border);
	padding: 0 var(--container-pad-x) 1.5rem;
}
@media (min-width: 1024px) { .theme-mobile-nav { display: none !important; } }
.theme-mobile-nav .theme-mobile-nav-list,
.theme-mobile-nav .theme-nav-list,
.theme-mobile-nav ul {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
.theme-mobile-nav .theme-mobile-nav-list > li,
.theme-mobile-nav .theme-nav-list > li,
.theme-mobile-nav ul > li {
	display: block;
	width: 100%;
	margin: 0;
}
.theme-mobile-nav .theme-mobile-nav-list a,
.theme-mobile-nav .theme-nav-list a,
.theme-mobile-nav a {
	display: block;
	width: 100%;
	padding: 0.875rem 0;
	font-size: 1rem;
	font-weight: 500;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
}

/* ====================================================================== */
/* Buttons                                                                */
/* ====================================================================== */
.btn-hero-primary, .btn-hero-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.75rem;
	border-radius: var(--btn-radius);
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn-hero-primary {
	background: var(--color-accent);
	color: var(--color-accent-foreground);
	box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--color-accent) 40%, transparent);
	border: none;
}
.btn-hero-primary:hover { opacity: 0.92; }
.btn-hero-primary .btn-arrow { transition: transform 0.3s ease; }
.btn-hero-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-hero-outline {
	background: transparent;
	border: 1px solid var(--color-border);
	color: var(--color-foreground);
}
.btn-hero-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

.pill-link {
	display: inline-flex;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	font-size: 0.875rem;
	font-weight: 500;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pill-link:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-3px) scale(1.04); }

/* ====================================================================== */
/* Section scaffolding                                                    */
/* ====================================================================== */
section { position: relative; }
.section-eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.25em;
	color: var(--color-accent);
	margin-bottom: 0.75rem;
}

/* ====================================================================== */
/* Hero Slider (top of homepage)                                           */
/* ====================================================================== */
.hero-slider {
	position: relative;
	width: 100%;
	background: var(--color-background);
}
/* Keep slide imagery below the fixed header on mobile/tablet. */
@media (max-width: 1023px) {
	.hero-slider {
		padding-top: var(--header-height);
	}
}
@media (max-width: 782px) {
	body.admin-bar .hero-slider {
		padding-top: calc(var(--header-height) + 46px);
	}
}
.hero-slider__viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 80vh;
	overflow: hidden;
}
.hero-slider__track {
	position: relative;
	width: 100%;
	height: 100%;
}
.hero-slider__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-background);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0.8s ease;
}
.hero-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}
.hero-slider__image {
	width: 100%;
	height: 100%;
	object-fit: var(--hero-slider-image-fit, contain);
	object-position: center;
	display: block;
}
.hero-slider__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, color-mix(in srgb, var(--color-background) 20%, transparent), transparent 22%),
		linear-gradient(to top, color-mix(in srgb, var(--color-background) 30%, transparent), transparent 28%);
	pointer-events: none;
}
.hero-slider__logo {
	position: absolute;
	top: 1rem;
	z-index: 3;
	display: flex;
	align-items: center;
	padding: 0 1rem;
	pointer-events: none;
}
@media (min-width: 640px) {
	.hero-slider__logo { top: 1.25rem; padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
	.hero-slider__logo { top: 1.5rem; padding: 0 2rem; }
}
.hero-slider__logo--left { left: 0; justify-content: flex-start; }
.hero-slider__logo--center { left: 50%; transform: translateX(-50%); justify-content: center; }
.hero-slider__logo--right { right: 0; justify-content: flex-end; }
.hero-slider__logo-img {
	height: var(--hero-slider-logo-height, 72px);
	width: auto;
	max-width: min(75vw, calc(var(--hero-slider-logo-height, 72px) * 5));
	object-fit: contain;
	filter: drop-shadow(0 2px 12px color-mix(in srgb, var(--color-background) 70%, transparent));
}
.hero-slider__controls {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 0.5rem;
	pointer-events: none;
}
@media (min-width: 640px) {
	.hero-slider__controls { padding: 0 1rem; }
}
.hero-slider__arrow {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 25%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--color-background) 65%, transparent);
	color: var(--color-foreground);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	backdrop-filter: blur(6px);
}
@media (min-width: 640px) {
	.hero-slider__arrow { width: 2.75rem; height: 2.75rem; }
}
.hero-slider__arrow:hover,
.hero-slider__arrow:focus-visible {
	background: color-mix(in srgb, var(--color-accent) 20%, var(--color-background));
	border-color: color-mix(in srgb, var(--color-accent) 50%, transparent);
	color: var(--color-accent);
	outline: none;
}
.hero-slider__dots {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	z-index: 3;
	display: flex;
	gap: 0.5rem;
	transform: translateX(-50%);
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--color-background) 55%, transparent);
	backdrop-filter: blur(6px);
}
@media (min-width: 640px) {
	.hero-slider__dots { bottom: 1.25rem; }
}
.hero-slider__dot {
	width: 0.55rem;
	height: 0.55rem;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: color-mix(in srgb, var(--color-foreground) 35%, transparent);
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}
.hero-slider__dot.is-active {
	background: var(--color-accent);
	transform: scale(1.25);
}
.hero-slider__dot:hover,
.hero-slider__dot:focus-visible {
	background: var(--color-accent);
	outline: none;
}
@media (prefers-reduced-motion: reduce) {
	.hero-slider__slide { transition: none; }
}

/* ====================================================================== */
/* Hero                                                                    */
/* ====================================================================== */
.hero-section {
	position: relative;
	min-height: 100vh;
	padding: 7rem 0 4rem;
	overflow: hidden;
	background: var(--color-background);
}
.hero-section__bg-grid {
	position: absolute; inset: 0; opacity: 0.3; pointer-events: none;
	background-image:
		linear-gradient(to right, color-mix(in srgb, var(--color-border) 50%, transparent) 1px, transparent 1px),
		linear-gradient(to bottom, color-mix(in srgb, var(--color-border) 50%, transparent) 1px, transparent 1px);
	background-size: 56px 56px;
}
.hero-section__bg-optic {
	position: absolute; inset: 0; pointer-events: none;
	background-image:
		radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--color-accent) 18%, transparent), transparent 55%),
		radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--color-highlight) 12%, transparent), transparent 50%);
}
.hero-section__inner { position: relative; display: flex; min-height: calc(100vh - 11rem); align-items: center; }
.hero-section__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: center;
	width: 100%;
}
@media (min-width: 1024px) { .hero-section__grid { grid-template-columns: repeat(12, 1fr); gap: 3.5rem; } }
.hero-section__copy { min-width: 0; }
@media (min-width: 1024px) { .hero-section__copy { grid-column: span 7; } }
.hero-section__media { min-width: 0; }
@media (min-width: 1024px) { .hero-section__media { grid-column: span 5; } }

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.75rem;
	margin-bottom: 1.5rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent);
	background: color-mix(in srgb, var(--color-accent) 10%, transparent);
	color: var(--color-accent);
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
}
.hero-title {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.03em;
	font-size: clamp(2.5rem, 7vw, 5.5rem);
	text-wrap: balance;
}
.hero-paragraph {
	margin-top: 1.5rem;
	max-width: 40rem;
	font-size: 1rem;
	color: var(--color-muted-foreground);
	line-height: 1.7;
}
@media (min-width: 640px) { .hero-paragraph { font-size: 1.125rem; } }
.hero-ctas { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2.25rem; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }
.hero-partners { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.5rem; row-gap: 0.75rem; margin-top: 2.5rem; }
.hero-partners__label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-muted-foreground); }
.hero-partner-link { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); transition: color 0.2s ease; }
.hero-partner-link:hover { color: var(--color-accent); }

/* Mirror Lovable: grid grid-cols-3 gap-6 mt-10 max-w-md (reset dl/dt/dd UA margins). */
.hero-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 2.5rem 0 0;
	max-width: 28rem;
	width: 100%;
}
.hero-stat {
	min-width: 0;
	margin: 0;
	text-align: left;
}
.hero-stat__value {
	margin: 0;
	padding: 0;
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--color-foreground);
	transition: color 0.2s ease;
}
@media (min-width: 640px) { .hero-stat__value { font-size: 1.875rem; } }
.hero-stat:hover .hero-stat__value { color: var(--color-accent); }
.hero-stat__label {
	margin: 0.25rem 0 0;
	padding: 0;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	line-height: 1.35;
	text-transform: uppercase;
	letter-spacing: 0.1em; /* tracking-widest */
	color: var(--color-muted-foreground);
}

.hero-image-frame {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-lg);
	background: var(--color-card);
	border: 1px solid var(--color-border);
	overflow: hidden;
}
.hero-image-caption {
	position: absolute;
	left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 0.5rem 0.75rem;
	border-radius: var(--radius);
	background: color-mix(in srgb, var(--color-background) 85%, transparent);
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: color-mix(in srgb, var(--color-foreground) 90%, transparent);
}
.hero-image-caption__accent { color: var(--color-accent); }

/* ====================================================================== */
/* Section headings — per-section scale (Section 2.2.5)                   */
/* ====================================================================== */
.section-heading { font-weight: 800; letter-spacing: -0.02em; }
.shop-heading, .services-heading, .about-heading, .blog-heading, .faq-heading, .standards-heading, .contact-heading {
	font-size: 2.25rem;
}
@media (min-width: 640px) { .shop-heading, .services-heading, .about-heading, .blog-heading, .faq-heading, .standards-heading, .contact-heading { font-size: 3rem; } }
.shop-heading { }
@media (min-width: 1024px) { .shop-heading { font-size: 3.75rem; } }

/* ====================================================================== */
/* Shop section                                                            */
/* ====================================================================== */
.shop-section { padding: 5rem 0; background: var(--color-background); border-top: 1px solid var(--color-border); }
@media (min-width: 640px) { .shop-section { padding: 7rem 0; } }
.shop-section__head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .shop-section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.shop-section__subheading { max-width: 24rem; font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.7; }
.shop-section__disclaimer { margin-top: 2.5rem; max-width: 42rem; margin-inline: auto; text-align: center; font-size: 0.75rem; color: var(--color-muted-foreground); }

.theme-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	align-items: stretch;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.theme-product-grid--related { grid-template-columns: 1fr; }
@media (min-width: 640px) { .theme-product-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.theme-product-card-wrap { display: flex; height: 100%; }
.theme-product-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	border-radius: var(--radius-lg);
	background: var(--color-card);
	border: 1px solid var(--color-border);
	overflow: hidden;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.theme-product-card:hover {
	border-color: color-mix(in srgb, var(--color-accent) 60%, transparent);
	box-shadow: 0 25px 50px -12px color-mix(in srgb, var(--color-accent) 10%, transparent);
	transform: translateY(-8px);
}
.theme-product-card__image-link { display: block; position: relative; }
.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--color-background);
}
/* Match Lovable: w-full h-full object-cover in aspect-square (square sources = no crop). */
.theme-product-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	display: block;
	transition: transform 0.7s ease;
}
.theme-product-card:hover .theme-product-card__image { transform: scale(1.05); }
.theme-product-card__badge {
	position: absolute;
	top: 0.75rem; left: 0.75rem;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--color-background) 90%, transparent);
	border: 1px solid var(--color-border);
	font-family: var(--font-mono);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
}
.theme-product-card__stock-badge {
	position: absolute;
	bottom: 0.75rem; right: 0.75rem;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	background: var(--color-destructive);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}
.theme-product-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.theme-product-card__title { font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
.theme-product-card__title a:hover { color: var(--color-accent); }
.theme-product-card__tagline {
	margin-top: 0.4rem;
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	min-height: 2.5rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.theme-product-card__price-row { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.theme-product-card__price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.theme-product-card__price .woocommerce-Price-amount { font-family: var(--font-display); }
.theme-product-card__details-link { font-size: 0.75rem; font-weight: 600; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); padding: 0.4rem; }
.theme-product-card__details-link:hover { color: var(--color-accent); }

.theme-btn-add-to-bag {
	margin-top: 0.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.6rem 1rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	background: var(--color-accent);
	color: var(--color-accent-foreground);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.theme-btn-add-to-bag:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--color-accent) 25%, transparent); }
.theme-btn-add-to-bag:active { transform: scale(0.98); }
.theme-btn-add-to-bag--disabled { background: var(--color-muted); color: var(--color-muted-foreground); cursor: not-allowed; }

.theme-product-card__retailers { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-border); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.theme-btn-retailer {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.6rem 0.5rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	border: 1px solid var(--color-border);
	color: var(--color-foreground);
	transition: transform 0.3s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.3s ease;
}
.theme-btn-retailer:hover { transform: translateY(-2px); border-color: var(--color-accent); color: var(--color-accent); }
.theme-btn-retailer:active { transform: scale(0.98); }
.theme-btn-retailer--amazon {
	background: var(--color-highlight);
	color: var(--color-highlight-foreground);
	border: none;
}
.theme-btn-retailer--amazon:hover { color: var(--color-highlight-foreground); box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--color-highlight) 25%, transparent); }
.theme-btn-retailer--sm { padding: 0.35rem 0.6rem; font-size: 11px; }
.theme-btn-retailer--lg { padding: 0.85rem 1.25rem; font-size: 0.875rem; }
.theme-btn-retailer--outline { background: transparent; }

/* ====================================================================== */
/* Feature grid — Services / Standards                                    */
/* ====================================================================== */
.services-section, .standards-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
@media (min-width: 640px) { .services-section, .standards-section { padding: 7rem 0; } }
.services-section { background: color-mix(in srgb, var(--color-secondary) 40%, transparent); }
.standards-section { background: var(--color-background); }
.services-section__head, .standards-section__head { max-width: 42rem; }
.services-section__head p, .standards-section__head p { margin-top: 1.25rem; color: var(--color-muted-foreground); line-height: 1.7; }

.theme-feature-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 640px) { .theme-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.theme-feature-grid--4col { }
@media (min-width: 1024px) { .theme-feature-grid--4col { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme-feature-grid--3col { grid-template-columns: 1fr; }
@media (min-width: 768px) { .theme-feature-grid--3col { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.theme-feature-card {
	border-radius: var(--radius-lg);
	background: var(--color-card);
	border: 1px solid var(--color-border);
	padding: 1.5rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.theme-feature-card:hover { border-color: color-mix(in srgb, var(--color-accent) 60%, transparent); box-shadow: 0 20px 40px -12px color-mix(in srgb, var(--color-accent) 10%, transparent); transform: translateY(-6px); }
.theme-feature-card__icon { color: var(--color-accent); width: 24px; height: 24px; transition: transform 0.3s ease; }
.theme-feature-card:hover .theme-feature-card__icon { transform: scale(1.1) rotate(-6deg); }
.theme-feature-card__title { font-size: 1.125rem; font-weight: 700; margin-top: 1rem; transition: color 0.2s ease; }
.theme-feature-card:hover .theme-feature-card__title { color: var(--color-accent); }
.theme-feature-card__body { margin-top: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.7; }
.theme-feature-card--numbered { padding: 1.75rem; }
.theme-feature-card__top { display: flex; align-items: center; justify-content: space-between; }
.theme-feature-card__number { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--color-muted-foreground); }
.theme-feature-card--numbered .theme-feature-card__title { font-size: 1.25rem; }

/* ====================================================================== */
/* About                                                                   */
/* ====================================================================== */
.about-section { padding: 5rem 0; border-top: 1px solid var(--color-border); background: var(--color-background); }
@media (min-width: 640px) { .about-section { padding: 7rem 0; } }
.about-section__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .about-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }
.about-section p { margin-top: 1.25rem; color: var(--color-muted-foreground); line-height: 1.7; }
.about-social-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.about-image-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-card); transition: border-color 0.3s ease; }
.about-image-frame:hover { border-color: color-mix(in srgb, var(--color-accent) 60%, transparent); }
.about-image { transition: transform 0.7s ease; }
.about-image-frame:hover .about-image { transform: scale(1.05); }

/* ====================================================================== */
/* Blog                                                                    */
/* ====================================================================== */
.blog-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
@media (min-width: 640px) { .blog-section { padding: 7rem 0; } }
.blog-section__head { max-width: 42rem; margin-bottom: 2.5rem; }
.blog-section__head p { margin-top: 1rem; color: var(--color-muted-foreground); line-height: 1.7; }

.theme-blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .theme-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.theme-blog-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--radius-lg);
	background: var(--color-card);
	border: 1px solid var(--color-border);
	overflow: hidden;
	transition: border-color 0.3s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-blog-card:hover { border-color: color-mix(in srgb, var(--color-accent) 60%, transparent); transform: translateY(-6px); }
.theme-blog-card__link { display: flex; flex-direction: column; height: 100%; }
.theme-blog-card__image-wrap, .theme-blog-card { position: relative; }
.theme-blog-card__image { position: static; aspect-ratio: 3 / 2; width: 100%; height: auto; object-fit: cover; display: block; }
.theme-blog-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.theme-blog-card__cat { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-accent); margin-bottom: 0.5rem; }
.theme-blog-card__title { font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
.theme-blog-card__excerpt { margin-top: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.theme-blog-card__meta { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--color-muted-foreground); gap: 0.5rem; min-width: 0; }
.theme-blog-card__read { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 600; color: var(--color-accent); }
.theme-blog-card__meta-static { margin-top: 0.5rem; font-size: 0.75rem; color: var(--color-muted-foreground); }

/* Restore relative positioning needed for the cover-img rule inherited above */
.theme-blog-card__image { position: relative !important; inset: auto !important; }

/* ====================================================================== */
/* FAQ                                                                     */
/* ====================================================================== */
.faq-section { padding: 5rem 0; border-top: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-secondary) 40%, transparent); }
@media (min-width: 640px) { .faq-section { padding: 7rem 0; } }
.faq-section__head { margin-bottom: 2.5rem; }
.theme-faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-faq-item { border-radius: var(--radius-lg); background: var(--color-card); border: 1px solid var(--color-border); overflow: hidden; }
.theme-faq-item__question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	text-align: left;
	padding: 1rem 1.25rem;
	background: none;
	border: none;
	color: var(--color-foreground);
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
}
.theme-faq-item__chevron { color: var(--color-accent); flex-shrink: 0; transition: transform 0.25s ease; }
.theme-faq-item__question[aria-expanded="true"] .theme-faq-item__chevron { transform: rotate(180deg); }
.theme-faq-item__answer { padding: 0 1.25rem 1.25rem; font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.7; }
.theme-faq-item__answer[hidden] { display: none; }

/* ====================================================================== */
/* Contact                                                                 */
/* ====================================================================== */
.contact-section { padding: 5rem 0; border-top: 1px solid var(--color-border); background: var(--color-background); }
@media (min-width: 640px) { .contact-section { padding: 7rem 0; } }
.contact-section__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .contact-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }
.contact-section__paragraph { margin-top: 1.25rem; max-width: 28rem; color: var(--color-muted-foreground); line-height: 1.7; }
.contact-links { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.contact-link-card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	background: var(--color-card);
	transition: border-color 0.2s ease;
}
.contact-link-card:hover { border-color: var(--color-accent); }
.contact-link-card__icon { width: 20px; height: 20px; color: var(--color-accent); } /* Lovable w-5 h-5 */
.contact-section__cards { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card { border-radius: var(--radius-lg); background: var(--color-card); border: 1px solid var(--color-border); padding: 1.5rem; }
.contact-card h3 { font-size: 1.125rem; font-weight: 700; }
.contact-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.contact-card__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 1.25rem; }
.contact-pill-link {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.6rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	font-size: 0.875rem;
	font-weight: 500;
	transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-pill-link:hover { border-color: var(--color-accent); color: var(--color-accent); }
.contact-pill-link--solid { background: var(--color-accent); color: var(--color-accent-foreground); border: none; font-weight: 600; }
.contact-pill-link--solid:hover { color: var(--color-accent-foreground); opacity: 0.9; }

/* ====================================================================== */
/* Footer                                                                  */
/* ====================================================================== */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-background); padding: 3.5rem 0; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.site-footer__tagline { margin-top: 1rem; max-width: 20rem; font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.7; }
.site-footer__affiliate-note { margin-top: 1rem; max-width: 20rem; font-size: 0.75rem; color: var(--color-muted-foreground); }
.site-footer__heading { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-nav, .footer-nav-link { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-nav a, .footer-nav-link { font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; width: fit-content; }
.footer-nav a:hover, .footer-nav-link:hover { color: var(--color-accent); }
.site-footer__contact-links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-contact-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; width: fit-content; }
.footer-contact-link:hover { color: var(--color-accent); }
.footer-contact-link .theme-icon { width: 16px; height: 16px; } /* Lovable Mail/Phone w-4 h-4 */
.site-footer__pill-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.footer-pill-link { font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.footer-pill-link:hover { color: var(--color-accent); }
.site-footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); text-align: center; font-size: 0.75rem; color: var(--color-muted-foreground); }

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

#theme-cart-drawer {
	position: fixed;
	top: 0; right: 0; bottom: 0;
	z-index: 61;
	width: 100%;
	max-width: 26rem;
	display: flex;
	flex-direction: column;
	background: var(--color-card);
	border-left: 1px solid var(--color-border);
	transform: translateX(100%);
	transition: transform 0.3s ease;
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer__header { padding: 1.25rem; border-bottom: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; }
.theme-cart-drawer__title { font-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer__close { background: none; border: none; padding: 0.5rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.theme-cart-drawer__close:hover { color: var(--color-accent); }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 1.5rem; text-align: center; }
.theme-cart-drawer__empty .theme-icon { color: var(--color-muted-foreground); }
.theme-cart-drawer__empty p { font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-cart-drawer__browse-btn { margin-top: 0.5rem; padding: 0.625rem 1.25rem; border-radius: 999px; font-size: 0.875rem; font-weight: 600; background: var(--color-accent); color: var(--color-accent-foreground); }

.theme-cart-drawer__items { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
.theme-cart-item { display: flex; gap: 0.75rem; }
.theme-cart-item__image-link { flex-shrink: 0; display: block; }
.theme-cart-item__image { width: 5rem; height: 5rem; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--color-border); display: block; }
.theme-cart-item__body { min-width: 0; flex: 1; }
.theme-cart-item__title { font-weight: 600; font-size: 0.875rem; line-height: 1.4; display: block; }
.theme-cart-item__title:hover { color: var(--color-accent); }
.theme-cart-item__price { margin-top: 0.15rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-cart-item__variation { margin-top: 0.25rem; font-size: 0.75rem; color: var(--color-muted-foreground); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-cart-item__controls { margin-top: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.theme-cart-item__qty { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--color-border); }
.theme-cart-item__qty button { background: none; border: none; padding: 0.5rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.theme-cart-item__qty button:hover { color: var(--color-accent); }
.theme-cart-item__qty-value { width: 1.75rem; text-align: center; font-size: 0.875rem; font-weight: 600; }
.theme-cart-item__remove { background: none; border: none; padding: 0.5rem; color: var(--color-muted-foreground); }
.theme-cart-item__remove:hover { color: var(--color-destructive); }
.theme-cart-item__retailers { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.theme-cart-drawer__footer { border-top: 1px solid var(--color-border); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.theme-cart-drawer__subtotal-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-drawer__subtotal-value { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer__checkout-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 0.75rem 1.25rem; border-radius: 999px; font-size: 0.875rem; font-weight: 600; background: var(--color-accent); color: var(--color-accent-foreground); transition: opacity 0.2s ease; }
.theme-cart-drawer__checkout-btn:hover { opacity: 0.9; }
.theme-cart-drawer__note { font-size: 11px; color: var(--color-muted-foreground); text-align: center; }

/* Hide WooCommerce's own "View cart" link (Section 11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* Notices — scoped hiding (Section 14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-radius: var(--radius);
	background: var(--color-card);
	border: 1px solid var(--color-border);
	color: var(--color-foreground);
	padding: 1rem 1.25rem;
	font-size: 0.875rem;
	list-style: none;
}

/* ====================================================================== */
/* Single product page                                                    */
/* ====================================================================== */
.single-product-main { padding: 7rem 0 5rem; }
.back-to-shop-link, .back-to-blog-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-mono);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--color-muted-foreground);
	transition: color 0.2s ease;
}
.back-to-shop-link:hover, .back-to-blog-link:hover { color: var(--color-accent); }

.theme-product-layout {
	margin-top: 1.5rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	min-width: 0;
}
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-gallery__main {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--color-border);
	background: var(--color-card);
}
.theme-product-thumbnails { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; max-width: 100%; }
.theme-product-thumb {
	width: 4.5rem; height: 4.5rem;
	border-radius: var(--radius);
	overflow: hidden;
	border: 2px solid var(--color-border);
	background: none;
	padding: 0;
}
.theme-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-product-thumb.is-active { border-color: var(--color-accent); }

.theme-product-info__category { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-accent); }
.product-title { font-family: var(--font-body); font-weight: 800; font-size: 1.875rem; margin-top: 0.5rem; line-height: 1.25; }
@media (min-width: 640px) { .product-title { font-size: 2.25rem; } }
.theme-product-info__tagline { margin-top: 0.75rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-product-info__price { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; margin-top: 1.25rem; }
.theme-product-info__stock--out { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 700; color: var(--color-destructive); }
.theme-product-info__description { margin-top: 1.25rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; overflow-wrap: break-word; word-break: break-word; }
.theme-product-info__description p + p { margin-top: 0.75rem; }
.theme-product-info__bullets { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.65rem; }
.theme-product-info__bullets li { display: flex; gap: 0.65rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }
.theme-product-info__bullets li .theme-icon { color: var(--color-accent); flex-shrink: 0; margin-top: 0.15rem; }

.single-product .theme-add-to-cart-area {
	margin-top: 2rem;
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.theme-quantity-wrapper { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--color-border); }
.theme-qty-minus, .theme-qty-plus { background: none; border: none; padding: 0.7rem 1rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.theme-qty-minus:hover, .theme-qty-plus:hover { color: var(--color-accent); }
.theme-qty-input {
	width: 2.5rem;
	border: none;
	background: none;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-foreground);
	-moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

.theme-product-info__retailers { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.theme-product-info__retailers-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }
.theme-product-info__retailers-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .theme-product-info__retailers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.theme-product-info__retailers-note { margin-top: 0.75rem; font-size: 0.75rem; color: var(--color-muted-foreground); }
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

.related-products-section { margin-top: 5rem; }
.related-products-heading { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }

/* ====================================================================== */
/* Add-to-cart button style override (Section 11.4.1)                     */
/* ====================================================================== */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-accent) !important;
	color: var(--color-accent-foreground) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.5rem !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-accent) !important;
	color: var(--color-accent-foreground) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-accent) !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

/* Card compact button override */
.theme-product-card .theme-btn-add-to-bag.loading { opacity: 0.6; pointer-events: none; cursor: wait; }
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }

/* ====================================================================== */
/* Blog single post                                                       */
/* ====================================================================== */
.single-post-main { padding: 7.5rem 0 5rem; }
.single-post__head { margin-top: 1.5rem; }
.single-post__cat { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--color-accent); margin-bottom: 0.75rem; }
.single-post__title { font-size: 1.875rem; font-weight: 800; line-height: 1.2; }
@media (min-width: 640px) { .single-post__title { font-size: 3rem; } }
.single-post__meta { margin-top: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.single-post__image-frame { position: relative; aspect-ratio: 3 / 2; margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); }
.single-post__body { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; font-size: 1rem; color: var(--color-muted-foreground); line-height: 1.8; }
.single-post__body p { margin: 0; }
.single-post__cta-card { margin-top: 2.5rem; border-radius: var(--radius-lg); background: var(--color-card); border: 1px solid var(--color-border); padding: 1.5rem; }
.single-post__cta-card h2 { font-size: 1.25rem; font-weight: 700; }
.single-post__cta-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.single-post__cta-card .btn-hero-primary { margin-top: 1rem; }
.single-post__related { margin-top: 3.5rem; }
.single-post__related-heading { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.25rem; }
.single-post__related-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .single-post__related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ====================================================================== */
/* 404                                                                     */
/* ====================================================================== */
.notfound-main { min-height: 70vh; display: flex; align-items: center; justify-content: center; background: var(--color-muted); }
.notfound-content { text-align: center; }
.notfound-content h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.notfound-content p { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.notfound-content a { color: var(--color-accent); text-decoration: underline; }

/* ====================================================================== */
/* Generic page (checkout / thank you shell)                              */
/* ====================================================================== */
.site-main { padding-top: 7.5rem; padding-bottom: 5rem; }
body.theme-no-hero:not(.woocommerce-checkout):not(.theme-thankyou-page) .site-main { padding-top: 7.5rem; }
.page-title { font-size: 1.875rem; font-weight: 800; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .page-title { font-size: 2.5rem; } }

/* ====================================================================== */
/* WooCommerce Checkout Block overrides (Section 13)                      */
/* ====================================================================== */
body.woocommerce-checkout .site-main { padding-top: var(--header-height, 80px); padding-bottom: 4rem; }
body.woocommerce-checkout .entry-content { max-width: 100%; }

body.woocommerce-checkout .wc-block-checkout { display: block; }
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
	body.woocommerce-checkout .wc-block-checkout__main-and-sidebar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2.5rem);
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background-color: var(--color-card);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
	border-color: var(--color-accent);
	outline: none;
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: var(--color-muted-foreground); }

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 2rem;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-accent) !important;
	color: var(--color-accent-foreground) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	font-weight: 600 !important;
	text-transform: none !important;
	border: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--radius);
	font-family: var(--font-body);
}

body.woocommerce-checkout,
body.woocommerce-cart,
body.woocommerce-account { background: var(--color-background); color: var(--color-foreground); }

body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-product-metadata,
body.woocommerce-checkout .wc-block-components-totals-item { color: var(--color-foreground); }

/* Order summary qty badge — number must contrast with its pill background. */
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
	background-color: var(--color-accent) !important;
	border: 2px solid var(--color-background) !important;
	color: var(--color-accent-foreground) !important;
	box-shadow: none !important;
}
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity span,
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity > span[aria-hidden="true"] {
	color: var(--color-accent-foreground) !important;
	opacity: 1 !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}

/* ====================================================================== */
/* Thank-you page (Section 22.8)                                          */
/* ====================================================================== */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .site-main { padding-top: var(--header-height, 80px); }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.5rem;
	padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	list-style: none;
	padding: 1.25rem;
	margin: 1.5rem 0;
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
}
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-customer-details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 2rem;
}
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: start;
	}
}
body.theme-thankyou-page .woocommerce-customer-details address {
	min-width: 0;
	overflow-wrap: break-word;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 1rem;
	background: var(--color-card);
	font-style: normal;
}
body.theme-thankyou-page .woocommerce-order-details { margin-top: 2rem; }
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
	border: 1px solid var(--color-border);
	padding: 0.6rem 0.75rem;
	font-size: 0.875rem;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }

/* ====================================================================== */
/* Customizer media control preview (used only in wp-admin, harmless here) */
/* ====================================================================== */
.theme-media-control { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-media-url-input { width: 100%; min-width: 0; box-sizing: border-box; }
.theme-media-preview { max-width: 100%; height: auto; display: block; }
