/* =========================================================================
   Marie's Essentials — theme.css
   Theme by The Free Website Guys.
   ========================================================================= */

:root {
	--color-background: #f7f6f2;
	--color-foreground: #141414;
	--color-primary: #be9537;
	--color-primary-foreground: #141414;
	--color-secondary: #efece7;
	--color-muted: #e4e2dd;
	--color-muted-foreground: #525252;
	--color-accent: #206f52;
	--color-accent-foreground: #f7f6f2;
	--color-accent-bright: #64c4a1;
	--color-border: #d8d3ca;
	--color-button-text: var(--color-accent-foreground);

	--font-display: 'Cormorant Garamond', 'Playfair Display', serif;
	--font-body: 'Jost', 'Inter', 'Helvetica Neue', sans-serif;

	--radius: 0.25rem;
	--card-radius: 0.5rem;
	--btn-radius: 0;
	--btn-height: 3rem;
	--btn-padding: 0 2rem;
	--btn-font-size: 0.6875rem;
	--btn-font-weight: 600;
	--btn-letter-spacing: 0.28em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0.5rem;

	--shadow-soft: 0 6px 24px -8px rgb(0 0 0 / 0.18);
	--shadow-elevated: 0 14px 40px -12px rgb(0 0 0 / 0.32);
	--transition-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);
	--header-height: 104px;
	--logo-height: 88px;
	--checkout-gap: 2rem;
	--checkout-max-width: 1280px;
}

/* ---------------------------------------------------------------------
   Base / Reset
   --------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: inherit;
	letter-spacing: -0.01em;
	margin: 0;
}

p { margin: 0; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a[href],
button:not(:disabled),
[role="button"],
.theme-product-card,
.category-tile,
.theme-search-result,
.faq-item__question,
.theme-carousel-btn,
.theme-cat-filter,
.site-header__logo,
.contact-link,
.nav-link,
.theme-nav-list a,
.theme-mobile-action-btn,
.theme-cart-item__remove,
.header-icon-btn {
	cursor: pointer;
}
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img:not(.cover-img):not(.hero-slide):not(.theme-product-card-img):not(.product-card-img):not(.product-banner__bg):not(.brand-image):not(.category-tile__img) {
	max-width: 100%;
	height: auto;
}
.cover-img, .hero-slide, .theme-product-card-img, .product-banner__bg, .brand-image, .category-tile__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;
	min-width: 0;
}
.site-main-wrap {
	min-width: 0;
	max-width: 100%;
}
@media (min-width: 1024px) { .container-wide { padding-inline: 2.5rem; } }

.label-eyebrow {
	display: block;
	font-size: 0.6875rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--color-muted-foreground);
}

.btn-hero-primary,
.btn-hero-accent,
.btn-outline-theme {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: var(--btn-height);
	padding: var(--btn-padding);
	font-size: var(--btn-font-size);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	font-weight: var(--btn-font-weight);
	border-radius: var(--btn-radius);
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}
.btn-hero-primary {
	background: var(--color-foreground);
	color: var(--color-background);
	border: 1px solid var(--color-accent);
}
.btn-hero-primary:hover { background: var(--color-accent); color: var(--color-accent-foreground); }
.btn-hero-accent {
	background: var(--color-accent);
	color: var(--color-accent-foreground);
	border: 1px solid var(--color-accent);
}
.btn-hero-accent:hover { background: var(--color-primary); color: var(--color-primary-foreground); }
.btn-outline-theme {
	background: transparent;
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
}
.btn-outline-theme:hover { background: var(--color-foreground); color: var(--color-background); }

.scroll-mt-32 { scroll-margin-top: 8rem; }

/* ---------------------------------------------------------------------
   Animations (Section 2.1)
   --------------------------------------------------------------------- */

@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes theme-slide-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes theme-marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.animate-fade-in { animation: theme-fade-in 0.8s var(--transition-smooth) forwards; }
.animate-slide-up { animation: theme-slide-up 0.8s var(--transition-smooth) forwards; }
.animate-marquee { animation: theme-marquee-scroll 35s linear infinite; }
.marquee-track:hover .animate-marquee,
.marquee-track:focus-within .animate-marquee { animation-play-state: paused; }

.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); }
body.is-customizer .reveal-item,
.theme-no-js .reveal-item { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
	.animate-marquee { animation: none; }
	.reveal-item { opacity: 1 !important; transform: none !important; transition: none !important; }
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.theme-scroll-progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: var(--color-accent-bright);
	z-index: 70;
	transform-origin: 0% 50%;
	transform: scaleX(0);
	transition: transform 0.15s ease-out;
	pointer-events: none;
}

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */

body.admin-bar .site-header {
	top: var( --wp-admin--admin-bar--height, 32px );
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: var( --wp-admin--admin-bar--height, 46px );
	}
}
body.admin-bar .theme-scroll-progress {
	top: var( --wp-admin--admin-bar--height, 32px );
}
@media screen and (max-width: 782px) {
	body.admin-bar .theme-scroll-progress {
		top: var( --wp-admin--admin-bar--height, 46px );
	}
}

.site-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	width: 100%;
	border-bottom: 1px solid transparent;
	background: rgb(247 246 242 / 0.8);
	backdrop-filter: blur(6px);
	transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled,
.site-header.is-solid {
	background: rgb(247 246 242 / 0.95);
	border-color: color-mix(in srgb, var(--color-accent) 30%, transparent);
	box-shadow: 0 6px 24px -18px rgb(0 0 0 / 0.4);
}
.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 6.4rem;
	min-width: 0;
	max-width: 100%;
}
@media (min-width: 1024px) { .site-header__inner { height: 7rem; } }

.site-header__left {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-width: 0;
	flex: 1 1 auto;
}
.mobile-menu-toggle {
	display: inline-flex;
	flex-shrink: 0;
	padding: 0.5rem;
	margin-left: -0.5rem;
}
@media (min-width: 1024px) { .mobile-menu-toggle { display: none; } }

.primary-nav { display: none; min-width: 0; }
@media (min-width: 1024px) { .primary-nav { display: flex; } }
.primary-nav .theme-nav-list {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}
.primary-nav .nav-link,
.primary-nav .theme-nav-list a,
.primary-nav .theme-contact-trigger {
	font-size: 0.8125rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	font-weight: 500;
	transition: color 0.3s ease;
}
.primary-nav .nav-link:hover,
.primary-nav .theme-nav-list a:hover,
.primary-nav .theme-contact-trigger:hover { color: var(--color-accent); }

