/* =========================================================================
   Sounding Pen Studio — theme.css
   ========================================================================= */

:root {
	--color-background: #f0e8db;
	--color-foreground: #1a1a1a;
	--color-card: #f7f2e9;
	--color-primary: #c8663c;
	--color-primary-foreground: #f9f6f0;
	--color-secondary: #e2d9cb;
	--color-muted: #d7cfc1;
	--color-muted-foreground: #605a52;
	--color-border: #c9c0b1;
	--color-destructive: #bd2828;
	--color-button-text: #f9f6f0;

	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Inter', system-ui, sans-serif;

	--radius: 2px;
	--card-radius: 4px;
	--logo-height: 40px;

	--btn-radius: 0px;
	--btn-height: 44px;
	--btn-padding: 0 2rem;
	--btn-font-size: 0.875rem;
	--btn-font-weight: 500;
	--btn-letter-spacing: 0.015em;
	--btn-text-transform: none;

	--shadow-soft: 0 4px 20px -4px rgba(0,0,0,0.08);
	--shadow-elevated: 0 8px 40px -8px rgba(0,0,0,0.18);
	--ease-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);

	--header-height: 64px;
}

@media (min-width: 1024px) {
	:root { --header-height: 80px; }
}

/* -------------------------------------------------------------------------
   RESET
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "ss01", "ss02";
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	margin: 0;
	letter-spacing: -0.01em;
	font-feature-settings: "ss01", "ss02";
	font-variation-settings: "SOFT" 30, "WONK" 0;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; padding: 0; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

img:not(.cover-img):not(.hero-bg-img):not(.hero__bg-img):not(.product-card-img):not(.theme-product-main-img) {
	max-width: 100%;
	height: auto;
	display: block;
}
.cover-img, .hero-bg-img, .product-card-img, .theme-product-main-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* -------------------------------------------------------------------------
   LAYOUT UTILITIES
   ------------------------------------------------------------------------- */
.container-wide {
	width: 100%;
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide { padding-left: 2rem; padding-right: 2rem; }
}
.section-padding { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) {
	.section-padding { padding-top: 7rem; padding-bottom: 7rem; }
}
.scroll-mt-anchor { scroll-margin-top: 6rem; }

/* -------------------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------------------- */
.btn-hero-primary, .btn-hero-outline, .theme-btn-primary, .theme-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: var(--btn-height);
	padding: var(--btn-padding);
	border-radius: var(--btn-radius);
	font-family: var(--font-body);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	white-space: nowrap;
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
}
.btn-hero-primary, .theme-btn-primary {
	background-color: var(--color-primary);
	color: var(--color-button-text);
	border: none;
}
.btn-hero-primary:hover, .theme-btn-primary:hover { opacity: 0.9; }

.btn-hero-outline {
	background-color: color-mix(in srgb, var(--color-foreground) 30%, transparent);
	color: var(--color-background);
	border: 1px solid color-mix(in srgb, var(--color-background) 40%, transparent);
	backdrop-filter: blur(4px);
}
.btn-hero-outline:hover { background-color: color-mix(in srgb, var(--color-foreground) 50%, transparent); }

.theme-btn-outline {
	background-color: transparent;
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
}
.theme-btn-outline:hover { background-color: var(--color-secondary); }

.link-underline { position: relative; display: inline-block; }
.link-underline::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0;
	width: 100%; height: 1px;
	background-color: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

/* -------------------------------------------------------------------------
   SCROLL REVEAL SYSTEM
   ------------------------------------------------------------------------- */
.reveal-item {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
	transition-delay: var(--reveal-delay, 0s);
}
.reveal-stagger.is-visible .reveal-item { opacity: 1; transform: translateY(0); }

body.is-customizer .reveal-item,
body.is-customizer .theme-anim {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item, .theme-anim { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
	html { scroll-behavior: auto; }
}

.theme-anim { opacity: 0; }
.theme-anim--fade { animation: sps-fadeIn var(--anim-duration, 0.8s) var(--ease-smooth) forwards; animation-delay: var(--anim-delay, 0s); }
.theme-anim--fade-up { animation: sps-fadeUp var(--anim-duration, 0.8s) var(--ease-smooth) forwards; animation-delay: var(--anim-delay, 0s); }

@keyframes sps-fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sps-fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.section-eyebrow { display: flex; align-items: center; gap: 0.75rem; }
.section-eyebrow--center { justify-content: center; }
.section-eyebrow__line {
	display: block;
	height: 1px;
	width: 0;
	background-color: var(--color-primary);
	transition: width 0.7s var(--ease-smooth);
	transition-delay: 0.2s;
}
.reveal-stagger.is-visible .section-eyebrow__line { width: 36px; }
.section-eyebrow__label {
	font-family: var(--font-display);
	color: var(--color-primary);
	font-size: 0.75rem;
	letter-spacing: 0.35em;
	text-transform: uppercase;
}
@media (min-width: 768px) { .section-eyebrow__label { font-size: 0.875rem; } }

.section-heading { font-weight: inherit; letter-spacing: -0.01em; line-height: 1; }
.section-heading em { font-style: italic; color: var(--color-primary); font-weight: 400; }

.section-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3rem; }
.section-index { font-family: var(--font-display); letter-spacing: 0.2em; font-size: 0.75rem; color: color-mix(in srgb, var(--color-muted-foreground) 70%, transparent); display: flex; align-items: center; gap: 0.5rem; }
.section-index__num { color: var(--color-primary); }
.section-index__line { height: 1px; width: 1.5rem; display: block; background-color: color-mix(in srgb, var(--color-muted-foreground) 30%, transparent); }
.section-top-label { display: none; font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: color-mix(in srgb, var(--color-muted-foreground) 70%, transparent); }
@media (min-width: 768px) { .section-top-label { display: block; } }

