/**
 * Theme integration styles.
 *
 * app.css carries the design's own compiled utilities and components.
 * This file only adds styles for markup that has no source equivalent
 * (WordPress and WooCommerce output), functional rules (hidden selects,
 * drawer state, reveal initial states) and the checkout block overrides.
 */

/* -------------------------------------------------------------------------
 * 1. Functional base rules
 * ---------------------------------------------------------------------- */

[hidden] {
	display: none !important;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

html {
	--header-height: 96px;
	--wp-admin-bar-height: 0px;
}

@media (min-width: 768px) {
	html {
		--header-height: 112px;
	}
}

/* Logged-in toolbar (Customizer preview and front end). */
body.admin-bar {
	--wp-admin-bar-height: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar {
		--wp-admin-bar-height: 46px;
	}
}

body.admin-bar .site-header {
	top: var(--wp-admin-bar-height);
}

body.admin-bar .scroll-progress {
	top: var(--wp-admin-bar-height);
}

/* Pointer cursor on interactive controls site-wide. */
a[href],
button:not(:disabled),
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled),
label[for],
select,
summary,
.theme-cat-pill,
.theme-option-pill,
.theme-product-thumb,
[data-contact-open],
[data-cart-open],
[data-mobile-menu-toggle],
[data-price-toggle],
[data-show-more],
.cursor-pointer {
	cursor: pointer;
}

button:disabled,
input:disabled,
.disabled,
[aria-disabled="true"] {
	cursor: not-allowed;
}

/* Inner pages sit below the fixed header; the home hero starts at the top. */
.theme-no-hero .site-main,
.theme-no-hero main {
	/* Clearance applied per template where the design shows it. */
}

body:not(.home) main:first-of-type {
	padding-top: 0;
}

/* -------------------------------------------------------------------------
 * 2. Site logo sizing (header + footer, every page type)
 * ---------------------------------------------------------------------- */

.site-logo-img {
	height: var(--logo-height, 96px) !important;
	width: auto !important;
	display: block;
}

.site-logo-text {
	line-height: var(--logo-height, 96px);
	display: block;
}

/* Header logo keeps the design's centred absolute box; the logo height
   Customizer control scales the artwork inside it. */
header .site-logo-img {
	height: var(--logo-height, 96px) !important;
	max-height: 100%;
	width: 100% !important;
	object-fit: contain;
}

/* -------------------------------------------------------------------------
 * 3. Scroll progress + page loader motion
 * ---------------------------------------------------------------------- */

.scroll-progress {
	transform: scaleX(0);
}

.theme-loader-badge {
	animation: themeLoaderTilt 2.4s ease-in-out infinite;
}

@keyframes themeLoaderTilt {
	0%,
	100% {
		transform: rotate(0deg);
	}
	25% {
		transform: rotate(8deg);
	}
	75% {
		transform: rotate(-8deg);
	}
}

.theme-loader-bar {
	transform: translateX(-100%);
	animation: themeLoaderBar 1.2s ease-in-out infinite;
}

@keyframes themeLoaderBar {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(300%);
	}
}

[data-page-loader].opacity-0 {
	pointer-events: none;
}

/* -------------------------------------------------------------------------
 * 4. Scroll reveals
 *
 * Each element fades + rises 32px over 0.7s with a 100ms stagger. The
 * observer adds .is-visible. Every context that renders a reveal wrapper
 * must be observed by js (see main.js), and the fallbacks below guarantee
 * content is never left invisible.
 * ---------------------------------------------------------------------- */

.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);
	will-change: opacity, transform;
}

.reveal-item.is-visible {
	opacity: 1;
	transform: none;
}

/* Customizer: instant scroll so restore is not fighting smooth-scroll. */
html:has(body.is-customizer) {
	scroll-behavior: auto !important;
}

/* Customizer preview and no-JS fallbacks: always visible. */
body.is-customizer .reveal-item,
.no-js .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* -------------------------------------------------------------------------
 * 5. Shop section: price range slider (dual handle, overlapping inputs)
 * ---------------------------------------------------------------------- */

/* Price filter panel: the design animates height 0 -> auto with a 0.3s
   ease, so the collapsed state is defined here rather than in app.css. */