.site-header__logo {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	max-width: 52vw;
	z-index: 1;
}
.site-logo-img { height: var(--logo-height) !important; width: auto !important; max-width: 100%; object-fit: contain; }
.site-logo-text {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.5rem;
	display: block;
	line-height: var(--logo-height);
	max-width: 52vw;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-header__right {
	display: flex;
	align-items: center;
	gap: 0.125rem;
	flex-shrink: 0;
}
body.mobile-menu-open .site-header {
	background: rgb(247 246 242 / 0.95);
	border-color: color-mix(in srgb, var(--color-accent) 30%, transparent);
	box-shadow: 0 6px 24px -18px rgb(0 0 0 / 0.4);
}
.header-icon-btn { position: relative; width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; transition: color 0.3s ease; }
.header-icon-btn:hover { color: var(--color-accent); }
.header-search-btn { display: none; }
@media (min-width: 640px) { .header-search-btn { display: inline-flex; } }
.theme-cart-count,
.theme-cart-count-badge {
	position: absolute;
	top: -0.05rem; right: -0.05rem;
	width: 1.15rem; height: 1.15rem;
	display: flex; align-items: center; justify-content: center;
	font-size: 0.6875rem; font-weight: 500;
	background: var(--color-accent);
	color: var(--color-accent-foreground);
	border-radius: 999px;
}
.theme-cart-count:empty,
.theme-cart-count-badge:empty { display: none; }
.theme-cart-count-inline {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------
   Mobile menu
   --------------------------------------------------------------------- */

.theme-mobile-menu {
	position: fixed; top: 0; left: 0; height: 100%;
	width: 88vw; max-width: 24rem;
	background: var(--color-background);
	border-right: 1px solid var(--color-border);
	display: flex; flex-direction: column;
	z-index: 90;
	transform: translateX(-100%);
	transition: transform 0.35s var(--transition-smooth);
}
body.mobile-menu-open .theme-mobile-menu { transform: translateX(0); }
.theme-mobile-menu__header { display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; height: 4.8rem; border-bottom: 1px solid var(--color-border); flex-shrink: 0; }
.theme-mobile-menu__header .site-logo-img { height: 3.4rem !important; }
.theme-mobile-menu__nav { flex: 1; overflow-y: auto; padding: 0.75rem 0.5rem; min-height: 0; }
.theme-nav-list--mobile {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
	list-style: none;
}
.theme-nav-list--mobile > li,
.theme-mobile-menu__nav .menu-item {
	width: 100%;
	border-bottom: 1px solid color-mix(in srgb, var(--color-border) 40%, transparent);
}
.theme-nav-list--mobile a,
.theme-nav-list--mobile button,
.theme-mobile-menu__nav .menu-item a,
.theme-mobile-menu__nav .menu-item button {
	display: block;
	width: 100%;
	text-align: left;
	padding: 1rem 0.75rem;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--color-foreground);
	background: none;
	border: none;
	transition: color 0.3s ease;
}
.theme-nav-list--mobile a:hover,
.theme-nav-list--mobile button:hover,
.theme-mobile-menu__nav .menu-item a:hover,
.theme-mobile-menu__nav .menu-item button:hover { color: var(--color-primary); }
.theme-mobile-menu__footer { border-top: 1px solid var(--color-border); padding: 1rem 0.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; flex-shrink: 0; }
.theme-mobile-action-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem;
	border: 1px solid var(--color-border);
	font-family: var(--font-body);
	font-size: 0.875rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.theme-mobile-action-btn:hover {
	background: var(--color-foreground);
	color: var(--color-background);
}
.theme-mobile-action-btn--filled { background: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }
.theme-mobile-action-btn--filled:hover {
	background: var(--color-primary);
	color: var(--color-primary-foreground);
	border-color: var(--color-primary);
}
#theme-mobile-menu-overlay { position: fixed; inset: 0; background: rgb(20 20 20 / 0.4); z-index: 85; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
body.mobile-menu-open #theme-mobile-menu-overlay { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------------------
   Search dialog
   --------------------------------------------------------------------- */

.theme-search-dialog { position: fixed; inset: 0; z-index: 80; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
body.search-open .theme-search-dialog { opacity: 1; pointer-events: auto; }
.theme-search-dialog::before { content: ''; position: absolute; inset: 0; background: rgb(20 20 20 / 0.4); backdrop-filter: blur(4px); }
.theme-search-dialog__close { position: absolute; top: 1.25rem; right: 1.25rem; z-index: 10; padding: 0.5rem; opacity: 0.7; }
.theme-search-dialog__close:hover { opacity: 1; }
.theme-search-dialog__inner { position: relative; background: var(--color-background); max-height: 92vh; overflow-y: auto; padding-block: 2.5rem; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-elevated); }
.theme-search-dialog__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .theme-search-dialog__grid { grid-template-columns: 260px 1fr; gap: 4rem; } }
.theme-search-dialog__categories h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.theme-search-dialog__categories ul { display: flex; flex-direction: column; gap: 0.875rem; }
.theme-search-dialog__categories button { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; }
.theme-search-dialog__categories button:hover { color: var(--color-primary); }
.theme-search-dialog__input-row { display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 30%, transparent); padding-bottom: 0.75rem; }
.theme-search-dialog__input-row input { flex: 1; background: transparent; border: none; outline: none; font-family: var(--font-display); font-size: 1.5rem; }
.theme-search-dialog__results-body { margin-top: 2.5rem; }
.theme-search-dialog__results-body h4 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.theme-search-results-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
@media (min-width: 768px) { .theme-search-results-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .theme-search-results-grid { grid-template-columns: repeat(4,1fr); } }
.theme-search-result { text-align: left; }
.theme-search-result__img { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--color-secondary); }
.theme-search-result__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.theme-search-result:hover .theme-search-result__img img { transform: scale(1.05); }
.theme-search-result__name { margin-top: 0.75rem; font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; }
.theme-search-result__price { margin-top: 0.25rem; font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }

/* ---------------------------------------------------------------------
   Contact modal
   --------------------------------------------------------------------- */

