/* ---------------------------------------------------------------------------
   Functional layer and styling for markup that has no design equivalent
   (WooCommerce output, WordPress output, theme-only hooks).
   --------------------------------------------------------------------------- */

[hidden] {
	display: none !important;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

body.theme-modal-open {
	overflow: hidden;
}

/* WordPress admin bar: keep the fixed header below the toolbar when logged in. */
body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/* Pointer cursor on interactive controls -------------------------------- */
a[href],
button:not(:disabled),
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled),
select,
summary,
label[for],
[data-cart-open],
[data-menu-toggle],
[data-contact-open],
[data-faq-tab],
[data-lightbox-open],
[data-dialog-close],
[data-accordion-toggle],
.theme-nav-list a,
.theme-logo-link,
.cursor-pointer {
	cursor: pointer;
}

.duration-\[1\.2s\] {
	transition-duration: 1.2s;
}

/* Reveal on scroll ------------------------------------------------------- */
.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[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal-item[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal-item[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal-item[data-reveal-delay="4"] { transition-delay: 0.4s; }
.reveal-item[data-reveal-delay="5"] { transition-delay: 0.5s; }
.reveal-item[data-reveal-delay="6"] { transition-delay: 0.6s; }

.reveal-item.is-visible {
	opacity: 1;
	transform: none;
}

.reveal-card {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.6s cubic-bezier(0.25, 0.4, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.reveal-card.is-visible {
	opacity: 1;
	transform: none;
}

body.is-customizer .reveal-item,
body.is-customizer .reveal-card,
body.is-customizer .theme-badge-pop {
	opacity: 1 !important;
	transform: none !important;
}

/* Hero entrance ---------------------------------------------------------- */
.hero-in {
	opacity: 0;
	animation: themeHeroIn 0.6s cubic-bezier(0.25, 0.4, 0.25, 1) forwards;
}

.hero-in-1 { --hero-shift: 22px; animation-delay: 0s; }
.hero-in-2 { --hero-shift: 16px; animation-delay: 0.08s; }
.hero-in-3 { --hero-shift: 14px; animation-delay: 0.16s; }

@keyframes themeHeroIn {
	from {
		opacity: 0;
		transform: translateY(var(--hero-shift, 20px));
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero-cta {
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, color 0.2s ease;
}

.hero-cta:hover {
	transform: scale(1.04) translateY(-2px);
}

.hero-cta:active {
	transform: scale(0.96);
}

.animate-bounce-y {
	display: inline-flex;
	animation: themeBounceY 1.6s ease-in-out infinite;
}

@keyframes themeBounceY {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(3px); }
}

.theme-cat-circle {
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-cat-track {
	-webkit-overflow-scrolling: touch;
	scroll-padding-inline: 0.25rem;
	overscroll-behavior-x: contain;
}

.theme-cat-track::-webkit-scrollbar {
	height: 6px;
}

.theme-cat-track::-webkit-scrollbar-thumb {
	border-radius: 9999px;
	background: hsl(var(--border));
}

.theme-cat-circle:hover {
	transform: translateY(-4px);
}

.theme-cat-circle:active {
	transform: scale(0.96);
}

/* Scroll progress -------------------------------------------------------- */
.scroll-progress {
	transform: scaleX(0);
}

/* Page loader ------------------------------------------------------------ */
.theme-page-loader {
	transition: opacity 0.6s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-page-loader.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.theme-loader-ring {
	animation: themeLoaderTilt 2.4s ease-in-out infinite;
}

@keyframes themeLoaderTilt {
	0%, 100% { transform: rotate(0deg); }
	25% { transform: rotate(8deg); }
	75% { transform: rotate(-8deg); }
}

.theme-loader-bar {
	animation: themeLoaderSweep 1.2s ease-in-out infinite;
}

@keyframes themeLoaderSweep {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

/* Media loading ---------------------------------------------------------- */
.theme-parallax-img,
.theme-reveal-image-img {
	will-change: transform;
}

.theme-parallax-img {
	transform: scale(1.05);
}

.theme-reveal-image-img {
	transition: opacity 0.7s ease-out, filter 0.7s ease-out, transform 0.7s ease-out;
}

/* Badge pop -------------------------------------------------------------- */
.theme-badge-pop {
	opacity: 0;
	transform: scale(0.9);
	transition: opacity 0.6s ease 0.25s, transform 0.6s ease 0.25s;
}

.reveal-item.is-visible .theme-badge-pop {
	opacity: 1;
	transform: scale(1);
}

.theme-success-pop {
	animation: themePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes themePop {
	from { transform: scale(0); }
	to { transform: scale(1); }
}

/* CTA card --------------------------------------------------------------- */
.theme-cta-card {
	background: linear-gradient(
		135deg,
		hsl(var(--background) / 0.96) 0%,
		hsl(var(--secondary) / 0.92) 55%,
		hsl(var(--accent) / 0.28) 100%
	);
}

/* Navigation ------------------------------------------------------------- */
.theme-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.theme-nav-list li {
	list-style: none;
}

.theme-logo-link {
	text-decoration: none;
}

.site-logo-img {
	height: var(--logo-height) !important;
	width: auto !important;
	display: block;
}

.site-logo-text {
	line-height: var(--logo-height);
	display: block;
}

/* FAQ -------------------------------------------------------------------- */
.theme-faq-tabs {
	scrollbar-width: none;
}

.theme-faq-tabs::-webkit-scrollbar {
	display: none;
}

.faq-answer {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer.is-open {
	opacity: 1;
}

.faq-cat-panel.is-active {
	animation: themeFadeUp 0.25s ease both;
}

@keyframes themeFadeUp {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Price filter ----------------------------------------------------------- */
.theme-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);
}

.theme-price-panel.is-open {
	max-height: 12rem;
	opacity: 1;
}

.price-range-wrapper {
	position: relative;
	height: 1.25rem;
}

.range-track-bg,
.range-track-fill {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	height: 8px;
	pointer-events: none;
}

.range-track-bg {
	left: 0;
	right: 0;
}

.range-input {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	height: 20px;
	margin: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: none;
}

.range-input:focus {
	outline: none;
}

.range-input::-webkit-slider-runnable-track {
	height: 20px;
	background: transparent;
	border: 0;
}

.range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 20px;
	height: 20px;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
}

.range-input::-moz-range-track {
	height: 20px;
	background: transparent;
	border: 0;
}

.range-input::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
}

.range-input:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 4px hsl(var(--ring) / 0.3);
}

.range-input:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 4px hsl(var(--ring) / 0.3);
}

.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

/* Product cards ---------------------------------------------------------- */
.theme-product-card-wrap {
	position: relative;
}

.theme-product-card-wrap .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: auto;
}

.theme-product-card-wrap [data-shimmer] {
	pointer-events: none;
}

.theme-product-card-wrap img {
	pointer-events: none;
}

.theme-card-add {
	z-index: 3;
	pointer-events: auto;
}

.theme-product-grid {
	align-items: stretch;
}

.theme-product-grid > * {
	min-width: 0;
}

@media (min-width: 768px) {
	.theme-featured-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.theme-services-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* 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-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.single-product .theme-add-to-cart-area--stacked {
	flex-direction: column;
}

.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;
}

.theme-quantity-wrapper .theme-qty-input {
	width: 44px;
	min-width: 44px;
	padding: 0.5rem 0.25rem;
	text-align: center;
	background: transparent;
	border: 0;
	font-family: var(--font-body);
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: hsl(var(--foreground));
	-moz-appearance: textfield;
	appearance: textfield;
}

.theme-quantity-wrapper .theme-qty-input:focus {
	outline: none;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.theme-product-description p {
	margin: 0 0 1rem;
}

.theme-product-description ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.theme-product-description li {
	display: flex;
	align-items: flex-start;
	font-size: 15px;
	line-height: 1.625;
	color: hsl(var(--muted-foreground));
}

.theme-product-description li::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 9999px;
	background: hsl(var(--foreground));
	margin: 0.5rem 0.75rem 0 0;
	flex-shrink: 0;
}

/* Variations ------------------------------------------------------------- */
.single-product .variations {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5rem;
}

.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 td.label {
	display: none;
}

.theme-attr-select-hidden {
	display: none !important;
}

.theme-attr-pill.is-selected {
	background: hsl(var(--foreground));
	color: hsl(var(--background));
	border-color: hsl(var(--foreground));
}

/* Buttons ---------------------------------------------------------------- */
.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;
}

.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;
}

.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;
}

/* Cart drawer ------------------------------------------------------------ */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: hsl(var(--foreground) / 0.2);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
}

#theme-cart-drawer {
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.25, 0.4, 0.25, 1);
}

