/* ==========================================================================
   Heggy Peggy theme stylesheet
   Author: The Free Website Guys
   ========================================================================== */

:root {
	--radius: 1rem;
	--font-display: 'DM Serif Display', serif;
	--font-body: 'Inter', sans-serif;

	--color-primary-foreground: #ffffff;
	--color-destructive-foreground: #ffffff;
	--color-accent-foreground: #1f242e;

	--shadow-soft: 0 4px 24px -4px rgba(37, 43, 55, 0.06);
	--shadow-elevated: 0 12px 48px -12px rgba(37, 43, 55, 0.12);
	--transition-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);

	--header-height: 64px;
	--header-height-lg: 80px;

	--btn-radius: 9999px;
	--btn-height: 44px;
	--btn-padding: 0 2rem;
	--btn-font-size: 1rem;
	--btn-font-weight: 600;
	--btn-letter-spacing: normal;
	--btn-text-transform: none;
	--btn-icon-padding: 0.5rem;

	--checkout-gap: 2rem;
}

/* --------------------------------------------------------------------
 * Reset & base
 * ------------------------------------------------------------------ */

* {
	box-sizing: border-box;
	border-color: var(--color-border);
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	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; padding: 0; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
img { display: block; }

img:not(.cover-img):not(.hero-bg-img):not(.site-logo-img) {
	max-width: 100%;
	height: auto;
}
.cover-img,
.hero-bg-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-left: 1.5rem;
	padding-right: 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide { padding-left: 2rem; padding-right: 2rem; }
}

.section-padding { padding-top: 4rem; padding-bottom: 4rem; }
.section-padding-top { padding-top: 4rem; }
.cta-padding { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 768px) {
	.section-padding { padding-top: 6rem; padding-bottom: 6rem; }
	.section-padding-top { padding-top: 6rem; }
	.cta-padding { padding-top: 4rem; padding-bottom: 4rem; }
}

.scroll-mt-anchor { scroll-margin-top: 6rem; }

/* --------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------ */

.btn-hero-primary,
.btn-hero-outline,
.btn-cta,
.btn-primary-pill,
.btn-outline-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: var(--btn-radius);
	min-height: var(--btn-height);
	padding: var(--btn-padding);
	font-family: var(--font-body);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: none;
	white-space: nowrap;
	transition: opacity 0.2s ease, transform 0.2s ease;
	cursor: pointer;
}

.btn-hero-primary,
.btn-cta,
.btn-primary-pill {
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	border: none;
	box-shadow: var(--shadow-elevated);
}
.btn-hero-primary:hover,
.btn-cta:hover,
.btn-primary-pill:hover {
	background-color: var(--color-primary);
	opacity: 0.9;
}
.btn-cta {
	background-color: #ffffff;
	color: var(--color-primary);
	box-shadow: none;
}
.btn-cta:hover { background-color: rgba(255,255,255,0.9); }

.btn-hero-outline,
.btn-outline-pill {
	background-color: transparent;
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
}
.btn-hero-outline:hover,
.btn-outline-pill:hover { background-color: var(--color-secondary); }

.theme-btn-hover-scale:hover { transform: scale(1.05); }
.theme-btn-hover-scale:active { transform: scale(0.97); }
.theme-hover-scale:hover { transform: scale(1.05); }

/* --------------------------------------------------------------------
 * Scroll-reveal animation system (Section 2.1)
 * ------------------------------------------------------------------ */

.reveal-item,
.theme-reveal-onload {
	opacity: 0;
	transform: translateY(var(--reveal-y, 40px));
	transition:
		opacity var(--reveal-duration, 0.7s) var(--transition-smooth) var(--reveal-delay, 0s),
		transform var(--reveal-duration, 0.7s) var(--transition-smooth) var(--reveal-delay, 0s);
	will-change: opacity, transform;
}
.reveal-item.is-visible,
.theme-reveal-onload.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item,
	.theme-reveal-onload {
		transition-duration: 0.01ms !important;
		transform: none !important;
	}
}