.theme-modal { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; padding: 1.5rem; }
body.contact-modal-open .theme-modal { opacity: 1; pointer-events: auto; }
.theme-modal__overlay { position: absolute; inset: 0; background: rgb(20 20 20 / 0.5); }
.theme-modal__panel {
	position: relative; z-index: 1; background: var(--color-background);
	max-width: 32rem; width: 100%; max-height: 90vh; overflow-y: auto;
	padding: 2rem; border: 1px solid var(--color-border); border-radius: var(--card-radius);
	transform: translateY(16px) scale(0.98); opacity: 0;
	transition: transform 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth);
}
body.contact-modal-open .theme-modal__panel { transform: translateY(0) scale(1); opacity: 1; }
.theme-modal__close { position: absolute; top: 1rem; right: 1rem; opacity: 0.7; }
.theme-modal__close:hover { opacity: 1; }
.theme-modal__title { font-size: 1.5rem; margin-top: 0.5rem; font-style: italic; }
.theme-modal__desc { font-size: 0.9375rem; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); margin-top: 0.5rem; }
.theme-modal__contact-info {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--color-border);
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
}
.theme-modal__contact-line {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.theme-modal__contact-icon {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	color: inherit;
}
.theme-modal__contact-info a {
	color: inherit;
	transition: color 0.3s ease;
	word-break: break-all;
}
.theme-modal__contact-info a:hover { color: var(--color-foreground); }
.theme-contact-form { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.theme-form-row--two { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-form-row--two { grid-template-columns: 1fr 1fr; } }
.theme-form-row label { display: block; margin-bottom: 0.375rem; }
.theme-form-row input, .theme-form-row textarea {
	width: 100%; padding: 0.625rem 0.75rem; background: var(--color-background);
	border: 1px solid var(--color-border); font-size: 0.875rem; transition: border-color 0.2s ease;
}
.theme-form-row input::placeholder, .theme-form-row textarea::placeholder { color: var(--color-muted-foreground); }
.theme-form-row input:focus, .theme-form-row textarea:focus { outline: none; border-color: var(--color-primary); }
.theme-form-actions { display: flex; justify-content: flex-end; }
button.theme-modal__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 2.75rem;
	padding: 0 1.5rem;
	min-width: 7.75rem;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	border-radius: var(--radius);
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	border: 1px solid var(--color-primary);
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
button.theme-modal__submit .btn-text {
	color: currentColor;
}
button.theme-modal__submit:hover,
button.theme-modal__submit:focus-visible {
	background-color: var(--color-background);
	color: var(--color-primary);
	border-color: var(--color-primary);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-primary) 35%, transparent);
	opacity: 1;
}
button.theme-modal__submit:active {
	transform: scale(0.98);
}
.theme-modal__submit-icon {
	width: 0.875rem;
	height: 0.875rem;
	flex-shrink: 0;
}
.theme-modal__success-state { text-align: center; padding: 2rem 0; }
.theme-modal__success-icon { width: 3.5rem; height: 3.5rem; background: var(--color-primary); color: var(--color-primary-foreground); border-radius: 999px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.theme-modal__success-state h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-modal__success-state p { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */

.hero-section { position: relative; width: 100%; }
.hero-slideshow { position: relative; width: 100%; height: 88vh; overflow: hidden; background: var(--color-secondary); }
@media (min-width: 768px) { .hero-slideshow { height: 92vh; } }
.hero-slide { opacity: 0; transition: opacity 1.2s var(--transition-smooth), transform 1.2s var(--transition-smooth); transform: scale(1.05); object-position: center center; }
.hero-slide--pos-center { object-position: center center; }
.hero-slide--pos-66 { object-position: 66% center; }
.hero-slide--pos-68 { object-position: 68% center; }
.hero-slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(to right, color-mix(in srgb, var(--color-background) 75%, transparent), color-mix(in srgb, var(--color-background) 20%, transparent), transparent); z-index: 2; }
.hero-content-wrap { position: absolute; inset: 0; display: flex; align-items: flex-end; z-index: 3; }
.hero-content-wrap .container-wide { position: relative; width: 100%; padding-bottom: 4rem; }
@media (min-width: 768px) { .hero-content-wrap .container-wide { padding-bottom: 6rem; } }
@media (min-width: 1024px) { .hero-content-wrap .container-wide { padding-bottom: 7rem; } }
/* Matches React: motion.div.w-full.max-w-2xl */
.hero-content {
	width: 100%;
	max-width: 42rem;
	animation: theme-slide-up 1s var(--transition-smooth) 0.4s forwards;
	opacity: 0;
}
body.is-customizer .hero-content { opacity: 1; animation: none; transform: none; }
.hero-eyebrow {
	display: block;
	font-family: var(--font-body);
	font-size: 0.625rem;
	font-weight: 400;
	letter-spacing: 0.42em;
	text-transform: uppercase;
	color: var(--color-accent);
	margin-bottom: 1rem;
}
@media (min-width: 768px) { .hero-eyebrow { font-size: 0.6875rem; } }
/* Matches React: h1 max-w-xl text-4xl md:text-6xl lg:text-7xl */
.hero-title {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 500;
	font-size: 2.25rem;
	line-height: 1.05;
	margin-bottom: 1.5rem;
	max-width: 36rem;
	color: var(--color-foreground);
}
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }
/* Matches React: p text-sm md:text-base max-w-md mb-8 leading-relaxed foreground/75 */
.hero-subtitle {
	font-family: var(--font-body);
	font-size: 0.875rem;
	max-width: 28rem;
	margin-bottom: 2rem;
	line-height: 1.625;
	color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1rem; } }
.hero-content .btn-hero-primary {
	height: 3rem;
	padding: 0 2.5rem;
	font-size: 0.6875rem;
	letter-spacing: 0.32em;
	font-weight: 600;
	background: var(--color-foreground);
	color: var(--color-background);
	border: 1px solid var(--color-accent);
	border-radius: 0;
}
.hero-content .btn-hero-primary:hover {
	background: var(--color-accent);
	color: var(--color-accent-foreground);
}
.hero-dots { position: absolute; left: 1.5rem; bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 1024px) { .hero-dots { left: 2.5rem; } }
@media (min-width: 768px) { .hero-dots { bottom: 2rem; } }
.hero-dot { height: 0.75rem; width: 0.75rem; border: 1px solid color-mix(in srgb, var(--color-foreground) 40%, transparent); background: color-mix(in srgb, var(--color-background) 70%, transparent); transition: all 0.3s ease; }
.hero-dot:hover { border-color: var(--color-accent); }
.hero-dot.is-active { width: 2rem; background: var(--color-accent); border-color: var(--color-accent); }

