/* ==========================================================================
   Descendant Photography — theme.css
   Design tokens are emitted as CSS custom properties via wp_add_inline_style
   (Section 6 / 22.9). This file never hardcodes a color that has a
   Customizer control.
   ========================================================================== */

/* ---------------------------------------------------------------------
 * Fonts / static tokens
 * ------------------------------------------------------------------- */
:root {
	--font-display: 'Cormorant Garamond', Georgia, serif;
	--font-body: 'Manrope', 'Helvetica Neue', sans-serif;
	--transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
	--radius: 0rem;
	--header-height: 96px;
	--btn-radius: 0;
	--btn-height: 3.5rem;
	--btn-padding: 0 2.25rem;
	--btn-font-size: 0.75rem;
	--btn-font-weight: 500;
	--btn-letter-spacing: 0.16em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0.75rem;
	--card-radius: 0;
	--checkout-gap: 3rem;
}

/* ---------------------------------------------------------------------
 * Reset / base
 * ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: hsl(var(--color-background, 0 0% 100%));
	color: var(--color-foreground);
	background-color: var(--color-background);
	font-family: var(--font-body);
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
img.cover-img,
.hero__img,
.pillar-tile__image,
.story-section__image,
.theme-product-card__image,
.theme-product-gallery__main-img,
.theme-product-thumbnail__img {
	max-width: none;
	height: 100%;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button,
[role="button"],
[type="button"],
[type="submit"],
[type="reset"],
summary,
label[for],
.theme-product-card,
.theme-product-thumbnail,
.pillar-tile__trigger,
.site-footer__collection-link,
.shop-filters__btn,
.theme-qty-minus,
.theme-qty-plus,
.site-cart-toggle,
.site-mobile-toggle {
	cursor: pointer;
}
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6,
.section-heading,
.font-display,
.hero__title,
.hero__title-line,
.heading-reveal-inner,
.theme-product-card__title,
.theme-product-info__title,
.theme-cart-drawer__title,
.contact-form-success__title,
.not-found-page__title,
.page-title,
.site-logo__text,
.site-footer__logo-text,
.pillar-tile__title {
	font-family: var(--font-display);
	font-weight: 620;
	letter-spacing: 0;
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { font-size: inherit; margin: 0; }
.section-heading, .font-display { font-family: var(--font-display); }
.section-heading em,
.hero__title em,
.font-display em,
.heading-reveal em {
	font-family: inherit;
	font-weight: inherit;
	font-style: normal;
}

/* Global cover-image rule — excludes any element meant to fill its box
   (Section 15.1 completeness rule). */
img:not(.cover-img):not(.hero__img):not(.pillar-tile__image):not(.story-section__image):not(.theme-product-card__image):not(.theme-product-gallery__main-img):not(.theme-product-thumbnail__img):not(.site-logo__img):not(.site-footer__logo-img):not(.theme-cart-drawer__item-img) {
	max-width: 100%;
	height: auto;
}
.cover-img, .hero__img, .pillar-tile__image, .story-section__image,
.theme-product-card__image, .theme-product-gallery__main-img, .theme-product-thumbnail__img,
.theme-cart-drawer__item-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

::selection { background: var(--color-primary); color: var(--color-cream); opacity: 0.28; }

/* ---------------------------------------------------------------------
 * Layout containers
 * ------------------------------------------------------------------- */
.container-wide { width: 100%; margin-inline: auto; max-width: 96rem; padding-inline: 1.25rem; }
.container-1500 { width: min(90vw, 1500px); margin-inline: auto; }
.container-1600 { width: min(92vw, 1600px); margin-inline: auto; }
@media (min-width: 640px) { .container-wide { padding-inline: 2rem; } }
@media (min-width: 1024px) { .container-wide { padding-inline: 3rem; } }
@media (min-width: 1280px) { .container-wide { padding-inline: 4rem; } }

.site-main { display: block; }
.theme-no-hero .site-main { padding-top: var(--header-height); }
body.woocommerce-checkout .site-main,
body.theme-thankyou-page .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }

/* ---------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	white-space: nowrap;
	font-family: var(--font-body);
	font-size: var(--btn-font-size);
	text-transform: var(--btn-text-transform);
	letter-spacing: var(--btn-letter-spacing);
	font-weight: var(--btn-font-weight);
	border-radius: var(--btn-radius);
	transition: color 0.5s var(--transition-smooth), background-color 0.5s var(--transition-smooth), border-color 0.5s var(--transition-smooth), opacity 0.3s ease;
	height: 2.5rem;
	padding: 0 1rem;
	border: 1px solid transparent;
}
.btn svg { pointer-events: none; flex-shrink: 0; }
.btn--lg { height: var(--btn-height); padding: var(--btn-padding); }
.btn--primary {
	background: var(--color-primary);
	color: var(--color-primary-fg);
	border-color: var(--color-primary);
}
.btn--primary:hover { background: var(--color-lilac); border-color: var(--color-lilac); color: var(--color-foreground); }
.btn--outline {
	background: transparent;
	color: var(--color-foreground);
	border-color: color-mix(in srgb, var(--color-foreground) 40%, transparent);
}
.btn--outline:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-fg); }
.btn--outline-hero {
	background: transparent;
	color: var(--color-cream);
	border-color: color-mix(in srgb, var(--color-cream) 70%, transparent);
}
.btn--outline-hero:hover { background: color-mix(in srgb, var(--color-cream) 10%, transparent); color: var(--color-cream); }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* ---------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	transition: background-color 0.7s var(--transition-smooth), border-color 0.7s var(--transition-smooth), top 0.2s ease;
	background: transparent;
}
/* Keep the fixed header below the WP admin bar when logged in. */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}
body.admin-bar .scroll-mt-anchor,
body.admin-bar .collections-section,
body.admin-bar .shop-section,
body.admin-bar .story-section,
body.admin-bar .contact-section {
	scroll-margin-top: calc(6rem + 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar .scroll-mt-anchor,
	body.admin-bar .collections-section,
	body.admin-bar .shop-section,
	body.admin-bar .story-section,
	body.admin-bar .contact-section {
		scroll-margin-top: calc(6rem + 46px);
	}
}
.site-header.is-solid {
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(18px);
	border-bottom: 1px solid var(--color-border);
}
/* Match Lovable: solid panel while open — no backdrop-filter (it traps position:fixed). */
.site-header.mobile-open {
	background: var(--color-background);
	backdrop-filter: none;
	border-bottom: 1px solid var(--color-background);
}
.site-header__inner { padding-inline: 1.25rem; position: relative; z-index: 10; }
@media (min-width: 640px) { .site-header__inner { padding-inline: 2rem; } }
@media (min-width: 1024px) { .site-header__inner { padding-inline: 2.5rem; } }

.site-nav { display: flex; align-items: center; justify-content: space-between; height: 5rem; position: relative; z-index: 10; }
@media (min-width: 1024px) { .site-nav { height: 6rem; } }

.site-logo { display: inline-flex; align-items: center; gap: 0.625rem; min-width: 0; }
/* Exact Lovable sizes: 61px → 70px from sm. --logo-height (capped) scales both. */
.site-logo img.site-logo__img,
img.site-logo__img {
	height: var(--logo-height, 61px) !important;
	width: auto !important;
	max-width: none !important;
	max-height: var(--logo-height, 61px) !important;
	object-fit: contain !important;
	transition: filter 0.5s ease;
}
@media (min-width: 640px) {
	.site-logo img.site-logo__img,
	img.site-logo__img {
		height: calc(var(--logo-height, 61px) * 70 / 61) !important;
		max-height: calc(var(--logo-height, 61px) * 70 / 61) !important;
	}
}
.site-header:not(.is-solid):not(.mobile-open) .site-logo__img { filter: brightness(0) invert(1); }
.site-logo__text { font-size: 1.5rem; color: var(--color-foreground); }
.site-header:not(.is-solid):not(.mobile-open) .site-logo__text { color: var(--color-cream); }

.site-nav__links { display: none; align-items: center; gap: 1.75rem; margin-left: auto; margin-right: 1.75rem; }
@media (min-width: 1024px) { .site-nav__links { display: flex; } }
@media (min-width: 1280px) { .site-nav__links { gap: 2.25rem; } }
.theme-nav-list { display: flex; align-items: center; gap: 1.75rem; }
@media (min-width: 1280px) { .theme-nav-list { gap: 2.25rem; } }
.theme-nav-link, .site-nav__links a {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-family: var(--font-body);
	color: var(--color-foreground);
	position: relative;
	transition: color 0.3s ease;
}
.site-header:not(.is-solid):not(.mobile-open) .theme-nav-link,
.site-header:not(.is-solid):not(.mobile-open) .site-nav__links a {
	color: var(--color-cream);
	text-shadow: 0 1px 12px color-mix(in srgb, var(--color-noir) 70%, transparent);
}
.theme-nav-link:hover, .site-nav__links a:hover { color: var(--color-primary); }
.site-header:not(.is-solid):not(.mobile-open) .theme-nav-link:hover,
.site-header:not(.is-solid):not(.mobile-open) .site-nav__links a:hover { color: var(--color-brass-light); }
.theme-nav-link::after, .site-nav__links a::after {
	content: '';
	position: absolute;
	left: 0; bottom: -0.25rem;
	width: 100%; height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s var(--transition-smooth);
}
.theme-nav-link:hover::after, .site-nav__links a:hover::after { transform: scaleX(1); }

.site-nav__shop-link {
	display: none;
	align-items: center;
	border-bottom: 1px solid var(--color-primary);
	padding: 0.5rem 0;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-weight: 500;
	color: var(--color-foreground);
	transition: color 0.3s ease;
}
@media (min-width: 1024px) { .site-nav__shop-link { display: inline-flex; } }
.site-header:not(.is-solid):not(.mobile-open) .site-nav__shop-link { border-color: color-mix(in srgb, var(--color-cream) 70%, transparent); color: var(--color-cream); }

.site-nav__actions { display: flex; align-items: center; gap: 0.25rem; }
.site-cart-toggle, .site-mobile-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem;
	background: transparent;
	border: none;
	color: var(--color-foreground);
	transition: color 0.3s ease;
}
.site-header:not(.is-solid):not(.mobile-open) .site-cart-toggle,
.site-header:not(.is-solid):not(.mobile-open) .site-mobile-toggle { color: var(--color-cream); }
.site-cart-toggle:hover, .site-mobile-toggle:hover { color: var(--color-primary); }
.site-header:not(.is-solid):not(.mobile-open) .site-cart-toggle:hover,
.site-header:not(.is-solid):not(.mobile-open) .site-mobile-toggle:hover { color: var(--color-brass-light); }
.site-mobile-toggle { display: inline-flex; }
@media (min-width: 1024px) { .site-mobile-toggle { display: none; } }

.theme-cart-count {
	position: absolute;
	top: 0; right: 0;
	width: 1.25rem; height: 1.25rem;
	display: flex; align-items: center; justify-content: center;
	font-size: 0.6875rem; font-weight: 500;
	background: var(--color-primary);
	color: var(--color-primary-fg);
	border-radius: 50%;
}
.theme-cart-count:empty { display: none; }

