/**
 * Theme styles. app.css already ships the design's compiled stylesheet, so
 * this file only carries functional rules plus styling for markup that has no
 * equivalent in the design (WooCommerce and WordPress output).
 */

/* ---------------------------------------------------------------- utility */

[hidden] {
	display: none !important;
}

.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;
}

.screen-reader-text:focus {
	background-color: hsl(var(--background));
	border-radius: 3px;
	box-shadow: 0 0 2px 2px hsl(var(--foreground) / 0.2);
	clip: auto !important;
	clip-path: none;
	color: hsl(var(--primary));
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* ------------------------------------------------------------- home hero */

#home .theme-hero-copy {
	align-items: center;
}

#home .theme-hero-badge {
	width: max-content;
	max-width: 100%;
}

#home .theme-hero-copy .theme-hero-logo,
#home .theme-hero-copy .theme-hero-badge,
#home .theme-hero-copy h1,
#home .theme-hero-copy .theme-hero-subtitle,
#home .theme-hero-copy .theme-hero-actions {
	align-self: center;
}

@media (min-width: 1024px) {
	#home .theme-hero-layout {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: stretch;
	}

	#home .theme-hero-layout.items-center {
		align-items: stretch;
	}

	#home .theme-hero-copy {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
		min-height: 100%;
	}

	#home .theme-hero-copy .theme-hero-logo,
	#home .theme-hero-copy .theme-hero-badge,
	#home .theme-hero-copy h1,
	#home .theme-hero-copy .theme-hero-subtitle,
	#home .theme-hero-copy .theme-hero-actions {
		align-self: auto;
	}

	#home .theme-hero-collage {
		align-self: center;
		margin-left: auto;
		margin-right: 0;
	}
}

/* ------------------------------------------------------- reveal fallbacks */

.no-js [data-aos],
.no-js .reveal,
body.is-customizer [data-aos],
body.is-customizer .reveal {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

body.is-customizer .animate-kenburns-a,
body.is-customizer .animate-kenburns-b,
body.is-customizer .animate-floaty {
	animation: none !important;
}

/* ---------------------------------------------------------------- header */

body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

body.admin-bar #theme-cart-drawer {
	top: 32px;
	height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar #theme-cart-drawer {
		top: 46px;
		height: calc(100% - 46px);
	}
}

.site-logo-text {
	font-size: 1.5rem;
	line-height: 1.15;
}

.site-logo-img {
	width: var(--site-logo-size, 62px);
	height: var(--site-logo-size, 62px);
}

/* -------------------------------------------------------- clickable cues */

a[href],
button:not(:disabled),
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled),
input[type="checkbox"],
input[type="radio"],
select,
summary,
label[for],
[role="button"],
[data-cart-open],
[data-cart-close],
[data-menu-toggle],
[data-shop-more],
[data-cat-slug],
.theme-nav-link,
.theme-mobile-nav-link,
.theme-thumb,
.theme-attr-pill,
.theme-card-add,
.theme-card-quick-view,
.theme-card-media-link,
.add_to_cart_button,
.single_add_to_cart_button {
	cursor: pointer;
}

/* ------------------------------------------------------------ cart drawer */

#theme-cart-drawer {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(20px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out, visibility 0.7s ease-out;
}

body.cart-open #theme-cart-drawer {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 40;
	background-color: hsl(var(--foreground) / 0.3);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s ease-out, visibility 0.7s ease-out;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

.theme-cart-count:empty {
	display: none;
}

/* ----------------------------------------------------------- product cards */

.theme-product-card-wrap {
	height: 100%;
}

.theme-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.theme-product-card__image {
	isolation: isolate;
}

.theme-card-media-link {
	cursor: pointer;
}

.theme-product-card__actions {
	pointer-events: auto;
}

.theme-product-card__actions .theme-card-add,
.theme-product-card__actions .theme-card-quick-view {
	position: relative;
	z-index: 1;
}

.theme-product-card__image img {
	display: block;
}

.theme-product-card .theme-card-name-input:focus {
	outline: none;
}

/* --------------------------------------------------------- product page */

body.theme-no-hero #site-content.single-product-main {
	padding-top: 6rem !important;
}

@media (min-width: 1024px) {
	body.theme-no-hero #site-content.single-product-main {
		padding-top: 7rem !important;
	}
}

.single-product-main .theme-product-media {
	position: relative;
}

.single-product-main .theme-product-main-image {
	position: static !important;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-product-main .theme-product-layout,
.single-product .theme-product-layout,
.single-product .product {
	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-variation-price,
.single-product .woocommerce-variation-description,
.single-product .woocommerce-product-details__short-description,
.single-product .posted_in {
	display: none !important;
}

.single-product .theme-product-related [data-aos],
.single-product .theme-product-related .reveal {
	opacity: 1 !important;
	transform: none !important;
}

.theme-qty-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.theme-qty-input:focus {
	outline: none;
}

/* ----------------------------------------------------- variable products */

.theme-attr-select-hidden {
	display: none !important;
}

.single-product .variations,
.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: 0 0 0.25rem;
}

.single-product .variations tbody td.value {
	padding: 0;
}

.single-product .variations tbody td.label label {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: hsl(var(--foreground) / 0.55);
	margin-bottom: 0.625rem;
}

.single-product .theme-attr-group + .theme-attr-group {
	margin-top: 1rem;
}

.single-product .theme-attr-pill[data-swatch]::before {
	content: "";
	display: inline-block;
	width: 0.75rem;
	height: 0.75rem;
	margin-right: 0.5rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--foreground) / 0.15);
	background-color: var(--pill-swatch, transparent);
	vertical-align: middle;
}