/* ---------------------------------------------------------------------
   Product cards (shared across contexts — Section 31.13)
   --------------------------------------------------------------------- */

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card { display: flex; flex-direction: column; height: 100%; position: relative; }
.theme-product-card__image-link { display: block; position: relative; }
.theme-product-card__image-wrapper { position: relative; aspect-ratio: 1/1; overflow: hidden; background: color-mix(in srgb, var(--color-muted) 60%, transparent); }
/* Product cards: block flow images (not cover-img absolute) — matches React ProductCard */
.theme-product-card__image-wrapper .theme-product-card-img {
	position: relative;
	inset: auto;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.theme-product-card-img { transition: opacity 0.5s ease; }
.theme-product-card-img.is-sold-out { opacity: 0.6; }
.theme-product-card:hover .theme-product-card-img { opacity: 0.9; }
.theme-product-badge {
	position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2;
	font-size: 0.625rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600;
	background: color-mix(in srgb, var(--color-background) 90%, transparent);
	backdrop-filter: blur(4px);
	color: var(--color-foreground);
	padding: 0.375rem 0.75rem;
}
.theme-product-card__body { display: block; padding-top: 1rem; text-align: center; flex: 1; }
.theme-product-card__title { font-family: var(--font-body); font-weight: 400; font-size: 0.8125rem; color: var(--color-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.3s ease; min-width: 0; }
.theme-product-card:hover .theme-product-card__title { color: var(--color-accent); }
.theme-product-card__cat { font-size: 0.6875rem; color: var(--color-muted-foreground); margin-top: 0.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-product-card__price { font-size: 0.75rem; color: var(--color-foreground); margin-top: 0.25rem; }
.theme-product-card__price .woocommerce-Price-amount { font-size: inherit; }

.theme-product-grid { display: grid; gap: 1.25rem 1.25rem; }
.theme-product-grid--4col { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 2.5rem; }
@media (min-width: 768px) { .theme-product-grid--4col { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-product-grid--4col { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.theme-product-grid--3col { grid-template-columns: repeat(1, minmax(0,1fr)); column-gap: 2rem; row-gap: 3rem; }
@media (min-width: 640px) { .theme-product-grid--3col { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-product-grid--3col { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.theme-cat-filter.is-hidden-by-filter,
.theme-product-card-wrap.is-hidden-by-filter { display: none !important; }

/* ---------------------------------------------------------------------
   Product row (featured carousel)
   --------------------------------------------------------------------- */

.product-row-section { padding: 3.5rem 0; }
.product-row-section .container-wide { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .product-row-section { padding: 5rem 0; } }
.product-row__header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; }
.product-row__title { font-family: var(--font-body); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; }
@media (min-width: 640px) { .product-row__title { font-size: 0.875rem; } }
.product-row__nav { display: flex; align-items: center; gap: 0.25rem; }
.theme-carousel-btn { width: 2.25rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); transition: background-color 0.2s ease, color 0.2s ease; }
.theme-carousel-btn:hover { background: var(--color-foreground); color: var(--color-background); }
/* Align flush with .product-row__header — padding comes from .container-wide only */
.theme-carousel-track {
	display: flex;
	gap: 1.25rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 1rem;
	margin: 0;
	padding-left: 0;
	padding-right: 0;
	scrollbar-width: none;
}
@media (min-width: 1024px) { .theme-carousel-track { gap: 1.5rem; } }
.theme-carousel-track::-webkit-scrollbar { display: none; }
/* Product rows/grids: skip scroll-reveal hide (cards must stay visible for shop + carousel) */
.theme-carousel-track .theme-product-card-wrap.reveal-item,
.product-row-section .reveal-item,
.theme-product-grid .theme-product-card-wrap.reveal-item,
.home-shop-section .reveal-item,
.shop-section .reveal-item {
	opacity: 1;
	transform: none;
}
.theme-carousel-track .theme-product-card-wrap { flex-shrink: 0; width: 68vw; scroll-snap-align: start; }
/* Featured row (#curated): one full-width centered card on mobile only */
@media (max-width: 639px) {
	#theme-carousel-featured {
		gap: 0;
	}
	#theme-carousel-featured .theme-product-card-wrap {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
		scroll-snap-align: center;
		scroll-snap-stop: always;
	}
}
@media (min-width: 640px) { .theme-carousel-track .theme-product-card-wrap { width: 40vw; } }
@media (min-width: 768px) { .theme-carousel-track .theme-product-card-wrap { width: 30vw; } }
@media (min-width: 1024px) { .theme-carousel-track .theme-product-card-wrap { width: calc((100% - 4.5rem) / 4); } }

/* ---------------------------------------------------------------------
   Category tiles
   --------------------------------------------------------------------- */

.category-tiles-section { padding-bottom: 1rem; }
.category-tiles-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .category-tiles-grid { grid-template-columns: repeat(3, 1fr); } }
.category-tile { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--color-secondary); }
.category-tile__img { transition: transform 0.7s ease; }
.category-tile:hover .category-tile__img { transform: scale(1.05); }
.category-tile__overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-foreground) 20%, transparent); transition: background-color 0.3s ease; }
.category-tile:hover .category-tile__overlay { background: color-mix(in srgb, var(--color-foreground) 35%, transparent); }
.category-tile__label {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	font-weight: 600; color: var(--color-background); font-size: 0.9375rem;
	letter-spacing: 0.32em; text-transform: uppercase; text-align: center; padding: 0 1rem;
}
@media (min-width: 768px) { .category-tile__label { font-size: 1rem; } }

/* ---------------------------------------------------------------------
   Shop sections (home + archive)
   --------------------------------------------------------------------- */

.home-shop-section, .shop-section { padding: 3.5rem 0; }
.home-shop-section .container-wide,
.shop-section .container-wide { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .home-shop-section, .shop-section { padding: 5rem 0; } }
.home-shop-header, .theme-shop-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.home-shop-heading, .shop-heading {
	font-family: var(--font-body); font-weight: 600; font-size: 0.75rem;
	letter-spacing: 0.28em; text-transform: uppercase;
}
@media (min-width: 640px) { .home-shop-heading, .shop-heading { font-size: 0.875rem; } }
.home-shop-count, .theme-shop-count { font-size: 0.75rem; color: var(--color-muted-foreground); }

