/*
 * Theme styles.
 *
 * Only functional rules and styling for markup that has no equivalent in the
 * compiled source stylesheet (WooCommerce and WordPress generated output).
 */

[hidden] {
	display: none !important;
}

/* ---------------------------------------------------------------
 * Scroll reveal
 * ------------------------------------------------------------- */
.reveal-item {
	opacity: 0;
	transform: translateY(44px);
	transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0s),
		transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0s);
	will-change: opacity, transform;
}

.reveal-item.is-visible {
	opacity: 1;
	transform: none;
}

body.is-customizer .reveal-item,
body.is-customizer .reveal-item.is-visible {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* ---------------------------------------------------------------
 * Hero entrance (staggered, mirrors the source motion timings)
 * ------------------------------------------------------------- */
@keyframes theme-hero-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes theme-hero-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes theme-hero-up-lg {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes theme-hero-word {
	from {
		opacity: 0;
		transform: translateY(80px);
		filter: blur(12px);
	}
	to {
		opacity: 1;
		transform: none;
		filter: blur(0);
	}
}

[data-anim="hero-badge"] {
	animation: theme-hero-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

[data-anim="hero-word"] {
	animation: theme-hero-word 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

[data-anim="hero-word"]:nth-child(1) {
	animation-delay: 0.3s;
}

[data-anim="hero-word"]:nth-child(2) {
	animation-delay: 0.44s;
}

[data-anim="hero-text"] {
	animation: theme-hero-up-lg 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both;
}

[data-anim="hero-actions"] {
	animation: theme-hero-up-lg 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}

[data-anim="hero-caption"] {
	animation: theme-hero-fade 1s ease 1.5s both;
}

@media (prefers-reduced-motion: reduce) {
	[data-anim] {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}
}

/* ---------------------------------------------------------------
 * Marquee
 * ------------------------------------------------------------- */
@keyframes theme-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

[data-marquee] {
	animation: theme-marquee 38s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
	[data-marquee] {
		animation: none;
	}
}

/* ---------------------------------------------------------------
 * Toast
 * ------------------------------------------------------------- */
@keyframes theme-toast-in {
	from {
		opacity: 0;
		transform: translateY(-100%);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

[data-theme-toast] > div {
	animation: theme-toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---------------------------------------------------------------
 * Header
 * ------------------------------------------------------------- */
.site-logo-img {
	height: var(--logo-height, 40px) !important;
	width: auto !important;
	display: block;
}

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

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

.site-logo-footer {
	display: block;
}

.theme-brand-name {
	margin-left: 0.75rem;
}

/* ---------------------------------------------------------------
 * Side cart drawer
 * ------------------------------------------------------------- */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 60;
	background-color: hsl(var(--ink) / 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

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

#theme-cart-drawer {
	transform: translateX(100%);
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: none;
}

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

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

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

@media (max-width: 1023px) {
	.site-header .theme-cart-count {
		right: 0;
		top: 0;
	}
}

/* ---------------------------------------------------------------
 * Product gallery
 * ------------------------------------------------------------- */
.theme-main-image {
	transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-main-image.is-fading {
	opacity: 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;
	min-width: 0;
}

.single-product .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
}

.theme-product-description p {
	margin: 0;
}

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
}

/* Add-to-cart disabled state (variable products and sold-out works) */
.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 "View cart" 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;
}

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

/* ---------------------------------------------------------------
 * Quantity stepper (variable products)
 * ------------------------------------------------------------- */
.theme-quantity-wrapper {
	display: flex;
	align-items: stretch;
	border: 1px solid hsl(var(--border));
	background-color: hsl(var(--paper));
}

.theme-quantity-wrapper button {
	padding: 0.5rem 0.875rem;
	color: hsl(var(--ink) / 0.7);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-quantity-wrapper button:hover {
	background-color: hsl(var(--muted));
	color: hsl(var(--ink));
}

.theme-qty-input {
	width: 3rem;
	border: 0;
	background: transparent;
	text-align: center;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--ink));
}

/* Variations table: the pills carry the labels, so the table stays hidden. */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}

.single-product .variations tbody td.label {
	display: none;
}

.single-product .variations tbody td.value {
	padding-top: 0;
}

/* Variable product option pills */
.theme-variation-pills {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-bottom: 1.5rem;
}

.theme-variation-label {
	display: block;
	margin-bottom: 0.5rem;
	font-family: var(--font-body);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: hsl(var(--ink) / 0.55);
}

.theme-variation-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.theme-variation-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid hsl(var(--border));
	background-color: transparent;
	padding: 0.5rem 0.875rem;
	font-family: var(--font-body);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: hsl(var(--ink) / 0.75);
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.theme-variation-pill:hover {
	border-color: hsl(var(--ink));
	color: hsl(var(--ink));
}

.theme-variation-pill.is-selected {
	border-color: hsl(var(--ink));
	background-color: hsl(var(--ink));
	color: hsl(var(--paper));
}

.theme-swatch {
	display: inline-block;
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--ink) / 0.2);
}

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

.single-product .variations select {
	width: 100%;
	border: 1px solid hsl(var(--border));
	background-color: hsl(var(--paper));
	padding: 0.75rem 1rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	color: hsl(var(--ink));
}

.single-product .single_variation_wrap {
	margin-top: 1.5rem;
}

.single-product .woocommerce-variation-price {
	margin-bottom: 1rem;
	font-family: var(--font-body);
	color: hsl(var(--ink));
}

/* ---------------------------------------------------------------
 * WooCommerce notices
 * ------------------------------------------------------------- */
.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

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

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border: 1px solid hsl(var(--border));
	background-color: hsl(var(--muted) / 0.5);
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.6;
	padding: 1rem 1.25rem;
	margin: 0 0 1.5rem;
	list-style: none;
}

