/* -------------------------------------------------------------------------
 * Life4Life Legacy — theme layer
 * Only markup without a source equivalent and functional state rules live here.
 * ---------------------------------------------------------------------- */

:root {
	/* Restored source tokens used by the footer markup. */
	--surface-deep: 270 30% 14%;
	--surface-deep-foreground: 36 40% 97%;
	--shadow-elevated: 0 12px 45px -12px hsl(24 14% 18% / 0.18);
}

.shadow-elevated {
	box-shadow: var(--shadow-elevated);
}

/* -------------------------------------------------------------------------
 * Admin bar: overflow-x: clip on html collapses WP's margin-top and leaves
 * a blank strip. Keep html visible so core offsets the document, then park
 * sticky chrome under the toolbar. Do not add extra announcement margin.
 * ---------------------------------------------------------------------- */

html {
	overflow-x: visible;
}

body {
	overflow-x: clip;
}

#wpadminbar {
	z-index: 100000;
}

body.admin-bar #site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar #site-header {
		top: 46px;
	}
}

@media (min-width: 1024px) {
	body.admin-bar .theme-product-info {
		top: calc(7rem + var(--wp-admin--admin-bar--height, 32px));
	}
}

/* -------------------------------------------------------------------------
 * Pointer cursor on every clickable control
 * ---------------------------------------------------------------------- */

a[href],
button:not(:disabled):not([aria-disabled="true"]),
[role="button"]:not([aria-disabled="true"]),
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled),
input[type="image"]:not(:disabled),
label[for],
select,
summary,
[data-contact-open],
[data-contact-close],
[data-cart-open],
[data-cart-close],
[data-cart-remove],
[data-cart-empty],
[data-cart-qty-update],
[data-menu-toggle],
[data-announcement-close],
[data-shop-search],
[data-shop-more],
[data-category-tile],
[data-category-pill],
[data-faq-toggle],
[data-price-toggle],
[data-accordion-toggle],
[data-nav-anchor],
.theme-product-card,
.theme-card-link,
.theme-product-card__quick-add,
.theme-attr-pill,
.theme-simple-attr-pill,
.theme-qty-minus,
.theme-qty-plus,
.add_to_cart_button,
.single_add_to_cart_button:not(:disabled):not(.disabled),
.link-underline,
[onclick],
[type="button"],
[type="submit"],
[type="reset"],
.theme-media-select-btn,
.theme-media-remove-btn {
	cursor: pointer;
}

/* -------------------------------------------------------------------------
 * Motion: source framer-motion variants
 * ---------------------------------------------------------------------- */

@keyframes themeFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes themeFadeUp {
	from { opacity: 0; transform: translateY(22px); }
	to { opacity: 1; transform: translateY(0); }
}

.hero-image-fade {
	animation: themeFadeIn 1.1s cubic-bezier(0.25, 0.4, 0.25, 1) both;
}

.hero-fade {
	animation: themeFadeUp 0.9s cubic-bezier(0.25, 0.4, 0.25, 1) both;
}

.hero-fade--1 { animation-duration: 0.7s; animation-delay: 0.25s; }
.hero-fade--2 { animation-duration: 0.9s; animation-delay: 0.35s; }
.hero-fade--3 { animation-duration: 0.7s; animation-delay: 0.55s; }
.hero-fade--4 { animation-duration: 0.65s; animation-delay: 0.75s; }

.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);
}

.reveal-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

body.is-customizer .reveal-item,
.no-js .reveal-item {
	opacity: 1;
	transform: none;
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item,
	.hero-fade,
	.hero-image-fade {
		opacity: 1;
		transform: none;
		animation: none;
		transition: none;
	}
}

