/**
 * My Store Theme – global styles.
 *
 * Only layout and component polish lives here. Colors, fonts, sizes, radii
 * and spacing always come from theme.json tokens (CSS custom properties),
 * so changing a style variation or Global Styles re-skins everything.
 *
 * Shorthands used below:
 *   --wp--preset--color--*        palette (base, surface, contrast, muted, border, accent, accent-contrast, highlight, success)
 *   --wp--custom--radius--*       control, card, media, button
 */

:root {
	--my-store-gap: clamp(1rem, 0.6rem + 1.4vw, 2rem);
	--my-store-ease: var(--wp--custom--transition, 200ms ease);
	/* --my-store-header-h is measured by theme.js (announcement + header). */
	--my-store-header-offset: calc(var(--wp-admin--admin-bar--height, 0px) + var(--my-store-header-h, calc(var(--wp--custom--header--height, 76px) + 34px)) + 1.25rem);
}

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

:where(img) {
	max-width: 100%;
	height: auto;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

::selection {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-contrast);
}

/* Keep the main content clear of the footer and give pages breathing room. */
.my-store-main {
	padding-top: var(--wp--preset--spacing--40);
	padding-bottom: var(--wp--preset--spacing--60);
}

.my-store-home {
	padding-top: 0;
	padding-bottom: 0;
}

.my-store-home > * + * {
	margin-block-start: 0;
}

.my-store-page-title {
	margin-bottom: var(--wp--preset--spacing--40);
}

/* ---------------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------------ */

.my-store-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

@media (max-width: 600px) {
	/* The admin bar is not fixed on small screens. */
	.admin-bar .my-store-site-header {
		top: 0;
	}
}

.my-store-announcement {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.my-store-announcement p {
	font-size: 0.6875rem !important;
}

.my-store-announcement p {
	margin: 0;
}

.my-store-announcement a {
	color: inherit;
}

.my-store-header {
	/* Solid background on purpose: backdrop-filter/transform here would trap
	 * the full-screen mobile menu overlay inside the header bar. */
	background: var(--wp--preset--color--base);
	border-bottom: 0;
	transition: border-color var(--my-store-ease), box-shadow var(--my-store-ease);
}

.is-scrolled .my-store-header {
	background: var(--wp--preset--color--base);
}

.my-store-header__inner {
	min-height: var(--wp--custom--header--height, 76px);
	gap: var(--my-store-gap);
}

.my-store-header__brand {
	gap: 0.75rem;
	flex-shrink: 0;
}

.my-store-header__brand .wp-block-site-title {
	margin: 0;
	white-space: nowrap;
}

/* If a logo is set, hide the duplicate text title in the header. */
.my-store-header__brand:has(.wp-block-site-logo img) .wp-block-site-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.my-store-header__nav {
	flex: 1 1 auto;
	--navigation-layout-justification-setting: center;
}

.my-store-header__nav .wp-block-navigation-item__content {
	padding: 0.35rem 0.1rem;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size var(--my-store-ease);
}

.my-store-header__nav .wp-block-navigation-item__content:hover,
.my-store-header__nav .current-menu-item > .wp-block-navigation-item__content {
	background-size: 100% 1px;
}

.my-store-header__nav .wp-block-navigation__container {
	gap: clamp(1rem, 2vw, 2.25rem);
}

.my-store-header__actions {
	gap: 0.25rem;
	flex-shrink: 0;
}

.my-store-header__actions > * {
	margin: 0;
}

/* Icon buttons share one size so the row looks deliberate. */
.my-store-header__search .wp-block-search__button,
.my-store-header__actions .wc-block-customer-account a,
.my-store-header__actions .wc-block-mini-cart__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0.5rem;
	border-radius: var(--wp--custom--radius--button);
	color: var(--wp--preset--color--contrast);
	background: transparent;
	border: 0;
	transition: background-color var(--my-store-ease);
}

.my-store-header__search .wp-block-search__button:hover,
.my-store-header__actions .wc-block-customer-account a:hover,
.my-store-header__actions .wc-block-mini-cart__button:hover {
	background: transparent;
	color: var(--wp--preset--color--muted);
}

.my-store-header__search .wp-block-search__button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.my-store-header__search .wp-block-search__inside-wrapper {
	border: 0;
	padding: 0;
	gap: 0.25rem;
}

.my-store-header__search.wp-block-search__searchfield-hidden .wp-block-search__input {
	border: 0;
	padding: 0;
}

