/* ==========================================================================
   Forged Prime — theme styles
   Only WooCommerce/WordPress-generated markup and functional behaviour.
   Everything else comes from the compiled source stylesheet (app.css).
   ========================================================================== */

/* ----------------------------- utilities --------------------------------- */

[hidden] {
	display: none !important;
}

.site-logo-img {
	height: var(--logo-height) !important;
	width: auto !important;
	display: block;
}

.site-logo-text {
	line-height: var(--logo-height);
	display: block;
}

@media (max-width: 767px) {
	.site-logo-img {
		height: min(var(--logo-height), 92px) !important;
	}
}

/* -------------------------- scroll progress bar -------------------------- */

.theme-scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	z-index: 70;
	pointer-events: none;
	background: hsl(var(--accent-bright));
	transform-origin: 0 50%;
	transform: scaleX(0);
}

/* ------------------------------ hero reveal ------------------------------ */

[data-hero-reveal] {
	opacity: 0;
	transform: translateY(24px);
	animation: themeHeroIn 1s cubic-bezier(0, 0, 0.58, 1) 0.4s forwards;
}

@keyframes themeHeroIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	[data-hero-reveal] {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

/* --------------------------- method carousel ----------------------------- */

.theme-service-slide {
	width: min(92vw, 880px);
}

.theme-service-card {
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform, opacity, filter;
}

[data-services-track] {
	transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-services-track].is-instant {
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.theme-service-card,
	[data-services-track] {
		transition: none;
	}
}

/* ---------------------------- scroll reveal ------------------------------ */

.theme-reveal {
	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);
}

.theme-reveal.is-visible,
body.is-customizer .theme-reveal {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.theme-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* --------------------------- process timeline ---------------------------- */

[data-process-fill-x] {
	transform: scaleX(0);
	transform-origin: left center;
}

[data-process-fill-y] {
	transform: scaleY(0);
	transform-origin: top center;
}

[data-step-node] {
	transition: transform 0.5s cubic-bezier(0.25, 0.4, 0.25, 1);
	transform: scale(0.86);
}

[data-step-node-bg] {
	opacity: 0;
	transition: opacity 0.4s linear;
}

[data-step-node-idle] {
	opacity: 1;
	transition: opacity 0.4s linear;
}

[data-step-node-active] {
	opacity: 0;
	transition: opacity 0.4s linear;
}

[data-step-node].is-active {
	transform: scale(1);
}

[data-step-node].is-active [data-step-node-bg],
[data-step-node].is-active [data-step-node-active] {
	opacity: 1;
}

[data-step-node].is-active [data-step-node-idle] {
	opacity: 0;
}

[data-step-image] {
	opacity: 0.55;
	transition: opacity 0.4s linear;
}

[data-step-index].is-active [data-step-image] {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	[data-step-node] {
		transform: none;
	}
	[data-step-node-bg],
	[data-step-node-active] {
		opacity: 1;
	}
	[data-step-node-idle] {
		opacity: 0;
	}
	[data-step-image] {
		opacity: 1;
	}
}

/* ---------------------------- testimonials ------------------------------- */

[data-testimonial-figure] {
	transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

[data-testimonial-figure].is-leaving {
	opacity: 0;
	transform: translateX(-24px);
}

[data-testimonial-figure].is-entering {
	opacity: 0;
	transform: translateX(24px);
}

/* ------------------------- price range filter ---------------------------- */

[data-price-range] {
	position: relative;
}

[data-price-range] .range-input {
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: 20px;
	margin: 0;
	transform: translateY(-50%);
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
}

[data-price-range] .range-input:focus {
	outline: none;
}

[data-price-range] .range-input::-webkit-slider-runnable-track {
	background: transparent;
	border: none;
	height: 20px;
}

[data-price-range] .range-input::-moz-range-track {
	background: transparent;
	border: none;
	height: 20px;
}

[data-price-range] .range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 20px;
	height: 20px;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
}

[data-price-range] .range-input::-moz-range-thumb {
	pointer-events: auto;
	width: 20px;
	height: 20px;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
}

[data-price-range] .range-input--max {
	z-index: 3;
}

[data-price-range] .range-input--min {
	z-index: 4;
}

/* ------------------------------- magnifier ------------------------------- */

[data-zoom-lens] {
	width: 190px;
	height: 190px;
}

[data-zoom-lens] img {
	position: absolute;
	max-width: none;
}

/* -------------------------------- cart ---------------------------------- */

#theme-cart-overlay {
	display: none;
}

