/* Crafty Creations809 — theme styles for WordPress/WooCommerce markup only. */

@font-face {
	font-family: 'DM Serif Display';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/dm-serif-display-latin-400-normal.woff2') format('woff2');
}

@font-face {
	font-family: 'DM Serif Display';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/dm-serif-display-latin-400-italic.woff2') format('woff2');
}

html {
	scroll-behavior: smooth;
}

section[id] {
	scroll-margin-top: 80px;
}

body {
	font-family: 'Geist', system-ui, -apple-system, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'DM Serif Display', Georgia, serif;
	font-weight: 400;
	letter-spacing: 0;
}

.footer-surface {
	background-color: hsl(var(--footer));
}

@media screen and (min-width: 783px) {
	html.admin-bar .site-header.fixed {
		top: 32px;
	}
}

html.admin-bar #theme-cart-drawer {
	top: 32px;
	height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
	html.admin-bar #theme-cart-drawer {
		top: 46px;
		height: calc(100% - 46px);
	}
}

[hidden] {
	display: none !important;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------- Header */

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

@media (max-width: 639px) {
	.site-logo-img {
		height: calc(var(--logo-height, 48px) * 0.667) !important;
	}
}

@media (min-width: 640px) and (max-width: 1023px) {
	.site-logo-img {
		height: calc(var(--logo-height, 48px) * 0.833) !important;
	}
}

/* ------------------------------------------------------------ Cart badge */

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

/* ------------------------------------------------------------ Cart drawer */

#theme-cart-drawer {
	transform: translateY(20px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: transform 0.7s ease-out, opacity 0.7s ease-out, visibility 0.7s;
}

body.cart-open #theme-cart-drawer {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background-color: hsl(var(--foreground) / 0.3);
	z-index: 49;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s ease-out, visibility 0.7s;
}

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

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

/* -------------------------------------------------------- Reveal fallback */

body.is-customizer [data-reveal],
body:not(.theme-reveal-ready) [data-reveal] {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

/* ------------------------------------------------------- Product page bits */

.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 .theme-add-to-cart-area > * {
	flex: 1 1 0%;
	min-width: 160px;
}

@media (max-width: 639px) {
	.single-product .theme-add-to-cart-area {
		flex-direction: column;
		flex-wrap: nowrap;
	}

	.single-product .theme-add-to-cart-area > * {
		flex: 0 0 auto;
		width: 100%;
		min-width: 0;
		min-height: 3rem;
	}
}

.single-product .single_add_to_cart_button {
	flex: 1 1 0%;
	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 .variations {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}

.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}

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

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

.single-product .variations_form {
	margin: 0;
}

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

.single-product .woocommerce-variation-price,
.single-product .woocommerce-variation-availability,
.single-product .woocommerce-variation-description {
	display: none;
}

.single-product .single_variation_wrap {
	display: block;
}

.theme-qty-input {
	-moz-appearance: textfield;
	appearance: textfield;
	background: transparent;
	border: 0;
	width: 3.25rem;
}

.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;
}

.theme-thumb img {
	display: block;
}

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

/* ------------------------------------------------------------ WC notices */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0.875rem 1.25rem;
	border: 1px solid hsl(var(--foreground) / 0.15);
	border-radius: calc(var(--radius) - 2px);
	background-color: hsl(var(--linen));
	color: hsl(var(--foreground));
	font-size: 14px;
}

.woocommerce-message {
	border-left: 3px solid hsl(var(--accent));
}

.woocommerce-error {
	border-left: 3px solid hsl(var(--destructive));
}

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

/* --------------------------------------------------------- WC pagination */

.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.75rem;
	border: 1px solid hsl(var(--foreground) / 0.25);
	border-radius: 9999px;
	font-size: 14px;
	color: hsl(var(--foreground));
}

.woocommerce-pagination .current {
	background-color: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* ------------------------------------------------------ Page title parity */

.page-title {
	font-family: 'DM Serif Display', Georgia, serif;
	font-weight: 400;
	letter-spacing: 0;
}

/* ------------------------------------------------ Cart / account pages */

body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
body.theme-cart-page .site-main,
body.theme-account-page .site-main {
	padding-bottom: 4rem;
}

body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content,
body.theme-cart-page .entry-content,
body.theme-account-page .entry-content {
	max-width: 100%;
}

body.woocommerce-cart .entry-content > *,
body.woocommerce-account .entry-content > * {
	min-width: 0;
	max-width: 100%;
}

.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	color: hsl(var(--foreground));
}

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

