/* ==========================================================================
   Good Thread Co. — theme.css
   All visual styling for the theme lives here (Section 10 / 15.1).
   ========================================================================== */

:root {
	--color-background: #fcfaf8;
	--color-foreground: #1a1d23;
	--color-primary: #506f95;
	--color-primary-foreground: #fcfaf8;
	--color-secondary: #f3eee8;
	--color-muted-foreground: #5e636e;
	--color-accent: #b8966f;
	--color-accent-foreground: #1a1d23;
	--color-border: #e6e1db;
	--color-teal: #3b5372;
	--color-marigold: #d3b792;
	--color-nopal: #6282a7;
	--color-rosa: #bf937d;
	--color-lilac: #b7c7d7;
	--color-card: #ffffff;
	--color-destructive: #c52020;
	--color-button-text: var(--color-primary-foreground);

	--font-display: 'Playfair Display', Georgia, serif;
	--font-body: 'Inter', sans-serif;

	--radius: 0.75rem;
	--card-radius: 1rem;
	--logo-height: 68px;
	--header-height: 92px;
	--header-height-mobile: 72px;

	--btn-radius: 999px;
	--btn-height: 44px;
	--btn-padding: 0 2rem;
	--btn-font-size: 12px;
	--btn-font-weight: 600;
	--btn-letter-spacing: 0.22em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0.6rem;

	--shadow-soft: 0 4px 20px -4px rgba(30, 41, 59, 0.10);
	--shadow-elevated: 0 14px 44px -14px rgba(30, 41, 59, 0.22);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: -0.01em;
	margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* Pointer on every interactive control (matches Lovable cursor-pointer usage). */
a,
button,
[role="button"],
[data-cart-open],
[data-cart-close],
[data-cart-remove],
[data-menu-toggle],
[data-contact-open],
[data-contact-close],
[data-modal-trigger],
[data-section-anchor],
[data-shop-category],
[data-shop-show-more],
[data-faq-toggle],
[data-accordion-toggle],
label[for],
summary,
select,
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
input[type="file"],
.theme-nav-link,
.theme-footer-link,
.theme-mailto-link,
.theme-cart-btn,
.theme-menu-toggle,
.theme-cart-remove,
.ajax_add_to_cart,
.single_add_to_cart_button,
.button,
.btn-hero-primary,
.btn-hero-outline,
.btn-outline-pill,
.btn-cta-primary,
.btn-cta-secondary,
.shop-category-btn,
.shop-price-filter__toggle,
.faq-item__question,
.theme-attr-swatch,
.theme-attr-size,
.theme-product-thumb,
.woocommerce-pagination a,
.woocommerce a.button {
	cursor: pointer;
}

::selection { background: color-mix(in srgb, var(--color-accent) 25%, transparent); }

.text-primary { color: var(--color-primary); }

/* Cover / full-bleed images excluded from the global img rule (Section 15.1).
   Logo images are also excluded so height constraints are not overridden. */
img:not(.cover-img):not(.theme-product-card-img):not(.theme-gallery-img):not(.theme-thumb-img):not(.site-logo-img):not(.site-footer__logo-img) {
	max-width: 100%;
	height: auto;
}
.cover-img,
.theme-product-card-img,
.theme-gallery-img,
.theme-thumb-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide { padding: 0 2rem; }
}

body.theme-no-hero { padding-top: var(--header-height-mobile); }
@media (min-width: 1024px) {
	body.theme-no-hero { padding-top: var(--header-height); }
}
body:not(.theme-no-hero) { padding-top: 0; }

/* Keep the fixed header below the WP admin bar. */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}

/* ==========================================================================
   Animation utilities (Section 2.1)
   ========================================================================== */

@keyframes gtcFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gtcSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gtcFlicker {
	0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
	25% { opacity: 0.85; transform: scale(1.06) rotate(-4deg); }
	55% { opacity: 1; transform: scale(0.97) rotate(3deg); }
	80% { opacity: 0.92; transform: scale(1.03) rotate(-2deg); }
}
@keyframes gtcBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes gtcShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.icon-flicker { animation: gtcFlicker 3.4s ease-in-out infinite; }
.icon-bounce { display: inline-flex; animation: gtcBounce 1.6s ease-in-out infinite; }

.shimmer-loading {
	background: linear-gradient(90deg, var(--color-secondary) 0%, #fff 50%, var(--color-secondary) 100%);
	background-size: 200% 100%;
	animation: gtcShimmer 1.6s ease-in-out infinite;
}

.scroll-progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 2px;
	transform-origin: 0 50%;
	background: linear-gradient(90deg, var(--color-accent), var(--color-marigold));
	z-index: 100;
	pointer-events: none;
	transform: scaleX(0);
	transition: transform 0.1s linear;
}

.gold-sheen { position: relative; overflow: hidden; }
.gold-sheen::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 35%, color-mix(in srgb, var(--color-marigold) 32%, transparent) 50%, transparent 65%);
	transform: translateX(-120%);
	transition: transform 0.9s var(--transition-smooth);
	pointer-events: none;
}
.gold-sheen:hover::after { transform: translateX(120%); }

/* Scroll reveal system — per-element inventory (Section 2.1 item 4). */
.reveal-up, .reveal-fade, .reveal-scale, .reveal-item {
	opacity: 0;
	transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}
.reveal-up { transform: translateY(32px); }
.reveal-fade { transform: none; }
.reveal-scale { transform: scale(0.94); }
.reveal-item { transform: translateY(16px); transition-duration: 0.6s; }

.reveal-up.is-visible,
.reveal-fade.is-visible,
.reveal-scale.is-visible,
.reveal-item.is-visible {
	opacity: 1;
	transform: none;
}

/* Staggered reveal inside a section: each direct child gets a small delay. */
.scroll-reveal-section .reveal-up:nth-child(1) { transition-delay: 0s; }
.scroll-reveal-section .reveal-up:nth-child(2) { transition-delay: 0.08s; }
.scroll-reveal-section .reveal-up:nth-child(3) { transition-delay: 0.16s; }
.scroll-reveal-section .reveal-up:nth-child(4) { transition-delay: 0.24s; }

