/* -------------------------------------------------------------------------
 * Viva la Fête theme styles
 *
 * Only markup without a source equivalent (WooCommerce, WordPress, cart
 * drawer, checkout block) and functional state rules live here. Everything
 * else comes from app.css, which ships the compiled source stylesheet.
 * ---------------------------------------------------------------------- */

:root {
	--header-height: 72px;
	--color-surface: hsl(var(--muted));
	--card-radius: var(--radius);
	--section-padding: 2rem;
}

@media (min-width: 768px) {
	:root {
		--header-height: 92px;
	}
}

[hidden] {
	display: none !important;
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */

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

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

/* Opacity is owned by the Tailwind utilities JS toggles. A dedicated
 * white asset is shown on the transparent header; this filter is only
 * added when "Force logo to white" is on and no light logo was uploaded. */
.theme-logo-forced-white {
	filter: brightness(0) invert(1);
}
@media (max-width: 1023px) {
	.site-header .site-logo-img {
		height: calc(var(--logo-height) * 0.8) !important;
	}
}

/* -------------------------------------------------------------------------
 * Page loader
 * ---------------------------------------------------------------------- */

.theme-page-loader {
	transition: opacity 0.6s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-page-loader.is-done {
	opacity: 0;
	pointer-events: none;
}

.theme-loader-mark {
	animation: theme-loader-rotate 2.4s ease-in-out infinite;
}

@keyframes theme-loader-rotate {
	0%, 100% { transform: rotate(0deg); }
	30% { transform: rotate(8deg); }
	60% { transform: rotate(-8deg); }
}

.theme-loader-bar {
	animation: theme-loader-bar 1.2s ease-in-out infinite;
}

@keyframes theme-loader-bar {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(200%); }
}

.theme-scroll-progress {
	transform: scaleX(0);
}

/* -------------------------------------------------------------------------
 * Reveal animations (framer-motion equivalents)
 * ---------------------------------------------------------------------- */

.theme-reveal {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s cubic-bezier(0.25, 0.4, 0.25, 1), transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Staggered children inside a revealed section. */
.theme-reveal:nth-child(2) { transition-delay: 0.08s; }
.theme-reveal:nth-child(3) { transition-delay: 0.16s; }
.theme-reveal:nth-child(4) { transition-delay: 0.24s; }
.theme-reveal:nth-child(5) { transition-delay: 0.32s; }
.theme-reveal:nth-child(6) { transition-delay: 0.4s; }

body.is-customizer .theme-reveal,
.no-js .theme-reveal {
	opacity: 1 !important;
	transform: none !important;
}

.theme-faq-enter {
	animation: theme-faq-fade 0.25s ease-out;
}

@keyframes theme-faq-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.theme-hero-chevron {
	animation: theme-hero-chevron 1.6s ease-in-out infinite;
	display: inline-flex;
}

@keyframes theme-hero-chevron {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(3px); }
}

/* Hero video entrance (mirrors the source scale + fade). */
.theme-hero-video {
	opacity: 0;
	transform: scale(1.06);
	transition: opacity 0.8s ease, transform 16s ease-out;
}

.theme-hero-video.is-ready {
	opacity: 1;
	transform: scale(1);
}

/* Contact band matches the design gradient (background → secondary → accent). */
.theme-cta-card {
	background: linear-gradient(135deg, hsl(var(--background) / 0.96) 0%, hsl(var(--secondary) / 0.92) 55%, hsl(var(--accent) / 0.28) 100%);
}

.theme-hero-wrap {
	animation: theme-hero-fade 1.1s cubic-bezier(0.25, 0.4, 0.25, 1) both;
}

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

.theme-hero-title {
	animation: theme-hero-title 1s cubic-bezier(0.25, 0.4, 0.25, 1) 0.5s both;
}

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

.theme-hero-subtitle {
	animation: theme-hero-title 0.7s cubic-bezier(0.25, 0.4, 0.25, 1) 0.7s both;
}

.theme-hero-cta,
.theme-hero-secondary {
	animation: theme-hero-title 0.7s cubic-bezier(0.25, 0.4, 0.25, 1) 0.85s both;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}

.theme-hero-cta:hover,
.theme-hero-secondary:hover {
	transform: scale(1.04) translateY(-2px);
}

.theme-hero-cta:active,
.theme-hero-secondary:active {
	transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
	.theme-reveal,
	.theme-hero-wrap,
	.theme-hero-title,
	.theme-hero-subtitle,
	.theme-hero-cta,
	.theme-hero-secondary,
	.theme-hero-chevron,
	.theme-loader-mark,
	.theme-loader-bar {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* -------------------------------------------------------------------------
 * FAQ accordion chevron rotation
 * ---------------------------------------------------------------------- */

[data-theme-faq-chevron] {
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

[data-theme-faq-chevron] svg {
	transition: transform 0.3s ease;
}

[data-theme-faq-chevron].is-open svg {
	transform: rotate(180deg);
}

/* -------------------------------------------------------------------------
 * Product card
 * ---------------------------------------------------------------------- */

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

.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 {
	z-index: 3;
	pointer-events: auto;
	display: block;
	text-align: center;
}

.theme-product-card__image-wrapper {
	position: relative;
	overflow: hidden;
}

.theme-product-grid,
.theme-shop-grid {
	align-items: stretch;
}

.theme-product-card-wrap {
	min-width: 0;
	height: 100%;
}

.theme-product-card-wrap.is-filtered-out {
	display: none !important;
}

.theme-shop-empty[hidden] {
	display: none !important;
}

.theme-product-card-wrap > .theme-product-card {
	height: 100%;
}

.theme-shop-empty {
	grid-column: 1 / -1;
}

/* Slogan strip: two identical halves, no gap between copies. */
.marquee-track {
	display: flex;
	width: max-content;
	gap: 0;
}

.theme-marquee-half {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 0;
}

/* Card hover lift mirrors the source motion wrapper. */
.theme-product-card-wrap {
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-product-card-wrap:hover {
	transform: translateY(-6px);
}

.theme-product-card .theme-card-img {
	object-fit: cover;
	object-position: top center;
	transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1), opacity 0.5s ease;
}

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

/* -------------------------------------------------------------------------
 * Shop filter pills (inactive state uses source classes; active handled in JS)
 * ---------------------------------------------------------------------- */

.theme-shop-pill {
	border-color: hsl(var(--primary));
}

.theme-price-panel {
	height: 0;
	opacity: 0;
	transition: height 0.3s cubic-bezier(0.25, 0.4, 0.25, 1), opacity 0.3s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-price-panel.is-open {
	height: auto;
	opacity: 1;
}

.theme-price-chevron.is-open {
	transform: rotate(180deg);
}

/* -------------------------------------------------------------------------
 * Price range slider
 * ---------------------------------------------------------------------- */

.price-range-wrapper {
	position: relative;
	height: 1.5rem;
}

.range-track-bg,
.range-track-fill {
	position: absolute;
	height: 4px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	border-radius: 9999px;
}

.range-track-bg {
	left: 0;
	right: 0;
	background: hsl(var(--secondary));
}

.range-track-fill {
	background: hsl(var(--primary));
}

.range-input {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
}

.range-input::-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: hsl(var(--background));
	cursor: pointer;
}

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

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

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

/* -------------------------------------------------------------------------
 * Single product page
 * ---------------------------------------------------------------------- */

.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 {
	flex-wrap: wrap;
	max-width: 100%;
}

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

.single-product .theme-add-to-cart-area .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
}

.single-product .single_add_to_cart_button.button:disabled,
.single-product .single_add_to_cart_button.button.disabled,
.single-product .add_to_cart_button.button:disabled,
.single-product .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-product .single_add_to_cart_button.button:disabled:hover,
.single-product .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;
}

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

.theme-product-description,
.theme-product-intro {
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.625;
	color: hsl(var(--muted-foreground));
}

.theme-product-description > p {
	font-size: 15px;
	line-height: 1.625;
	color: hsl(var(--muted-foreground));
	margin-bottom: 1rem;
	white-space: pre-line;
}

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

.theme-product-description > ul > li {
	position: relative;
	padding-left: 1rem;
	font-size: 15px;
	line-height: 1.5;
	color: hsl(var(--muted-foreground));
}

.theme-product-description > ul > li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 0.25rem;
	height: 0.25rem;
	border-radius: 9999px;
	background: hsl(var(--foreground));
}

.theme-product-description > p:last-child,
.theme-product-description > ul:last-child {
	margin-bottom: 0;
}

.theme-product-description h2,
.theme-product-description h3 {
	font-family: var(--font-display);
	font-size: 1.35rem;
	line-height: 1.3;
	color: hsl(var(--foreground));
	margin: 1.5rem 0 0.75rem;
}

/* Accordion chevron */
.theme-accordion-chevron {
	display: inline-flex;
	transition: transform 0.3s ease;
}

/* Variable product: label above control */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
	background: transparent;
	padding: 0;
	border: 0;
}

