/* =========================================================================
   Etchology theme stylesheet
   Author: The Free Website Guys
   ========================================================================= */

/* ---------------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------------- */
:root {
	--color-background: #f4f1eb;
	--color-foreground: #312017;
	--color-primary: #9d3d25;
	--color-primary-foreground: #faf8f4;
	--color-secondary: #ebe1d6;
	--color-secondary-foreground: #3e291d;
	--color-muted-foreground: #5f4e45;
	--color-border: #d1c7bd;
	--color-rosa: #7c1d38;
	--color-marigold: #e68a19;
	--color-teal: #296563;
	--color-butter: #ebe1d6;
	--color-surface-deep: #2f1f18;
	--color-surface-deep-foreground: #f1ece4;

	--color-button-text: var(--color-primary-foreground);

	--font-display: 'Halant', serif;
	--font-body: 'Fira Sans', sans-serif;

	--radius: 0.75rem;
	--card-radius: 0.75rem;
	--shadow-soft: 0 4px 20px -4px rgba(49, 32, 23, 0.10);
	--shadow-elevated: 0 8px 40px -8px rgba(49, 32, 23, 0.22);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

	--btn-radius: 999px;
	--btn-height: 3.25rem;
	--btn-padding: 0 2.25rem;
	--btn-font-size: 0.6875rem;
	--btn-font-weight: 500;
	--btn-letter-spacing: 0.25em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0;

	--logo-height: 48px;
	--header-height: 80px;
	--checkout-gap: 2rem;
}

/* ---------------------------------------------------------------------
   2. Reset / base
   --------------------------------------------------------------------- */
* { box-sizing: border-box; }
html {
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
html, body { max-width: 100%; overflow-x: clip; }
body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
button:disabled,
button[disabled],
input:disabled,
.theme-btn:disabled { cursor: not-allowed; }
a[href],
[role="button"],
label[for],
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
select,
summary,
.theme-collection-tile,
.theme-gift-tile,
.theme-product-card,
.theme-nav-link,
.theme-cat-pill,
.theme-price-filter-toggle,
.theme-faq-item__question,
.theme-gallery-nav-btn,
.theme-gallery-item__link,
.theme-product-card__quick-add,
.theme-product-thumb,
.theme-attr-pill,
.theme-link-underline,
.theme-announcement-close,
.site-nav__icon-btn,
.theme-contact-modal__close,
.theme-quantity-btn { cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: -0.015em;
	margin: 0;
	line-height: 1.15;
}

/* Global img rule — excludes cover/full-bleed classes (Section 15.1). */
img:not(.cover-img):not(.theme-product-main-img):not(.theme-product-card__img) {
	max-width: 100%;
	height: auto;
}
.cover-img, .theme-product-main-img, .theme-product-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide { padding-inline: 2rem; }
}

.theme-section { position: relative; }
.theme-section__inner { padding-block: 4rem; }
@media (min-width: 768px) {
	.theme-section__inner { padding-block: 5rem; }
}
.scroll-mt-24 { scroll-margin-top: 6rem; }

/* WordPress admin bar — keep sticky header and fixed UI below the toolbar. */
body.admin-bar {
	--wp-admin-bar-height: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar {
		--wp-admin-bar-height: 46px;
	}
}
.admin-bar .site-header {
	top: var(--wp-admin-bar-height);
}
.admin-bar .theme-scroll-progress {
	top: var(--wp-admin-bar-height);
}
.admin-bar #theme-cart-drawer {
	top: var(--wp-admin-bar-height);
	height: calc(100% - var(--wp-admin-bar-height));
}

.theme-eyebrow {
	display: block;
	font-family: var(--font-body);
	font-size: 0.75rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}
.theme-eyebrow--teal { color: var(--color-teal); }
.theme-eyebrow--marigold { color: var(--color-marigold); }
.theme-eyebrow--rosa { color: var(--color-rosa); }

.accent-rosa { color: var(--color-rosa); }
.accent-marigold { color: var(--color-marigold); }
.accent-teal { color: var(--color-teal); }

.section-heading { font-weight: 400; font-size: 1.875rem; line-height: 1.2; }
@media (min-width: 768px) { .section-heading { font-size: 2.25rem; } }
.section-heading--lg { font-size: 1.875rem; }
@media (min-width: 768px) { .section-heading--lg { font-size: 3rem; } }

.theme-link-underline {
	position: relative;
	display: inline-block;
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-family: var(--font-body);
	color: var(--color-foreground);
	background: none;
	border: none;
}
.theme-link-underline--display { font-family: var(--font-display); font-weight: 500; }
.theme-link-underline::after {
	content: '';
	position: absolute;
	left: 0; bottom: 0;
	width: 100%; height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.theme-link-underline:hover::after { transform: scaleX(1); }

/* ---------------------------------------------------------------------
   3. Buttons
   --------------------------------------------------------------------- */
.theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: var(--btn-height);
	padding: var(--btn-padding);
	border-radius: 0;
	font-family: var(--font-display);
	font-weight: var(--btn-font-weight);
	font-size: var(--btn-font-size);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	transition: background-color 0.2s ease, opacity 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}
.theme-btn-hero-primary { background: var(--color-background); color: var(--color-foreground); text-transform: none; }
.theme-btn-hero-primary:hover { background: rgba(244,241,235,0.9); }
.theme-btn-hero-outline { background: transparent; color: var(--color-background); border: 1px solid rgba(244,241,235,0.7); text-transform: none; }
.theme-btn-hero-outline:hover { background: rgba(244,241,235,0.1); }
.theme-btn-rosa { background: var(--color-rosa); color: var(--color-background); }
.theme-btn-rosa:hover { opacity: 0.9; }
.theme-btn-foreground { background: var(--color-foreground); color: var(--color-background); }
.theme-btn-foreground:hover { opacity: 0.9; }
.theme-btn-primary { background: var(--color-primary); color: var(--color-primary-foreground); border-radius: 999px; text-transform: uppercase; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.2em; font-size: 0.7rem; text-transform: none; }
.theme-btn-outline { background: transparent; color: var(--color-foreground); border: 1px solid var(--color-border); border-radius: var(--radius); text-transform: none; font-family: var(--font-body); letter-spacing: normal; font-weight: 500; }
.theme-btn-outline:hover { background: var(--color-secondary); }
.theme-btn-block { width: 100%; }