.woocommerce-error {
	border-color: hsl(var(--vermilion));
	color: hsl(var(--foreground));
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
	color: hsl(var(--vermilion));
	text-decoration: underline;
}

/* ---------------------------------------------------------------
 * WordPress 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;
}

.page-title {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: -0.015em;
	line-height: 1.02;
}

.entry-content {
	font-family: var(--font-body);
}

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

.woocommerce-Price-amount,
.woocommerce-Price-currencySymbol {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

/* ---------------------------------------------------------------
 * Checkout (native Checkout Block)
 * ------------------------------------------------------------- */
body.woocommerce-checkout .wc-block-checkout {
	display: block;
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

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 {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	border: 1px solid hsl(var(--border));
	background-color: hsl(var(--muted) / 0.2);
	border-radius: 0;
	padding: 2rem;
}

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: 0 !important;
	border-bottom: 1px solid hsl(var(--border)) !important;
	border-radius: 0 !important;
	background-color: hsl(var(--paper)) !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 {
	border-bottom-color: hsl(var(--vermilion)) !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(--muted-foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-order-summary-item__description,
body.woocommerce-checkout .wc-block-components-totals-item,
body.woocommerce-checkout .wc-block-cart-items {
	font-family: var(--font-body) !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-step__heading,
body.woocommerce-checkout .wc-block-components-checkout-step__title {
	font-family: var(--font-body) !important;
	font-size: 0.625rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.3em !important;
	text-transform: uppercase !important;
	color: hsl(var(--vermilion)) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: hsl(var(--ink)) !important;
	color: hsl(var(--paper)) !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-family: var(--font-body) !important;
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.25em !important;
	text-transform: uppercase !important;
	padding: 1rem 2rem !important;
}

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

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 0 !important;
	border: 1px solid hsl(var(--border)) !important;
	background-color: hsl(var(--muted) / 0.5) !important;
	color: hsl(var(--foreground)) !important;
	font-family: var(--font-body) !important;
	font-size: 0.9375rem !important;
}

body.woocommerce-checkout .wc-block-cart-items__row,
body.woocommerce-checkout .wc-block-cart-item__wrap {
	border-color: hsl(var(--border)) !important;
}

body.woocommerce-checkout .wc-block-components-product-name {
	font-family: var(--font-display) !important;
	font-weight: 500 !important;
	color: hsl(var(--foreground)) !important;
}

/* ---------------------------------------------------------------
 * Cart and account pages
 * ------------------------------------------------------------- */
body.woocommerce-cart .wc-block-cart,
body.woocommerce-account .woocommerce {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.woocommerce-cart .wc-block-cart-items__header,
body.woocommerce-cart .wc-block-cart-item__prices,
body.woocommerce-cart .wc-block-cart-item__quantity {
	font-family: var(--font-body);
}

body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button {
	border-radius: 0;
	background-color: hsl(var(--ink));
	color: hsl(var(--paper));
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	border-bottom: 1px solid hsl(var(--border));
	padding: 0.75rem 0;
	font-family: var(--font-body);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: hsl(var(--ink) / 0.7);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	color: hsl(var(--vermilion));
}

body.woocommerce-account .woocommerce form .form-row input.input-text,
body.woocommerce-account .woocommerce form .form-row textarea {
	border: 1px solid hsl(var(--border));
	border-radius: 0;
	background-color: hsl(var(--paper));
	padding: 0.75rem 1rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	color: hsl(var(--ink));
}

body.woocommerce-account .woocommerce button.button {
	border-radius: 0;
	background-color: hsl(var(--ink));
	color: hsl(var(--paper));
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	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 {
	font-family: var(--font-display);
	font-size: 1.875rem;
	font-weight: 500;
	letter-spacing: -0.015em;
	padding: 0 0 1rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	border: 1px solid hsl(var(--border));
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 1.5rem;
}

body.theme-thankyou-page .woocommerce-order-overview li {
	border: 0;
	font-family: var(--font-body);
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

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

body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td {
	border-bottom: 1px solid hsl(var(--border));
	padding: 0.75rem 0;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	color: hsl(var(--foreground));
	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;
}

body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	border: 1px solid hsl(var(--border));
	padding: 1.25rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.7;
	color: hsl(var(--foreground));
}