/* -------------------------------------------------------------------------
   HEADER
   ------------------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	width: 100%;
	z-index: 50;
	background-color: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-solid,
.site-header.menu-open {
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-bottom-color: var(--color-border);
}
.site-header.is-solid .site-logo-img,
.site-header.menu-open .site-logo-img { filter: none; }
.site-header.is-solid .site-logo-text,
.site-header.menu-open .site-logo-text { color: var(--color-foreground); }
.site-header.is-solid .theme-nav-list--desktop a,
.site-header.menu-open .theme-nav-list--desktop a { color: var(--color-foreground); }
.site-header.is-solid .theme-cart-btn,
.site-header.menu-open .theme-cart-btn { color: var(--color-foreground); }
.site-header.is-solid .theme-mobile-toggle,
.site-header.menu-open .theme-mobile-toggle { color: var(--color-foreground); }
.site-header.is-solid .theme-cart-count,
.site-header.menu-open .theme-cart-count { background-color: var(--color-primary); color: var(--color-primary-foreground); }

.site-nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
@media (min-width: 1024px) { .site-nav { height: 80px; } }

.site-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.site-logo-img {
	height: 32px !important;
	width: auto !important;
	max-width: none !important;
	display: block;
	transition: filter 0.3s ease;
}
@media (min-width: 1024px) {
	.site-logo-img { height: var(--logo-height) !important; }
}
.site-header:not(.is-solid):not(.menu-open) .site-logo-img { filter: brightness(0) invert(1); }
.site-logo-text {
	font-family: var(--font-display);
	font-size: 1.5rem;
	color: var(--color-foreground);
	transition: color 0.3s ease;
}
.site-header:not(.is-solid):not(.menu-open) .site-logo-text { color: #fff; }

.site-nav__right {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	transition: color 0.3s ease;
}
@media (min-width: 1024px) { .site-nav__right { gap: 2rem; } }

.theme-nav-list--desktop {
	display: none;
	align-items: center;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 768px) { .theme-nav-list--desktop { display: flex; } }
@media (min-width: 1024px) { .theme-nav-list--desktop { gap: 2rem; } }
.theme-nav-list--desktop li { margin: 0; padding: 0; list-style: none; }
.theme-nav-list--desktop a {
	position: relative;
	display: inline-block;
	font-size: 0.875rem;
	font-family: var(--font-body);
	font-weight: 400;
	letter-spacing: 0.025em;
	color: var(--color-foreground);
	transition: color 0.3s ease;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
}
.theme-nav-list--desktop a::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0;
	width: 100%; height: 1px;
	background-color: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease-smooth);
}
.theme-nav-list--desktop a:hover::after { transform: scaleX(1); }
.site-header:not(.is-solid):not(.menu-open) .theme-nav-list--desktop a { color: #fff; }

.site-nav__actions { display: flex; align-items: center; gap: 0.5rem; }

.theme-cart-btn {
	position: relative;
	padding: 0.5rem;
	color: var(--color-foreground);
	transition: opacity 0.2s ease, color 0.3s ease;
}
.site-header:not(.is-solid):not(.menu-open) .theme-cart-btn { color: #fff; }
.theme-cart-btn:hover { opacity: 0.6; }
.theme-cart-count {
	position: absolute;
	top: -2px; right: -2px;
	width: 20px; height: 20px;
	display: flex; align-items: center; justify-content: center;
	font-size: 10px; font-weight: 500;
	border-radius: 999px;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	transition: background-color 0.3s ease, color 0.3s ease;
}
.theme-cart-count:empty { display: none; }
.site-header:not(.is-solid):not(.menu-open) .theme-cart-count { background-color: #fff; color: var(--color-foreground); }

/* WordPress admin bar — prevent header overlap in preview / logged-in view */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

.theme-mobile-toggle { padding: 0.5rem; color: var(--color-foreground); transition: opacity 0.2s ease, color 0.3s ease; }
.site-header:not(.is-solid):not(.menu-open) .theme-mobile-toggle { color: #fff; }
.theme-mobile-toggle:hover { opacity: 0.6; }
.theme-mobile-toggle .icon-close { display: none; }
.theme-mobile-toggle.is-open .icon-menu { display: none; }
.theme-mobile-toggle.is-open .icon-close { display: block; }
@media (min-width: 768px) { .theme-mobile-toggle { display: none; } }

.theme-mobile-menu {
	display: block;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	border-top: 1px solid transparent;
	padding: 0;
	transition: max-height 0.45s var(--ease-smooth), opacity 0.35s var(--ease-smooth), padding 0.35s var(--ease-smooth), border-color 0.35s ease;
}
.theme-mobile-menu.is-open {
	max-height: 420px;
	opacity: 1;
	border-top-color: var(--color-border);
	padding: 1rem 0;
}
.theme-mobile-nav-list { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.theme-mobile-nav-list li {
	opacity: 0;
	transform: translateX(-14px);
	transition: opacity 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth);
	list-style: none;
	margin: 0;
	padding: 0;
}
.theme-mobile-menu.is-open .theme-mobile-nav-list li {
	opacity: 1;
	transform: translateX(0);
}
.theme-mobile-menu.is-open .theme-mobile-nav-list li:nth-child(1) { transition-delay: 0.06s; }
.theme-mobile-menu.is-open .theme-mobile-nav-list li:nth-child(2) { transition-delay: 0.11s; }
.theme-mobile-menu.is-open .theme-mobile-nav-list li:nth-child(3) { transition-delay: 0.16s; }
.theme-mobile-menu.is-open .theme-mobile-nav-list li:nth-child(4) { transition-delay: 0.21s; }
.theme-mobile-menu.is-open .theme-mobile-nav-list li:nth-child(5) { transition-delay: 0.26s; }
.theme-mobile-nav-list a {
	display: block;
	padding: 0.5rem 0;
	font-size: 0.875rem;
	font-family: var(--font-body);
	letter-spacing: 0.025em;
	color: var(--color-foreground);
	transition: color 0.2s ease;
}
.theme-mobile-nav-list a:hover { color: var(--color-muted-foreground); }
@media (min-width: 768px) {
	.theme-mobile-menu { display: none !important; max-height: none !important; opacity: 1 !important; }
}

/* -------------------------------------------------------------------------
   HERO
   ------------------------------------------------------------------------- */
.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background-color: var(--color-foreground);
	padding-top: 6rem;
}
.admin-bar .hero {
	margin-top: -32px;
	padding-top: calc(6rem + 32px);
	min-height: calc(100svh + 32px);
}
@media screen and (max-width: 782px) {
	.admin-bar .hero {
		margin-top: -46px;
		padding-top: calc(6rem + 46px);
		min-height: calc(100svh + 46px);
	}
}
body.theme-no-hero .site-main { padding-top: 6rem; }

