/* =====================================================================
   Bizzare Buckade — theme.css
   ===================================================================== */

:root {
	--color-background: #f6fafd;
	--color-foreground: #131c33;
	--color-primary: #337aff;
	--color-primary-foreground: #ffffff;
	--color-secondary: #e5f0fb;
	--color-secondary-foreground: #131f33;
	--color-muted-foreground: #545e70;
	--color-accent: #ff70dc;
	--color-accent-foreground: #ffffff;
	--color-highlight: #ffdf70;
	--color-highlight-foreground: #131c33;
	--color-logo-blue: #0000cd;
	--color-border: #d7e5f2;

	--color-secondary-foreground-derived: var(--color-secondary-foreground);
	--color-muted: color-mix(in srgb, var(--color-secondary) 70%, white);

	--font-display: 'Syne', 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
	--font-body: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;

	--radius: 1rem;
	--logo-height: 48px;
	--logo-height-lg: 56px;
	--logo-height-scrolled: 34px;
	--header-height: 72px;
	--header-height-lg: 84px;
	--header-height-scrolled: 60px;
	--admin-bar-offset: 0px;
	--announcement-height: 36px;
	--page-gutter: 1.5rem;
	--page-gutter-tablet: 2rem;

	--btn-radius: 0;
	--btn-height: 3.5rem;
	--btn-padding: 0 2.5rem;
	--btn-font-size: 0.72rem;
	--btn-font-weight: 700;
	--btn-letter-spacing: 0.18em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0.6rem;

	--shadow-elevated: 0 18px 48px -14px rgba(51, 122, 255, 0.28);
	--ease-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);
}

/* =====================================================================
   Reset / base
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { background-color: var(--color-background); scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 400;
	color: var(--color-foreground);
	background-color: var(--color-background);
	-webkit-font-smoothing: antialiased;
	font-size: 16px;
	line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: -0.01em;
	margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

img:not(.cover-img):not(.hero-carousel__img):not(.category-tile__img):not(.promo-banner__img):not(.new-arrivals__img):not(.two-up-banner__img):not(.brand-story__img):not(.process-section__img):not(.theme-product-card__img):not(.theme-product-main-image__img):not(.mega-menu__feature-img) {
	max-width: 100%;
	height: auto;
	display: block;
}
.cover-img, .hero-carousel__img, .category-tile__img, .promo-banner__img,
.new-arrivals__img, .two-up-banner__img, .brand-story__img, .process-section__img,
.mega-menu__feature-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
.theme-product-card__img, .theme-product-main-image__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.container-wide { width: 100%; max-width: 84rem; margin: 0 auto; padding-inline: var(--page-gutter); }
.container-editorial { width: 100%; max-width: 64rem; margin: 0 auto; padding-inline: var(--page-gutter); }
@media (min-width: 480px) {
	:root { --page-gutter: 1.75rem; }
}
@media (min-width: 480px) and (max-width: 1023px) {
	:root { --page-gutter: var(--page-gutter-tablet); }
}
@media (min-width: 768px) {
	:root { --page-gutter: 2.5rem; }
}

/* Preserve horizontal gutters when section inners also set vertical padding. */
.container-wide.caption-strip__inner,
.container-wide.category-tiles__inner,
.container-wide.site-footer__newsletter-inner,
.container-wide.site-footer__main,
.container-editorial.contact-band__inner,
.container-wide.search-dialog__inner {
	padding-inline: var(--page-gutter);
}

.theme-eyebrow {
	display: inline-block;
	font-size: 0.68rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--color-primary);
}
.theme-eyebrow--inverse { color: color-mix(in srgb, var(--color-primary-foreground) 80%, transparent); }

.scroll-mt { scroll-margin-top: calc(var(--admin-bar-offset) + var(--announcement-height) + var(--header-height) + 1rem); }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn-cta, .btn-cta-pink, .btn-cta-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: var(--btn-height);
	padding: var(--btn-padding);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	font-family: var(--font-body);
	border-radius: var(--btn-radius);
	transition: all 0.3s var(--ease-smooth);
	cursor: pointer;
}
.btn-cta {
	background-color: var(--color-highlight);
	color: var(--color-highlight-foreground);
	border: 1px solid var(--color-logo-blue);
}
.btn-cta:hover { background-color: var(--color-highlight-foreground); color: var(--color-highlight); }
.btn-cta-pink {
	background-color: var(--color-accent);
	color: var(--color-accent-foreground);
	border: 1px solid var(--color-accent-foreground);
}
.btn-cta-pink:hover { background-color: var(--color-accent-foreground); color: var(--color-accent); }
.btn-cta-outline {
	background: transparent;
	color: var(--color-foreground);
	border: 2px solid var(--color-border);
	height: 3rem;
}
.btn-cta-outline:hover { border-color: var(--color-primary); }

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	transition: opacity 0.3s;
}
.icon-btn:hover { opacity: 0.7; }

/* =====================================================================
   Scroll reveal animation system (Section 2.1)
   ===================================================================== */
.reveal-item, .reveal-fade-up {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth);
}
.reveal-item.is-visible, .reveal-fade-up.is-visible {
	opacity: 1;
	transform: translateY(0);
}
body.is-customizer .reveal-item,
body.is-customizer .reveal-fade-up {
	opacity: 1 !important;
	transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
	.reveal-item, .reveal-fade-up { transition: none; opacity: 1; transform: none; }
}
.animate-fade-in { animation: themeFadeIn 0.8s var(--ease-smooth) forwards; }
@keyframes themeFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =====================================================================
   Announcement bar + scroll progress
   ===================================================================== */
.theme-announcement {
	background: var(--color-logo-blue);
	color: #fff;
	position: fixed;
	top: var(--admin-bar-offset);
	left: 0;
	right: 0;
	z-index: 60;
}
.theme-announcement__inner { display: flex; align-items: center; justify-content: center; min-height: 2rem; padding: 0.4rem var(--page-gutter); position: relative; }
.theme-announcement__text { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; text-align: center; }
.theme-announcement__close { position: absolute; right: 0.5rem; padding: 0.25rem; opacity: 0.8; }
.theme-announcement__close:hover { opacity: 1; }

body.announcement-hidden,
body:not(:has(#theme-announcement)) {
	--announcement-height: 0px;
}

.theme-scroll-progress {
	position: fixed;
	top: calc(var(--admin-bar-offset) + var(--announcement-height));
	left: 0; right: 0;
	height: 2px;
	background: var(--color-primary);
	transform: scaleX(0);
	transform-origin: 0 50%;
	z-index: 70;
	pointer-events: none;
	transition: background-color 0.3s, top 0.3s;
}

/* =====================================================================
   Header
   ===================================================================== */
body.admin-bar { --admin-bar-offset: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar { --admin-bar-offset: 46px; }
}

.site-header {
	position: fixed;
	top: calc(var(--admin-bar-offset) + var(--announcement-height));
	left: 0; right: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--color-border);
	transition: box-shadow 0.3s, top 0.3s;
}
.site-header.is-solid { box-shadow: var(--shadow-elevated); }

.site-header__bar { padding-inline: var(--page-gutter); position: relative; }
.site-header__nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
	transition: height 0.3s;
	max-width: 84rem;
	margin: 0 auto;
}
@media (min-width: 1024px) {
	.site-header:not(.is-solid) .site-header__nav { height: var(--header-height-lg); }
}
.site-header.is-solid .site-header__nav { height: var(--header-height-scrolled); }

.site-header__mobile-toggle { display: flex; flex: 1; align-items: center; }
@media (min-width: 768px) { .site-header__mobile-toggle { display: none; } }