/* Customizer preview fallback — reveal content must never stay hidden while editing (Section 2.1 item 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;
}

/* No-JS / no-IntersectionObserver fallback. */
.no-js .reveal-up, .no-js .reveal-fade, .no-js .reveal-scale, .no-js .reveal-item {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.icon-flicker, .icon-bounce { animation: none; }
	.reveal-up, .reveal-fade, .reveal-scale, .reveal-item { transition: opacity 0.3s linear; transform: none !important; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-hero-primary, .btn-hero-outline, .btn-outline-pill, .btn-cta-primary, .btn-cta-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: var(--btn-radius);
	font-family: var(--font-body);
	font-size: var(--btn-font-size);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	font-weight: var(--btn-font-weight);
	transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
	white-space: nowrap;
}

.btn-hero-primary {
	background: var(--color-primary);
	color: var(--color-primary-foreground);
	padding: 0.95rem 2rem;
	box-shadow: 0 10px 25px -8px color-mix(in srgb, var(--color-primary) 40%, transparent);
}
.btn-hero-primary:hover { transform: translateY(-2px) scale(1.02); background: color-mix(in srgb, var(--color-primary) 90%, black 0%); opacity: 0.92; }

.btn-hero-outline {
	background: transparent;
	color: var(--color-foreground);
	border: 1px solid color-mix(in srgb, var(--color-foreground) 25%, transparent);
	padding: 0.9rem 1.8rem;
}
.btn-hero-outline:hover { transform: translateY(-2px) scale(1.02); border-color: var(--color-primary); color: var(--color-primary); }

.btn-outline-pill {
	background: transparent;
	color: var(--color-primary);
	border: 1px solid var(--color-primary);
	padding: 0.85rem 2rem;
}
.btn-outline-pill:hover { background: var(--color-primary); color: var(--color-primary-foreground); transform: translateY(-2px); }

.btn-cta-primary {
	background: var(--color-primary);
	color: var(--color-primary-foreground);
	padding: 0.9rem 1.75rem;
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: var(--shadow-soft);
}
.btn-cta-primary:hover { background: color-mix(in srgb, var(--color-primary) 90%, black 0%); transform: translateY(-2px); }

.btn-cta-secondary {
	background: color-mix(in srgb, var(--color-background) 70%, transparent);
	color: var(--color-foreground);
	border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
	padding: 0.9rem 1.75rem;
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
}
.btn-cta-secondary:hover { background: var(--color-background); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	width: 100%;
	height: var(--header-height-mobile);
	backdrop-filter: blur(10px);
	background: color-mix(in srgb, var(--color-background) 80%, transparent);
	border-bottom: 1px solid transparent;
	transition: background-color 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}
@media (min-width: 768px) {
	.site-header { height: var(--header-height); }
}
.site-header.is-solid,
.site-header.is-scrolled {
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	box-shadow: var(--shadow-soft);
	border-bottom-color: color-mix(in srgb, var(--color-border) 70%, transparent);
}

.site-header__inner { height: 100%; }
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.site-nav__side { display: none; align-items: center; gap: 2.5rem; flex: 1; }
.site-nav__side--left { justify-content: flex-start; }
.site-nav__side--right { justify-content: flex-end; }
.site-nav__mobile { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 100%; }
@media (min-width: 1024px) {
	.site-nav__side { display: flex; }
	.site-nav__mobile { display: none !important; }
}

.theme-nav-list { display: flex; align-items: center; gap: 2.5rem; }
.theme-nav-link {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: color-mix(in srgb, var(--color-foreground) 85%, transparent);
	position: relative;
	transition: color 0.3s ease;
}
.theme-nav-link::after {
	content: '';
	position: absolute;
	left: 0; bottom: -6px;
	width: 100%; height: 2px;
	background: var(--color-primary);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease;
}
.theme-nav-link:hover { color: var(--color-primary); }
.theme-nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Desktop-centered logo (hidden below lg, like Lovable). */
.site-header__logo--desktop {
	display: none;
	flex-shrink: 0;
	margin: 0 1rem;
	align-items: center;
	justify-content: center;
}
@media (min-width: 1024px) {
	.site-header__logo--desktop { display: flex; }
}

/* Match Lovable: h-14 / md:h-[68px], driven by --logo-height. */
.site-logo-img {
	width: auto;
	max-width: none;
	object-fit: contain;
	display: block;
}
.site-header__logo-el {
	height: var(--logo-height, 68px);
	max-height: calc(var(--header-height) - 24px);
	transition: transform 0.5s ease;
}
.site-header__logo--desktop:hover .site-header__logo-el { transform: scale(1.06); }
.site-header__logo-el--mobile {
	height: 48px;
	max-height: calc(var(--header-height-mobile) - 16px);
	transition: transform 0.3s ease;
}
.site-logo-text { font-family: var(--font-display); font-size: 1.25rem; }

.theme-cart-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 25%, transparent);
	color: var(--color-foreground);
	transition: all 0.3s ease;
}
.theme-cart-btn:hover { border-color: var(--color-primary); color: var(--color-primary); transform: scale(1.05); }
.theme-cart-count {
	position: absolute;
	top: -6px; right: -6px;
	min-width: 20px; height: 20px;
	display: flex; align-items: center; justify-content: center;
	padding: 0 4px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 50%;
	background: var(--color-primary);
	color: var(--color-primary-foreground);
}
.theme-cart-count:empty { display: none; }