/* Customizer preview fallback: never hide content behind an inert observer
   inside the iframe (Section 2.1.5). */
body.is-customizer .reveal-item,
body.is-customizer .theme-reveal-onload {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

/* No-JS fallback so content is never permanently hidden. */
body.no-js .reveal-item,
body.no-js .theme-reveal-onload {
	opacity: 1 !important;
	transform: none !important;
}

.blur-up-img {
	filter: blur(20px);
	opacity: 0.6;
	transition: filter 0.6s var(--transition-smooth), opacity 0.6s var(--transition-smooth);
}
.blur-up-img.is-loaded {
	filter: blur(0);
	opacity: 1;
}

/* --------------------------------------------------------------------
 * Site header
 * ------------------------------------------------------------------ */

.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	background-color: var(--color-background);
	border-bottom: 1px solid var(--color-border);
	transition: all 0.3s ease;
}

/* WordPress admin bar offset */
body.admin-bar .site-header { top: 46px; }
@media screen and (min-width: 783px) {
	body.admin-bar .site-header { top: 32px; }
}
body.admin-bar .scroll-mt-anchor { scroll-margin-top: calc(6rem + 46px); }
@media screen and (min-width: 783px) {
	body.admin-bar .scroll-mt-anchor { scroll-margin-top: calc(6rem + 32px); }
}

.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
}
@media (min-width: 1024px) {
	.site-nav { height: var(--header-height-lg); }
}

.site-logo-link { display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.site-logo-link .site-logo-img {
	height: 24px;
	max-height: 24px;
	width: auto !important;
	max-width: none;
	display: block;
}
@media (min-width: 1024px) {
	.site-logo-link .site-logo-img {
		height: var(--logo-height, 32px);
		max-height: var(--logo-height, 32px);
	}
}
.site-footer .site-logo-img {
	height: var(--logo-height, 32px);
	max-height: var(--logo-height, 32px);
	width: auto !important;
	max-width: none;
}
.site-logo-text { font-family: var(--font-display); font-size: 1.25rem; line-height: var(--logo-height, 32px); }
.site-logo-text--beside { margin-left: 0.5rem; }

.site-nav-desktop { display: none; }
@media (min-width: 768px) {
	.site-nav-desktop { display: flex; align-items: center; gap: 2rem; }
}
.theme-nav-list { display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.theme-nav-item { list-style: none; }
.theme-nav-link {
	position: relative;
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	cursor: pointer;
}
.theme-nav-link::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0;
	width: 100%; height: 1px;
	background-color: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-link:hover { color: var(--color-primary); }
.theme-nav-link:hover::after { transform: scaleX(1); }

.site-nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.theme-cart-btn { position: relative; padding: 0.5rem; transition: opacity 0.2s ease; }
.theme-cart-btn:hover { opacity: 0.6; }
.theme-cart-count {
	position: absolute;
	top: -2px; right: -2px;
	width: 20px; height: 20px;
	display: flex; align-items: center; justify-content: center;
	font-size: 10px; font-weight: 500;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	border-radius: 9999px;
}
.theme-cart-count:empty { display: none; }

.theme-mobile-toggle { padding: 0.5rem; transition: opacity 0.2s ease; }
.theme-mobile-toggle:hover { opacity: 0.6; }
@media (min-width: 768px) {
	.theme-mobile-toggle { display: none; }
}
.theme-icon-menu-close { display: none; }
.theme-mobile-toggle[aria-expanded="true"] .theme-icon-menu-open { display: none; }
.theme-mobile-toggle[aria-expanded="true"] .theme-icon-menu-close { display: block; }

.site-nav-mobile {
	display: none;
	border-top: 1px solid var(--color-border);
	padding: 1rem 0;
}
.site-nav-mobile.is-open {
	display: block;
	animation: theme-fade-in 0.6s var(--transition-smooth) forwards;
}
@media (min-width: 768px) {
	.site-nav-mobile { display: none !important; }
}
.theme-nav-list--mobile { flex-direction: column; align-items: flex-start; gap: 1rem; }
.theme-nav-list--mobile .theme-nav-link { padding: 0.5rem 0; }

@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes theme-slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------ */

.hero-section {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: stretch;
	position: relative;
	overflow: hidden;
}
.hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.15);
	will-change: transform;
}
.hero-inner {
	position: relative;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	width: 100%;
	padding-top: calc(var(--header-height) + 2rem);
	padding-bottom: 4rem;
}
@media (min-width: 1024px) {
	.hero-inner {
		padding-top: calc(var(--header-height-lg) + 2.5rem);
		padding-bottom: 4rem;
	}
}
body.admin-bar .hero-inner {
	padding-top: calc(var(--header-height) + 2rem + 46px);
}
@media screen and (min-width: 783px) {
	body.admin-bar .hero-inner {
		padding-top: calc(var(--header-height-lg) + 2.5rem + 32px);
	}
}

