/* =========================================================================
   Tavia theme stylesheet
   ========================================================================= */

:root {
	--font-display: 'Playfair Display', serif;
	--font-body: 'Montserrat', sans-serif;

	--color-background: #ffffff;
	--color-foreground: #19161d;
	--color-primary: #402d53;
	--color-primary-foreground: #f3ede2;
	--color-secondary: #f3f0ed;
	--color-secondary-foreground: #26212c;
	--color-muted: #e3e0dd;
	--color-muted-foreground: #5c5463;
	--color-accent: #a87824;
	--color-accent-foreground: #19161d;
	--color-border: #ddd9d5;
	--color-button-text: var(--color-primary-foreground);

	--radius: 0.25rem;
	--logo-height: 60px;
	--header-height: 80px;

	--shadow-soft: 0 4px 20px -4px rgba(25, 22, 29, 0.08);
	--shadow-elevated: 0 8px 40px -8px rgba(25, 22, 29, 0.15);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

	--btn-radius: 0.25rem;
	--btn-height: 44px;
	--btn-padding: 0 2rem;
	--btn-font-size: 0.9375rem;
	--btn-font-weight: 500;
	--btn-letter-spacing: normal;
	--btn-text-transform: none;
	--btn-icon-padding: 0.5rem;
}

/* ---------------------------------------------------------------------- */
/* Reset & base                                                           */
/* ---------------------------------------------------------------------- */

* {
	box-sizing: border-box;
}

html {
	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.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

img.cover-img,
img.hero-bg-img,
img.product-card-img,
img.theme-product-card__img {
	max-width: none;
	height: 100%;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	margin: 0;
}

p {
	margin: 0;
}

a {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

button {
	font-family: inherit;
	cursor: pointer;
	background: none;
	border: none;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide {
		padding-inline: 2rem;
	}
}

.scroll-mt {
	scroll-margin-top: 6rem;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                */
/* ---------------------------------------------------------------------- */

.theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	white-space: nowrap;
	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);
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
	height: var(--btn-height);
	padding: var(--btn-padding);
	border: none;
	cursor: pointer;
}
.theme-btn:hover {
	opacity: 0.9;
}
.theme-btn:active {
	transform: scale(0.97);
}
.theme-btn-lg {
	height: 48px;
	padding: 0 2.5rem;
	font-size: 1rem;
}
.theme-btn-primary {
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
}
.theme-btn-secondary {
	background-color: var(--color-secondary);
	color: var(--color-secondary-foreground);
}
.theme-btn-outline {
	background-color: transparent;
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
}
.theme-btn-ghost-light {
	background-color: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
}
.theme-btn-ghost-light:hover {
	background-color: rgba(255, 255, 255, 0.2);
}
.theme-btn svg {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}

/* ---------------------------------------------------------------------- */
/* Reveal / entrance animations                                          */
/* ---------------------------------------------------------------------- */

.reveal-item,
.theme-anim {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
	transition-delay: var(--reveal-delay, 0s);
}
.reveal-item.is-visible,
.theme-anim.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.reveal-item--left {
	transform: translateX(-48px);
}
.reveal-item--left.is-visible {
	transform: translateX(0);
}
.reveal-item--right {
	transform: translateX(48px);
}
.reveal-item--right.is-visible {
	transform: translateX(0);
}

body.is-customizer .reveal-item,
body.is-customizer .theme-anim {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item,
	.theme-anim,
	.theme-hero__media,
	.theme-hero__content {
		transition: none !important;
		transform: none !important;
	}
	.reveal-item,
	.theme-anim {
		opacity: 1 !important;
	}
}

/* ---------------------------------------------------------------------- */
/* WordPress admin bar offset                                             */
/* ---------------------------------------------------------------------- */

body.admin-bar .site-header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}
body.admin-bar .scroll-mt {
	scroll-margin-top: calc(6rem + 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar .scroll-mt {
		scroll-margin-top: calc(6rem + 46px);
	}
}

/* ---------------------------------------------------------------------- */
/* Clickable elements — pointer cursor                                    */
/* ---------------------------------------------------------------------- */

a,
button,
[role="button"],
input[type="submit"],
input[type="button"],
input[type="reset"],
label[for],
select,
summary,
.theme-btn,
.theme-nav-link,
.site-brand,
.theme-cart-btn,
.theme-mobile-toggle,
.theme-product-card,
.theme-404-link,
.theme-about__link,
.site-footer a,
.theme-cart-drawer__close,
.theme-cart-drawer__item-remove,
.theme-cart-qty-btn,
.theme-contact__submit,
.theme-gallery-thumb,
.woocommerce-loop-product__link,
.add_to_cart_button,
.single_add_to_cart_button {
	cursor: pointer;
}

/* ---------------------------------------------------------------------- */
/* Header                                                                 */
/* ---------------------------------------------------------------------- */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-solid {
	background-color: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	border-bottom-color: var(--color-border);
}

.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}
@media (min-width: 1024px) {
	.site-nav {
		height: 80px;
	}
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.site-logo-img {
	height: var(--logo-height) !important;
	width: auto !important;
	display: block;
	transition: filter 0.3s ease;
}
.site-header:not(.is-solid) .site-logo-img {
	filter: brightness(0) invert(1);
}
.site-logo-text {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: var(--logo-height);
	color: var(--color-foreground);
}
.site-header:not(.is-solid) .site-logo-text {
	color: #fff;
}

.site-nav-desktop {
	display: none;
}
@media (min-width: 768px) {
	.site-nav-desktop {
		display: flex;
		align-items: center;
		gap: 2rem;
	}
}
.theme-nav-list {
	display: flex;
	align-items: center;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.theme-nav-link {
	position: relative;
	font-size: 0.875rem;
	letter-spacing: 0.02em;
	color: var(--color-foreground);
	transition: color 0.3s ease;
}
.site-header:not(.is-solid) .theme-nav-link {
	color: rgba(255, 255, 255, 0.9);
}
.theme-nav-link::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -4px;
	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.2s ease;
}
.site-header:not(.is-solid) .theme-cart-btn {
	color: #fff;
}
.theme-cart-btn:hover {
	opacity: 0.6;
}
.theme-cart-btn svg {
	width: 20px;
	height: 20px;
}
.theme-cart-count {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 500;
	background-color: var(--color-accent);
	color: var(--color-accent-foreground);
	border-radius: 50%;
}
.theme-cart-count:empty {
	display: none;
}

.theme-mobile-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	color: var(--color-foreground);
	transition: opacity 0.2s ease, color 0.3s ease;
}
.theme-mobile-toggle:hover {
	opacity: 0.6;
}
.site-header:not(.is-solid) .theme-mobile-toggle {
	color: #fff;
}
@media (min-width: 768px) {
	.theme-mobile-toggle {
		display: none;
	}
}
.theme-mobile-toggle svg {
	width: 20px;
	height: 20px;
	display: block;
}
.theme-mobile-toggle__icon--close {
	display: none;
}
body.theme-mobile-open .theme-mobile-toggle__icon--menu {
	display: none;
}
body.theme-mobile-open .theme-mobile-toggle__icon--close {
	display: flex;
}

