/**
 * Theme styles for markup that has no equivalent in the source design
 * (WooCommerce output, the cart drawer, the checkout block) plus a few
 * functional rules. Layout and typography for designed elements come from
 * app.css, which ships the compiled source stylesheet.
 */

:root {
	--theme-radius-card: 1.5rem;
	--theme-font-display: "DM Serif Display", ui-serif, Georgia, serif;
	--theme-font-sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
}

/* -------------------------------------------------------- Interactive cursors */
a[href],
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
select,
summary,
[role="button"],
.press,
.theme-drawer-close,
.theme-drawer-qty-btn,
.theme-drawer-remove,
[data-cart-open],
[data-menu-toggle],
[data-shop-toggle],
[data-card-photo],
[data-qty-minus],
[data-qty-plus],
[data-theme-add-to-cart],
[data-theme-buy-now],
.add_to_cart_button,
.single_add_to_cart_button,
.theme-variation-pill,
.woocommerce-pagination a {
	cursor: pointer;
}

/* ------------------------------------------------------------- Site header */
.site-header {
	transition:
		box-shadow 350ms cubic-bezier(0.22, 1, 0.36, 1),
		background-color 350ms ease,
		border-color 350ms ease;
}

html[data-scrolled="true"] .site-header {
	box-shadow: 0 10px 30px -18px color-mix(in oklab, var(--foreground) 35%, transparent);
	background-color: color-mix(in srgb, var(--background) 92%, transparent);
	backdrop-filter: blur(10px);
}

.theme-mobile-nav {
	flex-direction: column;
}

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

body.cart-open {
	overflow: hidden;
}

/* ---------------------------------------------------------------------- Logo */
.site-logo-img {
	height: var(--logo-height, 80px) !important;
	width: 280px !important;
	max-width: 100%;
	object-fit: contain;
	display: block;
}

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

@media (max-width: 767px) {
	.site-logo-img {
		height: calc(var(--logo-height, 80px) * 0.8) !important;
		width: 200px !important;
	}
	.site-logo-text {
		line-height: calc(var(--logo-height, 80px) * 0.8);
	}
}

/* ------------------------------------------------------------- Product cards */
.theme-cart-count:empty {
	display: none;
}

.theme-product-card__image-link {
	display: block;
	position: absolute;
	inset: 0;
	z-index: 1;
}

.theme-product-card .relative.aspect-square [data-card-photo] {
	position: relative;
	z-index: 4;
	cursor: pointer;
}

.theme-product-card > .flex.flex-1.flex-col {
	position: relative;
	z-index: 5;
}

.theme-product-card .zoom-img,
.single-product #product-main-img,
.theme-drawer-thumb,
.theme-related-card img {
	height: 100% !important;
}

.theme-product-card {
	position: relative;
	height: 100%;
}

.theme-product-card .price,
.theme-related-card .price {
	margin: 0;
	font: inherit;
	color: inherit;
}

.theme-product-card .woocommerce-Price-amount,
.theme-related-card .woocommerce-Price-amount,
.single-product [data-product-price] .woocommerce-Price-amount {
	font: inherit;
	color: inherit;
}

.theme-stock-badge {
	position: absolute;
	bottom: 0.75rem;
	left: 0.75rem;
	z-index: 3;
	border-radius: 9999px;
	background: var(--foreground);
	color: var(--background);
	padding: 0.25rem 0.75rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.theme-related-card {
	display: block;
	transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-related-card:hover {
	transform: translate3d(0, -6px, 0);
	box-shadow: 0 18px 40px -20px color-mix(in oklab, var(--foreground) 35%, transparent);
}

/* ------------------------------------------------------------------ Quantity */
.theme-qty-input {
	-moz-appearance: textfield;
	appearance: textfield;
	background: transparent;
	border: 0;
}

.theme-404 {
	min-height: 70vh;
}

.theme-entry-list > * + * {
	margin-top: 3rem;
}

.site-logo-text--inline {
	margin-left: 0.75rem;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

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

/* --------------------------------------------------------- Add to cart 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-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 products UI */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}

.single-product .variations tbody th.label,
.single-product .variations tbody td.label {
	display: none;
}

.single-product .variations tbody td.value {
	padding-top: 0;
}

.single-product .variations select {
	width: 100%;
	border-radius: 0.75rem;
	border: 1px solid var(--input);
	background: var(--background);
	padding: 0.75rem 1rem;
	color: var(--foreground);
	font-size: 1rem;
}

.single-product .variations td.value {
	position: relative;
}

.single-product .theme-variation-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.single-product .theme-variation-pill {
	border-radius: 9999px;
	border: 1px solid var(--border);
	background: var(--background);
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.single-product .theme-variation-pill.is-active,
.single-product .theme-variation-pill:hover {
	border-color: var(--foreground);
	background: var(--foreground);
	color: var(--background);
}

.single-product .variations .theme-variation-label {
	display: block;
	font-family: var(--theme-font-display, inherit);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 0.5rem;
}

.single-product .variations select.theme-variation-select-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.single-product .theme-product-gallery,
.single-product .theme-product-info,
.single-product .theme-product-layout {
	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 .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,
.single-product .product-description {
	overflow-wrap: break-word;
	word-break: break-word;
}

/* -------------------------------------------------------------- Cart drawer */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--foreground) 45%, transparent);
	opacity: 0;
	visibility: hidden;
	transition: opacity 400ms cubic-bezier(0.22, 1, 0.36, 1), visibility 400ms;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
}

#theme-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	width: min(420px, 100%);
	display: flex;
	flex-direction: column;
	background: var(--background);
	color: var(--foreground);
	transform: translateX(100%);
	transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
	box-shadow: -18px 0 40px -20px color-mix(in oklab, var(--foreground) 35%, transparent);
}

