/* =========================================================================
   Indy Cool Suppliers — theme stylesheet
   Color tokens (--color-*) are injected from inc/setup.php using HSL values
   that match src/index.css :root. Customizer hex defaults map to those tokens
   via theme_get_color_hsl_defaults() in inc/helpers.php.
   ========================================================================= */

:root {
	--font-display: 'Fraunces', serif;
	--font-body: 'Inter', sans-serif;
	--radius: 0.75rem;
	--shadow-soft: 0 4px 20px -4px hsl(140 30% 12% / 0.08);
	--shadow-elevated: 0 8px 40px -8px hsl(140 30% 12% / 0.16);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
	--header-height: 88px;
	--btn-radius: 9999px;
	--btn-height: 44px;
	--btn-padding: 0.75rem 2rem;
	--btn-font-size: 12px;
	--btn-font-weight: 600;
	--btn-letter-spacing: 0.22em;
	--btn-text-transform: uppercase;
}

/* ---------------------------------------------------------------- */
/* Reset / base                                                        */
/* ---------------------------------------------------------------- */
* { border-color: var(--color-border); box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
html { scroll-behavior: auto; }
body {
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	margin: 0;
	line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	letter-spacing: -0.015em;
	font-weight: inherit;
	font-size: inherit;
	margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; background: none; border: none; cursor: pointer; padding: 0; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
img.cover-img,
.hero-bg-img,
img.theme-hero__video,
video.theme-hero__video,
img.theme-product-card__image,
img.theme-category-tile__image,
img.theme-owner__photo,
img.theme-cta__bg-image,
img.theme-product-gallery__image {
	max-width: none;
}
.cover-img,
video.theme-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.container-wide { width: 100%; max-width: 80rem; margin: 0 auto; padding-inline: 1.5rem; min-width: 0; box-sizing: border-box; }
@media (min-width: 1024px) { .container-wide { padding-inline: 2rem; } }

.scroll-mt-24 { scroll-margin-top: 6rem; }

/* ---------------------------------------------------------------- */
/* Scroll reveal                                                      */
/* ---------------------------------------------------------------- */
.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 { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
	.reveal-item { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.theme-kicker {
	display: block;
	font-size: 12px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-family: var(--font-body);
	margin-bottom: 0.75rem;
}
.theme-kicker--primary { color: var(--color-primary); }
.theme-kicker--teal { color: var(--color-teal); }
.theme-kicker--on-dark { color: rgba(255,255,255,0.85); font-weight: 600; }

.theme-section-heading--center { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }

.theme-underline-link { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- */
/* Buttons                                                             */
/* ---------------------------------------------------------------- */
.theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: var(--btn-radius);
	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);
	transition: all 0.3s ease;
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
}
.theme-btn:hover { transform: scale(1.02); }
.theme-btn--primary { background: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }
.theme-btn--primary:hover { background: var(--color-background); color: var(--color-primary); }
.theme-btn--outline { background: transparent; color: var(--color-foreground); border-color: var(--color-border); }
.theme-btn--outline:hover { border-color: var(--color-foreground); background: var(--color-foreground); color: var(--color-background); }
.theme-btn--outline-primary { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.theme-btn--outline-primary:hover { background: var(--color-primary); color: var(--color-primary-foreground); }
.theme-btn--full { width: 100%; }
.theme-btn--sm { height: 36px; font-size: 11px; padding: 0.5rem 1.25rem; }
.theme-btn--lg { height: 48px; padding: 0.875rem 2.5rem; }
.theme-btn--hero-primary,
.theme-btn--hero-outline,
.theme-btn--add-to-cart,
.theme-btn--cta-primary,
.theme-btn--cta-outline { text-transform: uppercase; }

.theme-btn--hero-primary { background: color-mix(in srgb, var(--color-background) 95%, transparent); color: var(--color-foreground); }
.theme-btn--hero-primary:hover { background: var(--color-background); }
.theme-btn--hero-outline { background: transparent; color: var(--color-button-text); border-color: color-mix(in srgb, var(--color-button-text) 80%, transparent); }
.theme-btn--hero-outline:hover { background: color-mix(in srgb, var(--color-button-text) 15%, transparent); border-color: var(--color-button-text); }

.theme-btn--cta-primary { background: var(--color-background); color: var(--color-foreground); border-color: var(--color-foreground); }
.theme-btn--cta-primary:hover { background: var(--color-foreground); color: var(--color-background); }
.theme-btn--cta-outline { background: transparent; color: var(--color-button-text); border-color: color-mix(in srgb, var(--color-button-text) 70%, transparent); }
.theme-btn--cta-outline:hover { background: color-mix(in srgb, var(--color-button-text) 10%, transparent); border-color: var(--color-button-text); }

.theme-btn--add-to-cart {
	width: 100%;
	background: var(--color-foreground);
	color: var(--color-background);
	border-radius: 9999px;
	padding: 1rem;
	font-size: 12px;
	letter-spacing: 0.25em;
	font-weight: 500;
}
.theme-btn--add-to-cart:hover { background: color-mix(in srgb, var(--color-foreground) 90%, transparent); }
.theme-btn--add-to-cart:disabled,
.theme-btn--add-to-cart.is-disabled { opacity: 0.6; cursor: not-allowed; }

.theme-nav-link a,
.theme-connect-link,
.theme-category-tile,
.theme-pill,
.theme-faq-tab,
.theme-faq-item__question,
.theme-service-card__cta,
.theme-link-underline,
.theme-product-card,
.theme-cart-toggle,
.theme-option-pill,
.theme-modal__contact-link,
.theme-checkout__back-link,
label[for] {
	cursor: pointer;
}

.theme-link-underline {
	position: relative;
	display: inline-block;
	font-family: var(--font-display);
	font-size: 12px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-weight: 500;
}
.theme-link-underline::after {
	content: '';
	position: absolute;
	bottom: 0; left: 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); }

/* ---------------------------------------------------------------- */
/* Announcement bar                                                    */
/* ---------------------------------------------------------------- */
.theme-announcement-bar { position: relative; background: var(--color-primary); color: var(--color-primary-foreground); }
.theme-announcement-bar__inner { padding-block: 0.5rem; text-align: center; }
.theme-announcement-bar__text { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
.theme-announcement-bar__close {
	position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
	opacity: 0.7; padding: 0.25rem;
}
.theme-announcement-bar__close:hover { opacity: 1; }

/* ---------------------------------------------------------------- */
/* Header                                                              */
/* ---------------------------------------------------------------- */
body.admin-bar .site-header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

.site-header {
	position: sticky; top: 0; left: 0; right: 0; z-index: 50;
	border-top: 2px solid color-mix(in srgb, var(--color-accent) 40%, transparent);
	border-bottom: 1px solid transparent;
	background: var(--color-background);
	transition: all 0.3s ease;
}
.site-header.is-solid,
.site-header.has-open-menu {
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(4px);
	border-bottom-color: color-mix(in srgb, var(--color-border) 30%, transparent);
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.site-header__nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
	min-width: 0;
}
@media (min-width: 768px) { .site-header__nav { height: 96px; } }

/* Desktop nav columns (lg+) — Lovable: hidden lg:flex flex-1 gap-10 */
.site-header__links--left {
	display: none;
	flex: 1;
	align-items: center;
	gap: 2.5rem;
	min-width: 0;
}
.site-header__links--right {
	display: flex;
	flex: 1;
	justify-content: flex-end;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}
@media (min-width: 768px) { .site-header__links--right { gap: 0.75rem; } }
@media (min-width: 1024px) {
	.site-header__links--left { display: flex; }
	.site-header__links--right { gap: 1.5rem; }
}

.site-header__links .theme-nav-list { display: none; }
@media (min-width: 1024px) {
	.site-header__links .theme-nav-list { display: flex; align-items: center; gap: 2.5rem; }
}

.theme-nav-link,
.theme-nav-list a.theme-nav-link {
	font-size: 13px;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
	transition: color 0.2s;
	text-transform: none;
	letter-spacing: normal;
	font-weight: 400;
}
.theme-nav-list a.theme-nav-link:hover { color: var(--color-foreground); }

.site-header__mobile-toggle {
	display: flex;
	padding: 0.5rem;
	margin-left: -0.5rem;
	flex-shrink: 0;
	transition: opacity 0.2s;
}
.site-header__mobile-toggle:hover { opacity: 0.6; }
@media (min-width: 1024px) { .site-header__mobile-toggle { display: none; } }
.site-header__mobile-toggle .icon-close { display: none; }
.site-header__mobile-toggle.is-open .icon-menu { display: none; }
.site-header__mobile-toggle.is-open .icon-close { display: block; }

.site-header__brand {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 0.75rem;
	max-width: calc(100% - 7rem);
	min-width: 0;
}
.site-header__brand-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.site-logo-img {
	height: 3rem !important;
	width: auto !important;
	max-width: 100%;
	display: block;
	object-fit: contain;
}
@media (min-width: 768px) {
	.site-logo-img { height: var(--logo-height, 3.5rem) !important; }
}
.site-logo-text { font-family: var(--font-display); font-size: 1.125rem; }
.site-header__brand-name { display: none; font-family: var(--font-display); font-size: 1.125rem; letter-spacing: -0.015em; }
@media (min-width: 768px) { .site-header__brand-name { display: inline; } }

.theme-cart-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	border-radius: 9999px;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 30%, transparent);
	font-size: 13px;
	transition: border-color 0.2s;
}
.theme-cart-toggle:hover { border-color: var(--color-foreground); }
.theme-cart-count { line-height: 1; }

/* Mobile menu panel — Lovable: lg:hidden border-t py-4 flex-col gap-4 */
.site-header__mobile-menu {
	border-top: 1px solid color-mix(in srgb, var(--color-border) 30%, transparent);
	padding-block: 1rem;
}
.site-header__mobile-menu[hidden] { display: none !important; }
.site-header__mobile-menu.is-open { display: block; animation: fadeIn 0.35s var(--transition-smooth) forwards; }
.site-header__mobile-nav-inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1rem;
}
.site-header__mobile-link {
	display: block;
	width: 100%;
	text-align: left;
	font-size: 0.875rem;
	font-family: var(--font-body);
	padding: 0.5rem 0;
	color: var(--color-foreground);
	transition: color 0.2s;
}
.site-header__mobile-link:hover { color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }

/* ---------------------------------------------------------------- */
/* Footer                                                              */
/* ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid color-mix(in srgb, var(--color-border) 30%, transparent); background: var(--color-secondary); }
.site-footer__top { padding-top: 4rem; padding-bottom: 1rem; }
@media (min-width: 1024px) { .site-footer__top { padding-top: 5rem; } }
.site-footer__brand-block { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 30%, transparent); }
@media (min-width: 640px) { .site-footer__brand-block { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer__brand { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.site-logo-img--footer { height: 80px !important; }
@media (min-width: 640px) { .site-logo-img--footer { height: 96px !important; } }
.site-footer__brand-name { font-family: var(--font-display); font-size: 1.5rem; display: none; }
@media (min-width: 640px) { .site-footer__brand-name { display: inline; } }
.site-footer__tagline-block { max-width: 36rem; }
@media (min-width: 640px) { .site-footer__tagline-block { text-align: right; } }
.site-footer__tagline { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); line-height: 1.6; }
.site-footer__contact-line { margin-top: 0.75rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.site-footer__contact-line a:hover { color: var(--color-foreground); }
.site-footer__dot { margin: 0 0.5rem; color: color-mix(in srgb, var(--color-foreground) 40%, transparent); }

.site-footer__columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__columns { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }
.site-footer__col-title { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 1.25rem; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__col a,
.site-footer__col button { font-size: 12px; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.site-footer__col a:hover,
.site-footer__col button:hover { color: var(--color-foreground); }
.site-footer__col--reach { grid-column: span 2; }
@media (min-width: 768px) { .site-footer__col--reach { grid-column: span 1; } }
.site-footer__reach-text { font-size: 12px; margin-bottom: 1.25rem; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.site-footer__col--reach a { display: inline-flex; align-items: center; gap: 0.5rem; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }

.site-footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; padding-bottom: 1rem; border-top: 1px solid color-mix(in srgb, var(--color-border) 30%, transparent); display: flex; flex-direction: column; gap: 0.75rem; align-items: center; text-align: center; }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.site-footer__quote { font-size: 12px; color: var(--color-primary); font-style: italic; font-family: var(--font-display); }
.site-footer__copyright { font-size: 12px; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }

/* ---------------------------------------------------------------- */
/* Hero                                                                */
/* ---------------------------------------------------------------- */
body.theme-no-hero .site-main,
body:not(.theme-no-hero) main { }
.theme-hero { position: relative; background: var(--color-background); }
.theme-hero__media { position: relative; width: 100%; height: 92vh; min-height: 620px; overflow: hidden; }
.theme-hero__overlay-color { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-primary) 30%, transparent); mix-blend-mode: multiply; pointer-events: none; }
.theme-hero__overlay-dark { position: absolute; inset: 0; background: rgba(0,0,0,0.25); pointer-events: none; }
.theme-hero__overlay-gradient { position: absolute; inset-inline: 0; bottom: 0; height: 33%; background: linear-gradient(to top, rgba(0,0,0,0.4), transparent); pointer-events: none; }
.theme-hero__content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; z-index: 2; }
.theme-hero__title {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 400;
	color: var(--color-button-text);
	line-height: 0.98;
	letter-spacing: -0.015em;
	max-width: 64rem;
	font-size: clamp(2.75rem, 8vw, 6.5rem);
	text-wrap: balance;
}
.theme-hero__ctas { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .theme-hero__ctas { flex-direction: row; } }

