/* =========================================================================
   Gorilla Tees and Apparel — theme.css
   Theme by The Free Website Guys.
   ========================================================================= */

/* ---------------------------------------------------------------------
 * 1. CSS VARIABLES (fallback defaults — live values are re-emitted inline
 *    by wp_add_inline_style so the Customizer stays the single source of
 *    truth; Section 6.1)
 * --------------------------------------------------------------------- */
:root {
	--color-background: #0f0f0f;
	--color-foreground: #f5f4ef;
	--color-card: #1c1c1c;
	--color-primary: #f5c219;
	--color-primary-foreground: #0f0f0f;
	--color-secondary: #1c1c1c;
	--color-muted: #383838;
	--color-muted-foreground: #b9b5ac;
	--color-border: #2e2e2e;
	--color-accent: #304b36;
	--color-accent-foreground: #f5f4ef;
	--color-destructive: #ef4343;
	--color-button-text: var(--color-primary-foreground);

	--font-display: 'Anton', 'Impact', sans-serif;
	--font-body: 'Work Sans', system-ui, sans-serif;

	--radius: 0rem;
	--card-radius: 0rem;
	--btn-radius: 0rem;
	--btn-height: 44px;
	--btn-padding: 0 2.5rem;
	--btn-font-size: 0.875rem;
	--btn-font-weight: 700;
	--btn-letter-spacing: 0.2em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0.5rem;

	--logo-height: 64px;
	--footer-logo-height: 88px;
	--header-height: 80px;
	--section-padding: 2rem;
	--checkout-gap: 1.5rem;

	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
	--shadow-elevated: 0 10px 40px -8px rgba(245, 194, 25, 0.3);
}

/* ---------------------------------------------------------------------
 * 2. RESET & BASE
 * --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Tailwind-preflight parity — headings use display font like Lovable (src/index.css). */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	margin: 0;
	letter-spacing: 0.005em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dt, dd { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; }

/* [hidden] must beat author display:flex/block (anti-regression). */
[hidden] { display: none !important; }

/* Global cover-image rule (Section 15.1) — explicit exclusion list. */
img:not(.cover-img):not(.hero-bg-img):not(.theme-product-card__image):not(.theme-product-gallery__main-image):not(.site-logo-img):not(.about-logo-img):not(.footer-logo-img) {
	max-width: 100%;
	height: auto;
	display: block;
}
.cover-img, .hero-bg-img, .theme-product-card__image, .theme-product-gallery__main-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.theme-product-thumb img,
.theme-cart-drawer__item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none;
}

.container-wide {
	width: 100%;
	max-width: 84rem;
	margin: 0 auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide { padding-left: 2rem; padding-right: 2rem; }
}

.text-highlight { color: var(--color-primary); }

.theme-icon { flex-shrink: 0; }

/* ---------------------------------------------------------------------
 * 3. SCROLL REVEAL ANIMATIONS (Section 2.1)
 * --------------------------------------------------------------------- */
.reveal-up, .reveal-fade, .reveal-scale, .reveal-item {
	opacity: 0;
	will-change: opacity, transform;
}
.reveal-up { transform: translateY(40px); transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth); transition-delay: var(--reveal-delay, 0s); }
.reveal-fade { transition: opacity 0.8s var(--transition-smooth); transition-delay: var(--reveal-delay, 0s); }
.reveal-scale { transform: scale(0.95); transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth); }
.reveal-item { transform: translateY(40px); transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth); }

.reveal-up.is-visible, .reveal-fade.is-visible, .reveal-scale.is-visible, .reveal-item.is-visible {
	opacity: 1;
	transform: none;
}

/* Customizer preview fallback — reveal content must never stay hidden in the editor (Section 2.1 rule 5). */
body.is-customizer .reveal-up,
body.is-customizer .reveal-fade,
body.is-customizer .reveal-scale,
body.is-customizer .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-up, .reveal-fade, .reveal-scale, .reveal-item {
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

.animate-fade-in { animation: gtaFadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: gtaSlideUp 0.6s var(--transition-smooth) forwards; }
@keyframes gtaFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gtaSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------------------------------------------------------------
 * 4. BUTTONS
 * --------------------------------------------------------------------- */
.btn-theme {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: var(--btn-height);
	padding: var(--btn-padding);
	border-radius: var(--btn-radius);
	font-family: var(--font-body);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	transition: opacity 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
}
.btn-theme:hover { opacity: 0.9; }
.btn-theme:active { transform: scale(0.97); }

.btn-theme--primary { background-color: var(--color-primary); color: var(--color-primary-foreground); }
.btn-theme--secondary-cta { background-color: var(--color-background); color: var(--color-foreground); }
.btn-theme--secondary-cta:hover { background-color: var(--color-foreground); color: var(--color-background); }
.btn-theme--outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-foreground); }
.btn-theme--outline:hover { background-color: var(--color-accent); color: var(--color-accent-foreground); }
.btn-theme--outline-hero { background: transparent; border: 1px solid rgba(245, 244, 239, 0.3); color: var(--color-foreground); }
.btn-theme--outline-hero:hover { background-color: var(--color-foreground); color: var(--color-background); }
.btn-theme--lg { padding: 0 2.5rem; height: 48px; }

/* ---------------------------------------------------------------------
 * 5. HEADER
 * --------------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	transition: background-color 0.3s ease, border-color 0.3s ease;
	background-color: transparent;
	border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.site-header.menu-open {
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(6px);
	border-bottom-color: var(--color-border);
}

/* Fixed header + WP admin bar compensation. */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
}
@media (min-width: 1024px) {
	.site-nav { height: 96px; }
	:root { --header-height: 96px; }
}