.hero-card {
	background-color: color-mix(in srgb, var(--color-background) 85%, transparent);
	backdrop-filter: blur(12px);
	border-radius: 1.5rem;
	padding: 2rem;
	max-width: 42rem;
	text-align: center;
	box-shadow: var(--shadow-elevated);
}
@media (min-width: 768px) { .hero-card { padding: 3rem; } }
@media (min-width: 1024px) { .hero-card { padding: 4rem; } }

.hero-badge {
	display: inline-block;
	padding: 0.375rem 1rem;
	background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
	color: var(--color-primary);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border-radius: 9999px;
	margin-bottom: 1.5rem;
}

.hero-title {
	font-size: 2.25rem;
	line-height: 1.1;
	margin-bottom: 1.5rem;
	color: var(--color-foreground);
}
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

.hero-subtitle {
	color: var(--color-muted-foreground);
	font-size: 1.125rem;
	line-height: 1.75;
	margin-bottom: 2rem;
	max-width: 32rem;
	margin-left: auto;
	margin-right: auto;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* --------------------------------------------------------------------
 * Section headings (Section 2.2.5 — scoped per-section, not global)
 * ------------------------------------------------------------------ */

.section-heading-block { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
}
.section-description {
	color: var(--color-muted-foreground);
	max-width: 42rem;
	margin: 0 auto;
}

.about-section__heading,
.shop-section__heading,
.creator-section__heading,
.faq-section__heading,
.resources-section__heading {
	font-size: 1.875rem;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}
@media (min-width: 768px) {
	.about-section__heading,
	.shop-section__heading,
	.creator-section__heading,
	.faq-section__heading,
	.resources-section__heading {
		font-size: 3rem;
	}
}

.contact-section__heading {
	font-size: 1.875rem;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}
@media (min-width: 768px) { .contact-section__heading { font-size: 3rem; } }

/* --------------------------------------------------------------------
 * About / Pillars
 * ------------------------------------------------------------------ */

.pillars-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
}
@media (min-width: 768px) {
	.pillars-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
}

.pillar-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pillar-icon-wrap {
	width: 9rem; height: 9rem;
	border-radius: 9999px;
	background-color: var(--color-secondary);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 1.25rem;
	box-shadow: var(--shadow-soft);
	transition: transform 0.5s var(--transition-smooth);
}
@media (min-width: 768px) { .pillar-icon-wrap { width: 11rem; height: 11rem; } }
.pillar-item:hover .pillar-icon-wrap { transform: scale(1.05); }
.pillar-icon-img { width: 5rem; height: 5rem; object-fit: contain; }
@media (min-width: 768px) { .pillar-icon-img { width: 6rem; height: 6rem; } }
.pillar-title { font-size: 1.125rem; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .pillar-title { font-size: 1.25rem; } }
.pillar-description { color: var(--color-muted-foreground); font-size: 0.875rem; line-height: 1.6; max-width: 200px; }