.single-product .variations tbody td.label {
	padding-bottom: 0.25rem;
}

.single-product .variations tbody td.value {
	padding-top: 0;
}

.single-product .variations tbody td.label label {
	font-family: var(--font-body);
	font-size: 0.875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

.single-product .variations {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.25rem;
	display: none;
}

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

.theme-attr-pill {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
	cursor: pointer;
	background-color: transparent;
}

.theme-attr-pill.bg-foreground {
	background-color: hsl(var(--foreground));
	color: hsl(var(--background));
}

.single_variation_wrap .woocommerce-variation-price {
	font-family: var(--font-body);
	font-size: 1.125rem;
	color: hsl(var(--foreground));
	margin-bottom: 1rem;
}

.single_variation_wrap .woocommerce-variation-availability {
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: hsl(var(--muted-foreground));
	margin-bottom: 1rem;
}

/* Gallery */
#product-main-img {
	position: relative;
}

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

/* Inner pages sit under the fixed header (the home hero does not). */
.theme-main-offset {
	padding-top: 72px;
}

@media (min-width: 768px) {
	.theme-main-offset {
		padding-top: 92px;
	}
}

body.theme-no-hero .theme-page-main,
body.theme-no-hero .theme-404 {
	padding-top: calc(72px + 1.5rem);
}