.theme-tile-img {
	transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.group:hover .theme-tile-img {
	transform: scale(1.05);
}

/* -------------------------------------------------------------------------
 * Product cards (Pattern A hit-area overlay)
 * ---------------------------------------------------------------------- */

.theme-product-card {
	position: relative;
	display: block;
	height: 100%;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-product-card:hover {
	transform: translateY(-4px);
}

.theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: auto;
}

.theme-product-card__media {
	position: relative;
	overflow: hidden;
}

.theme-product-card__img {
	transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-product-card:hover .theme-product-card__img {
	transform: scale(1.04);
}

.theme-product-card__quick-add {
	position: absolute;
	bottom: 0.75rem;
	right: 0.75rem;
	z-index: 3;
	pointer-events: auto;
}

.theme-product-card__media > img {
	display: block;
}

.theme-product-card .woocommerce-Price-amount {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.theme-product-card del .woocommerce-Price-amount {
	opacity: 0.6;
	text-decoration: line-through;
}

/* -------------------------------------------------------------------------
 * Quantity control
 * ---------------------------------------------------------------------- */

.theme-qty-input {
	width: 44px;
	min-width: 44px;
	text-align: center;
	border: 0;
	background: transparent;
	padding: 0.5rem 1rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: inherit;
	appearance: textfield;
	-moz-appearance: textfield;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.theme-qty-input:focus {
	outline: none;
}

.theme-add-to-cart-area {
	display: flex;
	flex-direction: column;
}

/* -------------------------------------------------------------------------
 * Accordions, FAQ, price filter
 * ---------------------------------------------------------------------- */

.accordion-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);
}

.accordion-panel.is-open {
	max-height: 1200px;
	opacity: 1;
}

.faq-panel {
	max-height: 0;
	opacity: 0;
	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);
}

.faq-panel.is-open {
	max-height: 1000px;
	opacity: 1;
}

.price-panel {
	max-height: 0;
	opacity: 0;
	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);
}

.price-panel.is-open {
	max-height: 260px;
	opacity: 1;
}

/* Dual-handle range */
.price-range-wrapper {
	position: relative;
	height: 1.5rem;
}

.range-track-bg,
.range-track-fill {
	position: absolute;
	height: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 9999px;
	pointer-events: none;
}

.range-track-bg {
	left: 0;
	right: 0;
	background: hsl(var(--secondary));
}

.range-track-fill {
	background: hsl(var(--primary));
}

.range-input {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
}

.range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
}

.range-input::-moz-range-thumb {
	pointer-events: auto;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
}

.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

/* -------------------------------------------------------------------------
 * Cart drawer + overlay
 * ---------------------------------------------------------------------- */

#theme-cart-drawer {
	display: flex;
	transform: translateX(100%);
	visibility: hidden;
	pointer-events: none;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
}

body.cart-open #theme-cart-drawer {
	transform: translateX(0);
	visibility: visible;
	pointer-events: auto;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-cart-overlay {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 50;
	background: hsl(var(--foreground) / 0.2);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.cart-open {
	overflow: hidden;
}

#theme-cart-drawer.is-updating {
	pointer-events: none;
}

.theme-cart-count:empty {
	display: none;
}

