/* -------------------------------------------------------------------------
 * The Queens Vault — functional styles and WordPress/WooCommerce markup.
 * Source utility classes live in app.css; this file never restyles elements
 * that already carry them.
 * ---------------------------------------------------------------------- */

[hidden] {
	display: none !important;
}

/* Header, footer and announcement bar use the source's espresso surface. */
.theme-header-bar {
	background-color: var(--surface-bar, #2B2622);
}

.site-logo-img {
	height: 64px !important;
	width: auto !important;
	display: block;
}

@media (min-width: 768px) {
	.site-logo-img {
		height: var(--logo-height, 80px) !important;
	}
}

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

/* Hero, craft band and contact backgrounds (positioning lives here, not inline). */
.theme-hero-bg {
	z-index: 0;
}

.theme-hero-overlay {
	z-index: 2;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.theme-handmade-overlay {
	background: linear-gradient(90deg, rgba(53, 30, 11, 0.72) 0%, rgba(53, 30, 11, 0.45) 60%, rgba(53, 30, 11, 0.15) 100%);
}

.theme-contact-bg {
	z-index: 0;
}

.theme-contact-overlay {
	z-index: 2;
	background: linear-gradient(180deg, rgba(43, 38, 34, 0.75) 0%, rgba(43, 38, 34, 0.55) 100%);
}

/* Decorative butterflies: per-instance placement. */
.theme-bf--hero-1 { top: 18%; left: 8%; }
.theme-bf--hero-2 { top: 30%; right: 12%; }
.theme-bf--hero-3 { top: 68%; left: 18%; }
.theme-bf--hero-4 { top: 78%; right: 20%; }
.theme-bf--craft-1 { top: 14%; right: 10%; }
.theme-bf--craft-2 { top: 70%; right: 22%; }
.theme-bf--shop-1 { top: 6%; left: 4%; }
.theme-bf--shop-2 { top: 5%; right: 8%; }
.theme-bf--contact-1 { top: 10%; right: 8%; }
.theme-bf--contact-2 { top: 78%; left: 10%; }
.theme-bf--footer-1 { top: 10%; left: 4%; }
.theme-bf--footer-2 { top: 20%; right: 6%; }

/* Reveal fallbacks: content must never stay hidden. */
body.is-customizer [data-cs-fade],
body.is-customizer .reveal-blur {
	opacity: 1 !important;
	transform: none !important;
	filter: none !important;
	transition: none !important;
}

body.theme-reveal-off [data-cs-fade],
body.theme-reveal-off .reveal-blur {
	opacity: 1 !important;
	transform: none !important;
	filter: none !important;
}

/* Back to top button visibility. */
.theme-scrolltop.is-visible {
	opacity: 1;
	pointer-events: auto;
}

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

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 49;
	background-color: hsl(var(--foreground) / 0.4);
	opacity: 0;
	pointer-events: none;
	transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	pointer-events: auto;
}

.theme-cart-drawer {
	transform: translateX(100%);
	transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.cart-open .theme-cart-drawer {
	transform: translateX(0);
}

body.cart-open {
	overflow: hidden;
}

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

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

/* -------------------------------------------------------------------------
 * Forms and modal
 * ---------------------------------------------------------------------- */

body.theme-modal-open {
	overflow: hidden;
}

.theme-modal-success {
	animation: theme-modal-pop 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes theme-modal-pop {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

.theme-file-preview {
	position: relative;
	width: 5rem;
	height: 5rem;
	border-radius: 0.375rem;
	overflow: hidden;
	border: 1px solid hsl(var(--border));
}

.theme-file-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.theme-file-preview button {
	position: absolute;
	top: 0.25rem;
	right: 0.25rem;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 9999px;
	background-color: hsl(var(--foreground) / 0.8);
	color: hsl(var(--cream-1));
	display: flex;
	align-items: center;
	justify-content: center;
}

/* -------------------------------------------------------------------------
 * WooCommerce generated markup
 * ---------------------------------------------------------------------- */

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

.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after {
	display: none !important;
}

.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

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

.single-product .theme-variations-form .variations {
	display: none;
}

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

.single-product .woocommerce-variation {
	margin-bottom: 1rem;
}

.single-product .woocommerce-variation-price,
.single-product .woocommerce-variation-availability {
	font-family: var(--font-body);
	font-size: 15px;
	color: hsl(var(--muted-foreground));
}

.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 0%;
	min-width: 160px;
}

.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-product-thumb.is-active {
	border-color: hsl(var(--caramel));
}

.woocommerce-product-details__short-description p {
	font: inherit;
	margin: 0;
}

.entry-content p {
	font-size: 1rem;
	line-height: 1.625;
}

.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-qty-input {
	width: 2.75rem;
	min-width: 2.75rem;
	box-sizing: border-box;
	background: transparent;
	border: 0;
	-moz-appearance: textfield;
	appearance: textfield;
}

.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-product-details ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.theme-product-details li {
	font-size: 15px;
	line-height: 1.5;
	color: hsl(var(--muted-foreground));
	position: relative;
	padding-left: 1.125rem;
}

.theme-product-details li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 6px;
	height: 6px;
	border-radius: 9999px;
	background-color: hsl(var(--caramel));
}

.theme-product-details p {
	font-size: 15px;
	line-height: 1.7;
	color: hsl(var(--muted-foreground));
}

/* Notices: styled everywhere, hidden only where the drawer gives feedback. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	font-family: var(--font-body);
	font-size: 15px;
	border-radius: 0.375rem;
	border: 1px solid hsl(var(--border));
	background-color: hsl(var(--card));
	color: hsl(var(--foreground));
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	list-style: none;
}

.woocommerce-error {
	border-color: hsl(var(--destructive) / 0.4);
	color: hsl(var(--destructive));
}

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

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

.woocommerce-breadcrumb {
	display: none;
}

/* -------------------------------------------------------------------------
 * WordPress pages
 * ---------------------------------------------------------------------- */

.page-title {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: -0.01em;
	font-size: 2.25rem;
	line-height: 1.1;
	color: hsl(var(--foreground));
	margin-bottom: 2rem;
}

@media (min-width: 768px) {
	.page-title {
		font-size: 3.75rem;
	}
}

.theme-page-shell {
	padding-top: 3.5rem;
	padding-bottom: 6rem;
}

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

.entry-content > * {
	margin-bottom: 1.25rem;
}

.entry-content h2,
.entry-content h3 {
	font-family: var(--font-display);
	font-weight: 500;
}

/* -------------------------------------------------------------------------
 * Checkout (WooCommerce Checkout Block)
 * ---------------------------------------------------------------------- */

body.woocommerce-checkout .site-main,
body.woocommerce-checkout main {
	padding-bottom: 4rem;
}

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

body.woocommerce-checkout .wc-block-checkout {
	display: block;
}

@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, 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(--dark-1));
	color: hsl(var(--cream-1));
	border: 1px solid hsl(var(--caramel) / 0.25);
	border-radius: 0.375rem;
	padding: 2rem;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__quantity {
	color: hsl(var(--cream-1));
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__description,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-product-metadata {
	color: hsl(var(--dark-body));
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item {
	border-color: hsl(var(--caramel) / 0.25);
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: hsl(var(--caramel));
	font-family: var(--font-display);
	font-size: 1.875rem;
}

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control__label,
body.woocommerce-checkout h2 {
	font-family: var(--font-display);
	font-weight: 500;
}

body.woocommerce-checkout .wc-block-components-checkout-step__title {
	font-family: var(--font-label);
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 500;
	color: hsl(var(--caramel-deep));
}

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 .wc-blocks-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 0.375rem !important;
	background-color: hsl(var(--cream-2)) !important;
	color: hsl(var(--foreground)) !important;
	font-family: var(--font-body) !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-blocks-components-select__select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus {
	outline: none !important;
	border-color: hsl(var(--caramel)) !important;
	box-shadow: 0 0 0 2px hsl(var(--caramel) / 0.4) !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 {
	font-family: var(--font-body) !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: hsl(var(--caramel)) !important;
	color: hsl(var(--foreground)) !important;
	border: 1px solid hsl(var(--caramel)) !important;
	border-radius: 0.375rem !important;
	font-family: var(--font-body) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0.15em !important;
	text-transform: uppercase !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--cream-1)) !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 0.375rem !important;
	font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner.is-error {
	background-color: hsl(var(--card)) !important;
	border-color: hsl(var(--destructive) / 0.4) !important;
	color: hsl(var(--destructive)) !important;
}

body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-order-summary {
	border-color: hsl(var(--caramel) / 0.25) !important;
}

/* Cart and account pages share the checkout container width. */
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 {
	width: 100%;
}

body.theme-cart-page .wc-block-cart__main,
body.theme-cart-page .wc-block-cart__sidebar {
	min-width: 0;
	max-width: none;
}

body.theme-cart-page .wc-block-cart__sidebar {
	background-color: hsl(var(--dark-1));
	color: hsl(var(--cream-1));
	border: 1px solid hsl(var(--caramel) / 0.25);
	border-radius: 0.375rem;
	padding: 2rem;
}

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

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

body.theme-thankyou-page .woocommerce-order {
	font-family: var(--font-body);
	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: var(--font-display);
	font-weight: 500;
	font-size: 1.875rem;
	color: hsl(var(--foreground));
	padding: 0 0 1rem 0;
}

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: 1px solid hsl(var(--border));
	border-radius: 0.375rem;
	background-color: hsl(var(--card));
}

body.theme-thankyou-page .woocommerce-order-overview li {
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
	border: 0;
	margin: 0;
	padding: 0;
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.25rem;
	font-family: var(--font-display);
	font-size: 1.25rem;
	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;
}

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));
	font-size: 15px;
	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;
}

body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	font-style: normal;
	font-size: 15px;
	line-height: 1.7;
}

/* Preview text hooks inherit the typography of their host element. */
.theme-text {
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	color: inherit;
}

/* WooCommerce price markup inherits the typography of its host element. */
.woocommerce-Price-amount,
.woocommerce-Price-amount bdi,
.woocommerce-Price-currencySymbol {
font: inherit;
line-height: inherit;
color: inherit;
}