/* --------------------------------------------------------------------
 * Shop section
 * ------------------------------------------------------------------ */

.shop-section { background-color: var(--color-card); }

.category-filter-row {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
	margin-top: 2rem; margin-bottom: 2rem;
}
.category-pill {
	padding: 0.625rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 9999px;
	background-color: var(--color-secondary);
	color: var(--color-secondary-foreground);
	transition: all 0.3s ease, transform 0.15s ease;
}
.category-pill:hover { background-color: var(--color-muted); }
.category-pill:active { transform: scale(0.95); }
.category-pill.is-active { background-color: var(--color-primary); color: var(--color-primary-foreground); }

.theme-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: stretch;
}
@media (min-width: 640px) {
	.shop-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.shop-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.related-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) {
	.related-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
}

.shop-empty-state { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card { display: flex; flex-direction: column; height: 100%; }
.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 3 / 4;
	background-color: var(--color-secondary);
	overflow: hidden;
	border-radius: var(--radius);
	margin-bottom: 1rem;
	display: flex; align-items: center; justify-content: center;
	padding: 0.75rem;
	transition: box-shadow 0.5s var(--transition-smooth), transform 0.3s var(--transition-smooth);
}
.theme-product-card:hover .theme-product-card__image-wrapper {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px -12px rgba(37, 43, 55, 0.1);
}
.theme-product-card__image {
	position: static;
	max-width: 100%; max-height: 100%;
	width: auto; height: auto;
	object-fit: contain;
	transition: transform 0.7s ease-out;
}
.theme-product-card:hover .theme-product-card__image { transform: scale(1.05); }

.product-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;
	border-radius: 9999px;
}
.product-badge--soldout { background-color: var(--color-foreground); color: var(--color-background); }
.product-badge--bestseller { background-color: var(--color-primary); color: var(--color-primary-foreground); }

.theme-product-card__info { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.theme-product-card__title {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 500;
	transition: color 0.3s ease;
	min-width: 0;
}
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { font-size: 0.875rem; font-weight: 600; color: var(--color-muted-foreground); }

/* --------------------------------------------------------------------
 * Creator / Inside the book
 * ------------------------------------------------------------------ */

.creator-preview-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	max-width: 56rem;
	margin: 0 auto 4rem;
}
@media (min-width: 768px) {
	.creator-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}
.creator-preview-item {
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	background-color: var(--color-secondary);
}
.creator-preview-item--cover img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}
.creator-preview-item--contain {
	background-color: var(--color-background);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	min-height: 0;
}
.creator-preview-item--contain img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.creator-story { max-width: 48rem; margin: 0 auto 4rem; text-align: center; }
.creator-story-text { color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 1rem; }
.creator-bible-quote { color: var(--color-muted-foreground); line-height: 1.7; font-style: italic; }
.creator-bible-reference { font-style: normal; font-size: 0.875rem; }

.creator-bio-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: center;
}
@media (min-width: 768px) {
	.creator-bio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
}
.creator-photo-wrap { position: relative; aspect-ratio: 4/5; border-radius: 1rem; overflow: hidden; }
.creator-name { font-size: 1.875rem; margin-top: 0; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .creator-name { font-size: 2.25rem; } }
@media (min-width: 1024px) { .creator-name { font-size: 3rem; } }
.creator-bio-paragraphs { display: flex; flex-direction: column; gap: 1rem; color: var(--color-muted-foreground); }
.creator-bio-paragraph { line-height: 1.7; overflow-wrap: break-word; }
.creator-bio-paragraph--lead { font-size: 1rem; }
@media (min-width: 768px) { .creator-bio-paragraph--lead { font-size: 1.125rem; } }
.creator-bio-paragraph strong { color: var(--color-foreground); }

