/* ==========================================================================
   Functional layer + markup that has no equivalent in the source design.
   Typography, spacing and colour for source elements come from app.css.
   ========================================================================== */

:root {
	--header-height: 5rem;
}

[hidden] {
	display: none !important;
}

/* --------------------------------------------------------------------------
   WordPress admin bar — keep sticky header / drawers below the bar
   -------------------------------------------------------------------------- */

body.admin-bar .site-header {
	top: 32px;
}

body.admin-bar #theme-cart-drawer {
	top: 32px;
	height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	body.admin-bar #theme-cart-drawer {
		top: 46px;
		height: calc(100% - 46px);
	}
}

/* --------------------------------------------------------------------------
   Pointer cursor on every interactive control
   -------------------------------------------------------------------------- */

a[href],
button:not(:disabled):not([disabled]),
[role="button"]:not([aria-disabled="true"]),
input[type="submit"]:not(:disabled),
input[type="button"]:not(:disabled),
input[type="reset"]:not(:disabled),
input[type="image"]:not(:disabled),
label[for],
summary,
select:not(:disabled),
.theme-card-link,
.theme-product-card,
[data-theme-scroll-to],
[data-theme-menu-toggle],
[data-theme-announce-dismiss],
[data-theme-author-toggle],
[data-theme-gallery-open],
[data-theme-accordion-toggle],
[data-cart-open],
[data-cart-close],
.add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	cursor: pointer;
}

a[aria-disabled="true"],
button:disabled,
button[disabled],
[aria-disabled="true"],
.cursor-not-allowed {
	cursor: not-allowed;
}

body.is-customizer .theme-reveal-item,
body.is-customizer .theme-reveal-section .theme-reveal-item {
	opacity: 1 !important;
	transform: none !important;
}

/* --------------------------------------------------------------------------
   Scroll reveal (source: framer-motion useInView, once, margin -80px)
   -------------------------------------------------------------------------- */

.theme-reveal-item {
	opacity: 1;
	transform: none;
}

html[data-js] .theme-reveal-item {
	opacity: 0;
	transform: translateY(32px);
	will-change: opacity, transform;
}

html[data-js] .theme-reveal-item.is-visible {
	opacity: 1;
	transform: none;
}

body.is-customizer .theme-reveal-item,
body.is-customizer .theme-reveal-section .theme-reveal-item {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	html[data-js] .theme-reveal-item {
		opacity: 1;
		transform: none;
		transition: none !important;
	}
}

/* --------------------------------------------------------------------------
   Hero entrance (source: framer-motion staggered initial/animate)
   -------------------------------------------------------------------------- */

@keyframes theme-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes theme-rise {
	from { opacity: 0; transform: translateY(22px); }
	to { opacity: 1; transform: none; }
}

