/* ==========================================================================
   Gifted by Glo — functional and WordPress-generated markup styles.
   Source utility classes come from app.css; nothing here restyles them.
   ========================================================================== */

:root {
	--header-height: 104px;
	--color-primary: hsl(var(--primary));
	--color-secondary: hsl(var(--secondary));
	--color-border: hsl(var(--border));
	--color-surface: hsl(var(--linen));
	--card-radius: var(--radius);
}

[hidden] {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Header scroll states
   -------------------------------------------------------------------------- */
.site-header .theme-header-bar {
	transition-property: background-color, border-color, backdrop-filter;
}

body.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: var(--wp-admin--admin-bar--height, 46px);
	}
}

.site-header.is-solid .theme-header-bar {
	background-color: hsl(var(--ivory) / 0.9);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	border-bottom-color: hsl(var(--foreground) / 0.1);
}

.site-header.is-solid .theme-nav-link {
	color: hsl(var(--foreground) / 0.75);
}

.site-header.is-solid .theme-cart-button,
.site-header.is-solid .theme-menu-toggle {
	color: hsl(var(--foreground));
}

.site-header.is-solid .theme-nav-underline {
	background-color: hsl(var(--accent));
}

.site-logo-img {
	height: var(--logo-height, 44px) !important;
	width: auto !important;
	display: block;
}

.site-logo-text {
	line-height: var(--logo-height, 44px);
	display: block;
}

.site-brand-name {
	color: hsl(var(--foreground));
}

.site-header:not(.is-solid) .site-brand-name {
	color: hsl(var(--background));
}

.theme-mobile-menu a {
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Reveal fallbacks (Customizer preview / no observer)
   -------------------------------------------------------------------------- */
body.is-customizer [data-reveal],
body.is-customizer .reveal,
body.is-customizer .reveal-item,
body.is-customizer .scale-in-item {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

.no-js [data-reveal] {
	opacity: 1 !important;
	transform: none !important;
}

/* --------------------------------------------------------------------------
   Home / inner page spacing
   -------------------------------------------------------------------------- */
.theme-home-main {
	padding-top: 0;
}

.theme-page-main {
	padding-top: calc(var(--header-height) + 1.5rem);
}

@media (min-width: 1024px) {
	:root {
		--header-height: 116px;
	}
}

/* --------------------------------------------------------------------------
   Buttons that gain a WooCommerce functional class
   -------------------------------------------------------------------------- */
a.theme-btn,
button.theme-btn,
.theme-btn {
	text-decoration: none;
	cursor: pointer;
}

a[href],
button:not(:disabled),
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled),
[type="reset"]:not(:disabled),
label[for],
select,
summary,
[data-scroll-to],
[data-section-anchor],
.theme-card-link,
.theme-nav-link,
.theme-mobile-link,
.theme-menu-toggle,
.theme-cart-button,
.theme-badge-toggle,
[data-cart-open],
[data-cart-close],
[data-cart-remove],
[data-menu-toggle],
[data-faq-more],
[data-shop-filter],
[data-shop-more],
[data-badge-toggle],
[data-badge-close],
[data-badge-shop],
[data-back-to-top],
.cursor-pointer {
	cursor: pointer;
}

.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,
a.single_add_to_cart_button.disabled,
a.theme-btn.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;
}

a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Quantity input inside the source pill wrapper
   -------------------------------------------------------------------------- */
.theme-quantity-wrapper {
	display: inline-flex;
	align-items: center;
}

.theme-quantity-wrapper .theme-qty-input,
.theme-quantity-wrapper .qty {
	background: transparent;
	border: 0;
	box-shadow: none;
	-moz-appearance: textfield;
	appearance: textfield;
	padding: 0.625rem 0;
	min-width: 44px;
	width: 44px;
	text-align: center;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	color: hsl(var(--foreground));
}

.theme-quantity-wrapper .theme-qty-input::-webkit-outer-spin-button,
.theme-quantity-wrapper .theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.theme-quantity-wrapper .theme-qty-input:focus {
	outline: none;
}

.single-product .theme-add-to-cart-area {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 0.75rem;
}

.single-product .theme-add-to-cart-area .theme-pdp-action-btn {
	width: 100%;
}

@media (min-width: 640px) {
	.single-product .theme-add-to-cart-area {
		flex-direction: row;
		align-items: stretch;
	}

	.single-product .theme-add-to-cart-area .theme-pdp-action-btn {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}
}

/* --------------------------------------------------------------------------
   Single product layout guards
   -------------------------------------------------------------------------- */
.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 .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in,
.single-product .product-details-content {
	overflow-wrap: break-word;
	word-break: break-word;
}