.site-nav-mobile {
	display: none;
	border-top: 1px solid var(--color-border);
	padding: 1rem 0;
}
.site-nav-mobile.is-open {
	display: block;
	animation: theme-fade-in 0.6s var(--transition-smooth, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
}
@media (min-width: 768px) {
	.site-nav-mobile,
	.site-nav-mobile.is-open {
		display: none !important;
	}
}
@keyframes theme-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
.theme-nav-list-mobile {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.theme-nav-list-mobile li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.theme-nav-list-mobile a {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.5rem 0;
	font-family: var(--font-body);
	font-size: 0.875rem;
	letter-spacing: 0.025em;
	color: var(--color-foreground);
	transition: color 0.2s ease;
}
.theme-nav-list-mobile a:hover {
	color: var(--color-muted-foreground);
}
.theme-nav-list-mobile a::after {
	display: none;
}

/* ---------------------------------------------------------------------- */
/* 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__media {
	position: absolute;
	inset: 0;
	will-change: transform;
}
.theme-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.theme-hero__overlay {
	position: absolute;
	inset: 0;
	background-color: var(--color-foreground);
	opacity: 0.65;
}

.theme-hero__content {
	position: relative;
	z-index: 10;
	width: 100%;
	text-align: center;
	padding-block: 5rem;
}

.theme-hero__eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}
.theme-hero__rule {
	display: inline-block;
	width: 32px;
	height: 1px;
	background-color: var(--color-accent);
}
.theme-hero__eyebrow-text {
	font-family: var(--font-body);
	font-size: 0.875rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--color-accent);
	font-weight: 500;
}

.theme-hero__title {
	display: block;
	font-family: var(--font-display);
	font-size: 2.25rem;
	line-height: 2.5rem;
	letter-spacing: -0.025em;
	margin-bottom: 1rem;
	color: #fff;
	font-weight: 600;
}
.theme-hero__title--italic {
	font-style: italic;
}
@media (min-width: 768px) {
	.theme-hero__title {
		font-size: 4.5rem;
		line-height: 1;
		margin-bottom: 1.5rem;
	}
}
@media (min-width: 1024px) {
	.theme-hero__title {
		font-size: 6rem;
		line-height: 1;
	}
}

.theme-hero__subtitle {
	font-family: var(--font-body);
	color: rgba(255, 255, 255, 0.9);
	max-width: 36rem;
	margin: 0 auto 2.5rem;
	font-size: 1rem;
	line-height: 1.5;
}
@media (min-width: 768px) {
	.theme-hero__subtitle {
		font-size: 1.125rem;
		line-height: 1.75;
	}
}

.theme-hero__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	justify-content: center;
}
@media (min-width: 640px) {
	.theme-hero__actions {
		flex-direction: row;
	}
}
.theme-hero-btn.theme-btn-lg {
	height: 2.75rem;
	font-size: 1rem;
}
.theme-hero-btn:hover {
	transform: scale(1.05);
}
.theme-hero-btn:active {
	transform: scale(0.97);
}

.theme-hero__scroll-hint {
	position: absolute;
	bottom: 2.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	color: rgba(255, 255, 255, 0.5);
	padding: 0.5rem;
	animation: theme-bounce 2s ease-in-out infinite;
}
.theme-hero__scroll-hint:hover {
	color: #fff;
}
.theme-hero__scroll-hint svg {
	width: 20px;
	height: 20px;
}
@keyframes theme-bounce {
	0%, 100% { transform: translate(-50%, 0); }
	50% { transform: translate(-50%, 8px); }
}

/* Hero entrance timing (approximate to the source's staggered fade/slide). */
.theme-anim {
	transition-duration: 0.9s;
}
.theme-anim--eyebrow { transition-delay: 0.5s; }
.theme-anim--title1 { transition-delay: 0.6s; }
.theme-anim--title2 { transition-delay: 0.75s; }
.theme-anim--subtitle { transition-delay: 1s; }
.theme-anim--actions { transition-delay: 1.2s; }

/* ---------------------------------------------------------------------- */
/* About / Founder                                                       */
/* ---------------------------------------------------------------------- */

.theme-about {
	position: relative;
	overflow: hidden;
	background-color: var(--color-secondary);
}
.theme-about__glow {
	position: absolute;
	width: 24rem;
	height: 24rem;
	border-radius: 50%;
	background-color: color-mix(in srgb, var(--color-accent) 10%, transparent);
	filter: blur(64px);
	pointer-events: none;
}
.theme-about__glow--tl { top: -6rem; left: -6rem; }
.theme-about__glow--br { bottom: -6rem; right: -6rem; }

.theme-about__inner {
	position: relative;
	padding-block: 4rem;
}
@media (min-width: 768px) {
	.theme-about__inner {
		padding-block: 6rem;
	}
}

.theme-about__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: center;
}
@media (min-width: 768px) {
	.theme-about__grid {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

.theme-about__media {
	position: relative;
}
.theme-about__frame {
	position: absolute;
	inset: -0.75rem;
	border: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent);
	border-radius: var(--radius);
	transform: translate(0.75rem, 0.75rem);
}
@media (min-width: 768px) {
	.theme-about__frame {
		inset: -1rem;
		transform: translate(1rem, 1rem);
	}
}
.theme-about__image-wrap {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: var(--shadow-elevated);
	border: 1px solid color-mix(in srgb, var(--color-accent) 20%, transparent);
}
.theme-about__image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	transition: transform 0.6s var(--transition-smooth);
}
.theme-about__image-wrap:hover .theme-about__image {
	transform: scale(1.03);
}

.theme-about__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.theme-about__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}
.theme-about__rule {
	width: 40px;
	height: 1px;
	background-color: var(--color-accent);
}
.theme-about__eyebrow span:last-child {
	font-size: 0.75rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--color-accent);
}
.theme-about__heading {
	font-size: 1.875rem;
	line-height: 1.2;
	margin: 0.5rem 0 1.5rem;
}
@media (min-width: 768px) {
	.theme-about__heading { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
	.theme-about__heading { font-size: 3rem; }
}
.theme-about__heading-accent {
	color: var(--color-accent);
	font-style: italic;
}
.theme-about__text {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	color: var(--color-muted-foreground);
}
.theme-about__lead {
	font-size: 1rem;
	line-height: 1.7;
}
@media (min-width: 768px) {
	.theme-about__lead { font-size: 1.125rem; }
}
.theme-about__quote {
	font-weight: 500;
	color: var(--color-foreground);
	font-style: italic;
	border-left: 2px solid color-mix(in srgb, var(--color-accent) 60%, transparent);
	padding-left: 1rem;
}
.theme-about__link {
	align-self: flex-start;
	margin-top: 1rem;
}

/* ---------------------------------------------------------------------- */
/* Shop / product grid / product card                                    */
/* ---------------------------------------------------------------------- */

.theme-shop {
	padding-block: 4rem;
}
@media (min-width: 768px) {
	.theme-shop { padding-block: 5rem; }
}
.theme-shop__header {
	text-align: center;
	margin-bottom: 3rem;
}
.theme-shop__eyebrow {
	display: block;
	font-size: 0.875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
}
.theme-shop__heading {
	font-size: 1.875rem;
	font-weight: 700;
	margin-top: 0.5rem;
}
@media (min-width: 768px) {
	.theme-shop__heading { font-size: 3rem; }
}
.theme-shop__empty {
	text-align: center;
	padding: 5rem 0;
	color: var(--color-muted-foreground);
}

.theme-product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	align-items: stretch;
}
@media (min-width: 640px) {
	.theme-product-grid { gap: 1.5rem; }
}
@media (min-width: 1024px) {
	.theme-product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 2rem;
	}
}