/* --------------------------------------------------------------------
 * Resources / Email capture
 * ------------------------------------------------------------------ */

.resources-section { background-color: var(--color-secondary); }
.resources-card {
	background-color: var(--color-background);
	border-radius: 1.5rem;
	padding: 2rem;
	max-width: 42rem;
	margin: 0 auto;
	text-align: center;
	box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) { .resources-card { padding: 3rem; } }
.resources-icon-wrap {
	width: 3rem; height: 3rem; border-radius: 9999px;
	background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 1rem;
	color: var(--color-primary);
}
.resources-success { color: var(--color-primary); font-weight: 600; }
.resources-form-fields { display: flex; flex-direction: column; gap: 0.75rem; max-width: 28rem; margin: 1.5rem auto 0; }
@media (min-width: 640px) { .resources-form-fields { flex-direction: row; } }
.resources-input {
	flex: 1;
	padding: 0.75rem 1rem;
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 9999px;
	font-size: 0.875rem;
}
.resources-input::placeholder { color: var(--color-muted-foreground); }
.resources-input:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent); }

/* --------------------------------------------------------------------
 * FAQ
 * ------------------------------------------------------------------ */

.faq-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: start;
	max-width: 64rem;
	margin: 0 auto;
}
@media (min-width: 1024px) {
	.faq-layout { grid-template-columns: 2fr 1fr; }
}

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--color-border); border-radius: 0.75rem; overflow: hidden; }
.faq-question {
	width: 100%;
	display: flex; align-items: center; justify-content: space-between;
	padding: 1.25rem;
	text-align: left;
	transition: background-color 0.2s ease;
}
.faq-question:hover { background-color: color-mix(in srgb, var(--color-secondary) 50%, transparent); }
.faq-question-text { font-weight: 500; font-size: 0.875rem; padding-right: 1rem; }
.faq-chevron { flex-shrink: 0; color: var(--color-muted-foreground); transition: transform 0.3s ease; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s var(--transition-smooth);
}
.faq-item.is-open .faq-answer {
	animation: theme-fade-in 0.6s var(--transition-smooth);
}
.faq-answer-text { color: var(--color-muted-foreground); font-size: 0.875rem; line-height: 1.7; padding: 0 1.25rem 1.25rem; }

.faq-image-wrap {
	display: none;
	border-radius: 1rem;
	overflow: hidden;
	max-width: 250px;
	margin-left: auto;
}
.faq-image-wrap img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	border-radius: 1rem;
}
@media (min-width: 1024px) { .faq-image-wrap { display: block; } }

/* --------------------------------------------------------------------
 * CTA band
 * ------------------------------------------------------------------ */

.cta-band {
	background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
	color: #ffffff;
	padding: 2.5rem;
	text-align: center;
	border-radius: 1.5rem;
	transition: transform 0.4s var(--transition-smooth);
}
@media (min-width: 768px) { .cta-band { padding: 4rem; } }
.theme-cta-hover-scale:hover { transform: scale(1.01); }
.cta-band__title { font-size: 1.5rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .cta-band__title { font-size: 2.25rem; } }
.cta-band__description { opacity: 0.9; margin-bottom: 2rem; max-width: 28rem; margin-left: auto; margin-right: auto; font-size: 1.125rem; }

/* --------------------------------------------------------------------
 * Contact
 * ------------------------------------------------------------------ */

.contact-section { background-color: var(--color-secondary); }
.contact-section__description { max-width: 28rem; }
.contact-email-row { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-bottom: 2rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.contact-mailto:hover { color: var(--color-foreground); }
.contact-form-wrap { max-width: 42rem; margin: 0 auto; }
.contact-form-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .contact-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-field { display: flex; flex-direction: column; min-width: 0; }
.contact-label { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.contact-input, .contact-textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-size: 0.875rem;
	transition: box-shadow 0.3s ease;
}
.contact-textarea { resize: none; margin-top: 1.25rem; }
.contact-input::placeholder, .contact-textarea::placeholder { color: var(--color-muted-foreground); }
.contact-input:focus, .contact-textarea:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent); }
.contact-submit-row { text-align: center; margin-top: 1.25rem; }
.contact-success { text-align: center; padding: 2.5rem 0; }
.contact-success-icon {
	width: 4rem; height: 4rem; border-radius: 9999px;
	background-color: var(--color-primary); color: var(--color-primary-foreground);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 1.5rem;
}
.contact-success-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-success-text { color: var(--color-muted-foreground); }