/* ---------------------------------------------------------------- */
/* Category strip                                                     */
/* ---------------------------------------------------------------- */
.theme-categories { background: var(--color-background); overflow-x: hidden; }
.theme-categories__inner { padding-block: 4rem; }
@media (min-width: 768px) { .theme-categories__inner { padding-block: 5rem; } }
.theme-categories__title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; }
@media (min-width: 768px) { .theme-categories__title { font-size: 2.25rem; } }
.theme-categories__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	justify-items: center;
	align-items: start;
	column-gap: 1rem;
	row-gap: 1.5rem;
	padding: 1.5rem 0 1rem;
}
.theme-category-tile:nth-last-child(1):nth-child(odd) {
	grid-column: 1 / -1;
	justify-self: center;
}
@media (min-width: 768px) {
	.theme-categories__row {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 2.5rem;
	}
	.theme-category-tile:nth-last-child(1):nth-child(odd) {
		grid-column: auto;
		justify-self: auto;
	}
}
.theme-category-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	max-width: 8.75rem;
}
@media (min-width: 768px) {
	.theme-category-tile {
		gap: 1rem;
		width: auto;
		max-width: none;
		flex-shrink: 0;
	}
}
.theme-category-tile__image-wrap { position: relative; width: 6rem; height: 6rem; border-radius: 9999px; overflow: hidden; box-shadow: var(--shadow-soft); transition: transform 0.3s; }
.theme-category-tile:hover .theme-category-tile__image-wrap { transform: scale(1.05); }
@media (min-width: 640px) { .theme-category-tile__image-wrap { width: 7rem; height: 7rem; } }
@media (min-width: 768px) { .theme-category-tile__image-wrap { width: 10rem; height: 10rem; } }
.theme-category-tile__overlay { position: absolute; inset: 0; mix-blend-mode: multiply; }
.theme-category-tile__overlay--teal-70 { background: color-mix(in srgb, var(--color-teal) 70%, transparent); }
.theme-category-tile__overlay--lilac-80 { background: color-mix(in srgb, var(--color-accent) 80%, transparent); }
.theme-category-tile__overlay--nopal-70 { background: color-mix(in srgb, var(--color-primary) 70%, transparent); }
.theme-category-tile__overlay--accent-65 { background: color-mix(in srgb, var(--color-marigold) 65%, transparent); }
.theme-category-tile__overlay--teal-65 { background: color-mix(in srgb, var(--color-teal) 65%, transparent); }
.theme-category-tile__label {
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--color-foreground) 85%, transparent);
	text-align: center;
	line-height: 1.35;
	min-height: 2.75rem;
	max-width: 8.75rem;
}
@media (min-width: 768px) {
	.theme-category-tile__label {
		font-size: 14px;
		min-height: 0;
		max-width: 12rem;
	}
}
.theme-category-tile:hover .theme-category-tile__label { color: var(--color-foreground); }

