/* =========================================================================
   Mod Wood Art — theme layer
   Only markup with no equivalent in the approved design (WooCommerce and
   WordPress generated markup) plus functional state rules live here.
   Elements that carry source classes keep their styling from app.css.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Functional base rules
   ---------------------------------------------------------------------- */
[hidden] {
	display: none !important;
}

/* -------------------------------------------------------------------------
   Global overflow (parity with src/index.css html/body clip)
   ---------------------------------------------------------------------- */
html,
body {
	max-width: 100%;
	overflow-x: clip;
}

html:has(body.is-customizer) {
	scroll-behavior: auto !important;
}

body.mobile-nav-open {
	overflow: hidden;
}

/* -------------------------------------------------------------------------
   Header / mobile menu (Lovable: stacked panel links, panel above content)
   ---------------------------------------------------------------------- */
.mwa-header-inner {
	min-width: 0;
}

.mwa-logo-button {
	flex-shrink: 1;
	min-width: 0;
	max-width: min(100%, calc(100% - 7.5rem));
}

.mwa-header-actions {
	flex-shrink: 0;
}

@media (max-width: 1199px) {
	.mwa-mobile-menu {
		inset: auto;
		top: var(--mwa-mobile-menu-top, 104px);
		right: 0;
		bottom: 0;
		left: 0;
		background: hsl(var(--paper));
	}

	.mwa-mobile-menu.is-open {
		z-index: 49;
		background: hsl(var(--white));
	}

	.mwa-mobile-menu.is-open .mwa-container {
		background: hsl(var(--white));
	}

	.mwa-mobile-menu.is-open .mwa-mobile-link,
	.mwa-mobile-menu.is-open button:not(.mwa-btn) {
		color: hsl(var(--ink));
	}

	.mwa-mobile-menu.is-open a {
		color: hsl(var(--ink-2));
	}

	.mwa-mobile-menu .mwa-container {
		min-width: 0;
		width: 100%;
		min-height: calc(100dvh - var(--mwa-mobile-menu-top, 104px));
		overflow-x: clip;
	}

	.mwa-mobile-menu .mwa-mobile-links {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		min-width: 0;
	}

	.mwa-mobile-menu .mwa-mobile-link {
		display: block;
		width: 100%;
		max-width: 100%;
		text-align: left;
	}

	.mwa-mobile-menu a {
		max-width: 100%;
		overflow-wrap: anywhere;
	}
}

/* Announcement + collection marquees: duration set in JS (--mwa-marquee-*-duration) for constant px/s. */
.mwa-announcement .mwa-marquee-track {
	animation-name: mwa-marquee !important;
	animation-duration: var(--mwa-marquee-track-duration, 52s) !important;
	animation-timing-function: linear !important;
	animation-iteration-count: infinite !important;
	animation-play-state: running !important;
	will-change: transform;
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
}

.mwa-collection-marquee .mwa-marquee-gallery {
	animation-name: mwa-marquee-gallery !important;
	animation-duration: var(--mwa-marquee-gallery-duration, 72s) !important;
	animation-timing-function: linear !important;
	animation-iteration-count: infinite !important;
	animation-play-state: running !important;
	will-change: transform;
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
}

.mwa-collection-marquee .mwa-marquee-gallery img {
	transform: translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
	.mwa-announcement .mwa-marquee-track,
	.mwa-collection-marquee .mwa-marquee-gallery {
		animation: none !important;
		will-change: auto;
	}
}

/* Sticky header sits below the logged-in WordPress admin bar (front end and Customizer preview). */
.admin-bar .mwa-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .mwa-header {
		top: 46px;
	}
}

a[href],
button:not(:disabled),
[role='button']:not([aria-disabled='true']),
.mwa-commission-card,
.mwa-product-card[data-href],
.mwa-thumbnails button,
.mwa-breadcrumb a {
	cursor: pointer;
}

.theme-waitlist-iframe {
	display: block;
	width: 100%;
	min-height: 420px;
	border: 0;
}

#commissions .mwa-field input,
#commissions .mwa-field textarea {
	padding: 12px 14px;
}

