/* =========================================================================
 * Coastal Creations N Designs — theme.css
 * All visual styling for the theme lives in this file (Section 10).
 * ========================================================================= */

/* -------------------------------------------------------------------------
 * 1. Design tokens
 * ---------------------------------------------------------------------- */
:root {
	--color-background: #f7f3ee;
	--color-foreground: #1e2b34;
	--color-card: #f1ece4;
	--color-primary: #3c6e77;
	--color-primary-foreground: #faf8f5;
	--color-secondary: #eae2d7;
	--color-muted: #dad3c8;
	--color-muted-foreground: #55636d;
	--color-accent: #d88e74;
	--color-accent-foreground: #1e2b34;
	--color-destructive: #bd2828;
	--color-border: #d1c9bd;
	--color-button-text: var(--color-primary-foreground);

	--font-display: 'Fraunces', serif;
	--font-body: 'DM Sans', sans-serif;

	--radius: 0px;
	--btn-radius: 0px;
	--card-radius: 0px;
	--btn-height: 44px;
	--btn-padding: 0 2.5rem;
	--btn-font-size: 0.75rem;
	--btn-font-weight: 600;
	--btn-letter-spacing: 0.2em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0.5rem;

	--header-height: 80px;
	--logo-height: 72px;
	--shadow-elevated: 0 20px 60px -12px hsl(189 33% 35% / 0.22);
	--transition-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
	--section-padding: 2rem;
	--checkout-gap: 1.5rem;
	--theme-checkout-max: 1280px;
	--theme-checkout-gap: 1.5rem;
	--theme-checkout-sidebar-min: 360px;
	--theme-checkout-sidebar-max: 400px;
}

/* -------------------------------------------------------------------------
 * 2. Reset / base
 * ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
	margin: 0;
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

img:not(.cover-img):not(.hero-media__img):not(.theme-product-card__image):not(.theme-product-main-img):not(.about-image):not(.custom-image):not(.contact-bg) {
	max-width: 100%;
	height: auto;
}
.cover-img, .hero-media__img, .theme-product-card__image, .theme-product-main-img, .about-image, .custom-image, .contact-bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: -0.015em;
	margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* Clickable affordance — hand cursor on interactive controls */
a,
button,
[role="button"],
[type="button"],
[type="submit"],
[type="reset"],
label[for],
select,
summary,
.theme-card-link,
.shop-filter-btn,
.theme-product-thumb,
.theme-nav-link,
.theme-cart-btn,
.theme-mobile-toggle,
.theme-modal-close,
.theme-cart-drawer__close,
.theme-qty-btn,
.theme-cart-qty-btn,
.theme-cart-item__remove,
.contact-meta-item,
.footer-social,
.back-to-shop-link,
[data-contact-open],
[data-contact-close],
[data-cart-open],
[data-cart-close],
[data-qty-minus],
[data-qty-plus],
[data-remove-item] {
	cursor: pointer;
}

.container-wide {
	/* Mirrors Lovable: max-w-7xl mx-auto px-6 lg:px-8 */
	width: 100%;
	max-width: 80rem; /* max-w-7xl */
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem; /* px-6 */
	padding-right: 1.5rem;
	box-sizing: border-box;
}
@media (min-width: 1024px) {
	.container-wide {
		padding-left: 2rem; /* lg:px-8 */
		padding-right: 2rem;
	}
}

.py-section { padding-top: 5rem; padding-bottom: 5rem; }

.theme-em { font-style: italic; color: var(--color-accent); font-family: var(--font-display); }

.grain-overlay {
	background-image: radial-gradient(rgba(30, 43, 52, 0.035) 1px, transparent 1px);
	background-size: 3px 3px;
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.theme-icon { width: 1.25rem; height: 1.25rem; }
.theme-icon-inline { width: 1rem; height: 1rem; display: inline-block; vertical-align: -0.15em; margin-right: 0.5rem; }
.theme-icon-sm { width: 1rem; height: 1rem; }
.theme-icon-xs { width: 0.75rem; height: 0.75rem; }

/* -------------------------------------------------------------------------
 * 3. Scroll reveal (Section 2.1)
 * ---------------------------------------------------------------------- */
.reveal-item { opacity: 0; }
.reveal-item.fade-only-item { transition: opacity 0.6s var(--transition-smooth); }
.reveal-item.slide-up-item { transform: translateY(40px); transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth); }
.reveal-item.scale-in-item { transform: scale(0.96); transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth); }
.reveal-item.is-visible { opacity: 1; transform: none; }