.site-mobile-menu { display: none; }
.site-mobile-menu.is-open {
	display: block;
	position: fixed;
	top: 5rem;
	right: 0;
	bottom: 0;
	left: 0;
	background: var(--color-background);
	border-top: 1px solid var(--color-border);
	padding: 1.5rem 1.25rem;
	overflow-y: auto;
	z-index: 40;
	animation: mobileMenuFadeIn 0.7s var(--transition-smooth) forwards;
}
@media (min-width: 640px) {
	.site-mobile-menu.is-open { padding-inline: 2rem; }
}
body.admin-bar .site-mobile-menu.is-open { top: calc(5rem + 32px); }
@media screen and (max-width: 782px) {
	body.admin-bar .site-mobile-menu.is-open { top: calc(5rem + 46px); }
}
@media (min-width: 1024px) { .site-mobile-menu.is-open { display: none; } }
@keyframes mobileMenuFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
.site-mobile-menu__links {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-height: 100%;
}
.site-mobile-menu__link {
	text-align: left;
	font-family: var(--font-display);
	font-size: 1.875rem;
	padding: 0.75rem 0.5rem;
	color: color-mix(in srgb, var(--color-foreground) 85%, transparent);
	transition: color 0.3s ease;
}
.site-mobile-menu__link:hover { color: var(--color-primary); }
.site-mobile-menu__cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 500;
	background: var(--color-primary);
	color: var(--color-primary-fg);
	transition: opacity 0.3s ease;
}
.site-mobile-menu__cta:hover { opacity: 0.9; }

/* ---------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------- */
.hero {
	position: relative;
	width: 100%;
	min-height: 100svh;
	overflow: clip;
	background: var(--color-noir);
}
@media (min-width: 1024px) { .hero { height: 100vh; min-height: 720px; } }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__img {
	transition: transform 4s var(--transition-smooth);
	animation: heroKenBurns 18s ease-in-out infinite;
}
@keyframes heroKenBurns {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.045); }
}
@media (prefers-reduced-motion: reduce) { .hero__img { animation: none; } }
.hero__overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-noir) 55%, transparent); }
.hero__content {
	position: absolute; inset: 0; z-index: 10;
	display: flex; align-items: center; justify-content: center;
	padding: 5rem 1.25rem 2.5rem;
}
@media (min-width: 640px) { .hero__content { padding-inline: 2rem; } }
.hero__inner { margin-inline: auto; width: 100%; max-width: 64rem; text-align: center; }
.hero__title {
	color: var(--color-cream);
	font-size: 2.8rem;
	line-height: 0.98;
	opacity: 0;
	transform: translateY(24px);
	animation: heroTitleIn 1s var(--transition-smooth) 0.35s forwards;
}
@media (min-width: 640px) { .hero__title { font-size: 3.75rem; } }
@media (min-width: 768px) { .hero__title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero__title { font-size: 6rem; } }
.hero__title-line--emphasis { color: var(--color-brass-light); }
@keyframes heroTitleIn { to { opacity: 1; transform: translateY(0); } }
.hero__subtitle {
	margin: 1.75rem auto 0;
	max-width: 48rem;
	color: color-mix(in srgb, var(--color-cream) 85%, transparent);
	font-weight: 300;
	font-size: 0.9375rem;
	line-height: 1.75;
}
@media (min-width: 640px) { .hero__subtitle { font-size: 1rem; margin-top: 2.25rem; } }
@media (min-width: 768px) { .hero__subtitle { font-size: 1.125rem; } }
.hero__actions { margin-top: 2.25rem; display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; }
@media (min-width: 640px) { .hero__actions { flex-direction: row; } }

