/* ==========================================================================
   Mason's Shirts & More — theme.css
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
	--font-display: 'Outfit', sans-serif;
	--font-body: 'Figtree', sans-serif;
	--radius: 10px;
	--shadow-soft: 0 4px 20px -4px rgba(0,0,0,0.06);
	--shadow-elevated: 0 8px 40px -8px rgba(0,0,0,0.12);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
	--header-height: 80px;
	--logo-height: 56px;
	--page-gutter: 1.5rem;
	--page-gutter-lg: 2rem;
	--btn-radius: 8px;
	--btn-height: 44px;
	--btn-padding: 0 2rem;
	--btn-font-size: 0.95rem;
	--btn-font-weight: 500;
	--btn-letter-spacing: normal;
	--btn-text-transform: none;
	--btn-icon-padding: 0;
	--card-radius: 12px;
	--section-padding: 2rem;
	--checkout-gap: 2rem;
	--color-button-text: var(--color-primary-foreground);
}

html, body { margin: 0; padding: 0; }

body {
	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;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; margin: 0; font-family: var(--font-body); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button,
[type="button"],
[type="submit"],
[type="reset"],
[role="button"],
summary,
label[for],
select,
.theme-nav-link,
.theme-cart-btn,
.theme-mobile-toggle,
.theme-product-thumb,
.theme-attr-pill,
.theme-faq-trigger,
.theme-qty-btn,
.theme-cart-item__remove,
.footer-email-link {
	cursor: pointer;
}
button { font-family: inherit; background: none; border: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.theme-product-main-img):not(.theme-product-thumb-img):not(.site-logo-img):not(.footer-logo-img):not(.theme-cart-item__img) {
	max-width: 100%;
	height: auto;
}
.cover-img, .hero-bg-img, .product-card-img, .theme-product-main-img, .theme-product-thumb-img, .theme-cart-item__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding-left: var(--page-gutter, 1.5rem);
	padding-right: var(--page-gutter, 1.5rem);
}
@media (min-width: 1024px) {
	.container-wide {
		padding-left: var(--page-gutter-lg, 2rem);
		padding-right: var(--page-gutter-lg, 2rem);
	}
}

.theme-section {
	padding-top: 5rem;
	padding-bottom: 5rem;
}
.theme-page-container { padding-top: 6rem; padding-bottom: 5rem; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
	display: block;
	font-size: 0.875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
}
.section-heading {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 2.25rem;
	margin-top: 0.75rem;
	line-height: 1.15;
}
@media (min-width: 768px) {
	.section-heading { font-size: 3rem; }
}
.section-lead {
	color: var(--color-muted-foreground);
	font-size: 1.125rem;
	max-width: 42rem;
	margin: 1rem auto 0;
	line-height: 1.7;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-primary, .btn-outline, .btn-hero-primary, .btn-hero-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: var(--btn-height);
	padding: var(--btn-padding);
	border-radius: var(--btn-radius);
	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, transform 0.15s ease;
	cursor: pointer;
}
.btn-primary, .btn-hero-primary {
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	border: none;
}
.btn-primary:hover, .btn-hero-primary:hover { opacity: 0.9; }
.btn-outline {
	background-color: transparent;
	border: 1px solid var(--color-border);
	color: var(--color-foreground);
}
.btn-outline:hover { background-color: var(--color-accent); }
.btn-hero-outline {
	background-color: transparent;
	border: 1px solid rgba(255,255,255,0.4);
	color: var(--color-background);
}
.btn-hero-outline:hover { background-color: rgba(255,255,255,0.1); }
.btn-primary:active, .btn-hero-primary:active, .btn-outline:active { transform: scale(0.97); }

.theme-icon { width: 1.5rem; height: 1.5rem; }
.theme-icon-sm { width: 1.1rem; height: 1.1rem; }
.theme-icon-xs { width: 1rem; height: 1rem; }
.theme-icon-lg { width: 3rem; height: 3rem; }
.theme-icon-star { width: 1rem; height: 1rem; fill: var(--color-primary); stroke: var(--color-primary); }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	.reveal-item {
		opacity: 0;
		transform: translateY(30px);
		transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth), filter 0.7s var(--transition-smooth);
	}
	.reveal-item[data-reveal="blur"] { transform: translateY(20px); filter: blur(12px); }
	.reveal-item[data-reveal="fadeLeft"] { transform: translateX(-40px); }
	.reveal-item[data-reveal="fadeUp"] { transform: translateY(40px); }
	.reveal-item[data-reveal="scaleUp"] { transform: translateY(20px) scale(0.9); }
	.reveal-item[data-reveal="slideUp"] { transform: translateY(60px); }
	.reveal-item.is-visible {
		opacity: 1;
		transform: translateY(0) translateX(0) scale(1);
		filter: blur(0);
	}
}
@media (prefers-reduced-motion: reduce) {
	.reveal-item { opacity: 1; transform: none; filter: none; }
}
/* Never hide content inside the Customizer preview, even before the
   observer/JS has run (iframe can suppress IntersectionObserver). */