body.cart-open #theme-cart-drawer {
	transform: none;
}

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

.theme-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem;
	border-bottom: 1px solid var(--border);
}

.theme-drawer-close {
	display: inline-flex;
	height: 2.5rem;
	width: 2.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	color: var(--foreground);
	background: transparent;
	transition: background-color 200ms ease;
}

.theme-drawer-close:hover {
	background: var(--muted);
}

.theme-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 1.5rem;
}

.theme-drawer-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	text-align: center;
}

.theme-drawer-items {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.theme-drawer-item {
	display: flex;
	gap: 1rem;
}

.theme-drawer-thumb-link {
	flex-shrink: 0;
}

.theme-drawer-thumb {
	display: block;
	width: 5rem;
	height: 5rem;
	border-radius: 1rem;
	object-fit: cover;
	background: var(--muted);
}

.theme-drawer-item-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
	gap: 0.25rem;
}

.theme-drawer-item-row {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
}

.theme-drawer-item-row a {
	min-width: 0;
	overflow-wrap: anywhere;
}

.theme-drawer-note {
	font-size: 0.8125rem;
	overflow-wrap: anywhere;
}

.theme-drawer-controls {
	margin-top: 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.theme-drawer-qty-btn {
	display: inline-flex;
	height: 2rem;
	width: 2rem;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	border: 1px solid var(--border);
	background: transparent;
}

.theme-drawer-qty-btn:hover {
	background: var(--muted);
}

.theme-drawer-qty {
	min-width: 1.5rem;
	text-align: center;
	font-weight: 600;
}

.theme-drawer-remove {
	margin-left: auto;
	display: inline-flex;
	height: 2rem;
	width: 2rem;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	color: var(--muted-foreground);
	background: transparent;
}

.theme-drawer-remove:hover {
	color: var(--foreground);
}

.theme-drawer-foot {
	border-top: 1px solid var(--border);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.theme-drawer-subtotal {
	display: flex;
	justify-content: space-between;
	font-size: 1.125rem;
}

.theme-drawer-cta {
	display: block;
	border-radius: 9999px;
	background: var(--primary);
	color: var(--primary-foreground);
	padding: 0.875rem 1.75rem;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 600;
	transition: opacity 250ms ease;
}

.theme-drawer-cta:hover {
	opacity: 0.9;
}

.theme-drawer-cta--outline {
	background: transparent;
	color: var(--foreground);
	border: 1px solid var(--foreground);
}

/* ------------------------------------------------------------------- Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: var(--theme-radius-card);
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--foreground);
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	list-style: none;
	font-size: 0.9375rem;
}

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

.woocommerce-error {
	border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

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

#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* --------------------------------------------------------------- Pagination */
.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
	display: inline-flex;
	height: 2.5rem;
	min-width: 2.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	border: 1px solid var(--border);
	padding: 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--foreground);
}

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

/* --------------------------------------------------------------- Page shell */
.page-title {
	margin-bottom: 1.5rem;
}

/* Highlight spans must keep accent colors on tinted section backgrounds. */
#contact .text-brand-gold {
	color: var(--brand-gold);
}

body.theme-cart-page .theme-page-main {
	max-width: 72rem;
}

body.woocommerce-checkout .entry-content {
	max-width: 100%;
}

body.woocommerce-checkout .theme-page-main {
	padding-bottom: 4rem;
}

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

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--card) !important;
	border-radius: var(--theme-radius-card);
	padding: 1.5rem;
	border: 1px solid var(--border);
}

