/* Functional and WordPress-generated markup styles. */

[hidden] {
	display: none !important;
}

/* WordPress admin bar: keep sticky/fixed chrome below it. */
:root {
	--admin-bar-offset: 0px;
}

body.admin-bar {
	--admin-bar-offset: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar {
		--admin-bar-offset: 46px;
	}
}

body.admin-bar .site-header,
body.admin-bar .theme-admin-offset {
	top: var(--admin-bar-offset);
}

body.admin-bar #theme-cart-drawer {
	top: var(--admin-bar-offset);
	height: calc(100% - var(--admin-bar-offset));
}

body.admin-bar section[id] {
	scroll-margin-top: calc(80px + var(--admin-bar-offset));
}

/* Hand cursor on every clickable control. */
a,
button,
[role="button"],
[role="radio"],
[role="tab"],
[role="menuitem"],
label,
label[for],
select,
summary,
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="image"],
input[type="checkbox"],
input[type="radio"],
input[type="file"],
[data-nav-section],
[data-nav-url],
[data-cart-open],
[data-cart-close],
[data-cart-qty-update],
[data-menu-toggle],
[data-cat-filter],
[data-shop-more-button],
[data-portfolio-more-button],
[data-scroll-top],
[data-pack-pill],
.theme-product-thumb,
.magnetic-button,
.press-pop,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	cursor: pointer !important;
}

a[aria-disabled="true"],
button:disabled,
button.disabled,
[aria-disabled="true"],
input:disabled,
.disabled {
	cursor: not-allowed;
}

/* Reveal fallbacks: never leave content hidden in the editor or without JS. */
.is-customizer [data-aos],
html:not(.theme-js) [data-aos] {
	opacity: 1 !important;
	transform: none !important;
	filter: none !important;
	transition: none !important;
}

.is-customizer .theme-product-thumb[hidden] {
	display: block !important;
}

/* Logo sizing is a single definition for every context. */
.site-logo-img {
	height: var(--logo-height) !important;
	width: auto !important;
	display: block;
}

.theme-logo-slot {
	height: auto;
	display: flex;
	align-items: center;
}

.site-logo-text {
	line-height: 1.2;
}

/* Side cart ------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 49;
	background: hsl(var(--foreground) / 0.6);
	opacity: 0;
	pointer-events: none;
	transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	pointer-events: auto;
}

#theme-cart-drawer {
	transform: translateX(100%);
	transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.cart-open #theme-cart-drawer {
	transform: translateX(0);
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

.theme-cart-count:empty {
	display: none;
}

/* Hidden "View cart" link injected by WooCommerce after AJAX add-to-cart. */
.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;
}

/* Add-to-cart buttons: disabled state. */
.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;
}

/* Locked state during an AJAX add. */
.theme-btn-loading,
.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;
}

/* Single product page --------------------------------------------------- */
.single-product .theme-product-layout,
.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 .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 {
	overflow-wrap: break-word;
	word-break: break-word;
}

.theme-product-thumb {
	background: transparent;
	cursor: pointer;
	transition: border-color 300ms ease;
}

.theme-product-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Variation selects stay in the DOM for WooCommerce but are never shown. */
.theme-attr-select-hidden {
	display: none !important;
}

.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}

.single-product .variations {
	width: 100%;
	margin: 0;
	border: 0;
}

.single-product .variations tbody td.label {
	display: none;
	padding: 0;
}

.single-product .variations tbody td.value {
	padding: 0;
}

.single-product .woocommerce-variation-price,
.single-product .woocommerce-variation-description,
.single-product .woocommerce-variation-availability {
	display: none;
}

.single-product .woocommerce-variation-add-to-cart {
	margin: 0;
}

.theme-product-details ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.theme-product-details li {
	margin: 0 0 0.75rem;
}

.theme-product-details li:last-child {
	margin-bottom: 0;
}

.theme-product-details p {
	margin: 0 0 0.75rem;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* Product cards --------------------------------------------------------- */
.theme-product-card-wrap {
	display: flex;
	min-width: 0;
}

.theme-product-card-wrap .theme-product-card {
	width: 100%;
}

.theme-product-card .theme-product-card-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
}

.theme-product-card a {
	display: block;
}

.theme-product-card h3 a,
.theme-product-card a h3 {
	display: block;
}

/* Archive grid ---------------------------------------------------------- */
.theme-product-grid {
	width: 100%;
}

.theme-pagination .woocommerce-pagination ul {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.theme-pagination .woocommerce-pagination a,
.theme-pagination .woocommerce-pagination 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));
	font-size: 15px;
	text-decoration: none;
}

.theme-pagination .woocommerce-pagination span.current {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* WordPress / WooCommerce generated markup ------------------------------ */
.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;
}

.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: 0.5rem;
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	font-size: 15px;
	line-height: 1.6;
}

