/**
 * 4 TRUTH Series — theme styles.
 *
 * Only markup that has no equivalent in the design system is styled here:
 * WooCommerce output, WordPress-generated output, dialog/drawer state, and
 * reveal-animation plumbing. Elements that carry design classes are styled by
 * app.css exclusively.
 */

/* ---------------------------------------------------------------
   Functional helpers
   --------------------------------------------------------------- */

[hidden] {
	display: none !important;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* Clickable chrome: ensure the pointer cursor on every interactive control. */
a[href],
button:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
summary,
label[for],
input[type="submit"]:not(:disabled),
input[type="button"]:not(:disabled),
input[type="reset"]:not(:disabled),
input[type="image"]:not(:disabled),
input[type="checkbox"]:not(:disabled),
input[type="radio"]:not(:disabled),
select:not(:disabled),
[data-shop-filter],
[data-dialog-close],
[data-cart-open],
[data-cart-close],
[data-cart-remove],
[data-announcement-close],
[data-menu-toggle],
[data-blog-open],
[data-newsletter-select],
[data-newsletter-share],
[data-faq-toggle],
[data-feature-toggle],
[data-access-toggle],
[data-qty-minus],
[data-qty-plus],
.theme-product-thumb,
.theme-attr-pill {
	cursor: pointer;
}

button:disabled,
[aria-disabled="true"],
input:disabled,
select:disabled {
	cursor: not-allowed;
}

/* WordPress admin bar: keep sticky/fixed chrome below the bar. */
body.admin-bar [data-site-header],
body.admin-bar [data-scroll-progress] {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar [data-site-header],
	body.admin-bar [data-scroll-progress] {
		top: 46px;
	}
}

.theme-attr-select-hidden {
	display: none !important;
}

/* Header/footer logos follow the width wrappers (Lovable: w-24 md:w-32). */
.theme-logo-img,
.site-logo-img {
	width: 100% !important;
	height: auto !important;
	max-height: none;
	display: block;
}

/* Optional Customizer cap — only when logo_height is explicitly lowered. */
.site-logo-img[data-logo-capped="true"] {
	max-height: var(--logo-height);
	width: auto !important;
}

.site-logo-text {
	line-height: 1.2;
	display: block;
}

.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 {
	clip: auto;
	clip-path: none;
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	display: block;
	font-size: 0.875rem;
	height: auto;
	left: 1rem;
	padding: 0.75rem 1rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

/* ---------------------------------------------------------------
   Announcement bar dismissal
   --------------------------------------------------------------- */

[data-announcement][hidden] {
	display: none !important;
}

/* ---------------------------------------------------------------
   Header / navigation states
   --------------------------------------------------------------- */

[data-theme-dropdown][data-open="true"] [data-theme-dropdown-panel] {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

[data-theme-dropdown][data-open="true"] [data-theme-dropdown-toggle] .lucide-chevron-down,
[data-theme-dropdown][data-open="true"] [data-theme-dropdown-toggle] svg {
	transform: rotate(180deg);
}

[data-theme-mobile-dropdown-toggle][aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.theme-mobile-menu-list,
.footer-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.theme-mobile-menu-list a,
.footer-menu-list a {
	display: block;
}

.theme-mobile-menu-list .sub-menu,
.footer-menu-list .sub-menu {
	list-style: none;
	margin: 0;
	padding-left: 1rem;
}

.theme-mobile-menu-list .menu-item-has-children > a::after {
	content: none;
}

/* ---------------------------------------------------------------
   Scroll progress bar
   --------------------------------------------------------------- */

[data-scroll-progress] {
	transform: scaleX(0);
	transform-origin: left;
	will-change: transform;
}

/* ---------------------------------------------------------------
   Reveal animations
   --------------------------------------------------------------- */

.reveal-item {
	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), filter 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
	will-change: opacity, transform;
}

.reveal-section .reveal-item:nth-child(2) {
	transition-delay: 0.1s;
}

.reveal-section .reveal-item:nth-child(3) {
	transition-delay: 0.2s;
}

.reveal-section .reveal-item:nth-child(4) {
	transition-delay: 0.3s;
}

.reveal-section .reveal-item:nth-child(5) {
	transition-delay: 0.4s;
}

.reveal-section .reveal-item:nth-child(6) {
	transition-delay: 0.5s;
}

.reveal-item.is-visible {
	opacity: 1;
	transform: none;
	filter: none;
}

.reveal-hero-text {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.9s cubic-bezier(0.25, 0.4, 0.25, 1), transform 0.9s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.reveal-hero-cover {
	opacity: 0;
	transform: scale(0.94);
	transition: opacity 1.1s cubic-bezier(0.25, 0.4, 0.25, 1) 0.2s, transform 1.1s cubic-bezier(0.25, 0.4, 0.25, 1) 0.2s;
}

.reveal-hero-text.is-visible,
.reveal-hero-cover.is-visible {
	opacity: 1;
	transform: none;
}

body.is-customizer .reveal-item,
body.is-customizer .reveal-hero-text,
body.is-customizer .reveal-hero-cover,
.theme-no-js .reveal-item {
	opacity: 1;
	transform: none;
	filter: none;
}

/* ---------------------------------------------------------------
   Journey scene states
   --------------------------------------------------------------- */

[data-journey-layer] {
	opacity: 0;
	pointer-events: none;
}

[data-journey-layer]:first-child {
	opacity: 1;
}

[data-journey-layer] img[data-journey-image] {
	transform: scale(1.08);
	transition: transform 0.25s linear;
	will-change: transform;
}

[data-journey-layer].is-active img[data-journey-image] {
	transform: scale(1);
}

[data-journey-layer] [data-journey-band] {
	transform: translateY(40px);
	transition: transform 0.6s cubic-bezier(0.25, 0.4, 0.25, 1);
}

[data-journey-layer].is-active [data-journey-band] {
	transform: none;
}

[data-journey-light] {
	opacity: 0;
}

[data-journey-cloud] {
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	[data-journey-layer] img[data-journey-image],
	[data-journey-layer] [data-journey-band],
	.reveal-item,
	.reveal-hero-text,
	.reveal-hero-cover {
		transition: none !important;
		transform: none !important;
	}
}

/* ---------------------------------------------------------------
   Sample reader
   --------------------------------------------------------------- */

.reader-stage {
	min-height: 400px;
}

.reader-book {
	margin: 0 auto;
	box-shadow: 0 18px 40px hsl(var(--reader-shadow) / 0.45);
}

.reader-stage .stf__parent {
	margin: 0 auto;
}

.reader-stage:focus-visible {
	outline: 2px solid hsl(var(--ring));
	outline-offset: 8px;
}

/* ---------------------------------------------------------------
   Dialogs (stateful visibility for markup built without React)
   --------------------------------------------------------------- */

[data-newsletter-overlay][data-state="open"],
[data-blog-overlay][data-state="open"] {
	display: block !important;
}

[data-newsletter-overlay][data-state="closed"],
[data-blog-overlay][data-state="closed"] {
	display: none;
}

[data-newsletter-dialog][data-state="open"],
[data-blog-dialog][data-state="open"] {
	display: grid !important;
}

[data-newsletter-dialog][data-state="closed"],
[data-blog-dialog][data-state="closed"] {
	display: none;
}

/* Prefer Lovable widths over conflicting max-w-lg utility order. */
[data-blog-dialog] {
	width: calc(100% - 2rem);
	max-width: 56rem; /* max-w-4xl */
}

[data-newsletter-dialog] {
	max-width: 56rem; /* max-w-4xl */
}

body.theme-dialog-open {
	overflow: hidden;
}

/* ---------------------------------------------------------------
   Cart drawer
   --------------------------------------------------------------- */

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background: hsl(var(--foreground) / 0.2);
	z-index: 49;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s 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;
	background: hsl(var(--background));
	z-index: 50;
	box-shadow: var(--shadow-elevated);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s 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;
}

body.cart-open {
	overflow: hidden;
}

.theme-cart-count:empty {
	display: none;
}

.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,
.theme-product-card-wrap .add_to_cart_button.button:disabled,
.theme-product-card-wrap .add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}

/* Hide WooCommerce's injected "View cart" link 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;
}

/* ---------------------------------------------------------------
   Product cards
   --------------------------------------------------------------- */

.theme-product-card-wrap {
	min-width: 0;
}

.theme-product-grid {
	align-items: stretch;
}

.theme-product-card-wrap .theme-card-add {
	pointer-events: auto;
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	box-sizing: border-box;
	width: 2.25rem !important;
	height: 2.25rem !important;
	min-width: 2.25rem !important;
	min-height: 2.25rem !important;
	max-width: 2.25rem !important;
	max-height: 2.25rem !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 9999px !important;
	line-height: 1 !important;
	font-size: 0 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	box-shadow: 0 6px 18px hsl(var(--foreground) / 0.18);
	z-index: 2;
	opacity: 1;
	transition: opacity 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.theme-product-card-wrap .theme-card-add svg {
	width: 0.95rem;
	height: 0.95rem;
	flex-shrink: 0;
	stroke: currentColor;
}

.theme-product-card-wrap .theme-card-add:hover {
	background: hsl(var(--primary) / 0.92) !important;
	color: hsl(var(--primary-foreground)) !important;
	transform: scale(1.05);
}

@media (min-width: 768px) {
	.theme-product-card-wrap .theme-card-add {
		width: 2.5rem !important;
		height: 2.5rem !important;
		min-width: 2.5rem !important;
		min-height: 2.5rem !important;
		max-width: 2.5rem !important;
		max-height: 2.5rem !important;
		opacity: 0;
	}

	.theme-product-card-wrap:hover .theme-card-add,
	.theme-product-card-wrap:focus-within .theme-card-add {
		opacity: 1;
	}
}

.theme-product-card-wrap img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: contain !important;
	object-position: center;
}

.theme-product-card-wrap > .relative {
	position: relative;
}

.theme-product-card-wrap > .relative > a:not(.theme-card-add) {
	display: block;
	width: 100%;
	height: 100%;
}

.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;
}

/* ---------------------------------------------------------------
   Shop filters
   --------------------------------------------------------------- */

[data-shop-filter] {
	cursor: pointer;
}

[data-shop-search]:focus-visible {
	box-shadow: none;
}

/* ---------------------------------------------------------------
   Single product
   --------------------------------------------------------------- */

.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 {
	flex-wrap: wrap;
	max-width: 100%;
}

.single-product .theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.single-product .theme-add-to-cart-area .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
}