@keyframes theme-rise-sm {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

@keyframes theme-cover-in {
	from { opacity: 0; transform: translateY(30px) rotate(-2deg); }
	to { opacity: 1; transform: none; }
}

.theme-hero-anim {
	animation: theme-fade-in 1.1s cubic-bezier(0.25, 0.4, 0.25, 1) both;
}

.theme-hero-eyebrow {
	animation: theme-rise-sm 0.7s ease both;
	animation-delay: 0.25s;
}

.theme-hero-title {
	animation: theme-rise 0.9s cubic-bezier(0.25, 0.4, 0.25, 1) both;
	animation-delay: 0.35s;
}

.theme-hero-desc {
	animation: theme-rise-sm 0.7s ease both;
	animation-delay: 0.55s;
}

.theme-hero-ctas {
	animation: theme-rise-sm 0.65s ease both;
	animation-delay: 0.75s;
}

.theme-hero-cover {
	animation: theme-cover-in 1s cubic-bezier(0.25, 0.4, 0.25, 1) both;
	animation-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
	.theme-hero-anim,
	.theme-hero-eyebrow,
	.theme-hero-title,
	.theme-hero-desc,
	.theme-hero-ctas,
	.theme-hero-cover {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

/* Reveal items must never trap pointer events once hidden by JS timing. */
.theme-reveal-item {
	pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Header scroll state (source toggles bg-background/95 + backdrop blur)
   -------------------------------------------------------------------------- */

.site-header.is-solid {
	background-color: hsl(var(--background) / 0.95);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	border-bottom-color: hsl(var(--border));
}

[data-theme-header] .theme-logo-text,
.site-header .site-logo-text {
	line-height: var(--logo-height, 64px);
}

.site-logo-img {
	height: var(--logo-height, 64px) !important;
	width: auto !important;
	display: block;
}

.site-logo-footer {
	height: var(--footer-logo-height, 128px) !important;
}

/* --------------------------------------------------------------------------
   Book showcase hover (source: group-hover rotateY + translate on the cover)
   -------------------------------------------------------------------------- */

.theme-book-cover {
	transform-style: preserve-3d;
}

/* --------------------------------------------------------------------------
   Product cards — overlay link (Pattern A)
   -------------------------------------------------------------------------- */

.theme-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.theme-product-card > .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: auto;
}

.theme-product-card *:not(.theme-card-link) {
	pointer-events: none;
}

.theme-product-card .add_to_cart_button {
	z-index: 3;
	pointer-events: auto;
}

.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 2 / 3;
	background-color: hsl(var(--secondary));
	overflow: hidden;
}

.theme-product-card-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-product-card:hover .theme-product-card-image {
	transform: scale(1.04);
}

.theme-product-card-wrap {
	min-width: 0;
	height: 100%;
}

.theme-product-card-wrap .text-center {
	min-width: 0;
}

/* --------------------------------------------------------------------------
   Theme modal (contact + gallery) — source Radix dialog transitions
   -------------------------------------------------------------------------- */

.theme-modal-overlay {
	opacity: 0;
	transition: opacity 0.2s ease;
}

.theme-modal-content {
	opacity: 0;
	transform: translate(-50%, -48%) scale(0.95);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Closed dialogs must not intercept pointer events (the overlay is fixed+inset-0). */
.theme-modal,
.theme-modal[data-state="closed"] {
	pointer-events: none;
}

.theme-modal[data-state="open"] {
	pointer-events: auto;
}

.theme-modal[data-state="open"] .theme-modal-overlay {
	opacity: 1;
}

.theme-modal[data-state="open"] .theme-modal-content {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.theme-modal[data-state="closed"] .theme-modal-content {
	opacity: 0;
	transform: translate(-50%, -48%) scale(0.95);
}

/* --------------------------------------------------------------------------
   Side cart drawer
   -------------------------------------------------------------------------- */

/* Source: animate-slide-up (opacity 0 -> 1, translateY(20px) -> 0), 0.6s.
   Expressed as a transition on the open state so fragment replacement
   (which swaps the node) never restarts a keyframe. */
#theme-cart-drawer {
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	transform: translateY(20px);
	transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth), visibility 0s linear 0.6s;
	overflow: hidden;
}

body.cart-open #theme-cart-drawer {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
	transform: translateY(0);
	transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth), visibility 0s linear 0s;
}

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 40;
	background-color: hsl(var(--foreground) / 0.2);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	pointer-events: auto;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

.theme-cart-count:empty {
	display: none;
}

.theme-cart-count {
	min-width: 1.25rem;
	height: 1.25rem;
}

/* --------------------------------------------------------------------------
   Quantity, buttons and form states
   -------------------------------------------------------------------------- */

.theme-qty-input {
	-moz-appearance: textfield;
	appearance: textfield;
	width: 3rem;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.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;
}

.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;
}

.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Single product: variations + layout
   -------------------------------------------------------------------------- */

.theme-attr-select-hidden {
	display: none !important;
}

.single-product .variations {
	display: none !important;
}

.single-product .theme-variations-form {
	margin-bottom: 1.5rem;
}

.single-product .theme-attr-pill.is-selected,
.single-product .theme-attr-pill[aria-pressed="true"] {
	background-color: hsl(var(--foreground));
	color: hsl(var(--background));
	border-color: hsl(var(--foreground));
}

.single-product .theme-product-layout {
	min-width: 0;
}

.single-product .theme-product-gallery,
.single-product .theme-product-info {
	min-width: 0;
	max-width: 100%;
}

.single-product .theme-product-thumbnails {
	flex-wrap: wrap;
	max-width: 100%;
}

