/* ============================================================================
   Theme overrides for markup that has no equivalent in the design source:
   WooCommerce output, WordPress output and functional states only.
   ========================================================================== */

:root {
	--header-height: 5rem;
	--theme-admin-bar: 0px;
}

/* --------------------------------------------------------------------------
   WordPress admin bar: keep fixed chrome below the toolbar
   -------------------------------------------------------------------------- */
body.admin-bar,
html:has(body.admin-bar) {
	--theme-admin-bar: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar,
	html:has(body.admin-bar) {
		--theme-admin-bar: 46px;
	}
}

@media screen and (max-width: 600px) {
	body.admin-bar #wpadminbar {
		position: fixed;
	}
}

.site-header,
.theme-scroll-progress {
	top: var(--theme-admin-bar, 0px) !important;
}

body.admin-bar .site-header,
body.admin-bar .theme-scroll-progress {
	top: 32px !important;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header,
	body.admin-bar .theme-scroll-progress {
		top: 46px !important;
	}
}

body.admin-bar #wpadminbar {
	z-index: 100000;
}

/* --------------------------------------------------------------------------
   Pointer cursor on every clickable control
   -------------------------------------------------------------------------- */
a[href],
button:not(:disabled):not([aria-disabled="true"]),
[role="button"],
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled),
[type="reset"]:not(:disabled),
label[for],
select,
summary,
input[type="checkbox"],
input[type="radio"],
input[type="file"],
input[type="image"],
.theme-attr-pill,
.theme-product-thumb,
[data-scroll-link],
[data-cart-open],
[data-menu-toggle],
[data-shop-toggle],
[data-portfolio-toggle],
[data-faq-trigger],
[data-tilt-card] {
	cursor: pointer !important;
}