.reveal-fade { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth); }
.reveal-fade.is-visible { opacity: 1; transform: translateY(0); }
.reveal-fade[data-reveal-order="0"] { transition-delay: 0s; }
.reveal-fade[data-reveal-order="1"] { transition-delay: 0.08s; }
.reveal-fade[data-reveal-order="2"] { transition-delay: 0.16s; }
.reveal-fade[data-reveal-order="3"] { transition-delay: 0.24s; }
.reveal-fade[data-reveal-order="4"] { transition-delay: 0.32s; }
.reveal-fade[data-reveal-order="5"] { transition-delay: 0.4s; }
body.is-customizer .reveal-fade,
body.is-customizer .heading-reveal-inner,
body.is-customizer .theme-product-card-wrap,
body.is-customizer .pillar-tile { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
	.reveal-fade, .heading-reveal-inner, .theme-product-card-wrap, .pillar-tile, .hero__title { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* Heading reveal (masked slide-up) */
.heading-reveal { overflow: visible; }
.heading-reveal-mask { display: block; overflow: hidden; padding: 0.06em 0.14em 0.3em; margin: -0.06em -0.14em -0.3em; }
.heading-reveal-inner {
	display: inline-block;
	transform: translateY(105%);
	opacity: 0;
	transition: transform 0.95s var(--transition-smooth), opacity 0.95s var(--transition-smooth);
	will-change: transform;
}
.heading-reveal-inner.is-visible,
.heading-reveal.is-visible .heading-reveal-inner { transform: translateY(0); opacity: 1; }
.heading-reveal em, .section-heading em { font-style: normal; }

/* ---------------------------------------------------------------------
 * Section heading scale (per-section, Section 2.2 rule 5)
 * ------------------------------------------------------------------- */
.section-heading { line-height: 0.98; }
.collections-section__heading { font-size: 2.75rem; }
@media (min-width: 640px) { .collections-section__heading { font-size: 3rem; } }
@media (min-width: 768px) { .collections-section__heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .collections-section__heading { font-size: 5.5rem; } }
.collections-section__heading em { color: var(--color-primary); }

.shop-section__heading { font-size: 2.75rem; text-align: center; }
@media (min-width: 640px) { .shop-section__heading { font-size: 3rem; } }
@media (min-width: 768px) { .shop-section__heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .shop-section__heading { font-size: 5.75rem; } }
.shop-section__heading em { color: var(--color-lilac); }

.story-section__heading { font-size: 2.75rem; }
@media (min-width: 640px) { .story-section__heading { font-size: 3rem; } }
@media (min-width: 768px) { .story-section__heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .story-section__heading { font-size: 5rem; } }
@media (min-width: 1280px) { .story-section__heading { font-size: 5.5rem; } }

.contact-section__heading { font-size: 2.75rem; color: var(--color-cream); }
@media (min-width: 640px) { .contact-section__heading { font-size: 3rem; } }
@media (min-width: 768px) { .contact-section__heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .contact-section__heading { font-size: 3.5rem; } }
@media (min-width: 1280px) { .contact-section__heading { font-size: 4.25rem; } }
.contact-section__heading em { color: var(--color-brass-light); }

.related-products-section__heading { font-size: 3rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .related-products-section__heading { font-size: 3.75rem; } }

/* ---------------------------------------------------------------------
 * Collections (pillars)
 * ------------------------------------------------------------------- */
.collections-section { background: var(--color-background); scroll-margin-top: 6rem; }
.collections-section__intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2.5rem; margin-bottom: 5rem; }
@media (min-width: 768px) { .collections-section__intro { gap: 3rem; margin-bottom: 8rem; } }
.collections-section .container-1500 { padding-block: 7rem; }
@media (min-width: 768px) { .collections-section .container-1500 { padding-block: 10rem; } }
@media (min-width: 1024px) { .collections-section .container-1500 { padding-block: 13rem; } }
.collections-section__subtitle { color: var(--color-muted-fg); font-weight: 300; line-height: 1.9; font-size: 1rem; max-width: 36rem; }

.pillars-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4rem 0;
	border-top: 1px solid var(--color-border);
	padding-top: 3rem;
}
@media (min-width: 1024px) { .pillars-grid { grid-template-columns: repeat(3, 1fr); gap: 0 2rem; padding-top: 4rem; } }

.pillar-tile__trigger { display: block; width: 100%; text-align: left; background: none; border: none; padding: 0; }
.pillar-tile__image-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-secondary); }
.pillar-tile__image { transition: transform 1.4s ease-out; }
.pillar-tile__trigger:hover .pillar-tile__image { transform: scale(1.05); }
.pillar-tile__image-wrap::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(to top, color-mix(in srgb, var(--color-noir) 35%, transparent), transparent 60%);
	opacity: 0;
	transition: opacity 0.7s ease;
}
.pillar-tile__trigger:hover .pillar-tile__image-wrap::after { opacity: 1; }
.pillar-tile__body { padding-top: 1.75rem; padding-right: 1rem; }
@media (min-width: 768px) { .pillar-tile__body { padding-top: 2.25rem; } }
@media (min-width: 1024px) { .pillar-tile__body { padding-right: 2rem; } }
.pillar-tile__index { display: block; font-size: 0.875rem; font-weight: 600; color: var(--color-lilac); margin-bottom: 2rem; }
.pillar-tile__title { font-size: 1.5rem; margin-bottom: 1.25rem; line-height: 1.05; transition: color 0.5s ease; }
@media (min-width: 768px) { .pillar-tile__title { font-size: 1.875rem; } }
.pillar-tile__trigger:hover .pillar-tile__title { color: var(--color-primary); }
.pillar-tile__description { font-size: 0.875rem; color: var(--color-muted-fg); font-weight: 300; line-height: 1.6; }

/* ---------------------------------------------------------------------
 * Shop section + product cards
 * ------------------------------------------------------------------- */
.shop-section { background: var(--color-background); scroll-margin-top: 6rem; }
.shop-section .container-1600 { padding-block: 7rem; }
@media (min-width: 768px) { .shop-section .container-1600 { padding-block: 10rem; } }
@media (min-width: 1024px) { .shop-section .container-1600 { padding-block: 13rem; } }
.shop-section__intro { margin: 0 auto 5rem; max-width: 64rem; }
@media (min-width: 768px) { .shop-section__intro { margin-bottom: 7rem; } }
.shop-section__count { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted-fg); margin-bottom: 1.5rem; }
.shop-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.35rem;
	margin-bottom: 2rem;
}
.shop-filters__btn {
	appearance: none;
	background: transparent;
	border: 1px solid transparent;
	border-bottom: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
	color: var(--color-muted-fg);
	font-family: var(--font-body);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 0.65rem 0.9rem;
	transition: color 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}
.shop-filters__btn:hover {
	color: var(--color-foreground);
	border-bottom-color: var(--color-primary);
}
.shop-filters__btn.is-active {
	color: var(--color-foreground);
	border-color: color-mix(in srgb, var(--color-primary) 35%, transparent);
	border-bottom-color: var(--color-primary);
	background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.shop-section__more-wrap { display: flex; justify-content: center; margin-top: 3rem; }

.theme-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 5rem 1.25rem;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, 1fr); gap: 5rem 2.5rem; } }
.related-products-section__grid { grid-template-columns: 1fr; gap: 4rem 1.5rem; }
@media (min-width: 640px) { .related-products-section__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .related-products-section__grid { grid-template-columns: repeat(4, 1fr); gap: 4rem 2.5rem; } }