.theme-product-card-wrap {
	display: flex;
}
.theme-product-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	color: inherit;
}
.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 1 / 1;
	background-color: var(--color-secondary);
	overflow: hidden;
	border-radius: var(--radius);
	margin-bottom: 1rem;
}
.theme-product-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--transition-smooth);
}
.theme-product-card:hover .theme-product-card__img {
	transform: scale(1.08);
}
.theme-product-card--static .theme-product-card__img {
	filter: grayscale(1) blur(2px);
}
.theme-product-badge {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	padding: 0.4rem 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: var(--radius);
	z-index: 2;
}
@media (min-width: 768px) {
	.theme-product-badge { top: 0.75rem; left: 0.75rem; }
}
.theme-product-badge--dark {
	background-color: var(--color-foreground);
	color: var(--color-background);
}
.theme-product-badge--accent {
	background-color: var(--color-accent);
	color: var(--color-accent-foreground);
}
.theme-product-card__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.theme-product-card__title {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 500;
	transition: color 0.3s ease;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.theme-product-card:hover .theme-product-card__title {
	color: var(--color-accent);
}
.theme-product-card__price {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-muted-foreground);
}
.theme-product-card:hover,
.theme-product-card:hover .theme-product-card__price {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.theme-product-card:hover {
	transform: translateY(-8px);
}

/* ---------------------------------------------------------------------- */
/* CTA + contact                                                          */
/* ---------------------------------------------------------------------- */

.theme-cta {
	position: relative;
	overflow: hidden;
}
.theme-cta__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.theme-cta__overlay {
	position: absolute;
	inset: 0;
	background-color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
}
.theme-cta__inner {
	position: relative;
	z-index: 10;
	padding-block: 4rem;
}
@media (min-width: 768px) {
	.theme-cta__inner { padding-block: 5rem; }
}
.theme-cta__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: center;
}
@media (min-width: 768px) {
	.theme-cta__grid {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

.theme-glass {
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	padding: 2rem;
}
@media (min-width: 768px) {
	.theme-glass { padding: 3rem; }
}
.theme-cta__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
}
.theme-cta__title {
	font-size: 1.5rem;
	color: #fff;
	margin-bottom: 1rem;
}
@media (min-width: 768px) {
	.theme-cta__title { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
	.theme-cta__title { font-size: 3rem; }
}
.theme-cta__text {
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 2rem;
	font-size: 1rem;
	line-height: 1.7;
}
@media (min-width: 768px) {
	.theme-cta__text { font-size: 1.125rem; }
}
.theme-cta__contact-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.theme-cta__contact-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.875rem;
}
.theme-cta__contact-item svg {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}
.theme-cta__contact-item a:hover {
	color: #fff;
}

.theme-contact__eyebrow {
	display: block;
	font-size: 0.875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 0.25rem;
}
.theme-contact__title {
	font-size: 1.5rem;
	color: #fff;
	margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
	.theme-contact__title { font-size: 1.875rem; }
}
.theme-contact__form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}
.theme-contact__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}
@media (min-width: 640px) {
	.theme-contact__row {
		grid-template-columns: 1fr 1fr;
	}
}
.theme-contact__field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.theme-contact__field label {
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: rgba(255, 255, 255, 0.8);
}
.theme-contact__field input,
.theme-contact__field textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--radius);
	font-size: 0.875rem;
	color: #fff;
	font-family: var(--font-body);
	resize: none;
	transition: box-shadow 0.3s ease;
}
.theme-contact__field input::placeholder,
.theme-contact__field textarea::placeholder {
	color: rgba(255, 255, 255, 0.4);
}
.theme-contact__field input:focus,
.theme-contact__field textarea:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}
.theme-contact__submit {
	width: 100%;
}
.theme-contact__success {
	text-align: center;
	padding: 2.5rem 0;
}
.theme-contact__success-icon {
	width: 4rem;
	height: 4rem;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
}
.theme-contact__success-icon svg {
	width: 2rem;
	height: 2rem;
	color: #fff;
}
.theme-contact__success h3 {
	font-size: 1.5rem;
	color: #fff;
	margin-bottom: 0.5rem;
}
.theme-contact__success p {
	color: rgba(255, 255, 255, 0.7);
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.site-footer {
	border-top: 1px solid var(--color-border);
}
.site-footer-inner {
	padding-block: 3rem;
}
@media (min-width: 1024px) {
	.site-footer-inner { padding-block: 4rem; }
}
.site-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}
@media (min-width: 768px) {
	.site-footer-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 3rem;
	}
}
.site-footer-tagline {
	margin-top: 1rem;
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	max-width: 24rem;
	line-height: 1.7;
}
.site-footer-social {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
}
.site-footer-social a {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	transition: color 0.2s ease;
}
.site-footer-social a:hover {
	color: var(--color-foreground);
}
.site-footer-nav h4,
.site-footer-contact h4 {
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 1rem;
	font-family: var(--font-body);
}
.site-footer-nav ul,
.site-footer-nav-list,
.site-footer-contact ul {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-footer-nav a {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	transition: color 0.2s ease;
}
.site-footer-nav a:hover {
	color: var(--color-foreground);
}
.site-footer-contact li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
}
.site-footer-contact li svg {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}
.site-footer-contact a:hover {
	color: var(--color-foreground);
}
.site-footer-bottom {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}
@media (min-width: 640px) {
	.site-footer-bottom {
		flex-direction: row;
		justify-content: space-between;
	}
}
.site-footer-bottom p,
.site-footer-bottom a {
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
}
.site-footer-bottom a:hover {
	color: var(--color-foreground);
}

