/* Functional and WordPress-generated styling. Source utility classes come from app.css. */

body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

.theme-hero {
	contain: paint;
}

.site-logo-img {
	height: var(--logo-height) !important;
	width: auto !important;
	display: block;
}

.site-logo-text {
	line-height: var(--logo-height);
	display: block;
}

/* Cart drawer visibility */
#theme-cart-drawer,
#theme-cart-overlay {
	opacity: 0;
	visibility: hidden;
	animation: none !important;
	transition: none;
}

body.cart-open #theme-cart-drawer,
body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.7s ease-out;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

.theme-cart-count:empty {
	display: none;
}

/* Reveal fallbacks */
body.is-customizer [data-aos],
body.is-customizer [data-aos="fade"],
body.is-customizer [data-aos="zoom"],
body.is-customizer [data-aos="left"],
body.is-customizer [data-aos="right"] {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

/* Shop card filtering */
.theme-product-card-wrap.theme-card-hidden {
	display: none !important;
}

/* Links that wrap images */
a.theme-product-card-wrap {
	display: block;
}

a.theme-product-card-wrap img {
	display: block;
}

/* Quantity inputs */
.theme-qty-input {
	border: 0;
	background: transparent;
	-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;
}

/* Single product */
.single-product .theme-product-layout {
	min-width: 0;
}

.single-product .theme-product-gallery,
.single-product .theme-product-info,
.single-product .product > div {
	min-width: 0;
	max-width: 100%;
}

.single-product .theme-product-thumbnails {
	flex-wrap: wrap;
	max-width: 100%;
}

.single-product .theme-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.theme-qty-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

.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;
	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-layout .text-sm {
	overflow-wrap: break-word;
	word-break: break-word;
}

/* Variable products */
.theme-variations-native,
.single-product .variations {
	display: none !important;
}

.theme-attr-select-hidden {
	display: none !important;
}

.single-product .variations_form .single_variation_wrap {
	margin-top: 0.5rem;
}

.single-product .single_variation_wrap .woocommerce-variation {
	margin-bottom: 0.75rem;
}

.single-product .single_variation_wrap .woocommerce-variation-price {
	color: hsl(var(--primary));
	font-weight: 600;
}

/* 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;
}

/* Hide the WooCommerce "View cart" link injected after 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;
}

/* Loading states */
.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-notices-wrapper {
	width: 100%;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--card));
	color: hsl(var(--card-foreground));
	font-size: 0.875rem;
	line-height: 1.5;
}

.woocommerce-error {
	border-color: hsl(var(--destructive) / 0.4);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* WordPress page titles */
.page-title {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-style: normal;
	font-weight: 400;
	font-size: 2.25rem;
	line-height: 1.1;
	margin: 0 0 2.5rem;
	color: hsl(var(--foreground));
}

@media (min-width: 768px) {
	.page-title {
		font-size: 3rem;
	}
}

@media (min-width: 768px) {
	.page-title {
		font-size: 3rem;
	}
}

/* Entry content */
.entry-content {
	min-width: 0;
}

.entry-content > * {
	max-width: 100%;
}

.entry-content p {
	margin-bottom: 1rem;
}

.entry-content a {
	text-decoration: underline;
}

/* WordPress accessibility helpers */
.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;
}

/* Pagination */
.woocommerce-pagination,
.navigation.pagination {
	margin-top: 3rem;
}

.woocommerce-pagination ul,
.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
	justify-content: center;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
.navigation.pagination a,
.navigation.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.75rem;
	border: 1px solid hsl(var(--border));
	border-radius: 9999px;
	color: hsl(var(--foreground));
	background: transparent;
}

.woocommerce-pagination ul li span.current,
.navigation.pagination span.current {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* WooCommerce classic cart / account / forms */
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	overflow: hidden;
	background: hsl(var(--card));
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 0.9rem 1rem;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
	vertical-align: middle;
}

.woocommerce table.shop_table th {
	font-weight: 600;
}

.woocommerce table.shop_table .product-thumbnail img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: var(--radius);
}

body.woocommerce-cart .woocommerce .quantity input.qty,
body.woocommerce-cart .woocommerce .cart input.qty {
	width: 4.5rem;
	height: 2.75rem;
	border: 1px solid hsl(var(--border));
	border-radius: 9999px;
	text-align: center;
	background: hsl(var(--background));
	color: hsl(var(--foreground));
}

body.woocommerce-cart .woocommerce .button,
body.woocommerce-cart .woocommerce a.button,
body.woocommerce-cart .woocommerce button.button,
body.woocommerce-cart .woocommerce input.button,
body.theme-account-page .woocommerce .button,
body.theme-account-page .woocommerce a.button,
body.theme-account-page .woocommerce button.button,
body.theme-thankyou-page .woocommerce .button,
body.theme-thankyou-page .woocommerce a.button,
body.theme-thankyou-page .woocommerce button.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.625rem 1.5rem;
	border: 1px solid hsl(var(--primary));
	border-radius: 9999px;
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-family: 'Karla', system-ui, -apple-system, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 300ms cubic-bezier(0.22, 1, 0.36, 1), border-color 300ms cubic-bezier(0.22, 1, 0.36, 1), color 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.woocommerce-cart .woocommerce .button:hover,
body.woocommerce-cart .woocommerce a.button:hover,
body.woocommerce-cart .woocommerce button.button:hover,
body.woocommerce-cart .woocommerce input.button:hover,
body.theme-account-page .woocommerce .button:hover,
body.theme-account-page .woocommerce a.button:hover,
body.theme-account-page .woocommerce button.button:hover,
body.theme-thankyou-page .woocommerce .button:hover,
body.theme-thankyou-page .woocommerce a.button:hover,
body.theme-thankyou-page .woocommerce button.button:hover,
.woocommerce #respond input#submit:hover {
	background: hsl(var(--primary) / 0.9);
	color: hsl(var(--primary-foreground));
}