/* ---------------------------------------------------------------------
   4. Animations / scroll reveal (Section 2.1)
   --------------------------------------------------------------------- */
@keyframes themeFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes themeSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes themeFadeUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }

.animate-fade-in { animation: themeFadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: themeSlideUp 0.6s var(--transition-smooth) forwards; }

.reveal-item {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

/* Customizer preview + reduced-motion fallbacks — reveal content must never be stuck hidden. */
body.is-customizer .reveal-item,
body.reduced-motion .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
	.reveal-item { transition: none; opacity: 1; transform: none; }
}

.theme-scroll-progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--color-primary);
	transform-origin: left;
	transform: scaleX(0);
	z-index: 60;
	transition: transform 0.15s linear;
}

/* ---------------------------------------------------------------------
   5. Announcement bar
   --------------------------------------------------------------------- */
.theme-announcement-bar {
	position: relative;
	background: var(--color-foreground);
	color: var(--color-background);
}
.theme-announcement-inner { padding-block: 0.5rem; text-align: center; }
.theme-announcement-text { font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; }
.theme-announcement-close {
	position: absolute;
	right: 0.75rem; top: 50%;
	transform: translateY(-50%);
	padding: 0.25rem;
	color: inherit;
	opacity: 0.7;
}
.theme-announcement-close:hover { opacity: 1; }

/* ---------------------------------------------------------------------
   6. Header / nav
   --------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0; left: 0; right: 0;
	z-index: 50;
	background: var(--color-background);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-solid,
.site-header.is-scrolled {
	background: rgba(244,241,235,0.95);
	backdrop-filter: blur(6px);
	border-bottom-color: var(--color-border);
}
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 5rem; position: relative; }
.site-nav__brand { display: flex; align-items: center; gap: 0.5rem; }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; }
.site-logo-text { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.02em; }

.site-nav__center { display: none; position: absolute; left: 50%; transform: translateX(-50%); align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .site-nav__center { display: flex; } }
.theme-nav-list { display: flex; align-items: center; gap: 2rem; }
.theme-nav-link {
	position: relative;
	font-family: var(--font-display);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-foreground);
	transition: color 0.3s ease;
}
.theme-nav-link::after {
	content: '';
	position: absolute; left: 0; bottom: -4px;
	width: 100%; height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-link:hover::after { transform: scaleX(1); }

.site-nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.site-nav__icon-btn { position: relative; padding: 0.5rem; color: var(--color-foreground); transition: opacity 0.2s ease; }
.site-nav__icon-btn:hover { opacity: 0.6; }
.site-nav__search-btn { display: none; }
@media (min-width: 768px) { .site-nav__search-btn { display: inline-flex; } }
.site-nav__menu-btn { display: inline-flex; }
@media (min-width: 1024px) { .site-nav__menu-btn { display: none; } }
.site-nav__menu-btn .icon-close { display: none; }
.site-nav__menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.site-nav__menu-btn[aria-expanded="true"] .icon-close { display: block; }

.theme-cart-count {
	position: absolute;
	top: -2px; right: -2px;
	width: 1.25rem; height: 1.25rem;
	display: flex; align-items: center; justify-content: center;
	font-size: 0.7rem; font-weight: 500;
	background: var(--color-primary);
	color: var(--color-primary-foreground);
	border-radius: 999px;
}
.theme-cart-count:empty { display: none; }

.site-mobile-nav {
	display: none;
	border-top: 1px solid var(--color-border);
	padding-block: 1rem;
}
.site-mobile-nav.is-open { display: block; animation: themeFadeIn 0.3s ease; }
.site-mobile-nav .theme-nav-list { flex-direction: column; align-items: flex-start; gap: 1rem; }
.site-mobile-nav .theme-nav-link { font-size: 0.85rem; letter-spacing: 0.18em; }

/* ---------------------------------------------------------------------
   7. Hero
   --------------------------------------------------------------------- */
.theme-hero__media { position: relative; width: 100%; height: 78vh; min-height: 560px; overflow: hidden; }
@media (min-width: 768px) { .theme-hero__media { height: 88vh; min-height: 680px; } }
.theme-hero__video { z-index: 0; }
.theme-hero__gradient {
	position: absolute; inset: 0;
	background: linear-gradient(to right, rgba(49,32,23,0.6), rgba(49,32,23,0.3), transparent);
}
.theme-hero__content { position: relative; height: 100%; display: flex; align-items: center; }
.theme-hero__box { max-width: 36rem; }
.theme-hero__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 3rem;
	line-height: 1.05;
	color: var(--color-background);
	margin-bottom: 1.5rem;
	max-width: 32rem;
}
@media (min-width: 768px) { .theme-hero__title { font-size: 3.75rem; } }
@media (min-width: 1280px) { .theme-hero__title { font-size: 4.5rem; } }
.theme-hero__subtitle {
	color: rgba(244,241,235,0.9);
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 2.5rem;
	max-width: 28rem;
}
@media (min-width: 768px) { .theme-hero__subtitle { font-size: 1.125rem; } }
.theme-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------------------------------------------------------------------
   8. Collections tiles
   --------------------------------------------------------------------- */
.theme-section__heading { text-align: center; margin-bottom: 2.5rem; }
.theme-collections-grid { display: grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap: 1rem; }
@media (min-width: 768px) { .theme-collections-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; } }
.theme-collection-tile {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	padding: 0;
	text-align: left;
}
.theme-collection-tile__img { transition: transform 0.7s var(--transition-smooth); }
.theme-collection-tile:hover .theme-collection-tile__img { transform: scale(1.05); }
.theme-collection-tile__scrim {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(49,32,23,0.85), rgba(49,32,23,0.4), rgba(49,32,23,0.1));
	transition: background 0.5s ease;
}
.theme-collection-tile:hover .theme-collection-tile__scrim { background: linear-gradient(to top, rgba(49,32,23,0.9), rgba(49,32,23,0.45), rgba(49,32,23,0.15)); }
.theme-collection-tile__content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; color: var(--color-background); text-shadow: 0 1px 8px rgba(0,0,0,0.45); }
.theme-collection-tile__tagline { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 0.5rem; filter: brightness(1.5); }
.theme-collection-tile__rule { height: 1px; width: 1.5rem; background: currentColor; }
.theme-collection-tile__label { font-size: 1.5rem; font-weight: 400; margin-bottom: 0.5rem; color: var(--color-background); }
@media (min-width: 768px) { .theme-collection-tile__label { font-size: 1.875rem; } }
.theme-collection-tile__cta { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; }