/* ---------------------------------------------------------------------- */
/* Generic page / 404 / thank you                                        */
/* ---------------------------------------------------------------------- */

body:not(.theme-no-hero) .site-main {
	padding-top: 0;
}
body.theme-no-hero .site-main {
	padding-top: var(--header-height);
}

.theme-page-wrap {
	padding-block: 2.5rem 5rem;
}
.page-title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 2rem;
}
@media (min-width: 768px) {
	.page-title { font-size: 2.5rem; }
}

.theme-404 {
	min-height: 100vh;
	display: flex;
	align-items: center;
}
.theme-404-inner {
	text-align: center;
	padding-block: 5rem;
}
.theme-404-title {
	font-size: 3rem;
	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;
}

/* ---------------------------------------------------------------------- */
/* Single product page (ProductDetail.tsx parity)                         */
/* ---------------------------------------------------------------------- */

body.theme-no-hero .site-main.single-product-main,
.single-product-main.site-main {
	padding-top: 6rem !important;
}
@media (min-width: 1024px) {
	body.theme-no-hero .site-main.single-product-main,
	.single-product-main.site-main {
		padding-top: 7rem !important;
	}
}

.single-product-main .theme-back-to-shop a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	padding-block: 1.5rem;
	transition: color 0.2s ease;
}
.single-product-main .theme-back-to-shop a:hover {
	color: var(--color-foreground);
}
.single-product-main .theme-back-to-shop svg {
	width: 1rem;
	height: 1rem;
}