body.is-customizer .reveal-item {
	opacity: 1 !important;
	transform: none !important;
	filter: none !important;
}

.image-zoom { transition: transform 0.7s ease-out; }
.theme-portfolio-card:hover .image-zoom { transform: scale(1.06); }

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background-color: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}
.site-header.is-solid,
.site-header.is-scrolled {
	background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--color-border);
	box-shadow: var(--shadow-soft);
}
.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 96px;
	transition: height 0.5s ease;
}
.site-header.is-solid .site-nav,
.site-header.is-scrolled .site-nav { height: 80px; }

.site-brand { display: flex; align-items: center; min-width: 0; }
.site-logo-img {
	height: var(--logo-height) !important;
	width: auto !important;
	display: block;
	object-fit: contain;
	transition: filter 0.5s ease;
}
.site-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--color-foreground); display: block; line-height: var(--logo-height); }

.site-header:not(.is-solid):not(.is-scrolled) .site-logo-img { filter: brightness(0) invert(1); }
.site-header:not(.is-solid):not(.is-scrolled) .site-logo-text { color: var(--color-background); }

.site-nav-links { display: none; }
@media (min-width: 1024px) {
	.site-nav-links { display: flex; align-items: center; gap: 2rem; }
}
.theme-nav-list { display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; }
.theme-nav-link {
	font-size: 0.9rem;
	letter-spacing: 0.02em;
	color: var(--color-foreground);
	position: relative;
	padding-bottom: 2px;
	transition: color 0.5s ease;
}
.site-header:not(.is-solid):not(.is-scrolled) .theme-nav-link { color: var(--color-background); }
.theme-nav-link::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0;
	width: 100%; height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-link:hover::after { transform: scaleX(1); }

.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.5s ease, color 0.5s ease;
}
.site-header:not(.is-solid):not(.is-scrolled) .theme-cart-btn { color: var(--color-background); }
.theme-cart-btn:hover { opacity: 0.6; }
.theme-cart-count {
	position: absolute;
	top: -2px; right: -2px;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 3px;
	display: flex; align-items: center; justify-content: center;
	font-size: 0.65rem;
	font-weight: 500;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	border-radius: 999px;
}
.theme-cart-count:empty { display: none; }

.theme-mobile-toggle { padding: 0.5rem; color: var(--color-foreground); }
.site-header:not(.is-solid):not(.is-scrolled) .theme-mobile-toggle { color: var(--color-background); }
.theme-mobile-toggle-close { display: none; }
.theme-mobile-toggle[aria-expanded="true"] .theme-mobile-toggle-open { display: none; }
.theme-mobile-toggle[aria-expanded="true"] .theme-mobile-toggle-close { display: inline-flex; }
@media (min-width: 1024px) {
	.theme-mobile-toggle { display: none; }
}