.single-product .theme-attr-pill[data-swatch] {
	--pill-swatch: attr(data-swatch);
}

.single-product .single_variation_wrap {
	margin-top: 1.5rem;
}

.single-product .woocommerce-variation-price {
	margin-bottom: 1rem;
	font-size: 1.25rem;
	font-weight: 500;
	color: hsl(var(--foreground) / 0.9);
}

/* --------------------------------------------------------- add to cart */

.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;
}

.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;
}

.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;
}

/* ------------------------------------------------------------ page titles */

.page-title {
	font-family: "Fredoka", "Nunito", system-ui, sans-serif;
	font-size: 2.25rem;
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: -0.005em;
	margin: 0 0 2.5rem;
	color: hsl(var(--foreground));
}

@media (min-width: 768px) {
	.page-title {
		font-size: 3rem;
	}
}

/* ------------------------------------------- WooCommerce generated markup */

.woocommerce-Price-amount {
	font-variant-numeric: tabular-nums;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: 1rem;
	border-width: 1px;
	border-style: solid;
	font-size: 0.875rem;
	line-height: 1.6;
}

.woocommerce-message,
.woocommerce-info {
	border-color: hsl(var(--accent) / 0.35);
	background-color: hsl(var(--bone));
	color: hsl(var(--foreground) / 0.85);
}

.woocommerce-error {
	border-color: hsl(var(--destructive) / 0.4);
	background-color: hsl(var(--destructive) / 0.08);
	color: hsl(var(--destructive));
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}

.woocommerce-error li {
	margin: 0;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

.woocommerce-notices-wrapper {
	width: 100%;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	border-radius: 0.75rem;
	border: 1px solid hsl(var(--foreground) / 0.15);
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	font-size: 0.875rem;
	padding: 0.75rem 1rem;
}

.woocommerce form .form-row label {
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: hsl(var(--foreground) / 0.55);
}

.woocommerce table.shop_table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.875rem;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-bottom: 1px solid hsl(var(--foreground) / 0.1);
	padding: 0.75rem 0;
	text-align: left;
}

/* ---------------------------------------------------------- checkout block */

body.woocommerce-checkout .wc-block-checkout {
	display: block;
	max-width: none;
	width: 100%;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
	body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-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__sidebar {
	background-color: hsl(var(--linen));
	border-radius: 1rem;
	padding: 2rem;
	border: 1px solid hsl(var(--foreground) / 0.1);
}

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 .woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .woocommerce-checkout .form-row select {
	border-radius: 0.375rem !important;
	border: 1px solid hsl(var(--foreground) / 0.15) !important;
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--foreground)) !important;
	font-family: "Nunito", system-ui, sans-serif !important;
	font-size: 0.875rem !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: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
	color: hsl(var(--foreground) / 0.45) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border-radius: 9999px !important;
	border: 1px solid hsl(var(--primary)) !important;
	font-family: "Nunito", system-ui, sans-serif !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	min-height: 3rem !important;
	padding: 0.75rem 1.75rem !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-notice-banner {
	border-radius: 1rem !important;
	border: 1px solid hsl(var(--accent) / 0.35) !important;
	background-color: hsl(var(--bone)) !important;
	color: hsl(var(--foreground) / 0.85) !important;
	font-size: 0.875rem !important;
}

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__main h2,
body.woocommerce-checkout .wc-block-checkout__sidebar h2 {
	font-family: "Fredoka", "Nunito", system-ui, sans-serif !important;
	font-weight: 600 !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-order-summary {
	font-size: 0.875rem;
}

body.woocommerce-checkout .site-main,
body.woocommerce-checkout .entry-content {
	max-width: 100%;
}

/* ------------------------------------------------- cart / 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 {
	min-width: 0;
	width: 100%;
}

/* -------------------------------------------------------- thank you page */

body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-order-details,
body.theme-thankyou-page .woocommerce-customer-details {
	color: hsl(var(--foreground));
	font-size: 0.9375rem;
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	font-family: "Fredoka", "Nunito", system-ui, sans-serif;
	font-size: 1.5rem;
	font-weight: 600;
	padding: 0 0 1rem;
	margin: 2rem 0 1rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin: 0 0 2rem;
	padding: 1.5rem;
	border-radius: 1rem;
	background-color: hsl(var(--linen));
	border: 1px solid hsl(var(--foreground) / 0.1);
}

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	font-size: 0.875rem;
	color: hsl(var(--foreground) / 0.7);
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	color: hsl(var(--foreground));
	font-size: 1rem;
}

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 hsl(var(--foreground) / 0.1);
	overflow-wrap: break-word;
}

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;
}

/* ------------------------------------------------------------ misc fixes */

.entry-content > .wc-block-checkout,
.entry-content > .woocommerce {
	min-width: 0;
}
