/* Loomhaven — small touches theme.json can't express. */

:root {
	--lh-shadow: 0 1px 0 rgba(42, 36, 32, 0.06), 0 12px 32px -18px rgba(42, 36, 32, 0.28);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Subtle paper grain over the page background. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	opacity: 0.35;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.3 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wp-site-blocks { position: relative; z-index: 1; }

/* Eyebrow label */
.is-style-eyebrow,
.lh-eyebrow {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--wp--preset--color--clay-dark);
}

/* Announcement bar */
.lh-announce { font-size: var(--wp--preset--font-size--x-small); letter-spacing: 0.08em; }
.lh-announce a { color: inherit; }

/* Sticky header */
.lh-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(140%) blur(8px);
	background: color-mix(in srgb, var(--wp--preset--color--linen) 88%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 70%, transparent);
}
.admin-bar .lh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .lh-header { top: 0; } }

/* Buttons */
.wp-block-button.is-style-outline-ink .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--ink);
}
.wp-block-button.is-style-outline-ink .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--linen);
}
.wp-element-button,
.wp-block-button__link { transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.wp-element-button:active { transform: translateY(1px); }

/* Arch image */
.wp-block-image.is-style-arch img,
.is-style-arch img {
	border-radius: 999px 999px var(--wp--custom--radius-lg) var(--wp--custom--radius-lg) !important;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

/* Paper card group */
.wp-block-group.is-style-paper {
	background: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--radius-lg);
	box-shadow: var(--lh-shadow);
}

/* Category tiles */
.lh-cat-tile { position: relative; overflow: hidden; border-radius: var(--wp--custom--radius-lg); }
.lh-cat-tile img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.lh-cat-tile:hover img { transform: scale(1.04); }

/* ---------- WooCommerce product grid ---------- */
.wc-block-product-template .wc-block-product,
.wp-block-woocommerce-product-template .wc-block-product,
.wc-block-grid__product { text-align: left; }

.wc-block-components-product-image img,
.wp-block-woocommerce-product-image img {
	border-radius: var(--wp--custom--radius-lg);
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--wp--preset--color--oat);
	transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .3s ease;
}
.wc-block-components-product-image:hover img,
.wp-block-woocommerce-product-image:hover img { transform: scale(1.025); filter: saturate(1.05); }
.wc-block-components-product-image,
.wp-block-woocommerce-product-image { overflow: hidden; border-radius: var(--wp--custom--radius-lg); }

.wc-block-components-product-sale-badge,
.wc-block-components-product-sale-badge--align-right {
	background: var(--wp--preset--color--clay) !important;
	color: var(--wp--preset--color--white) !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-size: 0.7rem !important;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: .35em .9em !important;
}

.wc-block-components-product-price ins,
.wp-block-woocommerce-product-price ins { text-decoration: none; color: var(--wp--preset--color--clay-dark); }
.wc-block-components-product-price del { opacity: .55; }

.wp-block-woocommerce-product-button .wp-block-button__link,
.wc-block-components-product-button .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--ink) !important;
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--x-small) !important;
	padding: .6em 1.3em !important;
}
.wp-block-woocommerce-product-button .wp-block-button__link:hover,
.wc-block-components-product-button .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--linen) !important;
}

/* Rating stars */
.wc-block-components-product-rating__stars span::before,
.star-rating span::before { color: var(--wp--preset--color--clay); }

/* Single product */
.woocommerce div.product div.images img,
.wp-block-woocommerce-product-image-gallery img { border-radius: var(--wp--custom--radius-lg); }
.woocommerce div.product form.cart .button,
.single_add_to_cart_button {
	background: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--linen) !important;
	border-radius: 999px !important;
	padding: .95em 2.2em !important;
	font-weight: 600 !important;
}
.woocommerce div.product form.cart .button:hover { background: var(--wp--preset--color--clay-dark) !important; }
.woocommerce .quantity .qty {
	border: 1.5px solid var(--wp--preset--color--sand);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	padding: .7em .4em;
	width: 4.5em;
}
.woocommerce div.product form.cart .variations select {
	border: 1.5px solid var(--wp--preset--color--sand);
	border-radius: 999px;
	padding: .55em 1em;
	background-color: var(--wp--preset--color--white);
}
.woocommerce-tabs .tabs li a { font-family: var(--wp--preset--font-family--serif); }
.wp-block-woocommerce-product-details .wc-tabs li.active a { color: var(--wp--preset--color--clay-dark); }

/* Trust strip on product page */
.lh-trust p { margin: 0; }

/* Notices */
.woocommerce-message, .woocommerce-info, .wc-block-components-notice-banner {
	border-radius: var(--wp--custom--radius) !important;
}

/* Forms */
input[type="email"], input[type="text"], input[type="search"], textarea, select {
	font-family: inherit;
}
.lh-newsletter input[type="email"] {
	flex: 1;
	min-width: 0;
	padding: .9em 1.3em;
	border-radius: 999px;
	border: 1.5px solid var(--wp--preset--color--sand);
	background: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
}
.lh-newsletter form { display: flex; gap: .6rem; flex-wrap: wrap; max-width: 520px; margin-inline: auto; }
.lh-newsletter button {
	border: 0;
	cursor: pointer;
	border-radius: 999px;
	padding: .9em 1.8em;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--linen);
	font-weight: 600;
	font-family: inherit;
}
.lh-newsletter button:hover { background: var(--wp--preset--color--clay-dark); }

/* Marquee strip */
.lh-marquee { overflow: hidden; white-space: nowrap; }
.lh-marquee p { display: inline-block; animation: lh-scroll 38s linear infinite; padding-left: 100%; margin: 0; }
@keyframes lh-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.lh-marquee p { animation: none; padding-left: 0; }
	* { transition: none !important; }
}

/* Focus ring */
:where(a, button, input, select, textarea, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--clay);
	outline-offset: 3px;
}

/* Footer */
.lh-footer a { text-decoration: none; }
.lh-footer a:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 781px) {
	.lh-hide-mobile { display: none !important; }
}