.single-product-main .theme-product-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	padding-bottom: 5rem;
	min-width: 0;
}
@media (min-width: 768px) {
	.single-product-main .theme-product-layout {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4rem;
	}
}

.single-product-main .theme-product-gallery,
.single-product-main .theme-product-info {
	min-width: 0;
	max-width: 100%;
}
@media (min-width: 768px) {
	.single-product-main .theme-product-info {
		padding-block: 1rem;
	}
}
@media (min-width: 1024px) {
	.single-product-main .theme-product-info {
		padding-block: 2.5rem;
	}
}

.single-product-main .theme-product-gallery__main {
	position: relative;
	aspect-ratio: 3 / 4;
	background-color: var(--color-secondary);
	overflow: hidden;
	border-radius: var(--radius);
	margin-bottom: 1rem;
}

.single-product-main .theme-product-gallery__img {
	position: static !important;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}

.single-product-main .theme-product-thumbnails {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.5rem;
}

.single-product-main .theme-product-thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--radius);
	border: 2px solid transparent;
	opacity: 0.6;
	padding: 0;
	background: none;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}
.single-product-main .theme-product-thumb.is-active {
	border-color: var(--color-primary);
	opacity: 1;
}
.single-product-main .theme-product-thumb:hover {
	opacity: 1;
}
.single-product-main .theme-product-thumb__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.single-product-main .theme-product-category {
	margin: 0;
	font-family: var(--font-body);
	font-size: 0.875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
}

.single-product-main .theme-product-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.2;
	margin: 0.5rem 0 1rem;
}
@media (min-width: 768px) {
	.single-product-main .theme-product-title {
		font-size: 1.875rem;
	}
}

.single-product-main .theme-product-price {
	font-family: var(--font-body);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--color-accent);
	margin: 0 0 1.5rem;
}