.hero__bg-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 0;
}
.hero__bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transform: scale(1.06);
	transform-origin: center center;
	will-change: transform;
}
.hero__gradient {
	position: absolute; inset: 0;
	z-index: 1;
	background: linear-gradient(to top, color-mix(in srgb, var(--color-foreground) 90%, transparent), color-mix(in srgb, var(--color-foreground) 55%, transparent) 55%, color-mix(in srgb, var(--color-foreground) 25%, transparent));
}
.hero__content { position: relative; z-index: 10; width: 100%; padding-bottom: 4rem; }
@media (min-width: 768px) { .hero__content { padding-bottom: 6rem; } }

.hero__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: end; }
@media (min-width: 768px) { .hero__grid { grid-template-columns: repeat(12, 1fr); } }
.hero__main { grid-column: 1 / -1; }
@media (min-width: 768px) { .hero__main { grid-column: 1 / span 8; } }
@media (min-width: 1024px) { .hero__main { grid-column: 1 / span 7; } }

.hero__eyebrow-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.hero__eyebrow-line { height: 1px; width: 3rem; background-color: var(--color-primary); }
.hero__eyebrow-text { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.35em; text-transform: uppercase; color: color-mix(in srgb, var(--color-background) 90%, transparent); }

.hero__title { color: var(--color-background); font-size: 3rem; line-height: 0.95; letter-spacing: -0.02em; }
@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-first { font-style: italic; font-weight: 400; }
.hero__title-dot { color: var(--color-primary); }

.hero__subtitle {
	font-family: var(--font-body);
	color: color-mix(in srgb, var(--color-background) 90%, transparent);
	font-size: 1rem;
	line-height: 1.7;
	margin-top: 1.5rem;
	margin-bottom: 2rem;
	max-width: 36rem;
}
@media (min-width: 768px) { .hero__subtitle { font-size: 1.25rem; } }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.hero__actions .btn-hero-primary, .hero__actions .btn-hero-outline { padding-left: 2rem; padding-right: 2rem; font-size: 0.875rem; letter-spacing: 0.02em; }

.hero__side { display: none; grid-column: 9 / span 4; }
@media (min-width: 768px) { .hero__side { display: block; } }
@media (min-width: 1024px) { .hero__side { grid-column: 8 / span 5; } }
.hero__side-tagline {
	text-align: right;
	font-family: var(--font-body);
	font-size: 0.75rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--color-background) 80%, transparent);
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}
.hero__side-note {
	padding-top: 0.5rem;
	font-family: var(--font-display);
	font-style: italic;
	color: var(--color-primary);
	text-transform: none;
	letter-spacing: normal;
	font-size: 0.875rem;
}

/* -------------------------------------------------------------------------
   ABOUT
   ------------------------------------------------------------------------- */
.about-section { background-color: var(--color-background); position: relative; }
.about-section__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .about-section__grid { grid-template-columns: repeat(12, 1fr); gap: 4rem; } }
.about-section__image-col { grid-column: 1 / -1; }
@media (min-width: 768px) { .about-section__image-col { grid-column: 1 / span 5; } }
.about-section__image-frame { position: relative; }
.about-section__image-border { position: absolute; top: -0.75rem; left: -0.75rem; width: 100%; height: 100%; border: 1px solid color-mix(in srgb, var(--color-primary) 40%, transparent); display: none; }
@media (min-width: 768px) { .about-section__image-border { display: block; } }
.about-section__image { position: relative; width: 100%; aspect-ratio: 4/5; }
.about-section__text-col { grid-column: 1 / -1; }
@media (min-width: 768px) { .about-section__text-col { grid-column: 6 / span 7; } }
.about-section__heading { font-size: 2.25rem; margin-top: 1.25rem; margin-bottom: 2rem; line-height: 1; }
@media (min-width: 768px) { .about-section__heading { font-size: 3rem; } }
@media (min-width: 1024px) { .about-section__heading { font-size: 3.75rem; } }
.about-section__body { display: flex; flex-direction: column; gap: 1.25rem; color: var(--color-muted-foreground); font-family: var(--font-body); font-size: 1rem; line-height: 1.7; }
@media (min-width: 768px) { .about-section__body { font-size: 1.125rem; } }
.about-section__signature { color: var(--color-foreground); font-style: italic; font-family: var(--font-display); font-size: 1.25rem; }