/* Mobile overlay — matches Lovable fixed dim layer under the menu panel */
.theme-mobile-overlay {
	position: fixed;
	inset: 0;
	top: var(--header-height, 80px);
	background-color: color-mix(in srgb, var(--color-foreground) 20%, transparent);
	z-index: 40;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
body.admin-bar .theme-mobile-overlay { top: calc(var(--header-height, 80px) + 32px); }
@media screen and (max-width: 782px) {
	body.admin-bar .theme-mobile-overlay { top: calc(var(--header-height, 80px) + 46px); }
}
.theme-mobile-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.theme-mobile-menu {
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background-color: var(--color-background);
	border-top: 1px solid var(--color-border);
	box-shadow: var(--shadow-elevated);
	z-index: 50;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.3s ease,
		visibility 0.3s ease;
}
.theme-mobile-menu.is-open {
	max-height: 80vh;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Works for assigned WP menus and the customizer fallback list */
.theme-mobile-menu .theme-mobile-nav-list,
.theme-mobile-menu .theme-nav-list {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.25rem;
	margin: 0;
	padding: 1rem 1.5rem;
	list-style: none;
}
.theme-mobile-menu .theme-nav-link,
.theme-mobile-menu a {
	display: block;
	width: 100%;
	padding: 0.75rem 0;
	color: var(--color-foreground) !important;
	font-size: 1rem;
	font-family: var(--font-body);
	letter-spacing: 0.02em;
	text-align: left;
	background: none;
	border: none;
	transition: color 0.2s ease, transform 0.2s ease;
}
.theme-mobile-menu .theme-nav-link::after {
	display: none;
}
.theme-mobile-menu .theme-nav-link:hover,
.theme-mobile-menu a:hover {
	color: var(--color-primary) !important;
	transform: translateX(6px);
}
@media (min-width: 1024px) {
	.theme-mobile-menu,
	.theme-mobile-overlay { display: none !important; }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.theme-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: var(--color-foreground);
}
body.theme-no-hero .theme-hero { display: none; }
.theme-hero__bg { position: absolute; inset: 0; z-index: 0; }
.theme-hero__overlay { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-foreground) 65%, transparent); z-index: 1; }
.theme-hero__content {
	position: relative;
	z-index: 10;
	padding-top: 8rem;
	padding-bottom: 8rem;
	text-align: center;
}
.theme-hero__inner { max-width: 42rem; margin: 0 auto; }
.theme-hero__eyebrow {
	display: inline-block;
	font-size: 0.875rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--color-background);
	margin-bottom: 1.5rem;
}
.theme-hero__title {
	font-family: var(--font-display);
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--color-background);
	line-height: 1.15;
	margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .theme-hero__title { font-size: 3.5rem; } }
@media (min-width: 1024px) { .theme-hero__title { font-size: 3.75rem; } }
.theme-hero__subtitle {
	color: color-mix(in srgb, var(--color-background) 70%, transparent);
	font-size: 1.25rem;
	max-width: 32rem;
	margin: 0 auto 2.5rem;
	line-height: 1.6;
}
.theme-hero__ctas { display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .theme-hero__ctas { flex-direction: row; } }
.theme-hero__scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10; }
.theme-hero__scroll-pill {
	width: 1.5rem; height: 2.5rem;
	border: 2px solid color-mix(in srgb, var(--color-background) 40%, transparent);
	border-radius: 999px;
	display: flex; justify-content: center; padding-top: 0.5rem;
	animation: theme-scroll-bounce 2s ease-in-out infinite;
}
.theme-hero__scroll-pill span {
	width: 0.25rem; height: 0.5rem;
	background-color: color-mix(in srgb, var(--color-background) 60%, transparent);
	border-radius: 999px;
	display: block;
}
@keyframes theme-scroll-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(8px); }
}

/* ==========================================================================
   VALUE BAR
   ========================================================================== */

.theme-value-bar { background-color: var(--color-primary); color: var(--color-primary-foreground); overflow: hidden; }
.theme-value-bar__inner {
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	text-align: center;
	font-size: 1rem;
}
@media (min-width: 640px) { .theme-value-bar__inner { flex-direction: row; gap: 0; } }
.theme-value-item { display: flex; align-items: center; gap: 0.5rem; }
.theme-value-dot { display: none; opacity: 0.4; margin: 0 1rem; }
@media (min-width: 640px) { .theme-value-dot { display: inline; } }

/* ==========================================================================
   ABOUT
   ========================================================================== */

.theme-about__inner { max-width: 48rem; margin: 0 auto; text-align: center; }
.about-section__heading { margin-bottom: 1.5rem; }
.theme-about__paragraph { color: var(--color-muted-foreground); line-height: 1.75; font-size: 1.125rem; margin-bottom: 1.5rem; }
.theme-about__paragraph:last-child { margin-bottom: 0; }

/* ==========================================================================
   SERVICES
   ========================================================================== */

.theme-services-section { background-color: var(--color-secondary); }
.theme-services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .theme-services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.theme-service-card {
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--card-radius);
	padding: 2rem;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.theme-service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -15px color-mix(in srgb, var(--color-primary) 15%, transparent); }
.theme-service-card__icon {
	width: 3rem; height: 3rem;
	border-radius: 999px;
	background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 1rem;
	color: var(--color-primary);
}
.theme-service-card__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.theme-service-card__desc { color: var(--color-muted-foreground); line-height: 1.7; }

/* ==========================================================================
   PROCESS (How It Works) — desktop @ lg+, vertical list below lg (Lovable)
   ========================================================================== */

