/* Functional styles for WordPress and WooCommerce markup that has no
   equivalent in the source components, plus JS-driven state hooks. */

[hidden] {
	display: none !important;
}

/* ---------------------------------------------------------- Admin bar offset */
body.admin-bar .site-header,
html.admin-bar .site-header {
	top: 32px;
}

body.admin-bar [data-scroll-progress],
html.admin-bar [data-scroll-progress] {
	top: 32px;
}

body.admin-bar #theme-cart-drawer,
html.admin-bar #theme-cart-drawer {
	top: 32px;
	height: calc(100% - 32px);
}

body.admin-bar #theme-cart-overlay,
html.admin-bar #theme-cart-overlay {
	top: 32px;
}

@media (min-width: 1024px) {
	body.admin-bar .theme-product-gallery,
	html.admin-bar .theme-product-gallery {
		top: calc(7rem + 32px);
	}
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header,
	html.admin-bar .site-header {
		top: 46px;
	}

	body.admin-bar [data-scroll-progress],
	html.admin-bar [data-scroll-progress] {
		top: 46px;
	}

	body.admin-bar #theme-cart-drawer,
	html.admin-bar #theme-cart-drawer {
		top: 46px;
		height: calc(100% - 46px);
	}

	body.admin-bar #theme-cart-overlay,
	html.admin-bar #theme-cart-overlay {
		top: 46px;
	}

	@media (min-width: 1024px) {
		body.admin-bar .theme-product-gallery,
		html.admin-bar .theme-product-gallery {
			top: calc(7rem + 46px);
		}
	}
}

/* ------------------------------------------------------ Clickable cursor */
a,
button,
[role="button"],
[role="tab"],
[role="menuitem"],
[role="option"],
[type="button"],
[type="submit"],
[type="reset"],
[type="checkbox"],
[type="radio"],
[type="file"],
[type="image"],
label[for],
select,
summary,
.theme-product-card,
.theme-card-link,
.theme-attr-pill,
.theme-card-actions,
.theme-quick-view,
.theme-shop-tab,
.add_to_cart_button,
.single_add_to_cart_button,
.hover-img-project,
[data-cart-open],
[data-cart-close],
[data-cart-empty],
[data-menu-toggle],
[data-scroll-target],
[data-faq-toggle],
[data-shop-cat],
[data-shop-more],
[data-product-thumbs] button {
	cursor: pointer;
}

a:disabled,
button:disabled,
[disabled],
[aria-disabled="true"],
.disabled,
.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;
}

/* ---------------------------------------------------------------- Identity */
.site-logo-img {
	height: var(--logo-height, 64px) !important;
	display: block;
}

.site-logo-text {
	line-height: var(--logo-height, 64px);
	display: block;
	white-space: nowrap;
}

@media (max-width: 1023px) {
	.site-logo-img {
		height: var(--logo-height-mobile, 48px) !important;
	}
}

/* ------------------------------------------------------------- Reveal fallback */
.is-customizer [data-aos],
.is-customizer .hero-reveal {
	opacity: 1 !important;
	transform: none !important;
	filter: none !important;
	transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
	[data-aos] {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}
}

/* ------------------------------------------------------------------ Side cart */
#theme-cart-overlay {
	display: none;
}

body.cart-open #theme-cart-overlay {
	display: block;
}

#theme-cart-drawer {
	transform: translateY(20px);
	opacity: 0;
	pointer-events: none;
	transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
		opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.cart-open #theme-cart-drawer {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

.theme-cart-count:empty {
	display: none;
}

/* --------------------------------------------------------- Stock indicators */
.theme-out-of-stock {
	color: hsl(var(--destructive));
}

/* ---------------------------------------------------------- Shop category tabs */
.theme-shop-tab {
	background-color: transparent;
	color: hsl(var(--foreground) / 0.8);
	border: 1px solid hsl(var(--foreground) / 0.25);
	box-shadow: none;
}

.theme-shop-tab:hover {
	border-color: hsl(var(--accent));
	color: hsl(var(--accent));
}

.theme-shop-tab.is-active,
.theme-shop-tab.is-active:hover {
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border-color: hsl(var(--primary));
	box-shadow: var(--shadow-soft);
}

/* --------------------------------------------------------------- Product card */
.theme-product-card {
	position: relative;
}

.theme-product-card .theme-card-surface {
	height: 100%;
}

.theme-product-card .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.theme-product-card .theme-card-actions {
	z-index: 2;
	pointer-events: none;
}