/* ---------------------------------------------------------------------
   9. Product grid & cards (Section 31.3 Pattern A, 31.9 equal height)
   --------------------------------------------------------------------- */
.theme-product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 1.5rem;
}
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.theme-product-grid--featured,
.theme-product-grid--related { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
@media (min-width: 768px) { .theme-product-grid--featured { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 3rem; } }
@media (min-width: 1024px) { .theme-product-grid--related { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; } }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-card-beyond-initial:not(.is-revealed) { display: none; }

.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;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--color-secondary);
	margin-bottom: 1.25rem;
}
.theme-product-card__image-wrapper img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.theme-product-card:hover .theme-product-card__img { transform: scale(1.04); }
.theme-product-card__img { transition: transform 0.7s var(--transition-smooth); }

.theme-product-card__badge {
	position: absolute; top: 0.75rem; left: 0.75rem; z-index: 3;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
	background: var(--color-foreground); color: var(--color-background);
	border-radius: 999px;
}

.theme-product-card__quick-add,
a.theme-product-card__quick-add {
	position: absolute;
	bottom: 0.75rem; right: 0.75rem;
	z-index: 3;
	width: 2.5rem; height: 2.5rem;
	display: flex; align-items: center; justify-content: center;
	border-radius: 999px;
	background: var(--color-background);
	color: var(--color-foreground);
	box-shadow: var(--shadow-soft);
	opacity: 1;
	transition: opacity 0.3s ease, transform 0.2s ease;
}
@media (min-width: 768px) {
	.theme-product-card__quick-add { opacity: 0; }
	.theme-product-card:hover .theme-product-card__quick-add { opacity: 1; }
}
.theme-product-card__quick-add:hover { transform: scale(1.08); }

.theme-product-card__info { flex: 1; text-align: center; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.theme-product-card__title {
	font-size: 0.875rem;
	font-family: var(--font-body);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	line-height: 1.3;
	color: var(--color-foreground);
	transition: color 0.3s ease;
}
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { font-size: 1rem; color: var(--color-foreground); font-weight: 400; }

/* ---------------------------------------------------------------------
   10. About / Our Story
   --------------------------------------------------------------------- */
.theme-about-section { position: relative; overflow: hidden; }
.theme-about-section__bg { position: absolute; inset: 0; }
.theme-about-section__scrim { position: absolute; inset: 0; background: rgba(255,255,255,0.6); }
.theme-about-section__inner { position: relative; padding: 5rem 1.5rem; }
@media (min-width: 768px) { .theme-about-section__inner { padding: 7rem 3.5rem; } }
@media (min-width: 1024px) { .theme-about-section__inner { padding: 7rem 5rem; } }
.theme-about-section__box { position: relative; max-width: 42rem; margin: 0 auto; text-align: center; isolation: isolate; }
.theme-about-section__glow {
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 140%; height: 130%;
	z-index: -1;
	background: radial-gradient(ellipse at center, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.5) 45%, rgba(255,255,255,0) 75%);
	pointer-events: none;
}
.about-section__heading { font-size: 1.875rem; font-weight: 600; margin-bottom: 2rem; }
@media (min-width: 768px) { .about-section__heading { font-size: 2.25rem; } }
.theme-about-section__p { color: rgba(49,32,23,0.8); line-height: 1.7; margin-bottom: 1.25rem; }

/* ---------------------------------------------------------------------
   11. Shop section (search, category pills, dual-range price filter)
   --------------------------------------------------------------------- */
.theme-shop-section__heading { text-align: center; margin-bottom: 3rem; }
.shop-heading { margin-bottom: 2.5rem; }

.theme-shop-search { position: relative; max-width: 28rem; margin: 0 auto 2rem; }
.theme-shop-search__icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.theme-shop-search__input {
	width: 100%;
	padding: 0.5rem 0 0.5rem 1.75rem;
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--color-border);
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--color-foreground);
	transition: border-color 0.2s ease;
}
.theme-shop-search__input:focus { outline: none; border-color: var(--color-foreground); }
.theme-shop-search__input::placeholder { color: var(--color-muted-foreground); }

.theme-shop-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.theme-cat-pill {
	padding: 0.5rem 1.25rem;
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-family: var(--font-body);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	background: transparent;
	color: var(--color-foreground);
	transition: all 0.3s ease;
}
.theme-cat-pill:hover { border-color: var(--color-rosa); color: var(--color-rosa); }
.theme-cat-pill.is-active { background: var(--color-rosa); color: var(--color-background); border-color: var(--color-rosa); }

.theme-price-filter-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.theme-price-filter-toggle {
	display: flex; align-items: center; gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--color-muted-foreground);
	transition: color 0.3s ease;
}
.theme-price-filter-toggle:hover { color: var(--color-foreground); }
.theme-price-filter-toggle__range { text-transform: none; letter-spacing: normal; opacity: 0.7; }
.theme-price-filter-toggle svg { transition: transform 0.3s ease; }
.theme-price-filter-toggle.is-open svg { transform: rotate(180deg); }
.theme-price-filter-panel {
	width: 100%; max-width: 24rem;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth);
	padding-inline: 0.5rem;
}
.theme-price-filter-panel.is-open { max-height: 8rem; opacity: 1; padding-block: 0.5rem; }

.price-range-wrapper { position: relative; height: 1.5rem; margin-bottom: 0.75rem; }
.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-secondary); }
.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: 1.1rem; height: 1.1rem;
	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: 1.1rem; height: 1.1rem;
	border-radius: 50%;
	background: var(--color-background);
	border: 2px solid var(--color-primary);
	cursor: pointer;
}
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }
.theme-price-range-labels { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--color-muted-foreground); }

.theme-shop-empty { text-align: center; padding-block: 3rem; color: var(--color-muted-foreground); }
.theme-section__footer-link { text-align: center; margin-top: 3.5rem; }