.single-product .theme-product-gallery img,
.theme-product-card img {
	max-width: 100%;
}

/* --------------------------------------------------------------------------
   Variation pills + hidden native select
   -------------------------------------------------------------------------- */
.theme-attr-select-hidden {
	display: none !important;
}

.single-product .variations {
	display: none !important;
}

.theme-attr-pill.is-active {
	background-color: hsl(var(--foreground));
	color: hsl(var(--background));
	border-color: hsl(var(--foreground));
}

/* --------------------------------------------------------------------------
   Cart drawer
   -------------------------------------------------------------------------- */
#theme-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 100%;
	max-width: 28rem;
	background-color: hsl(var(--ivory));
	z-index: 60;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-elevated);
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	visibility: hidden;
}

body.cart-open #theme-cart-drawer {
	transform: translateX(0);
	visibility: visible;
}

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background-color: hsl(var(--foreground) / 0.3);
	z-index: 55;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	pointer-events: auto;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

.theme-cart-drawer a {
	text-decoration: none;
}

.theme-cart-count:empty {
	display: none !important;
}

/* --------------------------------------------------------------------------
   WooCommerce notices (styled for shop / archive contexts)
   -------------------------------------------------------------------------- */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background-color: hsl(var(--linen));
	color: hsl(var(--foreground));
	padding: 1rem 1.25rem;
	font-family: 'Geist', system-ui, -apple-system, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 1.5rem;
}

.woocommerce-error {
	border-color: hsl(var(--destructive));
	background-color: hsl(var(--destructive) / 0.08);
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	border: 1px solid hsl(var(--primary));
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-size: 14px;
	font-weight: 500;
	padding: 0.5rem 1.25rem;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   WooCommerce forms (cart page, account, notices)
   -------------------------------------------------------------------------- */
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	font-family: 'Geist', system-ui, -apple-system, sans-serif;
	font-size: 14px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 0.9rem 1rem;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
}

.woocommerce table.shop_table th {
	font-weight: 500;
	color: hsl(var(--foreground) / 0.65);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 12px;
}

.woocommerce .cart-collaterals,
.woocommerce-page .cart-collaterals {
	margin-top: 2rem;
}

.woocommerce .button,
.woocommerce-page .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--primary));
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-family: 'Geist', system-ui, -apple-system, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	padding: 0.75rem 1.5rem;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.woocommerce .button:hover,
.woocommerce-page .button:hover {
	background-color: hsl(var(--primary) / 0.9);
	border-color: hsl(var(--primary) / 0.9);
	color: hsl(var(--primary-foreground));
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text {
	border: 1px solid hsl(var(--foreground) / 0.15);
	border-radius: var(--radius);
	background-color: hsl(var(--ivory));
	color: hsl(var(--foreground));
	font-family: 'Geist', system-ui, -apple-system, sans-serif;
	font-size: 14px;
	padding: 0.75rem 1rem;
	box-sizing: border-box;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	outline: none;
	border-color: hsl(var(--primary));
}

.woocommerce form .form-row label {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: hsl(var(--foreground) / 0.55);
}

/* --------------------------------------------------------------------------
   Screen reader text
   -------------------------------------------------------------------------- */
.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));
	clip: auto !important;
	clip-path: none;
	color: hsl(var(--primary));
	display: block;
	font-size: 14px;
	height: auto;
	left: 1rem;
	line-height: normal;
	padding: 1rem 1.5rem;
	text-decoration: none;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

/* --------------------------------------------------------------------------
   Product archive / related grids
   -------------------------------------------------------------------------- */
.theme-product-grid {
	align-items: stretch;
}

.theme-related-grid {
	align-items: stretch;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.woocommerce-pagination ul.page-numbers,
.theme-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 3rem 0 0;
	padding: 0;
	justify-content: center;
}

.woocommerce-pagination ul.page-numbers li {
	border: 0;
}

.woocommerce-pagination ul.page-numbers a,
.woocommerce-pagination ul.page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	border-radius: 9999px;
	border: 1px solid hsl(var(--foreground) / 0.25);
	color: hsl(var(--foreground));
	font-size: 14px;
	text-decoration: none;
}