.site-header__logo {
	display: flex;
	align-items: center;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}
@media (min-width: 768px) {
	.site-header__logo {
		position: static;
		transform: none;
		flex: 1;
		justify-content: flex-start;
	}
}
.site-logo-img {
	height: var(--logo-height) !important;
	width: auto !important;
	display: block;
	transition: height 0.3s;
}
@media (min-width: 1024px) {
	.site-header:not(.is-solid) .site-logo-img { height: var(--logo-height-lg) !important; }
}
.site-header.is-solid .site-logo-img { height: var(--logo-height-scrolled) !important; }
.site-logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }

.site-header__menu { display: none; }
@media (min-width: 768px) {
	.site-header__menu {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 1.25rem;
	}
}
@media (min-width: 1024px) {
	.site-header__menu { gap: 2.25rem; }
}
.site-header__nav-item { position: relative; }
.site-header__nav-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	cursor: pointer;
}
.site-header__nav-trigger.is-active,
.site-header__nav-trigger:hover { color: var(--color-primary); }
.site-header__nav-chevron { opacity: 0.85; }

.nav-link {
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
	transition: color 0.3s;
}
.nav-link:hover { color: var(--color-primary); }

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	flex: 1;
	justify-content: flex-end;
}
.theme-cart-btn { position: relative; }
.theme-cart-count {
	position: absolute;
	top: -2px; right: -2px;
	width: 1.1rem; height: 1.1rem;
	display: flex; align-items: center; justify-content: center;
	font-size: 0.6rem; font-weight: 700;
	background: var(--color-accent);
	color: var(--color-accent-foreground);
	border-radius: 50%;
}
.theme-cart-count:empty { display: none; }

.mobile-menu-btn { display: flex; flex-direction: column; gap: 5px; padding: 0.5rem; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--color-foreground); border-radius: 1px; transition: all 0.3s; }

/* Mega menu */
.mega-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 40;
}
.mega-menu[hidden] { display: none !important; }
@media (max-width: 767px) {
	.mega-menu { display: none !important; }
}
.mega-menu__surface {
	background: var(--color-background);
	box-shadow: var(--shadow-elevated);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}
.mega-menu__inner {
	padding-top: 3rem;
	padding-bottom: 3rem;
}
/* Keep container-wide horizontal padding (px-6 / lg:px-10) — do not zero it out */
.mega-menu__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: stretch;
}
@media (min-width: 768px) {
	.mega-menu__grid--with-feature {
		grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
		gap: 2.5rem;
	}
}
@media (min-width: 1024px) {
	.mega-menu__grid--with-feature { gap: 2.5rem; }
}
.mega-menu__columns {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: repeat(var(--mega-cols, 1), minmax(0, 1fr));
	min-width: 0;
}
.mega-menu__column {
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.mega-menu__column-title {
	font-size: 0.68rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-weight: 700;
	color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--color-border);
}
.mega-menu__list { display: flex; flex-direction: column; gap: 0.75rem; }
.mega-menu__link {
	text-align: left;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transition: color 0.3s;
}
.mega-menu__link:hover { color: var(--color-primary); }
.mega-menu__shop-all {
	margin-top: 2rem;
	align-self: flex-start;
	font-size: 0.68rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	font-weight: 600;
	border-bottom: 1px solid var(--color-logo-blue);
	padding-bottom: 0.25rem;
	transition: color 0.3s, border-color 0.3s;
}
.mega-menu__shop-all:hover { color: var(--color-primary); border-color: var(--color-primary); }
.mega-menu__feature {
	display: none;
	width: 100%;
	min-width: 0;
	text-align: left;
	padding: 0;
	border: none;
	background: none;
}
@media (min-width: 768px) { .mega-menu__feature { display: block; } }
.mega-menu__feature-media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	min-height: 280px;
	overflow: hidden;
}
@media (min-width: 1024px) { .mega-menu__feature-media { min-height: 360px; } }
.mega-menu__feature-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 1.2s var(--ease-smooth);
	z-index: 0;
}
.mega-menu__feature:hover .mega-menu__feature-media img { transform: scale(1.05); }
.mega-menu__feature-gradient {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.1) 55%, rgba(0,0,0,0.2));
	z-index: 1;
	pointer-events: none;
}
.mega-menu__feature-eyebrow {
	position: absolute;
	top: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	z-index: 2;
	padding: 0;
	font-size: 0.68rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-weight: 600;
	color: color-mix(in srgb, var(--color-background) 95%, transparent);
}
.mega-menu__feature-copy {
	position: absolute;
	left: 1.5rem;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 2;
	padding: 0;
	color: var(--color-background);
}
.mega-menu__feature-title {
	font-weight: 800;
	text-transform: uppercase;
	font-size: 1.5rem;
	line-height: 1.1;
	margin-bottom: 0.75rem;
	text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
.mega-menu__feature-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.68rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-weight: 600;
	border-bottom: 1px solid color-mix(in srgb, var(--color-background) 80%, transparent);
	padding-bottom: 0.25rem;
}

.mobile-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: min(88vw, 380px);
	height: 100dvh;
	max-height: 100dvh;
	background: var(--color-background);
	border-right: 1px solid var(--color-border);
	box-shadow: 8px 0 32px rgba(19, 28, 51, 0.18);
	z-index: 200;
	transform: translateX(-100%);
	transition: transform 0.35s var(--ease-smooth);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
body.mobile-menu-open .mobile-menu { transform: translateX(0); }
body.mobile-menu-open { overflow: hidden; }
.mobile-menu-overlay {
	position: fixed;
	inset: 0;
	background: rgba(19, 28, 51, 0.55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	z-index: 195;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}
body.mobile-menu-open .mobile-menu-overlay { opacity: 1; pointer-events: auto; }
.mobile-menu__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-inline: var(--page-gutter);
	height: 72px;
	flex-shrink: 0;
	border-bottom: 1px solid var(--color-border);
	background: var(--color-background);
}
.mobile-menu__nav {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 0.75rem var(--page-gutter) 1rem;
	-webkit-overflow-scrolling: touch;
	background: var(--color-background);
}
.mobile-nav-list { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav-list__item { border-bottom: 1px solid color-mix(in srgb, var(--color-border) 40%, transparent); padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
.mobile-nav-list__item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mobile-nav-list__tab,
.mobile-nav-list__top {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 0.85rem 0;
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: left;
	color: var(--color-foreground);
}
.mobile-nav-list__tab:hover,
.mobile-nav-list__top:hover { color: var(--color-primary); }
.mobile-nav-list__sub { padding: 0 0 0.5rem; }
.mobile-nav-list__group { margin-bottom: 1.15rem; }
.mobile-nav-list__group:last-child { margin-bottom: 0; }
.mobile-nav-list__group-title {
	font-size: 0.68rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--color-foreground) 50%, transparent);
	margin-bottom: 0.5rem;
	padding-top: 0.15rem;
}
.mobile-nav-list__link {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.55rem 0;
	font-size: 0.9rem;
	color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
}
.mobile-nav-list__link:hover { color: var(--color-primary); }
.mobile-nav-list__link--cta {
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 4px;
	padding-top: 0.75rem;
}
.mobile-nav-list__feature {
	display: block;
	width: 100%;
	text-align: left;
	margin-top: 0.75rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: 0.75rem;
	background: color-mix(in srgb, var(--color-secondary) 50%, transparent);
}
.mobile-nav-list__feature-eyebrow {
	font-size: 0.62rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--color-primary);
	margin-bottom: 0.35rem;
}
.mobile-nav-list__feature-title {
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 0.35rem;
}
.mobile-nav-list__feature-cta {
	font-size: 0.65rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--color-primary);
}
.mobile-menu__footer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	padding: 1rem var(--page-gutter);
	border-top: 1px solid var(--color-border);
	flex-shrink: 0;
	background: color-mix(in srgb, var(--color-secondary) 35%, var(--color-background));
}
.mobile-menu__action-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem; border: 1px solid var(--color-border); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
.mobile-menu__action-btn:hover { background: var(--color-primary); color: var(--color-primary-foreground); }
.mobile-menu__action-btn--primary { grid-column: 1 / -1; background: var(--color-primary); color: var(--color-primary-foreground); }