/* ---------------------------------------------------------------------
   12. Owners / Workshop
   --------------------------------------------------------------------- */
.theme-owners-grid { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .theme-owners-grid { grid-template-columns: 1fr 1fr; } }
.theme-owners-grid__media { position: relative; min-height: 380px; }
@media (min-width: 768px) { .theme-owners-grid__media { min-height: 520px; } }
@media (min-width: 1024px) { .theme-owners-grid__media { min-height: 620px; } }
.theme-owners-img { object-position: top; }
.theme-owners-grid__copy { display: flex; align-items: center; background: var(--color-background); padding: 4rem 1.5rem; }
@media (min-width: 768px) { .theme-owners-grid__copy { padding: 6rem 3.5rem; } }
@media (min-width: 1280px) { .theme-owners-grid__copy { padding: 6rem 6rem; } }
.theme-owners-grid__inner { max-width: 36rem; }
.owners-heading { font-size: 2.25rem; margin-bottom: 1.75rem; line-height: 1.15; }
@media (min-width: 768px) { .owners-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .owners-heading { font-size: 3.75rem; } }
.theme-owners-quote { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: rgba(49,32,23,0.85); line-height: 1.4; margin-bottom: 2rem; }
@media (min-width: 768px) { .theme-owners-quote { font-size: 1.5rem; } }
.theme-owners-p { color: rgba(49,32,23,0.75); line-height: 1.7; margin-bottom: 1.25rem; }

/* ---------------------------------------------------------------------
   13. Services rows
   --------------------------------------------------------------------- */
.theme-services-section { background: var(--color-butter); }
.theme-services-section__heading { text-align: center; padding: 5rem 1.5rem; }
@media (min-width: 768px) { .theme-services-section__heading { padding: 7rem 3.5rem; } }
.services-heading { font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 768px) { .services-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .services-heading { font-size: 4.5rem; } }

.theme-service-row { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .theme-service-row { grid-template-columns: 1fr 1fr; } }
.theme-service-row__media { position: relative; min-height: 360px; overflow: hidden; }
@media (min-width: 768px) { .theme-service-row__media { min-height: 500px; } }
@media (min-width: 1024px) { .theme-service-row__media { min-height: 560px; } }
.theme-service-img { transition: transform 0.9s var(--transition-smooth); }
.theme-service-row:hover .theme-service-img { transform: scale(1.03); }
.theme-service-row.is-reversed .theme-service-row__media { order: 2; }
.theme-service-row.is-reversed .theme-service-row__copy { order: 1; }
.theme-service-row__numeral {
	position: absolute; top: 1.25rem; left: 1.25rem;
	font-family: var(--font-display); font-size: 0.875rem; letter-spacing: 0.3em;
	padding: 0.25rem 0.5rem;
	background: rgba(244,241,235,0.85);
	backdrop-filter: blur(4px);
}
.theme-service-row__copy { display: flex; align-items: center; background: var(--color-butter); padding: 4rem 1.5rem; }
@media (min-width: 768px) { .theme-service-row__copy { padding: 6rem 3.5rem; } }
@media (min-width: 1280px) { .theme-service-row__copy { padding: 6rem 6rem; } }
.theme-service-row__inner { max-width: 36rem; }
.theme-service-row__kicker-line { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.theme-service-row__icon { display: flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid currentColor; }
.theme-service-row__kicker { font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase; }
.theme-service-row__title { font-size: 2.25rem; line-height: 1.05; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .theme-service-row__title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-service-row__title { font-size: 3.75rem; } }
.theme-service-row__desc { font-size: 1rem; color: var(--color-muted-foreground); line-height: 1.7; }
@media (min-width: 768px) { .theme-service-row__desc { font-size: 1.125rem; } }

/* ---------------------------------------------------------------------
   14. Small Gifts band (dark)
   --------------------------------------------------------------------- */
.theme-gifts-section { background: var(--color-surface-deep); color: var(--color-surface-deep-foreground); }
.theme-gifts-section .theme-section__inner { padding-block: 5rem; }
@media (min-width: 768px) { .theme-gifts-section .theme-section__inner { padding-block: 7rem; } }
.theme-gifts-section__heading { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.gifts-heading { font-size: 2.25rem; line-height: 1.05; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .gifts-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .gifts-heading { font-size: 3.75rem; } }
.theme-gifts-italic { display: block; font-style: italic; color: var(--color-marigold); }
.theme-gifts-section__desc { font-size: 1rem; color: color-mix(in srgb, var(--color-surface-deep-foreground) 75%, transparent); line-height: 1.7; }

.theme-gifts-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
@media (min-width: 768px) { .theme-gifts-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; } }
@media (min-width: 1024px) { .theme-gifts-grid { grid-template-columns: repeat(6, minmax(0,1fr)); } }
.theme-gift-tile { display: block; }
.theme-gift-tile__image-wrap { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: color-mix(in srgb, var(--color-surface-deep-foreground) 5%, transparent); }
.theme-gift-tile__img { transition: transform 0.6s var(--transition-smooth); }
.theme-gift-tile:hover .theme-gift-tile__img { transform: scale(1.05); }
.theme-gift-tile__meta { padding-top: 0.75rem; display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; min-width: 0; }
.theme-gift-tile__label {
	font-family: var(--font-display);
	font-size: 0.875rem;
	line-height: 1.25;
	color: var(--color-surface-deep-foreground);
	min-width: 0;
}
@media (min-width: 768px) { .theme-gift-tile__label { font-size: 1rem; } }
.theme-gift-tile__price { font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-marigold); white-space: nowrap; font-family: var(--font-body); }
.theme-gifts-grid .theme-gift-tile__price .woocommerce-Price-amount { color: var(--color-marigold); }

/* ---------------------------------------------------------------------
   15. Custom orders callout
   --------------------------------------------------------------------- */