/* -------------------------------------------------------------------------
   SERVICES
   ------------------------------------------------------------------------- */
.services-section { background-color: var(--color-card); position: relative; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.services-section__intro { max-width: 48rem; margin-bottom: 4rem; }
.services-section__heading { font-size: 2.25rem; margin-top: 1.25rem; margin-bottom: 1.5rem; line-height: 1; }
@media (min-width: 768px) { .services-section__heading { font-size: 3rem; } }
@media (min-width: 1024px) { .services-section__heading { font-size: 3.75rem; } }
.services-section__paragraph { color: var(--color-muted-foreground); font-family: var(--font-body); font-size: 1rem; line-height: 1.7; }
@media (min-width: 768px) { .services-section__paragraph { font-size: 1.125rem; } }
.services-section__grid { display: grid; grid-template-columns: 1fr; gap: 1px; background-color: var(--color-border); }
@media (min-width: 768px) { .services-section__grid { grid-template-columns: 1fr 1fr; } }
.services-section__card { background-color: var(--color-card); padding: 2rem; transition: background-color 0.3s ease; }
@media (min-width: 768px) { .services-section__card { padding: 2.5rem; } }
.services-section__card:hover { background-color: var(--color-background); }
.services-section__icon { color: var(--color-primary); display: inline-flex; margin-bottom: 1.5rem; }
.services-section__card-title { font-size: 1.5rem; margin-bottom: 0.75rem; line-height: 1.2; letter-spacing: -0.01em; }
@media (min-width: 768px) { .services-section__card-title { font-size: 1.875rem; } }
.services-section__card-body { color: var(--color-muted-foreground); font-family: var(--font-body); line-height: 1.7; margin-bottom: 1.25rem; }
.services-section__card-note { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-primary); }

/* -------------------------------------------------------------------------
   PORTFOLIO
   ------------------------------------------------------------------------- */
.portfolio-section { background-color: var(--color-background); position: relative; }
.portfolio-section__intro-row { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .portfolio-section__intro-row { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.portfolio-section__heading { font-size: 2.25rem; margin-top: 1.25rem; line-height: 1; max-width: 40rem; }
@media (min-width: 768px) { .portfolio-section__heading { font-size: 3rem; } }
@media (min-width: 1024px) { .portfolio-section__heading { font-size: 3.75rem; } }
.portfolio-section__resume-link { font-family: var(--font-body); font-size: 0.875rem; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0; transition: color 0.2s ease; }
.portfolio-section__resume-link:hover { color: var(--color-primary); }

.portfolio-section__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .portfolio-section__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 1.25rem; } }
.portfolio-section__tile { position: relative; overflow: hidden; background-color: var(--color-foreground); display: block; min-height: 260px; }
@media (min-width: 768px) { .portfolio-section__tile.span-big { grid-column: span 2; grid-row: span 2; } .portfolio-section__tile.span-wide { grid-column: span 3; } }
.portfolio-section__tile-img { transition: transform 0.7s ease; }
.portfolio-section__tile:hover .portfolio-section__tile-img { transform: scale(1.05); }
.portfolio-section__tile-gradient { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--color-foreground) 90%, transparent), color-mix(in srgb, var(--color-foreground) 30%, transparent) 60%, transparent); }
.portfolio-section__tile-content { position: relative; height: 100%; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; color: var(--color-background); }
@media (min-width: 768px) { .portfolio-section__tile-content { padding: 1.75rem; } }
.portfolio-section__tile-kind { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: color-mix(in srgb, var(--color-background) 70%, transparent); margin-bottom: 0.5rem; display: block; }
.portfolio-section__tile-title { font-size: 1.5rem; line-height: 1.2; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; }
@media (min-width: 768px) { .portfolio-section__tile-title { font-size: 1.875rem; } }
.portfolio-section__tile-title svg { flex-shrink: 0; opacity: 0.7; transition: all 0.3s ease; }
.portfolio-section__tile:hover .portfolio-section__tile-title svg { opacity: 1; transform: translate(4px, -4px); }
.portfolio-section__footnote { margin-top: 2.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); font-family: var(--font-body); font-style: italic; }

/* -------------------------------------------------------------------------
   SHOP + PRODUCT CARDS (also used in archive, single-product related)
   ------------------------------------------------------------------------- */
.shop-section { background-color: var(--color-card); position: relative; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.shop-section__intro { text-align: center; max-width: 42rem; margin: 0 auto 3.5rem; }
.shop-section__heading { font-size: 2.25rem; margin-top: 1.25rem; margin-bottom: 1.5rem; line-height: 1; }
@media (min-width: 768px) { .shop-section__heading { font-size: 3rem; } }
@media (min-width: 1024px) { .shop-section__heading { font-size: 3.75rem; } }
.shop-section__paragraph { color: var(--color-muted-foreground); font-family: var(--font-body); font-size: 1rem; line-height: 1.7; }
@media (min-width: 768px) { .shop-section__paragraph { font-size: 1.125rem; } }

.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, 1fr); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