.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;
}

.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}

.single-product .variations tbody td.label {
	padding-bottom: 0.25rem;
}

.single-product .variations tbody td.value {
	padding-top: 0;
}

.single-product .variations tbody td.label label {
	display: block;
}

.single-product .single_variation_wrap {
	margin-top: 1.5rem;
}

.single-product .woocommerce-variation-price {
	margin-bottom: 0.75rem;
	font-size: 0.95rem;
}

.single-product .woocommerce-variation-price:empty,
.single-product .woocommerce-variation-price .price:empty {
	display: none;
}

.single-product .single_add_to_cart_button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border: 0;
	border-radius: var(--radius);
	padding: 1rem 2rem;
	font-family: var(--font-display);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	transition: background-color 0.25s ease;
	cursor: pointer;
}

.single-product .single_add_to_cart_button.button:hover {
	background: hsl(var(--primary) / 0.9);
}

.theme-quantity-wrapper {
	display: flex;
	align-items: stretch;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	overflow: hidden;
}

.theme-quantity-wrapper .theme-qty-minus,
.theme-quantity-wrapper .theme-qty-plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	background: transparent;
	border: 0;
	color: hsl(var(--foreground));
	cursor: pointer;
	font-size: 1rem;
	transition: background-color 0.2s ease;
}