@media (min-width: 768px) {
	body.theme-no-hero .theme-page-main,
	body.theme-no-hero .theme-404 {
		padding-top: calc(92px + 1.5rem);
	}
}

body.theme-no-hero .site-main,
body.theme-thankyou-page .site-main {
	padding-top: calc(72px + 1rem);
	padding-bottom: 4rem;
}

@media (min-width: 768px) {
	body.theme-no-hero .site-main,
	body.theme-thankyou-page .site-main {
		padding-top: calc(92px + 1rem);
	}
}

/* Product and archive templates sit inside the page offset wrapper. */
.theme-qty-input {
	width: 44px;
	min-width: 44px;
	max-width: 44px;
	-moz-appearance: textfield;
	appearance: textfield;
}

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

/* -------------------------------------------------------------------------
 * Cart drawer
 * ---------------------------------------------------------------------- */

body.modal-open {
	overflow: hidden;
}

.theme-cart-drawer {
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 60;
	visibility: hidden;
}

body.cart-open .theme-cart-drawer {
	transform: translateX(0);
	visibility: visible;
}

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

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

body.cart-open {
	overflow: hidden;
}

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

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

#theme-cart-drawer .theme-btn-primary,
#theme-cart-drawer .theme-btn-outline,
#theme-cart-drawer .theme-btn-outline-sm {
	font-family: var(--font-body);
	text-decoration: none;
}

#theme-cart-drawer .theme-cart-count {
	display: inline-flex;
}

/* -------------------------------------------------------------------------
 * WooCommerce notices (contexts without theme feedback)
 * ---------------------------------------------------------------------- */

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

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

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	font-family: var(--font-body);
	font-size: 0.95rem;
	border-radius: 0.75rem;
	padding: 1rem 1.25rem;
	margin: 0 0 1.5rem;
	list-style: none;
	background: hsl(var(--secondary));
	color: hsl(var(--foreground));
	border: 1px solid hsl(var(--border));
}