/* =====================================================================
   Hero carousel
   ===================================================================== */
.hero-carousel {
	position: relative;
	width: 100%;
	height: 100svh;
	overflow: hidden;
}
body.admin-bar:not(.theme-no-hero) .hero-carousel {
	margin-top: calc(-1 * var(--admin-bar-offset));
}
.hero-carousel__slides { position: absolute; inset: 0; }
.hero-carousel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease-smooth); overflow: hidden; }
.hero-carousel__slide.is-active { opacity: 1; z-index: 1; }
.hero-carousel__img { min-width: 100%; min-height: 100%; }
.hero-carousel__gradient {
	position: absolute; inset: 0;
	background: linear-gradient(to top, color-mix(in srgb, var(--color-foreground) 55%, transparent), color-mix(in srgb, var(--color-foreground) 10%, transparent) 55%, color-mix(in srgb, var(--color-foreground) 15%, transparent));
	z-index: 2;
}
.hero-carousel__content { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; }
.hero-carousel__content-inner {
	padding-bottom: 5rem;
	display: flex; flex-direction: column;
	align-items: flex-start;
	gap: 2rem;
}
@media (min-width: 768px) {
	.hero-carousel__content-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; padding-bottom: 6rem; }
}
.hero-carousel__title {
	color: var(--color-highlight);
	font-weight: 800;
	font-size: 2rem;
	line-height: 0.9;
	letter-spacing: -0.02em;
}
@media (min-width: 640px) { .hero-carousel__title { font-size: 2.5rem; } }
@media (min-width: 768px) { .hero-carousel__title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-carousel__title { font-size: 3.75rem; } }
@media (min-width: 1280px) { .hero-carousel__title { font-size: 4.5rem; } }
.hero-carousel__cta { flex-shrink: 0; }
.hero-carousel__dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 0.5rem; }
.hero-carousel__dot { height: 8px; width: 8px; border-radius: 999px; background: color-mix(in srgb, var(--color-background) 50%, transparent); transition: all 0.5s; }
.hero-carousel__dot.is-active { width: 2.5rem; background: var(--color-background); }

/* =====================================================================
   Caption strip
   ===================================================================== */
.caption-strip { border-bottom: 2px solid var(--color-border); background: color-mix(in srgb, var(--color-secondary) 60%, transparent); }
.caption-strip__inner { padding-block: 2rem; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .caption-strip__inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.caption-strip__title { font-size: 1.25rem; line-height: 1.3; }
@media (min-width: 768px) { .caption-strip__title { font-size: 1.5rem; } }
.caption-strip__cta { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--color-primary); transition: color 0.3s; }
.caption-strip__cta:hover { color: var(--color-accent); }

/* =====================================================================
   Category tiles
   ===================================================================== */
.category-tiles__inner { padding-block: 4rem 3rem; }
@media (min-width: 1024px) { .category-tiles__inner { padding-block: 5rem 4rem; } }
.category-tiles__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-heading, .category-tiles__heading { font-weight: 800; letter-spacing: -0.02em; }
.category-tiles__heading { font-size: 1.5rem; }
@media (min-width: 768px) { .category-tiles__heading { font-size: 1.875rem; } }
.category-tiles__clear { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--color-primary); }
.category-tiles__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 768px) { .category-tiles__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.category-tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--color-secondary); text-align: left; display: block; width: 100%; }
.category-tile.is-active { outline: 4px solid var(--color-accent); outline-offset: -4px; }
.category-tile__img { transition: transform 1.2s var(--ease-smooth); min-width: 100%; min-height: 100%; }
.category-tile:hover .category-tile__img { transform: scale(1.05); }
.category-tile__gradient { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--color-foreground) 55%, transparent), color-mix(in srgb, var(--color-foreground) 10%, transparent) 55%, color-mix(in srgb, var(--color-foreground) 15%, transparent)); pointer-events: none; }
.category-tile__label { position: absolute; bottom: 1rem; left: 1rem; font-family: var(--font-display); font-weight: 800; color: var(--color-background); font-size: 1rem; letter-spacing: 0.02em; z-index: 2; }
.category-tile__arrow { position: absolute; bottom: 1rem; right: 1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--color-background); color: var(--color-primary); display: flex; align-items: center; justify-content: center; transition: transform 0.3s; z-index: 2; }
.category-tile:hover .category-tile__arrow { transform: translateX(4px); }

/* =====================================================================
   Promo banner
   ===================================================================== */
.promo-banner { padding-bottom: 1rem; }
.promo-banner__link { position: relative; display: block; width: 100%; height: 55vh; overflow: hidden; }
@media (min-width: 768px) { .promo-banner__link { height: 65vh; } }
.promo-banner__img { transition: transform 1.2s var(--ease-smooth); min-width: 100%; min-height: 100%; }
.promo-banner__link:hover .promo-banner__img { transform: scale(1.04); }
.promo-banner__gradient { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--color-foreground) 55%, transparent), color-mix(in srgb, var(--color-foreground) 10%, transparent) 55%, color-mix(in srgb, var(--color-foreground) 15%, transparent)); }
.promo-banner__content { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.5rem; }
@media (min-width: 768px) { .promo-banner__content { padding: 3.5rem; } }
.promo-banner__title { color: var(--color-accent); font-weight: 800; font-size: 2rem; line-height: 0.95; letter-spacing: -0.02em; }
@media (min-width: 768px) { .promo-banner__title { font-size: 3.75rem; } }
.promo-banner__cta { position: absolute; bottom: 1.5rem; right: 1.5rem; transition: transform 0.3s; }
@media (min-width: 768px) { .promo-banner__cta { bottom: 3.5rem; right: 3.5rem; } }
.promo-banner__link:hover .promo-banner__cta { transform: translateX(4px); }

/* =====================================================================
   New arrivals
   ===================================================================== */
.new-arrivals { padding: 3rem 0; }
@media (min-width: 1024px) { .new-arrivals { padding: 5rem 0; } }
.new-arrivals__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: end; }
@media (min-width: 768px) { .new-arrivals__grid { grid-template-columns: 5fr 7fr; gap: 1.5rem; } }
.new-arrivals__col { position: relative; height: 460px; overflow: hidden; display: block; }
@media (min-width: 768px) { .new-arrivals__col { height: 660px; } }
.new-arrivals__img { min-width: 100%; min-height: 100%; }
.new-arrivals__col--right .new-arrivals__img { transition: transform 1.2s var(--ease-smooth); }
.new-arrivals__col--right:hover .new-arrivals__img { transform: scale(1.04); }
.new-arrivals__gradient { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--color-foreground) 30%, transparent), transparent 60%); }
.new-arrivals__title-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.new-arrivals__title { color: var(--color-accent); font-weight: 800; font-size: 3rem; line-height: 0.85; letter-spacing: -0.02em; text-align: center; text-shadow: 0 4px 28px rgba(0,0,0,0.4); }
@media (min-width: 640px) { .new-arrivals__title { font-size: 3.75rem; } }
@media (min-width: 768px) { .new-arrivals__title { font-size: 4.5rem; } }
.new-arrivals__cta { position: absolute; bottom: 1.5rem; right: 1.5rem; transition: transform 0.3s; }
.new-arrivals__col--right:hover .new-arrivals__cta { transform: translateX(4px); }