.theme-quantity-wrapper .theme-qty-minus:hover,
.theme-quantity-wrapper .theme-qty-plus:hover {
	background: hsl(var(--secondary));
}

.theme-quantity-wrapper .theme-qty-input {
	width: 3.5rem;
	border: 0;
	background: transparent;
	color: hsl(var(--foreground));
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
	font-family: var(--font-body);
	font-size: 0.95rem;
	padding: 0.5rem 0;
}

.theme-quantity-wrapper .theme-qty-input::-webkit-outer-spin-button,
.theme-quantity-wrapper .theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.theme-quantity-wrapper .theme-qty-input:focus {
	outline: none;
}

.theme-attr-pill.is-active {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border-color: hsl(var(--primary));
}

.theme-product-thumbnails button {
	display: block;
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

.theme-product-thumbnails button img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.2s ease;
}

/* ---------------------------------------------------------------
   WooCommerce notices (visible where the theme has no other feedback)
   --------------------------------------------------------------- */

.woocommerce-notices-wrapper {
	width: 100%;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	border: 1px solid hsl(var(--border));
	border-left: 3px solid hsl(var(--primary));
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
	margin: 0 0 1.25rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	line-height: 1.6;
}

.woocommerce-error {
	border-left-color: hsl(var(--destructive));
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	content: none;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* ---------------------------------------------------------------
   Product archive / shop page
   --------------------------------------------------------------- */

.woocommerce-products-header {
	text-align: center;
	padding: 3rem 0 1.5rem;
}

.woocommerce-products-header .page-title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.15;
	margin: 0 0 1rem;
}

.woocommerce-result-count,
.woocommerce-ordering {
	display: none;
}

.woocommerce-pagination {
	display: flex;
	justify-content: center;
	margin: 3rem 0 0;
}

