/**
 * Theme styles: functional states and WordPress/WooCommerce markup that has
 * no equivalent in the design.
 */

[hidden] {
	display: none !important;
}

/* -------------------------------------------------------------------------
 * Header logo frame (Customizer height)
 * ---------------------------------------------------------------------- */
.theme-logo-frame {
	height: var(--theme-logo-height, 80px);
	width: var(--theme-logo-width, 172px);
}

@media (min-width: 768px) {
	.theme-logo-frame {
		height: var(--theme-logo-height-md, 96px);
		width: var(--theme-logo-width-md, 190px);
	}
}

/* -------------------------------------------------------------------------
 * Logged-in admin bar (Customizer preview and front end)
 * ---------------------------------------------------------------------- */
body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/* -------------------------------------------------------------------------
 * Pointer cursor on interactive elements
 * ---------------------------------------------------------------------- */
a[href]:not([aria-disabled="true"]),
button:not(:disabled),
summary,
select,
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
label[for],
[data-cart-open],
[data-contact-modal="true"],
[data-theme-footer-cat],
[data-theme-menu-toggle],
[data-theme-load-more],
.theme-cart-button,
.theme-product-thumb,
.theme-card-add,
.theme-qty-minus,
.theme-qty-plus {
	cursor: pointer;
}

/* -------------------------------------------------------------------------
 * Page loader
 * ---------------------------------------------------------------------- */