.theme-product-card-wrap { min-width: 0; }
.theme-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}
.theme-product-card > .theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }
.theme-product-card__add-link { position: relative; z-index: 3; pointer-events: auto; }

.theme-product-card__image-wrapper { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-secondary); }
.theme-product-card__image { transition: transform 0.8s cubic-bezier(0.25, 0.4, 0.25, 1); }
.theme-product-card:hover .theme-product-card__image { transform: scale(1.05); }
.theme-product-card__image-wrapper::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(to top, color-mix(in srgb, var(--color-noir) 25%, transparent), transparent 60%);
	opacity: 0;
	transition: opacity 0.5s ease;
}
.theme-product-card:hover .theme-product-card__image-wrapper::after { opacity: 1; }

.theme-product-card__info { flex: 1; display: flex; flex-direction: column; padding-top: 1.25rem; }
.theme-product-card__title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; min-width: 0; }
.theme-product-card__title { font-size: 1.5rem; line-height: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s ease; }
@media (min-width: 768px) { .theme-product-card__title { font-size: 1.875rem; } }
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { font-family: var(--font-body); font-size: 1rem; font-weight: 400; white-space: nowrap; margin-top: 0.25rem; }
.theme-product-card__price .woocommerce-Price-amount { font-family: var(--font-body); }
.theme-product-card__teaser {
	font-size: 0.875rem; color: var(--color-muted-fg); font-weight: 300; line-height: 1.6;
	margin-bottom: 1.25rem;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.theme-product-card__cta { margin-top: auto; }
.theme-product-card__add-link {
	display: inline-flex; align-items: center; gap: 0.375rem;
	font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
	color: var(--color-primary);
	border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 60%, transparent);
	padding-bottom: 0.25rem;
	transition: border-color 0.3s ease;
	background: transparent;
}
.theme-product-card:hover .theme-product-card__add-link { border-color: var(--color-primary); }
.theme-product-card__add-arrow { display: inline-block; transition: transform 0.3s ease; }
.theme-product-card:hover .theme-product-card__add-arrow { transform: translateX(0.25rem); }
.theme-product-card__soldout { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted-fg); }

/* ---------------------------------------------------------------------
 * Story sections (about / owner)
 * ------------------------------------------------------------------- */
.story-section { scroll-margin-top: 6rem; }
.story-section--background { background: var(--color-background); }
.story-section--warm { background: color-mix(in srgb, var(--color-secondary) 55%, var(--color-background) 45%); }
.story-section .container-1500 { padding-block: 7rem; }
@media (min-width: 768px) { .story-section .container-1500 { padding-block: 10rem; } }
@media (min-width: 1024px) { .story-section .container-1500 { padding-block: 13rem; } }

.story-section__grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .story-section__grid { grid-template-columns: repeat(12, 1fr); gap: 3rem; } }
@media (min-width: 1280px) { .story-section__grid { gap: 6rem; } }
.story-section__image-col { min-width: 0; }
.story-section__copy-col { min-width: 0; }
@media (min-width: 1024px) {
	.story-section__image-col { grid-column: span 6; order: 1; }
	.story-section__copy-col { grid-column: span 6; order: 2; }
}
.story-section__image-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-secondary); }
.story-section__body { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; color: var(--color-muted-fg); font-weight: 300; font-size: 1rem; line-height: 1.9; max-width: 36rem; }
@media (min-width: 768px) { .story-section__body { font-size: 1.125rem; } }
.story-section__highlight { color: var(--color-primary); font-weight: 400; }
.story-section__linkedin { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-primary); font-weight: 500; transition: color 0.3s ease; }
.story-section__linkedin:hover { color: var(--color-foreground); }

/* ---------------------------------------------------------------------
 * Contact section
 * ------------------------------------------------------------------- */
.contact-section { background: var(--color-noir); color: var(--color-cream); scroll-margin-top: 6rem; }
.contact-section .container-1500 { padding-block: 7rem; }
@media (min-width: 768px) { .contact-section .container-1500 { padding-block: 10rem; } }
@media (min-width: 1024px) { .contact-section .container-1500 { padding-block: 13rem; } }
.contact-section__grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: stretch; }
@media (min-width: 1024px) { .contact-section__grid { grid-template-columns: repeat(12, 1fr); gap: 3rem; } }
@media (min-width: 1280px) { .contact-section__grid { gap: 6rem; } }
.contact-section__intro { display: flex; flex-direction: column; min-width: 0; }
@media (min-width: 1024px) { .contact-section__intro { grid-column: span 5; } }
.contact-section__subtitle { margin-top: 1.25rem; color: color-mix(in srgb, var(--color-cream) 70%, transparent); font-weight: 300; line-height: 1.6; max-width: 28rem; }
.contact-section__items { margin-top: 3.5rem; display: flex; flex-direction: column; gap: 1.5rem; flex: 1; }
.contact-section__item { display: flex; align-items: center; gap: 1rem; }
.contact-section__item-icon {
	width: 2.75rem; height: 2.75rem; flex-shrink: 0;
	border: 1px solid color-mix(in srgb, var(--color-cream) 20%, transparent);
	display: flex; align-items: center; justify-content: center;
	color: var(--color-brass-light);
	transition: border-color 0.3s ease;
}
.contact-section__item:hover .contact-section__item-icon { border-color: var(--color-brass-light); }
.contact-section__item-text { font-size: 0.875rem; font-weight: 300; color: color-mix(in srgb, var(--color-cream) 80%, transparent); transition: color 0.3s ease; }
.contact-section__item:hover .contact-section__item-text { color: var(--color-cream); }
.contact-section__item--static:hover .contact-section__item-icon { border-color: color-mix(in srgb, var(--color-cream) 20%, transparent); }