.site-header__logo--mobile { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.site-nav__mobile-actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-menu-toggle { padding: 0.5rem; margin-right: -0.5rem; color: var(--color-foreground); }
.icon-menu-close { display: none; }
.theme-menu-toggle[aria-expanded="true"] .icon-menu-open { display: none; }
.theme-menu-toggle[aria-expanded="true"] .icon-menu-close { display: block; }

.theme-mobile-menu {
	display: none;
	position: absolute;
	left: 0; right: 0; top: 100%;
	width: 100%;
	border-top: 1px solid var(--color-border);
	background: var(--color-background);
	box-shadow: var(--shadow-elevated);
	max-height: calc(100dvh - 72px);
	overflow-y: auto;
}
.theme-mobile-menu.is-open { display: block; animation: gtcFadeIn 0.3s var(--transition-smooth); }
.theme-mobile-menu__inner { padding: 0.75rem 1.5rem; }
.theme-mobile-menu__list { display: flex; flex-direction: column; }
.theme-mobile-menu__list .theme-nav-item { border-bottom: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent); }
.theme-mobile-menu__list .theme-nav-item:last-child { border-bottom: none; }
.theme-mobile-menu__list .theme-nav-link {
	display: block;
	padding: 1rem 0;
	font-size: 14px;
}
.theme-mobile-menu__list .theme-nav-link::after { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero-media {
	position: relative;
	width: 100%;
	min-height: 100svh;
	overflow: hidden;
	background: var(--color-secondary);
	opacity: 0;
	animation: gtcFadeIn 1.1s var(--transition-smooth) forwards;
}
.hero-media__video {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transform: scale(1.1);
	opacity: 0;
	animation: gtcHeroVideoIn 1.2s var(--transition-smooth) forwards, gtcHeroVideoScale 16s ease-out forwards;
}
@keyframes gtcHeroVideoIn { to { opacity: 1; } }
@keyframes gtcHeroVideoScale { to { transform: scale(1); } }

.hero-media__gradient {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 70% 55% at 50% 50%, color-mix(in srgb, var(--color-background) 75%, transparent) 0%, color-mix(in srgb, var(--color-background) 52%, transparent) 45%, color-mix(in srgb, var(--color-background) 28%, transparent) 75%, color-mix(in srgb, var(--color-background) 12%, transparent) 100%);
}
.hero-media__content { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6rem 0; }
.hero-media__inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 56rem; padding: 0 1rem; }

.hero-badge {
	display: inline-flex; align-items: center; gap: 0.5rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
	background: color-mix(in srgb, var(--color-background) 60%, transparent);
	backdrop-filter: blur(6px);
	padding: 0.4rem 1rem;
	font-size: 11px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--color-primary);
	font-weight: 600;
	margin-bottom: 1.5rem;
}
.hero-badge__icon { color: var(--color-accent); flex-shrink: 0; }
.hero-title {
	color: var(--color-foreground);
	line-height: 0.95;
	letter-spacing: -0.02em;
	font-size: clamp(2.4rem, 7vw, 5.2rem);
}
.hero-subtitle {
	margin-top: 1.25rem;
	max-width: 28rem;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
	font-size: 0.95rem;
	line-height: 1.6;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1rem; } }
.hero-actions { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

/* ==========================================================================
   Sections shared
   ========================================================================== */

.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-kicker {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase;
	color: var(--color-primary); font-weight: 600; margin-bottom: 0.75rem;
}
.section-heading {
	line-height: 0.95;
	color: var(--color-foreground);
	font-size: 2.25rem;
}
@media (min-width: 768px) { .section-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .section-heading { font-size: 4.5rem; } }
.section-subheading {
	margin-top: 1.25rem;
	color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
	font-size: 1rem;
	max-width: 36rem;
	margin-left: auto; margin-right: auto;
	line-height: 1.6;
}
@media (min-width: 768px) { .section-subheading { font-size: 1.125rem; } }

.theme-product-grid {
	display: grid;
	grid-template-columns: repeat(2, 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; } }

.featured-products-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .featured-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .featured-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }

.featured-section, .about-section, .services-section, .shop-section, .faq-section {
	padding: 4rem 0;
}
@media (min-width: 768px) { .featured-section, .about-section, .services-section, .shop-section { padding: 6rem 0; } }
.faq-section { padding: 6rem 0; background: color-mix(in srgb, var(--color-secondary) 40%, transparent); }
@media (min-width: 768px) { .faq-section { padding: 8rem 0; } }

.section-cta { text-align: center; margin-top: 3.5rem; }

/* ==========================================================================
   Product card (Section 31.3, 31.9, 31.13)
   ========================================================================== */

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.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__quick-add,
.theme-product-card a.add_to_cart_button { pointer-events: auto; }

.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--color-card);
	border-radius: 1rem;
	overflow: hidden;
	margin-bottom: 1.25rem;
}
.theme-product-card:hover .theme-product-card-img { transform: scale(1.04); }
.theme-product-card-img { transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1); }

.theme-product-card__badge {
	position: absolute;
	top: 1rem; right: 1rem;
	z-index: 3;
	padding: 0.25rem 0.75rem;
	border-radius: 0.375rem;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
	background: var(--color-foreground);
	color: var(--color-background);
}

.theme-product-card__quick-add,
.theme-product-card a.add_to_cart_button.ajax_add_to_cart {
	position: absolute;
	left: 1rem; right: 1rem; bottom: 1rem;
	z-index: 3;
	padding: 0.75rem 1rem;
	border-radius: 999px;
	background: var(--color-teal);
	color: var(--color-background);
	border: 1px solid var(--color-teal);
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 600;
	text-align: center;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.theme-product-card:hover .theme-product-card__quick-add,
.theme-product-card:hover a.add_to_cart_button.ajax_add_to_cart {
	opacity: 1;
	transform: translateY(0);
}
.theme-product-card__quick-add:hover,
.theme-product-card a.add_to_cart_button.ajax_add_to_cart:hover {
	background: var(--color-background);
	color: var(--color-teal);
}

.theme-product-card__info { flex: 1; display: flex; flex-direction: column; gap: 0.35rem; padding: 0 0.25rem; }
.theme-product-card__category { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--color-muted-foreground); }
.theme-product-card__category-list a { pointer-events: none; }
.theme-product-card__title {
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--color-foreground);
	transition: color 0.3s ease;
}
@media (min-width: 768px) { .theme-product-card__title { font-size: 1.125rem; } }
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { font-size: 1rem; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }
.theme-product-card__price .woocommerce-Price-amount { color: inherit; }
.theme-product-card__price del { opacity: 0.5; margin-right: 0.4rem; }

