/*
 * Angie's Lofi Studio — theme styles.
 *
 * Only markup that has no equivalent in the source design (WooCommerce and
 * WordPress generated output) plus functional state rules lives here. Every
 * element that exists in the source keeps its compiled source classes.
 */

[hidden] {
	display: none !important;
}

/* -------------------------------------------------------------- admin bar */
body.admin-bar header.sticky {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar header.sticky {
		top: 46px;
	}
}

@media (min-width: 1024px) {
	body.admin-bar .theme-product-info {
		top: calc(7rem + 32px);
	}
}

/* -------------------------------------------------------- pointer cursor */
a,
button,
summary,
label[for],
select,
[role="button"],
[data-booking-open],
[data-inquiry-open],
[data-cart-open],
[data-cart-close],
[data-dialog-close],
[data-mobile-toggle],
[data-testimonial-toggle],
.theme-product-card,
.theme-product-thumb,
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
input[type="file"] {
	cursor: pointer;
}

button:disabled,
button[disabled],
[aria-disabled="true"],
.disabled {
	cursor: not-allowed;
}

/* ------------------------------------------------------------------ header */
.site-logo-img--wide {
	height: var(--logo-height, 60px) !important;
	width: auto !important;
	max-width: 185px;
}

.site-logo-icon {
	object-fit: contain;
}

.site-logo-text {
	line-height: var(--logo-height, 60px);
	display: block;
	white-space: nowrap;
}

/* Header/footer navigation rendered from Appearance -> Menus. */
header .menu,
footer .menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

header .menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

header .menu > li > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 2.75rem;
	padding: 0.75rem 0.5rem;
	border: 1px solid transparent;
	border-radius: calc(var(--radius) - 2px);
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	transition: background-color 0.15s ease, color 0.15s ease;
}

header .menu > li > a:hover {
	background-color: hsl(var(--accent));
	color: hsl(var(--accent-foreground));
}

footer .menu {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

footer .menu a {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: inherit;
	transition: color 0.15s ease;
}

footer .menu a:hover {
	color: hsl(var(--primary));
}

/* ------------------------------------------------------------------ drawer */
#theme-cart-drawer {
	position: fixed;
	right: 0;
	top: 0;
	height: 100%;
	width: 100%;
	max-width: 28rem;
	background: hsl(var(--background));
	z-index: 50;
	box-shadow: var(--shadow-elevated);
	display: none;
	flex-direction: column;
}

body.cart-open #theme-cart-drawer {
	display: flex;
}

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background: hsl(var(--foreground) / 0.2);
	z-index: 40;
	display: none;
}

body.cart-open #theme-cart-overlay {
	display: block;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

body.cart-open {
	overflow: hidden;
}

.theme-cart-count:empty {
	display: none;
}

.theme-cart-item img {
	display: block;
}

/* ------------------------------------------------------------------ dialog */
.theme-dialog-open {
	overflow: hidden;
}

.theme-dialog[hidden] {
	display: none !important;
}

.theme-dialog__content {
	outline: none;
}

/* ------------------------------------------------------------------ hero */
.theme-hero-section {
	overflow: hidden;
}

.theme-home .theme-hero-video {
	pointer-events: none;
}

/* ------------------------------------------------- product card overlay */
.theme-product-card {
	position: relative;
}

.theme-product-card > .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: auto;
	font-size: 0;
	color: transparent;
}

.theme-product-card *:not(.theme-card-link) {
	pointer-events: none;
}

.theme-product-card .theme-product-card__cta {
	position: relative;
	z-index: 3;
	pointer-events: auto;
	text-align: center;
}

.theme-product-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* whileHover={{ y: -4 }} spring(stiffness: 280, damping: 22) */
.theme-product-card__media {
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.theme-product-card:hover .theme-product-card__media {
	transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
	.theme-product-card:hover .theme-product-card__media {
		transform: none;
	}
}

/* ----------------------------------------------- add to cart button states */
.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;
}

/* Hide the "View cart" link WooCommerce appends 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;
}

/* --------------------------------------------------------------- notices */
.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0.875rem 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.6;
}

.woocommerce-error {
	border-color: hsl(var(--destructive) / 0.4);
	color: hsl(var(--destructive));
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	display: none;
}

/* ------------------------------------------------------- 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;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.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,
.single-product .theme-product-details-list {
	overflow-wrap: break-word;
	word-break: break-word;
}

.theme-thumb-underline {
	pointer-events: none;
}

/* Quantity control */
.theme-qty-input {
	width: 2.75rem;
	border: 0;
	background: transparent;
	color: hsl(var(--foreground));
	-moz-appearance: textfield;
	appearance: textfield;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.theme-qty-input:focus {
	outline: none;
}

/* Variations: keep the native WooCommerce selects, styled like the source. */
.single-product .variations_form {
	margin: 0;
}

.single-product .variations {
	width: 100%;
	border: 0;
	margin: 0;
}

.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}

.single-product .variations tbody tr {
	margin-top: 2rem;
}

.single-product .variations tbody td.label {
	padding: 0;
	border: 0;
}

.single-product .variations tbody td.value {
	padding: 0;
	border: 0;
	position: relative;
}

.single-product .woocommerce-variation-price,
.single-product .woocommerce-variation-availability {
	display: none;
}