/* =====================================================================
   Product grid / cards (Section 31.9, 31.13)
   ===================================================================== */
.theme-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: stretch;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }

.theme-product-card-wrap { min-width: 0; height: 100%; }
.theme-product-card { display: flex; flex-direction: column; height: 100%; }
.theme-product-card__image-link { display: block; position: relative; }
.theme-product-card__image-wrapper { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--color-secondary); }
.theme-product-card__img { transition: transform 0.7s; }
.theme-product-card:hover .theme-product-card__img { transform: scale(1.03); }
.theme-product-card__badge {
	position: absolute; top: 0.75rem; left: 0.75rem;
	padding: 0.35rem 0.65rem;
	font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
	background: var(--color-foreground); color: var(--color-background);
	z-index: 2;
}
.theme-product-card__info { flex: 1; padding-top: 1rem; padding-bottom: 0.25rem; min-width: 0; }
.theme-product-card__title-link { display: block; }
.theme-product-card__title { font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.95rem; color: var(--color-foreground); transition: color 0.3s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.theme-product-card__price .amount { font-weight: 600; }
.theme-product-card__price del { color: var(--color-muted-foreground); font-weight: 400; }
.theme-product-card__price ins { text-decoration: none; color: var(--color-accent); }

/* =====================================================================
   Featured / Shop sections
   ===================================================================== */
.featured-products, .shop-section { padding: 4rem 0 5rem; }
.shop-section { background: color-mix(in srgb, var(--color-secondary) 50%, transparent); border-radius: 1.5rem; margin-inline: var(--page-gutter); }
.featured-products__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.featured-products__heading, .shop-heading { font-weight: 800; }
.featured-products__heading { font-size: 1.5rem; }
@media (min-width: 768px) { .featured-products__heading { font-size: 1.875rem; } }
.shop-section__head { text-align: center; padding-top: 4rem; padding-bottom: 1rem; }
@media (min-width: 1024px) { .shop-section__head { padding-top: 6rem; } }
.shop-heading { font-size: 2.25rem; line-height: 1; margin-top: 0.75rem; }
@media (min-width: 768px) { .shop-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .shop-heading { font-size: 3.75rem; } }
.shop-section__body { padding-bottom: 5rem; }
@media (min-width: 1024px) { .shop-section__body { padding-bottom: 7rem; } }

.shop-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; justify-content: center; align-items: center; }
@media (min-width: 640px) { .shop-filters { flex-direction: row; } }
.shop-filter { position: relative; flex: 1 1 auto; max-width: 20rem; }
.shop-filter__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: 0.75rem; border: 2px solid var(--color-border); background: var(--color-background); transition: border-color 0.3s; }
.shop-filter__btn:hover { border-color: var(--color-primary); }
.shop-filter__labels { display: flex; flex-direction: column; align-items: flex-start; }
.shop-filter__label { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted-foreground); }
.shop-filter__value { font-size: 0.875rem; font-weight: 600; margin-top: 0.15rem; }
.shop-filter__list { position: absolute; left: 0; right: 0; top: 100%; margin-top: 0.25rem; z-index: 30; background: var(--color-background); border: 2px solid var(--color-border); border-radius: 0.75rem; box-shadow: var(--shadow-elevated); max-height: 20rem; overflow-y: auto; }
.shop-filter__option { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 0.6rem 1rem; text-align: left; font-size: 0.875rem; }
.shop-filter__option:hover { background: color-mix(in srgb, var(--color-secondary) 60%, transparent); }
.shop-filter__option.is-active { color: var(--color-primary); font-weight: 600; }
.shop-filters__clear-all { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--color-primary); }

.shop-empty-state { padding: 5rem 0; text-align: center; border: 2px dashed var(--color-border); border-radius: 1rem; background: var(--color-background); }
.shop-empty-state__title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; }
.shop-empty-state__text { font-size: 0.875rem; color: var(--color-muted-foreground); }

/* =====================================================================
   Two-up banners
   ===================================================================== */
.two-up-banners { padding: 4rem 0; }
@media (min-width: 1024px) { .two-up-banners { padding: 5rem 0; } }
.two-up-banners__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .two-up-banners__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.two-up-banner { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
@media (min-width: 768px) { .two-up-banner { aspect-ratio: 5 / 6; } }
.two-up-banner__img { transition: transform 1.2s var(--ease-smooth); min-width: 100%; min-height: 100%; }
.two-up-banner:hover .two-up-banner__img { transform: scale(1.04); }
.two-up-banner__gradient { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--color-foreground) 55%, transparent), color-mix(in srgb, var(--color-foreground) 10%, transparent) 55%, color-mix(in srgb, var(--color-foreground) 15%, transparent)); }
.two-up-banner__content { position: absolute; inset-inline: 0; bottom: 0; padding: 1.5rem; }
@media (min-width: 768px) { .two-up-banner__content { padding: 2.5rem; } }
.two-up-banner__eyebrow { display: inline-block; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--color-primary-foreground); background: var(--color-accent); padding: 0.35rem 0.75rem; border-radius: 999px; margin-bottom: 0.75rem; }
.two-up-banner__title { color: var(--color-background); font-weight: 800; font-size: 1.5rem; line-height: 0.95; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .two-up-banner__title { font-size: 1.875rem; } }
@media (min-width: 1024px) { .two-up-banner__title { font-size: 2.25rem; } }

/* =====================================================================
   About / process section
   ===================================================================== */
.process-section__grid { display: grid; grid-template-columns: 1fr; min-height: 70vh; }
@media (min-width: 1024px) { .process-section__grid { grid-template-columns: 1fr 1fr; } }
.process-section__image { position: relative; min-height: 50vh; overflow: hidden; order: 2; }
@media (min-width: 1024px) { .process-section__image { min-height: 100%; order: 1; } }
.process-section__img { object-position: top; }
.process-section__copy { display: flex; flex-direction: column; justify-content: center; padding: 3rem var(--page-gutter); order: 1; }
@media (min-width: 768px) { .process-section__copy { padding: 3rem 3.5rem; } }
@media (min-width: 1024px) { .process-section__copy { padding: 3rem 5rem; order: 2; } }
.process-section__heading { font-size: 1.875rem; line-height: 1; margin: 1.5rem 0 2rem; font-weight: 800; }
@media (min-width: 768px) { .process-section__heading { font-size: 2.25rem; } }
.process-section__body { display: flex; flex-direction: column; gap: 1rem; color: var(--color-muted-foreground); font-size: 0.95rem; line-height: 1.65; margin-bottom: 2.5rem; }
.process-section__quote { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; border-top: 2px solid var(--color-border); padding-top: 2rem; }
@media (min-width: 768px) { .process-section__quote { font-size: 1.5rem; } }

/* =====================================================================
   Brand story + Why band
   ===================================================================== */
.brand-story { position: relative; width: 100%; height: 60vh; overflow: hidden; margin-bottom: 4rem; }
@media (min-width: 768px) { .brand-story { height: 70vh; margin-bottom: 6rem; } }
.brand-story__gradient { position: absolute; inset: 0; background: linear-gradient(to right, color-mix(in srgb, var(--color-accent) 100%, transparent), color-mix(in srgb, var(--color-accent) 85%, transparent), color-mix(in srgb, var(--color-accent) 30%, transparent)); }
.brand-story__content { position: absolute; inset: 0; display: flex; align-items: center; }
.brand-story__inner { max-width: 34rem; }
.brand-story__title { color: var(--color-background); font-weight: 800; font-size: 2.5rem; line-height: 0.95; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .brand-story__title { font-size: 3.75rem; } }
.brand-story__body { color: color-mix(in srgb, var(--color-background) 95%, transparent); font-size: 0.875rem; line-height: 1.65; }
@media (min-width: 768px) { .brand-story__body { font-size: 0.95rem; } }