body.is-customizer .reveal-item,
body.is-customizer .reveal-item.slide-up-item,
body.is-customizer .reveal-item.scale-in-item,
body.is-customizer .reveal-item.fade-only-item {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item, .reveal-item.slide-up-item, .reveal-item.scale-in-item, .reveal-item.fade-only-item {
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* -------------------------------------------------------------------------
 * 4. Buttons
 * ---------------------------------------------------------------------- */
.btn-primary, .btn-outline, .btn-hero-primary, .btn-hero-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: var(--btn-height);
	padding: var(--btn-padding);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: none;
	border-radius: var(--btn-radius);
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}
.btn-primary, .btn-hero-primary {
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	border: none;
}
.btn-primary:hover, .btn-hero-primary:hover { opacity: 0.9; }

.btn-outline, .btn-hero-outline {
	background-color: transparent;
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
}
.btn-outline:hover { background-color: var(--color-accent); color: var(--color-accent-foreground); border-color: var(--color-accent); }

.btn-hero-outline {
	background-color: rgba(255,255,255,0.1);
	backdrop-filter: blur(4px);
	border-color: rgba(255,255,255,0.4);
	color: #fff;
	text-transform: none;
}
.btn-hero-outline:hover { background-color: #fff; color: var(--color-foreground); }

/* -------------------------------------------------------------------------
 * 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, top 0.2s ease;
	background-color: transparent;
	border-bottom: 1px solid transparent;
}
/* Offset fixed header under the WP admin bar */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}
.site-header.is-solid {
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(6px);
	border-bottom-color: var(--color-border);
}
.site-nav { display: flex; align-items: center; height: 4rem; }
@media (min-width: 1024px) { .site-nav { height: 5rem; } }

.site-branding { display: flex; align-items: center; gap: 0.75rem; }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; }
.site-logo-img--white { display: block; }
.site-logo-img--color { display: none; }
.site-header.is-solid .site-logo-img--white { display: none; }
.site-header.is-solid .site-logo-img--color { display: block; }
.site-logo-text { font-family: var(--font-display); font-size: 1.25rem; line-height: var(--logo-height); display: block; color: var(--color-foreground); }
.site-header:not(.is-solid) .site-logo-text { color: #fff; }

.site-nav-links { display: none; align-items: center; gap: 2rem; margin-left: auto; }
@media (min-width: 1024px) { .site-nav-links { display: flex; } }
.theme-nav-list { display: flex; align-items: center; gap: 2rem; }
.theme-nav-link {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	font-weight: 600;
	position: relative;
	transition: color 0.3s ease;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
}
.site-header:not(.is-solid) .theme-nav-link { color: rgba(255,255,255,0.95); text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.theme-nav-link::after {
	content: '';
	position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px;
	background-color: var(--color-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-link:hover::after { transform: scaleX(1); }

.site-nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
@media (min-width: 1024px) { .site-nav-actions { margin-left: 2rem; } }

.theme-cart-btn { position: relative; padding: 0.5rem; color: var(--color-foreground); }
.site-header:not(.is-solid) .theme-cart-btn { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.theme-cart-btn:hover { color: var(--color-accent); }
.theme-cart-count {
	position: absolute; top: -2px; right: -2px;
	width: 1.25rem; height: 1.25rem;
	display: flex; align-items: center; justify-content: center;
	font-size: 0.625rem; font-weight: 700;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
}
.theme-cart-count:empty { display: none; }

.theme-mobile-toggle { display: block; padding: 0.5rem; color: var(--color-foreground); }
.site-header:not(.is-solid) .theme-mobile-toggle { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
@media (min-width: 1024px) { .theme-mobile-toggle { display: none; } }
.theme-icon-close { display: none; }
body.mobile-menu-open .theme-icon-menu { display: none; }
body.mobile-menu-open .theme-icon-close { display: block; }

/* Mobile hamburger panel — vertical stack (mirrors Lovable flex-col gap-4) */
.theme-mobile-menu {
	display: none;
	border-top: 1px solid var(--color-border);
	padding: 1rem 0;
}
body.mobile-menu-open .theme-mobile-menu { display: block; }
@media (min-width: 1024px) { .theme-mobile-menu { display: none !important; } }

.theme-mobile-menu-list,
.theme-mobile-menu .theme-nav-list,
.theme-mobile-menu ul {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	flex-wrap: nowrap !important;
	gap: 1rem;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.theme-mobile-menu .theme-nav-item,
.theme-mobile-menu li,
.theme-mobile-menu .menu-item {
	display: block;
	width: 100%;
	margin: 0;
	float: none;
}

.theme-mobile-menu .theme-nav-link,
.theme-mobile-menu a {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.5rem 0;
	font-size: 0.875rem;
	font-family: var(--font-body);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--color-foreground);
	transition: color 0.3s ease;
}
.theme-mobile-menu .theme-nav-link:hover,
.theme-mobile-menu a:hover {
	color: var(--color-accent);
}
.theme-mobile-menu .theme-nav-link::after {
	display: none;
}

/* -------------------------------------------------------------------------
 * 6. Hero
 * ---------------------------------------------------------------------- */
.hero-section {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: var(--color-background);
}
body:not(.theme-no-hero) .site-main { padding-top: 0; }
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-overlay-1 { position: absolute; inset: 0; background-color: rgba(0,0,0,0.2); }
.hero-overlay-2 { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.25), transparent, rgba(0,0,0,0.4)); }
.hero-grain { opacity: 1; }

.hero-content {
	position: relative;
	z-index: 10;
	text-align: center;
	padding: 5rem 1.5rem;
	text-shadow: 0 2px 18px rgba(0,0,0,0.55);
	will-change: transform, opacity;
}
.hero-glow {
	position: absolute;
	inset-inline: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 80%;
	max-width: 56rem;
	margin: 0 auto;
	background-color: rgba(0,0,0,0.25);
	filter: blur(64px);
	border-radius: 50%;
	z-index: -1;
}
.hero-eyebrow { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 2rem; }
.hero-eyebrow-line { height: 1px; width: 2.5rem; background-color: rgba(255,255,255,0.7); display: block; }
.hero-eyebrow-text { font-size: 0.75rem; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(255,255,255,0.9); font-weight: 600; }

.hero-title-mask { overflow: hidden; }
.hero-title {
	font-size: 3rem;
	letter-spacing: -0.02em;
	line-height: 0.95;
	color: #fff;
}
.hero-title--accent { font-style: italic; color: var(--color-accent); }
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 7rem; } }

.hero-subtitle {
	color: rgba(255,255,255,0.9);
	max-width: 36rem;
	margin: 2rem auto 2.5rem;
	font-size: 1rem;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.125rem; } }

.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; padding: 0 1rem; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

/* -------------------------------------------------------------------------
 * 7. Section heading scale map (Section 2.2 §5)
 * ---------------------------------------------------------------------- */
.section-heading { line-height: 1.05; }
.about-heading { font-size: 2.25rem; line-height: 1.1; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .about-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .about-heading { font-size: 3.75rem; } }

.shop-heading { font-size: 3rem; line-height: 0.95; margin-top: 1rem; }
@media (min-width: 768px) { .shop-heading { font-size: 4.5rem; } }
@media (min-width: 1024px) { .shop-heading { font-size: 6rem; } }

.services-heading { font-size: 2.25rem; line-height: 1.2; margin-top: 1rem; max-width: 48rem; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .services-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .services-heading { font-size: 3.75rem; } }

.custom-heading { font-size: 2.25rem; line-height: 1.05; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .custom-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .custom-heading { font-size: 3.75rem; } }

.events-heading { font-size: 2.25rem; line-height: 1.2; margin-top: 1rem; }
@media (min-width: 768px) { .events-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .events-heading { font-size: 3.75rem; } }

.contact-heading { font-size: 3rem; line-height: 0.95; margin: 1.5rem 0; }
@media (min-width: 768px) { .contact-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .contact-heading { font-size: 4.5rem; } }

/* -------------------------------------------------------------------------
 * 8. About section
 * ---------------------------------------------------------------------- */
.about-section { background-color: var(--color-card); position: relative; overflow: hidden; scroll-margin-top: 6rem; }
.about-glow-1 { position: absolute; top: -8rem; right: -5rem; width: 28rem; height: 28rem; background-color: color-mix(in srgb, var(--color-primary) 15%, transparent); filter: blur(64px); pointer-events: none; }
.about-glow-2 { position: absolute; bottom: -8rem; left: -5rem; width: 24rem; height: 24rem; background-color: color-mix(in srgb, var(--color-accent) 10%, transparent); filter: blur(64px); pointer-events: none; }
.about-inner { padding-block: 5rem; position: relative; }
@media (min-width: 768px) { .about-inner { padding-block: 7rem; } }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: stretch; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }

.about-image-col { position: relative; min-width: 0; }
.about-image-frame { position: relative; height: 100%; width: 100%; aspect-ratio: 1 / 1; }
@media (min-width: 1024px) { .about-image-frame { aspect-ratio: auto; } }
.about-image-glow { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-primary) 25%, transparent); filter: blur(64px); transform: scale(0.9); }
.about-image-box { position: relative; height: 100%; width: 100%; overflow: hidden; border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent); background-color: var(--color-background); display: flex; align-items: center; justify-content: center; padding: 2.5rem; }
.about-image-box .about-image { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.about-image-badge { position: absolute; bottom: -1rem; right: -1rem; background-color: var(--color-primary); color: var(--color-primary-foreground); padding: 0.5rem 1rem; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.25em; }

.about-copy-col { min-width: 0; }
.about-eyebrow { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.about-eyebrow-line { height: 1px; width: 2.5rem; background-color: var(--color-accent); }
.about-eyebrow-text { font-size: 0.75rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--color-accent); font-weight: 600; }
.about-paragraph { font-size: 1rem; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; margin-bottom: 1.5rem; max-width: 42rem; }
@media (min-width: 768px) { .about-paragraph { font-size: 1.125rem; } }
.about-paragraph--muted { font-size: 1rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); margin-bottom: 2rem; }
.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: 600; }
.about-stat-value { font-family: var(--font-display); font-size: 1.125rem; margin-top: 0.25rem; }
@media (min-width: 768px) { .about-stat-value { font-size: 1.25rem; } }

/* -------------------------------------------------------------------------
 * 9. Shop section
 * ---------------------------------------------------------------------- */
.shop-section { padding: 5rem 0; scroll-margin-top: 6rem; }
@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.35em; text-transform: uppercase; color: var(--color-accent); font-weight: 600; display: block; }
.shop-subtitle { font-family: var(--font-body); color: color-mix(in srgb, var(--color-foreground) 70%, transparent); max-width: 36rem; margin: 1.25rem auto 0; font-size: 1rem; }
@media (min-width: 768px) { .shop-subtitle { font-size: 1.125rem; } }

.shop-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.shop-filter-btn {
	padding: 0.625rem 1.25rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-weight: 600;
	border: 1px solid var(--color-border);
	background-color: transparent;
	color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
	transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.shop-filter-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.shop-filter-btn.is-active { background-color: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }

.theme-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: stretch;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }

.theme-product-card-wrap { min-width: 0; }
.theme-product-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.theme-product-card > .theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }

.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: var(--color-secondary);
	border: 1px solid var(--color-border);
	margin-bottom: 1.25rem;
	transition: transform 0.3s var(--transition-smooth);
}
.theme-product-card:hover .theme-product-card__image-wrapper { transform: translateY(-6px); }
.theme-product-card:hover .theme-product-card__image { transform: scale(1.06); }
.theme-product-card__image { transition: transform 0.7s var(--transition-smooth); }
.theme-product-card__image.is-soldout { opacity: 0.6; }

.theme-badge {
	position: absolute; top: 0.75rem; left: 0.75rem;
	padding: 0.375rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	z-index: 3;
}
.theme-badge--soldout { background-color: var(--color-foreground); color: var(--color-background); }