.woocommerce-error {
	border-color: hsl(var(--destructive) / 0.5);
	color: hsl(var(--destructive));
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
	color: hsl(var(--primary));
	font-weight: 600;
}

.woocommerce-notices-wrapper:empty {
	display: none;
}

/* Cart, account and thank you pages share the checkout container width. */
body.theme-cart-page .site-main,
body.theme-account-page .site-main,
body.theme-thankyou-page .site-main,
body.woocommerce-checkout .site-main {
	padding-top: 2.5rem;
	padding-bottom: 4rem;
}

body.theme-cart-page .page-title,
body.theme-account-page .page-title,
body.theme-thankyou-page .page-title,
body.woocommerce-checkout .page-title {
	font-family: 'Brown Cookies', 'DM Serif Display', Georgia, serif;
	font-weight: 400;
	font-size: clamp(2.25rem, 4vw, 3rem);
	line-height: 1.1;
	margin: 0 0 2rem;
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .entry-content,
body.theme-cart-page .entry-content,
body.theme-account-page .entry-content {
	max-width: 100%;
}

body.theme-cart-page .wc-block-cart,
body.theme-account-page .woocommerce {
	color: hsl(var(--foreground));
	font-size: 15px;
}

/* Checkout block -------------------------------------------------------- */
body.woocommerce-checkout .wc-block-checkout {
	display: block;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-components-main {
	min-width: 0;
	width: 100%;
	max-width: none;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-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: var(--checkout-gap, 2.5rem);
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--secondary));
	border: 1px solid hsl(var(--border));
	border-radius: 0.5rem;
	padding: 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,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 0.375rem !important;
	color: hsl(var(--foreground)) !important;
	font-family: 'Nunito Sans', system-ui, sans-serif !important;
	font-size: 15px !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 label,
body.woocommerce-checkout .wc-block-components-select label,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary__title {
	color: hsl(var(--foreground)) !important;
	font-family: 'Nunito Sans', system-ui, sans-serif !important;
	font-size: 15px !important;
}

body.woocommerce-checkout .wc-block-components-checkout-step__heading,
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title {
	font-family: 'Brown Cookies', 'DM Serif Display', Georgia, serif !important;
	font-weight: 400 !important;
	color: hsl(var(--foreground)) !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: 'Nunito Sans', system-ui, sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	height: 3rem !important;
	text-transform: none !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 0.5rem !important;
	background: hsl(var(--card)) !important;
	border: 1px solid hsl(var(--border)) !important;
	color: hsl(var(--foreground)) !important;
	font-size: 15px !important;
}

body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-order-summary {
	background: transparent !important;
}

body.woocommerce-checkout .wc-blocks-components-select__container,
body.woocommerce-checkout .wc-block-components-combobox {
	border-radius: 0.375rem !important;
}

/* 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 h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	font-family: 'Brown Cookies', 'DM Serif Display', Georgia, serif;
	font-weight: 400;
	padding: 0 0 1rem;
	font-size: 1.5rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

body.theme-thankyou-page .woocommerce-order-overview li {
	border: 1px solid hsl(var(--border));
	border-radius: 0.5rem;
	padding: 0.75rem 1rem;
	font-size: 14px;
	color: hsl(var(--muted-foreground));
	text-transform: none;
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	color: hsl(var(--foreground));
	font-size: 15px;
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-size: 15px;
}

body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details 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;
	margin-top: 2rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	font-style: normal;
	border: 1px solid hsl(var(--border));
	border-radius: 0.5rem;
	padding: 1rem 1.25rem;
}

/* WooCommerce cart block ------------------------------------------------ */
body.theme-cart-page .wc-block-cart__main,
body.theme-cart-page .wc-block-cart__sidebar {
	min-width: 0;
}

body.theme-cart-page .wc-block-cart {
	display: block;
}

body.theme-cart-page .wc-block-cart__sidebar {
	background: hsl(var(--secondary));
	border-radius: 0.5rem;
	padding: 1.5rem;
}

body.theme-cart-page .wc-block-components-button {
	border-radius: 9999px;
	font-size: 15px;
	font-weight: 600;
}

/* Forms generated by WooCommerce (account, addresses). */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	background-color: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: 0.375rem;
	color: hsl(var(--foreground));
	font-size: 15px;
}

.woocommerce form .form-row label {
	color: hsl(var(--foreground));
	font-size: 15px;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background-color: hsl(var(--primary));
	border: 1px solid hsl(var(--primary));
	border-radius: 9999px;
	color: hsl(var(--primary-foreground));
	font-family: 'Nunito Sans', system-ui, sans-serif;
	font-size: 15px;
	font-weight: 600;
	padding: 0.75rem 1.5rem;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background-color: hsl(var(--accent));
	border-color: hsl(var(--accent));
	color: hsl(var(--accent-foreground));
}

/* Empty search result state on the archive. */
.theme-product-grid:empty {
	display: none;
}