.why-band { padding-inline: var(--page-gutter); }
.why-band__inner { position: relative; overflow: hidden; background: var(--color-primary); padding: 4rem var(--page-gutter); text-align: center; }
@media (min-width: 640px) { .why-band__inner { padding: 4rem 2.5rem; } }
@media (min-width: 768px) { .why-band__inner { padding: 6rem 4rem; } }
@media (min-width: 1024px) { .why-band__inner { padding: 7rem 6rem; } }
.why-band__doodle { position: absolute; font-size: 7rem; line-height: 1; opacity: 0.2; pointer-events: none; user-select: none; }
@media (min-width: 768px) { .why-band__doodle { font-size: 10rem; } }
.why-band__doodle--1 { top: -1.5rem; left: -1rem; }
.why-band__doodle--2 { bottom: -2.5rem; right: -1rem; }
.why-band__content { position: relative; max-width: 64rem; margin: 0 auto; }
.why-band__title { font-weight: 800; color: var(--color-highlight); line-height: 0.92; letter-spacing: -0.02em; font-size: clamp(2.75rem, 8vw, 6rem); }
.why-band__regular { font-weight: 400; }
.why-band__italic { font-style: italic; font-weight: 600; }
.why-band__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.5rem; }
.why-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--color-highlight); color: var(--color-highlight-foreground); border: 1px solid var(--color-logo-blue); padding: 0.65rem 1.25rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.why-badge__sub { text-transform: none; font-weight: 400; letter-spacing: normal; opacity: 0.7; display: none; }
@media (min-width: 640px) { .why-badge__sub { display: inline; } }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-section { padding: 5rem 0; }
@media (min-width: 1024px) { .faq-section { padding: 7rem 0; } }
.faq-section__heading { font-weight: 800; letter-spacing: -0.02em; font-size: 2.5rem; margin-bottom: 4rem; border-bottom: 2px solid var(--color-border); padding-bottom: 1rem; }
@media (min-width: 768px) { .faq-section__heading { font-size: 3.5rem; } }
@media (min-width: 1024px) { .faq-section__heading { font-size: 4rem; } }
.faq-section__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .faq-section__grid { grid-template-columns: 4fr 8fr; gap: 5rem; } }
.faq-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .faq-sidebar { position: sticky; top: 8rem; align-self: start; } }
.faq-sidebar p { font-size: 1rem; line-height: 1.6; }
@media (min-width: 768px) { .faq-sidebar p { font-size: 1.125rem; } }
.faq-sidebar .btn-cta { align-self: flex-start; height: 3rem; padding: 0 2rem; }
.faq-list { border-top: 2px solid var(--color-border); }
.faq-item { border-bottom: 2px solid var(--color-border); }
.faq-item__question { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; text-align: left; }
.faq-item__question span:first-child { font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.faq-item__icon { flex-shrink: 0; margin-top: 0.1rem; color: var(--color-primary); }
.faq-item .icon-minus { display: none; }
.faq-item.is-open .icon-plus { display: none; }
.faq-item.is-open .icon-minus { display: block; }
.faq-item__answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-smooth); }
.faq-item.is-open .faq-item__answer { max-height: 40rem; }
.faq-item__answer p { padding: 0 0 1.5rem; color: var(--color-muted-foreground); font-size: 0.95rem; line-height: 1.65; }
@media (min-width: 768px) { .faq-item__answer p { padding-right: 3rem; } }

/* =====================================================================
   Contact band + modal + search dialog
   ===================================================================== */
.contact-band { position: relative; margin-top: 6rem; margin-bottom: -5rem; overflow: hidden; background-size: cover; background-position: center; }
@media (min-width: 1024px) { .contact-band { margin-bottom: -7rem; } }
.contact-band__overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-primary) 80%, transparent); }
.contact-band__inner { position: relative; text-align: center; padding-block: 6rem 8rem; }
@media (min-width: 768px) { .contact-band__inner { padding-block: 8rem; } }
.contact-band__title { color: var(--color-background); font-weight: 800; font-size: 2.25rem; line-height: 1; margin: 1.25rem 0 2rem; }
@media (min-width: 768px) { .contact-band__title { font-size: 3rem; } }
@media (min-width: 1024px) { .contact-band__title { font-size: 3.75rem; } }
.contact-band__body { max-width: 32rem; margin: 0 auto 2.5rem; color: color-mix(in srgb, var(--color-background) 90%, transparent); font-size: 0.95rem; line-height: 1.65; }
.contact-band__actions { display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; }
@media (min-width: 640px) { .contact-band__actions { flex-direction: row; } }

.theme-modal, .search-dialog { position: fixed; inset: 0; z-index: 80; display: none; }
.theme-modal.is-open, .search-dialog.is-open { display: block; }
.theme-modal__backdrop, .search-dialog__backdrop {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--color-foreground) 40%, transparent);
	backdrop-filter: blur(4px);
	border: none;
}
.theme-modal__panel {
	position: relative;
	background: var(--color-background);
	max-width: 32rem;
	max-height: 90vh;
	overflow-y: auto;
	margin: 5vh var(--page-gutter);
	padding: 2rem var(--page-gutter);
	border: 1px solid var(--color-border);
}
@media (min-width: 640px) {
	.theme-modal__panel { margin: 5vh auto; padding: 2.5rem; }
}
.theme-modal__close, .search-dialog__close { position: absolute; top: 1.25rem; right: 1.25rem; }
.theme-modal__title { font-size: 1.5rem; line-height: 1.3; margin-bottom: 0.5rem; }
.theme-modal__desc { font-size: 0.95rem; line-height: 1.6; color: var(--color-muted-foreground); }
.theme-modal__contact-info { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); border-top: 1px solid var(--color-border); padding-top: 1rem; margin-top: 0.5rem; }
.theme-modal__contact-info a { display: flex; align-items: center; gap: 0.5rem; }
.theme-modal__contact-info a:hover { color: var(--color-foreground); }
.theme-modal__form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.theme-modal__form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 480px) { .theme-modal__form-row { grid-template-columns: 1fr 1fr; } }
.theme-field { display: flex; flex-direction: column; gap: 0.4rem; }
.theme-field input, .theme-field textarea {
	padding: 0.65rem 0.75rem;
	background: var(--color-background);
	border: 1px solid var(--color-border);
	font-size: 0.875rem;
	transition: border-color 0.3s;
	resize: none;
}
.theme-field input:focus, .theme-field textarea:focus { outline: none; border-color: var(--color-primary); }
.theme-modal__form-actions { display: flex; justify-content: flex-end; }
.theme-modal__success { text-align: center; padding: 2rem 0; }
.theme-modal__success-icon { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--color-primary); color: var(--color-primary-foreground); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }

.search-dialog__panel {
	position: relative;
	z-index: 1;
	background: var(--color-background);
	width: 100%;
	max-height: 92vh;
	overflow-y: auto;
	border-bottom: 1px solid var(--color-border);
	box-shadow: var(--shadow-elevated);
}
.search-dialog__close { top: 1.25rem; right: var(--page-gutter); z-index: 2; }
@media (min-width: 1024px) {
	.search-dialog__close { top: 1.75rem; right: 2rem; }
}
.search-dialog__inner {
	padding-block: 2.5rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}
