/*
 * Theme styles for markup without a source equivalent plus functional rules.
 *
 * The compiled stylesheet's display utilities (`.flex`, `.block`, …) come
 * after its `[hidden]` rule and win on equal specificity, so elements that
 * carry both stay on screen and keep receiving clicks. This override has
 * to be a real rule: a `<?php` file header is an invalid prelude and the
 * CSS parser discards the first block that follows it.
 */

[hidden] {
	display: none !important;
}

/* ---------------------------------------------------------------
   Header: transparent on home, solid elsewhere
   --------------------------------------------------------------- */

.site-header.is-solid {
	background-color: hsl(var(--background) / 0.9);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom-color: hsl(var(--border));
}

.theme-header-logo {
	display: block;
}

.site-logo-img {
	height: var(--logo-height);
	width: auto;
	display: block;
}

.site-logo-text {
	line-height: var(--logo-height);
	display: block;
}

/* Header/footer logos: sizes derive from the Customizer logo height. */
footer .site-logo-img {
	height: calc(var(--logo-height) * 0.875);
	width: calc(var(--logo-height) * 0.875);
}

.site-header .theme-header-logo {
	height: calc(var(--logo-height) * 0.75);
	width: calc(var(--logo-height) * 0.75);
}

@media (min-width: 1024px) {
	.site-header .theme-header-logo {
		height: var(--logo-height);
		width: var(--logo-height);
	}
}

.site-header.is-solid .theme-header-logo {
	height: calc(var(--logo-height) * 0.7);
	width: calc(var(--logo-height) * 0.7);
}

@media (min-width: 1024px) {
	.site-header.is-solid .theme-header-logo {
		height: calc(var(--logo-height) * 0.875);
		width: calc(var(--logo-height) * 0.875);
	}
}

/* Header logo shrinks on scroll, mirroring the source class swap. */
.theme-header-logo--no-filter {
	filter: none !important;
}

/* ---------------------------------------------------------------
   Home: hero fills the viewport under the fixed header
   --------------------------------------------------------------- */

.theme-home {
	display: block;
}

.theme-hero-logo {
	animation: theme-logo-in 0.9s var(--transition-smooth) 0.2s both;
}

.theme-hero-badge {
	animation: theme-fade-in 0.6s var(--transition-smooth) 0.4s both;
}

.theme-hero-title {
	animation: theme-title-in 0.8s var(--transition-smooth) 0.5s both;
}

.theme-hero-sub {
	animation: theme-rise-in 0.6s var(--transition-smooth) 0.7s both;
}

.theme-hero-ctas {
	animation: theme-rise-in 0.6s var(--transition-smooth) 0.9s both;
}

.theme-hero-inner {
	animation: theme-hero-zoom 1s var(--transition-smooth) both;
}