.my-store-header__search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	min-width: 200px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--button);
	padding: 0.55rem 1rem;
	background: var(--wp--preset--color--base);
}

.my-store-header__actions .wc-block-mini-cart__badge {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
	font-size: 0.625rem;
	font-weight: 600;
}

/* Mobile: hamburger left, logo, actions right. */
@media (max-width: 781px) {
	.my-store-header__inner {
		gap: 0.5rem;
	}

	.my-store-header__nav {
		order: -1;
		flex: 0 0 auto;
	}

	.my-store-header__brand {
		flex: 1 1 auto;
		min-width: 0;
	}

	.my-store-header__brand .wp-block-site-title {
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.my-store-header__actions {
		gap: 0;
	}

	.my-store-header__search .wp-block-search__button,
	.my-store-header__actions .wc-block-customer-account a,
	.my-store-header__actions .wc-block-mini-cart__button {
		min-width: 40px;
		padding: 0.4rem;
	}

	.my-store-header__search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
		min-width: 0;
		width: 38vw;
	}
}

/* Small phones: account stays reachable from the menu, so drop its icon. */
@media (max-width: 480px) {
	.my-store-header__actions .wp-block-woocommerce-customer-account {
		display: none;
	}
}

/* Mobile navigation overlay. */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--preset--spacing--50);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
}

/* Checkout header */
.my-store-header--checkout {
	border-bottom: 0;
}

.my-store-header--checkout p {
	margin: 0;
}

.my-store-secure {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--wp--preset--color--muted);
}

.my-store-secure::before {
	content: "";
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: var(--my-store-icon-lock) center / contain no-repeat;
	mask: var(--my-store-icon-lock) center / contain no-repeat;
}

@media (max-width: 600px) {
	.my-store-secure {
		display: none;
	}
}

/* ---------------------------------------------------------------------------
 * Sections & homepage
 * ------------------------------------------------------------------------ */

.my-store-section {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--30);
}

.my-store-section__head {
	margin-bottom: var(--wp--preset--spacing--40);
	gap: 0.5rem 2rem;
}

.my-store-section__head > * {
	margin: 0;
}

.my-store-section-title {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	margin: 0;
}

.my-store-link-arrow a {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.my-store-link-arrow a::after {
	content: "→";
	transition: transform var(--my-store-ease);
}

.my-store-link-arrow a:hover::after {
	transform: translateX(4px);
}

/* ---------------------------------------------------------------------------
 * Hero slideshow ("flash"): full-screen crossfade, slow zoom pull-back,
 * a soft light bloom between slides, progress dots. Slides are Cover
 * blocks; assets/js/theme.js drives them. Without JS the first slide shows.
 * Tune with the custom properties below.
 * ------------------------------------------------------------------------ */

.my-store-hero-flash {
	--hf-height: 88svh;
	--hf-height-mobile: 80svh;
	--hf-zoom: 1.14;
	--hf-interval: 6s;
	--hf-flash: #fff;
	--hf-flash-strength: 0.2;
	position: relative;
	height: var(--hf-height-mobile);
	min-height: 420px;
	margin-block: 0 !important;
	overflow: hidden;
	background: #000;
	color: #fff;
}

@media (min-width: 750px) {
	.my-store-hero-flash {
		height: var(--hf-height);
		min-height: 560px;
	}
}

.my-store-hero-flash > .my-store-hero-flash__slide {
	position: absolute;
	inset: 0;
	min-height: 0 !important;
	height: 100%;
	margin: 0 !important;
	padding: calc(var(--my-store-hero-offset, 0px) + 48px) 24px 72px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.6s cubic-bezier(0.45, 0, 0.25, 1), visibility 0s linear 1.6s;
}

/* Before JS runs (or without JS) show the first slide. */
.my-store-hero-flash:not(.is-ready) > .my-store-hero-flash__slide:first-child,
.my-store-hero-flash > .my-store-hero-flash__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
	transition: opacity 1.6s cubic-bezier(0.45, 0, 0.25, 1), visibility 0s;
}

.my-store-hero-flash > .my-store-hero-flash__slide.is-leaving {
	visibility: visible;
	z-index: 1;
}

.my-store-hero-flash.is-ready > .my-store-hero-flash__slide {
	cursor: pointer;
}

.my-store-hero-flash .wp-block-cover__image-background {
	transform: scale(var(--hf-zoom));
	will-change: transform, filter;
}