/* ---------------------------------------------------------------- */
/* Product grid + cards (Section 31.9 — equal height, aspect ratio)   */
/* ---------------------------------------------------------------- */
.theme-product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: stretch;
}
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
@media (min-width: 1024px) { .theme-product-grid { gap: 2.5rem; } }
.theme-product-grid--featured { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) { .theme-product-grid--featured { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.theme-product-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .theme-product-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card { display: flex; flex-direction: column; height: 100%; }
.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--color-card);
	border-radius: 1rem;
	overflow: hidden;
	margin-bottom: 1.25rem;
	border: 1px solid color-mix(in srgb, var(--color-border) 40%, transparent);
	box-shadow: var(--shadow-soft);
	transition: box-shadow 0.3s, transform 0.3s;
}
.theme-product-card:hover .theme-product-card__image-wrapper { box-shadow: var(--shadow-elevated); transform: translateY(-3px); }
.theme-product-card__image { transition: transform 0.7s var(--transition-smooth); }
.theme-product-card:hover .theme-product-card__image { transform: scale(1.04); }
.theme-product-card__badge {
	position: absolute; top: 1rem; right: 1rem; z-index: 2;
	padding: 0.25rem 0.75rem; border-radius: 0.375rem;
	font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
	background: var(--color-foreground); color: var(--color-background);
}
.theme-product-card__add-btn {
	position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 3;
	padding: 0.75rem 0; border-radius: 9999px;
	background: var(--color-teal); color: var(--color-primary-foreground); border: 1px solid var(--color-teal);
	font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
	opacity: 0; transform: translateY(8px);
	transition: all 0.3s;
	pointer-events: auto;
}
.theme-product-card:hover .theme-product-card__add-btn { opacity: 1; transform: translateY(0); }
.theme-product-card__add-btn:hover { background: var(--color-background); color: var(--color-teal); }
.theme-product-card__info { flex: 1; display: flex; flex-direction: column; gap: 0.375rem; padding: 0 0.25rem; min-width: 0; }
.theme-product-card__category { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-product-card__title { font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1.4; transition: color 0.3s; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 768px) { .theme-product-card__title { font-size: 1.125rem; } }
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { font-size: 1rem; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }

/* ---------------------------------------------------------------- */
/* Featured                                                            */
/* ---------------------------------------------------------------- */
.theme-featured { background: var(--color-background); }
.theme-featured__inner { padding-block: 4rem; }
@media (min-width: 768px) { .theme-featured__inner { padding-block: 6rem; } }
.theme-featured__title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; line-height: 1.2; }
@media (min-width: 768px) { .theme-featured__title { font-size: 3rem; } }
.theme-featured__cta { text-align: center; margin-top: 3.5rem; }

