/*!
 * Foxtale Embroidery — theme.css
 * Only rules for markup that has no equivalent in the compiled source
 * stylesheet (WooCommerce / WordPress output), plus functional states.
 */

/* -------------------------------------------------------------------------
 * Functional primitives
 * ---------------------------------------------------------------------- */
[hidden] {
	display: none !important;
}

/* Hand cursor on every interactive control. */
a,
button,
[role="button"],
[type="button"],
[type="submit"],
[type="reset"],
[type="image"],
label[for],
select,
summary,
input[type="checkbox"],
input[type="radio"],
input[type="file"],
.theme-btn,
.theme-nav-item,
.site-header__icon-btn,
[data-cart-open],
[data-cart-close],
[data-cart-remove],
[data-cart-empty],
[data-cart-qty-update],
[data-section-link],
[data-shop-filter],
[data-shop-more],
[data-card-prev],
[data-card-next],
[data-qty-minus],
[data-qty-plus],
[data-upload-remove],
[data-gallery-thumb],
[data-floating-badge] button,
[data-badge-open],
[data-badge-close] {
	cursor: pointer;
}

a[aria-disabled="true"],
button:disabled,
button.disabled,
[aria-disabled="true"],
.disabled {
	cursor: not-allowed;
}

/* -------------------------------------------------------------------------
 * WordPress admin bar — keep the fixed header clear of the toolbar
 * ---------------------------------------------------------------------- */
body.admin-bar .site-header.fixed,
body.admin-bar header.fixed {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header.fixed,
	body.admin-bar header.fixed {
		top: 46px;
	}
}

/* Hide "View cart" injected by WooCommerce 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;
}

/* Suppress WooCommerce's own spinner so only the theme lock shows. */
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after {
	display: none !important;
}

.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

/* Disabled add-to-cart buttons (variable products + sold out). */
.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,
.theme-product-actions a.disabled,
.theme-product-actions 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,
.theme-product-actions a.disabled:hover,
.theme-product-actions button.disabled:hover {
	opacity: 0.4 !important;
}

/* Native variation select, hidden while the pills drive it. */
.theme-attr-select-hidden {
	display: none !important;
}

/* -------------------------------------------------------------------------
 * Site identity
 *
 * The source renders the logo at three distinct sizes (header 56 → 72px,
 * footer 96px, floating badge 40px). Each context keeps its own source size;
 * the logo_height setting drives the header so it never varies page to page.
 * ---------------------------------------------------------------------- */
.site-logo-img,
.site-logo-text {
	display: block;
}

.site-header .site-logo-img {
	height: 3.5rem !important;
	width: auto !important;
	object-fit: contain;
}

@media (min-width: 640px) {
	.site-header .site-logo-img {
		height: var(--logo-height, 72px) !important;
	}
}

.site-main .site-logo-img,
footer .site-logo-img {
	height: inherit !important;
	width: auto !important;
	object-fit: contain;
}

footer .site-logo-img {
	height: 6rem !important;
}

[data-floating-badge] .site-logo-img {
	height: 2.5rem !important;
}

.site-logo-text {
	font-family: 'Newsreader', Georgia, serif;
	line-height: 1.1;
}

.site-header .site-logo-text {
	font-size: 1.125rem;
}

@media (min-width: 1024px) {
	.site-header .site-logo-text {
		font-size: 1.25rem;
	}
}

footer .site-logo-text {
	font-size: 1.5rem;
	color: hsl(var(--primary-foreground));
}

/* -------------------------------------------------------------------------
 * Header shell states
 * ---------------------------------------------------------------------- */
.site-header .site-header__bar {
	background-color: transparent;
	border-bottom: 1px solid transparent;
}

.site-header.is-solid .site-header__bar {
	background-color: hsl(var(--ivory) / 0.9);
	border-bottom-color: hsl(var(--foreground) / 0.1);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
}

.site-header__icon-btn,
.site-header__brand-text,
.theme-nav-item,
.theme-nav-underline {
	transition: color 300ms ease, background-color 300ms ease;
}

.theme-nav-item[data-active="true"] {
	color: hsl(var(--primary));
}

.site-header.is-transparent .theme-nav-item[data-active="true"] {
	color: hsl(var(--background));
}