@keyframes theme-hero-zoom {
	from {
		opacity: 0;
		transform: scale(0.94);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes theme-logo-in {
	from {
		opacity: 0;
		transform: translateY(20px) rotate(-6deg);
	}
	to {
		opacity: 1;
		transform: translateY(0) rotate(0);
	}
}

@keyframes theme-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes theme-title-in {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes theme-rise-in {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Hover lifts copied from the source motion props. */
.theme-scale-hover {
	display: inline-block;
	transition: transform 0.2s var(--transition-smooth);
}

.theme-scale-hover:hover {
	transform: scale(1.04);
}

.theme-scale-hover:active {
	transform: scale(0.97);
}

.theme-lift {
	transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth), border-color 0.3s ease;
}

.theme-lift:hover {
	transform: translateY(-6px);
}

.theme-play {
	display: flex;
	transition: transform 0.2s var(--transition-smooth);
}

.theme-play:hover {
	transform: scale(1.1);
}

.theme-listen-soon:hover {
	transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
	.theme-hero-logo,
	.theme-hero-badge,
	.theme-hero-title,
	.theme-hero-sub,
	.theme-hero-ctas,
	.theme-hero-inner,
	.theme-reveal-item,
	.reveal-item {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ---------------------------------------------------------------
   Scroll reveals (source uses framer-motion useInView + stagger)
   --------------------------------------------------------------- */

.theme-reveal-item {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}

.theme-reveal-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Fallback: never leave content hidden in the Customizer or without JS. */
body.is-customizer .theme-reveal-item,
body.no-js .theme-reveal-item,
.theme-reveal-item.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------------------------------------------------------------
   Bubbles
   --------------------------------------------------------------- */

.bubble {
	pointer-events: none;
}

/* ---------------------------------------------------------------
   Cart drawer and overlay
   --------------------------------------------------------------- */

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background-color: hsl(var(--foreground) / 0.2);
	z-index: 40;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#theme-cart-drawer {
	display: none !important;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(12px);
	opacity: 0;
	transition: transform 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth);
}

body.cart-open #theme-cart-drawer {
	display: flex !important;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	opacity: 1;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

.theme-cart-count:empty {
	display: none;
}

/* ---------------------------------------------------------------
   Product cards (shared by home grid, archive and related)
   --------------------------------------------------------------- */

.theme-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.theme-product-card > .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: auto;
}

.theme-product-card *:not(.theme-card-link) {
	pointer-events: none;
}

.theme-product-card .theme-card-add {
	pointer-events: auto;
	z-index: 3;
}

.theme-product-card:hover .theme-product-card__image {
	transform: scale(1.06);
}

.theme-product-card .theme-card-add:focus-visible {
	outline: 2px solid hsl(var(--ring));
	outline-offset: 2px;
}

.theme-merch-hidden {
	display: none !important;
}

/* ---------------------------------------------------------------
   Price range (dual overlapping handles, Radix pattern)
   --------------------------------------------------------------- */

.theme-price-range {
	position: relative;
	height: 0.5rem;
	overflow: visible;
}

.theme-range {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	height: 100%;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
}

.theme-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	height: 20px;
	width: 20px;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background-color: hsl(var(--background));
	cursor: pointer;
	box-shadow: 0 0 0 1px hsl(var(--background));
}

.theme-range::-moz-range-thumb {
	pointer-events: auto;
	height: 20px;
	width: 20px;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background-color: hsl(var(--background));
	cursor: pointer;
}

.theme-range:focus-visible {
	outline: none;
}

.theme-range:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 2px hsl(var(--ring));
}

.theme-range--max {
	z-index: 3;
}

.theme-range--min {
	z-index: 4;
}

/* ---------------------------------------------------------------
   Accordion (Radix behaviour replicated with buttons)
   --------------------------------------------------------------- */

.theme-accordion [data-accordion-trigger] {
	background: none;
	border: 0;
	width: 100%;
	cursor: pointer;
	color: inherit;
}

.theme-accordion [data-accordion-content][data-state="closed"] {
	animation: accordion-up 0.2s ease-out;
}

.theme-accordion [data-accordion-content][data-state="open"] {
	animation: accordion-down 0.2s ease-out;
}

/* ---------------------------------------------------------------
   Forms: feedback states
   --------------------------------------------------------------- */

.theme-form-message {
	font-size: 0.875rem;
	line-height: 1.5;
	color: hsl(var(--muted-foreground));
}

.theme-form-message.is-error {
	color: hsl(var(--destructive, 0 84% 60%));
}

/* ---------------------------------------------------------------
   Mailto form success / error feedback
   --------------------------------------------------------------- */

.theme-mail-form[data-state="sent"] .theme-mail-form__fields {
	opacity: 0.6;
	pointer-events: none;
}

/* ---------------------------------------------------------------
   WooCommerce: single product
   --------------------------------------------------------------- */

.single-product .theme-product-layout {
	min-width: 0;
}

.single-product .theme-product-gallery,
.single-product .theme-product-info {
	min-width: 0;
	max-width: 100%;
}

.single-product .theme-product-thumbnails {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.5rem;
	max-width: 100%;
}

.single-product .theme-product-thumb {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-width: 2px;
	border-style: solid;
	border-radius: 0.375rem;
	transition: all 0.2s ease;
	cursor: pointer;
	padding: 0;
	background: none;
}

.single-product .theme-product-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-product .theme-product-thumb.is-active {
	border-color: hsl(var(--primary));
	opacity: 1;
}

.single-product .theme-product-thumb:not(.is-active) {
	border-color: transparent;
	opacity: 0.6;
}

.single-product .theme-product-thumb:not(.is-active):hover {
	opacity: 1;
}

.single-product .theme-main-image-box {
	position: relative;
	aspect-ratio: 3 / 4;
	background-color: hsl(var(--secondary));
	overflow: hidden;
	border-radius: var(--radius);
}

.single-product .theme-main-image-box img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-product .theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 1rem;
}

