/* -------------------------------------------------------------------------
   Faith In Favor Daily — theme stylesheet.
   Only styles for markup with no equivalent in the source, plus functional
   state rules. Source elements keep their compiled classes from app.css.
   ---------------------------------------------------------------------- */

[hidden] {
	display: none !important;
}

/* ---------------- Reveal / entrance motion (framer-motion parity) ------- */

.theme-reveal {
	opacity: 1;
	transform: none;
	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);
	transition-delay: var(--reveal-delay, 0s);
}

/* Hidden state is applied by JS only, so content is always visible without JS. */
.theme-reveal.is-pending {
	opacity: 0;
	transform: translateY(32px);
}

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

@media (prefers-reduced-motion: reduce) {
	.theme-reveal,
	.theme-reveal.is-pending {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* Hero entrance sequence: image fade, title, subtitle, CTA. */
@keyframes theme-hero-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

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

@keyframes theme-hero-rise-sm {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

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

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

.theme-hero-sub {
	animation: theme-hero-rise-sm 0.7s ease 0.55s both;
}

.theme-hero-cta {
	animation: theme-hero-rise-sm 0.65s ease 0.75s both;
}

@media (prefers-reduced-motion: reduce) {
	.theme-hero-fade,
	.theme-hero-title,
	.theme-hero-sub,
	.theme-hero-cta {
		animation: none !important;
	}
}

/* Product card hover: card lifts, image scales. */
.theme-product-card-wrap .theme-product-card {
	transition: transform 0.45s cubic-bezier(0.25, 0.4, 0.25, 1);
}

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

.theme-product-card__image-wrapper img {
	transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}

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

.theme-product-card__image-link {
	display: block;
}

.theme-product-card__image-link img {
	display: block;
	width: 100%;
	height: 100%;
}

/* Source cards size to their own content; only guard against overflow. */
.theme-product-card-wrap,
.theme-product-card {
	min-width: 0;
}

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

.site-header,
[data-site-header] {
	background-color: hsl(var(--background));
	border-bottom-color: transparent;
}

[data-site-header].is-solid,
[data-site-header].is-menu-open {
	background-color: hsl(var(--background) / 0.95);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	border-bottom-color: hsl(var(--border));
}

.site-logo-img {
	height: calc(var(--logo-height, 80px) * 0.8) !important;
	width: auto !important;
	display: block;
}

@media (min-width: 768px) {
	.site-logo-img {
		height: var(--logo-height, 80px) !important;
	}
}

.site-logo-text {
	display: block;
}

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

/* ---------------- Price range (dual overlapping handles) ---------------- */

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

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

.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: 1.25rem;
	width: 1.25rem;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
}

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

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

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

.theme-price-panel {
	height: 0;
	opacity: 0;
	overflow: hidden;
	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 {
	opacity: 1;
}

[data-price-toggle] svg.is-rotated {
	transform: rotate(180deg);
}

/* ---------------- Gallery track ---------------- */

[data-gallery-track] {
	scrollbar-width: none;
}

[data-gallery-track]::-webkit-scrollbar {
	display: none;
}

.theme-collection-image {
	will-change: transform;
}

.theme-gallery-image {
	transition: transform 0.9s cubic-bezier(0.25, 0.4, 0.25, 1);
	will-change: transform;
}

[data-gallery-track] a:hover .theme-gallery-image {
	transform: scale(1.04);
}

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

[data-contact-dialog] {
	opacity: 0;
	transition: opacity 0.2s ease;
}

[data-contact-dialog].is-open {
	opacity: 1;
}

[data-contact-dialog] [data-contact-content] {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.95);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-contact-dialog].is-open [data-contact-content] {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

body.contact-open {
	overflow: hidden;
}

/* ---------------- Side cart drawer ---------------- */

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

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

#theme-cart-drawer {
	position: fixed;
	right: 0;
	top: 0;
	height: 100%;
	width: 100%;
	max-width: 28rem;
	z-index: 50;
	background-color: hsl(var(--background));
	box-shadow: var(--shadow-elevated);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Hide the "View cart" link WooCommerce appends after AJAX add-to-cart. */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
	display: none !important;
}

/* WooCommerce's own loading spinner — the theme owns the loading state. */
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after {
	display: none !important;
}

.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

/* Disabled add-to-cart buttons (variable products, out of stock). */
.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;
}

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

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

.single-product .theme-product-thumbnails {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	max-width: 100%;
}

.single-product .theme-product-thumb {
	position: relative;
	width: 5rem;
	height: 5rem;
	overflow: hidden;
	background-color: hsl(var(--secondary));
	flex-shrink: 0;
}

.single-product .theme-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.2s ease;
	opacity: 0.6;
}

