/**
 * The single shop page's head (aieo/store-hero, layout «shop»; the designer, 24 Nov 2026): the town as large as it goes
 * with the lead beside it, then the photo with «Look inside» next to the facts. Nothing overlaps: the title has its own
 * row above the photo. The theme's tokens only, the browser's system colours without the theme.
 */
.aieo-store-head {
	--aieo-sh-fg: var(--wp--preset--color--fg, CanvasText);
	--aieo-sh-bg: var(--wp--preset--color--bg, Canvas);
	--aieo-sh-muted: var(--wp--preset--color--muted, color-mix(in srgb, CanvasText 62%, Canvas));
	--aieo-sh-subtle: var(--wp--preset--color--subtle, color-mix(in srgb, CanvasText 6%, Canvas));
	--aieo-sh-ease: cubic-bezier(.16, 1, .3, 1);
}
.aieo-store-head__h {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
	gap: var(--wp--preset--spacing--4, 1rem) var(--wp--preset--spacing--7, 3rem);
	align-items: end;
	padding: clamp(8px, 1.4vw, 22px) 0 clamp(20px, 2.4vw, 36px);
}
.aieo-store-head__title {
	margin: 0 0 0 -0.045em;
	padding-bottom: 0.06em;
	font-size: clamp(4rem, 1.2rem + 12.4vw, 12.5rem);
	line-height: 0.84;
	overflow-wrap: break-word;
	hyphens: auto;
}
.aieo-store-head__lead { margin: 0; padding-bottom: 0.4em; }
.aieo-store-head__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
	gap: var(--wp--preset--spacing--5, 1.5rem) var(--wp--preset--spacing--7, 3rem);
	align-items: stretch;
}

/* The photo, and the interior over it behind «Look inside» (also on hover with a mouse) */
.aieo-store-head__img {
	position: relative;
	margin: 0;
	min-height: clamp(380px, 46vw, 640px);
	overflow: hidden;
	background: var(--aieo-sh-subtle);
	border-radius: var(--wp--custom--rooster--shape--media, 0);
}
.aieo-store-head__img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 60%;
}
.aieo-look { --aieo-look-w: 25% 29% 28% 26%; }
.aieo-look .aieo-look__inside { clip-path: inset(var(--aieo-look-w)); opacity: 0; transform: scale(1.12); }
.aieo-look.is-inside .aieo-look__inside { clip-path: inset(0); opacity: 1; transform: none; }
.aieo-look.is-inside .aieo-look__front { transform: scale(1.35); }
@media (hover: hover) {
	.aieo-look.has-inside:hover .aieo-look__inside { clip-path: inset(0); opacity: 1; transform: none; }
	.aieo-look.has-inside:hover .aieo-look__front { transform: scale(1.35); }
}
.aieo-look__btn {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 16px 0 12px;
	border: 0;
	border-radius: var(--wp--custom--rooster--shape--control, 0);
	background: var(--aieo-sh-bg);
	color: var(--aieo-sh-fg);
	font: inherit;
	font-size: var(--wp--preset--font-size--sm, 0.875rem);
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}
.aieo-look__btn:focus-visible { outline: 2px solid var(--aieo-sh-fg); outline-offset: 2px; }
.aieo-look__btn[aria-pressed="true"] .aieo-shop__look-off,
.aieo-look__btn:not([aria-pressed="true"]) .aieo-shop__look-on { display: none; }

/* The facts: the state, the address and phone, the hours, the buttons */
.aieo-store-head__f {
	display: grid;
	align-content: space-between;
	gap: var(--wp--preset--spacing--5, 1.5rem);
	min-width: 0;
}
.aieo-store-head__state {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding-bottom: var(--wp--preset--spacing--3, 0.75rem);
	color: var(--aieo-sh-muted);
	font-size: var(--wp--preset--font-size--lg, 1.125rem);
	font-weight: 600;
}
.aieo-store-head__state::before {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: currentColor;
}
.aieo-store-head__state.is-open { color: var(--wp--preset--color--success-ink, var(--wp--preset--color--success, CanvasText)); }
.aieo-store-head__nap { font-style: normal; line-height: 1.5; }
.aieo-store-head__nap p { margin: 0; }
.aieo-store-head__phone a { color: inherit; }
.aieo-store-head__phone .aieo-shop__phone-note { color: var(--aieo-sh-muted); }
.aieo-store-head__acts { display: grid; gap: var(--wp--preset--spacing--3, 0.75rem); }
.aieo-store-head__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 52px;
	text-decoration: none;
}
.aieo-store-head .aieo-store-icon { flex: none; width: 20px; height: 20px; }

@media (prefers-reduced-motion: no-preference) {
	.aieo-look img { transition: transform 1100ms var(--aieo-sh-ease), clip-path 900ms var(--aieo-sh-ease), opacity 260ms linear; }
	.aieo-store-head__title { animation: aieo-sh-up 1000ms var(--aieo-sh-ease) both; }
	.aieo-store-head__lead, .aieo-store-head__f { animation: aieo-sh-in 900ms 200ms var(--aieo-sh-ease) both; }
	.aieo-store-head__img { animation: aieo-sh-curtain 1100ms var(--aieo-sh-ease) both; }
	.aieo-store-head__state.is-open::before { animation: aieo-sh-ring 2.8s ease-out infinite; }
	.aieo-store-head__btn .aieo-store-icon { transition: transform 300ms var(--aieo-sh-ease); }
	.aieo-store-head__btn:hover .aieo-store-icon { transform: translateX(4px); }
}
@keyframes aieo-sh-up { from { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); } to { clip-path: inset(-0.2em -0.2em -0.25em -0.2em); transform: none; } }
@keyframes aieo-sh-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes aieo-sh-curtain { from { clip-path: inset(0 0 14% 0); } to { clip-path: inset(0); } }
@keyframes aieo-sh-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }

@media (max-width: 1023px) {
	.aieo-store-head__h, .aieo-store-head__body { grid-template-columns: minmax(0, 1fr); }
	.aieo-store-head__img { min-height: 0; aspect-ratio: 3 / 2; }
}
@media (max-width: 600px) {
	.aieo-look__btn { right: 10px; bottom: 10px; }
}