[hidden] {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Site identity sizing
   -------------------------------------------------------------------------- */
.site-logo-img {
	display: block;
	width: auto !important;
}
.site-logo-text {
	display: block;
}

/* --------------------------------------------------------------------------
   Cart drawer and overlay
   -------------------------------------------------------------------------- */
.theme-cart-drawer {
	position: fixed;
	inset: 0 0 0 auto;
	margin: 0;
	width: min(480px, 100%);
	height: 100dvh;
	max-height: 100dvh;
	overflow-y: auto;
	z-index: 70;
	transform: translateX(100%);
	transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.cart-open .theme-cart-drawer {
	transform: translateX(0);
}

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 65;
	background: hsl(var(--background) / 0.72);
	opacity: 0;
	pointer-events: none;
	transition: opacity 320ms ease;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	pointer-events: auto;
}

body.cart-open {
	overflow: hidden;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

.theme-cart-count:empty {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* --------------------------------------------------------------------------
   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-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-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%;
}

.theme-product-thumb {
	width: 5rem;
	height: 5rem;
}

.site-brand-text {
	margin-left: 0.75rem;
}

.single-product .theme-product-thumb.is-active {
	border-color: hsl(var(--primary));
}

.single-product .theme-add-to-cart-area {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 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;
}

.single-product .theme-product-description p {
	margin: 0 0 1.5rem 0;
}

.single-product .theme-product-description p:last-child {
	margin-bottom: 0;
}

.single-product .theme-product-description ul {
	list-style: disc;
	padding-left: 1.25rem;
	margin: 0 0 2rem 0;
	line-height: 1.5;
}

.single-product .theme-product-description ul li {
	margin: 0;
	color: hsl(var(--foreground) / 0.8);
}

.single-product .theme-product-description ul li + li {
	margin-top: 0.5rem;
}

.single-product .variations,
.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}

.single-product .variations {
	border-collapse: collapse;
	margin-bottom: 1.5rem;
}

.single-product .variations tbody td.label {
	padding-bottom: 0;
}

.single-product .variations tbody td.label label {
	display: block;
	font-size: 15px;
	color: hsl(var(--foreground));
}

.single-product .variations tbody td.value {
	padding-top: 0;
}

.theme-attr-select-hidden {
	display: none !important;
}

.theme-attr-pill:hover {
	border-color: hsl(var(--primary));
	color: hsl(var(--primary));
}

.theme-attr-pill[aria-pressed="true"] {
	border-color: hsl(var(--primary));
	color: hsl(var(--primary));
}

.theme-qty-input {
	appearance: textfield;
	-moz-appearance: textfield;
	background: transparent;
	border: 0;
	padding: 0;
	color: inherit;
	font: inherit;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.single-product .single_variation_wrap {
	margin-bottom: 0.5rem;
}

.single-product .woocommerce-variation-price,
.single-product .woocommerce-variation-availability {
	margin-bottom: 1rem;
	font-size: 15px;
	color: hsl(var(--foreground) / 0.8);
}

.single-product .woocommerce-variation-price .price {
	font-weight: 700;
	color: hsl(var(--foreground));
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

.theme-stock-out {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: hsl(var(--accent));
}

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */
.theme-product-card-wrap {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.theme-product-card-wrap > article {
	flex: 1;
}

/* --------------------------------------------------------------------------
   WooCommerce notices, pagination and generic output
   -------------------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: calc(var(--radius) - 4px);
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	font-size: 15px;
}

.woocommerce-error {
	border-color: hsl(var(--accent));
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	margin-left: auto;
	padding: 0.5rem 1rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--border));
	font-size: 15px;
	color: hsl(var(--foreground));
}

.woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
	justify-content: center;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers 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;
	font-size: 15px;
	color: hsl(var(--foreground));
}

.woocommerce-pagination ul.page-numbers li span.current {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

.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;
}

/* --------------------------------------------------------------------------
   Customizer preview safety: reveal content must never be invisible
   -------------------------------------------------------------------------- */
body.is-customizer [data-aos],
body.is-customizer .hero-reveal,
body.is-customizer .reveal {
	opacity: 1 !important;
	transform: none !important;
	filter: none !important;
}

body.is-customizer [data-aos] {
	transition: none !important;
}

/* --------------------------------------------------------------------------
   Checkout block
   -------------------------------------------------------------------------- */
body.woocommerce-checkout .site-main {
	padding-top: calc(var(--header-height, 80px) + 2rem);
	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-components-sidebar-layout.wc-block-checkout.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2rem);
		align-items: start;
	}
}

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 {
	width: 100% !important;
	max-width: none !important;
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: calc(var(--radius) - 4px) !important;
	color: hsl(var(--foreground)) !important;
	font-family: var(--font-body) !important;
	font-size: 15px !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-text-input.is-active input {
	border-color: hsl(var(--primary)) !important;
	box-shadow: 0 0 0 2px hsl(var(--ring) / 0.35) !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 {
	font-family: var(--font-body) !important;
	font-size: 15px !important;
	color: hsl(var(--foreground) / 0.7) !important;
}

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-checkout-place-order-button {
	background-color: hsl(var(--primary)) !important;
	border: 1px solid hsl(var(--primary)) !important;
	border-radius: 9999px !important;
	color: hsl(var(--primary-foreground)) !important;
	font-family: var(--font-body) !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	padding: 0.85rem 1.75rem !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--primary) / 0.9) !important;
}

body.woocommerce-checkout .wc-block-components-button:not(.wc-block-components-checkout-place-order-button) {
	border-radius: 9999px !important;
	border-color: hsl(var(--border)) !important;
	color: hsl(var(--foreground)) !important;
	background-color: transparent !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: calc(var(--radius) - 4px);
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-order-summary {
	background: transparent;
}

body.woocommerce-checkout .wc-block-checkout__sidebar h2,
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__main h2 {
	font-family: var(--font-display);
	font-weight: 400;
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description,
body.woocommerce-checkout .wc-block-components-product-name {
	font-size: 15px;
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-order-summary-item__quantity,
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity .wc-block-components-product-badge,
body.woocommerce-checkout .wc-block-components-product-badge,
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity span,
body.woocommerce-checkout .wc-block-components-order-summary-item__image .wc-block-components-product-badge,
body.woocommerce-cart .wc-block-components-product-badge,
body.woocommerce-cart .wc-block-cart-item__image .wc-block-components-product-badge {
	background-color: hsl(var(--accent)) !important;
	color: hsl(var(--accent-foreground)) !important;
	border-color: hsl(var(--background)) !important;
}

/* --------------------------------------------------------------------------
   Cart block page
   -------------------------------------------------------------------------- */
body.woocommerce-cart .site-main {
	padding-top: calc(var(--header-height, 80px) + 2rem);
	padding-bottom: 4rem;
}

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
	min-width: 0;
	max-width: none;
}

body.woocommerce-cart .wc-block-components-button {
	border-radius: 9999px !important;
	background-color: hsl(var(--primary)) !important;
	border-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
}

body.woocommerce-account .site-main {
	padding-top: calc(var(--header-height, 80px) + 2rem);
	padding-bottom: 4rem;
}

/* --------------------------------------------------------------------------
   Order received page
   -------------------------------------------------------------------------- */
body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .site-main {
	padding-top: calc(var(--header-height, 80px) + 2rem);
	padding-bottom: 4rem;
}

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-weight: 400;
	padding: 0 0 1rem 0;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-overview {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding: 1.5rem;
	margin: 0 0 2rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--card));
	font-size: 15px;
}

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	color: hsl(var(--foreground) / 0.7);
}

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;
	font-size: 15px;
}

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;
}

body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	font-style: normal;
	color: hsl(var(--foreground) / 0.8);
}