body.woocommerce-checkout .wc-block-checkout__main h2,
body.woocommerce-checkout .wc-block-checkout__main h3,
body.woocommerce-checkout .wc-block-checkout__sidebar h2,
body.woocommerce-checkout .wc-block-checkout__sidebar h3,
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title {
	font-family: var(--theme-font-display);
	font-weight: 400;
	color: var(--foreground);
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-blocks-components-select__select {
	width: 100% !important;
	max-width: none !important;
	border-radius: 0.75rem !important;
	border: 1px solid var(--input) !important;
	background-color: var(--background) !important;
	color: var(--foreground) !important;
	font-family: var(--theme-font-sans) !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-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus {
	border-color: var(--primary) !important;
	outline: none !important;
	box-shadow: 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 {
	color: var(--muted-foreground) !important;
	font-family: var(--theme-font-sans) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	border-radius: 9999px !important;
	background-color: var(--primary) !important;
	color: var(--primary-foreground) !important;
	padding: 1rem 1.75rem !important;
	font-family: var(--theme-font-sans) !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	opacity: 0.9;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--theme-radius-card);
	border-color: var(--border);
	background: var(--card);
	color: var(--foreground);
}

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

body.woocommerce-checkout .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-components-order-summary-item__description {
	color: var(--foreground);
	font-family: var(--theme-font-sans);
}

body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-item__value {
	font-family: var(--theme-font-sans);
}

/* ------------------------------------------- Classic shortcode checkout form */
body.theme-checkout-page form.checkout,
body.woocommerce-checkout form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}

@media (min-width: 768px) {
	body.theme-checkout-page form.checkout,
	body.woocommerce-checkout form.checkout {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: 2.5rem;
	}

	body.theme-checkout-page #customer_details,
	body.woocommerce-checkout #customer_details {
		grid-column: 1;
		grid-row: 1 / span 4;
		float: none;
		width: 100%;
	}

	body.theme-checkout-page #customer_details.col2-set,
	body.woocommerce-checkout #customer_details.col2-set {
		display: block;
		width: 100%;
	}

	body.theme-checkout-page #customer_details .col-1,
	body.theme-checkout-page #customer_details .col-2,
	body.woocommerce-checkout #customer_details .col-1,
	body.woocommerce-checkout #customer_details .col-2 {
		float: none;
		width: 100%;
	}

	body.theme-checkout-page #customer_details .col-2,
	body.woocommerce-checkout #customer_details .col-2 {
		margin-top: 2rem;
	}

	body.theme-checkout-page #order_review_heading,
	body.theme-checkout-page #order_review,
	body.woocommerce-checkout #order_review_heading,
	body.woocommerce-checkout #order_review {
		grid-column: 2;
		width: 100%;
	}

	body.theme-checkout-page #order_review,
	body.woocommerce-checkout #order_review {
		border-radius: var(--theme-radius-card);
		border: 1px solid var(--border);
		background: var(--card);
		padding: 1.5rem;
	}
}

body.theme-checkout-page .woocommerce-checkout .form-row input.input-text,
body.theme-checkout-page .woocommerce-checkout .form-row select,
body.theme-checkout-page .woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .woocommerce-checkout .form-row select,
body.woocommerce-checkout .woocommerce-checkout .form-row textarea {
	width: 100% !important;
	border-radius: 0.75rem !important;
	border: 1px solid var(--input) !important;
	background-color: var(--background) !important;
	color: var(--foreground) !important;
	font-family: var(--theme-font-sans) !important;
	font-size: 1rem !important;
	box-shadow: none !important;
	padding: 0.75rem 1rem !important;
}

body.theme-checkout-page #place_order,
body.woocommerce-checkout #place_order {
	border-radius: 9999px !important;
	background-color: var(--primary) !important;
	color: var(--primary-foreground) !important;
	font-weight: 600 !important;
	cursor: pointer !important;
}

/* ------------------------------------------------------ Order received page */
body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

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(--theme-font-display);
	font-weight: 400;
	font-size: 1.75rem;
	padding: 0 0 1rem 0;
	color: var(--foreground);
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0;
	padding: 1.5rem;
	list-style: none;
	border-radius: var(--theme-radius-card);
	background: var(--card);
	border: 1px solid var(--border);
}

body.theme-thankyou-page .woocommerce-order-overview li {
	flex: 1 1 12rem;
	min-width: 0;
	border: 0;
	margin: 0;
	padding: 0;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted-foreground);
}

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

body.theme-thankyou-page .woocommerce-order-details,
body.theme-thankyou-page .woocommerce-customer-details {
	border-radius: var(--theme-radius-card);
	background: var(--card);
	border: 1px solid var(--border);
	padding: 1.5rem;
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}

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 var(--border);
	text-align: left;
	overflow-wrap: anywhere;
}

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;
	border: 0;
	padding: 0;
	font-style: normal;
}

body.theme-thankyou-page .woocommerce-thankyou-order-received {
	font-family: var(--theme-font-display);
	font-size: 1.75rem;
	margin-bottom: 1rem;
}

/* -------------------------------------------------- Customizer preview safety */
body.is-customizer [data-reveal] {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
	#theme-cart-drawer,
	#theme-cart-overlay {
		transition: none;
	}
}