/* Product card 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 {
	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;
}

/* Card compact button overrides the global rules above (scoped after them). */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
	min-height: unset !important;
	background-color: var(--color-teal) !important;
	position: absolute !important;
	left: 1rem; right: 1rem; bottom: 1rem;
	padding: 0.75rem 1rem !important;
	border-radius: 999px !important;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart:hover {
	background-color: var(--color-background) !important;
	color: var(--color-teal) !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; }

.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; }

/* ==========================================================================
   About section
   ========================================================================== */

.about-section__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: stretch; }
@media (min-width: 1024px) { .about-section__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about-section__media { position: relative; min-height: 20rem; border-radius: 1rem; overflow: hidden; }
@media (min-width: 1024px) { .about-section__media { min-height: 100%; } }
.about-section__img { border-radius: 1rem; }
.about-section .section-heading { text-align: left; font-size: 2.25rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .about-section .section-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .about-section .section-heading { font-size: 4.5rem; } }
.about-section__copy { display: flex; flex-direction: column; justify-content: center; }
.about-section__lead { font-size: 1.125rem; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); margin-bottom: 1.25rem; }
@media (min-width: 768px) { .about-section__lead { font-size: 1.25rem; } }
.about-section__body { font-size: 1rem; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); margin-bottom: 1.25rem; }
@media (min-width: 768px) { .about-section__body { font-size: 1.125rem; } }

.about-section__chips { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.about-chip {
	display: inline-flex; align-items: center; gap: 0.5rem;
	border-radius: 999px; padding: 0.4rem 1rem;
	font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
	border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
	color: var(--color-primary);
	background: color-mix(in srgb, var(--color-primary) 5%, transparent);
	transition: all 0.3s ease;
}
.about-chip:hover { background: color-mix(in srgb, var(--color-primary) 15%, transparent); transform: translateY(-2px); }

.about-section__stats {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
	border-top: 1px solid var(--color-border); padding-top: 1.75rem; max-width: 28rem;
}
.about-stat__value { font-family: var(--font-display); font-size: 2.25rem; color: var(--color-foreground); line-height: 1; }
@media (min-width: 768px) { .about-stat__value { font-size: 3rem; } }
.about-stat__label { margin-top: 0.5rem; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted-foreground); }

/* ==========================================================================
   Services / What We Make
   ========================================================================== */

.services-section__head { max-width: 48rem; margin: 0 auto 3.5rem; }
@media (min-width: 768px) { .services-section__head { margin-bottom: 5rem; } }

.services-grid {
	display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 72rem; margin: 0 auto;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.service-card {
	position: relative;
	display: flex; flex-direction: column; align-items: center; text-align: center;
	border-radius: 1rem; background: var(--color-card);
	border: 1px solid var(--color-border);
	padding: 2rem 2rem;
	transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}
@media (min-width: 768px) { .service-card { padding: 2.5rem; } }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-elevated); }
.service-card.style-1:hover { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); }
.service-card.style-2:hover { border-color: color-mix(in srgb, var(--color-accent) 50%, transparent); }
.service-card.style-3:hover { border-color: color-mix(in srgb, var(--color-teal) 50%, transparent); }
.service-card.style-4:hover { border-color: color-mix(in srgb, var(--color-nopal) 50%, transparent); }
.service-card.style-5:hover { border-color: color-mix(in srgb, var(--color-marigold) 50%, transparent); }
.service-card.style-6:hover { border-color: color-mix(in srgb, var(--color-rosa) 50%, transparent); }

.service-card__icon {
	display: flex; align-items: center; justify-content: center;
	width: 4rem; height: 4rem; border-radius: 1rem; margin-bottom: 1.5rem;
	transition: transform 0.5s ease;
}
.service-card:hover .service-card__icon { transform: scale(1.1) rotate(3deg); }
.style-1 .service-card__icon { background: color-mix(in srgb, var(--color-primary) 15%, transparent); color: var(--color-primary); }
.style-2 .service-card__icon { background: color-mix(in srgb, var(--color-accent) 15%, transparent); color: var(--color-accent); }
.style-3 .service-card__icon { background: color-mix(in srgb, var(--color-teal) 15%, transparent); color: var(--color-teal); }
.style-4 .service-card__icon { background: color-mix(in srgb, var(--color-nopal) 15%, transparent); color: var(--color-nopal); }
.style-5 .service-card__icon { background: color-mix(in srgb, var(--color-marigold) 15%, transparent); color: var(--color-marigold); }
.style-6 .service-card__icon { background: color-mix(in srgb, var(--color-rosa) 15%, transparent); color: var(--color-rosa); }
.service-card:hover.style-1 .service-card__icon { background: var(--color-primary); color: var(--color-primary-foreground); }
.service-card:hover.style-2 .service-card__icon { background: var(--color-accent); color: var(--color-accent-foreground); }
.service-card:hover.style-3 .service-card__icon { background: var(--color-teal); color: var(--color-background); }
.service-card:hover.style-4 .service-card__icon { background: var(--color-nopal); color: var(--color-background); }
.service-card:hover.style-5 .service-card__icon { background: var(--color-marigold); color: var(--color-foreground); }
.service-card:hover.style-6 .service-card__icon { background: var(--color-rosa); color: var(--color-background); }

.service-card__kicker { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.75rem; }
.style-1 .service-card__kicker, .style-1 .service-card__cta { color: var(--color-primary); }
.style-2 .service-card__kicker, .style-2 .service-card__cta { color: var(--color-accent); }
.style-3 .service-card__kicker, .style-3 .service-card__cta { color: var(--color-teal); }
.style-4 .service-card__kicker, .style-4 .service-card__cta { color: var(--color-nopal); }
.style-5 .service-card__kicker, .style-5 .service-card__cta { color: var(--color-marigold); }
.style-6 .service-card__kicker, .style-6 .service-card__cta { color: var(--color-rosa); }