body.woocommerce-cart .woocommerce .button.alt,
body.woocommerce-cart .woocommerce a.button.alt,
body.woocommerce-cart .woocommerce button.button.alt,
body.theme-account-page .woocommerce .button.alt,
body.theme-account-page .woocommerce a.button.alt,
body.theme-account-page .woocommerce button.button.alt {
	background: hsl(var(--accent));
	border-color: hsl(var(--accent));
	color: hsl(var(--accent-foreground));
}

.woocommerce .woocommerce-form-row input.input-text,
.woocommerce .woocommerce-Input,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	width: 100%;
	height: 3rem;
	padding: 0 1rem;
	border: 1px solid hsl(var(--border));
	border-radius: 0.75rem;
	background: hsl(var(--background));
	color: hsl(var(--foreground));
	font-family: 'Karla', system-ui, -apple-system, sans-serif;
	font-size: 15px;
}

.woocommerce form .form-row label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: hsl(var(--accent));
	opacity: 0.8;
	margin-bottom: 0.375rem;
}

.woocommerce form .form-row {
	margin-bottom: 1rem;
}

.woocommerce a.remove {
	color: hsl(var(--muted-foreground)) !important;
}

.woocommerce a.remove:hover {
	background: hsl(var(--destructive)) !important;
	color: hsl(var(--destructive-foreground)) !important;
}

.woocommerce-info::before,
.woocommerce-message::before {
	display: none;
}

/* Checkout block */
body.woocommerce-checkout .theme-page-container,
body.woocommerce-cart .theme-page-container,
body.theme-account-page .theme-page-container {
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
}

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,
	body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 2rem;
	box-shadow: var(--shadow-elevated);
}

body.woocommerce-checkout .wc-block-components-notice-banner,
body.woocommerce-checkout .wc-block-components-notice-banner.is-error,
body.woocommerce-checkout .wc-block-components-notice-banner.is-info {
	border-radius: var(--radius);
	border-color: hsl(var(--border));
	background: hsl(var(--card));
	color: hsl(var(--card-foreground));
	font-family: 'Karla', system-ui, -apple-system, sans-serif;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-textarea,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 0.75rem !important;
	background-color: hsl(var(--card)) !important;
	color: hsl(var(--foreground)) !important;
	font-family: 'Karla', system-ui, -apple-system, sans-serif !important;
	font-size: 15px !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-textarea:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus {
	outline: none !important;
	box-shadow: 0 0 0 2px hsl(var(--accent) / 0.4) !important;
	border-color: hsl(var(--accent)) !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 {
	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: 'Karla', system-ui, -apple-system, sans-serif !important;
	font-weight: 600 !important;
	min-height: 3.5rem;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__description {
	font-family: 'Karla', system-ui, -apple-system, sans-serif;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__main h2,
body.woocommerce-checkout .wc-block-checkout__main h3 {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-weight: 400;
}

body.woocommerce-checkout .wc-block-checkout__main h2,
body.woocommerce-checkout .wc-block-checkout__main h3 {
	font-size: 1.5rem;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image img {
	border-radius: var(--radius);
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	order: 2;
}

body.woocommerce-checkout .wc-block-checkout__main {
	order: 1;
}

/* Cart block */
body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .wp-block-woocommerce-cart {
	font-family: 'Karla', system-ui, -apple-system, sans-serif;
}

body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button {
	background-color: hsl(var(--primary)) !important;
	border-radius: 9999px !important;
	color: hsl(var(--primary-foreground)) !important;
}

body.woocommerce-cart .wc-block-cart-items {
	border-color: hsl(var(--border));
}

/* Thank you page */
body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order > p {
	font-size: 1rem;
	margin-bottom: 1rem;
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-weight: 400;
	font-size: 1.75rem;
	line-height: 1.2;
	padding: 0 0 1rem;
	margin: 0;
	display: block;
}

body.theme-thankyou-page .woocommerce-order-details {
	margin-top: 2rem;
}

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 1rem;
	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-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	padding: 1.5rem;
	margin: 1.5rem 0;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--card));
}

body.theme-thankyou-page .woocommerce-order-overview li {
	border: 0;
	padding: 0;
	margin: 0;
	float: none;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	color: hsl(var(--foreground));
	font-size: 1rem;
	margin-top: 0.25rem;
}

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 {
	font-style: normal;
	max-width: 480px;
	overflow-wrap: break-word;
	padding: 1.5rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--card));
}

/* Account */
body.theme-account-page .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

body.theme-account-page .woocommerce-MyAccount-navigation a {
	display: inline-flex;
	padding: 0.625rem 1.25rem;
	border: 1px solid hsl(var(--border));
	border-radius: 9999px;
	color: hsl(var(--foreground));
}

body.theme-account-page .woocommerce-MyAccount-navigation li.is-active a {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* Product description paragraphs */
.single-product .theme-product-layout .border-t p {
	margin-bottom: 0.75rem;
}

.single-product .theme-product-layout .border-t p:last-child {
	margin-bottom: 0;
}