.theme-product-card-wrap {
	display: flex;
	transition: transform 0.3s var(--ease-smooth);
}
.theme-product-card-wrap:hover { transform: translateY(-6px); }
.theme-product-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}
.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 1 / 1;
	background-color: var(--color-card);
	overflow: hidden;
	border: 1px solid var(--color-border);
	margin-bottom: 1rem;
}
.theme-product-card__image { transition: transform 0.6s var(--ease-smooth); }
.theme-product-card:hover .theme-product-card__image { transform: scale(1.05); }
.theme-product-card__image.is-sold-out { opacity: 0.6; }
.theme-product-card__badge {
	position: absolute;
	top: 0.75rem; left: 0.75rem;
	padding: 0.375rem 0.75rem;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	background-color: var(--color-foreground);
	color: var(--color-background);
}
.theme-product-card__info { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.theme-product-card__category { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-product-card__title {
	font-family: var(--font-display);
	font-size: 1.125rem;
	line-height: 1.2;
	transition: color 0.3s ease;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (min-width: 768px) { .theme-product-card__title { font-size: 1.25rem; } }
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); font-family: var(--font-body); }
.theme-product-card__price .woocommerce-Price-amount { font-family: var(--font-body); }

/* Product card stacking: overlay link vs ATC button (only when ATC is present) */
.theme-product-card-wrap:has(.theme-product-card__atc) .theme-card-link,
.theme-product-card-wrap:has(.theme-product-card__atc) .theme-product-card { position: relative; z-index: 2; }
.theme-product-card-wrap:has(.theme-product-card__atc) .theme-product-card__image-wrapper { z-index: 3; pointer-events: none; }
.theme-product-card-wrap:has(.theme-product-card__atc) .theme-product-card__atc { position: relative; z-index: 4; pointer-events: auto; }
.theme-product-card-wrap:has(.theme-product-card__atc) .theme-product-card *:not(.theme-card-link):not(.theme-product-card__atc) { pointer-events: none; }
.theme-product-card-wrap:has(.theme-product-card__atc) .theme-product-card__atc,
.theme-product-card-wrap:has(.theme-product-card__atc) .theme-product-card__atc * { pointer-events: auto; }

.theme-shop-empty { text-align: center; padding: 3rem 0; color: var(--color-muted-foreground); }
.theme-shop-pagination { margin-top: 3rem; text-align: center; }
.theme-shop-pagination .page-numbers { display: inline-flex; gap: 0.5rem; }
.theme-shop-pagination .page-numbers li a, .theme-shop-pagination .page-numbers li span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 2.25rem; height: 2.25rem; border: 1px solid var(--color-border);
}
.theme-shop-pagination .page-numbers li .current { background-color: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }

/* -------------------------------------------------------------------------
   CTA BAND
   ------------------------------------------------------------------------- */
.cta-section { position: relative; overflow: hidden; isolation: isolate; background-color: var(--color-foreground); }
.cta-section__bg-wrap { position: absolute; inset: 0; z-index: -1; }
.cta-section__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-section__gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--color-foreground) 85%, transparent), color-mix(in srgb, var(--color-foreground) 75%, transparent), color-mix(in srgb, var(--color-foreground) 90%, transparent)); }
.cta-section__content { position: relative; padding-top: 7rem; padding-bottom: 7rem; color: var(--color-background); }
@media (min-width: 768px) { .cta-section__content { padding-top: 10rem; padding-bottom: 10rem; } }
.cta-section__inner { max-width: 48rem; margin: 0 auto; text-align: center; }
.cta-section__heading { color: var(--color-background); font-size: 2.25rem; margin-top: 1.25rem; margin-bottom: 1.5rem; line-height: 1; }
@media (min-width: 768px) { .cta-section__heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .cta-section__heading { font-size: 4.5rem; } }
.cta-section__paragraph { color: color-mix(in srgb, var(--color-background) 80%, transparent); font-family: var(--font-body); font-size: 1rem; max-width: 36rem; margin: 0 auto 2.5rem; }
@media (min-width: 768px) { .cta-section__paragraph { font-size: 1.125rem; } }
.cta-section__btn {
	padding: 1.75rem 2.5rem;
	font-size: 1rem;
	letter-spacing: 0.02em;
	box-shadow: 0 20px 40px -10px color-mix(in srgb, var(--color-primary) 30%, transparent);
}

/* -------------------------------------------------------------------------
   CONTACT
   ------------------------------------------------------------------------- */
.contact-section { background-color: var(--color-background); position: relative; }
.contact-section__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .contact-section__grid { grid-template-columns: repeat(12, 1fr); gap: 4rem; } }
.contact-section__info { grid-column: 1 / -1; height: 100%; }
@media (min-width: 1024px) { .contact-section__info { grid-column: 1 / span 5; } }
.contact-section__info-card {
	background-color: var(--color-card);
	border: 1px solid var(--color-border);
	padding: 2rem;
	height: 100%;
	display: flex;
	flex-direction: column;
}
@media (min-width: 768px) { .contact-section__info-card { padding: 2.5rem; } }
@media (min-width: 1024px) { .contact-section__info-card { padding: 3rem; } }
.contact-section__info-top { flex: 1; }
.contact-section__heading { font-size: 2.25rem; margin-top: 1.25rem; margin-bottom: 1.5rem; line-height: 1; }
@media (min-width: 768px) { .contact-section__heading { font-size: 3rem; } }
@media (min-width: 1024px) { .contact-section__heading { font-size: 3.75rem; } }
.contact-section__paragraph { color: var(--color-muted-foreground); font-family: var(--font-body); font-size: 1rem; line-height: 1.7; max-width: 28rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .contact-section__paragraph { font-size: 1.125rem; } }
.contact-section__list { display: flex; flex-direction: column; gap: 1.25rem; font-family: var(--font-body); }
.contact-section__list-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-section__list-icon { margin-top: 0.25rem; flex-shrink: 0; width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; background-color: color-mix(in srgb, var(--color-primary) 10%, transparent); color: var(--color-primary); }
.contact-section__list-label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.25rem; }
.contact-section__list-value { font-size: 1rem; display: inline-block; overflow-wrap: break-word; word-break: break-word; transition: color 0.2s ease; }
.contact-section__list-value:hover { color: var(--color-primary); }
.contact-section__elsewhere { padding-top: 2rem; border-top: 1px solid var(--color-border); margin-top: auto; }
.contact-section__elsewhere-label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.contact-section__social-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.contact-section__social-link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1rem; border: 1px solid var(--color-border); font-family: var(--font-body); font-size: 0.875rem; transition: border-color 0.2s ease, color 0.2s ease; }
.contact-section__social-link:hover { border-color: var(--color-primary); color: var(--color-primary); }