.theme-process-stepper--mobile {
	display: block;
	max-width: 28rem; /* max-w-md */
	margin: 0 auto;
	position: relative;
	padding-left: 3rem; /* pl-12 */
}
.theme-process-stepper--desktop {
	display: none;
	position: relative;
	max-width: 56rem; /* max-w-4xl */
	margin: 0 auto;
	align-items: flex-start;
	justify-content: space-between;
}
@media (min-width: 1024px) {
	.theme-process-stepper--desktop { display: flex; }
	.theme-process-stepper--mobile { display: none; }
}

.theme-process-track {
	position: absolute;
	top: 2.5rem;
	left: 10%;
	right: 10%;
	height: 2px;
	background-color: var(--color-border);
}
.theme-process-track--vertical {
	top: 0;
	bottom: 0;
	left: 19px;
	right: auto;
	width: 2px;
	height: auto;
}
.theme-process-step {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 25%;
	padding: 0 1rem;
}
.theme-process-step__icon-wrap {
	width: 5rem;
	height: 5rem;
	border-radius: 999px;
	background-color: var(--color-background);
	border: 2px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
	box-shadow: var(--shadow-soft);
	color: var(--color-primary);
}
.theme-process-step__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 999px;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	font-size: 0.875rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}
.theme-process-step__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.theme-process-step__desc { color: var(--color-muted-foreground); line-height: 1.7; }

.theme-process-step-mobile {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	padding-bottom: 2.5rem; /* pb-10 */
}
.theme-process-step-mobile:last-child { padding-bottom: 0; }
.theme-process-step-mobile__number {
	position: absolute;
	left: -3rem;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	font-weight: 700;
	box-shadow: var(--shadow-soft);
	z-index: 1;
	flex-shrink: 0;
}
.theme-process-step-mobile__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.25rem;
	color: var(--color-primary);
}
.theme-process-step-mobile__head h3 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-foreground);
	margin: 0;
}
.theme-process-step-mobile p {
	margin: 0;
	color: var(--color-muted-foreground);
	line-height: 1.7;
	font-size: 1rem;
}

.theme-process-section .section-header { margin-bottom: 4rem; } /* mb-16 */

/* ==========================================================================
   SHOP
   ========================================================================== */

.theme-shop-search { position: relative; max-width: 28rem; margin: 0 auto 1.5rem; }
.theme-shop-search__icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.theme-shop-search__input {
	width: 100%;
	height: 3rem;
	border: 1px solid var(--color-border);
	background-color: var(--color-background);
	border-radius: var(--radius);
	padding: 0 2.5rem;
	font-size: 1rem;
	color: var(--color-foreground);
}
.theme-shop-search__input:focus { outline: none; box-shadow: 0 0 0 2px var(--color-primary); }
.theme-shop-search__clear { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--color-muted-foreground); }
.theme-shop-search__clear:hover { color: var(--color-foreground); }

.theme-shop-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.theme-cat-filter {
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	background-color: var(--color-secondary);
	color: var(--color-secondary-foreground);
	font-size: 1rem;
	transition: all 0.3s ease;
}
.theme-cat-filter:hover { background-color: var(--color-muted); }
.theme-cat-filter.is-active { background-color: var(--color-primary); color: var(--color-primary-foreground); }

.theme-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: stretch;
	margin-top: 3rem;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; } }
.theme-product-grid--related { margin-top: 0; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 1024px) { .theme-product-grid--related { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.theme-product-card-wrap { height: 100%; }
.theme-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
	color: inherit;
	text-decoration: none;
}
.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 3 / 4;
	background-color: var(--color-secondary);
	overflow: hidden;
	border-radius: var(--card-radius);
	margin-bottom: 1rem;
	transition: transform 0.35s var(--transition-smooth);
}
.theme-product-card:hover .theme-product-card__image-wrapper { transform: scale(1.02); }
.theme-product-card__image-wrapper.is-sold-out .product-card-img { opacity: 0.6; }
.theme-product-card .product-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s var(--transition-smooth);
}
.theme-product-card:hover .product-card-img { transform: scale(1.08); }

.sold-out-badge, .new-badge, .customizable-badge {
	position: absolute;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 999px;
	z-index: 3;
	pointer-events: none;
}
.sold-out-badge { top: 0.75rem; left: 0.75rem; background-color: var(--color-foreground); color: var(--color-background); }
.new-badge { top: 0.75rem; right: 0.75rem; background-color: var(--color-primary); color: var(--color-primary-foreground); }
.customizable-badge {
	bottom: 0.75rem;
	left: 0.75rem;
	background-color: color-mix(in srgb, var(--color-background) 80%, transparent);
	backdrop-filter: blur(8px);
	color: var(--color-foreground);
}