/* --------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------ */

.site-footer { border-top: 1px solid var(--color-border); background-color: var(--color-card); }
.site-footer-inner { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .site-footer-inner { padding-top: 4rem; padding-bottom: 4rem; } }
.site-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) {
	.site-footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}
.footer-description { margin-top: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); max-width: 24rem; line-height: 1.6; }
.footer-newsletter-form { margin-top: 1.5rem; max-width: 24rem; }
.footer-newsletter-label { font-size: 0.875rem; font-weight: 600; display: block; margin-bottom: 0.5rem; }
.footer-newsletter-success { font-size: 0.875rem; color: var(--color-primary); }
.footer-newsletter-row { display: flex; gap: 0.5rem; }
.footer-newsletter-input {
	flex: 1; min-width: 0;
	padding: 0.5rem 0.75rem;
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	font-size: 0.875rem;
}
.footer-newsletter-input:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent); }
.footer-newsletter-btn {
	padding: 0.5rem 1rem;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	font-size: 0.875rem; font-weight: 600;
	border-radius: 0.5rem;
	transition: opacity 0.2s ease;
	white-space: nowrap;
}
.footer-newsletter-btn:hover { opacity: 0.9; }

.footer-col-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.footer-nav-list, .footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav-link, .footer-mailto { font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.footer-nav-link:hover, .footer-mailto:hover { color: var(--color-foreground); }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); }

.site-footer-bottom {
	margin-top: 2.5rem; padding-top: 1.5rem;
	border-top: 1px solid var(--color-border);
	text-align: center;
}
.footer-copyright, .footer-credit { font-size: 0.75rem; color: var(--color-muted-foreground); margin: 0.15rem 0; }
.footer-credit a { text-decoration: underline; }
.footer-credit a:hover { color: var(--color-foreground); }

/* --------------------------------------------------------------------
 * Body offsets / no-hero pages
 * ------------------------------------------------------------------ */

body.theme-no-hero .site-main,
body.theme-no-hero .single-product-main,
body.theme-no-hero .shop-archive-main,
body.theme-no-hero .not-found-main,
body.theme-no-hero .fallback-main,
body.theme-no-hero .generic-page-main {
	padding-top: 6rem;
	padding-bottom: 4rem;
}
@media (min-width: 1024px) {
	body.theme-no-hero .site-main,
	body.theme-no-hero .single-product-main,
	body.theme-no-hero .shop-archive-main,
	body.theme-no-hero .not-found-main,
	body.theme-no-hero .fallback-main,
	body.theme-no-hero .generic-page-main {
		padding-top: 7rem;
	}
}
 * ------------------------------------------------------------------ */

.back-to-shop-row { padding: 1.5rem 0; }
.back-to-shop-link { display: inline-flex; align-items: center; font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; }
.back-to-shop-link:hover { color: var(--color-foreground); }
.back-to-shop-icon { margin-right: 0.5rem; }

.theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-bottom: 5rem;
	min-width: 0;
}
@media (min-width: 1024px) {
	.theme-product-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
}