.single-product .single_variation_wrap {
	display: flow-root !important;
}

/* ------------------------------------------------------- product archive */
.woocommerce .theme-product-grid,
.theme-product-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
	.woocommerce .theme-product-grid,
	.theme-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.woocommerce .theme-product-grid,
	.theme-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.theme-related-products-section .theme-product-grid,
.theme-single-product .theme-product-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (min-width: 1024px) {
	.theme-related-products-section .theme-product-grid,
	.theme-single-product .theme-product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}

.theme-product-card-wrap {
	min-width: 0;
}

.woocommerce-result-count,
.woocommerce-ordering {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	margin-bottom: 1.5rem;
}

.woocommerce-ordering select {
	font-family: var(--font-body);
	font-size: 0.875rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 2px);
	background: hsl(var(--background));
	color: hsl(var(--foreground));
}

.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	list-style: none;
	padding: 0;
	border: 0;
	margin-top: 3rem;
}

.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.75rem;
	height: 2.75rem;
	padding: 0 1rem;
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 2px);
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	color: hsl(var(--foreground));
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* -------------------------------------------------------------- price html */
.single-product .price,
.theme-product-price,
.woocommerce-variation-price .price {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

.price del {
	color: hsl(var(--muted-foreground));
	opacity: 1;
	font-size: 0.9em;
	margin-right: 0.25rem;
}

.price ins {
	text-decoration: none;
	color: hsl(var(--primary));
}

/* ------------------------------------------------------------- forms / inputs */
.woocommerce form .form-row label,
.woocommerce-page form .form-row label {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--foreground));
}

/* --------------------------------------------------------- page container */
.theme-page-container {
	padding-bottom: 4rem;
}

.page-title {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.1;
	color: hsl(var(--foreground));
}

/* ---------------------------------------------------------- checkout block */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout main {
	padding-top: 1rem;
	padding-bottom: 4rem;
}

body.woocommerce-checkout .wc-block-checkout {
	display: block;
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

@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: 2rem;
		align-items: start;
	}
}

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-checkout .wc-block-components-notice-banner,
body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notice-banner {
	grid-column: 1 / -1;
}

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-title,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-panel__button,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout h2 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0;
	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-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 {
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: calc(var(--radius) - 2px) !important;
	box-shadow: none !important;
	width: 100% !important;
	max-width: 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 {
	border-color: hsl(var(--primary)) !important;
	outline: none !important;
	box-shadow: 0 0 0 1px hsl(var(--primary)) !important;
}

body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
	color: hsl(var(--muted-foreground)) !important;
	opacity: 1 !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button {
	font-family: var(--font-body) !important;
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0 !important;
	background-color: hsl(var(--bandana-red)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border: 1px solid hsl(var(--bandana-red)) !important;
	border-radius: calc(var(--radius) - 2px) !important;
	min-height: 3rem;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--bandana-red)) !important;
	border-color: hsl(var(--bandana-red)) !important;
}

body.woocommerce-checkout .wc-block-components-button:not(.wc-block-components-checkout-place-order-button) {
	font-family: var(--font-body) !important;
	border-radius: calc(var(--radius) - 2px) !important;
}

body.woocommerce-checkout .wc-block-cart-items__row,
body.woocommerce-checkout .wc-block-components-order-summary-item {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-order-summary-item__description {
	font-family: var(--font-body);
	color: hsl(var(--muted-foreground));
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	font-family: var(--font-body);
	border-radius: calc(var(--radius) - 2px);
	background-color: hsl(var(--card));
	border-color: hsl(var(--border));
	color: hsl(var(--foreground));
}

/* ------------------------------------------------------- cart / account */
body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .wc-block-components-sidebar-layout {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.woocommerce-cart .entry-content > .wp-block-woocommerce-cart,
body.woocommerce-cart .wp-block-woocommerce-cart {
	max-width: none;
	width: 100%;
}

body.woocommerce-cart .wc-block-components-sidebar {
	min-width: 0;
}

body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button {
	font-family: var(--font-body) !important;
	border-radius: calc(var(--radius) - 2px) !important;
}

/* ------------------------------------------------------- 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-weight: 500;
	line-height: 1.1;
	letter-spacing: 0;
	padding: 0 0 1rem;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 0;
}

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.25rem;
	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 th,
body.theme-thankyou-page .woocommerce-order-details td {
	padding: 0.75rem 0;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
	vertical-align: top;
}

body.theme-thankyou-page .woocommerce-order-details thead th,
body.theme-thankyou-page .woocommerce-order-details tfoot th {
	text-align: left;
	font-weight: 600;
}

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;
	font-family: var(--font-body);
	font-size: 0.875rem;
	line-height: 1.7;
}

/* -------------------------------------------------- account / misc legacy */
.woocommerce-account .woocommerce-MyAccount-navigation {
	margin-bottom: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--primary));
}

.woocommerce-account .woocommerce-MyAccount-content {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Source page headings inside WP page content keep the display face. */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0;
}

.entry-content p,
.entry-content li {
	font-family: var(--font-body);
}

/* -------------------------------------------------------- customizer preview */
.is-customizer [data-inquiry-dialog][hidden],
.is-customizer [data-booking-dialog][hidden] {
	display: none;
}
