/*
 * Varez Studios theme additions.
 * Only markup without a source equivalent, functional rules and ported motion.
 */

/* -------------------------------------------------------------------------
 * Functional base
 * ---------------------------------------------------------------------- */
[hidden] {
	display: none !important;
}

body.contact-open,
body.cart-open {
	overflow: hidden;
}

/* Inner pages sit below the fixed header (source: pt-[96px] md:pt-[112px] + pt-6 lg:pt-8). */
body.theme-no-hero .site-main {
	padding-top: calc(96px + 1.5rem);
}

/* WordPress admin bar: keep fixed chrome below the toolbar. */
body.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px) !important;
}

body.admin-bar .scroll-progress {
	top: var(--wp-admin--admin-bar--height, 32px) !important;
}

body.admin-bar #theme-cart-drawer {
	top: var(--wp-admin--admin-bar--height, 32px) !important;
	height: calc(100% - var(--wp-admin--admin-bar--height, 32px)) !important;
}

@media screen and (max-width: 600px) {
	body.admin-bar .site-header,
	body.admin-bar .scroll-progress {
		top: 0 !important;
	}

	body.admin-bar #theme-cart-drawer {
		top: 0 !important;
		height: 100% !important;
	}
}

/* Clickable controls use the hand cursor. */
a,
button,
summary,
label[for],
select,
[role="button"],
[role="link"],
[role="tab"],
[role="menuitem"],
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="image"],
input[type="checkbox"],
input[type="radio"],
input[type="file"],
[data-nav-anchor],
[data-nav-home],
[data-contact-modal],
[data-contact-close],
[data-cart-open],
[data-cart-close],
[data-cat-filter],
[data-category-tile],
[data-shop-more],
[data-price-toggle],
[data-mobile-menu-toggle],
[data-thumb],
[data-range-min],
[data-range-max],
.theme-qty-minus,
.theme-qty-plus,
.add_to_cart_button,
.single_add_to_cart_button {
	cursor: pointer;
}

@media (min-width: 768px) {
	body.theme-no-hero .site-main {
		padding-top: calc(112px + 1.5rem);
	}
}

@media (min-width: 1024px) {
	body.theme-no-hero .site-main {
		padding-top: calc(112px + 2rem);
	}
}

.site-logo-img {
	height: var(--logo-height-mobile, 64px) !important;
	width: auto !important;
	max-width: 100%;
	display: block;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.site-logo-img {
		height: var(--logo-height, 80px) !important;
	}
}

.site-logo-text {
	font-size: 1.25rem;
	line-height: 1.1;
	display: flex;
	align-items: center;
	height: 100%;
	justify-content: center;
}

.site-footer-logo {
	height: 96px;
	width: auto;
}

@media (min-width: 768px) {
	.site-footer-logo {
		height: var(--footer-logo-height, 128px);
	}
}

.page-title {
	font-family: var(--font-display);
	font-weight: 700;
}

/* -------------------------------------------------------------------------
 * 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-icon {
	animation: theme-wobble 2.4s ease-in-out infinite;
}

.theme-loader-bar {
	animation: theme-loader-bar 1.2s ease-in-out infinite;
}

@keyframes theme-wobble {
	0% { transform: rotate(0deg); }
	25% { transform: rotate(8deg); }
	75% { transform: rotate(-8deg); }
	100% { transform: rotate(0deg); }
}

@keyframes theme-loader-bar {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(200%); }
}

/* -------------------------------------------------------------------------
 * Scroll progress
 * ---------------------------------------------------------------------- */
.scroll-progress {
	transform: scaleX(0);
}

/* -------------------------------------------------------------------------
 * Reveal motion (ported from the source motion variants)
 * ---------------------------------------------------------------------- */
html.js .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);
	transition-delay: var(--reveal-delay, 0s);
}

html.js .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);
	transition-delay: var(--reveal-delay, 0s);
}