.contact-section__form-col { grid-column: 1 / -1; height: 100%; }
@media (min-width: 1024px) { .contact-section__form-col { grid-column: 6 / span 7; } }
.contact-section__form-card {
	background-color: var(--color-card);
	border: 1px solid var(--color-border);
	padding: 2rem;
	height: 100%;
}
@media (min-width: 768px) { .contact-section__form-card { padding: 2.5rem; } }
@media (min-width: 1024px) { .contact-section__form-card { padding: 3rem; } }
.theme-contact-form { display: flex; flex-direction: column; gap: 1.25rem; height: 100%; }
.theme-contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .theme-contact-form__row { grid-template-columns: 1fr 1fr; } }
.theme-contact-form__field { display: flex; flex-direction: column; }
.theme-contact-form__field--grow { flex: 1; }
.theme-contact-form label {
	font-size: 0.75rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
	font-family: var(--font-body);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-muted-foreground);
}
.theme-contact-form input, .theme-contact-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-size: 0.875rem;
	color: var(--color-foreground);
	transition: border-color 0.2s ease;
}
.theme-contact-form input::placeholder, .theme-contact-form textarea::placeholder { color: color-mix(in srgb, var(--color-muted-foreground) 60%, transparent); }
.theme-contact-form input:focus, .theme-contact-form textarea:focus { outline: none; border-color: color-mix(in srgb, var(--color-primary) 60%, transparent); }
.theme-contact-form textarea { resize: none; min-height: 120px; flex: 1; }
.theme-contact-form__submit-row { padding-top: 0.5rem; margin-top: auto; }
.theme-contact-form__submit { padding-left: 2.5rem; padding-right: 2.5rem; width: 100%; }
@media (min-width: 768px) { .theme-contact-form__submit { width: auto; } }
.theme-contact-form__status { font-size: 0.8rem; color: var(--color-primary); min-height: 1em; }
.theme-contact-form__status.is-error { color: var(--color-destructive); }

/* -------------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--color-border); background-color: var(--color-card); position: relative; overflow: hidden; }
.site-footer__inner { padding-top: 3.5rem; padding-bottom: 4rem; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.site-footer__logo { display: flex; align-items: baseline; gap: 0.5rem; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.site-footer__logo-italic { font-style: italic; }
.site-footer__tagline { margin-top: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); max-width: 24rem; line-height: 1.7; font-family: var(--font-body); }
.site-footer__social { display: flex; gap: 1rem; margin-top: 1.25rem; }
.site-footer__social-link { color: var(--color-muted-foreground); transition: color 0.2s ease; }
.site-footer__social-link:hover { color: var(--color-primary); }
.site-footer__col-title { font-size: 0.75rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-muted-foreground); }
.theme-footer-nav-list { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-footer-nav-list a { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); transition: color 0.2s ease; text-transform: capitalize; }
.theme-footer-nav-list a:hover { color: var(--color-primary); }
.site-footer__studio-list { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__studio-email { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.site-footer__studio-email a:hover { color: var(--color-primary); }
.site-footer__studio-note { font-size: 0.875rem; color: var(--color-muted-foreground); font-style: italic; }
.site-footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: space-between; }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; } }
.site-footer__copyright, .site-footer__credit { font-size: 0.75rem; color: var(--color-muted-foreground); }
.site-footer__credit a { text-decoration: underline; transition: color 0.2s ease; }
.site-footer__credit a:hover { color: var(--color-primary); }

/* -------------------------------------------------------------------------
   404
   ------------------------------------------------------------------------- */