.theme-product-card__quick-arrow {
	position: absolute; bottom: 0.75rem; right: 0.75rem;
	width: 2.5rem; height: 2.5rem;
	display: flex; align-items: center; justify-content: center;
	background-color: color-mix(in srgb, var(--color-background) 90%, transparent);
	backdrop-filter: blur(4px);
	opacity: 0;
	transform: translateY(0.5rem);
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 3;
}
.theme-product-card:hover .theme-product-card__quick-arrow { opacity: 1; transform: translateY(0); }
.theme-product-card__quick-arrow .theme-icon { color: var(--color-primary); width: 1rem; height: 1rem; }

.theme-product-card__info { flex: 1; display: flex; flex-direction: column; gap: 0.375rem; }
.theme-product-card__title { font-family: var(--font-display); font-size: 1.25rem; transition: color 0.3s ease; }
.theme-product-card:hover .theme-product-card__title { color: var(--color-accent); }
.theme-product-card__tagline { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-muted-foreground); }
.theme-product-card__price { font-size: 0.875rem; color: var(--color-primary); font-weight: 600; padding-top: 0.25rem; }
.theme-product-card__price .amount { color: var(--color-primary); }
.theme-product-card__price del { opacity: 0.5; margin-right: 0.4em; }

.shop-empty-text { text-align: center; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); padding: 3rem 0; }

/* -------------------------------------------------------------------------
 * 10. Services
 * ---------------------------------------------------------------------- */
.services-section { background-color: var(--color-card); position: relative; overflow: hidden; scroll-margin-top: 6rem; }
.services-inner { padding-block: 5rem; position: relative; }
@media (min-width: 768px) { .services-inner { padding-block: 6rem; } }
.services-header { text-align: center; margin-bottom: 3.5rem; }
.services-eyebrow { font-size: 0.75rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--color-accent); font-weight: 600; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
.service-card {
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	text-align: left;
	transition: border-color 0.3s ease;
}
@media (min-width: 768px) { .service-card { padding: 2rem; } }
.service-card:hover { border-color: var(--color-accent); }
.service-card__icon { width: 2.25rem; height: 2.25rem; color: var(--color-primary); margin-bottom: 1.25rem; transition: color 0.3s ease; }
.service-card:hover .service-card__icon { color: var(--color-accent); }
.service-card__title { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .service-card__title { font-size: 1.5rem; } }
.service-card__body { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); line-height: 1.6; }

/* -------------------------------------------------------------------------
 * 11. Custom orders CTA
 * ---------------------------------------------------------------------- */
.custom-section { padding: 5rem 0; scroll-margin-top: 6rem; }
@media (min-width: 768px) { .custom-section { padding: 7rem 0; } }
.custom-panel { position: relative; background-color: var(--color-card); border: 1px solid var(--color-border); padding: 1.5rem; overflow: hidden; }
@media (min-width: 640px) { .custom-panel { padding: 2.5rem; } }
@media (min-width: 768px) { .custom-panel { padding: 4rem; } }
@media (min-width: 1024px) { .custom-panel { padding: 5rem; } }
.custom-glow-1 { position: absolute; top: -8rem; right: -5rem; width: 28rem; height: 28rem; background-color: color-mix(in srgb, var(--color-accent) 15%, transparent); filter: blur(64px); pointer-events: none; }
.custom-glow-2 { position: absolute; bottom: -8rem; left: -5rem; width: 24rem; height: 24rem; background-color: color-mix(in srgb, var(--color-primary) 10%, transparent); filter: blur(64px); pointer-events: none; }
.custom-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .custom-grid { grid-template-columns: 7fr 5fr; gap: 3rem; } }
.custom-copy-col { min-width: 0; }
.custom-eyebrow { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.custom-eyebrow-line { height: 1px; width: 2.5rem; background-color: var(--color-accent); }
.custom-eyebrow-text { font-size: 0.75rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--color-accent); font-weight: 600; }
.custom-paragraph { font-size: 1rem; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.7; margin-bottom: 2rem; max-width: 36rem; }
@media (min-width: 768px) { .custom-paragraph { font-size: 1.125rem; } }
.custom-paragraph--muted { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.custom-actions { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .custom-actions { flex-direction: row; } }
.custom-image-col { min-width: 0; }
.custom-image-wrap { position: relative; }
.custom-image { aspect-ratio: 1/1; box-shadow: var(--shadow-elevated); }
.custom-image-quote {
	position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
	display: flex; align-items: center; gap: 0.75rem;
	padding: 0.75rem 1rem;
	background-color: color-mix(in srgb, var(--color-background) 90%, transparent);
	backdrop-filter: blur(4px);
	border: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent);
	font-family: var(--font-display);
	font-style: italic;
	font-size: 0.875rem;
	line-height: 1.4;
}
@media (min-width: 768px) { .custom-image-quote { font-size: 1rem; } }

/* -------------------------------------------------------------------------
 * 12. Events
 * ---------------------------------------------------------------------- */
.events-section { background-color: var(--color-card); position: relative; overflow: hidden; scroll-margin-top: 6rem; }
.events-inner { padding-block: 5rem; position: relative; }
@media (min-width: 768px) { .events-inner { padding-block: 7rem; } }
.events-header { text-align: center; margin-bottom: 3rem; }
.events-eyebrow { font-size: 0.75rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--color-accent); font-weight: 600; display: block; }
.events-subtitle { font-family: var(--font-body); color: color-mix(in srgb, var(--color-foreground) 70%, transparent); max-width: 36rem; margin: 1.25rem auto 0; font-size: 1rem; }
@media (min-width: 768px) { .events-subtitle { font-size: 1.125rem; } }
.events-card { max-width: 48rem; margin: 0 auto; background-color: var(--color-background); border: 1px solid var(--color-border); padding: 2rem; text-align: center; }
@media (min-width: 768px) { .events-card { padding: 2.5rem; } }
.events-card__icon { width: 2.25rem; height: 2.25rem; color: var(--color-primary); margin: 0 auto 1.25rem; display: block; }
.events-card__title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .events-card__title { font-size: 1.875rem; } }
.events-card__body { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); max-width: 32rem; margin: 0 auto 1.75rem; }
@media (min-width: 768px) { .events-card__body { font-size: 1rem; } }
.events-card__actions { display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; }
@media (min-width: 640px) { .events-card__actions { flex-direction: row; } }
.events-card__location { margin-top: 1.75rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-muted-foreground); font-weight: 600; }