/* ---------------------------------------------------------------- */
/* Services                                                            */
/* ---------------------------------------------------------------- */
.theme-services { background: var(--color-background); }
.theme-services__inner { padding-block: 5rem; }
@media (min-width: 768px) { .theme-services__inner { padding-block: 7rem; } }
.theme-services__title { font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 768px) { .theme-services__title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-services__title { font-size: 3.75rem; } }
.theme-services__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 80rem; margin: 0 auto; }
@media (min-width: 640px) { .theme-services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-services__grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.theme-service-card {
	display: flex; flex-direction: column; text-align: center;
	background: var(--color-secondary); border-radius: 1rem; padding: 2rem;
	border: 1px solid color-mix(in srgb, var(--color-foreground) 5%, transparent);
	transition: transform 0.3s, box-shadow 0.3s;
}
.theme-service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px -15px rgba(0,0,0,0.15); }
.theme-service-card__icon { display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.theme-service-card__icon--teal { color: var(--color-teal); }
.theme-service-card__icon--primary { color: var(--color-primary); }
.theme-service-card__icon--marigold { color: var(--color-marigold); }
.theme-service-card__icon--accent { color: var(--color-accent); }
.theme-service-card__title { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.75rem; font-family: var(--font-body); }
.theme-service-card__desc { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); line-height: 1.6; margin-bottom: 1.5rem; }
.theme-service-card__cta { margin-top: auto; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: var(--color-primary); transition: color 0.2s; }
.theme-service-card__cta:hover { color: var(--color-foreground); }