html.js .reveal-item.is-visible,
html.js .reveal-card.is-visible {
	opacity: 1;
	transform: none;
}

.reveal-delay-1 { --reveal-delay: 0.1s; }
.reveal-delay-2 { --reveal-delay: 0.2s; }
.reveal-delay-3 { --reveal-delay: 0.3s; }
.reveal-delay-4 { --reveal-delay: 0.4s; }
.reveal-delay-5 { --reveal-delay: 0.5s; }
.reveal-delay-6 { --reveal-delay: 0.6s; }

body.is-customizer .reveal-item,
body.is-customizer .reveal-card {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

/* -------------------------------------------------------------------------
 * Product card
 * ---------------------------------------------------------------------- */
.theme-product-card-wrap {
	min-width: 0;
}

.theme-product-card {
	position: relative;
}

.theme-product-card > .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: auto;
}

.theme-product-card *:not(.theme-card-link):not(.add_to_cart_button) {
	pointer-events: none;
}

.theme-product-card .add_to_cart_button {
	pointer-events: auto;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.theme-product-card__media {
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.theme-product-card:hover .theme-product-card__media {
	transform: translateY(-3px);
}

.theme-card-link:focus-visible {
	outline: 2px solid hsl(var(--ring));
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
 * Shop filters
 * ---------------------------------------------------------------------- */
.theme-price-panel {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition: grid-template-rows 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 {
	grid-template-rows: 1fr;
	opacity: 1;
}

.theme-price-panel-inner {
	overflow: hidden;
	min-height: 0;
}

.price-range-wrapper {
	position: relative;
	height: 1.25rem;
}

.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 {
	left: 0;
	width: 100%;
	background: hsl(var(--primary));
}

.range-input {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: none;
}

.range-input::-webkit-slider-runnable-track {
	height: 1.25rem;
	background: transparent;
	border: 0;
}

.range-input::-moz-range-track {
	height: 1.25rem;
	background: transparent;
	border: 0;
}

.range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0;
	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:focus-visible {
	outline: none;
}

.range-input:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 3px hsl(var(--ring) / 0.5);
}

.range-input:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 3px hsl(var(--ring) / 0.5);
}

.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

/* -------------------------------------------------------------------------
 * Single product
 * ---------------------------------------------------------------------- */
.single-product .theme-product-layout {
	min-width: 0;
}

.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;
	flex-direction: column;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0;
}

.single-product .theme-add-to-cart-area .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;
}

/* The source renders the long description with white-space: pre-line, so the
   blank line between paragraphs is one line of leading. */
.single-product .theme-product-description > p + p {
	margin-top: 1.625em;
}

/* Native variation markup stays in the DOM but the pills are the visible control. */
.single-product .variations {
	display: none !important;
}

.single-product .single_variation_wrap {
	display: block !important;
}

.single-product .woocommerce-variation {
	display: none !important;
}

.theme-attr-select-hidden {
	display: none !important;
}

.theme-quantity-wrapper .theme-qty-input {
	width: 3rem;
	min-width: 44px;
	border: 0;
	background: transparent;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
	color: hsl(var(--foreground));
}

.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;
}

/* Disabled add-to-cart buttons (variable products and sold out items). */
.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;
}

/* 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;
}

.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;
}

/* -------------------------------------------------------------------------
 * Cart drawer
 * ---------------------------------------------------------------------- */
#theme-cart-drawer {
	transform: translateY(20px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.6s;
}

body.cart-open #theme-cart-drawer {
	opacity: 1;
	transform: none;
	visibility: visible;
	transition-delay: 0s;
}

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 49;
	background: hsl(var(--foreground) / 0.2);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.6s;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

.theme-cart-count:empty {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* -------------------------------------------------------------------------
 * Contact modal
 * ---------------------------------------------------------------------- */
#theme-contact-modal .theme-modal-panel {
	max-height: 90vh;
}

.theme-success-in {
	animation: theme-fade-in 0.4s ease both;
}