.theme-custom-section { position: relative; overflow: hidden; background: var(--color-background); }
.theme-custom-section__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.theme-custom-section__scrim { position: absolute; inset: 0; background: rgba(255,255,255,0.6); }
.theme-custom-section__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 4rem 1.5rem;
}
@media (min-width: 768px) { .theme-custom-section__inner { padding: 6rem 3.5rem; } }
@media (min-width: 1024px) { .theme-custom-section__inner { padding: 6rem 5rem; } }
@media (min-width: 1280px) { .theme-custom-section__inner { padding: 6rem 6rem; } }
.theme-custom-section__box { max-width: 42rem; text-align: left; }
.custom-heading { font-size: 2.25rem; line-height: 1.05; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .custom-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .custom-heading { font-size: 3.75rem; } }
.theme-custom-italic { display: block; font-style: italic; color: var(--color-rosa); }
.theme-custom-section__p { color: rgba(49,32,23,0.8); line-height: 1.7; margin-bottom: 1.5rem; }
.theme-custom-section__p--italic { font-style: italic; color: rgba(49,32,23,0.7); margin-bottom: 2.5rem; }

/* ---------------------------------------------------------------------
   16. Gallery marquee
   --------------------------------------------------------------------- */
.theme-gallery-section { background: var(--color-background); }
.theme-gallery-section__inner { padding-block: 5rem; }
@media (min-width: 768px) { .theme-gallery-section__inner { padding-block: 7rem; } }
.theme-gallery-section__heading { margin-bottom: 2.5rem; }
@media (min-width: 768px) { .theme-gallery-section__heading { margin-bottom: 3.5rem; } }
.gallery-heading {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.875rem;
	line-height: 1.05;
	letter-spacing: -0.015em;
}
@media (min-width: 768px) { .gallery-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .gallery-heading { font-size: 3.75rem; } }
.theme-gallery-track {
	display: flex; gap: 1rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
	padding-inline: 1.5rem;
	scrollbar-width: none;
}
@media (min-width: 768px) { .theme-gallery-track { gap: 1.5rem; padding-inline: 3rem; } }
@media (min-width: 1024px) { .theme-gallery-track { padding-inline: 4rem; } }
.theme-gallery-track::-webkit-scrollbar { display: none; }
.theme-gallery-item { flex-shrink: 0; width: 78%; }
@media (min-width: 640px) { .theme-gallery-item { width: 55%; } }
@media (min-width: 768px) { .theme-gallery-item { width: 40%; } }
@media (min-width: 1024px) { .theme-gallery-item { width: 30%; } }
@media (min-width: 1280px) { .theme-gallery-item { width: 26%; } }
.theme-gallery-item__link { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.theme-gallery-item__img { object-position: top; transition: transform 0.9s var(--transition-smooth); }
.theme-gallery-item__link:hover .theme-gallery-item__img { transform: scale(1.04); }
.theme-gallery-controls { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-inline: 0; }
.theme-gallery-nav-btn {
	height: 3rem; width: 3rem;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid rgba(49,32,23,0.2);
	color: rgba(49,32,23,0.7);
	transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-gallery-nav-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* ---------------------------------------------------------------------
   17. Testimonials
   --------------------------------------------------------------------- */
.theme-testimonials-section { position: relative; overflow: hidden; }
.theme-testimonials-section__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.theme-about-section__bg {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.theme-testimonials-section__inner { position: relative; padding-block: 5rem; }
@media (min-width: 768px) { .theme-testimonials-section__inner { padding-block: 7rem; } }
.theme-testimonials-section__heading { position: relative; text-align: center; margin-bottom: 3rem; }
@media (min-width: 768px) { .theme-testimonials-section__heading { margin-bottom: 4rem; } }
.theme-testimonials-section__glow {
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 80%; max-width: 48rem; height: 14rem;
	border-radius: 999px;
	background: rgba(255,255,255,0.7);
	filter: blur(64px);
	pointer-events: none;
}
.testimonials-heading { font-size: 1.875rem; line-height: 1.2; }
@media (min-width: 768px) { .testimonials-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .testimonials-heading { font-size: 3.75rem; } }
.theme-testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 768px) { .theme-testimonials-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; } }
.theme-testimonial-card {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: 2rem;
	background: color-mix(in srgb, var(--color-butter) 95%, transparent);
	backdrop-filter: blur(4px);
	border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
	box-shadow: 0 1px 2px rgba(49, 32, 23, 0.06);
	transition: box-shadow 0.3s ease, transform 0.3s var(--transition-smooth);
}
.theme-testimonial-card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-6px); }
@media (min-width: 768px) { .theme-testimonial-card { padding: 2.5rem; } }
.theme-testimonial-card__mark { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: color-mix(in srgb, var(--color-primary) 60%, transparent); }
.theme-testimonial-card__quote { margin: 0; color: rgba(49,32,23,0.8); line-height: 1.625; flex: 1; font-family: var(--font-body); }
.theme-testimonial-card__caption { padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent); }
.theme-testimonial-card__name { font-family: var(--font-display); font-size: 1rem; color: var(--color-foreground); }
.theme-testimonial-card__role { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-muted-foreground); margin-top: 0.25rem; font-family: var(--font-body); }

/* ---------------------------------------------------------------------
   18. FAQ accordion
   --------------------------------------------------------------------- */
.theme-faq-section { background: var(--color-butter); }
.faq-heading { font-size: 1.875rem; line-height: 1.2; }
@media (min-width: 768px) { .faq-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .faq-heading { font-size: 3.75rem; } }
.theme-faq-list { max-width: 48rem; margin: 0 auto; }
.theme-faq-item { border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); }
.theme-faq-item__question {
	width: 100%;
	display: flex; align-items: center; justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1.5rem;
	text-align: left;
}
.theme-faq-item__question span:first-child { font-family: var(--font-display); font-size: 1.125rem; color: var(--color-foreground); transition: color 0.2s ease; }
@media (min-width: 768px) { .theme-faq-item__question span:first-child { font-size: 1.25rem; } }
.theme-faq-item:hover .theme-faq-item__question span:first-child { color: var(--color-primary); }
.theme-faq-item__icon {
	flex-shrink: 0;
	display: flex; height: 2rem; width: 2rem;
	align-items: center; justify-content: center;
	border: 1px solid rgba(49,32,23,0.25);
	color: rgba(49,32,23,0.7);
	transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-faq-item:hover .theme-faq-item__icon { color: var(--color-primary); border-color: var(--color-primary); }
.theme-faq-item__icon .icon-minus { display: none; }
.theme-faq-item.is-open .theme-faq-item__icon .icon-plus { display: none; }
.theme-faq-item.is-open .theme-faq-item__icon .icon-minus { display: block; }
.theme-faq-item__answer { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--transition-smooth); }
.theme-faq-item.is-open .theme-faq-item__answer { max-height: 40rem; }
.theme-faq-item__answer p { padding-bottom: 1.5rem; padding-right: 3.5rem; color: rgba(49,32,23,0.75); line-height: 1.7; }
.theme-faq-footer { text-align: center; margin-top: 3.5rem; }
.theme-faq-footer__text { font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }

/* ---------------------------------------------------------------------
   19. Final CTA
   --------------------------------------------------------------------- */
.theme-cta-section { position: relative; background: var(--color-butter); overflow: hidden; }
.theme-cta-section__bg { position: absolute; inset: 0; }
.theme-cta-section__scrim { position: absolute; inset: 0; background: rgba(49,32,23,0.4); }
.theme-cta-section__inner { position: relative; padding-block: 6rem; }
@media (min-width: 768px) { .theme-cta-section__inner { padding-block: 8rem; } }
.theme-cta-section__box {
	max-width: 42rem; margin: 0 auto; text-align: center;
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(4px);
	box-shadow: var(--shadow-elevated);
	padding: 3rem 2rem;
	border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
}
@media (min-width: 768px) { .theme-cta-section__box { padding: 4rem 3.5rem; } }
.theme-cta-eyebrow { font-weight: 600; }
.cta-heading { font-size: 1.875rem; line-height: 1.2; margin-bottom: 1.5rem; color: var(--color-foreground); }
@media (min-width: 768px) { .cta-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .cta-heading { font-size: 3.75rem; } }
.theme-cta-section__desc { color: rgba(49,32,23,0.8); line-height: 1.7; margin: 0 auto 2.5rem; max-width: 28rem; }
.theme-cta-section__actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; }
@media (min-width: 640px) { .theme-cta-section__actions { flex-direction: row; } }

/* ---------------------------------------------------------------------
   20. Footer
   --------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-butter); }
.site-footer__inner { padding-block: 3.5rem; }
@media (min-width: 1024px) { .site-footer__inner { padding-block: 4rem; } }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; } }
.site-footer__col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.site-footer__logo-link { display: inline-block; }
.site-footer__tagline { font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.6; max-width: 20rem; }
.site-footer__col-title { font-family: var(--font-display); font-size: 0.875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-foreground); }
.site-footer__links { display: flex; flex-direction: column; gap: 0.625rem; }
.site-footer__links a, .site-footer__links button { font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.2s ease; text-align: left; }
.site-footer__links a:hover, .site-footer__links button:hover { color: var(--color-foreground); }
.site-footer__contact-link { display: flex; align-items: center; gap: 0.5rem; word-break: break-all; }
.site-footer__bottom {
	margin-top: 3rem; padding-top: 1.5rem;
	border-top: 1px solid var(--color-border);
	display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center;
	gap: 1rem;
	white-space: nowrap;
	overflow-x: auto;
}
.site-footer__quote { font-size: 0.75rem; color: var(--color-muted-foreground); font-family: var(--font-display); font-style: italic; letter-spacing: 0.02em; }
.site-footer__copyright { font-size: 0.75rem; color: var(--color-muted-foreground); letter-spacing: 0.02em; }
.site-footer__copyright a { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 2px; }
.site-footer__copyright a:hover { color: var(--color-foreground); }

/* ---------------------------------------------------------------------
   21. Contact modal
   --------------------------------------------------------------------- */
#theme-contact-overlay {
	position: fixed; inset: 0; z-index: 70;
	background: rgba(49,32,23,0.5);
	opacity: 0; pointer-events: none;
	transition: opacity 0.25s ease;
}
body.contact-modal-open #theme-contact-overlay { opacity: 1; pointer-events: auto; }