.theme-quick-add-btn {
	position: absolute;
	bottom: 0.75rem;
	right: 0.75rem;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: color-mix(in srgb, var(--color-background) 90%, transparent);
	backdrop-filter: blur(8px);
	color: var(--color-foreground);
	box-shadow: var(--shadow-soft);
	z-index: 4;
	border: none;
	padding: 0;
	cursor: pointer;
	overflow: hidden;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.theme-quick-add-btn:hover {
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	transform: scale(1.15);
}
.theme-quick-add-btn__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}
.theme-quick-add-btn__icon--check {
	display: none !important;
}
.theme-quick-add-btn.is-added {
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
}
.theme-quick-add-btn.is-added .theme-quick-add-btn__icon--plus {
	display: none !important;
}
.theme-quick-add-btn.is-added .theme-quick-add-btn__icon--check {
	display: flex !important;
}

.theme-product-card__info { display: flex; flex-direction: column; gap: 0.375rem; flex: 1; }
.theme-card-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted-foreground); }
.theme-card-title { font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.theme-product-card:hover .theme-card-title { opacity: 0.7; }
.theme-card-desc {
	font-size: 1rem;
	color: var(--color-muted-foreground);
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-height: 1.5;
}
.theme-card-price { font-size: 1.125rem; font-weight: 500; color: var(--color-foreground); }

.theme-shop-empty { text-align: center; padding: 5rem 0; }
.theme-shop-empty p { color: var(--color-muted-foreground); margin-bottom: 1rem; }

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */

.theme-portfolio-section { background-color: var(--color-secondary); }
.theme-portfolio-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .theme-portfolio-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.theme-portfolio-card {
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--card-radius);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.theme-portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -15px color-mix(in srgb, var(--color-primary) 18%, transparent); }
.theme-portfolio-card__image { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background-color: var(--color-muted); }
.theme-portfolio-card__body { padding: 1.5rem; }
.theme-portfolio-card__body h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.theme-portfolio-card__body p { color: var(--color-muted-foreground); line-height: 1.7; }

/* ==========================================================================
   PRICING
   ========================================================================== */

.theme-pricing-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .theme-pricing-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-pricing-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.theme-pricing-card {
	background-color: var(--color-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--card-radius);
	padding: 2rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.theme-pricing-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -15px color-mix(in srgb, var(--color-primary) 18%, transparent); }
.theme-pricing-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.theme-pricing-card__price { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; color: var(--color-primary); margin-bottom: 0.75rem; }
.theme-pricing-card__note { color: var(--color-muted-foreground); line-height: 1.7; }

.theme-pricing-upgrades { max-width: 48rem; margin: 0 auto; background-color: var(--color-background); border: 1px solid var(--color-border); border-radius: var(--card-radius); padding: 2rem; }
.theme-pricing-upgrades h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.25rem; }
.theme-pricing-upgrades ul { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-pricing-upgrades li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--color-muted-foreground); line-height: 1.7; }
.theme-pricing-upgrades li svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--color-primary); }

/* ==========================================================================
   OWNER
   ========================================================================== */

.theme-owner-section { background-color: var(--color-secondary); }
.theme-owner__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .theme-owner__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.theme-owner__image { position: relative; aspect-ratio: 1 / 1; border-radius: var(--card-radius); overflow: hidden; border: 1px solid var(--color-border); }
.theme-owner__grid p { color: var(--color-muted-foreground); font-size: 1.125rem; line-height: 1.7; margin-bottom: 1.25rem; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.theme-testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .theme-testimonials-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-testimonials-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.theme-testimonial-card {
	background-color: var(--color-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--card-radius);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.theme-testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.theme-testimonial-card__stars { display: flex; gap: 0.15rem; margin-bottom: 0.75rem; }
.theme-testimonial-card__text { color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 1rem; flex: 1; }
.theme-testimonial-card__footer { border-top: 1px solid var(--color-border); padding-top: 0.75rem; font-weight: 500; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.theme-faq__inner { max-width: 48rem; margin: 0 auto; }
.theme-faq-categories { display: flex; flex-direction: column; gap: 2.5rem; }
.theme-faq-category__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--color-border); }
.theme-faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-faq-item { border: 1px solid var(--color-border); border-radius: var(--card-radius); overflow: hidden; transition: border-color 0.2s ease; }
.theme-faq-item:hover { border-color: color-mix(in srgb, var(--color-primary) 30%, transparent); }
.theme-faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem;
	text-align: left;
	transition: background-color 0.2s ease;
}
.theme-faq-question:hover { background-color: color-mix(in srgb, var(--color-secondary) 50%, transparent); }
.theme-faq-question span { font-weight: 500; padding-right: 1rem; }
.theme-faq-item.is-open .theme-faq-question span { color: var(--color-primary); }
.theme-faq-chevron { flex-shrink: 0; color: var(--color-muted-foreground); transition: transform 0.3s var(--transition-smooth), color 0.2s ease; }
.theme-faq-item.is-open .theme-faq-chevron { transform: rotate(180deg); color: var(--color-primary); }
.theme-faq-answer { height: 0; overflow: hidden; transition: height 0.35s var(--transition-smooth); }
.theme-faq-answer__inner { padding: 0 1.25rem 1.25rem; }
.theme-faq-answer__inner p { color: var(--color-muted-foreground); line-height: 1.7; }