body.cart-open #theme-cart-overlay {
	display: block;
}

#theme-cart-drawer {
	display: none;
}

body.cart-open #theme-cart-drawer {
	display: flex;
}

body.cart-open,
body.theme-menu-open {
	overflow: hidden;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

.theme-cart-count:empty {
	display: none;
}

/* Hide the "View cart" link WooCommerce injects after an AJAX add. */
.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 loading spinner; the theme locks the button. */
.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;
}

/* -------------------------- single product ------------------------------- */

.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-product-details {
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.625;
	color: hsl(var(--foreground) / 0.8);
}

.single-product .theme-product-details ul {
	margin: 0;
	padding-left: 1.25rem;
	list-style: disc;
}

.single-product .theme-product-details li {
	margin-top: 0.625rem;
	line-height: 1.625;
}

.single-product .theme-product-details li:first-child {
	margin-top: 0;
}

.single-product .theme-product-details li::marker {
	color: hsl(var(--accent));
}

.single-product .theme-product-description p {
	margin: 0;
}

.single-product .theme-product-description p + p,
.single-product .theme-product-description ul,
.single-product .theme-product-description ol {
	margin-top: 1rem;
}

.single-product .theme-product-description a {
	text-decoration: underline;
}

.single-product .theme-product-contents {
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.625;
	color: hsl(var(--foreground) / 0.8);
}

.single-product .theme-product-contents p {
	margin: 0;
}

.single-product .theme-product-contents p + p {
	margin-top: 0.75rem;
}

.single-product .theme-product-contents ul,
.single-product .theme-product-contents ol {
	margin: 0.75rem 0 0;
	padding-left: 1.25rem;
}

.single-product .theme-product-contents ul {
	list-style: disc;
}

.single-product .theme-product-contents ol {
	list-style: decimal;
}

.single-product .theme-product-contents li {
	margin-top: 0.625rem;
	line-height: 1.625;
}

.single-product .theme-product-contents li::marker {
	color: hsl(var(--accent));
}

/* Quantity + add to cart row */
.theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.theme-quantity-wrapper {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--background));
}

.theme-quantity-wrapper button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	color: hsl(var(--foreground));
	transition: background-color 0.2s ease;
}

.theme-quantity-wrapper button:hover {
	background: hsl(var(--secondary));
}

.theme-quantity-wrapper .theme-qty-input {
	width: 3.25rem;
	border: 0;
	background: transparent;
	text-align: center;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--foreground));
	-moz-appearance: textfield;
}

.theme-quantity-wrapper .theme-qty-input::-webkit-outer-spin-button,
.theme-quantity-wrapper .theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.theme-quantity-wrapper .theme-qty-input:focus {
	outline: none;
}

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

/* WooCommerce base buttons keep the source CTA look; only the disabled state
   and pointer behaviour are enforced here. */
.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;
}

/* Variations: stack label above control without breaking the WC script. */
.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}

.single-product .variations {
	width: 100%;
	margin-bottom: 1rem;
}

.single-product .variations tbody td.label {
	padding-bottom: 0.25rem;
}

.single-product .variations tbody td.value {
	padding-top: 0;
}

.single-product .variations label {
	font-family: var(--font-body);
	font-size: 0.75rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

.single-product .variations select {
	width: 100%;
	height: 2.75rem;
	padding: 0 0.75rem;
	border: 1px solid hsl(var(--border));
	border-radius: 0.375rem;
	background: hsl(var(--background));
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--foreground));
}

.single-product .variations select:focus {
	outline: none;
	border-color: hsl(var(--primary));
}

.single-product .single_variation_wrap {
	margin-top: 1rem;
}

.single-product .woocommerce-variation-price {
	font-family: var(--font-body);
	margin-bottom: 1rem;
}

.single-product .woocommerce-variation-availability p,
.single-product .stock {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
}