#theme-contact-modal {
	position: fixed; top: 50%; left: 50%;
	transform: translate(-50%, -46%) scale(0.96);
	width: calc(100% - 2rem);
	max-width: 32rem;
	max-height: 90vh;
	overflow-y: auto;
	z-index: 71;
	background: var(--color-background);
	border-radius: var(--radius);
	box-shadow: var(--shadow-elevated);
	padding: 1.75rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s var(--transition-smooth), transform 0.25s var(--transition-smooth), visibility 0.25s;
}
body.contact-modal-open #theme-contact-modal { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
@media (min-width: 640px) { #theme-contact-modal { padding: 2rem; } }
.theme-contact-modal__close { position: absolute; top: 1rem; right: 1rem; padding: 0.4rem; color: var(--color-muted-foreground); }
.theme-contact-modal__close:hover { color: var(--color-foreground); }
.theme-contact-modal__header { margin-bottom: 1rem; padding-right: 1.5rem; }
.theme-contact-modal__title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; }
.theme-contact-modal__description { font-size: 0.9375rem; color: var(--color-muted-foreground); line-height: 1.6; }
.theme-contact-modal__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1.25rem; }
.theme-contact-modal__meta a { display: flex; align-items: center; gap: 0.5rem; }
.theme-contact-modal__meta a:hover { color: var(--color-foreground); }
.theme-contact-modal__form { display: flex; flex-direction: column; gap: 1rem; }
.theme-contact-modal__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-contact-modal__row { grid-template-columns: 1fr 1fr; } }
.theme-form-field { display: flex; flex-direction: column; gap: 0.375rem; }
.theme-form-field label { font-size: 0.875rem; font-weight: 500; }
.theme-form-field input, .theme-form-field textarea {
	width: 100%;
	padding: 0.625rem 0.75rem;
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--color-foreground);
	transition: box-shadow 0.2s ease;
}
.theme-form-field input:focus, .theme-form-field textarea:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent); }
.theme-form-field textarea { resize: none; }
.theme-contact-modal__actions { display: flex; justify-content: flex-end; }
.theme-contact-modal__success { text-align: center; padding-block: 2rem; }
.theme-contact-modal__success-icon {
	width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem;
	display: flex; align-items: center; justify-content: center;
	background: var(--color-primary); color: var(--color-primary-foreground);
	border-radius: 999px;
}
.theme-contact-modal__success h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-contact-modal__success p { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* ---------------------------------------------------------------------
   22. Cart drawer + overlay
   --------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 90;
	background: rgba(49,32,23,0.2);
	opacity: 0; pointer-events: none;
	transition: opacity 0.25s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

#theme-cart-drawer {
	position: fixed; top: 0; right: 0; height: 100%;
	width: 100%; max-width: 26rem;
	background: var(--color-background);
	box-shadow: var(--shadow-elevated);
	z-index: 91;
	display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer__close { padding: 0.25rem; color: var(--color-foreground); }
.theme-cart-drawer__close:hover { opacity: 0.6; }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1rem; }
.theme-cart-drawer__empty svg { color: var(--color-muted-foreground); }
.theme-cart-drawer__empty p { color: var(--color-muted-foreground); }
.theme-cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item__image { position: relative; width: 5rem; height: 6rem; flex-shrink: 0; overflow: hidden; background: var(--color-secondary); display: block; }
#theme-cart-drawer .theme-cart-item__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}
.theme-cart-item__body { flex: 1; min-width: 0; }
.theme-cart-item__name { display: block; font-size: 0.875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.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-item__qty-btn { padding: 0.25rem; border-radius: 0.25rem; transition: background 0.2s ease; }
.theme-cart-item__qty-btn:hover { background: var(--color-secondary); }
.theme-cart-item__qty { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-item__remove { margin-left: auto; padding: 0.25rem; color: var(--color-muted-foreground); }
.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 { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-drawer__shipping-note { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* Hide "View cart" injected by WooCommerce after AJAX add-to-cart (Section 11.4.2). */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* ---------------------------------------------------------------------
   23. WooCommerce button style override (Section 11.4.1)
   --------------------------------------------------------------------- */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-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: 0.75rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.2em !important;
	text-transform: none !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;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }
.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

/* Card compact quick-add button — overrides the global rule above. */
.theme-product-card .add_to_cart_button.ajax_add_to_cart,
.theme-gift-tile .add_to_cart_button.ajax_add_to_cart {
	min-height: unset !important;
	width: 2.5rem !important;
	height: 2.5rem !important;
	padding: var(--btn-icon-padding) !important;
	border-radius: 50% !important;
}

/* Attribute select fallback hiding (Section 11.5.2). */
.theme-attr-select-hidden { display: none !important; }

/* ---------------------------------------------------------------------
   24. Single product page
   --------------------------------------------------------------------- */
.theme-single-product {
	padding-top: 6rem;
	padding-bottom: 0;
	background: var(--color-background);
}
@media (min-width: 1024px) {
	.theme-single-product { padding-top: 7rem; }
}
.admin-bar .theme-single-product {
	padding-top: calc(6rem + var(--wp-admin-bar-height, 0px));
}
@media (min-width: 1024px) {
	.admin-bar .theme-single-product { padding-top: calc(7rem + var(--wp-admin-bar-height, 0px)); }
}
.theme-breadcrumb { padding-block: 1.5rem; font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-body); }
.theme-breadcrumb a { transition: color 0.2s ease; }
.theme-breadcrumb a:hover { color: var(--color-foreground); }
.theme-breadcrumb__sep { margin-inline: 0.5rem; opacity: 0.5; }
.theme-breadcrumb__current { color: var(--color-foreground); }

.theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-block: 1rem 6rem;
	align-items: start;
	min-width: 0;
}
@media (min-width: 1024px) {
	.theme-product-layout {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 4rem;
	}
}

.theme-product-gallery,
.theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) {
	.theme-product-gallery { grid-column: span 7 / span 7; }
	.theme-product-info { grid-column: span 5 / span 5; }
}

.theme-product-gallery__mobile { display: block; }
.theme-product-gallery__stack { display: none; }
.theme-product-gallery__main {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--color-secondary);
	overflow: hidden;
}
.theme-product-gallery__main .theme-product-main-img,
.theme-product-gallery__stack-item .theme-product-main-img {
	position: static;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.theme-product-thumbnails {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
	overflow-x: auto;
	padding-bottom: 0.25rem;
}
.theme-product-thumb {
	position: relative;
	width: 5rem;
	height: 5rem;
	flex-shrink: 0;
	overflow: hidden;
	background: var(--color-secondary);
	border: none;
	padding: 0;
}
.theme-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.6;
	transition: opacity 0.2s ease;
	display: block;
}
.theme-product-thumb:hover img,
.theme-product-thumb.is-active img { opacity: 1; }
.theme-product-thumb::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--color-foreground);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.theme-product-thumb.is-active::after { opacity: 1; }

@media (min-width: 1024px) {
	.theme-product-gallery__mobile { display: none; }
	.theme-product-gallery__stack {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}
	.theme-product-gallery__stack-item {
		position: relative;
		aspect-ratio: 1 / 1;
		background: var(--color-secondary);
		overflow: hidden;
	}
}