.service-card__title { font-size: 1.5rem; line-height: 1.2; color: var(--color-foreground); margin-bottom: 1rem; }
@media (min-width: 768px) { .service-card__title { font-size: 1.875rem; } }
.service-card__description { font-size: 15px; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.6; max-width: 17rem; margin-bottom: 2rem; flex-grow: 1; }
.service-card__cta {
	display: inline-flex; align-items: center;
	font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
	margin-top: auto; transition: opacity 0.3s ease;
}
.service-card__cta:hover { opacity: 0.8; }
.service-card__cta svg { margin-left: 0.25rem; transition: transform 0.3s ease; }
.service-card__cta:hover svg { transform: translateX(3px); }

/* ==========================================================================
   Shop
   ========================================================================== */

.shop-heading { text-align: center; margin-bottom: 2.5rem; font-size: 2.25rem; line-height: 0.95; }
@media (min-width: 768px) { .shop-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .shop-heading { font-size: 4.5rem; } }

.shop-search { position: relative; max-width: 28rem; margin: 0 auto 2rem; }
.shop-search__icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.shop-search__input {
	width: 100%;
	padding: 0.5rem 0 0.5rem 1.75rem;
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--color-border);
	color: var(--color-foreground);
	font-size: 1rem;
	transition: border-color 0.3s ease;
}
.shop-search__input:focus { outline: none; border-color: var(--color-foreground); }
.shop-search__input::placeholder { color: var(--color-muted-foreground); }

.shop-categories {
	display: flex; gap: 0.5rem; margin-bottom: 1rem;
	overflow-x: auto; padding: 0 1rem; margin-left: -1rem; margin-right: -1rem;
	scrollbar-width: none;
}
.shop-categories::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .shop-categories { flex-wrap: wrap; justify-content: center; overflow-x: visible; padding: 0; margin: 0 0 1rem; } }
.shop-category-btn {
	flex-shrink: 0;
	padding: 0.5rem 1.25rem;
	font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	background: transparent;
	color: var(--color-foreground);
	transition: all 0.3s ease;
}
.shop-category-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.shop-category-btn.is-active { background: 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: 13px; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--color-muted-foreground);
	transition: color 0.3s ease;
}
.shop-price-filter__toggle:hover { color: var(--color-foreground); }
.shop-price-filter__value { opacity: 0.7; text-transform: none; letter-spacing: normal; }
.shop-price-filter__chevron { transition: transform 0.3s ease; }
.shop-price-filter.is-open .shop-price-filter__chevron { transform: rotate(180deg); }
.shop-price-filter__panel {
	width: 100%; max-width: 22rem;
	overflow: hidden;
	max-height: 0; opacity: 0;
	transition: max-height 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth);
}
.shop-price-filter.is-open .shop-price-filter__panel { max-height: 8rem; opacity: 1; }
.price-range-labels { display: flex; justify-content: space-between; font-size: 14px; color: var(--color-muted-foreground); margin-top: 0.5rem; }

/* Dual-handle range slider (Section 31.4) */
.price-range-wrapper { position: relative; height: 1.5rem; padding: 0.5rem 0; }
.range-track-bg, .range-track-fill {
	position: absolute; height: 4px; top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	border-radius: 999px;
}
.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: -1px;
}
.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; border: none; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.shop-note { text-align: center; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }

.shop-products-grid { margin-top: 1.5rem; }
.shop-products-grid .theme-product-card-wrap.is-hidden-more,
.shop-products-grid .theme-product-card-wrap.is-hidden-filter { display: none !important; }

.shop-show-more { text-align: center; margin-top: 3rem; }
.shop-empty { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-section__inner { max-width: 56rem; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--color-background); border-radius: 1rem; border: 1px solid var(--color-border); overflow: hidden; }
.faq-item__question {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1.25rem 1.5rem; text-align: left;
	transition: background-color 0.3s ease;
}
.faq-item__question:hover { background: color-mix(in srgb, var(--color-card) 50%, transparent); }
.faq-item__question span { font-family: var(--font-display); font-size: 1.125rem; color: var(--color-foreground); }
@media (min-width: 768px) { .faq-item__question span { font-size: 1.25rem; } }
.faq-item__chevron { flex-shrink: 0; color: var(--color-primary); transition: transform 0.3s ease; }
.faq-item.is-open .faq-item__chevron { transform: rotate(180deg); }
.faq-item__answer { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth); }
.faq-item__answer p { padding: 0 1.5rem 1.25rem; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.6; }
.faq-item.is-open .faq-item__answer { max-height: 40rem; opacity: 1; }

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta-section { position: relative; overflow: hidden; }
.cta-section__inner { position: relative; min-height: 85vh; width: 100%; display: flex; align-items: center; justify-content: center; padding: 6rem 1rem; }
.cta-section__bg { z-index: 0; }
.cta-section__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--color-foreground) 60%, transparent), color-mix(in srgb, var(--color-foreground) 45%, transparent), color-mix(in srgb, var(--color-foreground) 70%, transparent)); z-index: 1; }