.woocommerce table.shop_table th {
	font-weight: 500;
	color: hsl(var(--foreground) / 0.65);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-account .woocommerce-Input {
	height: 3rem;
	width: 100%;
	border: 1px solid hsl(var(--foreground) / 0.15);
	border-radius: calc(var(--radius) - 2px);
	background-color: hsl(var(--ivory));
	padding: 0 1rem;
	font-size: 14px;
	color: hsl(var(--foreground));
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	border-color: hsl(var(--primary));
	outline: none;
}

.woocommerce form .form-row label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: hsl(var(--foreground) / 0.55);
}

/* ---------------------------------------------------------- Checkout block */

body.woocommerce-checkout .site-main {
	padding-top: calc(var(--logo-height, 48px) + 6rem);
	padding-bottom: 4rem;
}

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

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, 2.5rem);
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-components-notice-banner,
body.woocommerce-checkout .wc-block-checkout__form > .wc-block-components-notice-banner {
	grid-column: 1 / -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-checkout-step__title,
body.woocommerce-checkout .wc-block-checkout__main h2,
body.woocommerce-checkout .wc-block-checkout__sidebar h2 {
	font-family: 'DM Serif Display', Georgia, serif;
	font-weight: 400;
	letter-spacing: 0;
	font-size: 1.5rem;
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-textarea 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 {
	background-color: hsl(var(--ivory)) !important;
	border: 1px solid hsl(var(--foreground) / 0.15) !important;
	border-radius: calc(var(--radius) - 2px) !important;
	color: hsl(var(--foreground)) !important;
	font-family: 'Geist', system-ui, -apple-system, sans-serif !important;
	font-size: 14px !important;
	width: 100% !important;
	max-width: none !important;
	box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus {
	border-color: hsl(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,
body.woocommerce-checkout .wc-block-components-radio-control__label {
	color: hsl(var(--foreground) / 0.6) !important;
	font-family: 'Geist', system-ui, -apple-system, sans-serif !important;
	font-size: 13px !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;
	color: hsl(var(--primary-foreground)) !important;
	border: 1px solid hsl(var(--primary)) !important;
	border-radius: 9999px !important;
	font-family: 'Geist', system-ui, -apple-system, sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	min-height: 3rem !important;
	box-shadow: none !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-order-summary-item__quantity,
body.woocommerce-checkout .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-components-order-summary-item__description {
	font-family: 'Geist', system-ui, -apple-system, sans-serif !important;
	color: hsl(var(--foreground)) !important;
	font-size: 14px !important;
}

body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-item__value {
	font-size: 14px !important;
	color: hsl(var(--foreground) / 0.75) !important;
}

body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: hsl(var(--foreground)) !important;
	font-weight: 500 !important;
}

/* ------------------------------------------------------ Thank you page */

body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
	font-size: 15px;
	color: hsl(var(--foreground) / 0.8);
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	font-family: 'DM Serif Display', Georgia, serif;
	font-weight: 400;
	font-size: 1.75rem;
	letter-spacing: 0;
	color: hsl(var(--foreground));
	padding: 0 0 1rem 0;
}

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(--foreground) / 0.1);
	border-radius: 1rem;
	background-color: hsl(var(--linen));
}

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	font-size: 13px;
	color: hsl(var(--foreground) / 0.7);
}

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

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

body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td {
	padding: 0.75rem;
	border-bottom: 1px solid hsl(var(--foreground) / 0.1);
	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;
	margin-top: 2rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	border: 1px solid hsl(var(--foreground) / 0.1);
	border-radius: 1rem;
	padding: 1.25rem;
	font-style: normal;
	font-size: 14px;
	color: hsl(var(--foreground) / 0.8);
}

/* ------------------------------------------- WooCommerce block cart page */

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

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
	min-width: 0;
	max-width: 100%;
}

body.woocommerce-cart .wc-block-cart__sidebar {
	background-color: hsl(var(--linen));
	border: 1px solid hsl(var(--foreground) / 0.1);
	border-radius: 1rem;
	padding: 1.5rem;
}