[data-price-panel] {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.3s cubic-bezier(0.25, 0.4, 0.25, 1), opacity 0.3s cubic-bezier(0.25, 0.4, 0.25, 1);
}

[data-price-panel].is-open {
	max-height: 12rem;
	opacity: 1;
}

[data-price-chevron].is-open {
	transform: rotate(180deg);
}

.price-range-wrapper {
	position: relative;
	height: 1.25rem;
}

.price-range-wrapper .range-track-fill {
	transition: left 0.08s linear, width 0.08s linear;
}

.range-input {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
	margin: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 1.25rem;
}

.range-input:focus {
	outline: none;
}

.range-input::-webkit-slider-runnable-track {
	-webkit-appearance: none;
	background: transparent;
	height: 0.5rem;
}

.range-input::-moz-range-track {
	background: transparent;
	height: 0.5rem;
}

.range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	height: 1.25rem;
	width: 1.25rem;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
	margin-top: -0.375rem;
	box-shadow: 0 1px 4px hsl(var(--foreground) / 0.15);
}

.range-input::-moz-range-thumb {
	pointer-events: auto;
	height: 1.25rem;
	width: 1.25rem;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
	box-shadow: 0 1px 4px hsl(var(--foreground) / 0.15);
}

.range-input--min {
	z-index: 4;
}

.range-input--max {
	z-index: 3;
}

.price-range-wrapper:focus-within .range-input::-webkit-slider-thumb {
	box-shadow: 0 0 0 3px hsl(var(--ring) / 0.35);
}

/* -------------------------------------------------------------------------
 * 6. Category pills / option pills
 * ---------------------------------------------------------------------- */

.theme-cat-pill[aria-pressed="true"] {
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border-color: hsl(var(--primary));
}

.theme-cat-pill[aria-pressed="false"] {
	background-color: transparent;
	color: hsl(var(--foreground));
	border-color: hsl(var(--border));
}

/* -------------------------------------------------------------------------
 * 7. Product card hit area (Pattern A overlay link)
 * ---------------------------------------------------------------------- */

.theme-product-card {
	position: relative;
}

.theme-product-card > .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: auto;
}

.theme-product-card *:not(.theme-card-link):not(.theme-card-quick-add):not(.add_to_cart_button) {
	pointer-events: none;
}

.theme-product-card a.theme-card-quick-add,
.theme-product-card a.add_to_cart_button {
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 3;
	pointer-events: auto;
	display: block;
}

.theme-product-card:hover > .theme-card-link img {
	transform: scale(1.04);
}

/* -------------------------------------------------------------------------
 * 8. Add-to-cart disabled + loading 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;
}

.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,
.add_to_cart_button.loading::after {
	display: none !important;
}

/* WooCommerce's own "View cart" link is not part of the design. */
.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;
}

/* -------------------------------------------------------------------------
 * 9. Cart drawer open / close
 * ---------------------------------------------------------------------- */

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background: hsl(var(--foreground) / 0.3);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s cubic-bezier(0.25, 0.4, 0.25, 1), visibility 0.3s;
	z-index: 40;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
}

#theme-cart-drawer {
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.25, 0.4, 0.25, 1);
	will-change: transform;
}

body.cart-open #theme-cart-drawer {
	transform: translateX(0);
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

body.cart-open,
body.modal-open {
	overflow: hidden;
}

/* Drawer sits above the overlay. */
#theme-cart-drawer {
	z-index: 50;
}

/* -------------------------------------------------------------------------
 * 10. Contact modal
 * ---------------------------------------------------------------------- */

#theme-contact-modal[data-open="true"] [data-contact-overlay] {
	animation: themeFadeIn 0.2s ease forwards;
}

#theme-contact-modal[data-open="true"] [data-contact-panel] {
	animation: themeModalIn 0.2s cubic-bezier(0.25, 0.4, 0.25, 1) forwards;
}