.site-logo-link { display: flex; align-items: center; gap: 0.5rem; }
.site-logo-img { height: var(--logo-height); width: auto; object-fit: contain; display: block; }
/* Lovable: h-16 lg:h-20 on header logo. */
@media (min-width: 1024px) {
	.header-logo-img { height: calc(var(--logo-height) * 1.25); }
}
.footer-logo-img { height: var(--footer-logo-height); width: auto; object-fit: contain; display: block; }
.site-logo-text { font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; color: var(--color-foreground); }

.site-nav-links { margin-left: auto; padding-right: 1rem; display: none; }
@media (min-width: 768px) { .site-nav-links { display: block; } }
.theme-nav-list { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.theme-nav-list li { list-style: none; }
.theme-nav-link, .theme-nav-list a {
	position: relative;
	font-size: 0.875rem;
	font-family: var(--font-body);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-weight: 600;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
	transition: color 0.3s ease;
}
.site-header:not(.is-solid) .theme-nav-link,
.site-header:not(.is-solid) .theme-nav-list a { color: rgba(255,255,255,0.8); }
.theme-nav-link:hover, .theme-nav-list a:hover { color: var(--color-foreground); }
.site-header:not(.is-solid) .theme-nav-link:hover,
.site-header:not(.is-solid) .theme-nav-list a:hover { color: #fff; }

.theme-nav-link::after, .theme-nav-list a::after {
	content: '';
	position: absolute;
	bottom: -4px; left: 0;
	width: 100%; height: 1px;
	background-color: var(--color-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-link:hover::after, .theme-nav-list a:hover::after { transform: scaleX(1); }

.site-nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.cart-toggle-btn {
	position: relative;
	padding: 0.5rem;
	color: var(--color-foreground);
	transition: color 0.2s ease;
}
.site-header:not(.is-solid) .cart-toggle-btn { color: #fff; }
.cart-toggle-btn:hover { color: var(--color-primary); }

.theme-cart-count {
	position: absolute;
	top: -2px; right: -2px;
	width: 20px; height: 20px;
	display: flex; align-items: center; justify-content: center;
	font-size: 10px; font-weight: 700;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
}
.theme-cart-count:empty { display: none; }

.mobile-menu-toggle {
	position: relative;
	padding: 0.5rem;
	color: var(--color-foreground);
	width: 2.25rem;
	height: 2.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.site-header:not(.is-solid) .mobile-menu-toggle { color: #fff; }
.mobile-menu-toggle .icon-menu-open,
.mobile-menu-toggle .icon-menu-close {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 20px;
	height: 20px;
	transition: opacity 0.25s var(--transition-smooth), transform 0.3s var(--transition-smooth);
}
.mobile-menu-toggle .icon-menu-open {
	opacity: 1;
	transform: rotate(0deg) scale(1);
}
.mobile-menu-toggle .icon-menu-close {
	opacity: 0;
	transform: rotate(-90deg) scale(0.7);
	pointer-events: none;
}
.mobile-menu-toggle[aria-expanded="true"] .icon-menu-open {
	opacity: 0;
	transform: rotate(90deg) scale(0.7);
	pointer-events: none;
}
.mobile-menu-toggle[aria-expanded="true"] .icon-menu-close {
	opacity: 1;
	transform: rotate(0deg) scale(1);
	pointer-events: auto;
}
@media (min-width: 768px) { .mobile-menu-toggle { display: none; } }

.mobile-menu {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	visibility: hidden;
	border-top: 1px solid transparent;
	transition:
		grid-template-rows 0.4s var(--transition-smooth),
		opacity 0.3s var(--transition-smooth),
		visibility 0.3s var(--transition-smooth),
		border-color 0.3s var(--transition-smooth);
}
.mobile-menu.is-open {
	grid-template-rows: 1fr;
	opacity: 1;
	visibility: visible;
	border-top-color: var(--color-border);
}
.mobile-menu > * {
	overflow: hidden;
	min-height: 0;
}
.mobile-menu .theme-nav-list {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	padding: 1rem 0 1.25rem;
}
.mobile-menu .theme-nav-list li {
	width: 100%;
	opacity: 0;
	transform: translateY(-10px);
	transition:
		opacity 0.35s var(--transition-smooth),
		transform 0.35s var(--transition-smooth),
		color 0.2s ease;
}
.mobile-menu.is-open .theme-nav-list li {
	opacity: 1;
	transform: translateY(0);
}
.mobile-menu.is-open .theme-nav-list li:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.is-open .theme-nav-list li:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.is-open .theme-nav-list li:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.is-open .theme-nav-list li:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.is-open .theme-nav-list li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.is-open .theme-nav-list li:nth-child(n+6) { transition-delay: 0.36s; }
.mobile-menu .theme-nav-link,
.mobile-menu a {
	color: var(--color-foreground);
	display: block;
	width: 100%;
	padding: 0.5rem 0;
}
.mobile-menu .theme-nav-link:hover,
.mobile-menu a:hover {
	color: var(--color-primary);
}
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
	.mobile-menu,
	.mobile-menu .theme-nav-list li,
	.mobile-menu-toggle .icon-menu-open,
	.mobile-menu-toggle .icon-menu-close {
		transition: none !important;
	}
	.mobile-menu:not(.is-open) .theme-nav-list li { opacity: 0; }
	.mobile-menu.is-open .theme-nav-list li { opacity: 1; transform: none; }
}

/* Home page: hero fills viewport under transparent fixed header (Section 22.7).
   Pages with their own top padding (single/archive/404) opt out of the generic offset. */
body.theme-no-hero .site-main:not(.single-product-main):not(.shop-archive-main):not(.notfound-main):not(.page-main):not(.index-main) {
	padding-top: var(--header-height);
}
body:not(.theme-no-hero) .front-page-main { padding-top: 0; }

/* ---------------------------------------------------------------------
 * 6. HERO SECTION
 * --------------------------------------------------------------------- */
.hero-section {
	position: relative;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: var(--color-background);
}
.hero-media { position: absolute; inset: 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-background) 75%, transparent); }
.hero-gradient {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, color-mix(in srgb, var(--color-background) 20%, transparent), color-mix(in srgb, var(--color-background) 45%, transparent), color-mix(in srgb, var(--color-background) 90%, transparent));
	pointer-events: none;
}

.hero-content { position: relative; z-index: 10; text-align: center; padding-block: 5rem; }

.hero-eyebrow-row { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 2rem; }
.hero-eyebrow-line { height: 1px; width: 40px; background-color: var(--color-primary); display: inline-block; }
.hero-eyebrow-text { font-size: 0.75rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--color-primary); font-weight: 700; }

.hero-title-mask { overflow: hidden; }
.hero-title {
	font-family: var(--font-display);
	font-size: 2.25rem;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	line-height: 0.9;
	color: var(--color-foreground);
}
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 6rem; } }

