/* =========================================================================
   Turquoise Heart Boutique — theme layer.
   The compiled source stylesheet (app.css) ships the design system; this
   file only covers JS state, WooCommerce/WordPress-generated markup and
   the checkout block.
   ========================================================================= */

/* ---------- Cart drawer open / close state ---------- */
#theme-cart-drawer {
	display: none;
}

#theme-cart-overlay {
	display: none;
}

body.cart-open #theme-cart-drawer {
	display: flex;
	animation: slideUp 0.6s var(--transition-smooth) forwards;
}

body.cart-open #theme-cart-overlay {
	display: block;
	animation: fadeIn 0.5s var(--transition-smooth) forwards;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

.theme-cart-count:empty {
	display: none !important;
}

/* ---------- Entrance motion (ported from the source's motion variants) ---------- */
[data-reveal] {
	transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
	transition-delay: var(--reveal-delay, 0s);
}

html.has-reveal [data-reveal]:not(.is-visible) {
	opacity: 0;
	transform: translateY(20px);
}

[data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

[data-hero-reveal] {
	transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}

html.has-reveal [data-hero-reveal]:not(.is-visible) {
	opacity: 0;
}

html.has-reveal [data-hero-reveal="1"]:not(.is-visible) {
	transform: translateY(20px);
	transition-duration: 0.8s;
}

html.has-reveal [data-hero-reveal="2"]:not(.is-visible) {
	transform: translateY(14px);
	transition-delay: 0.2s;
}

html.has-reveal [data-hero-reveal="3"]:not(.is-visible) {
	transform: translateY(14px);
	transition-delay: 0.35s;
}

html.has-reveal [data-hero-reveal].is-visible,
[data-hero-reveal].is-visible {
	opacity: 1;
	transform: none;
}

body.is-customizer [data-reveal],
body.is-customizer [data-hero-reveal] {
	opacity: 1 !important;
	transform: none !important;
}

/* Hero layering and contrast (must not depend on Tailwind arbitrary z-index). */
.theme-hero-overlay,
#home .hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 70% 60% at 50% 50%, hsl(20 30% 6% / 0.45), transparent 75%),
		linear-gradient(180deg, hsl(20 30% 6% / 0.45), hsl(20 30% 6% / 0.3) 50%, hsl(20 30% 6% / 0.55)),
		hsl(0 0% 0% / 0.2);
}

.theme-hero-content,
#home .theme-hero-content {
	position: relative;
	z-index: 2;
}

#home .hero-heading {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.005em;
	line-height: 1.05;
}

#home .hero-copy {
	color: hsl(38 37% 94%);
}

#home .hero-btn {
	color: #fff;
}

/* ---------- Product card (hit-area overlay pattern) ---------- */
.theme-product-card-wrap {
	height: 100%;
	min-width: 0;
}

.theme-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.theme-product-card .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	pointer-events: auto;
}

.theme-product-card > *:not(.theme-card-link) {
	pointer-events: none;
}

.theme-product-card .add_to_cart_button {
	position: absolute;
	pointer-events: auto;
	z-index: 3;
}

.theme-card-media {
	transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
	will-change: transform;
}

.theme-product-card:hover .theme-card-media {
	transform: translateY(-4px);
}

.theme-card-image {
	display: block;
	transition: transform 0.8s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-product-card:hover .theme-card-image {
	transform: scale(1.05);
}

.theme-product-card .add_to_cart_button {
	transition: transform 0.3s var(--transition-smooth), background-color 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth);
}

.theme-product-card .add_to_cart_button:hover {
	transform: scale(1.08);
}

.theme-product-card .add_to_cart_button:active {
	transform: scale(0.94);
}

.theme-product-card .woocommerce-Price-amount {
	font: inherit;
	color: inherit;
}

/* ---------- Quantity controls ---------- */
.theme-quantity-wrapper {
	display: inline-flex;
	width: auto;
	align-items: center;
}

.theme-qty-input {
	-moz-appearance: textfield;
	appearance: textfield;
	background: transparent;
	border-top: 0;
	border-bottom: 0;
	border-radius: 0;
	width: 3.25rem;
	min-width: 3.25rem;
	max-width: 3.25rem;
	flex: 0 0 3.25rem;
	padding-left: 0;
	padding-right: 0;
}