.cta-card {
	position: relative; z-index: 2;
	width: 100%; max-width: 56rem;
	border-radius: 2rem;
	overflow: hidden;
	box-shadow: var(--shadow-elevated);
	backdrop-filter: blur(10px);
	background: linear-gradient(135deg, color-mix(in srgb, var(--color-background) 96%, transparent) 0%, color-mix(in srgb, var(--color-secondary) 94%, transparent) 55%, color-mix(in srgb, var(--color-primary) 22%, transparent) 100%);
}
.cta-card__inner { padding: 3.5rem 2rem; text-align: center; }
@media (min-width: 768px) { .cta-card__inner { padding: 5rem 4rem; } }
.cta-card__title { font-size: 2.25rem; line-height: 0.95; margin-bottom: 1.5rem; color: var(--color-foreground); }
@media (min-width: 768px) { .cta-card__title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .cta-card__title { font-size: 4.5rem; } }
.cta-card__text { font-size: 1rem; line-height: 1.6; max-width: 36rem; margin: 0 auto 2.5rem; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }
@media (min-width: 768px) { .cta-card__text { font-size: 1.125rem; } }
.cta-card__actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .cta-card__actions { flex-direction: row; } }
.cta-card__badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem 1rem; font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); }
.cta-card__badges span:not(.cta-card__badge-sep) { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--color-primary); }
.cta-card__badges span:not(.cta-card__badge-sep) svg { color: var(--color-primary); }
.cta-card__badge-sep { color: color-mix(in srgb, var(--color-foreground) 30%, transparent); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--color-border); background: var(--color-card); }
.site-footer__inner { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .site-footer__inner { padding-top: 5rem; padding-bottom: 5rem; } }
.site-footer__top {
	display: flex; flex-direction: column; gap: 1.5rem;
	margin-bottom: 3rem; padding-bottom: 2.5rem;
	border-bottom: 1px solid var(--color-border);
}
@media (min-width: 640px) { .site-footer__top { flex-direction: row; align-items: center; justify-content: space-between; } }
/* Match Lovable footer: h-24 (96px) / md:h-32 (128px). */
.site-footer__logo-img {
	height: 6rem;
	width: auto;
	max-width: 12rem;
	object-fit: contain;
	transition: transform 0.5s ease;
}
@media (min-width: 768px) {
	.site-footer__logo-img { height: 8rem; max-width: 14rem; }
}
.site-footer__logo:hover .site-footer__logo-img { transform: scale(1.05); }
.site-footer__intro { max-width: 36rem; }
@media (min-width: 640px) { .site-footer__intro { text-align: right; } }
.site-footer__tagline { font-size: 1.5rem; color: var(--color-foreground); }
@media (min-width: 768px) { .site-footer__tagline { font-size: 1.875rem; } }
.site-footer__description { margin-top: 0.5rem; font-size: 0.95rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); line-height: 1.6; }
.site-footer__email, .site-footer__note { margin-top: 0.75rem; font-size: 14px; }
.site-footer__email a, .site-footer__note span { display: inline-flex; align-items: center; gap: 0.5rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.site-footer__email a:hover { color: var(--color-primary); }
.site-footer__note svg { color: var(--color-accent); }

.site-footer__columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__columns { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.site-footer__col-title { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; color: var(--color-foreground); margin-bottom: 1.25rem; }
.site-footer__col-title svg { color: var(--color-primary); }
.site-footer__shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.site-footer__list { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-footer-link, .theme-nav-link.theme-footer-link {
	font-size: 14px;
	color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
	transition: color 0.3s ease, transform 0.3s ease;
	text-align: left;
	display: inline-block;
}
.theme-footer-link:hover { color: var(--color-primary); transform: translateX(4px); }

.site-footer__bottom {
	margin-top: 3.5rem; padding-top: 1.5rem;
	border-top: 1px solid var(--color-border);
	display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
	text-align: center;
}
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.site-footer__bottom-tagline { font-size: 13px; color: var(--color-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.24em; }
.site-footer__copy { font-size: 13px; color: var(--color-muted-foreground); letter-spacing: 0.02em; }
.site-footer__sep { margin: 0 0.5rem; color: color-mix(in srgb, var(--color-foreground) 30%, transparent); }
.site-footer__credit-link { text-decoration: underline; text-underline-offset: 2px; }
.site-footer__credit-link:hover { color: var(--color-primary); }

/* ==========================================================================
   Contact modal (Section 9)
   ========================================================================== */

.theme-modal { position: fixed; inset: 0; z-index: 90; display: none; }
.theme-modal.is-open { display: block; }
.theme-modal__overlay {
	position: fixed; inset: 0; background: rgba(0,0,0,0.6);
	opacity: 0; transition: opacity 0.2s ease;
}
.theme-modal.is-open .theme-modal__overlay { opacity: 1; }
.theme-modal__content {
	position: fixed; left: 50%; top: 50%;
	transform: translate(-50%, -48%) scale(0.96);
	width: calc(100% - 2rem); max-width: 34rem; max-height: 90vh; overflow-y: auto;
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 0.75rem;
	padding: 1.5rem;
	box-shadow: var(--shadow-elevated);
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.theme-modal.is-open .theme-modal__content { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.theme-modal__close { position: absolute; right: 1rem; top: 1rem; opacity: 0.7; transition: opacity 0.2s ease; }
.theme-modal__close:hover { opacity: 1; }
.theme-modal__header { margin-bottom: 1rem; }
.theme-modal__title { font-size: 1.875rem; margin-bottom: 0.4rem; }
.theme-modal__description { font-size: 14px; color: var(--color-muted-foreground); }
.theme-modal__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 14px; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-modal__meta-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.theme-modal__meta-item svg { color: var(--color-accent); }
.theme-mailto-link:hover { color: var(--color-primary); }

.theme-form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-form-grid { grid-template-columns: 1fr 1fr; } }
.theme-form-field { margin-bottom: 1rem; }
.theme-form-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 0.4rem; }
.theme-form-field input, .theme-form-field select, .theme-form-field textarea {
	width: 100%; padding: 0.65rem 0.75rem;
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 0.375rem;
	font-size: 1rem;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.theme-form-field input::placeholder, .theme-form-field textarea::placeholder { color: var(--color-muted-foreground); }
.theme-form-field input:focus, .theme-form-field select:focus, .theme-form-field textarea:focus {
	outline: none; border-color: var(--color-primary);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 30%, transparent);
}
.theme-form-field textarea { resize: none; }
.theme-modal__form-footer { display: flex; justify-content: flex-end; }
.theme-modal__submit { text-transform: none; letter-spacing: 0; }
.theme-modal__submit[disabled] { opacity: 0.6; cursor: wait; }

.theme-modal__success { text-align: center; padding: 2rem 0; }
.theme-modal__success-icon {
	width: 3.5rem; height: 3.5rem; border-radius: 50%;
	background: var(--color-primary); color: var(--color-primary-foreground);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 1rem;
}
.theme-modal__success-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.theme-modal__success-text { font-size: 14px; color: var(--color-muted-foreground); }

/* ==========================================================================
   Side cart drawer (Section 12)
   ========================================================================== */

#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 60;
	background: color-mix(in srgb, var(--color-foreground) 20%, transparent);
	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; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem;
	background: var(--color-background);
	z-index: 60;
	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-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer__close { padding: 0.25rem; opacity: 0.7; transition: opacity 0.2s ease; }
.theme-cart-drawer__close:hover { opacity: 1; }

.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 svg { color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-cart-drawer__empty p { 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-item { display: flex; gap: 1rem; }
.theme-cart-item__image {
	display: block;
	width: 5rem;
	height: 6rem;
	background: var(--color-secondary);
	overflow: hidden;
	flex-shrink: 0;
	border-radius: 0.5rem;
	position: relative;
}
#theme-cart-drawer .theme-cart-item__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center;
}
.theme-cart-item__info { flex: 1; min-width: 0; }
.theme-cart-item__name { font-size: 14px; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.2s ease; }
.theme-cart-item__name:hover { opacity: 0.7; }
.theme-cart-item__price { font-size: 14px; color: var(--color-muted-foreground); margin-top: 0.15rem; }
.theme-cart-item__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-qty-btn { padding: 0.25rem; border-radius: 0.25rem; transition: background-color 0.2s ease; }
.theme-cart-qty-btn:hover { background: var(--color-secondary); }
.theme-cart-item__qty { font-size: 14px; width: 1.5rem; text-align: center; }
.theme-cart-remove { margin-left: auto; font-size: 14px; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.theme-cart-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: 14px; }
.theme-cart-drawer__subtotal span:first-child { color: var(--color-muted-foreground); }
.theme-cart-drawer__subtotal span:last-child { font-weight: 500; }
.theme-cart-drawer__checkout { width: 100%; padding: 0.9rem 1rem; }
.theme-cart-drawer__empty-btn { width: 100%; }

/* ==========================================================================
   Single product page (Section 11)
   ========================================================================== */

.single-product-main { padding: 1.5rem 0 6rem; background: var(--color-background); }
@media (min-width: 1024px) { .single-product-main { padding-top: 2rem; } }

.product-breadcrumb { padding: 0.75rem 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.product-breadcrumb a:hover { color: var(--color-foreground); }
.product-breadcrumb__sep { margin: 0 0.5rem; opacity: 0.5; }
.product-breadcrumb__current { color: var(--color-foreground); }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 1rem 0 6rem; align-items: start; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; } }

.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }

.theme-product-gallery__main { position: relative; aspect-ratio: 1 / 1; background: var(--color-secondary); overflow: hidden; }
.theme-product-thumbnails { margin-top: 1rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; flex-wrap: wrap; max-width: 100%; }
@media (min-width: 768px) { .theme-product-thumbnails { gap: 0.75rem; } }
.theme-product-thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--color-secondary); border: 1px solid transparent; transition: border-color 0.2s ease; }
.theme-product-thumb.is-active { border-color: var(--color-foreground); }
.theme-product-thumb:not(.is-active):hover { border-color: color-mix(in srgb, var(--color-foreground) 40%, transparent); }

.theme-product-info__category { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-product-info__category a { pointer-events: auto; }
.product-title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; line-height: 1.1; margin-top: 0.75rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .product-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .product-title { font-size: 2.75rem; } }

.theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) {
	.theme-product-info { position: sticky; top: calc(var(--header-height) + 1.5rem); align-self: start; padding-left: 1rem; }
}
body.admin-bar .theme-product-info { top: calc(var(--header-height) + 1.5rem + 32px); }
@media screen and (max-width: 782px) {
	body.admin-bar .theme-product-info { top: calc(var(--header-height-mobile) + 1.5rem + 46px); }
}
.theme-product-info__price { font-size: 1.25rem; margin-bottom: 1.5rem; }
.theme-product-info__teaser { color: var(--color-muted-foreground); line-height: 1.6; margin-bottom: 2rem; font-size: 1rem; overflow-wrap: break-word; word-break: break-word; }
.theme-stock-indicator--out { color: var(--color-destructive); font-size: 13px; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1.5rem; }