/* ---------------------------------------------------------------- */
/* About / story                                                       */
/* ---------------------------------------------------------------- */
.theme-about { background: var(--color-background); padding: 1.5rem 0 6rem; overflow-x: clip; }
@media (min-width: 768px) { .theme-about { padding: 2rem 0 8rem; } }
.theme-about__banner {
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	max-width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	height: 70vh;
	min-height: 420px;
	overflow: hidden;
	margin-bottom: 2.5rem;
	box-sizing: border-box;
}
@media (min-width: 768px) { .theme-about__banner { height: 85vh; } }
.theme-about__banner-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.theme-about__banner-overlay-color { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-primary) 30%, transparent); mix-blend-mode: multiply; pointer-events: none; }
.theme-about__banner-overlay-dark { position: absolute; inset: 0; background: rgba(0,0,0,0.35); pointer-events: none; }
.theme-about__banner-overlay-gradient { position: absolute; inset-inline: 0; bottom: 0; height: 50%; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); pointer-events: none; }
.theme-about__banner-quote-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 1.5rem; }
@media (min-width: 768px) { .theme-about__banner-quote-wrap { padding: 0 3rem; } }
.theme-about__quote { max-width: 56rem; text-align: center; color: var(--color-button-text); }
.theme-about__quote p { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.5rem; line-height: 1.25; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
@media (min-width: 768px) { .theme-about__quote p { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-about__quote p { font-size: 3rem; } }
.theme-about__quote footer { margin-top: 1.5rem; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.theme-about__body { max-width: 48rem; margin: 4rem auto 0; text-align: center; padding: 0 1.5rem; }
@media (min-width: 768px) { .theme-about__body { padding: 0 3.5rem; margin-top: 6rem; } }
.theme-about__lead { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.25; color: var(--color-foreground); margin-bottom: 2.5rem; }
@media (min-width: 768px) { .theme-about__lead { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-about__lead { font-size: 2.5rem; } }
.theme-about__text { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.7; font-size: 1rem; }
@media (min-width: 768px) { .theme-about__text { font-size: 1.125rem; } }
.theme-about .theme-link-underline { margin-top: 2.5rem; display: inline-block; }
.theme-about__divider { max-width: 48rem; margin: 5rem auto 0; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); }
@media (min-width: 768px) { .theme-about__divider { margin-top: 7rem; } }

/* ---------------------------------------------------------------- */
/* Shop                                                                */
/* ---------------------------------------------------------------- */
.theme-shop { background: var(--color-background); }
.theme-shop__inner { padding-bottom: 4rem; }
@media (min-width: 768px) { .theme-shop__inner { padding-bottom: 6rem; } }
.theme-shop__title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .theme-shop__title { font-size: 3rem; } }
.theme-shop__search-row { display: flex; flex-direction: column; gap: 1rem; max-width: 42rem; margin: 0 auto 0.5rem; align-items: stretch; }
@media (min-width: 640px) { .theme-shop__search-row { flex-direction: row; align-items: flex-end; gap: 1.5rem; } }
.theme-shop__search-field { position: relative; flex: 1; min-width: 0; text-align: left; }
.theme-shop__search-field svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-shop__search-field input {
	width: 100%; padding: 0.5rem 0 0.5rem 1.75rem; background: transparent; border: none;
	border-bottom: 1px solid var(--color-border);
	font-size: 1rem; color: var(--color-foreground);
}
.theme-shop__search-field input::placeholder { color: color-mix(in srgb, var(--color-foreground) 50%, transparent); }
.theme-shop__search-field input:focus { outline: none; border-color: var(--color-foreground); }
.theme-shop__price-toggle {
	flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.5rem 1rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
	transition: color 0.3s;
}
.theme-shop__price-toggle:hover { color: var(--color-foreground); }
.theme-shop__price-toggle-chevron { transition: transform 0.3s; }
.theme-shop__price-toggle.is-open .theme-shop__price-toggle-chevron { transform: rotate(180deg); }
.theme-shop__price-panel { max-width: 24rem; margin: 0 auto; padding: 1rem 0; }
.theme-shop__price-labels { display: flex; justify-content: space-between; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-top: 0.75rem; }

/* Dual-handle price range (Section 31.4) */
.price-range-wrapper { position: relative; height: 1.5rem; margin-bottom: 0.25rem; }
.range-track-bg, .range-track-fill { position: absolute; height: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; border-radius: 4px; }
.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: 18px; height: 18px; border-radius: 9999px;
	background: var(--color-background); border: 2px solid var(--color-primary);
	cursor: pointer; margin-top: 0;
}
.range-input::-moz-range-thumb {
	pointer-events: auto; width: 18px; height: 18px; border-radius: 9999px;
	background: var(--color-background); border: 2px solid var(--color-primary); cursor: pointer;
}
.range-input::-webkit-slider-runnable-track,
.range-input::-moz-range-track { background: transparent; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.theme-shop__categories { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 1.5rem; }
.theme-pill {
	padding: 0.5rem 1.25rem; border-radius: 9999px; border: 1px solid var(--color-border);
	font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-foreground);
	background: transparent; transition: all 0.3s;
}
.theme-pill:hover { border-color: var(--color-accent); color: var(--color-accent); }
.theme-pill.is-active { background: var(--color-teal); color: var(--color-primary-foreground); border-color: var(--color-teal); }
.theme-shop__empty { text-align: center; padding: 5rem 0; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }

/* ---------------------------------------------------------------- */
/* Owner / founder                                                    */
/* ---------------------------------------------------------------- */
.theme-owner { background: var(--color-primary); color: var(--color-primary-foreground); }
.theme-owner__inner { padding-block: 2rem 3rem; }
.theme-owner__grid { display: grid; grid-template-columns: 1fr; align-items: stretch; overflow: hidden; border-radius: 1rem; }
@media (min-width: 1024px) { .theme-owner__grid { grid-template-columns: 1fr 1fr; } }
.theme-owner__photo-wrap { position: relative; min-height: 320px; overflow: hidden; }
@media (min-width: 768px) { .theme-owner__photo-wrap { min-height: 460px; } }
@media (min-width: 1024px) { .theme-owner__photo-wrap { min-height: 560px; } }
.theme-owner__photo-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.4), transparent 60%); pointer-events: none; }
.theme-owner__photo-caption { position: absolute; left: 2rem; right: 2rem; bottom: 2rem; color: var(--color-button-text); }
.theme-owner__photo-name { font-family: var(--font-display); font-size: 1.5rem; }
@media (min-width: 768px) { .theme-owner__photo-name { font-size: 1.875rem; } }
.theme-owner__photo-role { margin-top: 0.25rem; font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.85; }
.theme-owner__content { display: flex; align-items: center; background: var(--color-secondary); padding: 4rem 1.5rem; color: var(--color-foreground); }
@media (min-width: 768px) { .theme-owner__content { padding: 6rem 3.5rem; } }
.theme-owner__content-inner { max-width: 36rem; }
.theme-owner__name { font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; line-height: 1.2; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .theme-owner__name { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-owner__name { font-size: 3.75rem; } }
.theme-owner__quote { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.3; margin-bottom: 2rem; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }
@media (min-width: 768px) { .theme-owner__quote { font-size: 1.5rem; } }
.theme-owner__bio { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.7; margin-bottom: 1.25rem; }

/* ---------------------------------------------------------------- */
/* FAQ                                                                 */
/* ---------------------------------------------------------------- */
.theme-faq { background: var(--color-background); }
.theme-faq__inner { padding-block: 5rem; }
@media (min-width: 768px) { .theme-faq__inner { padding-block: 7rem; } }
.theme-faq__title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; line-height: 1.05; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .theme-faq__title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-faq__title { font-size: 3.75rem; } }
.theme-faq__intro { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); font-size: 1rem; }
@media (min-width: 768px) { .theme-faq__intro { font-size: 1.125rem; } }
.theme-faq__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem; margin-bottom: 2.5rem; }
.theme-faq-tab {
	border-radius: 9999px; border: 1px solid; padding: 0.625rem 1.25rem;
	font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
	background: transparent; transition: all 0.2s;
}
.theme-faq-tab--teal { border-color: var(--color-teal); color: var(--color-teal); }
.theme-faq-tab--teal.is-active { background: var(--color-teal); color: var(--color-primary-foreground); }
.theme-faq-tab--teal:hover { background: color-mix(in srgb, var(--color-teal) 10%, transparent); }
.theme-faq-tab--rosa { border-color: var(--color-rosa); color: var(--color-foreground); }
.theme-faq-tab--rosa.is-active { background: var(--color-rosa); }
.theme-faq-tab--rosa:hover { background: color-mix(in srgb, var(--color-rosa) 20%, transparent); }
.theme-faq-tab--accent { border-color: var(--color-accent); color: var(--color-foreground); }
.theme-faq-tab--accent.is-active { background: var(--color-accent); }
.theme-faq-tab--accent:hover { background: color-mix(in srgb, var(--color-accent) 25%, transparent); }
.theme-faq-tab--primary { border-color: var(--color-primary); color: var(--color-primary); }
.theme-faq-tab--primary.is-active { background: var(--color-primary); color: var(--color-primary-foreground); }
.theme-faq-tab--primary:hover { background: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.theme-faq-tab--marigold { border-color: var(--color-marigold); color: var(--color-foreground); }
.theme-faq-tab--marigold.is-active { background: var(--color-marigold); }
.theme-faq-tab--marigold:hover { background: color-mix(in srgb, var(--color-marigold) 25%, transparent); }

.theme-faq__panels { border-top: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-faq-item { border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-faq-item__question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; text-align: left; }
@media (min-width: 768px) { .theme-faq-item__question { padding: 1.5rem 0; } }
.theme-faq-item__question span:first-child { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.4; }
@media (min-width: 768px) { .theme-faq-item__question span:first-child { font-size: 1.25rem; } }
.theme-faq-item__icon {
	flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 9999px; border: 1px solid var(--color-foreground);
	display: flex; align-items: center; justify-content: center; transition: all 0.2s;
	color: var(--color-foreground);
}
.theme-faq-item__icon svg { transition: transform 0.2s; }
.theme-faq-item.is-open .theme-faq-item__icon { background: var(--color-foreground); color: var(--color-background); }
.theme-faq-item.is-open .theme-faq-item__icon svg { transform: rotate(180deg); }
.theme-faq-item__answer { max-height: 0; overflow: hidden; transition: max-height 0.28s var(--transition-smooth); }
.theme-faq-item.is-open .theme-faq-item__answer { max-height: 40rem; }
.theme-faq-item__answer p { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); font-size: 1rem; line-height: 1.7; padding-bottom: 1.5rem; padding-right: 3rem; max-width: 48rem; }
@media (min-width: 768px) { .theme-faq-item__answer p { font-size: 1.0625rem; } }

/* ---------------------------------------------------------------- */
/* Connect                                                             */
/* ---------------------------------------------------------------- */
.theme-connect { background: var(--color-secondary); }
.theme-connect__inner { padding-block: 5rem; }
@media (min-width: 768px) { .theme-connect__inner { padding-block: 6rem; } }
.theme-connect__title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .theme-connect__title { font-size: 3rem; } }
.theme-connect__desc { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); max-width: 42rem; margin: 0 auto; }
.theme-connect__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	max-width: min(64rem, 100%);
	margin: 2.5rem auto 0;
}
.theme-connect-link {
	display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 9999px;
	background: var(--color-background); border: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
	padding: 0.625rem 1.25rem; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
	transition: all 0.2s;
}
.theme-connect-link:hover { color: var(--color-foreground); border-color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 5%, transparent); }