@media (min-width: 1024px) {
	.search-dialog__inner {
		grid-template-columns: 260px 1fr;
		gap: 4rem;
		padding-block: 3.5rem;
	}
}
.search-dialog__categories h3 {
	font-family: var(--font-display);
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}
.search-dialog__categories ul { display: flex; flex-direction: column; gap: 0.85rem; }
.search-dialog__categories a {
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--color-foreground) 85%, transparent);
}
.search-dialog__categories a:hover { color: var(--color-primary); }
.search-dialog__main { padding-right: 0; }
@media (min-width: 1024px) { .search-dialog__main { padding-right: 4rem; } }
.search-dialog__input-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	border-bottom: 1px solid color-mix(in srgb, var(--color-logo-blue) 30%, transparent);
	padding-bottom: 0.75rem;
}
.search-dialog__input-row svg { opacity: 0.6; flex-shrink: 0; }
.search-dialog__input-row input {
	flex: 1;
	background: transparent;
	border: none;
	font-family: var(--font-display);
	font-size: 1.5rem;
	outline: none;
}
.search-dialog__input-row input::placeholder { color: color-mix(in srgb, var(--color-foreground) 40%, transparent); }
.search-dialog__results { margin-top: 2.5rem; }
.search-dialog__results h4 {
	font-family: var(--font-display);
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}
.search-dialog__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .search-dialog__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .search-dialog__grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.search-dialog__grid .theme-product-card__img { object-fit: cover; }
.search-dialog__no-results { font-size: 0.875rem; color: var(--color-muted-foreground); }
.search-dialog__no-results em { font-family: var(--font-display); font-style: italic; }
body.search-open { overflow: hidden; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--color-foreground); color: var(--color-background); }
.site-footer__newsletter { border-bottom: 1px solid color-mix(in srgb, var(--color-background) 15%, transparent); }
.site-footer__newsletter-inner { padding-block: 3.5rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .site-footer__newsletter-inner { grid-template-columns: 1fr 1fr; } }
.site-footer__newsletter-title { font-size: 1.875rem; line-height: 1.1; }
@media (min-width: 1024px) { .site-footer__newsletter-title { font-size: 2.25rem; } }
.site-footer__newsletter-form { display: flex; width: 100%; }
@media (max-width: 639px) {
	.site-footer__newsletter-form { flex-direction: column; align-items: stretch; gap: 0.75rem; }
	.site-footer__newsletter-submit { margin-left: 0; width: 100%; justify-content: center; }
}
.site-footer__newsletter-input { flex: 1; background: transparent; border: none; border-bottom: 1px solid color-mix(in srgb, var(--color-background) 40%, transparent); padding: 0.75rem 0.25rem; font-size: 0.875rem; color: var(--color-background); }
.site-footer__newsletter-input::placeholder { color: color-mix(in srgb, var(--color-background) 50%, transparent); }
.site-footer__newsletter-input:focus { outline: none; border-color: var(--color-background); }
.site-footer__newsletter-submit { margin-left: 0.75rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0 1.5rem; height: 3rem; background: var(--color-background); color: var(--color-foreground); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; transition: all 0.3s; white-space: nowrap; }
.site-footer__newsletter-submit:hover { background: var(--color-accent); color: var(--color-accent-foreground); }
.site-footer__main { padding-block: 4rem 5rem; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(12, 1fr); gap: 2.5rem; } }
.site-footer__brand { grid-column: span 1; }
@media (min-width: 1024px) { .site-footer__brand { grid-column: span 4; } }
.site-footer__brand .site-logo-img { height: 3.5rem !important; }
.site-footer__tagline { display: block; margin-top: 0.75rem; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-background) 60%, transparent); }
.site-footer__description { margin-top: 1.5rem; font-size: 0.875rem; max-width: 24rem; line-height: 1.65; color: color-mix(in srgb, var(--color-background) 70%, transparent); }
.site-footer__col { grid-column: span 1; }
@media (min-width: 1024px) { .site-footer__col { grid-column: span 2; } }
.site-footer__col-title { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-background) 60%, transparent); margin-bottom: 1.25rem; }
.site-footer__col-list { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__link { font-size: 0.875rem; color: color-mix(in srgb, var(--color-background) 80%, transparent); transition: color 0.3s; }
.site-footer__link:hover { color: var(--color-background); }
.site-footer__link--underline { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__contact-item { display: flex; align-items: flex-start; gap: 0.5rem; }
.site-footer__bottom { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-background) 15%, transparent); display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: space-between; text-align: center; }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; text-align: left; } }
.site-footer__legal { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-background) 55%, transparent); }

/* =====================================================================
   404 / generic pages
   ===================================================================== */
.theme-404-main, .theme-generic-main { padding-top: calc(var(--admin-bar-offset) + var(--announcement-height) + var(--header-height) + 3rem); min-height: 60vh; }
.theme-404 { text-align: center; padding: 4rem 0; }
.theme-404__code { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; }
.theme-404__text { font-size: 1.1rem; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.page-title { font-size: 2rem; font-weight: 800; margin-bottom: 1.5rem; }
.site-main { padding-top: calc(var(--admin-bar-offset) + var(--announcement-height) + var(--header-height) + 2rem); padding-bottom: 4rem; }

/* =====================================================================
   WooCommerce — shop archive
   ===================================================================== */
.shop-archive-main { padding-top: calc(var(--admin-bar-offset) + var(--announcement-height) + var(--header-height) + 3rem); padding-bottom: 5rem; }
.shop-archive__header { margin-bottom: 2.5rem; }
.woocommerce-breadcrumb { display: none; }

/* =====================================================================
   WooCommerce — single product
   ===================================================================== */
.single-product-main { padding-top: calc(var(--admin-bar-offset) + var(--announcement-height) + var(--header-height) + 2rem); padding-bottom: 5rem; }
.single-product-layout__inner { padding-top: 1rem; }
.back-to-shop { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 2rem; transition: color 0.3s; }
.back-to-shop:hover { color: var(--color-foreground); }
.single-product-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; min-width: 0; align-items: start; }
@media (min-width: 1024px) { .single-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-gallery { display: flex; flex-direction: column-reverse; gap: 1rem; }
@media (min-width: 768px) { .theme-product-gallery { flex-direction: row; } }
@media (min-width: 1024px) {
	.theme-product-gallery {
		position: sticky;
		top: calc(var(--admin-bar-offset) + var(--announcement-height) + var(--header-height) + 1.25rem);
	}
}
.theme-product-thumbnails { display: flex; flex-direction: row; gap: 0.75rem; flex-wrap: wrap; max-width: 100%; overflow-x: auto; }
@media (min-width: 768px) { .theme-product-thumbnails { flex-direction: column; flex-wrap: nowrap; } }
.theme-product-thumb { width: 4rem; height: 4rem; flex-shrink: 0; overflow: hidden; border: 2px solid transparent; opacity: 0.6; transition: all 0.3s; }
.theme-product-thumb.is-active, .theme-product-thumb:hover { border-color: var(--color-logo-blue); opacity: 1; }
.theme-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-product-main-image { flex: 1; width: 100%; background: var(--color-secondary); line-height: 0; }
.single-product .theme-product-main-image__img {
	position: static;
	inset: auto;
	width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
	object-position: center;
	background: var(--color-secondary);
	display: block;
}

.theme-product-info { padding-top: 0.25rem; }
@media (min-width: 1024px) { .theme-product-info { padding-top: 0.5rem; } }
.posted_in { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); overflow-wrap: break-word; word-break: break-word; margin: 0; }
.product-title { font-family: var(--font-body); font-weight: 700; font-size: 1.75rem; line-height: 1.08; margin: 0.4rem 0 0.4rem; }
@media (min-width: 768px) { .product-title { font-size: 2.25rem; } }
.theme-product-sku { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 1.25rem; }
.theme-product-price-row { display: flex; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-border); margin-bottom: 1.5rem; flex-wrap: wrap; }
.theme-product-price .amount { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.theme-stock-badge { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; padding: 0.35rem 0.75rem; }
.theme-stock-badge--out { background: var(--color-foreground); color: var(--color-background); }
.woocommerce-product-details__long-description { margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.65; color: color-mix(in srgb, var(--color-foreground) 90%, transparent); overflow-wrap: break-word; word-break: break-word; }
.woocommerce-product-details__long-description p { margin-bottom: 1rem; }

.theme-add-to-cart-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.theme-quantity-wrapper { display: flex; align-items: center; border: 1px solid var(--color-border); }
.theme-quantity-wrapper button { padding: 0.75rem 1rem; transition: background 0.2s; }
.theme-quantity-wrapper button: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_add_to_cart_button.button, .add_to_cart_button.button,
a.single_add_to_cart_button, a.add_to_cart_button, button.single_add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
	flex: 1 1 auto;
	min-width: 160px;
}
.single_add_to_cart_button.button:hover, .add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
}
.single_add_to_cart_button.button:disabled, .single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled, .add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover, .single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover, .add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }
.single-product .single_add_to_cart_button.loading::after, .ajax_add_to_cart.loading::after { display: none !important; }
.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; }