.theme-page-loader {
	transition: opacity 0.6s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-page-loader > div {
	animation: themeLoaderInner 0.6s cubic-bezier(0.25, 0.4, 0.25, 1) both;
}

@keyframes themeLoaderInner {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.theme-page-loader.theme-loader-hidden {
	opacity: 0;
	pointer-events: none;
}

.theme-loader-palette {
	animation: themePaletteRotate 2.4s ease-in-out infinite;
}

.theme-loader-bar {
	animation: themeLoaderBar 1.2s ease-in-out infinite;
}

@keyframes themePaletteRotate {
	0%,
	100% {
		transform: rotate(0deg);
	}
	25% {
		transform: rotate(8deg);
	}
	75% {
		transform: rotate(-8deg);
	}
}

@keyframes themeLoaderBar {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(200%);
	}
}

/* -------------------------------------------------------------------------
 * Entrance animations
 * ---------------------------------------------------------------------- */
.theme-hero-anim {
	opacity: 0;
	animation: themeHeroIn var(--dur, 0.7s) cubic-bezier(0.25, 0.4, 0.25, 1) both;
	animation-delay: var(--d, 0s);
}

.theme-hero-anim--title {
	--ty: 20px;
	--dur: 0.8s;
}

.theme-hero-anim--copy {
	--ty: 16px;
	--dur: 0.7s;
}

.theme-hero-anim--actions {
	--ty: 12px;
	--dur: 0.7s;
}

@keyframes themeHeroIn {
	from {
		opacity: 0;
		transform: translateY(var(--ty, 20px));
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.theme-fade-up {
	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);
	transition-delay: var(--d, 0s);
}

.theme-fade-up.is-visible {
	opacity: 1;
	transform: none;
}

.theme-delay-0 { --d: 0s; }
.theme-delay-1 { --d: 0.1s; }
.theme-delay-2 { --d: 0.2s; }
.theme-delay-3 { --d: 0.3s; }
.theme-delay-4 { --d: 0.4s; }
.theme-delay-5 { --d: 0.5s; }
.theme-delay-6 { --d: 0.6s; }
.theme-delay-7 { --d: 0.7s; }
.theme-delay-8 { --d: 0.8s; }
.theme-delay-9 { --d: 0.9s; }

body.is-customizer .theme-fade-up,
body.is-customizer .theme-hero-anim {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
}

@media (scripting: none) {
	.theme-fade-up,
	.theme-hero-anim {
		opacity: 1;
		transform: none;
		animation: none;
	}
}

/* -------------------------------------------------------------------------
 * Product cards
 * ---------------------------------------------------------------------- */
.theme-product-card {
	position: relative;
}

.theme-product-card > .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	pointer-events: auto;
}

.theme-product-card .theme-card-media,
.theme-product-card .theme-card-body {
	pointer-events: none;
}

.theme-product-card .theme-card-media {
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-product-card:hover .theme-card-media {
	transform: translateY(-3px);
	z-index: 3; /* keeps the quick-add control above the card-wide link overlay */
}

.theme-product-card .theme-card-add {
	pointer-events: auto;
	z-index: 3;
}

.theme-product-card:hover .theme-card-add {
	opacity: 1;
	transform: none;
}

.theme-product-card .theme-card-img {
	display: block;
}

/* -------------------------------------------------------------------------
 * Quantity input (no source equivalent: WooCommerce needs a real input)
 * ---------------------------------------------------------------------- */
.theme-qty-input {
	appearance: textfield;
	-moz-appearance: textfield;
	width: 2.75rem;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.single-product .theme-add-to-cart-area {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1rem;
}

.single-product .theme-add-to-cart-area .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
}

.single-product .theme-product-gallery,
.single-product .theme-product-info,
.single-product .theme-product-layout {
	min-width: 0;
	max-width: 100%;
}

.single-product .theme-product-thumbnails {
	flex-wrap: wrap;
	max-width: 100%;
}

.single-product .theme-product-thumb {
	display: block;
	line-height: 0;
}

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in,
.theme-product-description {
	overflow-wrap: break-word;
	word-break: break-word;
}

/* Product description lists (WooCommerce content) */
.theme-product-description p {
	margin: 0 0 1rem;
	white-space: pre-line;
}

.theme-product-description ul {
	list-style: disc;
	margin: 0;
	padding-left: 1.25rem;
}

.theme-product-description li {
	display: list-item;
	font-size: 15px;
	line-height: 1.625;
	color: hsl(var(--muted-foreground));
}

.theme-product-description li + li {
	margin-top: 0.375rem;
}

/* -------------------------------------------------------------------------
 * Price filter slider (dual handle)
 * ---------------------------------------------------------------------- */
.theme-price-panel {
	max-height: 0;
	opacity: 0;
	transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-price-panel.is-open {
	max-height: 14rem;
	opacity: 1;
}

.theme-range {
	height: 1.25rem;
}

.theme-range > div {
	top: 50%;
	transform: translateY(-50%);
}

.theme-range-input {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: none;
	z-index: 3;
}

.theme-range-input::-webkit-slider-runnable-track {
	height: 0.5rem;
	background: transparent;
	border: 0;
}

.theme-range-input::-moz-range-track {
	height: 0.5rem;
	background: transparent;
	border: 0;
}

.theme-range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	height: 1.25rem;
	width: 1.25rem;
	margin-top: -0.375rem;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
}

.theme-range-input::-moz-range-thumb {
	pointer-events: auto;
	height: 1.25rem;
	width: 1.25rem;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
}

.theme-range-input[data-theme-range-min] {
	z-index: 4;
}

.theme-range-input:focus-visible {
	outline: none;
}

.theme-range-input:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 3px hsl(var(--ring) / 0.4);
}

/* -------------------------------------------------------------------------
 * Cart drawer
 * ---------------------------------------------------------------------- */
#theme-cart-drawer {
	display: none;
}

body.cart-open #theme-cart-drawer {
	display: flex;
}

#theme-cart-overlay {
	display: none;
}

body.cart-open #theme-cart-overlay {
	display: block;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

body.theme-modal-open {
	overflow: hidden;
}

/* Above WooCommerce Select2 (checkout) and other z-50 chrome */
[data-theme-modal-overlay],
[data-theme-modal-content] {
	z-index: 10050;
}

body.theme-modal-open .select2-container,
body.theme-modal-open .select2-dropdown {
	z-index: 40 !important;
}

[data-theme-modal-overlay] {
	opacity: 0;
	transition: opacity 0.22s ease;
	pointer-events: none;
}

[data-theme-modal-overlay][data-state="open"] {
	opacity: 1;
	pointer-events: auto;
}

[data-theme-modal-content] {
	left: 50%;
	top: 50%;
	opacity: 0;
	transform: translate(-50%, -48%) scale(0.98);
	transition: opacity 0.22s ease, transform 0.22s ease;
	pointer-events: none;
}

[data-theme-modal-content][data-state="open"] {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
	pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
	[data-theme-modal-overlay],
	[data-theme-modal-content] {
		transition-duration: 0.01ms;
	}

	[data-theme-modal-content] {
		transform: translate(-50%, -50%);
	}
}