.single-product-main .theme-stock-badge {
	display: inline-block;
	margin-bottom: 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.single-product-main .theme-stock-badge--out {
	color: var(--color-foreground);
}

.single-product-main .theme-product-description {
	font-family: var(--font-body);
	color: var(--color-muted-foreground);
	line-height: 1.625;
	margin-bottom: 2rem;
	white-space: pre-line;
	overflow-wrap: break-word;
	word-break: break-word;
}
.single-product-main .theme-product-description p {
	margin: 0 0 1rem;
}
.single-product-main .theme-product-description p:last-child {
	margin-bottom: 0;
}

.single-product-main .theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
}
.single-product-main .theme-add-to-cart-area .theme-product-note {
	flex: 1 1 100%;
	width: 100%;
	margin-bottom: 0;
}

.single-product-main .theme-quantity-wrapper {
	display: flex;
	align-items: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}
.single-product-main .theme-quantity-wrapper button {
	padding: 0.75rem 1rem;
	transition: background-color 0.2s ease;
}
.single-product-main .theme-quantity-wrapper button:hover {
	background-color: var(--color-secondary);
}
.single-product-main .theme-quantity-wrapper button svg {
	width: 1rem;
	height: 1rem;
}
.single-product-main .theme-qty-display {
	min-width: 3rem;
	padding: 0.75rem 1rem;
	text-align: center;
	font-family: var(--font-body);
	font-size: 1rem;
}
.single-product-main .theme-qty-input {
	display: none;
}

.single-product-main .theme-product-atc {
	flex: 1 1 auto;
	min-width: 10rem;
}

.single-product-main .theme-product-attribute {
	margin-bottom: 1.5rem;
	position: relative;
}
.single-product-main .theme-product-attribute__label {
	margin: 0 0 0.5rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
}
.single-product-main .theme-product-attribute__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.single-product-main .theme-product-chip {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 0.5rem 1rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	background: var(--color-background);
	color: var(--color-foreground);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.single-product-main .theme-product-chip.is-active:not(.theme-color-swatch),
.single-product-main .theme-product-chip:hover:not(.theme-color-swatch) {
	border-color: var(--color-primary);
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
}

.single-product-main .theme-color-swatches {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex-wrap: nowrap;
}
.single-product-main .theme-color-swatch {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	text-align: left;
	padding: 0.5rem 0.75rem;
	border-radius: var(--radius);
	border: 1px solid var(--color-border);
	background: transparent;
	color: var(--color-foreground);
}
.single-product-main .theme-color-swatch.is-active {
	border-color: var(--color-primary);
	background-color: color-mix(in srgb, var(--color-primary) 5%, transparent);
}
@supports not (background-color: color-mix(in srgb, red 5%, transparent)) {
	.single-product-main .theme-color-swatch.is-active {
		background-color: rgba(64, 45, 83, 0.05);
	}
}
.single-product-main .theme-color-swatch__circle {
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	flex-shrink: 0;
	border: 1px solid var(--color-border);
}
.single-product-main .theme-color-swatch__name {
	font-size: 0.875rem;
}

.single-product-main .theme-product-note {
	margin-bottom: 1.5rem;
}
.single-product-main .theme-product-note__label {
	display: block;
	margin: 0 0 0.5rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
}
.single-product-main .theme-product-note__input {
	width: 100%;
	min-height: 5rem;
	padding: 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-foreground);
	background: var(--color-background);
	resize: vertical;
}
.single-product-main .theme-product-note__input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 1px var(--color-primary);
}
.single-product-main .theme-product-attribute__select {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.single-product-main .theme-product-details {
	border-top: 1px solid var(--color-border);
	padding-top: 2rem;
}
.single-product-main .theme-product-details__heading {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 1rem;
}
.single-product-main .theme-product-details__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.single-product-main .theme-product-details__list li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	margin-bottom: 0.5rem;
	overflow-wrap: break-word;
	word-break: break-word;
}
.single-product-main .theme-product-details__list li::before {
	content: '';
	width: 6px;
	height: 6px;
	margin-top: 6px;
	flex-shrink: 0;
	border-radius: 50%;
	background-color: var(--color-accent);
}

.single-product-main .theme-related-products {
	padding-block: 5rem;
	border-top: 1px solid var(--color-border);
}
.single-product-main .theme-related-products__heading {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 2.5rem;
}
@media (min-width: 768px) {
	.single-product-main .theme-related-products__heading {
		font-size: 1.5rem;
	}
}

.single-product-main .theme-related-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}
@media (min-width: 1024px) {
	.single-product-main .theme-related-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 2rem;
	}
}