.single-product .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
}

.single-product .theme-quantity-wrapper {
	display: flex;
	align-items: center;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
}

.single-product .theme-qty-btn {
	padding: 0.75rem 1rem;
	transition: background-color 0.2s ease;
	background: none;
	border: 0;
	cursor: pointer;
	color: inherit;
	line-height: 1;
}

.single-product .theme-qty-btn:hover {
	background-color: hsl(var(--secondary));
}

.single-product .theme-qty-input {
	width: 48px;
	min-width: 48px;
	padding: 0.75rem 0;
	text-align: center;
	background: transparent;
	border: 0;
	color: inherit;
	-moz-appearance: textfield;
}

.single-product .theme-qty-input::-webkit-outer-spin-button,
.single-product .theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
}

.single-product .variations {
	width: 100%;
	border-collapse: collapse;
}

/* The pills below carry the visible label; hide the native table chrome. */
.single-product .variations tbody td.label {
	display: none;
}

.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td.value {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
}

.single-product .theme-attr-select-hidden {
	display: none !important;
}

.single-product .theme-attribute-pills {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.single-product .theme-attr-pill {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 2px);
	transition: all 0.2s ease;
	background: none;
	cursor: pointer;
	color: inherit;
	font-family: var(--font-body);
}

.single-product .theme-attr-pill:hover {
	border-color: hsl(var(--primary) / 0.5);
}

.single-product .theme-attr-pill.is-active {
	background-color: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* Source: color options are pills with a swatch, selected uses border + tint. */
.single-product .theme-attr-pill--color {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
}

.single-product .theme-attr-pill--color.is-active {
	background-color: hsl(var(--primary) / 0.05);
	border-color: hsl(var(--primary));
	color: inherit;
}

.single-product .theme-attr-swatch {
	width: 1rem;
	height: 1rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--border));
	display: block;
	flex-shrink: 0;
}

.single-product .single_variation_wrap {
	margin-top: 1.5rem;
}

.single-product .woocommerce-variation-price {
	margin-bottom: 1rem;
}

.theme-btn-primary,
.single_add_to_cart_button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	white-space: nowrap;
	border-radius: var(--radius);
	font-size: 0.875rem;
	font-weight: 500;
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	transition: background-color 0.2s ease;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
}

.theme-btn-primary:hover,
.single_add_to_cart_button.button:hover {
	background-color: hsl(var(--primary) / 0.9);
}

.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;
}

.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;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* ---------------------------------------------------------------
   WooCommerce: notices (styled, always visible where needed)
   --------------------------------------------------------------- */