.single-product .theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.single-product .theme-add-to-cart-area .theme-quantity-wrapper {
	flex: 0 0 auto;
}

.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 .single_variation_wrap .woocommerce-variation-price {
	margin-bottom: 1rem;
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

.single-product .single_variation_wrap .woocommerce-variation-availability {
	margin-bottom: 0.75rem;
	font-family: var(--font-body);
	color: hsl(var(--muted-foreground));
}

.single-product .single_variation_wrap .woocommerce-variation-description {
	margin-bottom: 1rem;
	font-family: var(--font-body);
	color: hsl(var(--muted-foreground));
}

.single-product .theme-thumb-img {
	transition: opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   WooCommerce markup without a source equivalent
   -------------------------------------------------------------------------- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
	position: relative;
	display: block;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem 1rem 3rem;
	list-style: none;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.6;
	color: hsl(var(--foreground));
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-left-width: 3px;
	border-left-color: hsl(var(--primary));
	border-radius: var(--radius);
}

.woocommerce-error {
	border-left-color: hsl(var(--destructive));
	color: hsl(var(--foreground));
}

.woocommerce-info {
	border-left-color: hsl(var(--muted-foreground));
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 1.35rem;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: currentColor;
	opacity: 0.7;
}

.woocommerce-error li {
	margin-bottom: 0.25rem;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
	color: hsl(var(--primary-bright));
	text-decoration: underline;
	text-underline-offset: 2px;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

.woocommerce-breadcrumb {
	display: none;
}

/* Forms and tables generated by WooCommerce */
.woocommerce table.shop_table,
.woocommerce-page 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);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 0.875rem 1rem;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
	vertical-align: middle;
}

.woocommerce table.shop_table thead th {
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

.woocommerce table.shop_table tfoot th {
	text-align: left;
}

.woocommerce table.shop_table tfoot td {
	text-align: right;
}

.woocommerce form .form-row {
	margin-bottom: 1rem;
}

.woocommerce form .form-row label {
	display: block;
	margin-bottom: 0.375rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 500;
	color: hsl(var(--foreground));
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .quantity .qty,
.woocommerce-page form .form-row input.input-text {
	width: 100%;
	padding: 0.75rem 1rem;
	font-family: var(--font-body);
	font-size: 1rem;
	color: hsl(var(--foreground));
	background-color: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) + 2px);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	outline: none;
	border-color: hsl(var(--ring));
	box-shadow: 0 0 0 2px hsl(var(--ring) / 0.35);
}

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 2rem;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: hsl(var(--primary-foreground));
	background-color: hsl(var(--primary));
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background-color: hsl(var(--primary-bright));
	color: hsl(var(--primary-foreground));
}

.woocommerce .button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #place_order {
	width: 100%;
}

.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	padding: 0;
	margin: 0;
	list-style: none;
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.75rem;
	font-family: var(--font-body);
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	color: hsl(var(--foreground));
	border: 1px solid hsl(var(--border));
	transition: border-color 0.2s ease, color 0.2s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-bright));
}

.woocommerce-result-count,
.woocommerce-ordering select {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
}

.woocommerce-ordering select {
	padding: 0.5rem 0.75rem;
	background-color: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
}

/* Quantity input generated by WooCommerce inside cart tables */
.woocommerce .quantity input.qty {
	width: 4.5rem;
	padding: 0.5rem;
	text-align: center;
}

/* Screen reader text */
.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-width: 0;
}

/* --------------------------------------------------------------------------
   Page titles (WordPress output)
   -------------------------------------------------------------------------- */

.page-title {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: 0.02em;
	text-wrap: balance;
}

.theme-inner-page .entry-content > * + * {
	margin-top: 1.25rem;
}