/*
 * Mobile only: .hero-title-mask { overflow:hidden } + .reveal-up { translateY(40px) }
 * clips the titles out of the mask and IntersectionObserver never marks them visible.
 * Keep desktop reveal (translate + is-visible) unchanged.
 */
@media (max-width: 767.98px) {
	.hero-section .hero-title-mask .reveal-up,
	.hero-section .hero-subtitle-mask .reveal-up {
		transform: none;
		opacity: 0;
		animation: gtaFadeIn 0.7s var(--transition-smooth) forwards;
		animation-delay: var(--reveal-delay, 0s);
	}
}

.hero-subtitle-mask { margin-top: 1rem; }
@media (min-width: 768px) { .hero-subtitle-mask { margin-top: 1.5rem; } }
.hero-subtitle {
	font-family: var(--font-display);
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	color: var(--color-muted-foreground);
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.875rem; } }
@media (min-width: 1024px) { .hero-subtitle { font-size: 2.25rem; } }

.hero-description {
	color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
	max-width: 36rem;
	margin: 2rem auto 2.5rem;
	font-size: 1rem;
}
@media (min-width: 768px) { .hero-description { font-size: 1.125rem; } }

.hero-cta-row { display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; padding: 0 1rem; }
@media (min-width: 640px) { .hero-cta-row { flex-direction: row; } }

/* ---------------------------------------------------------------------
 * 7. SECTION HEADINGS (Section 2.2 rule 5 — per-section scales)
 * --------------------------------------------------------------------- */
.section-heading { font-family: var(--font-display); text-transform: uppercase; }

.about-section .section-heading { font-size: 1.875rem; line-height: 0.95; }
@media (min-width: 768px) { .about-section .section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .about-section .section-heading { font-size: 3.75rem; } }

.services-section .section-heading { font-size: 2.25rem; }
@media (min-width: 768px) { .services-section .section-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .services-section .section-heading { font-size: 4.5rem; } }

.shop-section .section-heading { font-size: 2.25rem; }
@media (min-width: 768px) { .shop-section .section-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .shop-section .section-heading { font-size: 4.5rem; } }

.contact-section .section-heading { line-height: 0.95; }
@media (min-width: 768px) { .contact-section .section-heading { line-height: 0.9; } }
.contact-heading { font-size: 3rem; }
@media (min-width: 768px) { .contact-heading { font-size: 4.5rem; } }
@media (min-width: 1024px) { .contact-heading { font-size: 6rem; } }

/* ---------------------------------------------------------------------
 * 8. ABOUT SECTION
 * --------------------------------------------------------------------- */
.about-section,
.services-section,
.shop-section,
.contact-section {
	scroll-margin-top: 96px;
}
.about-section { position: relative; overflow: hidden; background-color: var(--color-card); }
.about-glow { position: absolute; pointer-events: none; filter: blur(64px); border-radius: 50%; }
.about-glow--top { top: -8rem; right: -5rem; width: 28rem; height: 28rem; background-color: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.about-glow--bottom { bottom: -8rem; left: -5rem; width: 24rem; height: 24rem; background-color: color-mix(in srgb, var(--color-primary) 5%, transparent); }
.about-inner { position: relative; padding-block: 4rem; }
@media (min-width: 768px) { .about-inner { padding-block: 6rem; } }

.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) {
	.about-grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 4rem;
	}
	.about-visual { grid-column: span 5; min-width: 0; }
	.about-content { grid-column: span 7; min-width: 0; }
}

.about-visual { display: flex; justify-content: center; position: relative; }
@media (min-width: 1024px) { .about-visual { justify-content: flex-start; } }
.about-logo-frame { position: relative; }
.about-logo-glow { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-primary) 20%, transparent); filter: blur(64px); transform: scale(0.9); }
.about-logo-box { position: relative; background-color: var(--color-background); border: 1px solid color-mix(in srgb, var(--color-primary) 40%, transparent); padding: 2rem; display: flex; align-items: center; justify-content: center; }
.about-logo-img { width: 16rem; height: 16rem; object-fit: contain; }
@media (min-width: 768px) { .about-logo-img { width: 20rem; height: 20rem; } }
.about-badge {
	position: absolute; bottom: -1rem; right: -1rem;
	background-color: var(--color-primary); color: var(--color-primary-foreground);
	padding: 0.5rem 1rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.25em;
}

.about-eyebrow-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.about-eyebrow-line { height: 1px; width: 2.5rem; background-color: var(--color-primary); display: inline-block; }
.about-eyebrow-text { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-primary); font-weight: 700; }