.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) {
	.theme-product-info { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

.theme-product-main-image {
	position: relative;
	aspect-ratio: 3/4;
	background-color: var(--color-secondary);
	overflow: hidden;
	border-radius: 1rem;
	margin-bottom: 1rem;
	display: flex; align-items: center; justify-content: center;
	padding: 1.5rem;
}
#product-main-img { position: static; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

.theme-product-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; flex-wrap: wrap; max-width: 100%; }
.product-thumb {
	aspect-ratio: 1/1;
	border: 2px solid transparent;
	border-radius: 0.5rem;
	background-color: var(--color-secondary);
	overflow: hidden;
	opacity: 0.6;
	display: flex; align-items: center; justify-content: center;
	padding: 0.25rem;
	transition: all 0.2s ease;
}
.product-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-thumb:hover { opacity: 1; }
.product-thumb.is-active { border-color: var(--color-primary); opacity: 1; }

.product-category { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.product-category a { color: inherit; pointer-events: none; cursor: default; text-decoration: none; }

.product-title {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: 1.5rem;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
	overflow-wrap: break-word;
}
@media (min-width: 768px) { .product-title { font-size: 1.875rem; } }

.product-price { font-size: 1.5rem; margin-bottom: 1.5rem; font-weight: 600; color: var(--color-primary); }
.product-shipping-note { font-size: 0.75rem; color: var(--color-muted-foreground); font-style: italic; margin-bottom: 1.5rem; margin-top: -1rem; }
.product-stock-indicator--out { font-weight: 600; color: var(--color-destructive); margin-bottom: 1.5rem; }

.woocommerce-product-details__description {
	color: var(--color-muted-foreground);
	line-height: 1.7;
	margin-bottom: 2rem;
}
.woocommerce-product-details__description p { margin-bottom: 1rem; }

.theme-quantity-wrapper {
	display: flex; align-items: center;
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	overflow: hidden;
}
.theme-qty-minus, .theme-qty-plus {
	padding: 0.75rem 1rem;
	transition: background-color 0.2s ease;
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-input {
	width: 48px;
	min-width: 48px;
	text-align: center;
	padding: 0.75rem 0.25rem;
	border: none;
	border-left: 1px solid var(--color-border);
	border-right: 1px solid var(--color-border);
	background: transparent;
	-moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.add-to-cart-check-icon { display: none; }
.single_add_to_cart_button.wc-added .add-to-cart-label { display: none; }
.single_add_to_cart_button.wc-added .add-to-cart-check-icon { display: inline-block; }

.details-heading { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.woocommerce-product-details__short-description-wrap { border-top: 1px solid var(--color-border); padding-top: 2rem; margin-top: 2rem; }
.woocommerce-product-details__short-description,
.woocommerce-variation-description,
.posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
}
.woocommerce-product-details__short-description ul { display: flex; flex-direction: column; gap: 0.5rem; }
.woocommerce-product-details__short-description li {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	display: flex;
	align-items: flex-start;
}
.woocommerce-product-details__short-description li::before {
	content: '';
	width: 6px; height: 6px;
	background-color: var(--color-primary);
	border-radius: 9999px;
	margin-top: 8px;
	margin-right: 0.75rem;
	flex-shrink: 0;
}

.related-products-section { padding-top: 5rem; padding-bottom: 5rem; border-top: 1px solid var(--color-border); }
.related-products-heading { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .related-products-heading { font-size: 1.5rem; } }

/* --------------------------------------------------------------------
 * Variable product form (present for spec compliance, unused here)
 * ------------------------------------------------------------------ */

.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; }

.single-product .theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1rem;
}
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

/* --------------------------------------------------------------------
 * WooCommerce global overrides (Section 14)
 * ------------------------------------------------------------------ */

.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-primary-foreground) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	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-primary-foreground) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}

.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !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; }

.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

.woocommerce-message, .woocommerce-info, .woocommerce-error {
	max-width: 80rem; margin: 1rem auto; padding: 1rem 1.5rem;
	border-radius: 0.5rem; font-size: 0.875rem;
	background-color: var(--color-secondary); color: var(--color-secondary-foreground);
	list-style: none;
}
.woocommerce-error { background-color: color-mix(in srgb, var(--color-destructive) 12%, var(--color-background)); color: var(--color-destructive); }