.events-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	max-width: 64rem;
	margin: 0 auto;
}
@media (min-width: 768px) {
	.events-grid { grid-template-columns: repeat(2, 1fr); }
}
.events-item {
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	padding: 1.75rem;
	text-align: left;
	display: flex;
	flex-direction: column;
	transition: border-color 0.3s ease;
}
@media (min-width: 768px) {
	.events-item { padding: 2rem; }
}
.events-item:hover { border-color: var(--color-accent); }
.events-item__icon {
	width: 2rem;
	height: 2rem;
	color: var(--color-primary);
	margin-bottom: 1rem;
}
.events-item__date {
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-accent);
	font-weight: 600;
	margin-bottom: 0.5rem;
}
.events-item__title {
	font-family: var(--font-display);
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
	.events-item__title { font-size: 1.5rem; }
}
.events-item__body {
	font-size: 0.875rem;
	color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
	line-height: 1.6;
	margin-bottom: 1rem;
	flex-grow: 1;
}
.events-item__location {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--color-muted-foreground);
	font-weight: 600;
	margin-top: auto;
}

/* -------------------------------------------------------------------------
 * 13. Contact
 * ---------------------------------------------------------------------- */
.contact-section { position: relative; overflow: hidden; scroll-margin-top: 6rem; }
.contact-bg { position: absolute; inset: 0; }
.contact-overlay-1 { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-background) 85%, transparent); }
.contact-overlay-2 { position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--color-card) 60%, transparent), color-mix(in srgb, var(--color-background) 30%, transparent), color-mix(in srgb, var(--color-card) 60%, transparent)); }
.contact-glow-1 { position: absolute; top: -8rem; left: 25%; width: 28rem; height: 28rem; background-color: color-mix(in srgb, var(--color-primary) 15%, transparent); filter: blur(64px); pointer-events: none; }
.contact-glow-2 { position: absolute; bottom: -8rem; right: 25%; width: 24rem; height: 24rem; background-color: color-mix(in srgb, var(--color-accent) 10%, transparent); filter: blur(64px); pointer-events: none; }
.contact-inner { position: relative; z-index: 10; padding-block: 6rem; }
@media (min-width: 768px) { .contact-inner { padding-block: 8rem; } }
.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-accent); font-weight: 600; display: inline-flex; align-items: center; gap: 0.75rem; }
.contact-eyebrow-line { height: 1px; width: 2rem; background-color: var(--color-accent); }
.contact-subtitle { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); font-size: 1.125rem; max-width: 36rem; margin: 0 auto 3rem; }
.contact-meta { 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-meta-item { display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.3s ease; }
.contact-meta-item:hover { color: var(--color-accent); }

/* Modal — fits viewport; slightly taller/squarer panel */
.theme-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	overflow: hidden;
}
body.admin-bar .theme-modal { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .theme-modal { top: 46px; }
}
.theme-modal.is-open { display: flex; }
.theme-modal-overlay {
	position: absolute;
	inset: 0;
	background-color: color-mix(in srgb, var(--color-background) 80%, transparent);
	backdrop-filter: blur(8px);
	animation: theme-fade-in 0.3s var(--transition-smooth);
}
.theme-modal-panel {
	position: relative;
	width: 100%;
	max-width: min(32rem, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	overflow: hidden;
	background-color: var(--color-card);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-elevated);
	padding: 2rem 1.75rem 2rem;
	animation: theme-modal-in 0.45s var(--transition-smooth);
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}
body.admin-bar .theme-modal-panel {
	max-height: calc(100dvh - 32px - 2rem);
}
@media screen and (max-width: 782px) {
	body.admin-bar .theme-modal-panel {
		max-height: calc(100dvh - 46px - 2rem);
	}
}
@media (min-width: 768px) {
	.theme-modal-panel { padding: 2.5rem; max-width: min(34rem, calc(100vw - 2rem)); }
}
@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes theme-modal-in { from { opacity: 0; transform: scale(0.92) translateY(30px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.theme-modal-glow-1 { position: absolute; top: -4rem; right: -4rem; width: 12rem; height: 12rem; background-color: color-mix(in srgb, var(--color-primary) 25%, transparent); filter: blur(56px); pointer-events: none; }
.theme-modal-glow-2 { position: absolute; bottom: -4rem; left: -4rem; width: 12rem; height: 12rem; background-color: color-mix(in srgb, var(--color-accent) 10%, transparent); filter: blur(56px); pointer-events: none; }
.theme-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: color 0.2s ease, background-color 0.2s ease; cursor: pointer; }
.theme-modal-close:hover { color: var(--color-foreground); background-color: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
.theme-modal-body { position: relative; min-height: 0; overflow: hidden; }
.theme-modal-eyebrow { font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-accent); font-weight: 600; }
.theme-modal-title { font-family: var(--font-display); font-size: 1.75rem; margin-top: 0.5rem; line-height: 1.05; }
@media (min-width: 768px) { .theme-modal-title { font-size: 2.15rem; } }
.theme-modal-heading { margin-bottom: 1.5rem; padding-right: 2rem; }

.theme-contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.theme-form-row-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .theme-form-row-2 { grid-template-columns: 1fr 1fr; } }
.theme-form-field label { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.25em; font-weight: 600; margin-bottom: 0.45rem; display: block; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.theme-form-field input, .theme-form-field textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.75rem 1rem;
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	font-size: 0.875rem;
	color: var(--color-foreground);
	transition: border-color 0.3s ease;
	box-sizing: border-box;
}
.theme-form-field input::placeholder, .theme-form-field textarea::placeholder { color: var(--color-muted-foreground); }
.theme-form-field input:focus, .theme-form-field textarea:focus { outline: none; border-color: var(--color-primary); }
.theme-form-field textarea { resize: none; min-height: 6rem; max-height: 9rem; }
.theme-form-error { color: var(--color-destructive); font-size: 0.875rem; }
.theme-contact-submit { width: 100%; }
.theme-contact-submit[disabled] { opacity: 0.6; cursor: not-allowed; }

.theme-modal-success { text-align: center; padding: 2rem 0; }
.theme-modal-success__icon { width: 3.75rem; height: 3.75rem; background-color: var(--color-primary); color: var(--color-primary-foreground); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.theme-modal-success__icon .theme-icon { width: 1.85rem; height: 1.85rem; }
.theme-modal-success__title { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 0.5rem; }
.theme-modal-success__body { color: var(--color-muted-foreground); }

/* Keep form fully visible on short screens without feeling crushed */
@media (max-height: 640px) {
	.theme-modal-panel { padding: 1.25rem 1.25rem 1.35rem; }
	.theme-modal-heading { margin-bottom: 0.85rem; }
	.theme-modal-title { font-size: 1.45rem; }
	.theme-contact-form { gap: 0.7rem; }
	.theme-form-field input, .theme-form-field textarea { padding: 0.55rem 0.8rem; }
	.theme-form-field textarea { min-height: 3.5rem; max-height: 5rem; }
}

/* -------------------------------------------------------------------------
 * 14. Footer
 * ---------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--color-border); background-color: var(--color-card); }
.footer-inner { padding-block: 3.5rem; }
@media (min-width: 1024px) { .footer-inner { padding-block: 5rem; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.footer-branding { display: inline-flex; align-items: center; }
.footer-branding .site-logo-img { height: 5rem !important; }
.footer-description { margin-top: 1.25rem; font-size: 0.875rem; color: var(--color-muted-foreground); max-width: 24rem; line-height: 1.6; }
.footer-badge { margin-top: 1rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--color-accent); font-weight: 600; }
.footer-social { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.3s ease; }
.footer-social:hover { color: var(--color-accent); }
.footer-heading { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.25em; margin-bottom: 1rem; color: var(--color-accent); }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-link, .footer-contact-list a, .footer-contact-list span { font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.3s ease; }
.footer-link:hover { color: var(--color-foreground); }
.footer-contact-list li { display: flex; align-items: center; gap: 0.5rem; }
.footer-contact-list a:hover { color: var(--color-foreground); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-copyright, .footer-credit { font-size: 0.75rem; color: var(--color-muted-foreground); }
.footer-credit a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--color-foreground); }

/* -------------------------------------------------------------------------
 * 15. Generic pages / 404
 * ---------------------------------------------------------------------- */
.generic-page { padding-top: calc(var(--header-height) + 1.5rem); padding-bottom: 4rem; min-height: 60vh; }
.page-title { font-size: 2.5rem; margin-bottom: 1.5rem; }
.theme-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; background-color: var(--color-muted); }
.theme-404-inner { text-align: center; }
.theme-404-title { font-size: 2.5rem; margin-bottom: 1rem; }
.theme-404-body { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-404-link { color: var(--color-primary); text-decoration: underline; }
.theme-404-link:hover { color: color-mix(in srgb, var(--color-primary) 90%, transparent); }

/* -------------------------------------------------------------------------
 * 16. Single product page — mirrors Lovable ProductDetail.tsx
 * ---------------------------------------------------------------------- */
.single-product-page {
	padding-top: calc(var(--header-height) + 1.5rem);
	padding-bottom: 3rem;
}
@media (min-width: 1024px) {
	.single-product-page { padding-top: calc(var(--header-height) + 2rem); }
}
body.admin-bar .single-product-page {
	padding-top: calc(var(--header-height) + 1.5rem);
}
.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.3s ease; }
.back-to-shop-link:hover { color: var(--color-accent); }

.theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-bottom: 5rem;
	min-width: 0;
}
@media (min-width: 1024px) {
	.theme-product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) {
	.theme-product-info { padding-top: 1.5rem; padding-bottom: 1.5rem; }
}