/* ==========================================================================
   CONTACT
   ========================================================================== */

.theme-contact-section { background-color: var(--color-foreground); color: var(--color-background); }
.theme-contact__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .theme-contact__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.theme-contact__eyebrow { color: color-mix(in srgb, var(--color-background) 60%, transparent); margin-bottom: 1rem; display: block; }
.theme-contact__lead { color: color-mix(in srgb, var(--color-background) 70%, transparent); font-size: 1.125rem; line-height: 1.7; margin: 1rem 0 2rem; }
.theme-contact__info { margin-bottom: 2rem; }
.theme-contact__email { display: inline-flex; align-items: center; gap: 0.75rem; color: color-mix(in srgb, var(--color-background) 70%, transparent); word-break: break-all; }
.theme-contact__email:hover { color: var(--color-background); }

.theme-form-group { margin-bottom: 1rem; }
.theme-form-group label { display: block; font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; color: color-mix(in srgb, var(--color-background) 80%, transparent); }
.theme-form-group input, .theme-form-group textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	background-color: color-mix(in srgb, var(--color-background) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--color-background) 20%, transparent);
	border-radius: var(--radius);
	color: var(--color-background);
	transition: border-color 0.2s ease;
}
.theme-form-group input::placeholder, .theme-form-group textarea::placeholder { color: color-mix(in srgb, var(--color-background) 40%, transparent); }
.theme-form-group input:focus, .theme-form-group textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
.theme-form-group textarea { resize: none; }
.theme-contact-submit { width: 100%; }
.theme-contact-submit.is-loading .theme-contact-submit__label::after { content: ''; }

.theme-contact__success { text-align: center; padding: 3rem 1rem; }
.theme-contact__success-icon { width: 4rem; height: 4rem; border-radius: 999px; background-color: var(--color-primary); color: var(--color-primary-foreground); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.theme-contact__success h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.theme-contact__success p { color: color-mix(in srgb, var(--color-background) 70%, transparent); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer { border-top: 1px solid var(--color-border); background-color: var(--color-secondary); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 3rem; padding: 4rem 0; } }
.footer-logo-img {
	height: 72px !important;
	width: auto !important;
	max-width: 100%;
	object-fit: contain;
	display: block;
}
.footer-tagline { margin-top: 1rem; color: var(--color-muted-foreground); max-width: 24rem; line-height: 1.7; }
.footer-col h4 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.theme-footer-nav-list, .footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-footer-nav-list a, .footer-contact-list a { color: var(--color-muted-foreground); }
.theme-footer-nav-list a:hover, .footer-contact-list a:hover { color: var(--color-foreground); }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--color-muted-foreground); }
.footer-email-link { word-break: break-all; }
.footer-bottom {
	margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border);
	display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
	text-align: center; font-size: 0.875rem; color: var(--color-muted-foreground);
	padding-bottom: 2rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom a { text-decoration: underline; }
.footer-bottom a:hover { color: var(--color-foreground); }

/* ==========================================================================
   CART DRAWER & OVERLAY
   ========================================================================== */

#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;
	right: 0; top: 0;
	height: 100%;
	width: 100%;
	max-width: 28rem;
	background-color: var(--color-background);
	box-shadow: var(--shadow-elevated);
	z-index: 61;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__title-row { display: flex; align-items: center; gap: 0.75rem; }