.theme-inner-page .entry-content h2,
.theme-inner-page .entry-content h3 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.theme-inner-page .entry-content a {
	color: hsl(var(--primary-bright));
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Checkout — native WooCommerce Checkout Block
   -------------------------------------------------------------------------- */

body.woocommerce-checkout .site-main {
	padding-top: 0;
	padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content {
	max-width: 100%;
}

body.woocommerce-checkout .wc-block-checkout {
	display: block;
}

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 {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
		align-items: start;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-checkout__main {
		grid-column: 1;
		order: 1;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-checkout__sidebar {
		grid-column: 2;
		order: 2;
	}
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 2rem;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	grid-column: 1 / -1;
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	color: hsl(var(--foreground));
	font-family: var(--font-body);
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-blocks-components-select__container {
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--background)) !important;
	border-color: hsl(var(--border)) !important;
	border-radius: calc(var(--radius) + 2px) !important;
	width: 100% !important;
	max-width: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus {
	border-color: hsl(var(--ring)) !important;
	box-shadow: 0 0 0 2px hsl(var(--ring) / 0.35) !important;
	outline: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-checkbox__label,
body.woocommerce-checkout .wc-block-components-radio-control__label,
body.woocommerce-checkout .wc-block-checkout__form legend,
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-panel__button {
	font-family: var(--font-body) !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button:not(.is-link) {
	font-family: var(--font-body) !important;
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.25em !important;
	text-transform: uppercase !important;
	color: hsl(var(--primary-foreground)) !important;
	background-color: hsl(var(--primary)) !important;
	border: 0 !important;
	border-radius: 0 !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(--primary-bright)) !important;
	color: hsl(var(--primary-foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description,
body.woocommerce-checkout .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-components-totals-item,
body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-item__value {
	font-family: var(--font-body) !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
	background-color: hsl(var(--secondary)) !important;
	color: hsl(var(--foreground)) !important;
	border-color: hsl(var(--border)) !important;
}

body.woocommerce-checkout .wc-block-components-order-summary,
body.woocommerce-checkout .wc-block-components-totals-wrapper {
	border-color: hsl(var(--border)) !important;
}

/* --------------------------------------------------------------------------
   Thank you page
   -------------------------------------------------------------------------- */

body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order > p:first-child {
	font-family: var(--font-body);
	font-size: 1rem;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: hsl(var(--foreground));
	padding: 0 0 1rem;
	margin-bottom: 0.5rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding: 1.5rem;
	margin: 0 0 2rem;
	list-style: none;
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	font-family: var(--font-body);
}

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.25rem;
	font-size: 1rem;
	font-weight: 600;
	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 1rem;
	border-bottom: 1px solid hsl(var(--border));
	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: 2rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	font-family: var(--font-body);
	font-style: normal;
	color: hsl(var(--muted-foreground));
}

/* --------------------------------------------------------------------------
   Cart / account pages — width and alignment parity with checkout
   -------------------------------------------------------------------------- */

.woocommerce-cart .site-main,
.woocommerce-account .site-main {
	padding-bottom: 4rem;
}

.woocommerce-cart .page-title,
.woocommerce-account .page-title {
	margin-bottom: 2rem;
}

.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}

@media (min-width: 768px) {
	.woocommerce-account .woocommerce {
		grid-template-columns: 240px 1fr;
		align-items: start;
	}
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.625rem 1rem;
	font-family: var(--font-body);
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
	border: 1px solid hsl(var(--border));
	transition: color 0.2s ease, border-color 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MainAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	color: hsl(var(--primary-bright));
	border-color: hsl(var(--primary));
}

.woocommerce-account .woocommerce-MyAccount-content {
	font-family: var(--font-body);
	color: hsl(var(--foreground) / 0.8);
	min-width: 0;
}

.woocommerce-empty-cart-title,
.wc-block-cart__main .wc-block-components-title {
	font-family: var(--font-display);
	font-weight: 400;
	color: hsl(var(--foreground));
}

/* Cart page block layout */
body.woocommerce-cart .entry-content {
	max-width: 100%;
}

/* --------------------------------------------------------------------------
   Footer navigation helper
   -------------------------------------------------------------------------- */

.theme-footer-nav-link {
	background: none;
	border: 0;
	padding: 0;
}

/* --------------------------------------------------------------------------
   Newsletter / contact feedback
   -------------------------------------------------------------------------- */

.theme-newsletter-error,
.theme-modal-error {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--accent));
}

/* --------------------------------------------------------------------------
   Product archive layout
   -------------------------------------------------------------------------- */

.post-type-archive-product .theme-shop-grid {
	align-items: stretch;
}

.single-product-archive .page-title {
	margin-bottom: 0.75rem;
}