.theme-product-main-image {
	aspect-ratio: 1 / 1;
	background-color: var(--color-secondary);
	overflow: hidden;
	margin-bottom: 1rem;
	border: 1px solid var(--color-border);
}
.theme-product-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumb { aspect-ratio: 1/1; overflow: hidden; border: 2px solid var(--color-border); opacity: 0.6; transition: opacity 0.2s ease, border-color 0.2s ease; padding: 0; cursor: pointer; }
.theme-product-thumb:hover, .theme-product-thumb.is-active { opacity: 1; border-color: var(--color-primary); }

.theme-product-category {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color: var(--color-accent);
	font-weight: 600;
}
.theme-product-category a { color: inherit; text-decoration: none; }

.product-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 2.25rem;
	margin-top: 0.75rem;
	margin-bottom: 0.75rem;
	line-height: 1.15;
	letter-spacing: -0.015em;
}
@media (min-width: 768px) { .product-title { font-size: 3rem; } }
@media (min-width: 1024px) { .product-title { font-size: 3.75rem; } }

.theme-product-tagline {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
	margin-bottom: 1.25rem;
}
.theme-product-price {
	font-size: 1.875rem;
	margin-bottom: 2rem;
	font-weight: 600;
	font-family: var(--font-body);
	color: var(--color-primary);
}
.theme-product-price .amount { color: var(--color-primary); }