.woocommerce-error {
	background: hsl(var(--destructive) / 0.08);
	border-color: hsl(var(--destructive) / 0.4);
	color: hsl(var(--destructive));
}

.woocommerce-message,
.woocommerce-info {
	background: hsl(var(--card));
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}

a.added_to_cart.wc-forward,
.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;
}

/* -------------------------------------------------------------------------
 * Add to cart button loading state
 * ---------------------------------------------------------------------- */

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

/* -------------------------------------------------------------------------
 * Contact modal
 * ---------------------------------------------------------------------- */

#theme-contact-modal .theme-dialog-overlay {
	animation: theme-fade-in 0.2s ease-out;
}

#theme-contact-modal .theme-dialog-content {
	animation: theme-dialog-in 0.2s ease-out;
}

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

@keyframes theme-dialog-in {
	from { opacity: 0; transform: translate(-50%, -48%) scale(0.95); }
	to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* -------------------------------------------------------------------------
 * WordPress / WooCommerce generic elements without a source equivalent
 * ---------------------------------------------------------------------- */

.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(--background));
	border-radius: 3px;
	box-shadow: 0 0 2px 2px hsl(var(--foreground) / 0.6);
	clip: auto !important;
	clip-path: none;
	color: hsl(var(--foreground));
	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;
}

.skip-link {
	position: absolute;
	left: -9999px;
}



.page-title {
	color: hsl(var(--foreground));
}

.theme-entry-content {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: hsl(var(--foreground) / 0.85);
}

.theme-entry-content h2,
.theme-entry-content h3 {
	font-family: var(--font-display);
	color: hsl(var(--foreground));
	line-height: 1.2;
	margin: 2rem 0 1rem;
}

.theme-entry-content p {
	margin-bottom: 1.25rem;
}

.theme-entry-content a {
	color: hsl(var(--accent));
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Pagination */
.theme-archive-pagination .navigation.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-body);
}

.theme-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--border));
	color: hsl(var(--foreground));
	text-decoration: none;
	font-size: 0.875rem;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.theme-archive-pagination .page-numbers:hover,
.theme-archive-pagination .page-numbers.current {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* -------------------------------------------------------------------------
 * Checkout, cart and account 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: 72px;
	padding-bottom: 4rem;
}

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

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

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 {
	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, 2rem);
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--card));
	border-radius: var(--card-radius);
	padding: var(--section-padding);
}

body.woocommerce-checkout .wc-block-checkout__main h2,
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__sidebar h2 {
	font-family: var(--font-display);
	color: hsl(var(--foreground));
	letter-spacing: 0.005em;
	line-height: 1.2;
}

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 .wc-blocks-components-select__select option {
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 0.375rem !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;
	border-color: hsl(var(--primary)) !important;
	box-shadow: 0 0 0 1px hsl(var(--primary)) !important;
}

body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-select label,
body.woocommerce-checkout .wc-block-components-checkbox__label {
	font-family: var(--font-body) !important;
	color: hsl(var(--muted-foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button:not(.is-link) {
	font-family: var(--font-body) !important;
	font-size: 0.875rem !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase !important;
	font-weight: 600 !important;
	border-radius: 9999px !important;
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border: 1px solid hsl(var(--primary)) !important;
	padding: 0.9rem 2rem !important;
}

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

body.woocommerce-checkout .wc-block-components-notice-banner {
	font-family: var(--font-body) !important;
	border-radius: 0.75rem !important;
	background-color: hsl(var(--card)) !important;
	border: 1px solid hsl(var(--border)) !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-cart-items__row,
body.woocommerce-checkout .wc-block-components-order-summary-item {
	font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-cart-item__total,
body.woocommerce-checkout .wc-block-components-product-price,
body.woocommerce-checkout .wc-block-components-totals-item__value {
	font-family: var(--font-body) !important;
	color: hsl(var(--foreground)) !important;
}

/* Classic checkout field fallbacks (kept for compatibility) */
body.woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .form-row select {
	font-family: var(--font-body) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 0.375rem !important;
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--foreground)) !important;
}

/* Cart block */
body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .entry-content {
	max-width: 100%;
}

body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart.is-large {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--checkout-gap, 2rem);
	align-items: start;
}

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}

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

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

body.theme-thankyou-page .woocommerce-order {
	font-family: var(--font-body);
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	line-height: 1.25;
	color: hsl(var(--foreground));
	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.5rem;
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--card-radius);
}

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

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

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