.theme-product-info { position: relative; align-self: start; }
@media (min-width: 1024px) {
	.theme-product-info {
		position: sticky;
		top: 7rem;
		padding-left: 1rem;
	}
}
.admin-bar .theme-product-info {
	top: calc(7rem + var(--wp-admin-bar-height, 0px));
}
.theme-product-info__cat { display: block; font-size: 0.8125rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-body); }
.theme-product-info__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) { .theme-product-info__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-product-info__title { font-size: 2.75rem; } }
.theme-product-info__price { font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--color-foreground); font-family: var(--font-body); }
.theme-product-info__price .woocommerce-Price-amount { font-size: 1.25rem; }
.theme-product-info__stock.is-oos { font-size: 0.875rem; color: var(--color-primary); font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.theme-product-info__excerpt { color: var(--color-muted-foreground); line-height: 1.625; margin-bottom: 2rem; font-size: 1rem; font-family: var(--font-body); overflow-wrap: break-word; word-break: break-word; }

.theme-attr-group { margin-bottom: 1.5rem; }
.theme-attr-group__label { font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.75rem; font-family: var(--font-body); font-weight: 400; }
.variations { display: none; }
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-pill {
	padding: 0.5rem 1rem;
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	font-family: var(--font-body);
	transition: all 0.2s ease;
	background: transparent;
	color: inherit;
}
.theme-attr-pill:hover { border-color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-attr-pill.is-selected { background: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }

.theme-add-to-cart-area { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; margin-bottom: 0; }
.theme-add-to-cart-area--stacked { margin-bottom: 0; }
.theme-quantity-wrapper { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 0.25rem; }
.theme-quantity-wrapper__label { font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); font-weight: 400; font-family: var(--font-body); }
.theme-quantity-controls { display: inline-flex; align-items: center; border: 1px solid var(--color-border); width: fit-content; }
.theme-qty-minus, .theme-qty-plus { padding: 0.5rem 0.75rem; transition: background 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input {
	appearance: textfield;
	width: 2.75rem;
	text-align: center;
	border: none;
	background: transparent;
	font-family: var(--font-body);
	font-size: 0.875rem;
	padding: 0.5rem 0;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-btn-product-cart,
.theme-single-product .single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3.25rem;
	padding: 1rem 1.5rem;
	border: none;
	border-radius: 999px;
	background: var(--color-foreground);
	color: var(--color-background);
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}
.theme-btn-product-cart:hover,
.theme-single-product .single_add_to_cart_button:hover:not(.disabled):not(:disabled) {
	opacity: 0.9;
}
.theme-btn-product-cart.disabled,
.theme-single-product .single_add_to_cart_button.disabled,
.theme-single-product .single_add_to_cart_button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.theme-single-product .woocommerce-variation-price,
.theme-single-product .woocommerce-variation.single_variation { display: none !important; }
.theme-single-product .woocommerce-variation-availability { display: none; }
.theme-single-product .single_variation_wrap { margin-top: 0; }

.theme-product-accordions { margin-top: 2.5rem; border-top: 1px solid var(--color-border); }
.theme-accordion { border-top: 1px solid var(--color-border); }
.theme-accordion:first-child { border-top: none; }
.theme-accordion__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding-block: 1.25rem; text-align: left; }
.theme-accordion__trigger span { font-size: 0.8125rem; letter-spacing: 0.25em; text-transform: uppercase; font-family: var(--font-body); }
.theme-accordion__trigger svg { transition: transform 0.2s ease; }
.theme-accordion.is-open .theme-accordion__trigger svg { transform: rotate(180deg); }
.theme-accordion__panel { display: none; padding-bottom: 1.5rem; font-family: var(--font-body); overflow-wrap: break-word; word-break: break-word; }
.theme-accordion.is-open .theme-accordion__panel { display: block; }
.theme-accordion__desc { font-size: 0.9375rem; color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 1rem; white-space: pre-line; }
.theme-accordion__desc p { margin-bottom: 0.75rem; }
.theme-accordion__list { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-accordion__list li { font-size: 0.9375rem; color: var(--color-muted-foreground); display: flex; align-items: flex-start; }
.theme-accordion__dot { width: 4px; height: 4px; background: var(--color-foreground); border-radius: 999px; margin-top: 0.5rem; margin-right: 0.75rem; flex-shrink: 0; }
.theme-accordion__panel p { font-size: 0.9375rem; color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 0.75rem; }

.theme-related-products { padding-block: 5rem; border-top: 1px solid var(--color-border); }
.theme-related-products__heading { text-align: center; margin-bottom: 3rem; }
.theme-related-products__eyebrow { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.related-heading { font-weight: 400; font-size: 1.875rem; }
@media (min-width: 768px) { .related-heading { font-size: 2.25rem; } }

/* ---------------------------------------------------------------------
   25. Shop archive (category/tag pages)
   --------------------------------------------------------------------- */
.theme-shop-archive { padding-block: 6rem 4rem; }
.theme-shop-archive__header { text-align: center; padding-block: 2rem; }
.theme-shop-archive__empty { text-align: center; padding-block: 4rem; color: var(--color-muted-foreground); }
.theme-product-grid--archive { margin-top: 2rem; }

/* ---------------------------------------------------------------------
   26. 404 / generic pages
   --------------------------------------------------------------------- */
.theme-404 { padding-block: 8rem; }
.theme-404-title { font-size: 4rem; margin-bottom: 1rem; }
.theme-404-text { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-404-link { color: var(--color-primary); text-decoration: underline; }
.theme-generic-page { padding-block: 6rem 4rem; }
.page-title { font-size: 2.25rem; margin-bottom: 2rem; }

/* ---------------------------------------------------------------------
   27. WooCommerce Checkout Block override (Section 13)
   --------------------------------------------------------------------- */
body.woocommerce-checkout .site-main { padding-top: var(--header-height, 80px); padding-bottom: 4rem; }
body.woocommerce-checkout .entry-content { width: 100%; }

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
	font-family: var(--font-body);
}
body.woocommerce-checkout .wc-block-checkout { display: block; }
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
	body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2rem);
		align-items: start;
	}
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}
body.woocommerce-checkout .wc-block-components-notice-banner { grid-column: 1 / -1; }
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-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background-color: var(--color-background);
}
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) 40%, 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: 999px !important;
	font-family: var(--font-body) !important;
	text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }

/* ---------------------------------------------------------------------
   28. Thank you page (Section 22.8)
   --------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order { padding-block: 2rem; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-size: 1.5rem; padding: 0 0 1rem 0; }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 0; margin-bottom: 2rem; list-style: none; }
body.theme-thankyou-page .woocommerce-order-overview li { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1rem 1.5rem; }
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; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 480px; overflow-wrap: break-word; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem; font-style: normal; }
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
	body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; max-width: none; }
}

/* ---------------------------------------------------------------------
   29. WooCommerce notices (Section 14.1)
   --------------------------------------------------------------------- */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	font-family: var(--font-body);
	border-radius: var(--radius);
	padding: 1rem 1.5rem;
	border: 1px solid var(--color-border);
	list-style: none;
	margin-bottom: 1.5rem;
}

/* ---------------------------------------------------------------------
   30. Generic form fields (shared with checkout/contact — Section 13.4)
   --------------------------------------------------------------------- */
.theme-generic-page .entry-content input[type="text"],
.theme-generic-page .entry-content input[type="email"],
.theme-generic-page .entry-content textarea {
	font-family: var(--font-body);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 0.625rem 0.75rem;
}