.theme-product-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; text-align: center; margin: 1.75rem 0; }
@media (min-width: 1024px) { .theme-product-features { gap: 0.5rem; margin: 2rem 0; } }
.theme-product-feature__icon { width: 2.75rem; height: 2.75rem; object-fit: contain; margin: 0 auto 0.5rem; display: block; }
@media (min-width: 1024px) { .theme-product-feature__icon { width: 2.5rem; height: 2.5rem; } }
.theme-product-feature__title { font-size: 0.68rem; font-weight: 600; line-height: 1.3; }
.theme-product-feature__sub { font-size: 0.62rem; color: var(--color-muted-foreground); margin-top: 0.2rem; }

.theme-product-details__heading { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.75rem; }
.woocommerce-product-details__short-description { font-size: 0.875rem; line-height: 1.65; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); overflow-wrap: break-word; word-break: break-word; }
.woocommerce-product-details__short-description p { margin-bottom: 0.4rem; }
.theme-product-details__list { list-style: disc; padding-left: 1.15rem; margin: 0; }
.theme-product-details__list li { margin-bottom: 0.45rem; padding-left: 0.1rem; }
.theme-product-details__list li:last-child { margin-bottom: 0; }

.related-products-section { padding: 5rem 0; border-top: 1px solid var(--color-border); margin-top: 2rem; }
.related-products-section__head { margin-bottom: 2.5rem; }
.related-products-section__heading { font-size: 1.75rem; }
@media (min-width: 768px) { .related-products-section__heading { font-size: 2.25rem; } }

/* Variations table (Section 11.5.1) */
.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.4rem; font-weight: 600; font-family: var(--font-body); }
.single-product .variations tbody td.value { padding-top: 0; margin-bottom: 1rem; }
.single-product .variations select { width: 100%; max-width: 20rem; padding: 0.6rem 0.75rem; border: 1px solid var(--color-border); }
.variations label { font-family: var(--font-body); font-weight: 600; font-style: normal; }
.theme-attr-select-hidden { display: none !important; }

/* Responsive integrity (Section 11.13) */
.single-product .theme-product-layout,
.single-product .theme-product-gallery,
.single-product .theme-product-info { min-width: 0; max-width: 100%; }

/* WooCommerce notices — scoped hiding (Section 14.1) */
.single-product .woocommerce-message, .single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-error { display: block; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	padding: 1rem 1.5rem; border-radius: 0.5rem; font-size: 0.875rem; margin-bottom: 1.5rem; list-style: none;
	background: var(--color-secondary); color: var(--color-secondary-foreground); border-left: 4px solid var(--color-primary);
}
.woocommerce-error { background: color-mix(in srgb, var(--color-accent) 15%, white); border-left-color: var(--color-accent); }

/* =====================================================================
   Side cart drawer
   ===================================================================== */