.home-shop-controls, .theme-shop-controls {
	display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; align-items: end;
}
@media (min-width: 1024px) { .home-shop-controls, .theme-shop-controls { grid-template-columns: 1fr auto; gap: 2.5rem; } }
.home-shop-search, .theme-shop-search { position: relative; max-width: 28rem; width: 100%; }
.home-shop-search svg, .theme-shop-search svg { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.home-shop-search input, .theme-shop-search input {
	width: 100%; height: 2.75rem; padding: 0 0.75rem 0 2.5rem;
	background: var(--color-background); border: 1px solid var(--color-border);
	font-size: 0.875rem;
}
.home-shop-search input::placeholder, .theme-shop-search input::placeholder { color: var(--color-muted-foreground); }
.home-shop-search input:focus, .theme-shop-search input:focus { outline: none; border-color: var(--color-foreground); }

.home-price-filter, .theme-price-filter { width: 100%; }
@media (min-width: 1024px) { .home-price-filter, .theme-price-filter { width: 18rem; } }
.home-price-filter__row, .theme-price-filter__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.home-price-filter__values, .theme-price-filter__values { font-size: 0.75rem; }

.price-range-wrapper { position: relative; height: 1.5rem; }
.range-track-bg, .range-track-fill { position: absolute; height: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.range-track-bg { left: 0; right: 0; background: var(--color-border); }
.range-track-fill { background: var(--color-primary); left: 0; width: 100%; }
.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: 999px;
	background: var(--color-background); border: 2px solid var(--color-primary); cursor: pointer;
}
.range-input::-moz-range-thumb {
	pointer-events: auto; width: 1.1rem; height: 1.1rem; border-radius: 999px;
	background: var(--color-background); border: 2px solid var(--color-primary); cursor: pointer;
}
.range-input::-moz-range-track { background: transparent; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.home-category-chips, .theme-category-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.theme-cat-filter {
	padding: 0 1rem; height: 2.25rem; display: inline-flex; align-items: center;
	font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
	border: 1px solid var(--color-border); background: var(--color-background); color: var(--color-foreground);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.theme-cat-filter:hover { border-color: var(--color-accent); color: var(--color-accent); }
.theme-cat-filter.is-active { background: var(--color-accent); color: var(--color-accent-foreground); border-color: var(--color-accent); }

.theme-shop-empty { padding: 4rem 0; text-align: center; font-size: 0.875rem; color: var(--color-muted-foreground); }

/* ---------------------------------------------------------------------
   Product banner
   --------------------------------------------------------------------- */

.product-banner-section { position: relative; width: 100%; min-height: 60vh; display: flex; align-items: flex-end; overflow: hidden; }
@media (min-width: 1024px) { .product-banner-section { min-height: 70vh; align-items: center; } }
.product-banner__gradient {
	position: absolute; inset: 0;
	background: linear-gradient(to top, color-mix(in srgb, var(--color-foreground) 80%, transparent), color-mix(in srgb, var(--color-foreground) 40%, transparent), transparent),
	            color-mix(in srgb, var(--color-accent) 10%, transparent);
}
@media (min-width: 1024px) {
	.product-banner__gradient { background: linear-gradient(to right, color-mix(in srgb, var(--color-foreground) 80%, transparent), color-mix(in srgb, var(--color-foreground) 35%, transparent), transparent), color-mix(in srgb, var(--color-accent) 10%, transparent); }
}
.product-banner__content-wrap { position: relative; padding-block: 3.5rem; }
@media (min-width: 1024px) { .product-banner__content-wrap { padding-block: 5rem; } }
.product-banner__content { max-width: 36rem; }
.product-banner__eyebrow { display: block; font-size: 0.6875rem; letter-spacing: 0.36em; text-transform: uppercase; color: color-mix(in srgb, var(--color-background) 80%, transparent); }
.product-banner__title { font-family: var(--font-display); font-style: italic; font-size: 1.875rem; color: var(--color-background); line-height: 1.2; margin-top: 0.75rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .product-banner__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .product-banner__title { font-size: 3rem; } }
.product-banner__desc { color: color-mix(in srgb, var(--color-background) 85%, transparent); line-height: 1.7; margin-bottom: 1.5rem; }
.product-banner__price { font-size: 1.125rem; color: var(--color-background); margin-bottom: 2rem; }

/* ---------------------------------------------------------------------
   Section headings (per-section scale — Section 2.2)
   --------------------------------------------------------------------- */

.section-heading { font-family: var(--font-display); font-style: italic; line-height: 1.15; }
.brand-heading { font-size: 2.25rem; margin-top: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .brand-heading { font-size: 3rem; } }
.testimonials-heading, .faq-heading, .contact-heading { font-size: 2.25rem; margin-top: 0.75rem; }
@media (min-width: 768px) { .testimonials-heading, .faq-heading, .contact-heading { font-size: 3rem; } }

/* ---------------------------------------------------------------------
   Brand / Meet the Founder
   --------------------------------------------------------------------- */

.brand-section { background: color-mix(in srgb, var(--color-secondary) 40%, transparent); padding: 5rem 0; }
@media (min-width: 1024px) { .brand-section { padding: 7rem 0; } }
.brand-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .brand-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.brand-image-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.brand-eyebrow { display: block; font-size: 0.625rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--color-accent); }
.brand-para { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; margin-bottom: 1rem; }
/* Contact-open CTAs (e.g. Get In Touch) — keep hero button colors, not nav link hover */
button.theme-contact-trigger.btn-hero-primary {
	background-color: var(--color-foreground);
	color: var(--color-background);
	border: 1px solid var(--color-accent);
}
button.theme-contact-trigger.btn-hero-primary:hover,
button.theme-contact-trigger.btn-hero-primary:focus-visible {
	background-color: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-background);
	opacity: 1;
}

/* ---------------------------------------------------------------------
   Testimonials
   --------------------------------------------------------------------- */

.testimonials-section { background: color-mix(in srgb, var(--color-secondary) 40%, transparent); padding: 5rem 0; }
@media (min-width: 1024px) { .testimonials-section { padding: 7rem 0; } }
.testimonials-header { text-align: center; margin-bottom: 3rem; }
@media (min-width: 1024px) { .testimonials-header { margin-bottom: 4rem; } }
.testimonials-eyebrow { display: block; font-size: 0.6875rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--color-accent); font-weight: 600; }
.testimonial-featured { max-width: 48rem; margin: 0 auto 4rem; text-align: center; }
@media (min-width: 1024px) { .testimonial-featured { margin-bottom: 5rem; } }
.testimonial-quote-icon {
	display: block;
	width: 2.5rem;
	height: 2.5rem;
	color: var(--color-accent);
	margin: 0 auto 2rem;
}
.testimonial-featured__quote {
	margin: 0;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.5rem;
	line-height: 1.375;
	color: var(--color-foreground);
}
@media (min-width: 768px) { .testimonial-featured__quote { font-size: 1.875rem; } }
@media (min-width: 1024px) { .testimonial-featured__quote { font-size: 2.25rem; } }
.testimonial-featured__caption { margin-top: 2rem; }
.testimonial-stars {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	color: var(--color-accent);
	margin-bottom: 0.75rem;
}
.testimonial-stars--sm {
	justify-content: flex-start;
	margin-bottom: 1.25rem;
}
.testimonial-star-icon {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}
.testimonial-star-icon--sm {
	width: 0.875rem;
	height: 0.875rem;
}
.testimonial-featured__name {
	font-family: var(--font-display);
	font-size: 1.125rem;
	color: var(--color-foreground);
}
.testimonial-featured__place { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.testimonials-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	background: var(--color-border);
	border: 1px solid var(--color-border);
	overflow: hidden;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.testimonial-card {
	margin: 0;
	min-height: 100%;
	background: var(--color-background);
	padding: 2rem;
	display: flex;
	flex-direction: column;
	transition: background-color 0.3s ease;
}
@media (min-width: 1024px) { .testimonial-card { padding: 2.5rem; } }
.testimonial-card:hover { background: color-mix(in srgb, var(--color-secondary) 50%, transparent); }
.testimonial-card__quote {
	margin: 0 0 1.5rem;
	font-size: 0.875rem;
	line-height: 1.625;
	color: color-mix(in srgb, var(--color-foreground) 85%, transparent);
}
.testimonial-card__caption { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--color-border); }
.testimonial-card__name {
	font-family: var(--font-display);
	font-size: 1.125rem;
	color: var(--color-foreground);
}
.testimonial-card__place {
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin-top: 0.25rem;
}

/* ---------------------------------------------------------------------
   Photo divider
   --------------------------------------------------------------------- */

.photo-divider { position: relative; width: 100%; height: 12rem; overflow: hidden; }
@media (min-width: 768px) { .photo-divider { height: 18rem; } }
@media (min-width: 1024px) { .photo-divider { height: 24rem; } }