body.cart-open #theme-cart-drawer {
	transform: translateX(0);
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

.theme-cart-count:empty {
	display: none;
}

/* Contact modal ---------------------------------------------------------- */
#theme-contact-modal [data-dialog-overlay] {
	opacity: 0;
	transition: opacity 0.2s ease;
}

#theme-contact-modal .theme-dialog {
	opacity: 0;
	transform: translate(-50%, -48%) scale(0.96);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

#theme-contact-modal:not([hidden]) [data-dialog-overlay] {
	opacity: 1;
}

#theme-contact-modal .theme-dialog[data-state="open"] {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* WooCommerce markup without a design equivalent ------------------------- */
.woocommerce-Price-amount {
	font: inherit;
	color: inherit;
}

.price del {
	opacity: 0.5;
	margin-right: 0.35rem;
}

.price ins {
	text-decoration: none;
}

.woocommerce-notices-wrapper {
	width: 100%;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	display: block;
	margin: 0 0 1rem;
	padding: 1rem 1.25rem;
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 2px);
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-size: 0.875rem;
	line-height: 1.5;
}

.woocommerce-error {
	border-color: hsl(var(--destructive));
	color: hsl(var(--destructive));
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	margin-left: 0.5rem;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

.page-title {
	max-width: 100%;
}

/* Checkout block --------------------------------------------------------- */
body.woocommerce-checkout .site-main {
	padding-top: calc(var(--header-h) + 1.5rem);
	padding-bottom: 4rem;
}

body.woocommerce-checkout .wc-block-checkout {
	display: block;
}

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-blocks-components-select__select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	border-color: hsl(var(--border)) !important;
	border-radius: calc(var(--radius) - 4px) !important;
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--foreground)) !important;
	font-family: var(--font-body) !important;
	font-size: 16px !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-textarea textarea:focus {
	border-color: hsl(var(--ring)) !important;
	outline: 2px solid hsl(var(--ring) / 0.35) !important;
	outline-offset: 0 !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button:not(.is-link) {
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border-radius: 9999px !important;
	font-family: var(--font-body) !important;
	font-weight: 600 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--secondary)) !important;
	border-radius: var(--radius) !important;
	padding: 2rem !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;
	text-transform: uppercase !important;
	letter-spacing: 0 !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: calc(var(--radius) - 2px) !important;
	font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-cart-items {
	font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout {
	max-width: 100%;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2rem);
		align-items: start;
	}

	body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout.is-large > .wc-block-components-notice-banner,
	body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout.is-large > .wc-block-components-notices {
		grid-column: 1 / -1;
	}
}

/* Cart, account and thank you -------------------------------------------- */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
body.theme-thankyou-page .site-main {
	padding-top: 0;
	padding-bottom: 4rem;
}

body.woocommerce-cart .page-title,
body.woocommerce-account .page-title,
body.theme-thankyou-page .page-title {
	padding-left: 0;
	padding-right: 0;
}

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 h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0;
	padding: 0 0 1rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
	list-style: none;
	margin: 0 0 2rem;
	padding: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	background: hsl(var(--secondary));
	border-radius: var(--radius);
}

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	font-size: 0.875rem;
	border: 0;
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	font-family: var(--font-display);
	font-size: 1.125rem;
	text-transform: uppercase;
	margin-top: 0.25rem;
}

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));
	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;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item,
	.reveal-card,
	.theme-badge-pop,
	.hero-in {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
		transition: none !important;
	}

	.theme-loader-ring,
	.theme-loader-bar,
	.animate-bounce-y {
		animation: none !important;
	}
}