.woocommerce-notices-wrapper {
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
	margin: 1rem 0;
	font-size: 0.875rem;
	color: hsl(var(--foreground));
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.woocommerce-error {
	border-color: hsl(0 84% 60% / 0.5);
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	margin-left: auto;
	padding: 0.5rem 1rem;
	border-radius: var(--radius);
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
}

/* ---------------------------------------------------------------
   WooCommerce: archive layout + pagination
   --------------------------------------------------------------- */

.theme-shop-main {
	padding-bottom: 5rem;
}

.theme-shop-header {
	margin-bottom: 2.5rem;
}

.theme-shop-title {
	font-family: var(--font-display);
	font-size: 2.25rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.theme-shop-count {
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	margin-top: 0.5rem;
}

.woocommerce-pagination {
	margin-top: 3rem;
}

.woocommerce-pagination ul.page-numbers {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-pagination ul.page-numbers li {
	margin: 0;
}

.woocommerce-pagination ul.page-numbers a,
.woocommerce-pagination ul.page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	font-size: 0.875rem;
	text-decoration: none;
	color: inherit;
}

.woocommerce-pagination ul.page-numbers span.current,
.woocommerce-pagination ul.page-numbers a:hover {
	background-color: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* ---------------------------------------------------------------
   WooCommerce generated markup (no source equivalent)
   --------------------------------------------------------------- */

.theme-product-summary .price,
.theme-product-summary .woocommerce-Price-amount {
	font-size: 1.5rem;
	font-weight: 600;
	color: hsl(var(--primary));
	font-family: var(--font-body);
}

.theme-product-summary .price del {
	opacity: 0.6;
	font-size: 1rem;
	margin-right: 0.5rem;
}

.theme-product-summary .price ins {
	text-decoration: none;
}

.theme-product-summary .woocommerce-product-details__short-description {
	color: hsl(var(--muted-foreground));
	line-height: 1.75;
	font-size: 1rem;
}

.theme-product-summary .price ins,
.theme-product-summary .woocommerce-Price-currencySymbol {
	text-decoration: none;
}

.theme-stock-status {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: hsl(var(--muted-foreground));
	margin-bottom: 1rem;
}

.theme-stock-status.is-out {
	color: hsl(0 84% 60%);
}

.theme-attr-pills-block h3 {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.single-product .theme-attribute-pills {
	margin-bottom: 1.5rem;
}

.single-product .theme-attribute-pills h3 {
	display: block;
	width: 100%;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0;
}

.theme-details-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.theme-details-list li {
	display: flex;
	align-items: flex-start;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
}

.theme-details-list li::before {
	content: '';
	width: 0.375rem;
	height: 0.375rem;
	background-color: hsl(var(--primary));
	border-radius: 9999px;
	margin: 0.5rem 0.75rem 0 0;
	flex-shrink: 0;
}

/* ---------------------------------------------------------------
   WooCommerce: cart, account, checkout width parity
   --------------------------------------------------------------- */

body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
body.theme-thankyou-page .site-main {
	padding-top: calc(var(--header-height, 80px) + 1.5rem);
	padding-bottom: 4rem;
}

.theme-page-shell {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}

@media (min-width: 1024px) {
	.theme-page-shell {
		padding: 0 2rem;
	}
}

.page-title {
	font-family: var(--font-display);
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin-bottom: 2rem;
}

@media (min-width: 768px) {
	.page-title {
		font-size: 2.25rem;
	}
}

body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
	max-width: 100%;
}

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,
	body.woocommerce-checkout .wc-block-checkout.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 3rem);
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: 1rem;
	padding: 1.5rem;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	grid-column: 1 / -1;
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .woocommerce-checkout .form-row select {
	font-family: var(--font-body) !important;
	font-size: 0.875rem !important;
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: var(--radius) !important;
	width: 100% !important;
	max-width: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus {
	outline: none !important;
	box-shadow: 0 0 0 1px hsl(var(--primary)) !important;
	border-color: hsl(var(--primary)) !important;
}

body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
	color: hsl(var(--muted-foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	font-family: var(--font-body) !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border-radius: var(--radius) !important;
	border: 1px solid transparent !important;
	transition: background-color 0.2s ease;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--primary) / 0.9) !important;
}

/* Cart block: submit + link buttons follow the source primary button. */
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button:not(.is-link),
body.woocommerce-checkout .wc-block-components-button:not(.is-link) {
	font-family: var(--font-body) !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border-radius: var(--radius) !important;
	border: 1px solid transparent !important;
	text-decoration: none;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wc-block-components-button:not(.is-link):hover,
body.woocommerce-checkout .wc-block-components-button:not(.is-link):hover {
	background-color: hsl(var(--primary) / 0.9) !important;
	color: hsl(var(--primary-foreground)) !important;
}

body.woocommerce-checkout .wc-block-cart-items__row,
body.woocommerce-checkout .wc-block-components-order-summary-item {
	border-color: hsl(var(--border));
}

body.woocommerce-checkout h2,
body.woocommerce-checkout h3,
body.woocommerce-checkout .wc-block-components-title {
	font-family: var(--font-display);
	letter-spacing: -0.02em;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-notice-banner {
	grid-column: 1 / -1;
}

/* Cart / account classic tables. */
body.woocommerce-cart .woocommerce table.shop_table,
body.woocommerce-account .woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	overflow: hidden;
	font-size: 0.875rem;
}

body.woocommerce-cart .woocommerce table.shop_table th,
body.woocommerce-cart .woocommerce table.shop_table td,
body.woocommerce-account .woocommerce table.shop_table th,
body.woocommerce-account .woocommerce table.shop_table td {
	padding: 0.875rem 1rem;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
	vertical-align: middle;
}

body.woocommerce-cart .woocommerce .button,
body.woocommerce-account .woocommerce .button {
	padding: 0.625rem 1.25rem;
	border-radius: var(--radius);
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
}

body.woocommerce-cart .woocommerce .button:hover,
body.woocommerce-account .woocommerce .button:hover {
	background-color: hsl(var(--primary) / 0.9);
	color: hsl(var(--primary-foreground));
}

body.woocommerce-cart .woocommerce input.input-text,
body.woocommerce-cart .woocommerce select,
body.woocommerce-account .woocommerce input.input-text,
body.woocommerce-account .woocommerce select {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--foreground));
	background-color: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
}

/* ---------------------------------------------------------------
   Thank you page
   --------------------------------------------------------------- */

body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
	font-size: 0.9375rem;
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-customer-details-title {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	padding: 0 0 1rem 0;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 1.25rem;
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
}

body.theme-thankyou-page .woocommerce-order-overview li {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: hsl(var(--muted-foreground));
	margin: 0;
	padding: 0;
	border: 0;
	float: none;
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.9375rem;
	text-transform: none;
	letter-spacing: 0;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}

body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td {
	border-bottom: 1px solid hsl(var(--border));
	padding: 0.75rem 0.5rem;
	overflow-wrap: break-word;
}

body.theme-thankyou-page .woocommerce-order-details tfoot th {
	text-align: left;
	font-weight: 600;
}

body.theme-thankyou-page .woocommerce-order-details tfoot td {
	text-align: right;
}

body.theme-thankyou-page .woocommerce-customer-details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	font-style: normal;
	line-height: 1.75;
	color: hsl(var(--muted-foreground));
}