.woocommerce-pagination ul.page-numbers span.current,
.woocommerce-pagination ul.page-numbers a:hover {
	background-color: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* --------------------------------------------------------------------------
   Page templates / checkout
   -------------------------------------------------------------------------- */
.page-title,
.theme-page-container h1.page-title {
	font-family: 'Gambarino', Georgia, serif;
	font-weight: 400;
	letter-spacing: 0;
	font-size: clamp(2.25rem, 4vw, 3rem);
	line-height: 1.05;
	color: hsl(var(--foreground));
	margin: 0 0 2.5rem;
}

.entry-content {
	color: hsl(var(--foreground) / 0.8);
	font-family: 'Geist', system-ui, -apple-system, sans-serif;
	font-size: 15px;
	line-height: 1.85;
}

.entry-content > * + * {
	margin-top: 1.25rem;
}

.entry-content h2,
.entry-content h3 {
	font-family: 'Gambarino', Georgia, serif;
	font-weight: 400;
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .site-main {
	padding-top: calc(var(--header-height) + 1rem);
	padding-bottom: 4rem;
}

body.woocommerce-checkout .theme-page-container,
body.woocommerce-cart .theme-page-container,
body.woocommerce-account .theme-page-container,
body.theme-cart-page .theme-page-container,
body.theme-account-page .theme-page-container,
body.theme-thankyou-page .theme-page-container {
	max-width: 80rem;
	margin: 0 auto;
	width: 100%;
}

body.woocommerce-checkout .entry-content,
body.theme-cart-page .entry-content,
body.theme-account-page .entry-content {
	max-width: 100%;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-components-sidebar-layout.is-large {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

body.woocommerce-checkout .wc-block-checkout {
	display: block;
	max-width: none;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-components-sidebar-layout.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		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-components-notice-banner,
body.woocommerce-checkout .wc-block-components-notices {
	grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--linen));
	border-radius: calc(var(--radius) * 2);
	padding: 1.75rem;
	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 {
	border: 1px solid hsl(var(--foreground) / 0.15) !important;
	border-radius: var(--radius) !important;
	background-color: hsl(var(--ivory)) !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;
}

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;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button:not(.is-link) {
	border-radius: 9999px !important;
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border: 1px solid hsl(var(--primary)) !important;
	font-family: 'Geist', system-ui, -apple-system, sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !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-checkout h2,
body.woocommerce-checkout .wc-block-checkout h3,
body.woocommerce-checkout .wc-block-components-title {
	font-family: 'Gambarino', Georgia, serif !important;
	font-weight: 400 !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--radius) !important;
	border-color: hsl(var(--border)) !important;
	background-color: hsl(var(--linen)) !important;
	color: hsl(var(--foreground)) !important;
	font-family: 'Geist', system-ui, -apple-system, sans-serif !important;
	font-size: 14px !important;
}

body.woocommerce-checkout .wc-block-cart-items__row {
	border-color: hsl(var(--border)) !important;
}

/* 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-customer-details,
body.theme-thankyou-page .woocommerce-order-details {
	font-family: 'Geist', system-ui, -apple-system, sans-serif;
	color: hsl(var(--foreground) / 0.8);
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: 'Gambarino', Georgia, serif;
	font-weight: 400;
	color: hsl(var(--foreground));
	padding: 0 0 1rem;
	font-size: 1.75rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 1.5rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background-color: hsl(var(--linen));
}

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: hsl(var(--foreground) / 0.55);
	border: 0;
	padding: 0;
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.35rem;
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
	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.9rem 1rem;
	border-bottom: 1px solid hsl(var(--border));
}

body.theme-thankyou-page .woocommerce-order-details thead th {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 12px;
	color: hsl(var(--foreground) / 0.6);
	text-align: left;
}

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(--border));
	border-radius: var(--radius);
	padding: 1.25rem;
	font-style: normal;
	line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Floating badge dark-zone
   -------------------------------------------------------------------------- */
.theme-floating-badge .theme-badge-toggle {
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   WooCommerce generated small elements
   -------------------------------------------------------------------------- */
.woocommerce .star-rating,
.woocommerce-page .star-rating {
	color: hsl(var(--secondary));
}

.woocommerce div.product .stock,
.woocommerce div.product p.stock {
	color: hsl(var(--primary));
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-family: 'Geist', system-ui, -apple-system, sans-serif;
}

.woocommerce .quantity .qty {
	width: 4em;
}

.single-product .woocommerce-variation-price {
	margin-bottom: 1rem;
	font-size: 20px;
	font-weight: 500;
	color: hsl(var(--foreground) / 0.9);
}

.single-product .woocommerce-variation-availability p.stock {
	margin-bottom: 1rem;
}

.woocommerce div.product form.cart .variations {
	margin-bottom: 1rem;
}

.woocommerce .price del {
	opacity: 0.5;
	margin-right: 0.4rem;
}

.woocommerce .price ins {
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	#theme-cart-drawer,
	#theme-cart-overlay {
		transition: none;
	}
}