.about-heading { margin-bottom: 1.5rem; }
.about-description { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; margin-bottom: 2rem; max-width: 42rem; font-size: 1rem; }
@media (min-width: 768px) { .about-description { font-size: 1.125rem; } }

.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 1.25rem 0; }
.about-stat-label { font-size: 0.625rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-muted-foreground); font-weight: 700; }
.about-stat-value { font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; margin-top: 0.25rem; }
@media (min-width: 768px) { .about-stat-value { font-size: 1.5rem; } }

.about-footer-row { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
@media (min-width: 640px) { .about-footer-row { flex-direction: row; align-items: center; } }
.about-footer-note { color: var(--color-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.875rem; }

/* ---------------------------------------------------------------------
 * 9. SERVICES SECTION
 * --------------------------------------------------------------------- */
.services-section { position: relative; overflow: hidden; }
.services-inner { padding-block: 5rem; }
@media (min-width: 768px) { .services-inner { padding-block: 7rem; } }
.services-header { text-align: center; margin-bottom: 3.5rem; }
.services-eyebrow { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-primary); font-weight: 700; display: block; }
.services-heading { margin-top: 0.75rem; }
.services-description { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); max-width: 42rem; margin: 1.5rem auto 0; font-size: 1rem; }
@media (min-width: 768px) { .services-description { font-size: 1.125rem; } }

.services-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.service-card {
	position: relative;
	background-color: var(--color-card);
	border: 1px solid var(--color-border);
	padding: 2rem;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: border-color 0.3s ease, transform 0.3s ease;
}
.service-card:hover { border-color: var(--color-primary); transform: translateY(-6px); }
.service-card__image-wrapper { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--color-border); margin-bottom: 1.5rem; }
.service-card__image { transition: transform 0.5s ease; }
.service-card:hover .service-card__image { transform: scale(1.05); }
.service-card__tag { font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-primary); font-weight: 700; margin-bottom: 1rem; }
.service-card__title { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; margin-bottom: 0.75rem; transition: color 0.3s ease; }
@media (min-width: 768px) { .service-card__title { font-size: 1.875rem; } }
.service-card:hover .service-card__title { color: var(--color-primary); }
.service-card__desc { font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.6; min-width: 0; }

/* ---------------------------------------------------------------------
 * 10. SHOP SECTION
 * --------------------------------------------------------------------- */
.shop-section { padding: 5rem 0; }
@media (min-width: 768px) { .shop-section { padding: 7rem 0; } }
.shop-header { text-align: center; margin-bottom: 3.5rem; }
.shop-eyebrow { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-primary); font-weight: 700; display: block; }
.shop-heading { margin-top: 0.75rem; margin-bottom: 2.5rem; }

.shop-category-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.theme-cat-filter {
	padding: 0.625rem 1.5rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-weight: 700;
	border: 1px solid var(--color-border);
	background: transparent;
	color: var(--color-foreground);
	transition: all 0.3s ease;
}
.theme-cat-filter:hover { border-color: var(--color-primary); color: var(--color-primary); }
.theme-cat-filter.is-active { background-color: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }

.shop-price-filter { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.shop-price-filter-toggle {
	display: flex; align-items: center; gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700;
	color: var(--color-muted-foreground);
	transition: color 0.3s ease;
}
.shop-price-filter-toggle:hover { color: var(--color-foreground); }
.shop-price-filter-chevron { transition: transform 0.3s ease; }
.shop-price-filter-toggle.is-open .shop-price-filter-chevron { transform: rotate(180deg); }

.price-range-panel {
	width: 100%;
	max-width: 24rem;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth);
}
.price-range-panel.is-open { max-height: 200px; opacity: 1; padding: 0.5rem 0; }

.price-range-wrapper { position: relative; height: 1.5rem; margin-bottom: 0.5rem; }
.range-track-bg, .range-track-fill {
	position: absolute; height: 4px; top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}
.range-track-bg { left: 0; right: 0; background: var(--color-border); }
.range-track-fill { background: var(--color-primary); }

.range-input {
	position: absolute; left: 0; top: 0;
	width: 100%; height: 100%; margin: 0;
	-webkit-appearance: none; appearance: none;
	background: transparent;
	pointer-events: none;
}
.range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 18px; height: 18px;
	border-radius: 50%;
	background: var(--color-background);
	border: 2px solid var(--color-primary);
	cursor: pointer;
	margin-top: 3px;
}
.range-input::-moz-range-thumb {
	pointer-events: auto;
	width: 18px; height: 18px;
	border-radius: 50%;
	background: var(--color-background);
	border: 2px solid var(--color-primary);
	cursor: pointer;
}
.range-input::-moz-range-track { background: transparent; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.price-range-values { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--color-muted-foreground); }

.theme-product-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	align-items: stretch;
}
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }

.shop-grid-item.theme-hidden-overflow { display: none; }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card { display: flex; flex-direction: column; height: 100%; }

.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 1 / 1;
	background-color: var(--color-secondary);
	overflow: hidden;
	margin-bottom: 1rem;
	transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}
.theme-product-card:hover .theme-product-card__image-wrapper {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px -12px hsl(30 15% 15% / 0.15);
}
.theme-product-card:hover .theme-product-card__image { transform: scale(1.08); }
.theme-product-card__image { transition: transform 0.6s var(--transition-smooth); }
.theme-product-card__image.is-sold-out { opacity: 0.6; }

.theme-product-card__badge {
	position: absolute; top: 0.5rem; left: 0.5rem;
	padding: 0.375rem 0.75rem;
	font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
	background-color: var(--color-foreground);
	color: var(--color-background);
}
@media (min-width: 768px) { .theme-product-card__badge { top: 0.75rem; left: 0.75rem; } }