.single-product .product {
	display: block;
}

/* Long content safety on the product page. */
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in,
.single-product .theme-product-contents,
.single-product .theme-product-description {
	overflow-wrap: break-word;
	word-break: break-word;
}

/* ------------------------------- notices --------------------------------- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: block;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid hsl(var(--border));
	border-left-width: 3px;
	background: hsl(var(--secondary) / 0.6);
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-size: 0.875rem;
	line-height: 1.6;
	list-style: none;
}

.woocommerce-message {
	border-left-color: hsl(var(--primary));
}

.woocommerce-info {
	border-left-color: hsl(var(--muted-foreground));
}

.woocommerce-error {
	border-left-color: hsl(var(--destructive));
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

.woocommerce-Price-amount,
.woocommerce-Price-currencySymbol {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	font-weight: inherit;
}

/* --------------------------- shop / archive ------------------------------ */

.post-type-archive-product .page-title {
	font-family: var(--font-display);
}

/* ------------------------------- checkout -------------------------------- */

body.woocommerce-checkout .wc-block-checkout {
	display: block;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
		align-items: start;
	}
}

/* The fields column always comes first, the summary second. */
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wp-block-woocommerce-checkout-fields-block,
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-main {
	order: 1;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout > .wp-block-woocommerce-checkout-totals-block,
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-sidebar {
	order: 2;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-main,
body.woocommerce-checkout .wc-block-components-sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 2rem;
}

body.woocommerce-checkout .wc-block-components-notice-banner,
body.woocommerce-checkout .wc-block-components-notices {
	grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 0.875rem;
}

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__title,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-title {
	font-family: var(--font-display);
	font-weight: 500;
	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-block-components-select__select,
body.woocommerce-checkout .wc-blocks-components-select select,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-block-components-country-input select,
body.woocommerce-checkout .wc-block-components-state-input 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 {
	font-family: var(--font-body) !important;
	font-size: 0.875rem !important;
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 0.375rem !important;
	box-shadow: none !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-select__select:focus,
body.woocommerce-checkout .wc-blocks-components-select select:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus,
body.woocommerce-checkout .wc-block-components-country-input select:focus,
body.woocommerce-checkout .wc-block-components-state-input select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus {
	border-color: hsl(var(--primary)) !important;
	outline: none !important;
	box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-select label,
body.woocommerce-checkout .wc-block-components-checkbox label,
body.woocommerce-checkout .wc-block-components-radio-control__label {
	font-family: var(--font-body);
	font-size: 0.8125rem;
	color: hsl(var(--muted-foreground));
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button {
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border: 1px solid hsl(var(--primary)) !important;
	border-radius: 0 !important;
	font-family: var(--font-body) !important;
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase !important;
	height: 3rem;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--foreground)) !important;
	color: hsl(var(--background)) !important;
	border-color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-cart-items-block {
	font-family: var(--font-body);
}

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);
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--font-display);
	font-size: 1.125rem;
}

/* Cart and account blocks inherit the same container width as checkout. */
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
	max-width: none;
}

body.woocommerce-cart .wc-block-cart,
body.woocommerce-account .woocommerce {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button {
	border-radius: 0;
	font-family: var(--font-body);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-size: 0.75rem;
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border: 1px solid hsl(var(--primary));
}

/* ------------------------------ thank you -------------------------------- */

body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order > p {
	margin-bottom: 1.5rem;
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	display: block;
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 500;
	color: hsl(var(--foreground));
	padding: 0 0 1rem 0;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 0 0 2rem;
	padding: 1.5rem;
	list-style: none;
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
}

@media (min-width: 640px) {
	body.theme-thankyou-page .woocommerce-order-overview {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	body.theme-thankyou-page .woocommerce-order-overview {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

body.theme-thankyou-page .woocommerce-order-overview li {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: none;
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
	overflow-wrap: break-word;
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.35rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 500;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-family: var(--font-body);
	font-size: 0.875rem;
}

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

body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-style: normal;
	line-height: 1.7;
}

/* --------------------------- WordPress 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;
}

.page-title {
	margin-bottom: 2rem;
}

.entry-content > * {
	margin-bottom: 1.5rem;
}