/* ---------------------------------------------------------------
   WordPress generated markup
   --------------------------------------------------------------- */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: hsl(var(--card));
	border-radius: var(--radius);
	box-shadow: 0 0 2px 2px hsl(var(--background));
	clip: auto !important;
	clip-path: none;
	color: hsl(var(--primary));
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.theme-page-main {
	padding-top: 7rem;
	padding-bottom: 5rem;
}

.theme-404-main {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.theme-page-main {
	padding-top: 7rem;
	padding-bottom: 5rem;
}

/* Entry content fallback typography (no source class equivalent). */
.entry-content > p {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.75;
	color: hsl(var(--muted-foreground));
	margin-bottom: 1rem;
}

/* ---------------------------------------------------------------
   Popup
   --------------------------------------------------------------- */

.theme-popup {
	animation: theme-fade-in 0.2s ease both;
}

.theme-popup__card {
	animation: theme-popup-in 0.35s cubic-bezier(0.3, 1.2, 0.5, 1) both;
}

@keyframes theme-popup-in {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.theme-popup.is-closing {
	animation: theme-fade-out 0.2s ease both;
}

.theme-popup.is-closing .theme-popup__card {
	animation: theme-popup-out 0.2s ease both;
}

@keyframes theme-fade-out {
	to {
		opacity: 0;
	}
}

@keyframes theme-popup-out {
	to {
		opacity: 0;
		transform: scale(0.9) translateY(20px);
	}
}

/* ---------------------------------------------------------------
   Loading lock for AJAX add-to-cart
   --------------------------------------------------------------- */

.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;
}

/* ---------------------------------------------------------------
   Fixed header offset for inner pages
   --------------------------------------------------------------- */

body.theme-no-hero .site-main,
body.theme-no-hero main {
	padding-top: 5rem;
}

@media (min-width: 1024px) {
	body.theme-no-hero .site-main,
	body.theme-no-hero main {
		padding-top: 6rem;
	}
}

/* Source product page offsets the content itself (pt-24 lg:pt-28). */
body.single-product main,
body.woocommerce-page main.theme-shop-main,
body.woocommerce-page main.site-main {
	padding-top: 0;
}

/* Checkout, cart and account use the page shell, so the rule above would
   slide the title under the fixed header. Keep a gap below the header. */
body.woocommerce-checkout main.site-main,
body.woocommerce-cart main.site-main,
body.woocommerce-account main.site-main,
body.theme-thankyou-page main.site-main {
	padding-top: 6rem;
}

@media (min-width: 1024px) {
	body.woocommerce-checkout main.site-main,
	body.woocommerce-cart main.site-main,
	body.woocommerce-account main.site-main,
	body.theme-thankyou-page main.site-main {
		padding-top: 7rem;
	}
}

body.single-product main > .container-wide,
body.woocommerce-page main.theme-shop-main > .container-wide {
	padding-top: 6rem;
}

@media (min-width: 1024px) {
	body.single-product main > .container-wide,
	body.woocommerce-page main.theme-shop-main > .container-wide {
		padding-top: 7rem;
	}
}