.cart-item-meta dl {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.cart-item-meta dt {
	font-weight: 600;
}

.cart-item-meta dd {
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Contact modal
 * ---------------------------------------------------------------------- */

#theme-contact-modal[hidden] {
	display: none;
}

body.modal-open {
	overflow: hidden;
}

/* -------------------------------------------------------------------------
 * Swatches
 * ---------------------------------------------------------------------- */

.theme-swatch {
	background-color: hsl(var(--border));
}

.theme-swatch--purple { background-color: #8b5cf6; }
.theme-swatch--lavender { background-color: #c4b5fd; }
.theme-swatch--plum { background-color: #7e3f8f; }
.theme-swatch--black { background-color: #111111; }
.theme-swatch--white { background-color: #ffffff; }
.theme-swatch--pink { background-color: #ec4899; }
.theme-swatch--gold { background-color: #c9a227; }
.theme-swatch--silver { background-color: #c0c0c0; }
.theme-swatch--rose { background-color: #e11d48; }
.theme-swatch--cream { background-color: #f5f0e6; }

/* -------------------------------------------------------------------------
 * WooCommerce: global generated markup
 * ---------------------------------------------------------------------- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 2px);
	background: hsl(var(--secondary));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-size: 0.95rem;
	line-height: 1.5;
}

.woocommerce-error {
	background: hsl(var(--background));
	border-color: hsl(var(--destructive));
	color: hsl(var(--destructive));
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	margin-left: 0.75rem;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

a.added_to_cart.wc-forward,
.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;
}

/* 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 {
	display: none !important;
}

/* -------------------------------------------------------------------------
 * WooCommerce: single product
 * ---------------------------------------------------------------------- */

.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 .single_add_to_cart_button,
.single-product .theme-add-to-cart-area .add_to_cart_button,
.single-product .theme-add-to-cart-area .single_add_to_cart_button {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	flex: 1 1 auto;
	min-width: 160px;
}

.theme-title-emoji {
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 0.82em;
	letter-spacing: 0;
	line-height: 1;
	display: inline-block;
	vertical-align: -0.08em;
	margin-right: 0.12em;
}

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
}

.single-product .variations.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;
}

.theme-variations-table {
	display: none !important;
}

.theme-attr-select-hidden {
	display: none !important;
}

.single-product .single_variation_wrap {
	margin-top: 0.5rem;
}

.single-product .woocommerce-variation-price {
	font-family: var(--font-body);
	font-size: 1.125rem;
	margin-bottom: 1rem;
}

.single-product .woocommerce-variation-availability {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	margin-bottom: 0.75rem;
}

.single-product .woocommerce-variation-description {
	font-family: var(--font-body);
	color: hsl(var(--muted-foreground));
	margin-bottom: 0.75rem;
}

.single-product .woocommerce-variation-add-to-cart {
	display: block;
}

/* -------------------------------------------------------------------------
 * WooCommerce: archive / pagination
 * ---------------------------------------------------------------------- */

.woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--font-body);
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 2px);
	color: hsl(var(--foreground));
	text-decoration: none;
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover {
	background: hsl(var(--foreground));
	color: hsl(var(--background));
	border-color: hsl(var(--foreground));
}

/* -------------------------------------------------------------------------
 * WooCommerce: checkout block
 * ---------------------------------------------------------------------- */

body.woocommerce-checkout .entry-content {
	max-width: none;
}

body.woocommerce-checkout .wc-block-checkout {
	display: block;
	max-width: none;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout.is-large,
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-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-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: calc(var(--radius) - 2px) !important;
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--foreground)) !important;
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	padding: revert;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus {
	border-color: hsl(var(--primary)) !important;
	outline: none !important;
	box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2) !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--butter));
	border-radius: var(--radius);
	padding: 2rem;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title {
	font-family: var(--font-display);
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border-radius: calc(var(--radius) - 2px) !important;
	font-family: var(--font-display) !important;
	font-weight: 500 !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--primary) / 0.9) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: calc(var(--radius) - 2px);
	font-family: var(--font-body);
}

body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-order-summary {
	font-family: var(--font-body);
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	order: initial;
}

body.woocommerce-checkout .wc-block-checkout__main { order: 1; }
body.woocommerce-checkout .wc-block-checkout__sidebar { order: 2; }

body.woocommerce-checkout .site-main {
	padding-bottom: 4rem;
}

/* -------------------------------------------------------------------------
 * Page titles and generic content
 * ---------------------------------------------------------------------- */

.page-title {
	font-family: var(--font-display);
	font-size: 1.875rem;
	line-height: 2.25rem;
	font-weight: 700;
	margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
	.page-title {
		font-size: 2.25rem;
		line-height: 2.5rem;
	}
}

.entry-content {
	font-family: var(--font-body);
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* -------------------------------------------------------------------------
 * WooCommerce: cart, account, order received
 * ---------------------------------------------------------------------- */

body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
	font-family: var(--font-body);
}

body.theme-thankyou-page .woocommerce-order-overview {
	list-style: none;
	margin: 0 0 2rem;
	padding: 1.5rem;
	background: hsl(var(--butter));
	border-radius: var(--radius);
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	font-size: 0.875rem;
	text-transform: none;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	color: hsl(var(--foreground));
	font-weight: 600;
}

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);
	padding: 0 0 1rem 0;
}

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-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;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	font-family: var(--font-body);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: 0.5rem 0;
	color: hsl(var(--foreground));
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	color: hsl(var(--primary));
}

.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-body);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 0.75rem;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 2px);
	background: hsl(var(--background));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	padding: 0.625rem 0.75rem;
}

.woocommerce .button:not(.add_to_cart_button):not(.single_add_to_cart_button),
.woocommerce button.button:not(.add_to_cart_button):not(.single_add_to_cart_button),
.woocommerce a.button:not(.add_to_cart_button):not(.single_add_to_cart_button) {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border-radius: calc(var(--radius) - 2px);
	font-family: var(--font-display);
	font-weight: 500;
	padding: 0.625rem 1.25rem;
	text-decoration: none;
}

.woocommerce .button:not(.add_to_cart_button):not(.single_add_to_cart_button):hover,
.woocommerce button.button:not(.add_to_cart_button):not(.single_add_to_cart_button):hover,
.woocommerce a.button:not(.add_to_cart_button):not(.single_add_to_cart_button):hover {
	background: hsl(var(--primary) / 0.9);
}