.theme-attr-group { margin-bottom: 1.5rem; }
.theme-attr-group__label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.75rem; font-family: var(--font-body); font-weight: 600; font-style: normal; }
.theme-attr-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-pill {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	transition: all 0.2s ease;
}
.theme-attr-pill:hover { border-color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-attr-pill.is-selected { border-color: var(--color-foreground); background: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
.theme-attr-pill:not(.theme-attr-pill--swatch).is-selected { background: var(--color-foreground); color: var(--color-background); }
.theme-attr-pill__price { opacity: 0.7; text-transform: none; letter-spacing: normal; }
.theme-attr-swatch { width: 0.75rem; height: 0.75rem; border-radius: 50%; border: 1px solid var(--color-border); }
.theme-variations-table-hidden, .theme-attr-select-hidden { display: none !important; }

.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; }
.single-product .variations tbody td.value { padding-top: 0; }

.theme-quantity-block { margin-bottom: 0; }
.theme-quantity-wrapper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--color-border);
	width: fit-content;
	max-width: 100%;
	flex: 0 0 auto;
	align-self: flex-start;
}
.theme-qty-minus, .theme-qty-plus { padding: 0.5rem 0.75rem; transition: background-color 0.2s ease; flex: 0 0 auto; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input {
	width: 2.75rem;
	min-width: 2.75rem;
	max-width: 2.75rem;
	flex: 0 0 2.75rem;
	text-align: center;
	font-size: 14px;
	border: none;
	background: transparent;
	-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;
	flex-direction: column;
	align-items: stretch;
	gap: 1rem;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}
.theme-add-to-cart-area .theme-quantity-block,
.theme-add-to-cart-area > .theme-quantity-wrapper {
	align-self: flex-start;
	width: auto;
}
.theme-add-to-cart-area .single_add_to_cart_button,
.theme-add-to-cart-area .theme-btn-primary {
	width: 100%;
	padding: 1rem 1.5rem;
	border-radius: 999px;
	background: var(--color-foreground);
	color: var(--color-background);
	font-size: 12px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	font-weight: 500;
	text-align: center;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}
.theme-add-to-cart-area .single_add_to_cart_button:hover:not(.disabled):not(:disabled) {
	background: color-mix(in srgb, var(--color-foreground) 90%, transparent);
}
.theme-add-to-cart-area .single_add_to_cart_button.disabled,
.theme-add-to-cart-area .single_add_to_cart_button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.theme-product-info__category a:hover { color: var(--color-foreground); }

.theme-btn-primary { background-color: var(--color-primary); color: var(--color-primary-foreground); }

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
}