.theme-attr-select-hidden {
	display: none !important;
}

body.modal-open {
	overflow: hidden;
}

.site-logo-img {
	height: var(--logo-height, 32px) !important;
	width: auto !important;
	display: block;
}

/* Reveal fallbacks: never leave content hidden in the editor, or for
   visitors without IntersectionObserver. */
body.is-customizer [data-reveal],
body.is-customizer [data-reveal-child],
body.no-motion [data-reveal],
body.no-motion [data-reveal-child] {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	[data-reveal],
	[data-reveal-child] {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* Navigation items rendered as buttons must sit on the design's baseline. */
.mwa-desktop-nav button:not(.mwa-btn) {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	cursor: pointer;
}

.mwa-mobile-menu button:not(.mwa-btn) {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.mwa-footer-grid button:not(.mwa-btn) {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.mwa-colophon button:not(.mwa-btn) {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.mwa-section-head button:not(.mwa-btn),
.mwa-split-heading button:not(.mwa-btn) {
	background: none;
	border: 0;
	border-bottom: 1px solid hsl(var(--ink));
	padding: 0;
	cursor: pointer;
	color: inherit;
	font-family: var(--font-body);
	font-size: 14px;
}

/* Header cart badge (fragment target). */
.theme-cart-count {
	position: absolute;
	right: -3px;
	top: -4px;
	display: grid;
	place-items: center;
	min-width: 19px;
	height: 19px;
	padding: 0 4px;
	border-radius: 20px;
	background: hsl(var(--terracotta));
	color: hsl(var(--paper));
	font-size: 12px;
	line-height: 1;
}

.theme-cart-count:empty {
	display: none;
}

/* -------------------------------------------------------------------------
   Quantity control (WooCommerce input replacing the design's static value)
   ---------------------------------------------------------------------- */
.theme-qty-input {
	width: 44px;
	min-width: 44px;
	border: 0;
	background: transparent;
	text-align: center;
	font: 400 16px var(--font-body);
	color: inherit;
	appearance: textfield;
	-moz-appearance: textfield;
	padding: 0;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	appearance: none;
	margin: 0;
}

.theme-quantity-wrapper {
	display: inline-flex;
	align-items: center;
	border: 1px solid hsl(var(--ink));
	border-radius: 999px;
}

.theme-quantity-wrapper button {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
}

.mwa-quantity > div {
	position: relative;
}

.mwa-quantity > div > input {
	height: 42px;
	min-width: 36px;
}

.mwa-quantity > div > button {
	cursor: pointer;
	background: none;
	border: 0;
	color: inherit;
}

/* -------------------------------------------------------------------------
   Add to cart states
   ---------------------------------------------------------------------- */
.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;
}

a.added_to_cart.wc-forward,
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward {
	display: none !important;
}

.single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after,
.mwa-btn.loading::after {
	display: none !important;
}

.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

.ajax_add_to_cart.theme-btn-loading::after {
	display: none !important;
}

/* -------------------------------------------------------------------------
   Variable product attribute pills (native selects stay in the DOM)
   ---------------------------------------------------------------------- */
.single-product .variations,
.single-product .theme-variation-group .mwa-label {
	display: none;
}

.theme-variation-group {
	margin-bottom: 18px;
}

.theme-variation-group > .mwa-label {
	display: block;
	margin-bottom: 8px;
}

.theme-variation-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.theme-attr-pill {
	padding: 9px 16px;
	border: 1px solid hsl(var(--ink));
	border-radius: 999px;
	background: transparent;
	color: hsl(var(--ink));
	font: 500 11px var(--font-body);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-attr-pill.is-selected,
.theme-attr-pill.active {
	background: hsl(var(--ink));
	color: hsl(var(--paper));
}

.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 .woocommerce-variation-price,
.single-product .woocommerce-variation-availability {
	margin-bottom: 18px;
}

.single-product .woocommerce-variation-price .price {
	font: 400 34px var(--font-display);
	color: hsl(var(--terracotta));
}

.single-product .woocommerce-variation-add-to-cart {
	display: block;
}

/* -------------------------------------------------------------------------
   Single product layout safety
   ---------------------------------------------------------------------- */
.single-product .theme-product-layout,
.single-product .mwa-product-detail-grid {
	min-width: 0;
}

.single-product .theme-product-gallery,
.single-product .theme-product-info,
.single-product .mwa-detail-copy {
	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;
	margin-bottom: 18px;
}

.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,
.single-product .mwa-detail-copy p {
	overflow-wrap: break-word;
	word-break: break-word;
}

.single-product .mwa-detail-copy p a {
	text-decoration: underline;
}

.single-product .mwa-detail-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.single-product .mwa-detail-main {
	padding: 12px;
	background: hsl(var(--paper));
	border: 1px solid hsl(var(--ink));
	cursor: zoom-in;
	display: block;
	width: 100%;
}

/* -------------------------------------------------------------------------
   Lightbox
   ---------------------------------------------------------------------- */
.mwa-lightbox[hidden] {
	display: none !important;
}

/* -------------------------------------------------------------------------
   Modals
   ---------------------------------------------------------------------- */
.mwa-modal-backdrop[hidden] {
	display: none !important;
}

.theme-modal-input {
	width: 100%;
	padding: 12px 16px;
	border-radius: 16px;
	font: 400 16px var(--font-body);
	color: hsl(var(--ink));
	background: hsl(var(--paper-2));
	border: 1px solid hsl(var(--line));
	outline: none;
	transition: box-shadow 0.2s;
}

.theme-modal-input:focus {
	box-shadow: 0 0 0 2px hsl(var(--terracotta));
}

.mwa-modal-panel {
	padding: 44px;
	background: hsl(var(--paper-2));
	border: 1px solid hsl(var(--ink));
	box-shadow: var(--shadow-soft);
	max-height: 90vh;
	overflow-y: auto;
}

@media (max-width: 809px) {
	.mwa-modal-panel {
		padding: 28px 20px;
	}
}

/* -------------------------------------------------------------------------
   Cart drawer
   ---------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 49;
	background: hsla(26, 57%, 16%, 0.45);
	backdrop-filter: blur(4px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	pointer-events: auto;
}

#theme-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 50;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: min(100%, 28rem);
	max-width: 28rem;
	height: 100%;
	min-height: 0;
	background: hsl(var(--paper));
	box-shadow: var(--shadow-elevated);
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	overflow: hidden;
}

body.cart-open #theme-cart-drawer {
	transform: none;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

.theme-cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px;
	border-bottom: 1px solid hsl(var(--line));
}

.theme-cart-close {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: none;
	color: hsl(var(--ink));
	cursor: pointer;
	transition: all 0.3s;
}

.theme-cart-close:hover {
	background: rgba(0, 0, 0, 0.05);
	transform: rotate(90deg);
}

.theme-cart-empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
}

.theme-cart-empty-icon {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: hsl(var(--paper-2));
	color: hsl(var(--terracotta));
	margin-bottom: 20px;
}

.theme-cart-items {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.theme-cart-item {
	display: flex;
	gap: 16px;
	padding: 12px;
	border-radius: 16px;
	transition: background-color 0.2s;
	min-width: 0;
}

.theme-cart-item > .flex-1 {
	min-width: 0;
}

.theme-cart-item:hover {
	background: hsl(var(--paper-2));
}

.theme-cart-thumb {
	width: 80px;
	height: 96px;
	flex: 0 0 auto;
	overflow: hidden;
	border-radius: 12px;
	background: hsl(var(--line));
	display: block;
}

.theme-cart-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s;
}

.theme-cart-thumb:hover img {
	transform: scale(1.05);
}

.theme-cart-name {
	display: block;
	font: 500 15px/1.4 var(--font-display);
	color: hsl(var(--ink));
}

.theme-cart-name:hover {
	color: hsl(var(--terracotta));
}

.theme-cart-variation {
	font: 400 12px var(--font-body);
	color: hsl(var(--muted));
	margin-top: 4px;
}

.theme-cart-price {
	font: 600 14px var(--font-body);
	color: hsl(var(--ink-2));
	margin-top: 6px;
}

.theme-cart-price .price,
.theme-cart-price .woocommerce-Price-amount {
	font: inherit;
	color: inherit;
}

.theme-cart-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.theme-cart-qty {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid hsl(var(--line));
	border-radius: 50%;
	background: none;
	color: hsl(var(--ink));
	cursor: pointer;
	transition: background-color 0.2s;
}

.theme-cart-qty:hover {
	background: hsl(var(--paper-2));
}

.theme-cart-qty-value {
	font: 400 14px var(--font-body);
	width: 24px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.theme-cart-remove {
	margin-left: auto;
	background: none;
	border: 0;
	padding: 0;
	font: 400 14px var(--font-body);
	color: hsl(var(--muted));
	cursor: pointer;
	transition: color 0.2s;
}

.theme-cart-remove:hover {
	color: hsl(var(--terracotta));
}

.theme-cart-footer {
	padding: 24px;
	border-top: 1px solid hsl(var(--line));
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.theme-cart-subtotal {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}

.theme-cart-subtotal > span:last-child {
	font: 500 30px var(--font-display);
	color: hsl(var(--ink));
	letter-spacing: -0.01em;
}

.theme-cart-subtotal .woocommerce-Price-amount {
	font: inherit;
	color: inherit;
}

.theme-cart-empty-btn {
	width: 100%;
	background: none;
	border: 0;
	padding: 0;
	font: 400 14px var(--font-body);
	color: hsl(var(--muted));
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.theme-cart-empty-btn:hover {
	color: hsl(var(--terracotta));
}

/* -------------------------------------------------------------------------
   Shop / archive
   ---------------------------------------------------------------------- */
.mwa-product-card[data-href] {
	cursor: pointer;
}

.theme-archive-title {
	font-family: var(--font-label);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.1;
	text-wrap: balance;
	margin-top: 18px;
	max-width: 760px;
}

.theme-archive-title em {
	color: var(--teal);
	font-style: normal;
	font-family: inherit;
	text-transform: inherit;
	letter-spacing: inherit;
}

.theme-empty-shop {
	padding: 60px 0;
	text-align: center;
}

.theme-pagination {
	margin-top: 64px;
}

.theme-pagination .woocommerce-pagination ul {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
	border: 0;
}

.theme-pagination .woocommerce-pagination ul li {
	border: 0;
}

.theme-pagination .woocommerce-pagination a,
.theme-pagination .woocommerce-pagination span {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid hsl(var(--line));
	border-radius: 999px;
	font: 500 12px var(--font-body);
	letter-spacing: 0.08em;
	color: hsl(var(--ink));
}

.theme-pagination .woocommerce-pagination .current {
	background: hsl(var(--ink));
	color: hsl(var(--paper));
	border-color: hsl(var(--ink));
}

.theme-pagination .page-numbers {
	font: 500 13px var(--font-body);
}

/* -------------------------------------------------------------------------
   WooCommerce notices
   ---------------------------------------------------------------------- */
.woocommerce-notices-wrapper {
	width: 100%;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	border: 1px solid hsl(var(--ink));
	border-radius: 2px;
	background: hsl(var(--paper-2));
	color: hsl(var(--ink));
	padding: 18px 22px;
	font: 400 14px/1.6 var(--font-body);
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	box-shadow: none;
}

.woocommerce-error {
	border-color: hsl(var(--terracotta));
	color: hsl(var(--ink));
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.wc-block-components-notice-banner > svg {
	display: none;
}

.wc-block-components-notice-banner__content {
	font: inherit;
}

.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button {
	margin-left: auto;
	background: hsl(var(--action-bg));
	border: 1px solid hsl(var(--action-bg));
	color: hsl(var(--action-text));
	border-radius: 999px;
	padding: 10px 20px;
	font: 600 12px var(--font-body);
	text-decoration: none;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* -------------------------------------------------------------------------
   WordPress generated pages
   ---------------------------------------------------------------------- */
.theme-page-main {
	padding: 72px 0 120px;
}

.theme-page-container {
	min-width: 0;
}

.page-title,
.theme-entry-title {
	font-family: var(--font-label);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.05;
	font-size: clamp(36px, 5vw, 68px);
	color: hsl(var(--ink));
	margin-bottom: 32px;
}

.theme-entry-content,
.entry-content {
	color: hsl(var(--ink-2));
	font: 400 16px/1.65 var(--font-body);
	max-width: 100%;
}

.entry-content > * + * {
	margin-top: 18px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: hsl(var(--ink));
}

.entry-content a {
	color: hsl(var(--terracotta));
	text-decoration: underline;
}

.theme-404 {
	min-height: 70vh;
	display: grid;
	place-items: center;
	padding: 120px 24px;
	text-align: center;
}

.theme-404-code {
	font-family: var(--font-label);
	font-size: clamp(64px, 12vw, 140px);
	line-height: 1;
	letter-spacing: 0.04em;
	margin-bottom: 16px;
}

.theme-404-text {
	font: 400 20px var(--font-body);
	color: hsl(var(--muted));
	margin-bottom: 28px;
}

.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;
}

.skip-link {
	position: absolute;
	left: -9999px;
}

/* -------------------------------------------------------------------------
   Checkout header
   ---------------------------------------------------------------------- */
.theme-checkout-header {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.theme-checkout-continue {
	align-self: flex-start;
	font-size: 0.9375rem;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* -------------------------------------------------------------------------
   Responsive overflow guards (match Lovable mobile reflow)
   ---------------------------------------------------------------------- */
@media (max-width: 809px) {
	.mwa-hero h1 .mwa-h1-line {
		white-space: normal;
	}

	.mwa-room-title h2 {
		white-space: normal;
	}

	.mwa-logo-name,
	.mwa-logo-byline {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

.mwa-section,
.mwa-hero,
.mwa-shop,
.mwa-footer {
	min-width: 0;
}

.mwa-container {
	min-width: 0;
}

/* -------------------------------------------------------------------------
   Cart / account / checkout width parity
   ---------------------------------------------------------------------- */
.woocommerce-cart .theme-page-container,
.woocommerce-account .theme-page-container,
.theme-cart-page .theme-page-container,
.theme-account-page .theme-page-container,
body.woocommerce-checkout .theme-page-container {
	width: min(100%, 1312px);
	margin-inline: auto;
	padding-inline: 44px;
}

body.woocommerce-checkout .site-main,
body.woocommerce-checkout .theme-page-main,
.theme-cart-page .theme-page-main,
.theme-account-page .theme-page-main {
	padding-top: var(--header-height, 72px);
	padding-bottom: 4rem;
}

@media (max-width: 1199px) {
	.woocommerce-cart .theme-page-container,
	.woocommerce-account .theme-page-container,
.theme-cart-page .theme-page-container,
.theme-account-page .theme-page-container,
	body.woocommerce-checkout .theme-page-container {
		padding-inline: 28px;
	}
}

@media (max-width: 809px) {
	.woocommerce-cart .theme-page-container,
	.woocommerce-account .theme-page-container,
.theme-cart-page .theme-page-container,
.theme-account-page .theme-page-container,
	body.woocommerce-checkout .theme-page-container {
		padding-inline: 20px;
	}
}

/* -------------------------------------------------------------------------
   Checkout (native Checkout Block) — visual override only
   ---------------------------------------------------------------------- */
body.woocommerce-checkout .wc-block-checkout {
	display: block;
	color: hsl(var(--ink));
	font: 400 16px/1.65 var(--font-body);
}

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,
	body.woocommerce-checkout .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: hsl(var(--paper-2));
	border: 1px solid hsl(var(--line));
	border-radius: 2px;
	padding: 2rem;
}

body.woocommerce-checkout .wc-block-checkout h2,
body.woocommerce-checkout .wc-block-checkout h3,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-title {
	font-family: var(--font-label);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: hsl(var(--ink));
}

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,
body.woocommerce-checkout .woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .woocommerce-checkout .form-row select {
	width: 100% !important;
	max-width: none !important;
	background-color: hsl(var(--paper)) !important;
	border: 1px solid hsl(var(--line)) !important;
	border-radius: 2px !important;
	color: hsl(var(--ink)) !important;
	font-family: var(--font-body) !important;
	font-size: 16px !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(--terracotta)) !important;
	outline: none !important;
	box-shadow: 0 0 0 1px hsl(var(--terracotta)) !important;
}

body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
	color: hsl(var(--muted));
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button {
	background: hsl(var(--action-bg)) !important;
	border: 1px solid hsl(var(--action-bg)) !important;
	color: hsl(var(--action-text)) !important;
	border-radius: 999px !important;
	min-height: 50px;
	padding: 16px 28px;
	font: 600 14px/1 var(--font-body) !important;
	letter-spacing: 0;
	box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background: hsl(var(--action-hover)) !important;
	border-color: hsl(var(--action-hover)) !important;
}

body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-order-summary-item {
	font-family: var(--font-body);
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description,
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
	color: hsl(var(--ink-2));
}

body.woocommerce-checkout .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-components-product-price__value {
	font-family: var(--font-display);
	color: hsl(var(--ink));
}

body.woocommerce-checkout .wc-block-components-checkbox__mark {
	border-radius: 2px;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	grid-column: 1 / -1;
}

/* -------------------------------------------------------------------------
   Order confirmation
   ---------------------------------------------------------------------- */
body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
	color: hsl(var(--ink-2));
	font: 400 16px/1.65 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-label);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 24px;
	line-height: 1.15;
	color: hsl(var(--ink));
	padding: 0 0 1rem 0;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	list-style: none;
	margin: 0 0 40px;
	padding: 24px;
	border: 1px solid hsl(var(--line));
	background: hsl(var(--paper-2));
}

body.theme-thankyou-page .woocommerce-order-overview li {
	border: 0;
	padding: 0;
	margin: 0;
	font: 500 11px var(--font-body);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: hsl(var(--muted));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 6px;
	font: 500 18px var(--font-display);
	letter-spacing: 0;
	text-transform: none;
	color: hsl(var(--ink));
}

body.theme-thankyou-page .woocommerce-order-details table,
body.theme-thankyou-page .woocommerce-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: 12px 0;
	border-bottom: 1px solid hsl(var(--line));
	text-align: left;
	vertical-align: top;
	word-break: 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: 40px;
}

body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	border: 1px solid hsl(var(--line));
	padding: 20px;
	font-style: normal;
	background: hsl(var(--paper-2));
}

/* -------------------------------------------------------------------------
   Generic WooCommerce form fallbacks (account, cart)
   ---------------------------------------------------------------------- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-EditAccountForm input,
.woocommerce-EditAccountForm select {
	background: hsl(var(--paper)) !important;
	border: 1px solid hsl(var(--line)) !important;
	border-radius: 2px !important;
	color: hsl(var(--ink));
	font-family: var(--font-body);
	font-size: 16px;
	padding: 12px 14px;
}

.woocommerce form .form-row label,
.woocommerce-EditAccountForm label {
	font: 500 11px var(--font-body);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: hsl(var(--muted));
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	background: hsl(var(--action-bg));
	border: 1px solid hsl(var(--action-bg));
	color: hsl(var(--action-text));
	border-radius: 999px;
	min-height: 50px;
	padding: 16px 28px;
	font: 600 14px/1 var(--font-body);
	letter-spacing: 0;
	cursor: pointer;
	transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
	background: hsl(var(--action-hover));
	border-color: hsl(var(--action-hover));
	color: hsl(var(--action-text));
}

.woocommerce table.shop_table {
	border: 1px solid hsl(var(--line));
	border-radius: 2px;
	border-collapse: collapse;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-top: 1px solid hsl(var(--line));
	padding: 14px 12px;
	font-family: var(--font-body);
}

.woocommerce .quantity .qty {
	border: 1px solid hsl(var(--line));
	border-radius: 2px;
	background: hsl(var(--paper));
	color: hsl(var(--ink));
	padding: 8px;
}

.woocommerce .star-rating {
	color: hsl(var(--gold));
}