.theme-cart-drawer__title-row h2 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }
.theme-cart-empty-btn { font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-empty-btn:hover { color: #ef4444; }
.theme-cart-drawer__close { padding: 0.25rem; }
.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; }

.theme-cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item__image { position: relative; width: 5rem; height: 6rem; flex-shrink: 0; background-color: var(--color-secondary); border-radius: 4px; overflow: hidden; display: block; }
/* ID + !important beat the global img height:auto rule (higher :not() specificity). */
#theme-cart-drawer .theme-cart-item__image img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	display: block !important;
}
.theme-cart-item__info { flex: 1; min-width: 0; }
.theme-cart-item__name { font-size: 0.875rem; font-weight: 500; display: block; }
.theme-cart-item__name:hover { opacity: 0.7; }
.theme-cart-item__price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.15rem; }
.theme-cart-item__variation { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.theme-cart-item__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-qty-btn { padding: 0.25rem; border-radius: 4px; }
.theme-cart-qty-btn:hover { background-color: var(--color-secondary); }
.theme-cart-item__qty { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-item__remove { margin-left: auto; font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-item__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 { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-drawer__subtotal span:first-child { color: var(--color-muted-foreground); }
.theme-cart-drawer__subtotal span:last-child { font-weight: 500; }
.theme-cart-drawer__note { font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-drawer__checkout-btn { width: 100%; }

/* Hide "View cart" injected by WooCommerce after AJAX add-to-cart */
.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; }

/* ==========================================================================
   WOOCOMMERCE — ADD TO CART BUTTON OVERRIDE
   ========================================================================== */

.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button,
button.single_add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-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 {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

/* ==========================================================================
   WOOCOMMERCE — NOTICES (scoped visibility, Section 14.1)
   ========================================================================== */

.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message {
	display: none;
}
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	max-width: 80rem;
	margin: 1rem auto;
	padding: 1rem 1.5rem;
	border-radius: var(--radius);
	background-color: var(--color-secondary);
	color: var(--color-foreground);
	list-style: none;
	border-left: 3px solid var(--color-primary);
}
.woocommerce-error { border-left-color: #ef4444; }

/* ==========================================================================
   WOOCOMMERCE — SINGLE PRODUCT PAGE
   ========================================================================== */

.single-product-main { padding-top: 6rem; }
@media (min-width: 1024px) { .single-product-main { padding-top: 8rem; } }
.single-product-back { padding: 1.5rem 0; }
.single-product-back__link { display: inline-flex; align-items: center; font-size: 0.875rem; color: var(--color-muted-foreground); }
.single-product-back__link:hover { color: var(--color-foreground); }
.single-product-back__link svg { margin-right: 0.5rem; }

.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, .theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) { .theme-product-info { padding-top: 2.5rem; padding-bottom: 2.5rem; } }

.theme-product-gallery__main {
	position: relative;
	aspect-ratio: 3 / 4;
	width: 100%;
	background-color: var(--color-secondary);
	border-radius: var(--card-radius);
	overflow: hidden;
}
.theme-product-gallery__main .theme-product-main-img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	display: block;
}
.theme-product-thumbnails { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumb { position: relative; width: 5rem; height: 5rem; border-radius: 6px; overflow: hidden; border: 2px solid transparent; opacity: 0.6; transition: all 0.2s ease; padding: 0; background: none; }
.theme-product-thumb img,
.theme-product-thumb .theme-product-thumb-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}
.theme-product-thumb.is-active, .theme-product-thumb:hover { opacity: 1; border-color: var(--color-foreground); }

.theme-product-category { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-muted-foreground); }
.theme-product-category a { color: inherit; text-decoration: none; }
.product-title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.5rem;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
	line-height: 1.25;
}
@media (min-width: 768px) { .product-title { font-size: 1.875rem; } }
.theme-product-price,
.theme-product-price .price {
	font-size: 1.25rem;
	font-weight: 400;
	margin-bottom: 1.5rem;
	color: var(--color-foreground);
}
.theme-product-price--from { margin-bottom: 1.5rem; }
.theme-stock-status--out { color: #ef4444; font-weight: 500; margin-bottom: 1rem; }
.theme-product-description {
	color: var(--color-muted-foreground);
	line-height: 1.7;
	margin-bottom: 2rem;
	overflow-wrap: break-word;
	word-break: break-word;
	white-space: pre-line;
}

/* Hide WooCommerce native variation price / availability — we show "From $X.XX". */
.single-product .woocommerce-variation,
.single-product .woocommerce-variation-price,
.single-product .woocommerce-variation-availability,
.single-product .woocommerce-variation-description {
	display: none !important;
}

.theme-customizable-box { background-color: color-mix(in srgb, var(--color-primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent); border-radius: var(--card-radius); padding: 1rem; margin-bottom: 1.5rem; }
.theme-customizable-box__title { font-size: 0.875rem; font-weight: 500; color: var(--color-primary); margin-bottom: 0.25rem; }
.theme-customizable-box__text { font-size: 0.75rem; color: var(--color-muted-foreground); }

.variations.shop_attributes { margin-bottom: 0; }
.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.5rem; font-weight: 600; font-family: var(--font-body); font-style: normal; }
.single-product .variations tbody td.value { padding-top: 0; padding-bottom: 0; }
.theme-attr-select-hidden { display: none !important; }
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.theme-attr-pill {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	transition: all 0.2s ease;
}
.theme-attr-pill:hover { border-color: var(--color-foreground); }
.theme-attr-pill.is-selected { border-color: var(--color-foreground); background-color: var(--color-foreground); color: var(--color-background); }

.theme-quantity-wrapper { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: 6px; overflow: hidden; }
.theme-qty-minus, .theme-qty-plus { padding: 0.75rem; transition: background-color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-input { width: 3rem; border: none; background: transparent; text-align: center; -moz-appearance: textfield; padding: 0.75rem 0; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.single-product .theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

.theme-shipping-note { font-size: 0.75rem; color: var(--color-muted-foreground); text-align: center; margin-bottom: 1rem; }

.theme-product-details { border-top: 1px solid var(--color-border); padding-top: 2rem; }
.theme-product-details h3 { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }
.theme-product-details__list ul { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-product-details__list li { font-size: 0.875rem; color: var(--color-muted-foreground); position: relative; padding-left: 1.25rem; }
.theme-product-details__list li::before { content: ''; position: absolute; left: 0; top: 0.5rem; width: 6px; height: 6px; border-radius: 999px; background-color: var(--color-primary); }

.related-products-section {
	padding-top: 5rem;
	padding-bottom: 5rem;
	border-top: 1px solid var(--color-border);
}
.related-products-heading { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .related-products-heading { font-size: 1.5rem; } }

/* ==========================================================================
   WOOCOMMERCE — THANK YOU PAGE
   ========================================================================== */

body.theme-thankyou-page { overflow-x: hidden; }
.theme-thankyou-content { max-width: 42rem; margin: 0 auto; padding: 3rem 0 5rem; text-align: center; }
.theme-thankyou-icon { width: 4rem; height: 4rem; border-radius: 999px; background-color: var(--color-primary); color: var(--color-primary-foreground); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.theme-thankyou-heading { font-family: var(--font-display); font-size: 2rem; font-weight: 500; margin-bottom: 1rem; }
.theme-thankyou-lead { color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-thankyou-cta { margin-top: 2rem; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details { text-align: left; }
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex; flex-wrap: wrap; gap: 1rem 2rem; list-style: none; padding: 1.5rem; margin: 1.5rem 0;
	background-color: var(--color-secondary); border-radius: var(--card-radius);
}
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; padding: 1.5rem 0 1rem; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; 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); 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; margin-top: 2rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 30rem; overflow-wrap: break-word; border: 1px solid var(--color-border); border-radius: var(--card-radius); padding: 1.25rem; 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 { min-width: 0; max-width: none; }
}

/* ==========================================================================
   WOOCOMMERCE — CHECKOUT BLOCK
   ========================================================================== */

body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-top: var(--header-height, 96px);
	padding-bottom: 4rem;
}
body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content { max-width: 100%; }

body.woocommerce-checkout .page-title,
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: 500;
	margin-bottom: 2rem;
}

/* Single grid owner: the sidebar-layout container that directly wraps
   __main and __sidebar. The outer .wc-block-checkout wrapper stays block
   so there is never a grid-within-grid (Section 13.2/13.3). */
body.woocommerce-checkout .wc-block-checkout { display: block; }
@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: var(--checkout-gap);
		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-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background-color: var(--color-background);
	padding: revert;
}
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-text-input input:focus-visible {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 1px var(--color-primary);
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-secondary);
	border-radius: var(--card-radius);
	padding: var(--section-padding);
}
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;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }
body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--radius);
	grid-column: 1 / -1;
}

/* ==========================================================================
   404
   ========================================================================== */

.theme-404-main { min-height: 70vh; display: flex; align-items: center; }
.theme-404-content {
	text-align: center;
	padding-top: 4rem;
	padding-bottom: 4rem;
}
.theme-404-heading { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.theme-404-text { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-404-link { color: var(--color-primary); text-decoration: underline; }

/* ==========================================================================
   MISC
   ========================================================================== */

.theme-page-container .page-title { font-family: var(--font-display); font-size: 2.25rem; font-weight: 500; margin-bottom: 2rem; }