.theme-stock-badge { display: inline-block; margin-bottom: 1.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; padding: 0.375rem 0.75rem; }
.theme-stock-badge--out { background-color: var(--color-foreground); color: var(--color-background); }

.theme-product-description {
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
	line-height: 1.7;
	margin-bottom: 2rem;
	overflow-wrap: break-word;
	word-break: break-word;
}
.theme-product-description p { margin-bottom: 1em; }
.theme-product-description p:last-child { margin-bottom: 0; }

.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; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-input {
	width: 3rem;
	min-width: 48px;
	text-align: center;
	border: none;
	background: transparent;
	padding: 0.75rem 0;
	font-family: var(--font-body);
	font-size: 1rem;
	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-product-details { border-top: 1px solid var(--color-border); padding-top: 2rem; margin-top: 0.5rem; }
.theme-product-details__heading { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); }
.theme-icon-accent { color: var(--color-accent); }
.theme-product-details__body ul { display: flex; flex-direction: column; gap: 0.625rem; list-style: none; margin: 0; padding: 0; }
.theme-product-details__body li {
	font-size: 0.875rem;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
	display: flex;
	align-items: flex-start;
	font-family: var(--font-body);
}
.theme-product-details__body li::before {
	content: '';
	width: 0.375rem;
	height: 0.375rem;
	background-color: var(--color-accent);
	margin-top: 0.5rem;
	margin-right: 0.75rem;
	flex-shrink: 0;
}
.theme-product-details__body, .woocommerce-variation-description, .posted_in { overflow-wrap: break-word; word-break: break-word; }

.related-products-section { display: none; }

.theme-add-to-cart-area, .theme-add-to-cart-area-form .single_variation_wrap .theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 1rem;
	margin-bottom: 2.5rem;
}
.theme-add-to-cart-area .single_add_to_cart_button {
	flex: 1 1 auto;
	text-transform: uppercase !important;
	letter-spacing: 0.2em !important;
	font-size: 0.75rem !important;
	font-weight: 600 !important;
}
.theme-atc-label { display: inline-flex; align-items: center; gap: 0.5rem; }
.single_add_to_cart_button.is-added {
	pointer-events: none;
	opacity: 0.85 !important;
}

/* -------------------------------------------------------------------------
 * 17. WooCommerce add-to-cart button overrides (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,
button.single_add_to_cart_button,
button.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: none !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
	flex: 1 1 auto;
	min-width: 160px;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }

.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* Variable product variations table layout */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; font-weight: 600; }
.single-product .variations tbody td.value { padding-top: 0; }
.theme-attr-select-hidden { display: none !important; }

/* -------------------------------------------------------------------------
 * 18. Shop archive
 * ---------------------------------------------------------------------- */
.shop-archive-page { padding-top: calc(var(--header-height) + 1.5rem); }
.shop-archive-header { text-align: center; margin-bottom: 3rem; }

/* -------------------------------------------------------------------------
 * 19. WooCommerce notices (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 {
	font-family: var(--font-body);
	border-top-color: var(--color-primary);
	padding: 1rem 1.5rem;
	background-color: var(--color-secondary);
	border-radius: var(--card-radius);
}

/* -------------------------------------------------------------------------
 * 20. Side cart (Sections 12, 22.5)
 * ---------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed; inset: 0;
	background-color: color-mix(in srgb, var(--color-background) 60%, transparent);
	backdrop-filter: blur(4px);
	z-index: 90;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
}
body.admin-bar #theme-cart-overlay { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar #theme-cart-overlay { top: 46px; }
}
body.cart-open #theme-cart-overlay { opacity: 1; visibility: visible; }

#theme-cart-drawer {
	position: fixed; right: 0; top: 0; bottom: 0;
	width: 100%; max-width: 28rem;
	background-color: var(--color-card);
	z-index: 91;
	box-shadow: var(--shadow-elevated);
	display: flex;
	flex-direction: column;
	border-left: 1px solid var(--color-border);
	transform: translateX(100%);
	transition: transform 0.4s var(--transition-smooth);
}
body.admin-bar #theme-cart-drawer { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar #theme-cart-drawer { top: 46px; }
}
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-size: 1.5rem; }
.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; gap: 1.5rem; }
.theme-cart-drawer__empty-icon { width: 3rem; height: 3rem; color: var(--color-muted-foreground); }
.theme-cart-drawer__empty p { color: var(--color-muted-foreground); }

.theme-cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item__image {
	display: block;
	position: relative;
	width: 5rem;
	height: 6rem;
	flex-shrink: 0;
	background-color: var(--color-secondary);
	overflow: hidden;
	border: 1px solid var(--color-border);
}
.theme-cart-item__image img,
.theme-cart-item__image .attachment-woocommerce_thumbnail {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center;
	display: block;
}
.theme-cart-item__info { flex: 1; min-width: 0; }
.theme-cart-item__name { font-size: 0.875rem; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s ease; }
.theme-cart-item__name:hover { color: var(--color-accent); }
.theme-cart-item__price { font-size: 0.875rem; color: var(--color-primary); font-weight: 600; margin-top: 0.125rem; }
.theme-cart-item__variation { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.theme-cart-item__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-qty-btn { padding: 0.25rem; transition: background-color 0.2s ease; }
.theme-cart-qty-btn:hover { background-color: var(--color-secondary); }
.theme-cart-item__qty { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-item__remove { margin-left: auto; font-size: 0.75rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.theme-cart-item__remove:hover { color: var(--color-destructive); }

.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-drawer__subtotal-value { font-weight: 600; }
.theme-cart-drawer__shipping-note { font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-drawer__checkout { width: 100%; }

/* -------------------------------------------------------------------------
 * 21. Checkout / Cart / Account blocks (Section 13)
 * ---------------------------------------------------------------------- */