@keyframes themeFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes themeModalIn {
	from {
		opacity: 0;
		transform: translate(-50%, -48%) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

/* -------------------------------------------------------------------------
 * 11. Single product
 * ---------------------------------------------------------------------- */

.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 .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 .product .entry-summary {
	overflow-wrap: break-word;
	word-break: break-word;
}

/* Quantity input: strip the native number spinners. */
.theme-qty-input {
	-moz-appearance: textfield;
	appearance: textfield;
	border: 0;
	outline: none;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.theme-quantity-wrapper .theme-qty-minus,
.theme-quantity-wrapper .theme-qty-plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

/* The design's stepper is 42px tall with a 4px inner padding. */
.theme-quantity-wrapper {
	padding: 0.25rem;
	gap: 0.25rem;
}

.theme-quantity-wrapper .theme-qty-input {
	height: 1.5rem;
	width: 1.5rem;
	font-size: 1rem;
	line-height: 1.5rem;
}

.theme-quantity-wrapper .theme-qty-minus,
.theme-quantity-wrapper .theme-qty-plus {
	height: 1.5rem;
	width: 1.5rem;
}

.theme-product-thumb {
	cursor: pointer;
	transition: border-color 0.2s ease;
}

/* Variations: stack labels above controls, hide the native select. */
.theme-attr-select-hidden,
.single-product .variations select {
	display: none !important;
}

.single-product .variations.shop_attributes 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 td.label label {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 700;
}

.theme-option-pill {
	text-align: left;
}

.theme-option-pill input[type="radio"] {
	accent-color: hsl(var(--primary));
	cursor: pointer;
}

.theme-option-group legend {
	font-family: var(--font-body);
}

/* WooCommerce variation price/availability text inside the form. */
.single-product .single_variation .woocommerce-variation-price {
	display: none;
}

.single-product .single_variation .woocommerce-variation-availability {
	font-family: var(--font-body);
	font-size: 0.875rem;
}

/* -------------------------------------------------------------------------
 * 12. WooCommerce notices
 * ---------------------------------------------------------------------- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	font-family: var(--font-body);
	font-size: 0.9375rem;
	border-radius: 1rem;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	list-style: none;
}

.woocommerce-message,
.woocommerce-info {
	border-left: 4px solid hsl(var(--accent));
}

.woocommerce-error {
	border-left: 4px solid hsl(var(--destructive));
}

.woocommerce-error li {
	margin: 0;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* -------------------------------------------------------------------------
 * 13. WooCommerce cart / checkout pages
 * ---------------------------------------------------------------------- */

/* page.php already offsets for the fixed header; only add breathing room. */
body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main,
body.woocommerce-account .site-main,
body.theme-thankyou-page .site-main {
	padding-bottom: 4rem;
}

body.woocommerce-cart .page-title,
body.woocommerce-checkout .page-title,
body.woocommerce-account .page-title,
body.theme-thankyou-page .page-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 2.25rem;
	line-height: 1.1;
	margin-bottom: 2rem;
	color: hsl(var(--foreground));
}

@media (min-width: 768px) {
	body.woocommerce-cart .page-title,
	body.woocommerce-checkout .page-title,
	body.woocommerce-account .page-title,
	body.theme-thankyou-page .page-title {
		font-size: 3rem;
	}
}

body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content {
	max-width: 100%;
}

body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
}

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-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.5rem;
	padding: 0 0 1rem 0;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 1.5rem;
	border-radius: 1rem;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	font-family: var(--font-body);
	font-size: 0.9375rem;
}

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	border: 0;
	padding: 0;
	flex: 1 1 12rem;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details {
	font-family: var(--font-body);
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: 1rem;
	padding: 1.5rem;
	margin-bottom: 2rem;
}

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;
	overflow-wrap: break-word;
	font-style: normal;
}

/* -------------------------------------------------------------------------
 * 14. Checkout block
 * ---------------------------------------------------------------------- */