/* The hero sits under the transparent header — inner pages need the offset.
 * Matches Lovable single-product spacing (pt-36 / pt-32) so content clears
 * the announcement bar + sticky header.
 */
body.theme-no-hero .site-main {
	padding-top: 9rem;
}
@media (min-width: 640px) {
	body.theme-no-hero .site-main {
		padding-top: 8rem;
	}
}
body.theme-no-hero .theme-product-page,
body.theme-no-hero .theme-page,
body.theme-no-hero .theme-archive,
body.theme-no-hero .theme-notfound {
	padding-top: 0;
}

/* Cart / checkout / account: page wrapper owns the offset so titles clear the header. */
body.woocommerce-cart.theme-no-hero .site-main,
body.woocommerce-checkout.theme-no-hero .site-main,
body.woocommerce-account.theme-no-hero .site-main {
	padding-top: 0;
}

body.woocommerce-cart .theme-page.theme-page--wc,
body.woocommerce-checkout .theme-page.theme-page--wc,
body.woocommerce-account .theme-page.theme-page--wc {
	padding-top: 10.5rem;
	padding-bottom: 4rem;
}

@media (min-width: 640px) {
	body.woocommerce-cart .theme-page.theme-page--wc,
	body.woocommerce-checkout .theme-page.theme-page--wc,
	body.woocommerce-account .theme-page.theme-page--wc {
		padding-top: 9.5rem;
	}
}

/* Reveal content must never stay hidden in the Customizer or with no JS. */
body.is-customizer [data-reveal],
html.no-js [data-reveal] {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

/* -------------------------------------------------------------------------
 * Cart drawer + overlay
 * ---------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 49;
	background: hsl(var(--foreground) / 0.35);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 450ms cubic-bezier(0.32, 0.72, 0, 1), visibility 450ms;
	cursor: pointer;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
}

#theme-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	width: 100%;
	max-width: 28rem;
	display: flex;
	flex-direction: column;
	transform: translate3d(calc(100% + 2px), 0, 0);
	transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
	background-color: hsl(var(--popover));
	color: hsl(var(--popover-foreground));
}

body.cart-open #theme-cart-drawer {
	transform: translate3d(0, 0, 0);
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	#theme-cart-drawer,
	#theme-cart-overlay {
		transition-duration: 0ms;
	}
}

/* -------------------------------------------------------------------------
 * Product card overlay (Pattern A hit area)
 * ---------------------------------------------------------------------- */
.theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: auto;
	display: block;
}

.woocommerce ul.products li.product,
.theme-related-products .group {
	min-width: 0;
}

.theme-product-card__image-wrapper,
.product .theme-card-link {
	display: block;
}

/* Keep the add/quick-view controls clickable above the overlay link.
 * Arrow buttons must stay absolutely positioned at each card edge.
 */
.theme-card-link ~ div a.add_to_cart_button,
.theme-card-link ~ div a.theme-card-quick,
.add_to_cart_button,
.theme-card-quick {
	position: relative;
	z-index: 3;
	pointer-events: auto;
}

[data-card-prev],
[data-card-next] {
	position: absolute;
	top: 50%;
	z-index: 20;
	transform: translateY(-50%);
	pointer-events: auto;
}

[data-card-prev] {
	left: 0.5rem;
	right: auto;
}

[data-card-next] {
	right: 0.5rem;
	left: auto;
}

/* -------------------------------------------------------------------------
 * Single product: responsive layout
 * ---------------------------------------------------------------------- */
.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;
}

/* Variations table: label above control, native select already hidden. */
.single-product .variations,
.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
	border: 0;
	padding: 0;
	margin: 0;
}

.single-product .variations {
	height: 0;
	overflow: hidden;
	visibility: hidden;
}

.single-product .variations tbody td.label {
	padding-bottom: 0.25rem;
}

.single-product .variations tbody td.value {
	padding-top: 0;
}