.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;
}

/* ---------- Single product ---------- */
.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;
	flex-direction: column;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0;
}

.single-product .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;
}

.single-product .woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

.single-product .theme-product-info .woocommerce-Price-amount {
	font: inherit;
	color: inherit;
}

.single-product .theme-related-products {
	width: 100%;
}

/* Disabled add-to-cart buttons (out of stock / variation not selected) */
.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;
}

/* Hide the "View cart" link WooCommerce injects 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;
}

/* Loading state while an AJAX add is in flight */
.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;
}

/* Variations table */
.single-product .variations_form {
	width: 100%;
}

.single-product .variations {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1rem;
}

.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-bottom: 0.25rem;
}

.single-product .variations tbody td.value {
	padding-top: 0;
}

.single-product .variations select {
	width: 100%;
	padding: 0.75rem 1rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--foreground));
	background-color: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: 0;
	appearance: none;
}

.single-product .variations .reset_variations {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

.single-product .single_variation_wrap {
	margin-top: 0.5rem;
}

.single-product .woocommerce-variation-price {
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 600;
	color: hsl(var(--foreground));
	margin-bottom: 0.75rem;
}

.single-product .woocommerce-variation-availability {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	margin-bottom: 0.75rem;
}

[data-accordion-panel][hidden] {
	display: none;
}

/* Single product: the drawer provides add-to-cart feedback, errors stay visible */
.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

/* ---------- Notices (theme design system) ---------- */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	list-style: none;
	margin: 1rem 0;
	padding: 1rem 1.25rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	line-height: 1.6;
	background-color: hsl(var(--card));
	color: hsl(var(--foreground));
	border: 1px solid hsl(var(--border));
}

.woocommerce-error {
	border-color: hsl(var(--destructive));
	color: hsl(var(--destructive));
}

.woocommerce-error li {
	margin: 0;
}

/* ---------- WordPress / WooCommerce utility markup ---------- */
.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;
}

.page-title {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.01em;
}

.entry-content {
	font-family: var(--font-body);
	color: hsl(var(--foreground) / 0.78);
	line-height: 1.7;
}

.entry-content a {
	color: hsl(var(--accent));
	text-decoration: underline;
}

.entry-content p {
	margin-bottom: 1.25rem;
}

.woocommerce-pagination ul {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.woocommerce-pagination ul li {
	border: 0;
	margin: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.75rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: hsl(var(--foreground) / 0.8);
	background: hsl(var(--background));
	border: 1px solid hsl(var(--border));
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover {
	background: hsl(var(--accent));
	color: hsl(var(--accent-foreground));
	border-color: hsl(var(--accent));
}

.woocommerce-breadcrumb {
	display: none;
}

/* ---------- Checkout (native WooCommerce Checkout Block) ---------- */
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, 2rem);
		align-items: start;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large > .wc-block-checkout__main {
		grid-column: 1;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large > .wc-block-checkout__sidebar {
		grid-column: 2;
	}
}

body.woocommerce-checkout .wc-block-components-notice-banner,
body.woocommerce-checkout .wc-block-components-notice-banner.is-info {
	grid-column: 1 / -1;
	font-family: var(--font-body);
	font-size: 0.875rem;
	background-color: hsl(var(--card));
	color: hsl(var(--foreground));
	border: 1px solid hsl(var(--border));
	border-radius: 0;
}

body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: 0;
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-blocks-components-select__select {
	font-family: var(--font-body);
	font-size: 1rem;
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 0 !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus {
	outline: none !important;
	border-color: hsl(var(--foreground)) !important;
	box-shadow: 0 0 0 2px hsl(var(--accent) / 0.3) !important;
}

body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-checkbox label,
body.woocommerce-checkout .wc-block-components-radio-control__label {
	font-family: var(--font-body);
	color: hsl(var(--foreground) / 0.8);
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: hsl(var(--accent-foreground));
	background: hsl(var(--accent));
	border: 0;
	border-radius: 0;
	padding: 1rem 2rem;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background: hsl(var(--foreground));
	color: hsl(var(--background));
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: 0;
	padding: 2rem;
}

body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-order-summary {
	font-family: var(--font-body);
}

body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-item__value {
	font-family: var(--font-body);
	color: hsl(var(--foreground) / 0.8);
}

body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--font-display);
	font-weight: 600;
	color: hsl(var(--foreground));
}