/* --------------------------------------------------------------------
 * Side cart drawer
 * ------------------------------------------------------------------ */

#theme-cart-overlay {
	position: fixed; inset: 0;
	background-color: color-mix(in srgb, var(--color-foreground) 20%, transparent);
	z-index: 50;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; visibility: visible; }

#theme-cart-drawer {
	position: fixed;
	top: 0; right: 0;
	height: 100%;
	width: 100%;
	max-width: 28rem;
	background-color: var(--color-background);
	z-index: 51;
	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; transition: opacity 0.2s ease; }
.theme-cart-drawer__close:hover { opacity: 0.6; }

.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.theme-cart-drawer__empty-icon { color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-cart-drawer__empty-text { color: var(--color-muted-foreground); margin-bottom: 1.5rem; }

.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-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; }
.theme-cart-item__image img { width: 100%; height: 100% !important; max-width: none; object-fit: cover; display: block; }
.theme-cart-item__body { flex: 1; min-width: 0; }
.theme-cart-item__name { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: opacity 0.2s ease; }
.theme-cart-item__name:hover { opacity: 0.7; }
.theme-cart-item__price { font-size: 0.875rem; color: var(--color-muted-foreground); 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; border-radius: 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-foreground); }

.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-drawer__subtotal-label { color: var(--color-muted-foreground); }
.theme-cart-drawer__subtotal-value { font-weight: 500; }
.theme-cart-drawer__shipping-note { font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-drawer__checkout-btn { width: 100%; }

/* --------------------------------------------------------------------
 * Checkout (WooCommerce Blocks) — Section 13
 * ------------------------------------------------------------------ */

.page-title {
	font-size: 1.875rem;
	margin-bottom: 2rem;
	font-weight: 700;
}
@media (min-width: 768px) { .page-title { font-size: 2.25rem; } }

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}

@media (min-width: 768px) {
	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 { display: block; }
}

body.woocommerce-checkout .wc-block-components-notice-banner { grid-column: 1 / -1; }

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-card);
	border-radius: var(--radius);
	padding: 2rem;
}

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.5rem;
	background-color: var(--color-background);
	color: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: var(--color-muted-foreground); }
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
	outline: none;
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent);
}

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;
	font-weight: 600 !important;
	text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 0.5rem;
	font-family: var(--font-body);
}

/* --------------------------------------------------------------------
 * Cart / My Account / Thank-you width parity — Section 13.7
 * ------------------------------------------------------------------ */

body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
body.woocommerce-checkout .site-main,
body.theme-thankyou-page .site-main {
	padding-bottom: 4rem;
}

body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details {
	max-width: 100%;
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex; flex-wrap: wrap; gap: 1.5rem;
	list-style: none; padding: 0; margin: 1.5rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview li {
	font-size: 0.875rem;
	border-right: 1px solid var(--color-border);
	padding-right: 1.5rem;
}
body.theme-thankyou-page .woocommerce-order-overview li:last-child { border-right: none; }
body.theme-thankyou-page h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-size: 1.5rem;
	padding: 0 0 1rem 0;
}
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);
	text-align: left;
	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; }

@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: start;
	}
}
body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; overflow-wrap: break-word; }

/* --------------------------------------------------------------------
 * Not found
 * ------------------------------------------------------------------ */

.not-found-container { text-align: center; padding-top: 5rem; padding-bottom: 5rem; }
.not-found-title { font-size: 2.25rem; margin-bottom: 1rem; }
.not-found-text { margin-bottom: 1rem; color: var(--color-muted-foreground); }
.not-found-link { color: var(--color-primary); text-decoration: underline; }
.not-found-link:hover { opacity: 0.9; }

/* --------------------------------------------------------------------
 * Media control CSS is in customizer-controls.css (Section 22.3.8)
 * ------------------------------------------------------------------ */