.theme-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; background-color: var(--color-muted); padding-top: 0; }
.theme-404__inner { text-align: center; padding: 2rem; }
.theme-404__title { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.theme-404__message { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-404__link { color: var(--color-primary); text-decoration: underline; }
.theme-404__link:hover { opacity: 0.9; }

/* -------------------------------------------------------------------------
   GENERIC PAGE / SITE MAIN
   ------------------------------------------------------------------------- */
.site-main { padding-top: 6rem; }
body.theme-no-hero .site-main { padding-top: 6rem; padding-bottom: 4rem; }
@media (min-width: 1024px) {
	.site-main { padding-top: 7rem; }
	body.theme-no-hero .site-main { padding-top: 7rem; }
}
.theme-page-container { padding-top: 3rem; padding-bottom: 5rem; }
.page-title { font-size: 2.25rem; margin-bottom: 2rem; line-height: 1.1; }
@media (min-width: 768px) { .page-title { font-size: 3rem; } }
.entry-content { font-family: var(--font-body); line-height: 1.7; color: var(--color-foreground); }
.entry-content p { margin-bottom: 1rem; }

/* -------------------------------------------------------------------------
   WOOCOMMERCE — GENERAL RESET
   ------------------------------------------------------------------------- */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	list-style: none;
	background-color: var(--color-card);
	border: 1px solid var(--color-border);
	border-left: 3px solid var(--color-primary);
	padding: 1rem 1.5rem;
	margin: 0 0 1.5rem;
	font-family: var(--font-body);
	font-size: 0.9rem;
}
.woocommerce-error { border-left-color: var(--color-destructive); }
.woocommerce-message .button, .woocommerce-error .button { display: none; }

/* Drawer already gives add-to-cart feedback on these pages — hide duplicate WC notices there only. */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message { display: none; }

.woocommerce-breadcrumb { display: none; } /* breadcrumbs are not part of this design */

/* -------------------------------------------------------------------------
   WOOCOMMERCE — SHOP ARCHIVE PAGE HEADER
   ------------------------------------------------------------------------- */
.theme-shop-archive .page-title { text-align: center; }
.theme-shop-archive .woocommerce-result-count,
.theme-shop-archive .woocommerce-ordering { font-family: var(--font-body); font-size: 0.875rem; color: var(--color-muted-foreground); }

/* -------------------------------------------------------------------------
   WOOCOMMERCE — SINGLE PRODUCT
   ------------------------------------------------------------------------- */
.single-product .site-main { padding-top: 6rem; }
@media (min-width: 1024px) { .single-product .site-main { padding-top: 7rem; } }
.single-product__back-row { padding: 1.5rem 0; }
.single-product__back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); font-family: var(--font-body); transition: color 0.2s ease; }
.single-product__back-link:hover { color: var(--color-primary); }

.theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-bottom: 5rem;
	min-width: 0;
}
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.theme-product-gallery { min-width: 0; max-width: 100%; }
.theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-info { padding-top: 1.5rem; padding-bottom: 1.5rem; } }

.theme-product-gallery__main { position: relative; aspect-ratio: 1/1; background-color: var(--color-card); border: 1px solid var(--color-border); 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-thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; border: 2px solid transparent; opacity: 0.6; transition: all 0.2s ease; }
.theme-product-thumb:hover { opacity: 1; }
.theme-product-thumb.is-active { border-color: var(--color-primary); opacity: 1; }

.theme-product-info__category { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-muted-foreground); }
.product-title.theme-product-info__title {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: 1.875rem;
	margin-top: 0.75rem;
	margin-bottom: 1.25rem;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
@media (min-width: 768px) { .product-title.theme-product-info__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .product-title.theme-product-info__title { font-size: 3rem; } }
.theme-product-info__price { font-size: 1.5rem; margin-bottom: 1.75rem; font-family: var(--font-display); color: var(--color-primary); }
.theme-product-info__price .woocommerce-Price-amount { font-family: var(--font-display); }
.theme-product-info__stock.is-out { color: var(--color-destructive); font-weight: 600; margin-bottom: 1.5rem; font-family: var(--font-body); }

.theme-product-info__description { color: var(--color-muted-foreground); font-family: var(--font-body); line-height: 1.7; margin: 1.5rem 0 2rem; overflow-wrap: break-word; word-break: break-word; }

.theme-add-to-cart-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

.theme-quantity-wrapper { display: flex; align-items: center; border: 1px solid var(--color-border); }
.theme-qty-minus, .theme-qty-plus { padding: 0.9rem 1rem; transition: background-color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-input {
	-moz-appearance: textfield;
	appearance: textfield;
	width: 48px;
	min-width: 48px;
	border: none;
	background: transparent;
	text-align: center;
	padding: 0.9rem 0.25rem;
	color: var(--color-foreground);
}
.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: 1.75rem; }
.theme-product-info__details-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600; margin-bottom: 1rem; color: var(--color-muted-foreground); font-family: var(--font-body); }
.woocommerce-product-details__short-description { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); font-family: var(--font-body); font-size: 0.875rem; line-height: 1.7; overflow-wrap: break-word; word-break: break-word; }
.woocommerce-product-details__short-description p { display: flex; align-items: flex-start; gap: 0.5rem; }
.woocommerce-product-details__short-description p::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background-color: var(--color-primary); margin-top: 0.5rem; flex-shrink: 0; }

.posted_in { overflow-wrap: break-word; word-break: break-word; }

/* Variations table layout — stack 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; font-weight: 600; font-family: var(--font-body); font-style: normal; }
.single-product .variations tbody td.value { padding-top: 0; padding-bottom: 1rem; }
.single-product .variations { margin-bottom: 1rem; }
.theme-attr-select-hidden { display: none !important; }
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-pill { padding: 0.5rem 1rem; font-size: 0.875rem; border: 1px solid var(--color-border); font-family: var(--font-body); transition: all 0.2s ease; }
.theme-attr-pill:hover { border-color: color-mix(in srgb, var(--color-primary) 60%, transparent); }
.theme-attr-pill.is-selected { background-color: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }

/* Add-to-cart button style override (Section 11.4.1) */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
.ajax_add_to_cart.theme-btn-loading,
.single_add_to_cart_button.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; }

/* Hide WooCommerce's injected "View cart" link everywhere (Section 11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* -------------------------------------------------------------------------
   RELATED PRODUCTS
   ------------------------------------------------------------------------- */
.theme-related-products { padding: 4rem 0; border-top: 1px solid var(--color-border); }
.theme-related-products__heading { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 2.5rem; letter-spacing: -0.01em; }
@media (min-width: 768px) { .theme-related-products__heading { font-size: 1.875rem; } }
.theme-related-products__grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .theme-related-products__grid { grid-template-columns: repeat(3, 1fr); } }