.contact-section__form-col { min-width: 0; display: flex; flex-direction: column; height: 100%; }
@media (min-width: 1024px) { .contact-section__form-col { grid-column: span 7; } }

.contact-form { display: flex; flex-direction: column; gap: 2rem; border-top: 1px solid color-mix(in srgb, var(--color-cream) 25%, transparent); padding-top: 2.5rem; flex: 1; }
.contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }
.contact-form__field { display: flex; flex-direction: column; }
.contact-form__field--grow { flex: 1; }
.contact-form__label { font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-brass-light); margin-bottom: 0.75rem; }
.contact-form__input {
	width: 100%;
	padding: 0.875rem 1rem;
	background: transparent;
	border: 1px solid color-mix(in srgb, var(--color-cream) 25%, transparent);
	color: var(--color-cream);
	font-size: 0.875rem;
	font-family: var(--font-body);
	font-weight: 300;
	transition: border-color 0.3s ease;
}
.contact-form__input::placeholder { color: color-mix(in srgb, var(--color-cream) 30%, transparent); }
.contact-form__input:focus { outline: none; border-color: var(--color-brass-light); }
.contact-form__textarea { resize: none; flex: 1; }
.contact-form__error { font-size: 0.8125rem; color: #ff9d9d; }
.contact-form__submit { width: 100%; }

.contact-form-success { border: 1px solid color-mix(in srgb, var(--color-cream) 25%, transparent); padding: 2.5rem; text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.contact-form-success[hidden] { display: none; }
@media (min-width: 768px) { .contact-form-success { padding: 3.5rem; } }
.contact-form-success__icon { width: 3.5rem; height: 3.5rem; background: var(--color-primary); color: var(--color-cream); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.contact-form-success__title { font-size: 1.875rem; color: var(--color-cream); margin-bottom: 0.75rem; }
.contact-form-success__body { color: color-mix(in srgb, var(--color-cream) 65%, transparent); font-weight: 300; line-height: 1.6; max-width: 24rem; margin: 0 auto; }

/* ---------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------- */
.site-footer { background: var(--color-noir); color: var(--color-cream); border-top: 1px solid color-mix(in srgb, var(--color-cream) 10%, transparent); }
.site-footer__inner { padding-top: 4rem; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .site-footer__inner { padding-top: 5rem; padding-bottom: 3rem; } }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2rem; } }
.site-footer__brand { min-width: 0; }
@media (min-width: 640px) { .site-footer__brand { padding-right: 1.5rem; } }
.site-footer__logo-img {
	height: calc(var(--logo-height, 61px) * 70 / 61) !important;
	width: auto !important;
	max-width: none !important;
	max-height: calc(var(--logo-height, 61px) * 70 / 61) !important;
	object-fit: contain !important;
	filter: brightness(0) invert(1);
}
@media (min-width: 768px) {
	.site-footer__logo-img {
		height: calc(var(--logo-height, 61px) * 81 / 61) !important;
		max-height: calc(var(--logo-height, 61px) * 81 / 61) !important;
	}
}
.site-footer__logo-text { font-size: 1.75rem; color: var(--color-cream); }
.site-footer__tagline { margin-top: 1.25rem; max-width: 26ch; font-size: 0.875rem; font-weight: 300; line-height: 1.8; color: color-mix(in srgb, var(--color-cream) 55%, transparent); }
.site-footer__heading { font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; color: color-mix(in srgb, var(--color-cream) 45%, transparent); }
.site-footer__list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.875rem; }
.site-footer__list a, .site-footer__list button {
	background: none; border: none; padding: 0; text-align: left;
	font-size: 0.875rem; font-weight: 300; color: color-mix(in srgb, var(--color-cream) 70%, transparent);
	transition: color 0.4s ease;
}
.site-footer__list a:hover, .site-footer__list button:hover { color: var(--color-cream); }
.site-footer__connect-link { display: inline-flex; align-items: center; gap: 0.75rem; }
.site-footer__connect-link svg { color: color-mix(in srgb, var(--color-cream) 45%, transparent); transition: color 0.4s ease; }
.site-footer__connect-link:hover svg { color: var(--color-brass-light); }
.site-footer__bottom {
	margin-top: 3.5rem;
	border-top: 1px solid color-mix(in srgb, var(--color-cream) 10%, transparent);
	padding-top: 1.75rem;
	display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
}
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; align-items: center; } }
.site-footer__copyright { font-size: 0.75rem; color: color-mix(in srgb, var(--color-cream) 55%, transparent); }
.site-footer__attribution { font-size: 0.75rem; color: color-mix(in srgb, var(--color-cream) 45%, transparent); }
.site-footer__attribution a { color: color-mix(in srgb, var(--color-cream) 75%, transparent); font-weight: 500; transition: color 0.4s ease; }
.site-footer__attribution a:hover { color: var(--color-cream); }

/* ---------------------------------------------------------------------
 * Page / 404
 * ------------------------------------------------------------------- */
.page-content-wrap { padding-block: 4rem; }
.page-title { font-size: 2.5rem; margin-bottom: 1.5rem; }
.not-found-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.not-found-page__inner { text-align: center; }
.not-found-page__title { font-size: 6rem; line-height: 1; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .not-found-page__title { font-size: 10rem; } }
.not-found-page__body { font-size: 1.25rem; color: var(--color-muted-fg); font-weight: 300; margin-bottom: 2rem; }
.not-found-page__link { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; border-bottom: 1px solid var(--color-primary); padding-bottom: 0.5rem; color: var(--color-primary); }