/* ---------------------------------------------------------------- */
/* Final CTA                                                           */
/* ---------------------------------------------------------------- */
.theme-cta__bg { position: relative; min-height: 480px; overflow: hidden; }
@media (min-width: 1024px) { .theme-cta__bg { min-height: 560px; } }
.theme-cta__overlay-color { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-primary) 35%, transparent); mix-blend-mode: multiply; pointer-events: none; }
.theme-cta__overlay-dark { position: absolute; inset: 0; background: rgba(0,0,0,0.35); pointer-events: none; }
.theme-cta__overlay-gradient { position: absolute; inset-inline: 0; bottom: 0; height: 50%; background: linear-gradient(to top, rgba(0,0,0,0.5), transparent); pointer-events: none; }
.theme-cta__content { position: relative; display: flex; align-items: center; justify-content: center; padding-block: 5rem; padding-inline: max(1.5rem, env(safe-area-inset-left)); min-height: 480px; box-sizing: border-box; }
@media (min-width: 768px) { .theme-cta__content { padding-block: 6rem; padding-inline: max(2rem, env(safe-area-inset-left)); } }
@media (min-width: 1024px) { .theme-cta__content { min-height: 560px; } }
.theme-cta__inner { max-width: 32rem; text-align: center; }
.theme-cta__title { font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; line-height: 1.2; margin-bottom: 1.5rem; color: var(--color-button-text); }
@media (min-width: 768px) { .theme-cta__title { font-size: 3rem; } }
@media (min-width: 1024px) { .theme-cta__title { font-size: 3.75rem; } }
.theme-cta__body { color: rgba(255,255,255,0.9); line-height: 1.7; margin-bottom: 2.5rem; }
.theme-cta__buttons {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 1rem;
	width: 100%;
	max-width: 100%;
}
.theme-cta__buttons .theme-btn { width: 100%; }
@media (min-width: 640px) {
	.theme-cta__buttons {
		flex-direction: row;
		align-items: center;
		width: auto;
	}
	.theme-cta__buttons .theme-btn { width: auto; }
}

/* ---------------------------------------------------------------- */
/* Cart drawer                                                         */
/* ---------------------------------------------------------------- */
#theme-cart-overlay, #theme-modal-overlay {
	position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 60;
	opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
body.cart-open #theme-cart-overlay,
body.modal-open #theme-modal-overlay { opacity: 1; pointer-events: auto; }

main.theme-home,
main.theme-product-page,
main.theme-generic-page,
main.theme-checkout-main {
	min-width: 0;
	max-width: 100%;
	overflow-x: clip;
}

#theme-cart-drawer {
	position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 28rem;
	background: var(--color-background); z-index: 61; 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__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:hover { opacity: 0.6; }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.theme-cart-drawer__empty[hidden],
.theme-cart-drawer__footer[hidden] { display: none !important; }
.theme-btn--empty-cart { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.theme-cart-drawer__empty-icon { color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-bottom: 1rem; }
.theme-cart-drawer__empty-text { color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-bottom: 1.5rem; }
.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; min-height: 0; }
.theme-cart-drawer__items:empty { display: none; flex: 0; padding: 0; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item__image { width: 5rem; height: 6rem; background: var(--color-secondary); overflow: hidden; flex-shrink: 0; border-radius: 0.375rem; }
.theme-cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-item__body { flex: 1; min-width: 0; }
.theme-cart-item__name { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-cart-item__name:hover { opacity: 0.7; }
.theme-cart-item__meta { font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin-top: 0.125rem; }
.theme-cart-item__price { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-top: 0.125rem; }
.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; }
.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; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-cart-item__remove:hover { color: var(--color-foreground); }
.theme-cart-item__line-total { font-size: 0.875rem; font-weight: 500; }
.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-drawer__subtotal-value { font-weight: 500; }
.theme-cart-drawer__shipping-note { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }

/* ---------------------------------------------------------------- */
/* Contact modal                                                       */
/* ---------------------------------------------------------------- */
#theme-contact-modal {
	position: fixed; left: 50%; top: 50%; z-index: 62;
	transform: translate(-50%, -48%) scale(0.96); opacity: 0; pointer-events: none;
	width: 100%; max-width: 32rem; max-height: 90vh; overflow-y: auto;
	transition: opacity 0.2s, transform 0.2s;
}
#theme-contact-modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.theme-modal__box { background: var(--color-background); border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent); border-radius: 0.75rem; box-shadow: var(--shadow-elevated); padding: 1.5rem; position: relative; }
.theme-modal__close { position: absolute; right: 1rem; top: 1rem; opacity: 0.7; }
.theme-modal__close:hover { opacity: 1; }
.theme-modal__header { margin-bottom: 1rem; }
.theme-modal__title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.375rem; }
.theme-modal__desc { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-modal__contact-row { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-bottom: 1rem; }
.theme-modal__contact-link { display: inline-flex; align-items: center; gap: 0.5rem; }
.theme-modal__contact-link:hover { color: var(--color-foreground); }
.theme-modal__success { 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: 9999px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.theme-modal__success-title { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-modal__success-text { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-modal__form { display: flex; flex-direction: column; gap: 1rem; }
.theme-modal__form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-modal__form-row { grid-template-columns: 1fr 1fr; } }
.theme-field label { font-size: 0.875rem; font-weight: 500; display: block; margin-bottom: 0.375rem; }
.theme-field input, .theme-field textarea {
	width: 100%; padding: 0.625rem 0.75rem; background: var(--color-background);
	border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
	border-radius: 0.375rem; font-size: 1rem; resize: none;
	transition: box-shadow 0.3s;
}
.theme-field input:focus, .theme-field textarea:focus { outline: none; box-shadow: 0 0 0 2px var(--color-primary); }
.theme-modal__form-footer { display: flex; justify-content: flex-end; }

/* ---------------------------------------------------------------- */
/* Single product page                                                */
/* ---------------------------------------------------------------- */
body.theme-no-hero main.theme-product-page.single-product-main,
main.theme-product-page.single-product-main {
	padding-top: 5rem !important;
	background: var(--color-background);
}
@media (min-width: 1024px) {
	body.theme-no-hero main.theme-product-page.single-product-main,
	main.theme-product-page.single-product-main { padding-top: 6rem !important; }
}
.theme-breadcrumb { padding: 0.5rem 0 1rem; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-breadcrumb a:hover { color: var(--color-foreground); }
.theme-breadcrumb__sep { margin: 0 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: 1rem 0 6rem; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: start; } }

.theme-product-gallery-col { min-width: 0; max-width: 100%; }
.theme-product-gallery { display: flex; flex-direction: column; gap: 1rem; min-width: 0; max-width: 100%; }
.theme-product-gallery--desktop { display: none; }
@media (min-width: 1024px) {
	.theme-product-gallery--mobile { display: none; }
	.theme-product-gallery--desktop { display: flex; }
}
.theme-product-gallery__image-wrap { position: relative; aspect-ratio: 1 / 1; background: var(--color-secondary); overflow: hidden; }
.single-product-main .theme-product-gallery__image,
.single-product-main .theme-product-thumb__img {
	position: static !important;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}
.single-product-main .theme-product-thumb img.cover-img { position: static; height: 100%; }
@media (min-width: 1024px) {
	.theme-product-info--sticky { position: sticky; top: 7rem; align-self: start; padding-left: 1rem; }
}
.theme-product-thumbnails { display: flex; gap: 0.75rem; overflow-x: auto; flex-wrap: wrap; max-width: 100%; padding-bottom: 0.25rem; }
.theme-product-thumb { position: relative; width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden; background: var(--color-secondary); }
.theme-product-thumb img { opacity: 0.6; transition: opacity 0.2s; }
.theme-product-thumb.is-active img { opacity: 1; }
.theme-product-thumb:hover img { opacity: 1; }
.theme-product-thumb::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--color-foreground); opacity: 0; }
.theme-product-thumb.is-active::after { opacity: 1; }

.theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-info__category { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.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; overflow-wrap: break-word; }
@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; }
.theme-product-info__desc { color: color-mix(in srgb, var(--color-foreground) 65%, transparent); line-height: 1.7; margin-bottom: 2rem; font-size: 1rem; overflow-wrap: break-word; }