.theme-attr-pill.is-active {
	background-color: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

.theme-attr-pill.is-active:hover {
	color: hsl(var(--primary-foreground));
}

/* Variation price/description block shown once a variation is chosen. */
.single_variation_wrap {
	margin-top: 1rem;
}

.single_variation .woocommerce-variation-price,
.single_variation .woocommerce-variation-availability {
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 0.75rem;
}

.single_variation .woocommerce-variation-price .price {
	font-weight: 500;
	color: hsl(var(--foreground) / 0.9);
}

/* -------------------------------------------------------------------------
 * Shop archive
 * ---------------------------------------------------------------------- */
.theme-archive .woocommerce-result-count,
.theme-archive .woocommerce-ordering {
	display: none;
}

.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
	margin: 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.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--foreground) / 0.25);
	font-size: 14px;
	font-weight: 500;
	color: hsl(var(--foreground));
	transition: border-color 200ms ease, background-color 200ms ease;
	text-decoration: none;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
	border-color: hsl(var(--foreground));
	background-color: hsl(var(--foreground) / 0.04);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background-color: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* -------------------------------------------------------------------------
 * WooCommerce notices
 * ---------------------------------------------------------------------- */
.woocommerce-notices-wrapper {
	margin: 0 auto 1.5rem;
	max-width: 80rem;
	padding: 0 1.25rem;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	position: relative;
	list-style: none;
	border: 1px solid hsl(var(--border));
	border-left: 3px solid hsl(var(--primary));
	border-radius: var(--radius, 0.75rem);
	background-color: hsl(var(--ivory));
	padding: 1rem 1.25rem 1rem 1.25rem;
	margin: 0 0 0.75rem;
	font-size: 14px;
	line-height: 1.6;
	color: hsl(var(--foreground) / 0.85);
}