.theme-product-card__image-overlay { position: absolute; inset: 0; background-color: transparent; transition: background-color 0.5s ease; }
.theme-product-card:hover .theme-product-card__image-overlay { background-color: color-mix(in srgb, var(--color-foreground) 5%, transparent); }

.theme-product-card__info { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.theme-product-card__title {
	font-size: 0.875rem; font-weight: 500; font-family: var(--font-body);
	transition: color 0.3s ease;
}
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { font-size: 0.875rem; color: var(--color-muted-foreground); font-weight: 600; }
.theme-product-card__price .woocommerce-Price-amount { color: inherit; }

.shop-show-more-row { text-align: center; margin-top: 2.5rem; }
.shop-empty-state { text-align: center; padding: 5rem 0; }
.shop-empty-state p { color: var(--color-muted-foreground); }

/* ---------------------------------------------------------------------
 * 11. CTA BANNER
 * --------------------------------------------------------------------- */
.cta-banner-section { padding-bottom: 5rem; }
.cta-banner {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 70%, #ffe566 30%));
	color: var(--color-primary-foreground);
	padding: 3rem;
	text-align: center;
	transition: transform 0.4s var(--transition-smooth);
}
.cta-banner:hover { transform: scale(1.01); }
@media (min-width: 768px) { .cta-banner { padding: 5rem; } }
.cta-banner-noise {
	position: absolute; inset: 0;
	background-image: radial-gradient(hsla(0, 0%, 100%, 0.02) 1px, transparent 1px);
	background-size: 3px 3px;
	pointer-events: none;
}
.cta-banner__heading { font-family: var(--font-display); font-size: 2.25rem; text-transform: uppercase; margin-bottom: 1rem; position: relative; }
@media (min-width: 768px) { .cta-banner__heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .cta-banner__heading { font-size: 4.5rem; } }
.cta-banner__description { opacity: 0.9; max-width: 28rem; margin: 0 auto 2rem; font-size: 1.125rem; position: relative; }

/* ---------------------------------------------------------------------
 * 12. CONTACT SECTION + MODAL
 * --------------------------------------------------------------------- */
.contact-section { position: relative; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: 0; }
.contact-bg-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--color-background) 85%, transparent), color-mix(in srgb, var(--color-background) 70%, transparent), color-mix(in srgb, var(--color-background) 95%, transparent)); }
.contact-bg-radial { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 0%, color-mix(in srgb, var(--color-background) 60%, transparent) 100%); }

.contact-inner { position: relative; z-index: 10; padding-block: 7rem; }
@media (min-width: 768px) { .contact-inner { padding-block: 9rem; } }
.contact-content { max-width: 48rem; margin: 0 auto; text-align: center; }

.contact-eyebrow { font-size: 0.75rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--color-primary); font-weight: 700; display: inline-flex; align-items: center; gap: 0.75rem; }
.contact-eyebrow-line { height: 1px; width: 2rem; background-color: var(--color-primary); display: inline-block; }
.contact-heading { margin-top: 2rem; margin-bottom: 2rem; }
.contact-heading-italic { font-style: italic; }
.contact-description { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); font-size: 1.125rem; max-width: 36rem; margin: 0 auto 3rem; }

/* Lovable ContactSection CTA: px-10/14 py-5/6, tracking 0.25em, hover wipe. */
.contact-cta-wrap,
.contact-content > .reveal-up:has(.contact-open-btn) {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 100%;
	padding-inline: 0.25rem;
	box-sizing: border-box;
}
.contact-open-btn {
	position: relative;
	margin: 0 auto;
	height: auto;
	padding: 1.25rem 1.5rem;
	gap: 0.75rem;
	letter-spacing: 0.18em;
	font-size: 0.8125rem;
	overflow: hidden;
	max-width: 100%;
	width: auto;
	box-sizing: border-box;
	white-space: normal;
	text-align: center;
	line-height: 1.3;
}
@media (min-width: 480px) {
	.contact-open-btn {
		padding: 1.25rem 2.5rem;
		letter-spacing: 0.22em;
		font-size: 0.875rem;
		gap: 1rem;
	}
}
@media (min-width: 768px) {
	.contact-open-btn {
		padding: 1.5rem 3.5rem;
		font-size: 1rem;
		letter-spacing: 0.25em;
	}
	.contact-cta-wrap,
	.contact-content > .reveal-up:has(.contact-open-btn) {
		padding-inline: 0;
	}
}
.contact-open-btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background-color: var(--color-foreground);
	transform: translateY(100%);
	transition: transform 0.5s ease-out;
	z-index: 0;
}
.contact-open-btn:hover::before { transform: translateY(0); }
.contact-open-btn:hover { opacity: 1; }
.contact-open-btn > * { position: relative; z-index: 1; transition: color 0.5s ease; }
.contact-open-btn:hover > * { color: var(--color-background); }

.contact-strip {
	margin-top: 4rem; padding-top: 2.5rem;
	border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
	gap: 1rem 2.5rem;
	font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
}
.contact-strip-item { display: flex; align-items: center; gap: 0.5rem; transition: color 0.3s ease; overflow-wrap: break-word; }
.contact-strip-item:hover { color: var(--color-primary); }
.contact-strip-item .theme-icon { color: var(--color-primary); flex-shrink: 0; }