/* =======================================================================
 * WooCommerce — single product
 * ===================================================================== */
/* Single product page needs top padding for fixed header */
main.single-product.site-main,
.single-product.site-main { padding-top: var(--header-height); }
body.admin-bar main.single-product.site-main { padding-top: calc(var(--header-height) + 32px); }
@media screen and (max-width: 782px) {
	body.admin-bar main.single-product.site-main { padding-top: calc(var(--header-height) + 46px); }
}
.single-product__wrap { padding-block: 2.5rem 7rem; }
@media (min-width: 1024px) {
	.single-product__wrap { padding-block: 3rem 11rem; }
}
.single-product__back-row { margin-bottom: 1.5rem; }
.single-product__back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-fg); transition: color 0.3s ease; }
.single-product__back-link:hover { color: var(--color-foreground); }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; min-width: 0; }
@media (min-width: 1024px) {
	.theme-product-layout { grid-template-columns: 7fr 5fr; gap: 3rem; }
}
@media (min-width: 1280px) {
	.theme-product-layout { gap: 6rem; }
}
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
/* Lovable: lg:py-20 lg:sticky lg:top-20 lg:self-start */
@media (min-width: 1024px) {
	.theme-product-info {
		padding-block: 5rem;
		position: sticky;
		top: 5rem;
		align-self: start;
	}
	body.admin-bar .theme-product-info { top: calc(5rem + 32px); }
}
@media screen and (max-width: 782px) {
	body.admin-bar .theme-product-info { top: calc(5rem + 46px); }
}

.theme-product-gallery__main { position: relative; aspect-ratio: 4 / 5; background: var(--color-secondary); overflow: hidden; margin-bottom: 1rem; }
.theme-product-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumbnail { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border: 2px solid transparent; opacity: 0.6; background: none; padding: 0; transition: opacity 0.3s ease, border-color 0.3s ease; }
.theme-product-thumbnail:hover { opacity: 1; }
.theme-product-thumbnail.is-active { border-color: var(--color-primary); opacity: 1; }

.theme-product-info__categories { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-fg); pointer-events: none; }
.theme-product-info__title { font-size: 3rem; line-height: 0.95; margin-top: 1rem; margin-bottom: 1.5rem; overflow-wrap: break-word; word-break: break-word; }
@media (min-width: 768px) { .theme-product-info__title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .theme-product-info__title { font-size: 4.5rem; } }
.theme-product-info__price { font-size: 1.5rem; font-weight: 400; margin-bottom: 2rem; }
.theme-product-info__stock--out { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted-fg); margin-bottom: 1.5rem; }
.theme-product-info__description { color: var(--color-muted-fg); line-height: 1.85; font-weight: 300; margin-bottom: 2.5rem; max-width: 32rem; overflow-wrap: break-word; word-break: break-word; }
.theme-product-info__description p { margin-bottom: 1em; }

.theme-add-to-cart-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.theme-quantity-wrapper { display: flex; align-items: center; border: 1px solid var(--color-border); }
.theme-qty-minus, .theme-qty-plus { padding: 0.75rem 1rem; background: transparent; border: none; transition: background-color 0.3s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input {
	width: 3.5rem; min-width: 48px; text-align: center; padding: 0.75rem 0;
	border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border);
	font-family: var(--font-body); background: transparent; color: var(--color-foreground);
	-moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-product-info__details { border-top: 1px solid var(--color-border); padding-top: 2rem; }
.theme-product-info__details-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.theme-product-info__details-list { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-product-info__details-list li { display: flex; align-items: flex-start; font-size: 0.875rem; color: var(--color-muted-fg); }
.theme-product-info__details-list li::before {
	content: ''; width: 0.375rem; height: 0.375rem; border-radius: 50%;
	background: var(--color-primary); margin-top: 0.5rem; margin-right: 0.75rem; flex-shrink: 0;
}

.related-products-section { border-top: 1px solid var(--color-border); padding-block: 7rem; }
@media (min-width: 1024px) { .related-products-section { padding-block: 10rem; } }

/* =======================================================================
 * WooCommerce — add to cart button overrides (Section 11.4.1)
 * ===================================================================== */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-fg) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-primary-fg) !important;
}
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

.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;
}

/* Card compact variant — overrides the global rules above (scoped after) */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
	min-height: unset !important;
	padding: 0 !important;
	background: transparent !important;
	color: var(--color-primary) !important;
	border-radius: 0 !important;
	border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 60%, transparent) !important;
	font-size: 0.75rem !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	font-weight: 500 !important;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart:hover {
	opacity: 1 !important;
	background: transparent !important;
	color: var(--color-primary) !important;
	border-color: var(--color-primary) !important;
}
.single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

/* "View cart" injected after AJAX add — not part of the design */
.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; }

/* Variation table layout (label above control) */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; }
.single-product .variations tbody td.value { padding-top: 0; }
.theme-attr-select-hidden { display: none !important; }

/* Notices — scoped hiding only where the drawer already gives feedback */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	font-family: var(--font-body);
	border: 1px solid var(--color-border);
	background: var(--color-secondary);
	color: var(--color-foreground);
	padding: 1rem 1.5rem;
	margin-bottom: 1.5rem;
	list-style: none;
}

/* =======================================================================
 * WooCommerce — shop archive
 * ===================================================================== */