.single-product .theme-product-thumb:hover img,
.single-product .theme-product-thumb.is-active img {
	opacity: 1;
}

.single-product .theme-product-thumb::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background-color: hsl(var(--foreground));
	opacity: 0;
	transition: opacity 0.2s ease;
}

.single-product .theme-product-thumb.is-active::after {
	opacity: 1;
}

.single-product .theme-product-main-media {
	position: relative;
	aspect-ratio: 1 / 1;
	background-color: hsl(var(--secondary));
	overflow: hidden;
}

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

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

.woocommerce.single-product div.product .single_add_to_cart_button,
.woocommerce.single-product div.product form.cart .single_add_to_cart_button,
.single-product .single_add_to_cart_button,
.single-product a.single_add_to_cart_button {
	display: flex;
	align-items: center;
	justify-content: center;
	float: none;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	text-align: center;
	text-decoration: none;
	padding-left: 0.25em;
}

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

.single-product .theme-qty-input {
	width: 4rem;
	padding: 0.5rem 0;
	text-align: center;
	background: transparent;
	border: 0;
	font-family: var(--font-body);
	font-size: 0.875rem;
	-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 .theme-qty-minus,
.single-product .theme-qty-plus {
	padding: 0.5rem 0.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

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

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

/* Variation attributes: label above pills, native select hidden. */
.single-product .theme-variation-attribute label {
	cursor: default;
}

.single-product .theme-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.single-product .theme-variation-data,
.single-product .single_variation_wrap,
.single-product .woocommerce-variation.single_variation {
	display: none !important;
	height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
}

.single-product form.cart {
	margin: 0;
}

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

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

.single-product .reset_variations {
	display: inline-block;
	margin-top: 0.75rem;
	font-family: var(--font-body);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

.single-product .reset_variations:hover {
	color: hsl(var(--foreground));
}

.single-product .woocommerce-variation-add-to-cart {
	display: block;
}

.single-product .woocommerce-variation-price .price {
	font-family: var(--font-body);
	font-size: 1.125rem;
	color: hsl(var(--foreground));
	display: block;
	margin-bottom: 0.75rem;
}

.single-product .woocommerce-variation-price .price,
.single-product .woocommerce-variation-availability,
.single-product .woocommerce-variation-description {
	font-family: var(--font-body);
	color: hsl(var(--muted-foreground));
	font-size: 0.9375rem;
	line-height: 1.625;
}

.single-product .woocommerce-variation-add-to-cart {
	display: block;
}

/* ---------------- WooCommerce notices & generic markup ---------------- */

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

.woocommerce-message {
	border-color: hsl(var(--primary) / 0.4);
}

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

.woocommerce-info {
	border-color: hsl(var(--border));
}

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

.woocommerce-error li {
	margin: 0;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1rem;
	font-family: var(--font-body);
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	border: 1px solid hsl(var(--border));
	color: hsl(var(--foreground));
	background: transparent;
	transition: background-color 0.2s ease;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
	background-color: hsl(var(--secondary));
}

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

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

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.woocommerce-Price-amount,
.price {
	font-family: var(--font-body);
}

.woocommerce-ResetPassword,
.woocommerce-form-login,
.woocommerce-form-register {
	max-width: 32rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"] {
	width: 100%;
	padding: 0.75rem 1rem;
	background-color: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 2px);
	font-family: var(--font-body);
	font-size: 1rem;
	color: hsl(var(--foreground));
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	outline: none;
	box-shadow: 0 0 0 1px hsl(var(--primary));
}

.woocommerce-button,
.woocommerce-Button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	background-color: hsl(var(--foreground));
	color: hsl(var(--background));
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	border-radius: 9999px;
	transition: background-color 0.2s ease;
}

.woocommerce-button:hover,
.woocommerce-Button:hover {
	background-color: hsl(var(--foreground) / 0.9);
}

/* Account / cart / checkout page titles share the site container inset. */
.theme-page-title {
	font-family: var(--font-display);
	font-size: clamp(1.875rem, 4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 2.5rem;
}

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

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

/* ---------------- Checkout block overrides ---------------- */

body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
body.theme-thankyou-page .site-main {
	padding-bottom: 4rem;
}

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout {
	display: block;
	max-width: none;
	width: 100%;
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

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

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
	body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 3rem);
		align-items: start;
	}
}

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

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout h2,
body.woocommerce-checkout h3 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.015em;
	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 .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	width: 100% !important;
	max-width: none !important;
	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: calc(var(--radius) - 2px) !important;
	box-shadow: 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 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,