.contact-modal {
	position: fixed; inset: 0; z-index: 100;
	display: flex; align-items: center; justify-content: center;
	padding: 1rem;
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.contact-modal.is-open { opacity: 1; visibility: visible; }
.contact-modal-backdrop {
	position: absolute; inset: 0;
	background-color: color-mix(in srgb, var(--color-background) 70%, transparent);
	backdrop-filter: blur(12px);
}
.contact-modal-panel {
	position: relative;
	width: 100%; max-width: 36rem; max-height: 90vh;
	overflow: hidden;
	transform: scale(0.92) translateY(30px);
	opacity: 0;
	transition: transform 0.45s var(--transition-smooth), opacity 0.45s var(--transition-smooth);
	background-color: color-mix(in srgb, var(--color-card) 40%, transparent);
	backdrop-filter: blur(24px);
	border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
	box-shadow: 0 20px 80px -20px color-mix(in srgb, var(--color-primary) 40%, transparent);
	padding: 2rem;
	box-sizing: border-box;
}
@media (min-width: 768px) { .contact-modal-panel { padding: 2.5rem; } }
.contact-modal.is-open .contact-modal-panel { transform: scale(1) translateY(0); opacity: 1; }

.contact-modal-glow { position: absolute; width: 15rem; height: 15rem; border-radius: 50%; filter: blur(48px); pointer-events: none; }
.contact-modal-glow--top { top: -5rem; right: -5rem; background-color: color-mix(in srgb, var(--color-primary) 30%, transparent); }
.contact-modal-glow--bottom { bottom: -5rem; left: -5rem; background-color: color-mix(in srgb, var(--color-primary) 10%, transparent); }

.contact-modal-close {
	position: absolute; top: 1rem; right: 1rem;
	width: 2.25rem; height: 2.25rem;
	display: flex; align-items: center; justify-content: center;
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
	z-index: 10;
	transition: all 0.2s ease;
}
.contact-modal-close:hover { color: var(--color-foreground); background-color: color-mix(in srgb, var(--color-foreground) 5%, transparent); }

.contact-modal-body {
	position: relative;
	max-height: calc(90vh - 4rem);
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.contact-modal-body::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media (min-width: 768px) {
	.contact-modal-body { max-height: calc(90vh - 5rem); }
}
.contact-modal-header { margin-bottom: 1.75rem; }
.contact-modal-eyebrow { font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-primary); font-weight: 700; }
.contact-modal-heading { font-family: var(--font-display); font-size: 1.875rem; text-transform: uppercase; margin-top: 0.5rem; line-height: 1; }
@media (min-width: 768px) { .contact-modal-heading { font-size: 2.25rem; } }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 768px) { .contact-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-form-label { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.25em; font-weight: 700; margin-bottom: 0.5rem; display: block; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.contact-form-input, .contact-form-textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	background-color: color-mix(in srgb, var(--color-background) 40%, transparent);
	backdrop-filter: blur(4px);
	border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
	color: var(--color-foreground);
	font-size: 0.875rem;
	transition: all 0.3s ease;
}
.contact-form-input::placeholder, .contact-form-textarea::placeholder { color: var(--color-muted-foreground); }
.contact-form-input:focus, .contact-form-textarea:focus {
	outline: none;
	border-color: var(--color-primary);
	background-color: color-mix(in srgb, var(--color-background) 60%, transparent);
}
.contact-form-textarea { resize: none; }
.contact-form-submit { width: 100%; }

.contact-success-icon {
	width: 4rem; height: 4rem;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 1.5rem;
}
.contact-modal-success-view { text-align: center; padding: 2.5rem 0; }
.contact-success-heading { font-family: var(--font-display); font-size: 1.875rem; text-transform: uppercase; margin-bottom: 0.5rem; }
.contact-success-text { color: var(--color-muted-foreground); }

/* ---------------------------------------------------------------------
 * 13. SIDE CART DRAWER
 * --------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed; inset: 0;
	background-color: color-mix(in srgb, var(--color-foreground) 20%, transparent);
	z-index: 60;
	opacity: 0; visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; visibility: visible; }

#theme-cart-drawer {
	position: fixed; top: 0; right: 0; bottom: 0;
	width: 100%; max-width: 28rem;
	background-color: var(--color-background);
	z-index: 61;
	box-shadow: var(--shadow-elevated);
	display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.4s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer__close { padding: 0.25rem; transition: opacity 0.2s ease; }
.theme-cart-drawer__close:hover { opacity: 0.6; }

.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.theme-cart-drawer__empty-icon { color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-cart-drawer__empty-text { color: var(--color-muted-foreground); margin-bottom: 1.5rem; }

.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-drawer__item { display: flex; gap: 1rem; }
.theme-cart-drawer__item-image { width: 5rem; height: 6rem; background-color: var(--color-secondary); overflow: hidden; flex-shrink: 0; display: block; }
.theme-cart-drawer__item-image img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-drawer__item-body { flex: 1; min-width: 0; }
.theme-cart-drawer__item-name { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.2s ease; }
.theme-cart-drawer__item-name:hover { opacity: 0.7; }
.theme-cart-drawer__item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.theme-cart-drawer__item-meta { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.theme-cart-drawer__item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-qty-btn { padding: 0.25rem; border-radius: 4px; transition: background-color 0.2s ease; display: flex; }
.theme-cart-qty-btn:hover { background-color: var(--color-secondary); }
.theme-cart-qty-value { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-remove-btn { margin-left: auto; font-size: 0.75rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.theme-cart-remove-btn:hover { color: var(--color-foreground); }

.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-drawer__subtotal-value { font-weight: 500; }
.theme-cart-drawer__shipping-note { font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-drawer__checkout-btn { width: 100%; }

/* Hide WooCommerce "View cart" injected after AJAX add (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; }

/* Scoped WC notice hiding (Section 14.1). */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* ---------------------------------------------------------------------
 * 14. WOOCOMMERCE — ADD TO CART BUTTON 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-primary) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: 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-primary) !important;
	color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

