/*
 * Styles theme.json cannot express. Keep this file small and token-based.
 */

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 0);
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

/* Highlighted words, as in the brand flyers */
mark {
	background-color: var(--wp--preset--color--primary);
	color: inherit;
	padding: 0 0.12em;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

mark.has-accent-background-color {
	background-color: var(--wp--preset--color--accent);
}

/* Heading style: eyebrow */
.wp-block-heading.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

/* List style: plain */
.wp-block-list.is-style-plain {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-plain li + li {
	margin-top: 0.4em;
}

.wp-block-list.is-style-plain a {
	text-decoration: none;
}

.wp-block-list.is-style-plain a:hover {
	text-decoration: underline;
}

/* Group style: grid paper background */
.wp-block-group.is-style-grid-paper {
	background-image:
		linear-gradient(var(--wp--preset--color--border) 1px, transparent 1px),
		linear-gradient(90deg, var(--wp--preset--color--border) 1px, transparent 1px);
	background-size: 32px 32px;
	background-position: -1px -1px;
}

/* Image style: framed (white border + tape, as in the flyers) */
.wp-block-image.is-style-framed {
	position: relative;
}

.wp-block-image.is-style-framed img {
	background: var(--wp--preset--color--base);
	border: 10px solid var(--wp--preset--color--base);
	box-shadow: 0 0 0 1px var(--wp--preset--color--border), 0 18px 40px -24px rgb(0 0 0 / 0.35);
}

.wp-block-image.is-style-framed::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 50%;
	width: 38%;
	height: 26px;
	background: var(--wp--preset--color--accent);
	transform: translateX(-50%) rotate(-2deg);
	z-index: 1;
	opacity: 0.95;
}

/* Buttons: outline variation */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1.5px solid currentColor;
	background: transparent;
	color: var(--wp--preset--color--contrast);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

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

/* WooCommerce: product cards */
.wc-block-product-template .wc-block-product,
.wc-block-product-template > li {
	text-align: left;
}

.wc-block-components-product-image img,
.wp-block-woocommerce-product-image img {
	border-radius: 4px;
	transition: transform 0.4s ease;
}

.wp-block-woocommerce-product-image {
	overflow: hidden;
	border-radius: 4px;
}

.wc-block-product:hover .wp-block-woocommerce-product-image img {
	transform: scale(1.03);
}

.wc-block-components-product-sale-badge,
.wc-block-components-product-badge {
	background: var(--wp--preset--color--primary);
	border: 0;
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
	text-transform: none;
}

/* WooCommerce: buttons follow theme buttons */
.wc-block-components-button:not(.is-link),
.wp-block-woocommerce-product-button .wp-block-button__link {
	border-radius: 999px;
}

.wc-block-components-button:not(.is-link):hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--contrast);
}

/* WooCommerce: notices */
.wc-block-components-notice-banner {
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}

/* Taxonomy links: quiet */
.wp-block-post-terms a {
	text-decoration: none;
}

/* WooCommerce: product tabs and related products */
.wp-block-woocommerce-product-details .woocommerce-Tabs-panel > h2 {
	display: none;
}

.wp-block-woocommerce-related-products h2 {
	font-size: var(--wp--preset--font-size--x-large);
}