body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
.theme-checkout-page.site-main {
	padding-top: calc(var(--header-height) + 1.5rem);
	padding-bottom: 4rem;
}

/* Stay inside .container-wide page margins — do not full-bleed */
body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
}

/* Checkout block fills the page container (same margins as the rest of the site) */
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Notices — same width/alignment as checkout content (class with “s”) */
body.woocommerce-checkout .wc-block-components-notices,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-checkout .wc-block-components-notices,
.entry-content .wp-block-woocommerce-checkout .wc-block-components-notices {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
}

/*
 * Real 2-column layout lives on the sidebar-layout wrapper
 * (not only on .wc-block-checkout). Cover both class name variants.
 */
body.woocommerce-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout,
body.woocommerce-checkout .wc-block-checkout.is-large,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-components-sidebar-layout.wc-block-checkout {
	display: flex;
	flex-direction: column;
	gap: var(--theme-checkout-gap);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	align-items: stretch;
}

@media (min-width: 992px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout,
	body.woocommerce-checkout .wc-block-checkout.is-large,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-components-sidebar-layout.wc-block-checkout {
		display: grid;
		grid-template-columns: 1fr minmax(var(--theme-checkout-sidebar-min), var(--theme-checkout-sidebar-max));
		gap: var(--theme-checkout-gap);
		align-items: start;
	}
}

/* Undo any accidental display:block overrides from older theme CSS / WC */
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
	display: grid;
}

@media (max-width: 991px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
		display: flex;
		flex-direction: column;
	}
}

/* Children fill available space */
body.woocommerce-checkout .wc-block-components-sidebar-layout > *,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > *,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout > *,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout > * {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

/* Notices / Express payment strip — full width, first */
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-checkout__notices,
body.woocommerce-checkout .wc-block-checkout__main > .wc-block-components-notices,
.entry-content .wc-block-checkout .wc-block-components-notices {
	grid-column: 1 / -1;
	order: 1;
	width: 100%;
	max-width: 100%;
}

/* Main form column */
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-main,
.entry-content .wc-block-checkout .wc-block-checkout__main,
.entry-content .wc-block-checkout .wc-block-components-main {
	order: 2;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

/* Summary / totals sidebar */
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
.entry-content .wc-block-checkout .wc-block-checkout__sidebar,
.entry-content .wc-block-checkout .wc-block-components-sidebar {
	order: 3;
	width: 100%;
	min-width: var(--theme-checkout-sidebar-min);
	max-width: 100%;
	box-sizing: border-box;
	background-color: var(--color-card);
	border-radius: var(--card-radius);
	padding: var(--section-padding);
}

@media (max-width: 991px) {
	body.woocommerce-checkout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-components-sidebar,
	.entry-content .wc-block-checkout .wc-block-checkout__sidebar,
	.entry-content .wc-block-checkout .wc-block-components-sidebar {
		min-width: 0;
	}
}

/* Order summary must not compress */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
body.woocommerce-checkout .wc-block-components-order-summary,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

/* Cart block — keep a sensible two-column layout too */
@media (min-width: 992px) {
	body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart.is-large,
	body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr minmax(var(--theme-checkout-sidebar-min), var(--theme-checkout-sidebar-max));
		gap: var(--theme-checkout-gap);
		align-items: start;
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-cart .wc-block-components-main,
body.woocommerce-cart .wc-block-components-sidebar {
	min-width: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-cart .wc-block-components-sidebar {
	background-color: var(--color-card);
	border-radius: var(--card-radius);
	padding: var(--section-padding);
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-cart .wc-block-components-text-input input {
	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);
	background-color: var(--color-background);
	border-radius: var(--card-radius);
	padding: revert;
	box-sizing: border-box;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-text-input input:focus-visible {
	border-color: var(--color-primary);
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: var(--color-muted-foreground); }

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-cart__submit-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: none !important;
	letter-spacing: var(--btn-letter-spacing) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--card-radius);
	width: 100%;
	box-sizing: border-box;
}

.theme-wc-page .page-title,
body.woocommerce-checkout .page-title,
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
	font-size: 2.5rem;
	margin-bottom: 2rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* -------------------------------------------------------------------------
 * 22. 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 {
	font-family: var(--font-body);
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	font-size: 1.75rem;
	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.5rem;
	background-color: var(--color-card);
	margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li { margin: 0; }
body.theme-thankyou-page .woocommerce-order-details table,
body.theme-thankyou-page .woocommerce-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);
	overflow-wrap: break-word;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }

body.theme-thankyou-page .woocommerce-customer-details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 2rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	border: 1px solid var(--color-border);
	padding: 1.25rem;
	font-style: normal;
}
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
	body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; max-width: none; }
}