body.woocommerce-checkout .wc-block-components-button:not(.is-link) {
	background-color: hsl(var(--foreground)) !important;
	color: hsl(var(--background)) !important;
	font-family: var(--font-body) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0.25em !important;
	text-transform: uppercase !important;
	border-radius: 9999px !important;
	border: 0 !important;
	box-shadow: none !important;
}

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

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

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

body.woocommerce-checkout .wc-block-components-order-summary-item__description,
body.woocommerce-checkout .wc-block-components-product-price {
	color: hsl(var(--muted-foreground));
}

body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-item__value {
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-checkout-step__description,
body.woocommerce-checkout .wc-block-components-checkbox label {
	color: hsl(var(--muted-foreground));
	font-family: var(--font-body);
}

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

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

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

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

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.5rem;
	padding: 0 0 1rem 0;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-thankyou-order-received {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	color: hsl(var(--foreground));
}

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

body.theme-thankyou-page .woocommerce-order-overview li {
	flex: 1 1 12rem;
	min-width: 0;
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.375rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: normal;
	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 th,
body.theme-thankyou-page .woocommerce-order-details td {
	padding: 0.75rem 0;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
	vertical-align: top;
	overflow-wrap: break-word;
}

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

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

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

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

/* ---------------- Page / article fallbacks ---------------- */

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

.theme-prose h2,
.theme-prose h3 {
	font-family: var(--font-display);
	color: hsl(var(--foreground));
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.theme-prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------------- 404 ---------------- */

.theme-404 {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	background-color: hsl(var(--muted) / 0.4);
	font-family: var(--font-body);
}

/* ---------------- Shop archive grid ---------------- */

.theme-product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: stretch;
}

@media (min-width: 768px) {
	.theme-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.theme-product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 2rem;
	}
}

.theme-featured-grid .theme-product-card-wrap,
.theme-featured-grid .theme-shop-item {
	min-width: 0;
}

/* ---------------- Customizer-only helper ---------------- */

body.is-customizer [data-theme-text] {
	min-height: 1em;
}

/* ---------------- Cart block page ---------------- */

body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wc-block-cart {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.woocommerce-cart .wc-block-cart-items__header,
body.woocommerce-cart .wc-block-cart-items__row {
	border-color: hsl(var(--border));
}

body.woocommerce-cart .wc-block-cart-items__header th {
	font-family: var(--font-body);
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
	font-weight: 400;
}

body.woocommerce-cart .wc-block-cart-item__image img {
	border-radius: 0;
}

body.woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-name {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 600;
	color: hsl(var(--foreground));
}

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

body.woocommerce-cart .wc-block-components-quantity-selector {
	border: 1px solid hsl(var(--border));
	border-radius: 0;
	background: transparent;
}

body.woocommerce-cart .wc-block-components-quantity-selector input {
	font-family: var(--font-body);
	background: transparent;
}

body.woocommerce-cart .wc-block-cart__submit-container,
body.woocommerce-cart .wc-block-cart__totals-title {
	font-family: var(--font-body);
}

body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button:not(.is-link) {
	background-color: hsl(var(--foreground)) !important;
	color: hsl(var(--background)) !important;
	font-family: var(--font-body) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0.25em !important;
	text-transform: uppercase !important;
	border-radius: 9999px !important;
	border: 0 !important;
	box-shadow: none !important;
}

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

body.woocommerce-cart .wc-block-components-totals-coupon__button {
	border-radius: 9999px !important;
}

body.woocommerce-cart .wc-block-components-panel,
body.woocommerce-cart .wc-block-components-totals-item {
	font-family: var(--font-body);
}

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

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

/* ---------------- Account / login forms ---------------- */

.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 2rem;
	background-color: hsl(var(--background));
}

.woocommerce-account .woocommerce-form-login input.input-text,
.woocommerce-account .woocommerce-form-register input.input-text {
	border-radius: calc(var(--radius) + 2px);
}

.woocommerce-account .woocommerce-form-login__rememberme,
.woocommerce-account .woocommerce-form-login .lost_password a,
.woocommerce-account .woocommerce-form-register p {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid hsl(var(--border));
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid hsl(var(--border));
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.875rem 0;
	font-family: var(--font-body);
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	color: hsl(var(--foreground));
}

.woocommerce-account .woocommerce-MyAccount-content {
	font-family: var(--font-body);
	color: hsl(var(--foreground) / 0.85);
	line-height: 1.7;
}

@media (min-width: 768px) {
	.woocommerce-account .woocommerce-MyAccount-content {
		min-width: 0;
	}
}