.theme-success-in .theme-success-icon {
	animation: theme-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
	animation-delay: 0.15s;
}

@keyframes theme-fade-in {
	from { opacity: 0; transform: scale(0.96); }
	to { opacity: 1; transform: scale(1); }
}

@keyframes theme-pop {
	from { transform: scale(0); }
	to { transform: scale(1); }
}

/* -------------------------------------------------------------------------
 * WooCommerce notices and generic markup
 * ---------------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1.5rem;
	padding: 1rem 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.9375rem;
	line-height: 1.5;
	list-style: none;
}

.woocommerce-error {
	border-color: hsl(var(--destructive));
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	margin-left: auto;
	padding: 0.5rem 1.25rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--primary));
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-decoration: none;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

.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;
}

.woocommerce .woocommerce-Price-amount,
.woocommerce-Price-amount {
	font-family: var(--font-body);
	color: inherit;
}

.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	border: 0;
	margin-top: 3rem;
	list-style: none;
	padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.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: 9999px;
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	text-decoration: none;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border-color: hsl(var(--primary));
}

/* -------------------------------------------------------------------------
 * Checkout block
 * ---------------------------------------------------------------------- */
body.woocommerce-checkout .site-main {
	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;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
		align-items: start;
	}

	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
		width: 100%;
		max-width: none;
		padding: 0;
	}
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 2rem !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar h2,
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title {
	font-family: var(--font-display);
	color: hsl(var(--foreground));
	font-weight: 700;
}

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 {
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--foreground)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 0.375rem !important;
	font-family: var(--font-body) !important;
	font-size: 1rem !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-blocks-components-select__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;
	box-shadow: 0 0 0 1px hsl(var(--primary)) !important;
	outline: 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,
body.woocommerce-checkout .wc-block-components-order-summary-item__description,
body.woocommerce-checkout .wc-block-components-totals-item {
	font-family: var(--font-body) !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
	background: hsl(var(--foreground)) !important;
	background-color: hsl(var(--foreground)) !important;
	color: hsl(var(--background)) !important;
	border-color: hsl(var(--card)) !important;
	box-shadow: 0 0 0 2px hsl(var(--card)) !important;
	font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity span {
	color: hsl(var(--background)) !important;
}

body.woocommerce-checkout .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-components-product-price,
body.woocommerce-checkout .wc-block-components-order-summary-item__total-price {
	color: hsl(var(--foreground)) !important;
	font-family: var(--font-body) !important;
}

body.woocommerce-checkout .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: 9999px !important;
	font-family: var(--font-body) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase !important;
	padding: 1rem 2rem !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--primary)) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	background: hsl(var(--secondary)) !important;
	color: hsl(var(--foreground)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: var(--radius) !important;
	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-checkout-step,
body.woocommerce-checkout .wc-block-checkout__payment-method {
	background: transparent;
}

/* -------------------------------------------------------------------------
 * 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);
	padding: 0 0 1rem 0;
	font-weight: 700;
}

body.theme-thankyou-page .woocommerce-order-overview {
	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);
	list-style: none;
}

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	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));
	font-family: var(--font-body);
}

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);
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 1.25rem;
	font-style: normal;
}

/* -------------------------------------------------------------------------
 * Cart and account pages
 * ---------------------------------------------------------------------- */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
body.theme-thankyou-page .site-main {
	padding-bottom: 4rem;
}

body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-account .wp-block-woocommerce-my-account {
	width: 100%;
	max-width: none;
}

@media (prefers-reduced-motion: reduce) {
	.theme-page-loader,
	#theme-cart-drawer,
	#theme-cart-overlay,
	.theme-price-panel,
	html.js .reveal-item,
	html.js .reveal-card {
		transition-duration: 0.01ms !important;
	}

	.theme-loader-icon,
	.theme-loader-bar,
	.theme-success-in,
	.theme-success-in .theme-success-icon {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