/* ---------------------------------------------------------------------
   FAQ
   --------------------------------------------------------------------- */

.faq-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
@media (min-width: 1024px) { .faq-section { padding: 7rem 0; } }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.faq-intro-col { position: sticky; top: 8rem; }
@media (max-width: 1023px) { .faq-intro-col { position: static; } }
.faq-eyebrow { display: block; font-size: 0.625rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--color-muted-foreground); }
.faq-intro-text { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; margin-top: 1.5rem; max-width: 26rem; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item__question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; text-align: left; padding: 1.25rem 0; }
.faq-item__question span { font-size: 0.875rem; transition: color 0.3s ease; }
@media (min-width: 768px) { .faq-item__question span { font-size: 1rem; } }
.faq-item__question:hover span { color: var(--color-accent); }
.faq-icon-plus, .faq-icon-minus { flex-shrink: 0; }
.faq-icon-minus { display: none; }
.faq-item.is-open .faq-icon-plus { display: none; }
.faq-item.is-open .faq-icon-minus { display: block; }
.faq-item__answer { height: 0; overflow: hidden; transition: height 0.3s var(--transition-smooth); }
.faq-item__answer p { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.7; padding-bottom: 1.5rem; padding-right: 2.5rem; }

/* ---------------------------------------------------------------------
   Marquee
   --------------------------------------------------------------------- */

.marquee-section { background: var(--color-foreground); padding: 1.25rem 0; overflow: hidden; }
@media (min-width: 1024px) { .marquee-section { padding: 1.5rem 0; } }
.marquee-flex { display: flex; width: max-content; }
.marquee-group { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; }
.marquee-item { display: inline-flex; align-items: center; gap: 2rem; flex-shrink: 0; white-space: nowrap; }
.marquee-item span:first-child { font-size: 0.6875rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-background); }
@media (min-width: 768px) { .marquee-item span:first-child { font-size: 0.75rem; } }
.marquee-dot { width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--color-accent-bright); display: inline-block; }

/* ---------------------------------------------------------------------
   Contact
   --------------------------------------------------------------------- */

.contact-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
@media (min-width: 1024px) { .contact-section { padding: 7rem 0; } }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.contact-eyebrow { display: block; font-size: 0.625rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--color-muted-foreground); }
.contact-desc { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; margin: 1.5rem 0 2rem; max-width: 28rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; word-break: break-all; transition: color 0.3s ease; }
.contact-link:hover { color: var(--color-accent); }
.contact-form-col { background: color-mix(in srgb, var(--color-secondary) 40%, transparent); padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1024px) { .contact-form-col { padding: 3rem; } }
.contact-form-eyebrow { display: block; font-size: 0.625rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }
.contact-form-heading { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.2; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .contact-form-heading { font-size: 1.875rem; } }
.contact-form-desc { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.7; margin-bottom: 2rem; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */

.site-footer { background: var(--color-foreground); color: var(--color-background); }
.site-footer__inner { padding-block: 4rem 2rem; }
@media (min-width: 1024px) { .site-footer__inner { padding-block: 5rem 2.5rem; } }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(4,1fr); gap: 3rem; } }
.site-footer__brand .site-logo-img { height: 4.2rem !important; }
.site-footer__desc { margin-top: 1.5rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-background) 70%, transparent); max-width: 20rem; line-height: 1.7; }
.site-footer__heading {
	font-family: var(--font-body);
	font-size: 0.6875rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--color-accent-bright);
	margin-bottom: 1.25rem;
}
.site-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: color-mix(in srgb, var(--color-background) 70%, transparent);
}
.site-footer__col a,
.site-footer__col button.theme-footer-link {
	font-family: inherit;
	font-size: inherit;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	color: inherit;
	transition: color 0.3s ease;
}
.site-footer__col button.theme-footer-link {
	display: inline;
	appearance: none;
	-webkit-appearance: none;
	padding: 0;
	margin: 0;
	min-width: 0;
	vertical-align: baseline;
}
.site-footer__col a:hover,
.site-footer__col button.theme-footer-link:hover { color: var(--color-accent-bright); }
.site-footer__contact-list li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.site-footer__contact-list li:first-child { align-items: flex-start; }
.site-footer__contact-icon {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	stroke: currentColor;
	fill: none;
	color: inherit;
}
.site-footer__contact-list li:first-child .site-footer__contact-icon { margin-top: 0.125rem; }
.site-footer__bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--color-background) 15%, transparent); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.site-footer__copy, .site-footer__built { font-size: 0.625rem; letter-spacing: 0.28em; text-transform: uppercase; color: color-mix(in srgb, var(--color-background) 60%, transparent); }
.site-footer__built a { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 4px; }
.site-footer__built a:hover { color: var(--color-accent-bright); }

/* ---------------------------------------------------------------------
   Side cart drawer
   --------------------------------------------------------------------- */

#theme-cart-overlay { position: fixed; inset: 0; background: color-mix(in srgb, var(--color-foreground) 30%, transparent); z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }
#theme-cart-drawer {
	position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 32rem;
	background: var(--color-background); z-index: 101; box-shadow: var(--shadow-elevated);
	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: 2rem 2rem 1.25rem; border-bottom: 1px solid var(--color-border); flex-shrink: 0; }