@keyframes my-store-hero-pullback {
	0% {
		transform: scale(var(--hf-zoom));
		filter: blur(3px) brightness(1.08);
	}
	30% {
		filter: blur(0) brightness(1);
	}
	100% {
		transform: scale(1);
		filter: blur(0) brightness(1);
	}
}

.my-store-hero-flash:not(.is-ready) > .my-store-hero-flash__slide:first-child .wp-block-cover__image-background,
.my-store-hero-flash > .my-store-hero-flash__slide.is-active .wp-block-cover__image-background {
	animation: my-store-hero-pullback calc(var(--hf-interval) + 2s) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.my-store-hero-flash > .my-store-hero-flash__slide.is-leaving .wp-block-cover__image-background {
	animation: none;
	transform: scale(1);
	filter: none;
}

/* Light bloom between slides. */
.my-store-hero-flash__flash {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: var(--hf-flash);
	opacity: 0;
	pointer-events: none;
	mix-blend-mode: screen;
}

@keyframes my-store-hero-fire {
	0% { opacity: 0; }
	35% { opacity: var(--hf-flash-strength); }
	100% { opacity: 0; }
}

.my-store-hero-flash__flash.is-firing {
	animation: my-store-hero-fire 1.6s cubic-bezier(0.45, 0, 0.25, 1) both;
}

/* Content: caption + big heading, revealed with a blur-in. */
.my-store-hero-flash .wp-block-cover__inner-container {
	position: relative;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: #fff;
}

.my-store-hero-flash .wp-block-cover__inner-container > * {
	margin: 0 !important;
	color: #fff;
	opacity: 0;
	transform: translateY(14px);
	filter: blur(6px);
	transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

.my-store-hero-flash:not(.is-ready) > .my-store-hero-flash__slide:first-child .wp-block-cover__inner-container > *,
.my-store-hero-flash > .my-store-hero-flash__slide.is-active .wp-block-cover__inner-container > * {
	opacity: 1;
	transform: none;
	filter: blur(0);
	transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), filter 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.my-store-hero-flash > .my-store-hero-flash__slide.is-active .wp-block-cover__inner-container > :nth-child(1) { transition-delay: 0.6s; }
.my-store-hero-flash > .my-store-hero-flash__slide.is-active .wp-block-cover__inner-container > :nth-child(2) { transition-delay: 0.8s; }
.my-store-hero-flash > .my-store-hero-flash__slide.is-active .wp-block-cover__inner-container > :nth-child(3) { transition-delay: 1s; }

.my-store-hero-flash__caption {
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.my-store-hero-flash a {
	color: inherit;
	text-decoration: none;
}

.my-store-hero-flash__heading {
	max-width: 14ch;
	font-size: var(--wp--preset--font-size--display) !important;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.my-store-hero-flash .wp-block-button__link {
	margin-top: 14px;
	background: transparent;
	color: #fff;
	border-color: currentColor;
}

.my-store-hero-flash .wp-block-button__link:hover {
	background: #fff;
	color: #111;
}

/* Progress dots */
.my-store-hero-flash__nav {
	position: absolute;
	z-index: 5;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	display: flex;
	gap: 12px;
}

.my-store-hero-flash__dot {
	position: relative;
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.4);
	cursor: pointer;
	transition: background-color 0.4s ease, transform 0.4s ease;
}

.my-store-hero-flash__dot::before {
	content: "";
	position: absolute;
	inset: -10px;
}

.my-store-hero-flash__dot:hover {
	background: rgb(255 255 255 / 0.7);
}

.my-store-hero-flash__dot.is-active {
	background: #fff;
	transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
	.my-store-hero-flash .wp-block-cover__image-background {
		animation: none !important;
		transform: none;
	}

	.my-store-hero-flash .wp-block-cover__inner-container > * {
		transition: none !important;
		filter: none;
		transform: none;
	}
}

/* Transparent header over the hero (set by theme.js when the page starts
 * with the slideshow); it turns solid once the page scrolls. */
.has-hero-overlay .my-store-hero-flash {
	margin-top: calc(var(--my-store-header-h, 0px) * -1) !important;
}

.has-hero-overlay .my-store-hero-flash > .my-store-hero-flash__slide {
	--my-store-hero-offset: var(--my-store-header-h, 0px);
}

.has-hero-overlay:not(.is-scrolled) .my-store-header {
	background: transparent;
	color: #fff;
}

.has-hero-overlay:not(.is-scrolled) .my-store-header :is(.wp-block-site-title a, .wp-block-search__button, .wc-block-customer-account a, .wc-block-mini-cart__button, .wp-block-navigation__responsive-container-open),
.has-hero-overlay:not(.is-scrolled) .my-store-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content {
	color: #fff;
}

/* The open mobile menu is always a white panel with dark text. */
.my-store-header .wp-block-navigation__responsive-container.is-menu-open,
.my-store-header .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation-item__content, .wp-block-navigation__responsive-container-close) {
	color: var(--wp--preset--color--contrast) !important;
}

.has-hero-overlay:not(.is-scrolled) .my-store-header .wc-block-mini-cart__badge {
	background: #fff;
	color: #111;
	border-color: transparent;
}

.has-hero-overlay:not(.is-scrolled) .my-store-header__search .wp-block-search__button:hover,
.has-hero-overlay:not(.is-scrolled) .my-store-header__actions .wc-block-customer-account a:hover,
.has-hero-overlay:not(.is-scrolled) .my-store-header__actions .wc-block-mini-cart__button:hover {
	color: rgb(255 255 255 / 0.75);
}

.my-store-header {
	transition: background-color var(--my-store-ease), color var(--my-store-ease), border-color var(--my-store-ease);
}

/* Store promises */
.my-store-usp {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-top: var(--wp--preset--spacing--40);
	padding-bottom: var(--wp--preset--spacing--40);
}

.my-store-usp__grid {
	gap: var(--wp--preset--spacing--40);
}

.my-store-usp__item {
	display: grid;
	grid-template-columns: 2.5rem 1fr;
	column-gap: 0.85rem;
	align-items: start;
}

.my-store-usp__item::before {
	content: "";
	grid-row: span 2;
	width: 2.5rem;
	height: 2.5rem;
	/* Icon drawn with a mask so it follows the palette (works in dark variations). */
	background:
		var(--wp--preset--color--accent);
	-webkit-mask: var(--my-store-icon) center / 1.5rem no-repeat;
	mask: var(--my-store-icon) center / 1.5rem no-repeat;
}

.my-store-usp__item > * {
	margin: 0 !important;
}

.my-store-usp__item h3 {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small) !important;
	font-weight: 500;
	letter-spacing: 0;
}

@media (min-width: 600px) and (max-width: 781px) {
	.my-store-usp__grid {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
	}
}

/* Spotlight */
.my-store-spotlight .wp-block-columns {
	gap: var(--wp--preset--spacing--50);
}

/* CTA banner */
.my-store-cta {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
	margin-top: var(--wp--preset--spacing--60) !important;
}

.my-store-cta .is-style-eyebrow {
	color: var(--wp--preset--color--muted);
}

.my-store-button-inverse .wp-block-button__link {
	background: var(--wp--preset--color--accent-contrast);
	color: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent-contrast);
}