.theme-product-option { margin-bottom: 1.5rem; }
.theme-product-option__label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-bottom: 0.75rem; }
.theme-product-option__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-option-pill { padding: 0.5rem 1rem; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; border: 1px solid var(--color-border); border-radius: 9999px; transition: all 0.2s; }
.theme-option-pill:hover { border-color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-option-pill.is-active { background: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }
.theme-option-pill--color.is-active { background: color-mix(in srgb, var(--color-foreground) 5%, transparent); color: var(--color-foreground); border-color: var(--color-foreground); }
.theme-option-pill__swatch { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 9999px; border: 1px solid var(--color-border); margin-right: 0.5rem; vertical-align: middle; }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); }
.theme-qty-minus, .theme-qty-plus { padding: 0.5rem 0.75rem; transition: background 0.2s; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input { width: 44px; padding: 0.5rem 0; 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; }
.theme-qty-display { padding: 0.5rem 1rem; min-width: 44px; text-align: center; font-size: 0.875rem; }

.theme-btn--add-to-cart.is-added { pointer-events: none; }

.theme-product-accordions { margin-top: 2.5rem; border-top: 1px solid var(--color-border); }
.theme-accordion { border-bottom: 1px solid var(--color-border); }
.theme-accordion__toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; text-align: left; }
.theme-accordion__toggle span { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; }
.theme-accordion__toggle svg { transition: transform 0.2s; }
.theme-accordion.is-open .theme-accordion__toggle svg { transform: rotate(180deg); }
.theme-accordion__panel { max-height: 0; overflow: hidden; }
.theme-accordion.is-open .theme-accordion__panel { max-height: none; padding-bottom: 1.5rem; }
.theme-accordion:not(.is-open) .theme-accordion__panel { display: none; }
.theme-accordion__desc { font-size: 15px; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); line-height: 1.7; margin-bottom: 1rem; white-space: pre-line; overflow-wrap: break-word; }
.theme-accordion__list { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-accordion__list li { font-size: 15px; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); display: flex; align-items: flex-start; }
.theme-accordion__list li::before { content: ''; width: 4px; height: 4px; background: var(--color-foreground); border-radius: 9999px; margin: 0.5rem 0.75rem 0 0; flex-shrink: 0; }
.theme-accordion__panel p { color: color-mix(in srgb, var(--color-foreground) 65%, transparent); font-size: 15px; line-height: 1.7; margin-bottom: 0.75rem; }

.theme-related-products { padding: 5rem 0; 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: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-bottom: 0.5rem; }
.theme-related-products__title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; }
@media (min-width: 768px) { .theme-related-products__title { font-size: 2.25rem; } }

.theme-related-link { display: block; color: inherit; text-decoration: none; }
.theme-related-link__image-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--color-card);
	border-radius: 1rem;
	overflow: hidden;
	margin-bottom: 1.25rem;
	border: 1px solid color-mix(in srgb, var(--color-border) 40%, transparent);
	box-shadow: 0 1px 2px color-mix(in srgb, var(--color-foreground) 6%, transparent);
	transition: box-shadow 0.3s, transform 0.3s;
}
.theme-related-link:hover .theme-related-link__image-wrap { box-shadow: var(--shadow-elevated); transform: translateY(-3px); }
.theme-related-link__image { width: 100%; height: 100%; object-fit: cover; }
.theme-related-link__info { padding: 0 0.25rem; display: flex; flex-direction: column; gap: 0.375rem; }
.theme-related-link__category { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin: 0; }
.theme-related-link__title { font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1.35; margin: 0; transition: color 0.3s; }
@media (min-width: 768px) { .theme-related-link__title { font-size: 1.125rem; } }
.theme-related-link:hover .theme-related-link__title { color: var(--color-primary); }
.theme-related-link__price { font-size: 1rem; margin: 0; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }

.single-product-main .woocommerce-product-gallery,
.single-product-main .product_meta,
.single-product-main .woocommerce-tabs,
.single-product-main .related.products,
.single-product-main ul.products:not(.theme-related-grid) { display: none !important; }
.single-product-main .theme-attr-select-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------------------------------------------------------------- */
/* Checkout page                                                       */
/* ---------------------------------------------------------------- */
.theme-checkout-page { padding-top: 20px; min-height: 100vh; background: var(--color-background); }
.theme-checkout-page__inner { padding-block: 0 3rem; }
.theme-checkout-state--empty,
.theme-checkout-state--thanks { max-width: 32rem; margin: 0 auto; padding-top: 1.5rem; padding-bottom: 5rem; text-align: center; }
.theme-checkout-state--empty svg,
.theme-checkout-thanks__icon { margin: 0 auto 1.5rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-checkout-thanks__icon { width: 4rem; height: 4rem; background: var(--color-primary); color: var(--color-primary-foreground); border-radius: 9999px; display: flex; align-items: center; justify-content: center; }
.theme-checkout-state h1 { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
@media (min-width: 768px) { .theme-checkout-state h1 { font-size: 2.25rem; } }
.theme-checkout-state p { color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-bottom: 2rem; }
.theme-checkout__back-link { display: inline-flex; align-items: center; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-bottom: 2rem; gap: 0.5rem; }
.theme-checkout__back-link:hover { color: var(--color-foreground); }
.theme-checkout__title { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .theme-checkout__title { font-size: 2.25rem; } }
.theme-checkout__layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .theme-checkout__layout { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.theme-checkout__summary { order: 2; }
.theme-checkout__form-col { order: 1; }
@media (min-width: 1024px) { .theme-checkout__summary { order: 1; } .theme-checkout__form-col { order: 2; } }
.theme-checkout__summary h2, .theme-checkout__form-col h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.theme-checkout__items, .theme-checkout-item { display: flex; flex-direction: column; }
.theme-checkout__items { gap: 1.5rem; margin-bottom: 2rem; }
.theme-checkout-item { flex-direction: row; gap: 1rem; align-items: flex-start; }
.theme-checkout-item__image { width: 5rem; height: 6rem; background: var(--color-secondary); overflow: hidden; flex-shrink: 0; border-radius: 0.5rem; }
.theme-checkout-item__image img { width: 100%; height: 100%; object-fit: cover; }
.theme-checkout-item__body { flex: 1; min-width: 0; }
.theme-checkout-item__body a { font-size: 0.875rem; font-weight: 500; display: block; }
.theme-checkout-item__meta { font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-checkout-item__price { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin: 0.125rem 0 0; }
.theme-checkout-item__line-total { font-size: 0.875rem; font-weight: 500; }
.theme-checkout__totals { border-top: 1px solid var(--color-border); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.theme-checkout__total-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-checkout__free { color: var(--color-primary); font-weight: 500; }
.theme-checkout__total-row--final { font-size: 1rem; font-weight: 600; padding-top: 0.75rem; border-top: 1px solid var(--color-border); }
.theme-checkout__section { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.theme-checkout__section input, .theme-checkout__section textarea {
	width: 100%; padding: 0.75rem 1rem; background: var(--color-background);
	border: 1px solid var(--color-border); border-radius: 0.375rem;
	font-size: 1rem; resize: none;
}
.theme-checkout__section input:focus, .theme-checkout__section textarea:focus { outline: none; box-shadow: 0 0 0 1px var(--color-primary); }
.theme-checkout__section label { font-family: var(--font-display); font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; display: block; }
.theme-checkout__row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.theme-checkout__row-3 { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .theme-checkout__row-3 { grid-template-columns: 1fr 1fr 1fr; } }
.theme-checkout__disclaimer { text-align: center; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-top: 1rem; }

/* ---------------------------------------------------------------- */
/* Generic pages, 404                                                  */
/* ---------------------------------------------------------------- */
.theme-generic-page { padding-top: 6rem; padding-bottom: 4rem; min-height: 60vh; }
.page-title { font-family: var(--font-display); font-size: 2.25rem; margin-bottom: 1.5rem; }
.entry-content { line-height: 1.7; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.entry-content p { margin-bottom: 1rem; }

.theme-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--color-secondary); }
.theme-404__inner { text-align: center; }
.theme-404__code { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.theme-404__message { font-size: 1.25rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-bottom: 1rem; }
.theme-404__link { color: var(--color-primary); text-decoration: underline; }
.theme-404__link:hover { color: color-mix(in srgb, var(--color-primary) 90%, transparent); }

/* ---------------------------------------------------------------- */
/* WordPress core alignment helpers                                   */
/* ---------------------------------------------------------------- */
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- */
/* PDP attribute pills (WooCommerce / Lovable parity)                 */
/* ---------------------------------------------------------------- */
.theme-attr-select-hidden { display: none !important; }
.theme-attr-select {
	width: 100%;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	background: var(--color-background);
}
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.75rem; }
.theme-attr-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border: 1px solid var(--color-border);
	border-radius: 9999px;
	transition: border-color 0.2s, background 0.2s;
}
.theme-attr-pill--color.is-active {
	border-color: var(--color-primary);
	background: color-mix(in srgb, var(--color-primary) 5%, transparent);
	color: var(--color-foreground);
}
.theme-attr-pill--license.is-active {
	background: var(--color-foreground);
	color: var(--color-background);
	border-color: var(--color-foreground);
}
.theme-attr-pill__swatch {
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 9999px;
	border: 1px solid var(--color-border);
	flex-shrink: 0;
}
.theme-cart-item-meta { list-style: none; margin: 0.25rem 0 0; padding: 0; font-size: 12px; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-cart-item-meta-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
.theme-cart-item-meta-swatch { width: 0.625rem; height: 0.625rem; border-radius: 9999px; border: 1px solid var(--color-border); flex-shrink: 0; }

/* ---------------------------------------------------------------- */
/* WooCommerce Blocks checkout                                        */
/* ---------------------------------------------------------------- */
:root { --checkout-max-width: 1280px; --checkout-gap: 2rem; }

body.woocommerce-checkout .theme-checkout-main { padding-top: 0; }
.theme-checkout-shell { padding-block: 0.5rem 4rem; width: 100%; max-width: none; }
.theme-checkout-header {
	max-width: var(--checkout-max-width);
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
	margin-bottom: 0;
}
.checkout-continue-link { margin-bottom: 1rem; }
.theme-checkout-title { margin: 0; font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; }
.theme-checkout-intro { margin: 0.75rem 0 0; }

body.woocommerce-checkout .theme-checkout-main .entry-content,
.entry-content:has(.wc-block-checkout) { margin-top: 0; padding-top: 0; }

body.woocommerce-checkout .theme-checkout-main > .container-wide,
.theme-checkout-shell,
body.woocommerce-checkout .theme-checkout-main .entry-content { max-width: none; width: 100%; }

body.woocommerce-checkout .wc-block-checkout,
.entry-content .wc-block-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
.entry-content .wp-block-woocommerce-checkout {
	max-width: var(--checkout-max-width);
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
	min-width: 0;
	margin-top: 0;
	padding-top: 0;
}

body.woocommerce-checkout .theme-checkout-main .entry-content > .wc-block-checkout:first-child,
body.woocommerce-checkout .theme-checkout-main .entry-content > .wp-block-woocommerce-checkout:first-child,
.entry-content > .wc-block-checkout:first-child,
.entry-content > .wp-block-woocommerce-checkout:first-child { margin-top: 0; }

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,
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;
	box-sizing: border-box;
	margin-top: 0;
	padding-top: 0;
	margin-bottom: var(--checkout-gap);
}

@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;
	}
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar,
body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
.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: var(--color-card);
	border-radius: 0.75rem;
	padding: 1.5rem;
	box-sizing: border-box;
}

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;
}