.theme-accordions { margin-top: 2.5rem; border-top: 1px solid var(--color-border); }
.theme-accordion { border-bottom: 1px solid var(--color-border); }
.theme-accordion__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; text-align: left; }
.theme-accordion__trigger span { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; }
.theme-accordion__chevron { transition: transform 0.3s ease; }
.theme-accordion.is-open .theme-accordion__chevron { transform: rotate(180deg); }
.theme-accordion__panel { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth); }
.theme-accordion.is-open .theme-accordion__panel { max-height: 60rem; opacity: 1; padding-bottom: 1.5rem; }
.theme-accordion__panel p, .theme-accordion__panel li { font-size: 15px; color: var(--color-muted-foreground); line-height: 1.6; margin-bottom: 0.75rem; }
.theme-accordion__panel ul { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.theme-accordion__panel li { display: flex; align-items: flex-start; margin-bottom: 0; }
.theme-accordion__panel li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--color-foreground); margin-top: 0.55rem; margin-right: 0.75rem; flex-shrink: 0; }
.theme-details-heading { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; margin-top: 1.5rem; margin-bottom: 0.5rem; font-family: var(--font-body); font-weight: 600; }

.related-products-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.related-products-kicker { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-muted-foreground); text-align: center; margin-bottom: 0.25rem; }
.related-products-title { font-weight: 400; font-size: 1.875rem; text-align: center; margin-bottom: 3rem; }
@media (min-width: 768px) { .related-products-title { font-size: 2.25rem; } }
.related-products-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .related-products-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* ==========================================================================
   Shop archive (Section 19)
   ========================================================================== */

.shop-archive-main { padding: 3rem 0 5rem; }
.page-title {
	font-size: 2.25rem;
	line-height: 1.15;
	margin-bottom: 2rem;
}
@media (min-width: 768px) {
	.page-title { font-size: 2.75rem; }
}
.shop-archive-main .page-title { margin-bottom: 2rem; }
.shop-archive-empty { text-align: center; padding: 4rem 0; color: var(--color-muted-foreground); }

/* ==========================================================================
   404
   ========================================================================== */

.theme-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.theme-404__inner { text-align: center; }
.theme-404__code { font-size: 3rem; margin-bottom: 1rem; }
.theme-404__message { 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 { opacity: 0.9; }

/* ==========================================================================
   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-error, .woocommerce-info {
	list-style: none;
	padding: 1rem 1.5rem;
	border-radius: 0.5rem;
	background: var(--color-secondary);
	color: var(--color-foreground);
	font-size: 14px;
	margin: 0 0 1.5rem;
}
.woocommerce-error { background: color-mix(in srgb, var(--color-destructive) 10%, transparent); color: var(--color-destructive); }

/* ==========================================================================
   WooCommerce Checkout Block (Section 13)
   ========================================================================== */

body.woocommerce-checkout .site-main { padding-top: var(--header-height, 92px); padding-bottom: 4rem; }
body.woocommerce-checkout .page-title { max-width: 80rem; margin-left: auto; margin-right: auto; }

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	border: 1px solid var(--color-border);
	border-radius: 0.375rem;
	background: var(--color-background);
	color: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 25%, transparent);
}
body.woocommerce-checkout .wc-block-components-text-input input {
	padding: revert;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2rem);
		align-items: start;
	}
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2rem);
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-secondary);
	border-radius: var(--card-radius);
	padding: 2rem;
}
body.woocommerce-checkout .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: none !important;
	letter-spacing: 0 !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }
body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 0.5rem;
	grid-column: 1 / -1;
}
body.woocommerce-checkout .wc-block-cart-items { font-family: var(--font-body); }

/* ==========================================================================
   Thank you page (Section 22.8)
   ========================================================================== */

body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .site-main { padding-top: 3rem; padding-bottom: 4rem; }
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	margin-bottom: 2rem;
}
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; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { padding: 0 0 1rem 0; font-size: 1.5rem; }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 14px; }
body.theme-thankyou-page .woocommerce-order-overview li strong { display: block; font-family: var(--font-display); font-size: 1.1rem; margin-top: 0.25rem; }

@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details {
		display: flex;
		flex-direction: column;
		gap: 1.5rem;
	}
	body.theme-thankyou-page .woocommerce-customer-details address {
		max-width: 480px;
		overflow-wrap: break-word;
	}
}

/* ==========================================================================
   Other WooCommerce pages: width parity (Section 13.7)
   ========================================================================== */

body.woocommerce-cart .site-main,
body.woocommerce-account .site-main { padding-top: 3rem; padding-bottom: 4rem; }
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title { max-width: 80rem; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Customizer media controls (Section 22.3)
   ========================================================================== */

.theme-media-control { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-media-url-input { width: 100%; min-width: 0; box-sizing: border-box; }
.theme-media-preview { max-width: 100%; height: auto; display: block; }