.theme-product-card:hover .theme-card-actions a,
.theme-product-card:hover .theme-card-actions button,
.theme-product-card:hover .add_to_cart_button,
.theme-product-card:hover .theme-quick-view {
	position: relative;
	z-index: 2;
	pointer-events: auto;
}

.theme-product-card .woocommerce-Price-amount,
.theme-product-card .woocommerce-Price-currencySymbol {
	color: inherit;
}

.theme-product-card .shop-product-image {
	object-fit: cover;
	object-position: center;
	width: 100%;
	height: 100%;
}

/* --------------------------------------------------------- Quantity controls */
.theme-quantity-wrapper {
	display: inline-flex;
	align-items: center;
	width: max-content;
	max-width: 100%;
	min-width: 0;
	flex: 0 0 auto;
}

.theme-qty-input,
.theme-quantity-wrapper input.qty,
.theme-quantity-wrapper input[type='number'] {
	-moz-appearance: textfield;
	appearance: textfield;
	width: 2.75rem;
	min-width: 2.75rem;
	max-width: 2.75rem;
	padding-left: 0;
	padding-right: 0;
	margin: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	height: auto;
	line-height: inherit;
	color: inherit;
	font-size: 15px;
	font-weight: 500;
	text-align: center;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button,
.theme-quantity-wrapper input.qty::-webkit-outer-spin-button,
.theme-quantity-wrapper input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ---------------------------------------------------- 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;
}

/* WooCommerce appends a "View cart" link after AJAX adds; it is not in the design. */
.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;
}

/* ------------------------------------------------------- Variable product UI */
.theme-attr-select-hidden {
	display: none !important;
}

.single-product .variations {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 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 label {
	font-size: 15px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: hsl(var(--foreground) / 0.55);
}

.theme-variation-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.theme-attr-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 2.5rem;
	padding: 0 1.25rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--foreground) / 0.25);
	background-color: transparent;
	color: hsl(var(--foreground) / 0.8);
	font-size: 15px;
	font-weight: 600;
	transition: color 300ms ease, border-color 300ms ease, background-color 300ms ease;
}

.theme-attr-pill:hover,
.theme-attr-pill.is-active {
	border-color: hsl(var(--primary));
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* --------------------------------------------------------- Single product layout */
.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;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.75rem;
}

.single-product .theme-add-to-cart-area .single_add_to_cart_button,
.single-product .theme-add-to-cart-area a,
.single-product .theme-add-to-cart-area button {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
}

@media (min-width: 640px) {
	.single-product .theme-add-to-cart-area {
		flex-direction: row;
		align-items: stretch;
	}

	.single-product .theme-add-to-cart-area .single_add_to_cart_button,
	.single-product .theme-add-to-cart-area a,
	.single-product .theme-add-to-cart-area button {
		flex: 1 1 0%;
		width: auto;
	}
}

.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 .woocommerce-variation-price,
.single-product .woocommerce-variation-availability {
	margin-bottom: 1rem;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

/* ------------------------------------------------------------------ Notices */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	border-radius: calc(var(--radius) - 8px);
	border: 1px solid hsl(var(--border));
	background-color: hsl(var(--linen));
	color: hsl(var(--foreground));
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	font-size: 15px;
	line-height: 1.6;
}

.woocommerce-error {
	border-color: hsl(var(--destructive));
	background-color: hsl(var(--destructive) / 0.08);
}

.woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-info .button {
	margin-left: 0.75rem;
}

/* --------------------------------------------------------------- Pagination */
.theme-pagination .woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.theme-pagination .woocommerce-pagination ul li {
	border: 0;
	margin: 0;
}

.theme-pagination .woocommerce-pagination ul li a,
.theme-pagination .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-radius: 9999px;
	border: 1px solid hsl(var(--border));
	color: hsl(var(--foreground) / 0.8);
	font-size: 15px;
	text-decoration: none;
	transition: color 300ms ease, border-color 300ms ease, background-color 300ms ease;
}

.theme-pagination .woocommerce-pagination ul li a:hover {
	border-color: hsl(var(--accent));
	color: hsl(var(--accent));
}