/* Hero CTAs and add-to-cart stay sentence case, never inherit global uppercase incorrectly (Section 2.2 rule 4). */
.btn-theme-hero-primary, .btn-theme--outline-hero { text-transform: uppercase; }
/* Lovable ProductDetail: font-display text-2xl md:text-3xl font-bold */
.product-title {
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: none;
	font-size: 1.5rem;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}
@media (min-width: 768px) { .product-title { font-size: 1.875rem; } }

/* ---------------------------------------------------------------------
 * 15. SINGLE PRODUCT PAGE
 * --------------------------------------------------------------------- */
.single-product-main { padding: 6rem 0 5rem; }
@media (min-width: 1024px) { .single-product-main { padding-top: 7rem; } }

.back-to-shop-row { padding: 1.5rem 0; }
.back-to-shop-link { display: inline-flex; align-items: center; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.back-to-shop-link:hover { color: var(--color-foreground); }
.back-to-shop-icon { margin-right: 0.5rem; }

.theme-product-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	padding-bottom: 5rem;
	min-width: 0;
}
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }

.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }

.theme-product-gallery__main {
	position: relative;
	aspect-ratio: 3 / 4;
	background-color: var(--color-secondary);
	overflow: hidden;
	margin-bottom: 1rem;
}
.theme-product-gallery__main-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.theme-product-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumb { aspect-ratio: 1 / 1; overflow: hidden; border: 2px solid transparent; opacity: 0.6; transition: all 0.2s ease; }
.theme-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.theme-product-thumb:hover { opacity: 1; }
.theme-product-thumb.is-active { border-color: var(--color-primary); opacity: 1; }

.theme-product-info { padding-top: 0; }
@media (min-width: 1024px) { .theme-product-info { padding-top: 2.5rem; } }
.theme-product-category { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-product-category a { color: inherit; }
.theme-product-price { font-size: 1.5rem; margin-bottom: 1.5rem; font-weight: 600; color: var(--color-primary); font-family: var(--font-body); }

.theme-stock-status--out { color: var(--color-destructive); font-weight: 600; margin-bottom: 1rem; }

.theme-product-description { color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 2rem; overflow-wrap: break-word; word-break: break-word; }

.theme-option-heading { font-size: 0.875rem; font-weight: 600; font-family: var(--font-body); margin-bottom: 0.75rem; }

.theme-size-selector { margin-bottom: 1.5rem; }
.theme-size-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-size-btn { padding: 0.5rem 1rem; font-size: 0.875rem; border: 1px solid var(--color-border); transition: all 0.2s ease; }
.theme-size-btn:hover { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); }
.theme-size-btn.is-active { background-color: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }

.theme-quantity-wrapper { display: flex; align-items: center; border: 1px solid var(--color-border); flex-shrink: 0; }
.theme-qty-minus, .theme-qty-plus { padding: 0.75rem 1rem; transition: background-color 0.2s ease; display: flex; align-items: center; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-input {
	width: 3rem; text-align: center;
	background: transparent; border: none; 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; }

.theme-add-to-cart-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.theme-add-to-cart-area .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

.theme-details-list { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-details-item { font-size: 0.875rem; color: var(--color-muted-foreground); display: flex; align-items: flex-start; overflow-wrap: break-word; }
.theme-details-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background-color: var(--color-primary); margin-top: 0.5rem; margin-right: 0.75rem; flex-shrink: 0; }

.theme-product-details { border-top: 1px solid var(--color-border); padding-top: 2rem; }

.related-products-section { padding: 5rem 0; border-top: 1px solid var(--color-border); margin-top: 2rem; }
.related-products-heading { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 2.5rem; text-transform: none; }
@media (min-width: 768px) { .related-products-heading { font-size: 1.5rem; } }
.theme-product-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (min-width: 1024px) { .theme-product-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
/* Related products: no reveal that leaves items invisible/offset (anti-regression). */
.theme-product-grid--related .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}

.posted_in { overflow-wrap: break-word; word-break: break-word; }

/* ---------------------------------------------------------------------
 * 16. SHOP ARCHIVE
 * --------------------------------------------------------------------- */
.shop-archive-main { padding: 7rem 0 5rem; }
.shop-archive-header { margin-bottom: 2.5rem; }
.page-title { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; }
.shop-empty-state { text-align: center; padding: 4rem 0; color: var(--color-muted-foreground); }

/* ---------------------------------------------------------------------
 * 17. PAGE / 404 / INDEX
 * --------------------------------------------------------------------- */
.page-main, .index-main { padding: 7rem 0 5rem; }
.notfound-main { min-height: 100vh; display: flex; align-items: center; background-color: var(--color-muted); }
.notfound-content { text-align: center; }
.notfound-heading { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 1rem; }
.notfound-text { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.notfound-link { color: var(--color-primary); text-decoration: underline; }
.notfound-link:hover { opacity: 0.9; }

/* ---------------------------------------------------------------------
 * 18. FOOTER
 * --------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--color-border); background-color: var(--color-background); }
.footer-inner { padding-block: 3rem; }
@media (min-width: 1024px) { .footer-inner { padding-block: 4rem; } }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.footer-description { margin-top: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); max-width: 24rem; line-height: 1.6; }
.footer-tagline { margin-top: 0.75rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--color-primary); font-weight: 700; }
.footer-col-heading { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.25em; margin-bottom: 1rem; color: var(--color-primary); }
.footer-nav-list, .footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav-list a { font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.footer-nav-list a:hover { color: var(--color-foreground); }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); overflow-wrap: break-word; }
.footer-contact-item a { transition: color 0.2s ease; overflow-wrap: break-word; }
.footer-contact-item a:hover { color: var(--color-foreground); }
.footer-contact-icon { flex-shrink: 0; }

.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; text-align: center; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; text-align: left; } }
.footer-copyright, .footer-credit { font-size: 0.75rem; color: var(--color-muted-foreground); }
.footer-credit { text-transform: uppercase; letter-spacing: 0.2em; }
.footer-credit a { text-decoration: underline; transition: color 0.2s ease; }
.footer-credit a:hover { color: var(--color-primary); }

/* ---------------------------------------------------------------------
 * 19. WOOCOMMERCE CHECKOUT BLOCK (Section 13)
 * --------------------------------------------------------------------- */
body.woocommerce-checkout .site-main {
	padding-top: var(--header-height);
	padding-bottom: 4rem;
}

/* Parents must not compress the checkout block. */
body.woocommerce-checkout .page-main > .container-wide,
body.woocommerce-checkout .site-main > .container-wide,
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout article,
body.woocommerce-checkout #page-content {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

body.woocommerce-checkout .page-title {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	box-sizing: border-box;
}
@media (min-width: 1024px) {
	body.woocommerce-checkout .page-title {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

/* Checkout block + notices share the same centered width. */
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout,
body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
@media (min-width: 1024px) {
	body.woocommerce-checkout .wp-block-woocommerce-checkout,
	body.woocommerce-checkout .wc-block-checkout,
	.entry-content .wp-block-woocommerce-checkout,
	.entry-content .wc-block-checkout,
	body.woocommerce-checkout .wc-block-components-notices,
	.entry-content .wc-block-components-notices {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

/* Notices nested inside the checkout block already inherit its padding — avoid double inset. */
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-notices,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-notices,
.entry-content .wp-block-woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-checkout .wc-block-components-notices {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

body.woocommerce-checkout .wc-block-checkout,
.entry-content .wc-block-checkout {
	display: block;
}

/* Real 2-col layout lives on the sidebar-layout wrapper (not only .wc-block-checkout). */
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-components-sidebar-layout,
	.entry-content .wc-block-checkout-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: var(--checkout-gap);
		align-items: start;
		width: 100%;
		box-sizing: border-box;
	}

	/* Notices / banners spanning full width when nested in the layout. */
	body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-notices,
	body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-notices,
	body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-notice-banner,
	body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-notice-banner,
	.entry-content .wc-block-components-sidebar-layout > .wc-block-components-notices,
	.entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-notices {
		grid-column: 1 / -1;
		order: 1;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	body.woocommerce-checkout .wc-block-checkout__main,
	.entry-content .wc-block-checkout__main {
		order: 2;
	}

	body.woocommerce-checkout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-components-sidebar,
	.entry-content .wc-block-checkout__sidebar,
	.entry-content .wc-block-components-sidebar {
		order: 3;
		min-width: 360px;
	}
}

body.woocommerce-checkout .wc-block-components-sidebar-layout > *,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > *,
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
.entry-content .wc-block-components-sidebar-layout > *,
.entry-content .wc-block-checkout-sidebar-layout > *,
.entry-content .wc-block-checkout__main,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-sidebar,
	body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-sidebar,
	.entry-content .wc-block-components-sidebar-layout > .wc-block-checkout__sidebar,
	.entry-content .wc-block-components-sidebar-layout > .wc-block-components-sidebar,
	.entry-content .wc-block-checkout-sidebar-layout > .wc-block-checkout__sidebar,
	.entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-sidebar {
		min-width: 360px;
		max-width: 100%;
	}
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
.entry-content .wc-block-checkout .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-select select {
	width: 100% !important;
	max-width: none !important;
	background-color: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	color: var(--color-foreground);
	font-family: var(--font-body);
	padding: revert;
	box-sizing: border-box;
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
.entry-content .wc-block-checkout .wc-block-components-text-input input::placeholder {
	color: var(--color-muted-foreground);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-text-input input:focus-visible,
.entry-content .wc-block-checkout .wc-block-components-text-input input:focus,
.entry-content .wc-block-checkout .wc-block-components-select select:focus {
	outline: none;
	border-color: var(--color-primary);
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
.entry-content .wc-block-checkout__sidebar {
	background-color: var(--color-card);
	border-radius: var(--card-radius);
	padding: var(--section-padding);
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	text-transform: uppercase;
	letter-spacing: var(--btn-letter-spacing);
	font-weight: var(--btn-font-weight);
}

body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-components-notice-banner {
	border-radius: var(--radius);
}

/* ---------------------------------------------------------------------
 * 20. WOOCOMMERCE THANK YOU PAGE (Section 22.8)
 * --------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details {
	max-width: 84rem;
	margin: 0 auto 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex; flex-wrap: wrap; gap: 1.5rem;
	list-style: none; padding: 1.5rem; background-color: var(--color-card);
}
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	text-transform: uppercase;
	padding: 0 0 1rem 0;
	font-size: 1.5rem;
}
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 { padding: 0.75rem; border-bottom: 1px solid var(--color-border); }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: start;
	}
}
body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; overflow-wrap: break-word; }

/* ---------------------------------------------------------------------
 * 21. WOOCOMMERCE CART / MY ACCOUNT WIDTH PARITY (Section 13.7)
 * --------------------------------------------------------------------- */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-top: calc(var(--header-height) + 2rem);
	padding-bottom: 4rem;
}
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
	max-width: 84rem;
	margin: 0 auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

/* ---------------------------------------------------------------------
 * 22. WOOCOMMERCE STOCK/OUT OF STOCK
 * --------------------------------------------------------------------- */
.theme-details-item, .theme-product-description, p { overflow-wrap: break-word; }