body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
	padding: 0.85rem 0.75rem;
	border-bottom: 1px solid hsl(var(--border));
	font-size: 0.95rem;
	color: hsl(var(--foreground));
}

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;
	font-family: var(--font-body);
	font-style: normal;
	line-height: 1.7;
	overflow-wrap: break-word;
}

/* -------------------------------------------------------------------------
 * My Account (fallback styling for WooCommerce generated markup)
 * ---------------------------------------------------------------------- */

.woocommerce-account .woocommerce {
	font-family: var(--font-body);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 0.65rem 0;
	border-bottom: 1px solid hsl(var(--border));
	color: hsl(var(--foreground));
	text-decoration: none;
	transition: color 0.3s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	color: hsl(var(--accent));
}

/* -------------------------------------------------------------------------
 * WooCommerce forms generated by core (cart page table, etc.)
 * ---------------------------------------------------------------------- */

.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-body);
	font-size: 0.95rem;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 0.85rem 0.75rem;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
}

/* Classic WooCommerce pages only: buttons generated by core with no theme markup. */
body.woocommerce-cart .woocommerce a.button,
body.woocommerce-cart .woocommerce button.button,
body.woocommerce-cart .woocommerce input.button,
body.woocommerce-account .woocommerce a.button,
body.woocommerce-account .woocommerce button.button,
body.woocommerce-account .woocommerce input.button,
body.woocommerce-checkout .woocommerce a.button,
body.woocommerce-checkout .woocommerce button.button,
body.woocommerce-checkout .woocommerce input.button {
	font-family: var(--font-body);
	font-size: 0.875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	border-radius: 9999px;
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border: 1px solid hsl(var(--primary));
	padding: 0.75rem 1.5rem;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease;
}

body.woocommerce-cart .woocommerce a.button:hover,
body.woocommerce-cart .woocommerce button.button:hover,
body.woocommerce-cart .woocommerce input.button:hover,
body.woocommerce-account .woocommerce a.button:hover,
body.woocommerce-account .woocommerce button.button:hover,
body.woocommerce-account .woocommerce input.button:hover,
body.woocommerce-checkout .woocommerce a.button:hover,
body.woocommerce-checkout .woocommerce button.button:hover,
body.woocommerce-checkout .woocommerce input.button:hover {
	background-color: hsl(var(--background));
	color: hsl(var(--primary));
}

/* -------------------------------------------------------------------------
 * Header spacer for inner pages
 * ---------------------------------------------------------------------- */

body.theme-no-hero .site-header,
body.woocommerce-page .site-header,
body.theme-thankyou-page .site-header {
	background-color: hsl(var(--background) / 0.95);
	backdrop-filter: blur(12px);
	box-shadow: 0 1px 2px 0 hsl(var(--foreground) / 0.05);
}

/* Sticky header is light. Keep every cart button (desktop and the
 * mobile/tablet one) in the foreground color, not the hero white. */
.site-header.bg-background\/95 .theme-header-cart,
body.theme-no-hero .site-header .theme-header-cart,
body.woocommerce-page .site-header .theme-header-cart,
body.theme-thankyou-page .site-header .theme-header-cart {
	color: hsl(var(--foreground));
	border-color: hsl(var(--foreground) / 0.3);
}

/* -------------------------------------------------------------------------
 * Mobile menu list spacing (fallback nav markup)
 * ---------------------------------------------------------------------- */

#theme-mobile-menu .theme-mobile-link + .theme-mobile-link {
	border-top: 1px solid hsl(var(--border) / 0.6);
}

/* -------------------------------------------------------------------------
 * Footer links
 * ---------------------------------------------------------------------- */

.theme-footer-link {
	display: inline-block;
}

.theme-footer-logo {
	height: 6rem;
}

@media (min-width: 768px) {
	.theme-footer-logo {
		height: 7rem;
	}
}