.theme-pagination .woocommerce-pagination ul li span.current {
	background-color: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* ------------------------------------------------------------ Page headings */
.page-title {
	font-family: 'Fraunces', Georgia, serif;
	font-size: 2.25rem;
	line-height: 1.05;
	font-weight: 700;
	color: hsl(var(--foreground));
}

@media (min-width: 768px) {
	.page-title {
		font-size: 3rem;
	}
}

/* ------------------------------------------------------- Price markup in cards */
.price del {
	color: hsl(var(--muted-foreground));
	opacity: 0.7;
	margin-right: 0.25rem;
}

.price ins {
	text-decoration: none;
}

/* ------------------------------------------------------- Checkout (Blocks) */
body.woocommerce-checkout #page-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout .site-main,
body.woocommerce-checkout article,
.entry-content:has(.wc-block-checkout),
.entry-content:has(.wp-block-woocommerce-checkout) {
	max-width: none;
	width: 100%;
}

body.woocommerce-checkout .site-main {
	padding-bottom: 4rem;
}

/* Outer checkout block: full desired width, never a 2-col grid.
   The inner .wc-block-checkout.wc-block-components-sidebar-layout is the real layout. */
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout.wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wp-block-woocommerce-checkout.wc-block-checkout {
	display: block;
	width: 100%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	min-width: 0;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
.entry-content .wc-block-checkout-sidebar-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: start;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
	.entry-content .wc-block-checkout-sidebar-layout {
		grid-template-columns: 1fr minmax(360px, 400px);
	}
}

body.woocommerce-checkout .wc-block-components-sidebar-layout > *,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > *,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout > *,
.entry-content .wc-block-checkout-sidebar-layout > * {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout > *:first-child,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > *:first-child,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout > *:first-child,
.entry-content .wc-block-checkout-sidebar-layout > *:first-child {
	grid-column: 1 / -1;
	order: 1;
}

body.woocommerce-checkout .wc-block-checkout__main,
.entry-content .wc-block-checkout .wc-block-checkout__main {
	min-width: 0;
	width: 100%;
	max-width: 100%;
	order: 2;
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
.entry-content .wc-block-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: 100%;
	order: 3;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-components-sidebar,
	.entry-content .wc-block-checkout .wc-block-checkout__sidebar,
	.entry-content .wc-block-checkout .wc-block-components-sidebar {
		min-width: 360px;
	}

	body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block,
	.entry-content .wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block {
		display: block;
	}
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-checkout .wc-block-components-notices,
.entry-content .wp-block-woocommerce-checkout > .wc-block-components-notices {
	width: 100%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-notices:not(.wc-block-components-notices__snackbar) {
	grid-column: 1 / -1;
	order: 1;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--linen));
	border: 1px solid hsl(var(--foreground) / 0.1);
	border-radius: 1rem;
	padding: 1.5rem;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 700;
	color: hsl(var(--foreground));
	font-size: 1.5rem;
}

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: 'Nunito Sans', system-ui, sans-serif !important;
	font-size: 15px !important;
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: calc(var(--radius) - 8px) !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;
	outline: none !important;
	box-shadow: 0 0 0 1px hsl(var(--primary)) !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;
	min-height: 3rem !important;
	font-family: 'Nunito Sans', system-ui, sans-serif !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	text-transform: none !important;
	box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--primary) / 0.9) !important;
	color: hsl(var(--primary-foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button .wc-block-components-button__text {
	color: hsl(var(--primary-foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: calc(var(--radius) - 8px);
	font-size: 15px;
	background-color: hsl(var(--linen));
	color: hsl(var(--foreground));
	border-color: hsl(var(--border));
	grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-order-summary {
	font-size: 15px;
}

body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-order-summary-item__description {
	color: hsl(var(--foreground) / 0.7);
}

body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	color: hsl(var(--foreground));
	font-weight: 500;
}

body.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__label,
body.woocommerce-checkout .wc-block-components-radio-control__label {
	font-size: 15px;
	color: hsl(var(--foreground) / 0.8);
}

body.woocommerce-checkout .wc-block-components-title.wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__heading {
	font-family: 'Fraunces', Georgia, serif;
}

/* --------------------------------------------------- Cart and account widths */
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
	max-width: 100%;
}

body.woocommerce-cart .wc-block-cart,
body.woocommerce-account .woocommerce {
	font-size: 15px;
}

/* ------------------------------------------------------------- Thank you page */
body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
	color: hsl(var(--foreground));
	font-size: 15px;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 1.25rem;
	border: 1px solid hsl(var(--border));
	border-radius: 1rem;
	background-color: hsl(var(--linen));
}

body.theme-thankyou-page .woocommerce-order-overview li {
	border: 0;
	margin: 0;
	padding: 0 1rem 0 0;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: hsl(var(--foreground) / 0.65);
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.25rem;
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
	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: 'Fraunces', Georgia, serif;
	font-size: 1.5rem;
	font-weight: 700;
	padding: 0 0 1rem 0;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	margin-bottom: 2rem;
}

body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table 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;
}

body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	font-style: normal;
}