/* -------------------------------------------------------------------------
   SIDE CART DRAWER
   ------------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed; inset: 0;
	background-color: color-mix(in srgb, var(--color-foreground) 20%, transparent);
	z-index: 60;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

#theme-cart-drawer {
	position: fixed; top: 0; right: 0; height: 100%;
	width: 100%; max-width: 28rem;
	background-color: var(--color-background);
	z-index: 61;
	box-shadow: var(--shadow-elevated);
	display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.4s var(--ease-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__title {
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 700;
}
.theme-cart-drawer__close { padding: 0.25rem; transition: opacity 0.2s 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; }
.theme-cart-drawer__empty svg { color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-cart-drawer__empty p { color: var(--color-muted-foreground); margin-bottom: 1.5rem; font-family: var(--font-body); }

.theme-cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-drawer__item { display: flex; gap: 1rem; }
.theme-cart-drawer__item-image { width: 80px; height: 96px; flex-shrink: 0; background-color: var(--color-secondary); overflow: hidden; display: block; }
.theme-cart-drawer__item-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-cart-drawer__item-info { flex: 1; min-width: 0; }
.theme-cart-drawer__item-name { display: block; font-size: 0.875rem; font-weight: 500; font-family: var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.2s ease; }
.theme-cart-drawer__item-name:hover { opacity: 0.7; }
.theme-cart-drawer__item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.125rem; font-family: var(--font-body); }
.theme-cart-drawer__item-variation { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.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; border-radius: 4px; transition: background-color 0.2s ease; }
.theme-cart-drawer__qty-btn:hover { background-color: var(--color-secondary); }
.theme-cart-drawer__qty-value { font-size: 0.875rem; width: 1.5rem; text-align: center; font-family: var(--font-body); }
.theme-cart-drawer__remove { margin-left: auto; font-size: 0.75rem; color: var(--color-muted-foreground); transition: color 0.2s ease; font-family: var(--font-body); }
.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: 1rem; }
.theme-cart-drawer__subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; font-family: var(--font-body); }
.theme-cart-drawer__subtotal-row span:first-child { color: var(--color-muted-foreground); }
.theme-cart-drawer__subtotal-value { font-weight: 500; }
.theme-cart-drawer__shipping-note { font-size: 0.75rem; color: var(--color-muted-foreground); font-family: var(--font-body); }
.theme-cart-drawer__checkout-btn { width: 100%; }

/* -------------------------------------------------------------------------
   WOOCOMMERCE CHECKOUT BLOCK (Section 13)
   ------------------------------------------------------------------------- */
body.woocommerce-checkout .site-main { padding-top: 6rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { body.woocommerce-checkout .site-main { padding-top: 7rem; } }
body.woocommerce-checkout .wc-block-checkout {
	display: block;
	font-family: var(--font-body);
}
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
		align-items: start;
	}
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-card);
	border-radius: var(--card-radius);
	padding: 2rem;
	border: 1px solid var(--color-border);
}
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 {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
	border-radius: 2px;
	background-color: var(--color-background);
	width: 100% !important;
	max-width: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-block-components-text-input input:focus-visible {
	outline: none;
	border-color: color-mix(in srgb, var(--color-primary) 60%, transparent);
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: color-mix(in srgb, var(--color-muted-foreground) 60%, transparent); }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	text-transform: none !important;
	border: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }
body.woocommerce-checkout .wc-block-components-notice-banner {
	font-family: var(--font-body);
	border-radius: 2px;
	grid-column: 1 / -1;
}
body.woocommerce-checkout .wc-block-cart-items { font-family: var(--font-body); }
body.woocommerce-checkout .entry-content { padding-top: 1rem; }

/* -------------------------------------------------------------------------
   OTHER WOOCOMMERCE PAGES (cart, account, thank you) — width parity
   ------------------------------------------------------------------------- */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
body.theme-thankyou-page .site-main { padding-top: 6rem; padding-bottom: 4rem; }
@media (min-width: 1024px) {
	body.woocommerce-cart .site-main,
	body.woocommerce-account .site-main,
	body.theme-thankyou-page .site-main { padding-top: 7rem; }
}

/* -------------------------------------------------------------------------
   THANK YOU PAGE
   ------------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
.theme-thankyou { max-width: 42rem; margin: 0 auto; text-align: center; padding: 3rem 0; }
.theme-thankyou__icon { width: 4rem; height: 4rem; background-color: var(--color-primary); color: var(--color-primary-foreground); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.theme-thankyou__title { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 1rem; letter-spacing: -0.01em; }
@media (min-width: 768px) { .theme-thankyou__title { font-size: 3rem; } }
.theme-thankyou__message { color: var(--color-muted-foreground); margin-bottom: 2rem; font-family: var(--font-body); }
.theme-thankyou__back { margin-top: 2rem; }
body.theme-thankyou-page .woocommerce-order { text-align: left; }
body.theme-thankyou-page .woocommerce-order-overview { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1.5rem; margin: 0 0 2rem; background-color: var(--color-card); border: 1px solid var(--color-border); }
body.theme-thankyou-page .woocommerce-order-overview li { font-family: var(--font-body); font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { padding: 0 0 1rem 0; font-size: 1.5rem; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; margin-bottom: 2rem; border-collapse: collapse; }
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); font-family: var(--font-body); font-size: 0.875rem; }
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; }
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
}
body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; overflow-wrap: break-word; font-family: var(--font-body); font-size: 0.875rem; border: 1px solid var(--color-border); padding: 1.5rem; background-color: var(--color-card); }