.woocommerce-error {
	border-left-color: hsl(var(--destructive, 0 62% 45%));
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	float: right;
	margin-left: 1rem;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* -------------------------------------------------------------------------
 * Checkout / cart / account blocks
 * ---------------------------------------------------------------------- */
body.woocommerce-cart .woocommerce-breadcrumb,
body.woocommerce-checkout .woocommerce-breadcrumb,
body.woocommerce-account .woocommerce-breadcrumb,
body.woocommerce-cart .wp-block-woocommerce-breadcrumbs,
body.woocommerce-checkout .wp-block-woocommerce-breadcrumbs,
body.woocommerce-account .wp-block-woocommerce-breadcrumbs,
body.woocommerce-cart .wc-block-breadcrumbs,
body.woocommerce-checkout .wc-block-breadcrumbs,
body.woocommerce-account .wc-block-breadcrumbs {
	display: none !important;
}

body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
	max-width: 100%;
}

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-cart .wp-block-woocommerce-cart {
	/* The two-column grid is owned by the sidebar-layout element only, so the
	   outer wrapper stays a block (never a grid-within-grid). */
	display: block;
	color: hsl(var(--foreground));
	font-family: 'Helvetica Neue', Helvetica, 'Geist', system-ui, -apple-system, sans-serif;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	order: initial;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout,
	body.woocommerce-checkout .wc-block-components-sidebar-layout {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: var(--checkout-gap, 2rem);
		align-items: start;
		width: 100%;
		max-width: none;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-checkout__main {
		grid-column: 1;
		grid-row: 1;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-checkout__sidebar {
		grid-column: 2;
		grid-row: 1;
	}

	/* Notices and other injected siblings span the full grid width. */
	body.woocommerce-checkout .wc-block-components-sidebar-layout > :not(.wc-block-checkout__main):not(.wc-block-checkout__sidebar) {
		grid-column: 1 / -1;
	}
}

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-checkout__sidebar {
	background-color: hsl(var(--linen));
	border: 1px solid hsl(var(--foreground) / 0.1);
	border-radius: calc(var(--radius, 0.75rem) * 2);
	padding: 1.75rem;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-checkout__main h2,
body.woocommerce-checkout .wc-block-checkout__sidebar h2 {
	font-family: 'Newsreader', Georgia, serif;
	font-weight: 400;
	color: hsl(var(--foreground));
	letter-spacing: 0;
}

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-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	font-family: 'Helvetica Neue', Helvetica, 'Geist', system-ui, -apple-system, sans-serif !important;
	font-size: 14px !important;
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--ivory)) !important;
	border: 1px solid hsl(var(--foreground) / 0.15) !important;
	border-radius: calc(var(--radius, 0.75rem) - 2px) !important;
	width: 100% !important;
	max-width: none !important;
	box-shadow: none !important;
	transition: border-color 200ms ease !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(--primary)) !important;
	outline: none !important;
	box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
	color: hsl(var(--foreground) / 0.45) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-cart__submit-button {
	font-family: 'Helvetica Neue', Helvetica, 'Geist', system-ui, -apple-system, sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	height: 3rem !important;
	padding: 0 1.75rem !important;
	border-radius: 9999px !important;
	background-color: hsl(var(--primary)) !important;
	border: 1px solid hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	transition: background-color 200ms ease !important;
	box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wc-block-cart__submit-button:hover {
	background-color: hsl(var(--primary) / 0.9) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner,
body.woocommerce-cart .wc-block-components-notice-banner {
	border-radius: var(--radius, 0.75rem);
	border: 1px solid hsl(var(--border));
	background-color: hsl(var(--ivory));
	color: hsl(var(--foreground) / 0.85);
	font-size: 14px;
}

body.woocommerce-checkout .wc-block-cart-items__row,
body.woocommerce-cart .wc-block-cart-items__row {
	border-color: hsl(var(--foreground) / 0.1);
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description,
body.woocommerce-checkout .wc-block-components-product-name,
body.woocommerce-cart .wc-block-components-product-name {
	color: hsl(var(--foreground));
	font-size: 14px;
}

body.woocommerce-checkout .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-components-totals-item__label {
	font-size: 14px;
	color: hsl(var(--foreground) / 0.75);
}

body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-size: 16px;
	font-weight: 500;
	color: hsl(var(--foreground));
}

/* Classic shortcode fallbacks (kept minimal — blocks are used). */
.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select {
	font-family: 'Helvetica Neue', Helvetica, 'Geist', system-ui, sans-serif;
	font-size: 14px;
	color: hsl(var(--foreground));
	background-color: hsl(var(--ivory));
	border: 1px solid hsl(var(--foreground) / 0.15);
	border-radius: calc(var(--radius, 0.75rem) - 2px);
}

/* Page title shares the site container width (Section 13.2.1). */
.page-title {
	font-family: 'Newsreader', Georgia, serif;
	font-weight: 400;
	letter-spacing: 0;
	color: hsl(var(--foreground));
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.05;
	margin: 0 0 2rem;
}

/* Cart / checkout / account content shares the header container. */
body.woocommerce-checkout .entry-content > .wp-block-woocommerce-checkout,
body.woocommerce-cart .entry-content > .wp-block-woocommerce-cart {
	width: 100%;
	max-width: none;
}

/* -------------------------------------------------------------------------
 * Thank-you page
 * ---------------------------------------------------------------------- */
body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
	color: hsl(var(--foreground));
	font-family: 'Helvetica Neue', Helvetica, 'Geist', system-ui, -apple-system, sans-serif;
	font-size: 14px;
	line-height: 1.6;
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	font-family: 'Newsreader', Georgia, serif;
	font-weight: 400;
	color: hsl(var(--foreground));
	padding: 0 0 1rem 0;
	margin: 0;
	font-size: 1.5rem;
}

body.theme-thankyou-page .woocommerce-thankyou-order-received {
	font-family: 'Newsreader', Georgia, serif;
	font-size: 2rem;
	line-height: 1.1;
	color: hsl(var(--foreground));
	margin-bottom: 1.5rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 1.5rem;
	border: 1px solid hsl(var(--foreground) / 0.1);
	border-radius: calc(var(--radius, 0.75rem) * 2);
	background-color: hsl(var(--linen));
}

body.theme-thankyou-page .woocommerce-order-overview li {
	border: 0;
	padding: 0;
	margin: 0;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: hsl(var(--foreground) / 0.55);
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.35rem;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}

body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
	padding: 0.75rem 0;
	border-bottom: 1px solid hsl(var(--foreground) / 0.1);
	font-size: 14px;
	color: hsl(var(--foreground) / 0.8);
	text-align: left;
	overflow-wrap: break-word;
}

body.theme-thankyou-page .woocommerce-order-details tfoot th {
	text-align: left;
}

body.theme-thankyou-page .woocommerce-order-details tfoot td {
	text-align: right;
}

body.theme-thankyou-page .woocommerce-customer-details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 2rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	border: 1px solid hsl(var(--foreground) / 0.1);
	border-radius: calc(var(--radius, 0.75rem) * 2);
	padding: 1.5rem;
	font-style: normal;
	background-color: hsl(var(--ivory));
	line-height: 1.8;
}