.theme-cart-drawer__title { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; }
.theme-cart-drawer__close { padding: 0.25rem; opacity: 0.7; }
.theme-cart-drawer__close:hover { opacity: 1; }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; }
.theme-cart-drawer__empty svg { color: var(--color-muted-foreground); margin-bottom: 1.25rem; }
.theme-cart-drawer__empty p { color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem 2rem; display: flex; flex-direction: column; gap: 2rem; }
.theme-cart-item { display: flex; gap: 1.25rem; }
.theme-cart-item__image { width: 6rem; height: 8rem; flex-shrink: 0; overflow: hidden; background: var(--color-secondary); display: block; }
.theme-cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.theme-cart-item__name { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme-cart-item__name:hover { opacity: 0.7; }
.theme-cart-item__variation { font-size: 0.75rem; color: var(--color-muted-foreground); font-style: italic; margin-top: 0.375rem; }
.theme-cart-item-meta {
	list-style: none; margin: 0.375rem 0 0; padding: 0;
	display: flex; flex-direction: column; gap: 0.25rem;
}
.theme-cart-item-meta__row {
	display: flex; align-items: center; gap: 0.5rem;
	font-size: 0.75rem; color: var(--color-muted-foreground); font-style: italic;
}
.theme-cart-item-meta-swatch {
	width: 0.75rem; height: 0.75rem; border-radius: 999px; flex-shrink: 0;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
}
.theme-cart-item__price { font-size: 0.875rem; margin-top: 0.375rem; }
.theme-cart-item__controls { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; }
.theme-cart-qty { display: flex; align-items: center; border: 1px solid var(--color-border); }
.theme-cart-qty__btn { padding: 0.375rem 0.625rem; transition: background-color 0.2s ease; }
.theme-cart-qty__btn:hover { background: var(--color-secondary); }
.theme-cart-qty__value { padding: 0 0.75rem; font-size: 0.875rem; min-width: 28px; text-align: center; }
.theme-cart-item__remove { font-size: 0.75rem; color: var(--color-muted-foreground); text-decoration: underline; text-underline-offset: 4px; }
.theme-cart-item__remove:hover { color: var(--color-foreground); }
.theme-cart-drawer__footer { padding: 1.5rem 2rem; border-top: 1px solid var(--color-border); flex-shrink: 0; display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal-row { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--font-display); font-size: 1.25rem; }
.theme-cart-drawer__tax-note { font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-drawer__checkout-btn { width: 100%; }

/* ---------------------------------------------------------------------
   404
   --------------------------------------------------------------------- */

.theme-404__inner { padding-block: 8rem; text-align: center; }
.theme-404__code { font-family: var(--font-display); font-size: 3rem; margin-bottom: 1rem; }
.theme-404__title { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }

/* ---------------------------------------------------------------------
   Page shell
   --------------------------------------------------------------------- */

body.theme-no-hero .site-main-wrap { padding-top: var(--header-height); }
body:not(.theme-no-hero) .site-main-wrap { padding-top: 0; }
/* PDP: sticky header is in document flow — avoid double offset; spacing matches React main pt-10 / lg:pt-14 */
body.single-product.theme-no-hero .site-main-wrap { padding-top: 0; }
.theme-page-wrap { padding-block: 3rem 5rem; }
.page-title { font-family: var(--font-display); font-size: 2.25rem; margin-bottom: 2rem; }

/* =========================================================================
   WooCommerce overrides (Section 14)
   ========================================================================= */

.woocommerce ul.products, .woocommerce-page ul.products { margin: 0; padding: 0; }

/* Single product */
.single-product-main { padding: 2.5rem 0 3.5rem; }
@media (min-width: 1024px) { .single-product-main { padding: 3.5rem 0 5rem; } }
.theme-product-layout { display: grid; grid-template-columns: 1fr; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 1fr 440px; align-items: start; } }
@media (min-width: 1280px) { .theme-product-layout { grid-template-columns: 1fr 500px; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-gallery { position: relative; }
@media (min-width: 1024px) { .theme-product-gallery { position: sticky; top: 8rem; } }
.theme-product-gallery__flex { display: flex; }
.theme-product-thumbnails { display: none; flex-direction: column; gap: 0.75rem; padding: 1rem; flex-wrap: wrap; max-width: 100%; }
@media (min-width: 768px) { .theme-product-thumbnails:not(.theme-product-thumbnails--mobile) { display: flex; } }
.theme-product-thumbnails--mobile { display: flex; flex-direction: row; overflow-x: auto; padding: 1rem; }
@media (min-width: 768px) { .theme-product-thumbnails--mobile { display: none; } }
.theme-product-thumb { width: 3.5rem; height: 3.5rem; flex-shrink: 0; overflow: hidden; border: 1px solid transparent; border-radius: 6px; opacity: 0.6; transition: opacity 0.2s ease, border-color 0.2s ease; }
@media (min-width: 1024px) { .theme-product-thumb { width: 4rem; height: 4rem; } }
.theme-product-thumb.is-active { border-color: var(--color-accent); opacity: 1; }
.theme-product-thumb:hover { opacity: 1; }
.theme-product-main-image-wrap {
	position: relative; flex: 1; min-height: 60vh; display: flex; align-items: center; justify-content: center;
	aspect-ratio: 4/5; overflow: hidden;
}
@media (min-width: 768px) { .theme-product-main-image-wrap { min-height: 78vh; } }
@media (min-width: 1024px) { .theme-product-main-image-wrap { min-height: 88vh; } }
.theme-image-zoom-hint {
	position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 2;
	display: flex; align-items: center; gap: 0.375rem; background: color-mix(in srgb, var(--color-foreground) 70%, transparent);
	color: var(--color-background); padding: 0.375rem 0.75rem; font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.theme-product-info { padding: 2.5rem 1.5rem; }
@media (min-width: 768px) { .theme-product-info { padding: 2.5rem 2.5rem; } }
@media (min-width: 1024px) { .theme-product-info { padding: 4rem 3rem; } }
.theme-product-breadcrumb { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-product-breadcrumb a:hover { color: var(--color-foreground); }
.theme-product-breadcrumb span { margin: 0 0.5rem; }
.product-title {
	font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem;
	letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.5; overflow-wrap: break-word; word-break: break-word;
}
@media (min-width: 768px) { .product-title { font-size: 1rem; } }
.theme-product-sku { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-muted-foreground); margin-top: 0.75rem; }
.theme-product-divider { height: 1px; background: var(--color-border); margin: 1.75rem 0; }
.theme-product-price { font-size: 1.125rem; }
.theme-product-price .woocommerce-Price-amount { font-size: inherit; }
.theme-stock-badge--out { margin-top: 0.75rem; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: #b3261e; }
.theme-note-box { margin-top: 1.75rem; background: color-mix(in srgb, var(--color-secondary) 70%, transparent); padding: 1rem 1.25rem; font-size: 0.8125rem; line-height: 1.6; border-radius: var(--card-radius); }
.theme-attr-group { margin-top: 1.75rem; }
.theme-attr-label {
	display: block; font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase;
	color: var(--color-muted-foreground); margin-bottom: 0.75rem;
}
.theme-attr-select-hidden { display: none !important; }
.theme-attributes select {
	width: 100%; max-width: 100%; padding: 0.75rem 1rem;
	border: 1px solid var(--color-border); border-radius: var(--radius);
	background: var(--color-background); color: var(--color-foreground);
	font-family: var(--font-body); font-size: 0.875rem;
}
.theme-attributes select:focus { outline: none; border-color: var(--color-primary); }
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-pills--color { gap: 0.75rem; }
.theme-attr-pill {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.5rem 0.875rem; border: 1px solid var(--color-border);
	border-radius: var(--radius); background: transparent; color: var(--color-foreground);
	font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.06em;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.theme-attr-pill:hover { border-color: var(--color-primary); }
.theme-attr-pill__swatch {
	width: 1rem; height: 1rem; border-radius: 999px; flex-shrink: 0;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 12%, transparent);
}
.theme-attr-pill--color.is-selected,
.theme-attr-pill--color[aria-selected="true"] {
	border-color: var(--color-primary);
	background: color-mix(in srgb, var(--color-primary) 5%, transparent);
	color: var(--color-foreground);
}
.theme-attr-pill--license.is-selected,
.theme-attr-pill--license[aria-selected="true"] {
	background: var(--color-foreground);
	border-color: var(--color-foreground);
	color: var(--color-background);
}
.theme-add-to-cart-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.theme-quantity-wrapper { display: flex; align-items: center; border: 1px solid var(--color-border); }
.theme-qty-minus, .theme-qty-plus { padding: 0 1rem; height: var(--btn-height); transition: background-color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input { width: 3rem; text-align: center; border: none; background: transparent; -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }
.theme-product-description { margin-top: 3rem; }
.theme-product-description__long { font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.55; color: color-mix(in srgb, var(--color-foreground) 90%, transparent); }
.theme-product-description__long p { margin-bottom: 1em; }
.theme-details-heading, .theme-details-list h2 { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 1.25rem; }
.theme-details-heading { margin-top: 2rem; }
.theme-details-list { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; overflow-wrap: break-word; word-break: break-word; }
.theme-details-list p { margin-bottom: 0.5em; }

.theme-related-products { padding: 5rem 0; border-top: 1px solid var(--color-border); margin-top: 2rem; }
.theme-related-products__header { margin-bottom: 2.5rem; }
.theme-related-heading { font-family: var(--font-display); font-size: 1.875rem; }
@media (min-width: 768px) { .theme-related-heading { font-size: 2.25rem; } }

/* Variations table */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; font-style: normal; }
.single-product .variations tbody td.value { padding-top: 0; }
/* Add to cart button overrides (Section 11.4.1) */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }

.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* Notices — scoped, not global (Section 14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	background: var(--color-secondary); border: 1px solid var(--color-border); border-radius: var(--card-radius);
	padding: 1rem 1.25rem; font-size: 0.875rem; list-style: none; margin: 0 0 1.5rem;
}
.woocommerce-error { border-color: #b3261e; }

/* Archive-only shop grid page (category/tag pages using archive-product.php) */
.theme-shop-archive { padding-top: 1rem; }

/* ---------------------------------------------------------------------
   Checkout / Cart / My Account / Thank You (Section 13)
   Dual selectors: body.woocommerce-checkout + .entry-content .wc-block-checkout
   --------------------------------------------------------------------- */

body.woocommerce-checkout .theme-checkout-main {
	padding-top: 0;
	padding-bottom: 0;
}
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-top: 1rem;
	padding-bottom: 4rem;
}

.theme-checkout-shell {
	padding-block: 0.5rem 4rem;
	max-width: none;
	width: 100%;
}
body.woocommerce-checkout .theme-checkout-main > .container-wide,
body.woocommerce-checkout .theme-checkout-shell,
body.woocommerce-checkout .entry-content,
.entry-content:has(.wc-block-checkout) {
	max-width: none;
	width: 100%;
	margin-top: 0;
	padding-top: 0;
}

.theme-checkout-header {
	max-width: var(--checkout-max-width);
	width: 100%;
	margin-inline: auto;
	margin-bottom: 0;
	box-sizing: border-box;
	padding-inline: 0; /* shell already uses .container-wide padding — match .entry-content / .wc-block-checkout */
	text-align: left;
}
.checkout-continue-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	transition: color 0.2s ease;
}
.checkout-continue-link:hover { color: var(--color-foreground); }
.theme-checkout-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 2.5vw, 2.25rem);
	font-weight: 700;
}
.theme-checkout-intro {
	margin: 0.75rem 0 0;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
}

body.woocommerce-checkout .theme-checkout-main .entry-content > .wc-block-checkout,
body.woocommerce-checkout .theme-checkout-main .entry-content > .wp-block-woocommerce-checkout,
.entry-content > .wc-block-checkout:first-child,
.entry-content > .wp-block-woocommerce-checkout:first-child {
	margin-top: 0;
}

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout {
	max-width: var(--checkout-max-width);
	width: 100%;
	min-width: 0;
	margin-inline: auto;
	margin-top: 0;
	padding-top: 0;
	box-sizing: border-box;
	display: block;
}

body.woocommerce-checkout .wc-block-checkout.alignwide,
.entry-content .wc-block-checkout.alignwide {
	margin-top: 0;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-main,
.entry-content .wc-block-checkout__main,
.entry-content .wc-block-components-main {
	margin-top: 0;
	padding-top: 0;
	min-width: 0;
}

body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
	margin-top: 0;
	padding-top: 0;
}

body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices:empty,
.entry-content .wc-block-checkout > .wc-block-components-notices:empty {
	display: none;
	margin: 0;
	padding: 0;
}

body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
	max-width: var(--checkout-max-width);
	width: 100%;
	margin-inline: auto;
	margin-top: 0;
	padding-top: 0;
	margin-bottom: var(--checkout-gap);
	box-sizing: border-box;
}

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,
.entry-content .wc-block-checkout .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-select select,
.entry-content .wc-block-checkout .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-background);
	color: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