.single-product-main .theme-related-card {
	display: block;
	color: inherit;
	text-decoration: none;
}
.single-product-main .theme-related-card--static {
	cursor: default;
}
.single-product-main .theme-related-card__image-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	background-color: var(--color-secondary);
	overflow: hidden;
	border-radius: var(--radius);
	margin-bottom: 1rem;
}
.single-product-main .theme-related-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s var(--transition-smooth);
}
.single-product-main .theme-related-card__img.is-dimmed {
	opacity: 0.6;
}
.single-product-main .theme-related-card:hover .theme-related-card__img {
	transform: scale(1.05);
}
.single-product-main .theme-related-card__category {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	margin-bottom: 0.25rem;
}
.single-product-main .theme-related-card__title {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 500;
	margin: 0;
	transition: color 0.3s ease;
}
.single-product-main .theme-related-card:hover .theme-related-card__title {
	color: var(--color-accent);
}
.single-product-main .theme-related-card__price {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-muted-foreground);
	margin: 0.25rem 0 0;
}

/* WooCommerce leftovers hidden on single product */
.single-product-main .woocommerce-product-gallery,
.single-product-main .woocommerce-tabs,
.single-product-main .woocommerce-breadcrumb,
.single-product-main .product_meta,
.single-product-main a.added_to_cart,
.single-product-main .woocommerce-message,
.single-product-main .woocommerce-info {
	display: none !important;
}

.single-product-main .single_variation_wrap .woocommerce-variation-price {
	display: none;
}

.single-product-main .variations_form .reset_variations {
	display: none !important;
}

/* WooCommerce buttons on single product */
.single-product-main .single_add_to_cart_button.button,
.single-product-main .theme-product-atc {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single-product-main .single_add_to_cart_button.button:hover,
.single-product-main .theme-product-atc:hover {
	opacity: 0.85 !important;
}
.single-product-main .single_add_to_cart_button.button:disabled,
.single-product-main .single_add_to_cart_button.button.disabled,
.single-product-main .theme-product-atc.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single-product-main form.variations_form .single_add_to_cart_button.disabled,
.single-product-main form.variations_form .theme-product-atc.disabled {
	pointer-events: auto !important;
}
.single-product-main .single_add_to_cart_button.loading::after,
.single-product-main .ajax_add_to_cart.loading::after {
	display: none !important;
}

/* Legacy single-product selectors (other templates) */
.single-product .site-main:not(.single-product-main) {
	padding-top: var(--header-height);
}

/* Variations table (stacked layout). */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}
.single-product .variations tbody td.label {
	padding-bottom: 0.25rem;
}
.single-product .variations tbody td.value {
	padding-top: 0;
}
/* ---------------------------------------------------------------------- */
/* WooCommerce: buttons                                                   */
/* ---------------------------------------------------------------------- */

.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;
}
.single-product .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
}
.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after {
	display: none !important;
}
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
	display: none !important;
}

/* ---------------------------------------------------------------------- */
/* WooCommerce: notices (scoped visibility)                               */
/* ---------------------------------------------------------------------- */

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}
#theme-cart-drawer .woocommerce-message {
	display: none;
}
.woocommerce-message,
.woocommerce-info {
	font-family: var(--font-body);
	border-radius: var(--radius);
	border: 1px solid var(--color-border);
	padding: 1rem 1.5rem;
	background-color: var(--color-secondary);
}
.woocommerce-error {
	font-family: var(--font-body);
	border-radius: var(--radius);
	padding: 1rem 1.5rem;
	background-color: #fdecea;
	color: #7a1f1f;
}

/* ---------------------------------------------------------------------- */
/* Shop / product archive                                                 */
/* ---------------------------------------------------------------------- */

.theme-shop-archive .site-main {
	padding-top: var(--header-height);
}

/* ---------------------------------------------------------------------- */
/* Side cart drawer                                                        */
/* ---------------------------------------------------------------------- */

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(25, 22, 29, 0.2);
	z-index: 60;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
}

#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(--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__header h2 {
	font-size: 1.125rem;
	font-weight: 700;
}
.theme-cart-drawer__close {
	padding: 0.25rem;
}
.theme-cart-drawer__close:hover {
	opacity: 0.6;
}
.theme-cart-drawer__close svg {
	width: 1.25rem;
	height: 1.25rem;
}

.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 {
	width: 3rem;
	height: 3rem;
	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: auto;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.theme-cart-item {
	display: flex;
	gap: 1rem;
}
.theme-cart-item__img {
	width: 5rem;
	height: 6rem;
	flex-shrink: 0;
	background-color: var(--color-secondary);
	overflow: hidden;
	border-radius: var(--radius);
}
.theme-cart-item__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.theme-cart-item__body {
	flex: 1;
	min-width: 0;
}
.theme-cart-item__name {
	font-size: 0.875rem;
	font-weight: 500;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.theme-cart-item__name:hover {
	opacity: 0.7;
}
.theme-cart-item__price {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	margin-top: 0.125rem;
}
.theme-cart-item__variation {
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
}
.theme-cart-item__controls {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.75rem;
}
.theme-cart-item__controls button {
	padding: 0.25rem;
	border-radius: var(--radius);
	transition: background-color 0.2s ease;
}
.theme-cart-item__controls button:hover {
	background-color: var(--color-secondary);
}
.theme-cart-item__controls svg {
	width: 0.75rem;
	height: 0.75rem;
}
.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);
	padding: 0;
}
.theme-cart-item__remove:hover {
	color: var(--color-foreground);
	background: none;
}

