/* Reclamation Woodworks theme additions.
   Only styles for generated markup without a source equivalent,
   functional states, and motion hooks live here. */

/* -------------------------------------------------------------------------
 * Identity
 * ---------------------------------------------------------------------- */
.site-logo-img {
	height: var(--logo-height, 77px) !important;
	width: auto !important;
	display: block;
}
.site-footer-logo {
	height: 90px !important;
}
@media (max-width: 1023px) {
	.site-logo-img {
		height: calc(var(--logo-height, 77px) * 0.83) !important;
	}
}
.site-logo-text {
	line-height: var(--logo-height, 77px);
	display: block;
}

.col-span-full {
	grid-column: 1 / -1;
}

/* -------------------------------------------------------------------------
 * Motion
 * ---------------------------------------------------------------------- */
@keyframes themeFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes themeFadeUp {
	from { opacity: 0; transform: translateY(40px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes themePageIn {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes themeReveal {
	from { opacity: 0; transform: translateY(28px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes themeRevealX {
	from { opacity: 0; transform: translateX(-30px); }
	to { opacity: 1; transform: translateX(0); }
}

.page-transition {
	animation: themePageIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-anim-1 {
	animation: themeFadeIn 0.3s ease-out both;
}
.hero-anim-2 {
	animation: themeFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-anim-3 {
	animation: themeFadeIn 0.3s ease-out 0.4s both;
}

body.js-reveal .reveal-item {
	opacity: 0;
	transform: translateY(28px);
}
body.js-reveal .reveal-item.is-visible {
	opacity: 1;
	transform: none;
	animation: themeReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
body.js-reveal .reveal-x-item {
	opacity: 0;
	transform: translateX(-30px);
}
body.js-reveal .reveal-x-item.is-visible {
	opacity: 1;
	transform: none;
	animation: themeRevealX 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-delay-2 { animation-delay: 0.16s; }
.reveal-delay-3 { animation-delay: 0.24s; }

body.is-customizer .reveal-item,
body.is-customizer .reveal-x-item,
.reveal-item.is-visible,
.reveal-x-item.is-visible {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.page-transition,
	.hero-anim-1,
	.hero-anim-2,
	.hero-anim-3,
	body.js-reveal .reveal-item,
	body.js-reveal .reveal-x-item {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* -------------------------------------------------------------------------
 * Cart drawer / overlay
 * ---------------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background: hsl(var(--foreground) / 0.3);
	z-index: 50;
	display: none;
}
body.cart-open #theme-cart-overlay {
	display: block;
	animation: themeFadeIn 0.6s var(--transition-smooth) forwards;
}
#theme-cart-drawer {
	display: none;
}
body.cart-open #theme-cart-drawer {
	display: flex;
}
#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}
.theme-cart-count:empty {
	display: none;
}

/* -------------------------------------------------------------------------
 * Quantity controls and add-to-cart states
 * ---------------------------------------------------------------------- */
.theme-qty-input {
	-moz-appearance: textfield;
	appearance: textfield;
	outline: none;
	box-shadow: none;
	font: inherit;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.theme-quantity-wrapper .theme-qty-input {
	min-width: 2rem;
}

.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;
}

/* -------------------------------------------------------------------------
 * WooCommerce generated markup
 * ---------------------------------------------------------------------- */
.woocommerce-Price-amount {
	font: inherit;
	color: inherit;
	white-space: nowrap;
}
.price del {
	opacity: 0.6;
	font-weight: 400;
	margin-right: 0.25rem;
}
.price ins {
	text-decoration: none;
}
.woocommerce-Price-currencySymbol {
	font: inherit;
}

.woocommerce-notices-wrapper {
	margin-bottom: 1.5rem;
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	padding: 1rem 1.25rem;
	border-radius: var(--radius);
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	font-size: 0.875rem;
	margin: 0 0 1rem;
}
.woocommerce-error {
	border-color: hsl(var(--destructive));
	color: hsl(var(--destructive));
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}
.woocommerce-error li {
	margin: 0;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info,
.single-product .woocommerce-error {
	max-width: 100%;
}

/* Single product layout safety */
.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 .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 */
.single-product .variations {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1rem;
}
.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}
.single-product .variations tbody td.label {
	padding-bottom: 0.25rem;
}
.single-product .variations tbody td.value {
	padding-top: 0;
}
.single-product .variations label {
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25;
	display: block;
}
.single-product .variations select {
	width: 100%;
	height: 2.5rem;
	border: 1px solid hsl(var(--input));
	border-radius: calc(var(--radius) - 2px);
	background: hsl(var(--background));
	color: hsl(var(--foreground));
	padding: 0 0.75rem;
	font-size: 0.875rem;
}
.woocommerce-variation-price {
	margin: 1rem 0;
	font-size: 1.5rem;
	color: hsl(var(--primary));
	font-weight: 600;
}
.woocommerce-variation-availability {
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
}
.single_variation_wrap {
	display: block;
}

/* Product thumbnails generated images */
.theme-product-thumbnails img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Star ratings / sale flash if plugins render them */
.woocommerce-product-rating,
.woocommerce-review-link {
	display: none;
}

/* -------------------------------------------------------------------------
 * Cart page width parity
 * ---------------------------------------------------------------------- */
.theme-cart-page {
	min-width: 0;
}
.woocommerce-cart .entry-content,
.woocommerce-account .entry-content {
	max-width: 100%;
}
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	min-width: 0;
}

/* -------------------------------------------------------------------------
 * Checkout block
 * ---------------------------------------------------------------------- */
body.woocommerce-checkout .site-main {
	padding-bottom: 4rem;
}
body.woocommerce-checkout .entry-content {
	max-width: 100%;
}
body.woocommerce-checkout .wc-block-checkout:not(.wc-block-components-sidebar-layout) {
	display: block;
}
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout {
		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;
	margin-bottom: 1.5rem;
	border-radius: var(--radius);
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	color: hsl(var(--foreground));
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--card));
	border-radius: var(--radius);
	padding: 1.5rem;
}
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,
body.woocommerce-checkout .wc-blocks-components-select__select {
	border: 1px solid hsl(var(--input)) !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: 0.875rem !important;
}
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,
body.woocommerce-checkout .wc-blocks-components-select__select:focus {
	outline: none !important;
	box-shadow: 0 0 0 2px hsl(var(--ring)) !important;
	border-color: hsl(var(--ring)) !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border-radius: calc(var(--radius) - 2px) !important;
	font-family: var(--font-body) !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	padding: 0.75rem 1rem !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background: hsl(var(--primary) / 0.9) !important;
}
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title,
body.woocommerce-checkout h2 {
	font-family: var(--font-display) !important;
	font-weight: 600 !important;
}
body.woocommerce-checkout .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-components-order-summary-item__description {
	font-family: var(--font-body) !important;
}
body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-order-summary {
	border-color: hsl(var(--border)) !important;
}
body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-item__value {
	color: hsl(var(--foreground)) !important;
}
body.woocommerce-checkout .wc-block-components-button:not(.wc-block-components-checkout-place-order-button) {
	border-radius: calc(var(--radius) - 2px) !important;
}
body.woocommerce-checkout .page-title {
	max-width: none;
}

/* -------------------------------------------------------------------------
 * Thank you page
 * ---------------------------------------------------------------------- */
body.theme-thankyou-page {
	overflow-x: hidden;
}
body.theme-thankyou-page .woocommerce-order {
	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.5rem;
	font-weight: 600;
	padding: 0 0 1rem;
}
body.theme-thankyou-page .woocommerce-order-overview {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding: 1.5rem;
	margin: 0 0 1.5rem;
	background: hsl(var(--card));
	border-radius: var(--radius);
}
body.theme-thankyou-page .woocommerce-order-overview li {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: hsl(var(--muted-foreground));
}
body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.9375rem;
	text-transform: none;
	letter-spacing: 0;
	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 th,
body.theme-thankyou-page .woocommerce-order-details td {
	padding: 0.75rem 0;
	border-bottom: 1px solid hsl(var(--border));
	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;
	font-style: normal;
}
body.theme-thankyou-page .woocommerce-order .woocommerce-thankyou-order-received {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
}

/* -------------------------------------------------------------------------
 * Account / forms
 * ---------------------------------------------------------------------- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-Input {
	height: 2.5rem;
	border: 1px solid hsl(var(--input));
	border-radius: calc(var(--radius) - 2px);
	background: hsl(var(--background));
	color: hsl(var(--foreground));
	padding: 0 0.75rem;
	font-size: 0.875rem;
}
.woocommerce form .form-row label {
	font-size: 0.875rem;
	font-weight: 500;
}
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 0.75rem;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
}

/* -------------------------------------------------------------------------
 * Accessibility helpers
 * ---------------------------------------------------------------------- */
.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;
}

/* Add-to-cart toast (matches the source's bottom-right sonner toast) */
.theme-toast-region {
        position: fixed;
        z-index: 60;
        right: 1rem;
        bottom: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        pointer-events: none;
}
.theme-toast {
        width: 356px;
        max-width: calc(100vw - 2rem);
        padding: 1rem;
        border: 1px solid hsl(var(--border));
        border-radius: var(--radius);
        background: hsl(var(--background));
        color: hsl(var(--foreground));
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
        font-family: var(--font-body);
        font-size: 0.875rem;
        line-height: 1.25rem;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.25s ease, transform 0.25s ease;
}
.theme-toast.is-visible {
        opacity: 1;
        transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
        .theme-toast {
                transition: none;
        }
}

@media (max-width: 767px) {
        body.woocommerce-checkout .wc-block-checkout__main {
                order: 1 !important;
        }
        body.woocommerce-checkout .wc-block-checkout__sidebar {
                order: 2 !important;
        }
}