.entry-content .wc-block-checkout .wc-block-components-text-input input:focus,
.entry-content .wc-block-checkout .wc-block-components-select select:focus {
	outline: none;
	border-color: var(--color-primary);
}

/* Grid ONLY on the inner sidebar-layout wrapper — never on the block root */
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
		display: grid !important;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: var(--checkout-gap);
		align-items: start;
		flex-direction: unset;
		flex-wrap: nowrap;
		margin: 0;
	}

	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
		width: auto !important;
		max-width: 100%;
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
		box-sizing: border-box;
	}

	/* Fallback if main/sidebar are direct children of the root checkout block */
	body.woocommerce-checkout .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar),
	.entry-content .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar) {
		display: grid;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: var(--checkout-gap);
		align-items: start;
	}
	body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices,
	.entry-content .wc-block-checkout > .wc-block-components-notices {
		grid-column: 1 / -1;
	}
}

/* Sidebar wrappers transparent — card only on order summary */
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar,
.entry-content .wp-block-woocommerce-checkout-totals-block {
	background: transparent;
	padding: 0;
	border-radius: 0;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	background-color: color-mix(in srgb, var(--color-secondary) 70%, transparent);
	border-radius: var(--card-radius);
	padding: 2rem;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-components-checkout-place-order-button {
	background: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	font-size: var(--btn-font-size) !important;
}

body.woocommerce-checkout .wc-block-checkout-empty,
.entry-content .wc-block-checkout-empty {
	margin-inline: auto;
	max-width: 36rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Thank you */
body.theme-thankyou-page { overflow-x: clip; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-family: var(--font-display); font-size: 1.75rem; padding: 0 0 1rem 0; }
body.theme-thankyou-page .woocommerce-order-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; }

/* ---------------------------------------------------------------------
   Customizer controls (front-end guard classes)
   --------------------------------------------------------------------- */

body.is-customizer .theme-carousel-track .theme-product-card-wrap { opacity: 1; transform: none; }

@media (max-width: 767px) {
	.header-icon-btn.header-search-btn.desktop-only { display: none !important; }
}