.theme-cart-item__meta-wrap {
	margin-top: 0.25rem;
}
.theme-cart-item__meta {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.theme-cart-item__meta-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
}
.theme-cart-item__meta-row--note {
	font-style: italic;
}
.theme-cart-item__meta-label {
	font-weight: 600;
	color: var(--color-foreground);
}
.theme-cart-item__swatch {
	display: inline-block;
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
	border: 1px solid var(--color-border);
	flex-shrink: 0;
}

.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__note {
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
}
.theme-cart-drawer__checkout {
	width: 100%;
}

/* ---------------------------------------------------------------------- */
/* WooCommerce Checkout Block                                             */
/* ---------------------------------------------------------------------- */

body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-top: var(--header-height);
	padding-bottom: 4rem;
}

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-cart .wc-block-cart,
body.woocommerce-account .theme-page-wrap {
	font-family: var(--font-body);
}

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,
body.woocommerce-cart .wc-block-components-text-input input {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-family: var(--font-body);
	color: var(--color-foreground);
	background-color: var(--color-background);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
	outline: none;
	box-shadow: 0 0 0 1px var(--color-primary);
	border-color: var(--color-primary);
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder {
	color: var(--color-muted-foreground);
}

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.85;
}

body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-components-notice-banner {
	border-radius: var(--radius);
	font-family: var(--font-body);
}

/* Checkout header */
.theme-checkout-shell__inner {
	max-width: 100%;
}
.theme-checkout-header {
	margin-bottom: 2rem;
}
.theme-checkout-header__back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	margin-bottom: 1.5rem;
}
.theme-checkout-header__back:hover {
	color: var(--color-foreground);
}
.theme-checkout-header__back svg {
	width: 1rem;
	height: 1rem;
}
.theme-checkout-header__title {
	margin: 0 0 0.75rem;
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	line-height: 1.1;
}
.theme-checkout-header__intro {
	margin: 0 0 2rem;
	font-size: 0.9375rem;
	color: var(--color-muted-foreground);
	max-width: 42rem;
}

/* Neutralize parent width constraints */
body.woocommerce-checkout .theme-checkout-content,
body.woocommerce-checkout .theme-checkout-shell .entry-content,
body.woocommerce-checkout .theme-page-wrap.container-wide,
body.woocommerce-checkout .site-main .container-wide,
body.woocommerce-checkout article,
body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
	max-width: 100%;
}

/* Checkout block width — dedicated page + embedded block */
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wc-block-checkout {
	max-width: 80rem;
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
}

/* Notices container alignment */
body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
	max-width: 80rem;
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
}

/* Two-column layout on sidebar layout container */
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-components-sidebar-layout,
	.entry-content .wc-block-checkout-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: 1.5rem;
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-components-sidebar-layout > *,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > *,
.entry-content .wc-block-components-sidebar-layout > *,
.entry-content .wc-block-checkout-sidebar-layout > * {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
	grid-column: 1 / -1;
	order: 1;
}
body.woocommerce-checkout .wc-block-checkout__main,
.entry-content .wc-block-checkout__main {
	order: 2;
}
body.woocommerce-checkout .wc-block-checkout__sidebar,
.entry-content .wc-block-checkout__sidebar {
	order: 3;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
	width: 100% !important;
	max-width: none !important;
}

/* Sidebar wrappers — no background */
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar,
.entry-content .wp-block-woocommerce-checkout-totals-block {
	background: none;
	border-radius: 0;
	padding: 0;
}

/* Order summary card only */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	background-color: var(--color-secondary);
	border-radius: var(--radius);
	padding: 2rem;
	width: 100%;
	box-sizing: border-box;
}

/* Empty checkout cart */
body.woocommerce-checkout .wc-block-checkout-empty,
.entry-content .wc-block-checkout-empty {
	margin-inline: auto;
	max-width: 36rem;
	width: 100%;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-components-notice-banner {
	grid-column: 1 / -1;
}

.theme-thankyou-title {
	margin-bottom: 1.5rem;
}
body.theme-thankyou-page {
	overflow-x: hidden;
}
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th {
	text-align: left;
}
body.theme-thankyou-page .woocommerce-order-details tfoot td {
	text-align: right;
}
@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;
	overflow-wrap: break-word;
}