.my-store-button-inverse .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--accent-contrast);
	border-color: var(--wp--preset--color--accent-contrast);
}

/* ---------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------ */

.my-store-footer {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--30);
}

.my-store-footer__columns {
	gap: var(--wp--preset--spacing--50);
}

.my-store-footer__heading {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: var(--wp--custom--eyebrow--letter-spacing);
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.my-store-footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

.my-store-footer__links li + li {
	margin-top: 0.6rem;
}

.my-store-footer__links a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.my-store-footer__links a:hover {
	color: var(--wp--preset--color--contrast);
}

.my-store-footer__tagline {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.my-store-footer__tagline:empty {
	display: none;
}

.my-store-footer__bottom {
	margin-top: var(--wp--preset--spacing--50) !important;
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--border);
	align-items: center;
}

.my-store-footer__bottom p {
	margin: 0;
}

/* ---------------------------------------------------------------------------
 * Block style variations (registered in functions.php)
 * ------------------------------------------------------------------------ */

.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 600 !important;
	letter-spacing: var(--wp--custom--eyebrow--letter-spacing) !important;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	line-height: 1.4;
}

.is-style-eyebrow a {
	color: inherit;
	text-decoration: none;
}

.is-style-checklist {
	list-style: none;
	padding-left: 0;
}

.is-style-checklist li {
	position: relative;
	padding-left: 1.75rem;
}

.is-style-checklist li + li {
	margin-top: 0.5rem;
}

.is-style-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 1.05rem;
	height: 1.05rem;
	background: var(--wp--preset--color--accent);
	-webkit-mask: var(--my-store-icon-check) center / contain no-repeat;
	mask: var(--my-store-icon-check) center / contain no-repeat;
}

.is-style-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--preset--spacing--40);
}

.is-style-zoom {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--media);
}