/* -------------------------------------------------------------------------
 * WordPress core output that has no source equivalent
 * ---------------------------------------------------------------------- */
.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 {
	background-color: hsl(var(--ivory));
	border-radius: 3px;
	box-shadow: 0 0 2px 2px hsl(var(--foreground) / 0.6);
	clip: auto !important;
	clip-path: none;
	color: hsl(var(--primary));
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.entry-content img,
.entry-content video,
.entry-content iframe {
	max-width: 100%;
	height: auto;
}

.alignleft {
	float: left;
	margin: 0 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 12px;
	color: hsl(var(--muted-foreground));
	margin-top: 0.5rem;
}

/* Password-protected and search forms use theme inputs. */
.post-password-form input[type="password"],
.search-form input[type="search"] {
	height: 3rem;
	width: 100%;
	border-radius: calc(var(--radius, 0.75rem) - 2px);
	border: 1px solid hsl(var(--foreground) / 0.15);
	background-color: hsl(var(--ivory));
	padding: 0 1rem;
	font-size: 14px;
	color: hsl(var(--foreground));
}

.post-password-form input[type="submit"] {
	height: 3rem;
	padding: 0 1.75rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--primary));
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-size: 14px;
	font-weight: 500;
}

/* -------------------------------------------------------------------------
 * My Account (classic shortcode output)
 * ---------------------------------------------------------------------- */
.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@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;
	border: 1px solid hsl(var(--foreground) / 0.1);
	border-radius: calc(var(--radius, 0.75rem) * 2);
	overflow: hidden;
	background-color: hsl(var(--ivory));
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	border-bottom: 1px solid hsl(var(--foreground) / 0.08);
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
	border-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.85rem 1.25rem;
	font-size: 14px;
	color: hsl(var(--foreground) / 0.75);
	text-decoration: none;
	transition: color 200ms ease, background-color 200ms ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	color: hsl(var(--primary));
	background-color: hsl(var(--foreground) / 0.03);
}

.woocommerce-account .woocommerce-MyAccount-content {
	min-width: 0;
	font-size: 14px;
	line-height: 1.7;
	color: hsl(var(--foreground) / 0.8);
}

/* -------------------------------------------------------------------------
 * Form inputs generated by WooCommerce (no source equivalent)
 * ---------------------------------------------------------------------- */
.woocommerce form .form-row label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: hsl(var(--foreground) / 0.55);
	font-weight: 400;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	height: 3rem;
	width: 100%;
	border-radius: calc(var(--radius, 0.75rem) - 2px);
	border: 1px solid hsl(var(--foreground) / 0.15);
	background-color: hsl(var(--ivory));
	padding: 0 1rem;
	font-family: 'Helvetica Neue', Helvetica, 'Geist', system-ui, sans-serif;
	font-size: 14px;
	color: hsl(var(--foreground));
}

.woocommerce form .form-row textarea {
	height: auto;
	min-height: 8rem;
	padding: 0.75rem 1rem;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	border-color: hsl(var(--primary));
	outline: none;
}

/* -------------------------------------------------------------------------
 * Quantity input cosmetics (match Lovable: min 44px number well)
 * ---------------------------------------------------------------------- */
.theme-quantity-wrapper {
	display: inline-flex;
	align-items: center;
	border: 1px solid hsl(var(--foreground) / 0.2);
	border-radius: 9999px;
}

.theme-qty-value,
.single-product .theme-quantity-wrapper > span,
.single-product [data-qty-input] {
	min-width: 44px;
}

input[type="number"].theme-qty-input,
input[type="number"][data-qty-input] {
	appearance: textfield;
	-moz-appearance: textfield;
	width: 2.75rem;
	min-width: 44px;
	height: auto;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	line-height: 1.25;
	color: inherit;
}

input[type="number"].theme-qty-input::-webkit-outer-spin-button,
input[type="number"].theme-qty-input::-webkit-inner-spin-button,
input[type="number"][data-qty-input]::-webkit-outer-spin-button,
input[type="number"][data-qty-input]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Cart badge hides at zero, matching the source. */
.theme-cart-count:empty {
	display: none;
}

/* WooCommerce loop wrapper classes carry no list styling of their own. */
.woocommerce ul.products,
ul.products {
	list-style: none;
	margin: 0;
	padding: 0;
}