/* The sticky header reserves its own space in normal flow, so no top offset. */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout main {
	padding-top: 0;
	padding-bottom: 4rem;
}

body.woocommerce-checkout .page-title {
	font-size: clamp(2.25rem, 4vw, 3rem);
	line-height: 1.1;
	margin-bottom: 2rem;
}

/* ---------- Cart / account pages (WooCommerce markup) ---------- */
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
	font-size: clamp(2.25rem, 4vw, 3rem);
	line-height: 1.1;
	margin-bottom: 2rem;
}

body.woocommerce-cart .woocommerce,
body.woocommerce-account .woocommerce {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table,
body.woocommerce-account table.shop_table,
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid hsl(var(--border));
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table th,
body.woocommerce-cart .woocommerce-cart-form table.shop_table td,
body.woocommerce-account table.shop_table th,
body.woocommerce-account table.shop_table td,
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
	padding: 0.875rem 1rem;
	border-bottom: 1px solid hsl(var(--border));
	font-size: 0.9375rem;
	text-align: left;
}

body.woocommerce-cart .cart_totals,
body.woocommerce-account .woocommerce-MyAccount-navigation {
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	padding: 1.5rem;
}

body.woocommerce-cart .button,
body.woocommerce-account .button {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: hsl(var(--accent-foreground));
	background: hsl(var(--accent));
	border: 0;
	border-radius: 0;
	padding: 1rem 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: 400;
	font-size: 1.75rem;
	line-height: 1.2;
	padding: 0 0 1rem 0;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 1.5rem;
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
}

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.35rem;
	font-family: var(--font-display);
	font-size: 1.125rem;
	letter-spacing: 0;
	text-transform: none;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-details table {
	table-layout: fixed;
}

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;
	padding: 1.5rem;
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
}


/* ---------- Site logo height (single definition, all contexts) ---------- */
.site-logo-img {
	height: var(--logo-height) !important;
	width: auto !important;
	display: block;
	object-fit: contain;
}

.site-logo-img--footer {
	height: calc(var(--logo-height) * 1.13) !important;
}

@media (max-width: 767px) {
	.site-logo-img {
		height: var(--logo-height-mobile) !important;
	}

	.site-logo-img--footer {
		height: calc(var(--logo-height-mobile) * 1.077) !important;
	}
}

.site-logo-text {
	line-height: 1.2;
}

/* ---------- About image frame ---------- */
.theme-about-frame {
	aspect-ratio: 4 / 3;
}

@media (scripting: none) {
	[data-reveal],
	[data-hero-reveal] {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ---------- Admin bar: keep the sticky header below it ---------- */
html.admin-bar .theme-header,
html.admin-bar .site-header,
.admin-bar .theme-header,
.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	html.admin-bar .theme-header,
	html.admin-bar .site-header,
	.admin-bar .theme-header,
	.admin-bar .site-header {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	html.admin-bar #wpadminbar {
		position: fixed;
	}
}

html.admin-bar .single-product .theme-product-info {
	top: calc(7rem + 32px);
}

@media screen and (max-width: 782px) {
	html.admin-bar .single-product .theme-product-info {
		top: calc(7rem + 46px);
	}
}

/* ---------- Pointer cursor on every clickable control ---------- */
a,
button,
[role="button"],
[role="tab"],
[role="menuitem"],
label[for],
select,
summary,
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
input[type="file"],
input[type="image"],
.theme-cat-filter,
.theme-collection-tile,
.theme-product-card,
.theme-product-card .theme-card-link,
.theme-product-thumb,
.theme-nav-link,
.theme-nav-link-mobile,
.link-underline,
.hero-btn,
[data-cart-open],
[data-cart-close],
[data-menu-toggle],
[data-accordion-toggle],
[data-shop-all],
[data-shop-reset],
.theme-qty-plus,
.theme-qty-minus {
	cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
a[aria-disabled="true"],
.disabled,
.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;
}