[data-theme-modal-content][data-state="open"] .theme-contact-form {
	animation: themeModalFormIn 0.3s ease both;
}

.theme-modal-success:not([hidden]) {
	animation: themeModalSuccessIn 0.4s ease both;
}

.theme-modal-success:not([hidden]) > div:first-child {
	animation: themeModalIconIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes themeModalFormIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes themeModalSuccessIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes themeModalIconIn {
	from { transform: scale(0); }
	to { transform: scale(1); }
}

/* 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;
}

/* Disabled add-to-cart 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;
}

.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 notices
 * ---------------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
	padding: 0.875rem 1.25rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--secondary));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-size: 0.875rem;
	line-height: 1.6;
	list-style: none;
}

.woocommerce-error {
	border-color: hsl(var(--destructive) / 0.5);
	background: hsl(var(--destructive) / 0.06);
}

.woocommerce-error li {
	list-style: none;
}

.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-notices-wrapper {
	width: 100%;
}

/* -------------------------------------------------------------------------
 * Single product: variations
 * ---------------------------------------------------------------------- */
.single-product .variations {
	width: 100%;
	margin-bottom: 1.25rem;
}

.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}

.single-product .variations tbody tr + tr {
	margin-top: 1rem;
}

.single-product .variations tbody td.label {
	padding: 0 0 0.25rem;
}

.single-product .variations tbody td.value {
	padding: 0;
}

.single-product .variations label {
	display: block;
	font-family: var(--font-body);
	font-size: 13px;
	letter-spacing: 0.2em;
	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));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-size: 1rem;
}

.single-product .variations select:focus {
	outline: none;
	border-color: hsl(var(--primary));
	box-shadow: 0 0 0 1px hsl(var(--primary));
}

.single-product .single_variation_wrap {
	margin-top: 0.5rem;
}

.single-product .woocommerce-variation-price {
	margin-bottom: 1rem;
	font-family: var(--font-body);
	font-size: 1.25rem;
	color: hsl(var(--foreground));
}

.single-product .woocommerce-variation-availability {
	margin-bottom: 1rem;
	font-family: var(--font-body);
	color: hsl(var(--muted-foreground));
}

.single-product .woocommerce-variation-add-to-cart {
	display: block;
}

.reset_variations {
	display: inline-block;
	margin-top: 0.75rem;
	font-family: var(--font-body);
	font-size: 13px;
	color: hsl(var(--muted-foreground));
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* -------------------------------------------------------------------------
 * Generic page typography for WordPress-generated markup
 * ---------------------------------------------------------------------- */
.page-title {
	font-family: var(--font-display);
}

.entry-content {
	font-family: var(--font-body);
	color: hsl(var(--foreground) / 0.85);
	line-height: 1.7;
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.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;
}

/* Checkout layout: see assets/css/checkout-layout.css (enqueued on checkout). */

/* -------------------------------------------------------------------------
 * Cart and account pages (width and alignment parity)
 * ---------------------------------------------------------------------- */
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
	max-width: 100%;
}

body.woocommerce-cart .wc-block-cart,
body.woocommerce-account .woocommerce {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.woocommerce-cart .wc-block-components-button,
body.woocommerce-account .woocommerce-Button,
body.woocommerce-account button.button {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border: 1px solid hsl(var(--primary));
	border-radius: 9999px;
	padding: 0.75rem 1.75rem;
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
	color: hsl(var(--muted-foreground));
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	color: hsl(var(--accent));
}

/* -------------------------------------------------------------------------
 * Thank you page
 * ---------------------------------------------------------------------- */
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);
	font-size: 1.5rem;
	line-height: 1.2;
	color: hsl(var(--foreground));
	margin: 0;
	padding: 1.5rem 0 1rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin: 0 0 2rem;
	padding: 1.5rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--card));
}

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;
	margin-top: 0.25rem;
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-weight: 600;
}

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;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 1.25rem;
	background: hsl(var(--card));
}

@media (prefers-reduced-motion: reduce) {
	.theme-parallax img {
		transform: none !important;
	}
}

.theme-btn-added {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: not-allowed !important;
}

/* Cart badge hidden while empty (matches the design) */
.theme-cart-count:empty {
	display: none;
}


/* Single product: source stacks the quantity block above the button (mb-4 supplies the gap). */
.single-product .theme-add-to-cart-area {
gap: 0;
}