.woocommerce-pagination ul {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.woocommerce-pagination ul li {
	border: 0;
	margin: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li 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);
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-size: 0.875rem;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
	border-color: hsl(var(--primary));
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* ---------------------------------------------------------------
   Page shells (WordPress-generated pages)
   --------------------------------------------------------------- */

.site-main {
	padding-bottom: 4rem;
}

.theme-no-hero .site-main {
	padding-top: var(--header-height, 80px);
}

.page-title,
.entry-title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.15;
	letter-spacing: 0.01em;
	margin: 0 0 2rem;
}

.entry-content > * + * {
	margin-top: 1.25rem;
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.5rem;
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content blockquote {
	border-left: 2px solid hsl(var(--primary));
	padding-left: 1.25rem;
	font-style: italic;
	color: hsl(var(--muted-foreground));
}

.wp-block-image img,
.entry-content img {
	height: auto;
	max-width: 100%;
}

.alignwide {
	width: 100%;
	max-width: none;
}

/* ---------------------------------------------------------------
   Checkout, cart and account blocks
   --------------------------------------------------------------- */

body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
body.theme-thankyou-page .site-main {
	padding-top: var(--header-height, 80px);
	padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.theme-thankyou-page .entry-content {
	max-width: 100%;
}

body.woocommerce-checkout .wc-block-checkout {
	display: block;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}

body.woocommerce-checkout .wc-block-components-notice-banner,
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-notice-banner {
	grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 2rem;
}

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 {
	background: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: calc(var(--radius) - 2px) !important;
	color: hsl(var(--foreground)) !important;
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	width: 100% !important;
	max-width: none !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 {
	border-color: hsl(var(--ring)) !important;
	box-shadow: 0 0 0 2px hsl(var(--ring) / 0.4) !important;
	outline: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-select label {
	color: hsl(var(--muted-foreground)) !important;
	font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border: 0 !important;
	border-radius: var(--radius) !important;
	font-family: var(--font-display) !important;
	font-size: 0.75rem !important;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-weight: 500 !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background: hsl(var(--primary) / 0.9) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	background: hsl(var(--card)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: var(--radius) !important;
	color: hsl(var(--foreground)) !important;
	font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__main h2 {
	font-family: var(--font-display) !important;
	letter-spacing: 0.01em;
}

body.woocommerce-checkout .wc-block-cart-items__row,
body.woocommerce-checkout .wc-block-components-order-summary-item__description {
	font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-components-order-summary,
body.woocommerce-checkout .wc-block-components-totals-item {
	color: hsl(var(--foreground));
}

/* Quantity badge: WC uses background:currentColor + span color:base, which
   collapses to low contrast on this theme. Force a readable chip. */
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
	background: hsl(var(--primary)) !important;
	color: hsl(var(--primary)) !important;
	border: 2px solid hsl(var(--background)) !important;
	box-shadow: 0 0 0 1px hsl(var(--foreground) / 0.25);
	font-weight: 700 !important;
	font-family: var(--font-body) !important;
	line-height: 1 !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__quantity > span[aria-hidden="true"] {
	color: hsl(var(--background)) !important;
	-webkit-text-fill-color: hsl(var(--background)) !important;
	opacity: 1 !important;
	mix-blend-mode: normal !important;
}

body.woocommerce-checkout .wc-block-components-product-name,
body.theme-thankyou-page .wc-block-components-product-name {
	color: hsl(var(--foreground));
	font-family: var(--font-body);
}

body.woocommerce-checkout .wc-block-components-checkout-step__title {
	font-family: var(--font-display);
}

/* Classic checkout fallbacks (kept for plugins that render them). */
body.woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout .woocommerce-checkout .input-text {
	background: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 2px);
	color: hsl(var(--foreground));
	font-family: var(--font-body);
}

body.woocommerce-checkout .form-row .input-text:focus,
body.woocommerce-checkout .form-row select:focus {
	border-color: hsl(var(--ring));
	box-shadow: 0 0 0 2px hsl(var(--ring) / 0.4);
	outline: none;
}

body.woocommerce-checkout .woocommerce-checkout #place_order,
body.woocommerce-cart .checkout-button,
body.woocommerce-cart .button {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border: 0;
	border-radius: var(--radius);
	font-family: var(--font-display);
	font-size: 0.75rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	padding: 1rem 2rem;
	cursor: pointer;
}

/* Cart block */
body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-cart__totals-title {
	font-family: var(--font-body);
}

body.woocommerce-cart .wc-block-components-button,
body.woocommerce-cart .wc-block-cart__submit-button {
	border-radius: var(--radius);
	font-family: var(--font-display);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-size: 0.75rem;
}

body.woocommerce-cart .wc-block-cart__submit-button {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border: 0;
}

/* ---------------------------------------------------------------
   Thank you page
   --------------------------------------------------------------- */

body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
	margin: 0 auto;
}

body.theme-thankyou-page .woocommerce-order > p {
	font-family: var(--font-body);
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-notice--success {
	display: block;
	font-family: var(--font-body);
	font-size: 1rem;
	border: 1px solid hsl(var(--border));
	border-left: 3px solid hsl(var(--primary));
	background: hsl(var(--card));
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
	margin-bottom: 2rem;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 1.5rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--card));
	font-family: var(--font-body);
}

body.theme-thankyou-page .woocommerce-order-overview li {
	border: 0;
	margin: 0;
	padding: 0;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.95rem;
	letter-spacing: normal;
	text-transform: none;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	line-height: 1.25;
	padding: 0 0 1rem;
	margin: 2rem 0 0;
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td {
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid hsl(var(--border));
	font-size: 0.95rem;
	vertical-align: top;
	overflow-wrap: break-word;
}

body.theme-thankyou-page .woocommerce-order-details thead th {
	text-align: left;
	color: hsl(var(--muted-foreground));
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

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 {
	margin-top: 2rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
	min-width: 0;
	font-family: var(--font-body);
	font-style: normal;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 1.25rem;
	overflow-wrap: break-word;
	line-height: 1.7;
}

@media (min-width: 768px) {
	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;
	}
}

/* ---------------------------------------------------------------
   My account
   --------------------------------------------------------------- */

body.woocommerce-account .woocommerce {
	display: grid;
	gap: 2rem;
}

@media (min-width: 768px) {
	body.woocommerce-account .woocommerce {
		grid-template-columns: 240px minmax(0, 1fr);
		align-items: start;
	}
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	overflow: hidden;
	font-family: var(--font-body);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 0.75rem 1rem;
	color: hsl(var(--muted-foreground));
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: hsl(var(--card));
	color: hsl(var(--foreground));
}

body.woocommerce-account .woocommerce-MyAccount-content {
	font-family: var(--font-body);
	min-width: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account form.login .button,
body.woocommerce-account form.register .button {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border: 0;
	border-radius: var(--radius);
	font-family: var(--font-display);
	font-size: 0.75rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	padding: 0.9rem 1.75rem;
	cursor: pointer;
}

body.woocommerce-account form.login,
body.woocommerce-account form.register {
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 1.5rem;
	background: hsl(var(--card));
}

body.woocommerce-account form.login input.input-text,
body.woocommerce-account form.register input.input-text {
	background: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 2px);
	color: hsl(var(--foreground));
	padding: 0.65rem 0.75rem;
	width: 100%;
}

/* ---------------------------------------------------------------
   Generic form controls for WooCommerce-generated markup
   --------------------------------------------------------------- */

.woocommerce form .form-row label {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 500;
	color: hsl(var(--foreground));
	margin-bottom: 0.375rem;
	display: block;
}

.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-body);
	color: hsl(var(--foreground));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 0.875rem 1rem;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
}

.woocommerce table.shop_table th {
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

.woocommerce .quantity input.qty {
	background: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 2px);
	color: hsl(var(--foreground));
	padding: 0.5rem;
	width: 4rem;
	text-align: center;
}

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border: 0;
	border-radius: var(--radius);
	font-family: var(--font-display);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	padding: 0.875rem 1.75rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	text-decoration: none;
	transition: background-color 0.25s ease;
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
	background: hsl(var(--primary) / 0.9);
	color: hsl(var(--primary-foreground));
}

.woocommerce-cart-form .coupon .input-text {
	background: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 2px);
	color: hsl(var(--foreground));
	padding: 0.65rem 0.75rem;
}

/* ---------------------------------------------------------------
   Animations used by non-React markup
   --------------------------------------------------------------- */

@keyframes theme-check-pop {
	0% {
		transform: scale(0);
	}
	70% {
		transform: scale(1.08);
	}
	100% {
		transform: scale(1);
	}
}

.motion-safe\:animate-check-pop {
	animation: theme-check-pop 0.45s cubic-bezier(0.3, 0.7, 0.4, 1) both;
}

@media (prefers-reduced-motion: reduce) {
	.motion-safe\:animate-check-pop {
		animation: none;
	}
	#theme-cart-drawer,
	#theme-cart-overlay {
		transition: none;
	}
}