.is-style-zoom img {
	transition: transform 0.8s cubic-bezier(.2, .7, .2, 1);
}

.is-style-zoom:hover img {
	transform: scale(1.04);
}

/* Outline buttons follow the current text color. */
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	background: transparent;
	color: currentColor;
	border-color: currentColor;
}

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

/* Selects: no native arrow, a clear 16px chevron instead. */
select,
.wc-blocks-components-select .wc-blocks-components-select__select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: var(--my-store-chevron) !important;
	background-repeat: no-repeat !important;
	background-position: right 0.9rem center !important;
	background-size: 1rem !important;
	padding-right: 2.75rem !important;
}

.wc-blocks-components-select .wc-blocks-components-select__expand {
	display: none;
}

/* Form controls (WooCommerce classic forms, search, comments). */
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], select, textarea) {
	font: inherit;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
	border: 1px solid #c8c8c8;
	border-radius: var(--wp--custom--radius--control);
	padding: 0.7rem 0.9rem;
	transition: border-color var(--my-store-ease), box-shadow var(--my-store-ease);
}

:where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], select, textarea):focus {
	border-color: var(--wp--preset--color--contrast);
	box-shadow: 0 0 0 1px var(--wp--preset--color--contrast);
	outline: none;
}

/* ---------------------------------------------------------------------------
 * Icons (inline SVG masks, inherit currentColor where masked)
 * ------------------------------------------------------------------------ */

:root {
	--my-store-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--my-store-icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E");
	--my-store-icon-check-thin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7'/%3E%3C/svg%3E");
	--my-store-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	--my-store-icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}

/* Icons are used as masks: only their shape matters, color comes from the palette. */
.my-store-icon-truck {
	--my-store-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 9h4l3 3v4h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E");
}

.my-store-icon-return {
	--my-store-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E");
}

.my-store-icon-lock {
	--my-store-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}

.my-store-icon-chat {
	--my-store-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1.1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E");
}

/* Respect reduced motion preferences everywhere. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------------------------------------------------------------------------
 * Notices: monochrome. Success banners for "added to cart" are disabled in
 * PHP; anything else that shows up is neutral, only errors keep a red edge.
 * ------------------------------------------------------------------------ */

.wc-block-components-notice-banner,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border: 1px solid var(--wp--preset--color--contrast) !important;
	border-radius: 0 !important;
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
	font-size: var(--wp--preset--font-size--small);
	box-shadow: none !important;
}

.wc-block-components-notice-banner > svg {
	background: var(--wp--preset--color--contrast) !important;
	fill: var(--wp--preset--color--base) !important;
	border-radius: 0 !important;
}

.wc-block-components-notice-banner.is-error,
.woocommerce-error {
	border-color: var(--wp--preset--color--highlight) !important;
}

.wc-block-components-notice-banner.is-error > svg {
	background: var(--wp--preset--color--highlight) !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--wp--preset--color--contrast) !important;
}

.woocommerce-message .button,
.woocommerce-info .button,
.wc-block-components-notice-banner .wc-forward {
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--wp--preset--color--contrast) !important;
	text-decoration: underline !important;
	padding: 0 !important;
	font-weight: 500 !important;
}

@media (max-width: 600px) {
	.my-store-announcement p {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* Mobile menu: left-aligned list, like Shopify drawers. */
.my-store-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.my-store-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start !important;
	text-align: left;
	gap: 1.25rem;
}

.my-store-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	letter-spacing: -0.02em;
}

.my-store-header .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	--navigation-layout-align: flex-start;
}

.my-store-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	justify-content: flex-start;
	align-items: flex-start;
}

/* Logo as a "font": the image is a mask filled with the text colour, so it
 * is pure black normally and pure white over the hero (see functions.php). */
.wp-block-site-logo.is-logo-mask a,
.wp-block-site-logo.is-logo-mask > span {
	display: inline-block;
	line-height: 0;
	color: inherit;
	background-color: currentColor;
	-webkit-mask: var(--my-store-logo) center / contain no-repeat;
	mask: var(--my-store-logo) center / contain no-repeat;
	transition: background-color var(--my-store-ease);
}

.wp-block-site-logo.is-logo-mask img {
	opacity: 0;
}

.my-store-header .wp-block-site-logo.is-logo-mask {
	color: var(--wp--preset--color--contrast);
}

.has-hero-overlay:not(.is-scrolled) .my-store-header .wp-block-site-logo.is-logo-mask {
	color: #fff;
}