body.woocommerce-checkout .wc-block-checkout {
	display: block;
	color: hsl(var(--foreground));
	font-family: var(--font-body);
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout.is-large {
		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 {
	grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: 1rem;
	padding: 2rem;
}

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title,
body.woocommerce-checkout h2.wc-block-components-title {
	font-family: var(--font-display);
	font-weight: 700;
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 0.375rem !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus {
	outline: none !important;
	border-color: hsl(var(--primary)) !important;
	box-shadow: 0 0 0 1px hsl(var(--primary)) !important;
}

body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
	color: hsl(var(--muted-foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	font-family: var(--font-body) !important;
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase !important;
	border-radius: 9999px !important;
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border: 1px solid hsl(var(--primary)) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--primary)) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	font-family: var(--font-body);
	border-radius: 1rem;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card)) !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-cart-items__row,
body.woocommerce-checkout .wc-block-components-order-summary-item {
	font-family: var(--font-body);
}

body.woocommerce-checkout .wc-block-components-product-metadata,
.wc-block-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-product-metadata {
	font-family: var(--font-body, inherit);
	font-size: 12px;
	line-height: 1.45;
	color: hsl(var(--muted-foreground));
	margin-top: 0.25rem;
}

body.woocommerce-checkout .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-components-order-summary-item__description {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-item__value {
	font-family: var(--font-body);
}

/* Classic fallback inputs (kept visually aligned if a shortcode is used). */
.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select {
	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: 0.375rem;
}

/* -------------------------------------------------------------------------
 * 15. Cart page (block and classic)
 * ---------------------------------------------------------------------- */

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
	min-width: 0;
}

/* Same two-column treatment as checkout: one grid owner, 50/50 split. */
@media (min-width: 768px) {
	body.woocommerce-cart
		.wc-block-components-sidebar-layout.wc-block-cart.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2rem);
		align-items: start;
	}
}

body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart {
	display: block;
}

/* Cart table headings follow the design's small uppercase labels. */
body.woocommerce-cart .wc-block-cart-items 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));
	border-bottom: 1px solid hsl(var(--border));
}

body.woocommerce-cart .wc-block-cart-items tbody td {
	border-bottom: 1px solid hsl(var(--border));
}

body.woocommerce-cart .wc-block-cart__totals-title {
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

body.woocommerce-cart .wc-block-components-totals-item__value strong,
body.woocommerce-cart .wc-block-components-totals-item__value {
	font-weight: 700;
}

body.woocommerce-cart .wc-block-cart__submit-container a,
body.woocommerce-cart .wc-block-cart__submit-button {
	width: 100%;
}

body.woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-name {
	font-family: var(--font-display);
	font-weight: 600;
	color: hsl(var(--primary));
}

body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-cart .wc-block-cart__main .wc-block-components-sidebar-layout {
	min-width: 0;
	width: 100%;
	max-width: none;
}

body.woocommerce-cart .wc-block-cart__sidebar {
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 2rem;
}

body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-cart .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-item__value,
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.woocommerce-cart .wc-block-cart__submit-button {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	border-radius: 9999px;
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border: 1px solid hsl(var(--primary));
}

body.woocommerce-cart .wc-block-cart__submit-button:hover {
	background-color: hsl(var(--background));
	color: hsl(var(--primary));
}

/* -------------------------------------------------------------------------
 * 16. Archive/shop pagination + generic WooCommerce tables
 * ---------------------------------------------------------------------- */

.woocommerce nav.woocommerce-pagination ul,
.theme-pagination ul {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.theme-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--border));
	font-family: var(--font-body);
	font-size: 0.8125rem;
	color: hsl(var(--foreground));
	text-decoration: none;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.theme-pagination .page-numbers.current {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* -------------------------------------------------------------------------
 * 17. WordPress default markup that has no design equivalent
 * ---------------------------------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.entry-content > * + * {
	margin-top: 1rem;
}

.entry-content a {
	color: hsl(var(--primary));
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-display);
	font-weight: 700;
	color: hsl(var(--foreground));
}

.entry-content ul {
	list-style: disc;
	padding-left: 1.5rem;
}

.entry-content ol {
	list-style: decimal;
	padding-left: 1.5rem;
}

.entry-content img {
	border-radius: 1rem;
}

/* -------------------------------------------------------------------------
 * 18. Reduced motion
 * ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	#theme-cart-drawer,
	#theme-cart-overlay,
	.theme-loader-bar,
	.theme-loader-badge {
		animation: none !important;
		transition: none !important;
	}
}