#theme-cart-overlay {
	position: fixed; inset: 0;
	background: color-mix(in srgb, var(--color-foreground) 30%, transparent);
	z-index: 95;
	opacity: 0; pointer-events: none;
	transition: opacity 0.3s;
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }
#theme-cart-drawer {
	position: fixed; top: 0; right: 0; height: 100%;
	width: 100%; max-width: 30rem;
	background: var(--color-background);
	z-index: 96;
	box-shadow: var(--shadow-elevated);
	display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s var(--ease-smooth), opacity 0.3s;
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem var(--page-gutter) 1rem; border-bottom: 1px solid var(--color-border); }
@media (min-width: 768px) {
	.theme-cart-drawer__header { padding: 2rem 2rem 1.25rem; }
}
.theme-cart-drawer__title { font-style: italic; font-size: 1.5rem; }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem var(--page-gutter); text-align: center; gap: 1rem; color: var(--color-muted-foreground); }
.theme-cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.25rem var(--page-gutter); display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) {
	.theme-cart-drawer__items { padding: 1.5rem 2rem; }
}
.theme-cart-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.theme-cart-item__image { width: 6rem; flex-shrink: 0; overflow: hidden; background: var(--color-secondary); display: block; line-height: 0; }
.theme-cart-item__image img { width: 100%; height: auto; object-fit: contain; display: block; }
.theme-cart-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.theme-cart-item__title { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme-cart-item__title:hover { opacity: 0.7; }
.theme-cart-item__variation { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.35rem; font-style: italic; }
.theme-cart-item__price { font-size: 0.875rem; margin-top: 0.35rem; }
.theme-cart-item__controls { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; }
.theme-cart-item__qty { display: flex; align-items: center; border: 1px solid var(--color-border); }
.theme-cart-item__qty button { padding: 0.35rem 0.6rem; transition: background 0.2s; }
.theme-cart-item__qty button:hover { background: var(--color-secondary); }
.theme-cart-item__qty-value { padding: 0 0.6rem; font-size: 0.875rem; min-width: 1.75rem; text-align: center; }
.theme-cart-item__remove { font-size: 0.72rem; text-decoration: underline; text-underline-offset: 4px; color: var(--color-muted-foreground); }
.theme-cart-item__remove:hover { color: var(--color-foreground); }
.theme-cart-drawer__footer { padding: 1.25rem var(--page-gutter); border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) {
	.theme-cart-drawer__footer { padding: 1.5rem 2rem; }
}
.theme-cart-drawer__subtotal-row { display: flex; align-items: baseline; justify-content: space-between; }
.theme-cart-drawer__subtotal-label, .theme-cart-drawer__subtotal-value { font-family: var(--font-display); font-size: 1.25rem; }
.theme-cart-drawer__note { font-size: 0.72rem; color: var(--color-muted-foreground); }
.theme-cart-drawer__checkout { width: 100%; height: 3rem; }

/* =====================================================================
   Checkout (WooCommerce Blocks) — Section 13
   ===================================================================== */
body.woocommerce-checkout,
body:has(.wp-block-woocommerce-checkout) {
	--checkout-max-width: 1280px;
	--checkout-gap: 1.5rem;
}

.checkout-page-shell {
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding-inline: var(--page-gutter);
	box-sizing: border-box;
}

/* Parent shells must not compress the checkout block. */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout #page-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout article,
body.woocommerce-checkout .site-main > .container-wide,
body.woocommerce-checkout .checkout-page-shell,
body:has(.wp-block-woocommerce-checkout) .site-main,
body:has(.wp-block-woocommerce-checkout) #page-content,
body:has(.wp-block-woocommerce-checkout) .entry-content,
body:has(.wp-block-woocommerce-checkout) article,
body:has(.wp-block-woocommerce-checkout) .site-main > .container-wide,
body:has(.wp-block-woocommerce-checkout) .checkout-page-shell {
	max-width: none;
	width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout .site-main,
body:has(.wp-block-woocommerce-checkout) .site-main {
	padding-top: calc(var(--admin-bar-offset) + var(--announcement-height) + var(--header-height) + 2rem);
	padding-bottom: 4rem;
}

body.woocommerce-checkout .page-title,
body:has(.wp-block-woocommerce-checkout) .page-title {
	max-width: var(--checkout-max-width);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout .entry-content,
.entry-content:has(.wp-block-woocommerce-checkout),
.entry-content:has(.wc-block-checkout) {
	width: 100%;
	min-width: 0;
}

/* Checkout root — centered, desired max width. */
body.woocommerce-checkout .entry-content > .wp-block-woocommerce-checkout,
body.woocommerce-checkout .entry-content .wp-block-woocommerce-checkout,
body.woocommerce-checkout .entry-content > .wc-block-checkout,
.entry-content > .wp-block-woocommerce-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content > .wc-block-checkout,
.entry-content .wc-block-checkout {
	max-width: var(--checkout-max-width);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

/* Notices (wc-block-components-notices) — same width and alignment as checkout. */
body.woocommerce-checkout .entry-content > .wc-block-components-notices,
body.woocommerce-checkout .wc-block-components-notices,
.entry-content > .wc-block-components-notices,
.entry-content .wc-block-components-notices {
	max-width: var(--checkout-max-width);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
}

/*
 * Two-column grid on the real layout container
 * (.wc-block-components-sidebar-layout or .wc-block-checkout-sidebar-layout).
 * Overrides WooCommerce flex sidebar-layout (65% / 35%).
 */
body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout,
body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout,
body.woocommerce-checkout .entry-content .wp-block-woocommerce-checkout.wc-block-checkout:not(:has(> .wc-block-components-sidebar-layout)),
body.woocommerce-checkout .entry-content .wp-block-woocommerce-checkout > .wc-block-checkout,
body.woocommerce-checkout .entry-content .wc-block-checkout.wc-block-components-sidebar-layout,
body.woocommerce-checkout .entry-content .wc-block-checkout.wc-block-checkout-sidebar-layout,
body.woocommerce-checkout .entry-content .wc-block-checkout:not(:has(.wc-block-components-sidebar-layout)):not(:has(.wc-block-checkout-sidebar-layout)),
.entry-content .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout,
.entry-content .wp-block-woocommerce-checkout .wc-block-checkout-sidebar-layout,
.entry-content .wp-block-woocommerce-checkout.wc-block-checkout:not(:has(> .wc-block-components-sidebar-layout)),
.entry-content .wp-block-woocommerce-checkout > .wc-block-checkout,
.entry-content .wc-block-components-sidebar-layout,
.entry-content .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,
.entry-content .wc-block-checkout:not(:has(.wc-block-components-sidebar-layout)):not(:has(.wc-block-checkout-sidebar-layout)) {
	display: grid !important;
	flex: unset !important;
	flex-direction: unset !important;
	flex-wrap: nowrap !important;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--checkout-gap);
	align-items: start;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

@media (min-width: 992px) {
	body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout,
	body.woocommerce-checkout .entry-content .wc-block-checkout.wc-block-components-sidebar-layout,
	body.woocommerce-checkout .entry-content .wc-block-checkout.wc-block-checkout-sidebar-layout,
	body.woocommerce-checkout .entry-content .wc-block-checkout:not(:has(.wc-block-components-sidebar-layout)):not(:has(.wc-block-checkout-sidebar-layout)),
	.entry-content .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout,
	.entry-content .wp-block-woocommerce-checkout .wc-block-checkout-sidebar-layout,
	.entry-content .wp-block-woocommerce-checkout.wc-block-checkout:not(:has(> .wc-block-components-sidebar-layout)),
	.entry-content .wp-block-woocommerce-checkout > .wc-block-checkout,
	.entry-content .wc-block-components-sidebar-layout,
	.entry-content .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,
	.entry-content .wc-block-checkout:not(:has(.wc-block-components-sidebar-layout)):not(:has(.wc-block-checkout-sidebar-layout)) {
		grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
	}
}

/* First row: notices span full width. */
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-notices,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-notices,
body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout > .wc-block-components-notices,
body.woocommerce-checkout .wp-block-woocommerce-checkout.wc-block-checkout > .wc-block-components-notices,
body.woocommerce-checkout .wc-block-checkout:not(:has(.wc-block-components-sidebar-layout)):not(:has(.wc-block-checkout-sidebar-layout)) > .wc-block-components-notices,
.entry-content .wc-block-components-sidebar-layout > .wc-block-components-notices,
.entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-notices,
.entry-content .wc-block-checkout.wc-block-components-sidebar-layout > .wc-block-components-notices,
.entry-content .wp-block-woocommerce-checkout.wc-block-checkout > .wc-block-components-notices {
	grid-column: 1 / -1;
	order: 1;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

/* Form column. */
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-main,
body.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block,
.entry-content .wc-block-checkout__main,
.entry-content .wc-block-components-main,
.entry-content .wp-block-woocommerce-checkout-fields-block {
	order: 2;
	flex: none !important;
	width: 100% !important;
	min-width: 0;
	max-width: 100%;
	padding-right: 0 !important;
	margin: 0;
	box-sizing: border-box;
}

/* Order summary / totals column. */
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 {
	order: 3;
	flex: none !important;
	width: 100% !important;
	min-width: 0;
	max-width: 100%;
	padding-left: 0 !important;
	margin: 0;
	box-sizing: border-box;
}

@media (min-width: 992px) {
	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 {
		min-width: 360px;
	}
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout > *,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > *,
body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout > *,
body.woocommerce-checkout .wp-block-woocommerce-checkout.wc-block-checkout > *,
body.woocommerce-checkout .wc-block-checkout:not(:has(.wc-block-components-sidebar-layout)):not(:has(.wc-block-checkout-sidebar-layout)) > *,
.entry-content .wc-block-components-sidebar-layout > *,
.entry-content .wc-block-checkout-sidebar-layout > *,
.entry-content .wc-block-checkout.wc-block-components-sidebar-layout > *,
.entry-content .wp-block-woocommerce-checkout.wc-block-checkout > * {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	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 {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	background: var(--color-background);
	color: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
	border-color: var(--color-primary);
	outline: none;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-secondary);
	border-radius: var(--radius);
	padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: var(--btn-radius) !important;
	text-transform: var(--btn-text-transform);
	letter-spacing: var(--btn-letter-spacing);
	font-weight: var(--btn-font-weight);
}
body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 0.5rem;
	font-family: var(--font-body);
}

/* =====================================================================
   Thank you page — Section 22.8
   ===================================================================== */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .site-main { padding-top: calc(var(--admin-bar-offset) + var(--announcement-height) + var(--header-height) + 2rem); }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-size: 1.5rem; padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; }
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: 30rem; overflow-wrap: break-word;
}

/* =====================================================================
   Cart / My Account width parity — Section 13.7
   ===================================================================== */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-top: calc(var(--admin-bar-offset) + var(--announcement-height) + var(--header-height) + 2rem);
}