.shop-archive .site-main { padding-top: var(--header-height); }
.shop-archive__header { padding-block: 3rem 2rem; text-align: center; }
.shop-archive__title { font-size: 3rem; }
@media (min-width: 768px) { .shop-archive__title { font-size: 4rem; } }
.shop-archive__grid { padding-bottom: 6rem; }
.woocommerce-no-products-found { text-align: center; padding: 4rem 0; color: var(--color-muted-fg); }

/* =======================================================================
 * Side cart drawer
 * ===================================================================== */
#theme-cart-overlay {
	position: fixed; inset: 0; z-index: 60;
	background: color-mix(in srgb, var(--color-noir) 45%, transparent);
	opacity: 0; pointer-events: none;
	transition: opacity 0.4s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

#theme-cart-drawer {
	position: fixed; top: 0; right: 0; height: 100%;
	width: 100%; max-width: 32rem;
	background: var(--color-background);
	z-index: 61;
	display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.5s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 2rem 1.5rem; border-bottom: 1px solid var(--color-border); }
@media (min-width: 768px) { .theme-cart-drawer__header { padding-inline: 2.5rem; } }
.theme-cart-drawer__title { font-size: 2.25rem; }
.theme-cart-drawer__close { background: none; border: none; padding: 0.25rem; color: var(--color-foreground); transition: opacity 0.3s ease; }
.theme-cart-drawer__close:hover { opacity: 0.6; }

.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1rem; }
.theme-cart-drawer__empty-icon { color: var(--color-muted-fg); }
.theme-cart-drawer__empty-text { color: var(--color-muted-fg); margin-bottom: 0.5rem; }

.theme-cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) { .theme-cart-drawer__items { padding: 2.5rem; } }
.theme-cart-drawer__item { display: flex; gap: 1rem; }
.theme-cart-drawer__item-image { position: relative; width: 6rem; height: 8rem; flex-shrink: 0; overflow: hidden; background: var(--color-secondary); display: block; }
.theme-cart-drawer__item-image img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center !important;
}
.theme-cart-drawer__item-body { flex: 1; min-width: 0; }
.theme-cart-drawer__item-name { display: block; font-size: 0.875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.3s ease; }
.theme-cart-drawer__item-name:hover { opacity: 0.7; }
.theme-cart-drawer__item-variation { font-size: 0.75rem; color: var(--color-muted-fg); margin-top: 0.125rem; }
.theme-cart-drawer__item-price { font-size: 0.875rem; color: var(--color-muted-fg); margin-top: 0.125rem; }
.theme-cart-drawer__item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-drawer__qty-btn { padding: 0.25rem; background: none; border: none; border-radius: 4px; transition: background-color 0.3s ease; display: inline-flex; }
.theme-cart-drawer__qty-btn:hover { background: var(--color-secondary); }
.theme-cart-drawer__qty-value { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-drawer__remove { margin-left: auto; font-size: 0.75rem; color: var(--color-muted-fg); background: none; border: none; transition: color 0.3s ease; }
.theme-cart-drawer__remove:hover { color: var(--color-foreground); }

.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 768px) { .theme-cart-drawer__footer { padding: 2.5rem; } }
.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__note { font-size: 0.75rem; color: var(--color-muted-fg); }
.theme-cart-drawer__checkout-btn { width: 100%; }

/* =======================================================================
 * Checkout Block overrides (Sections 13.0.1–13.6)
 * ===================================================================== */
body.woocommerce-checkout .entry-content { max-width: 100%; }
body.woocommerce-checkout .page-title,
body.woocommerce-checkout .entry-content { padding-inline: 0; }

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
	body.woocommerce-checkout .wc-block-checkout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap);
		align-items: start;
	}
}
body.woocommerce-checkout .wc-block-components-notice-banner { grid-column: 1 / -1; }

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0; width: 100%; max-width: none;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	border: 1px solid var(--color-border);
	border-radius: 0;
	background: var(--color-background);
	color: var(--color-foreground);
	padding: revert;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus { outline: none; border-color: var(--color-primary); }
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: var(--color-muted-fg); }

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-secondary);
	border-radius: var(--card-radius);
	padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: var(--color-primary) !important;
	color: var(--color-primary-fg) !important;
	border-radius: 0 !important;
	font-family: var(--font-body) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.14em !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.85; }

/* =======================================================================
 * Cart / My Account / Thank-you page width parity (Section 13.7)
 * ===================================================================== */
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content,
body.theme-thankyou-page .entry-content { max-width: 100%; }

/* =======================================================================
 * Thank-you page (Section 22.8)
 * ===================================================================== */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	font-size: 1.75rem;
	padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex; flex-wrap: wrap; gap: 1.5rem;
	list-style: none; padding: 0; margin: 0 0 2rem;
	border-bottom: 1px solid var(--color-border); padding-bottom: 1.5rem;
}
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
	padding: 0.75rem; border-bottom: 1px solid var(--color-border); text-align: left;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details {
	display: flex; flex-direction: column; gap: 1.5rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px; overflow-wrap: break-word;
	border: 1px solid var(--color-border); padding: 1.5rem; font-style: normal;
}
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details {
		display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
	}
	body.theme-thankyou-page .woocommerce-customer-details address { max-width: none; }
}

/* =======================================================================
 * Typography resets (Section 2.2)
 * ===================================================================== */
.btn, .btn-hero-primary, .btn-hero-outline, .single-product .single_add_to_cart_button { text-transform: uppercase; }
.product-title, .theme-product-info__title { font-family: var(--font-display); font-weight: 620; font-synthesis: none; }
.variations label { font-family: var(--font-body); font-weight: 600; font-style: normal; }
