/* Global shell: disclaimer strip, header (on-image / light), search panel, mobile menu, cart drawer.
   Owner: header area. Mobile first; Figma: Header / Mobile 32727:1154, Header / Desktop 32738:1964. */

:root {
	/* Shell heights (public: the home hero pads itself with these so the on-image header can overlay it). */
	--strip-h: 32px;
	--header-h: 56px;
	--shell-h: calc(var(--strip-h) + var(--header-h)); /* top bar + header: both stay on screen */
	--hdr-glass: color-mix(in srgb, var(--paper) 84%, transparent);
	--scrim: color-mix(in srgb, var(--ink) 48%, transparent);
}

html.is-locked { overflow: hidden; }

.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 200;
	padding: 12px 20px; border-radius: var(--r-pill);
	background: var(--ink); color: var(--paper); font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.icon-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: inherit; cursor: pointer; text-decoration: none;
	transition: background-color .2s, color .2s;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { color: inherit; background: color-mix(in srgb, currentColor 8%, transparent); }

/* ---------- Top bar (owner, 8 Nov): sticks with the header; phones slide through the three messages one at a
   time (CSS only, paused on touch/hover/focus), a still centred row from 720px. ---------- */
.strip {
	position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 61;
	height: var(--strip-h); overflow: hidden;
	background: var(--ink); color: var(--on-dark);
	font: 400 12px/1.3 var(--font-text);
}
.strip__track { position: relative; height: 100%; margin: 0; padding: 0; list-style: none; }
.strip li {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
	padding-inline: 16px; white-space: nowrap; opacity: 0; visibility: hidden;
	animation: strip-slide 12s var(--ease) infinite;
}
/* 4 s per message; the first starts already in place */
.strip li:nth-child(1) { animation-delay: -.48s; }
.strip li:nth-child(2) { animation-delay: 3.52s; }
.strip li:nth-child(3) { animation-delay: 7.52s; }
.strip:focus-within li, .strip:active li { animation-play-state: paused; }
@media (hover: hover) { .strip:hover li { animation-play-state: paused; } } /* touch keeps :hover after a tap */
.strip__icon { flex: none; width: 14px; height: 14px; color: var(--accent); }
.strip__link { color: var(--paper); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.strip__link:hover { color: var(--orange-100); }
/* visibility too: the stacked, faded-out messages must not catch the tap meant for the visible one */
@keyframes strip-slide {
	0% { opacity: 0; visibility: hidden; transform: translateX(32px); }
	4%, 30% { opacity: 1; visibility: visible; transform: none; }
	34%, 100% { opacity: 0; visibility: hidden; transform: translateX(-32px); }
}

@media (prefers-reduced-motion: reduce) {
	.strip__track { display: flex; overflow-x: auto; scrollbar-width: none; }
	.strip li { position: static; flex: none; opacity: 1; visibility: visible; animation: none; }
}

@media (min-width: 720px) {
	.strip__track { display: flex; justify-content: center; gap: 36px; }
	.strip li { position: static; padding-inline: 0; opacity: 1; visibility: visible; animation: none; }
}

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--strip-h)); z-index: 60;
	color: var(--ink); background: var(--hdr-glass);
	-webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
	box-shadow: inset 0 -1px 0 var(--line);
	transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header__bar {
	display: flex; align-items: center; gap: 4px;
	height: var(--header-h); padding-inline: 16px 4px;
}
.hnav { display: none; }
.site-header__logo { display: flex; flex: none; margin-inline-end: auto; }
.site-header__logo img { width: 99px; height: auto; }
.site-header__logo .logo--white { display: none; }

.hactions { display: flex; align-items: center; gap: 4px; }
.hactions .lang-dd, .hactions__search, .hactions__account { display: none; }
.hactions__verify { background: var(--ink); color: var(--paper); white-space: nowrap; margin-inline: 4px; }
.hactions__verify:hover { color: var(--paper); }
@media (max-width: 349px) { .hactions__verify { display: none; } }

.cart-count {
	position: absolute; top: 4px; right: 2px;
	min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: var(--accent); color: var(--paper);
	font: 500 11px/18px var(--font-text); text-align: center;
}
.cart-count[hidden] { display: none; }

/* On image (front page, over the hero): transparent, white text and logo, white pill. */
.site-header--on-image { margin-bottom: calc(-1 * var(--header-h)); }
.site-header--on-image:not(.is-solid) {
	color: var(--paper); background: transparent; box-shadow: none;
	-webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-header--on-image:not(.is-solid) .logo--dark { display: none; }
.site-header--on-image:not(.is-solid) .logo--white { display: block; }
.site-header--on-image:not(.is-solid) .hactions__verify { background: var(--paper); color: var(--ink); }

@media (min-width: 640px) {
	.site-header__bar { padding-inline: 24px 12px; }
	.hactions .lang-dd, .hactions__search, .hactions__account { display: inline-flex; }
}

@media (min-width: 1080px) {
	:root { --header-h: 76px; }
	.site-header__bar {
		display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px;
		width: var(--wrap); margin-inline: auto; padding: 0;
	}
	/* Links run the full bar height so the underline sits on the header's bottom border. */
	.hnav { display: flex; align-self: stretch; gap: 28px; font: 400 14px/1.2 var(--font-text); }
	.hnav a { position: relative; display: flex; align-items: center; text-decoration: none; }
	.hnav a::after {
		content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
		background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
	}
	.hnav a:hover { color: inherit; }
	.hnav a:hover::after, .hnav a[aria-current="page"]::after { transform: scaleX(1); }
	.site-header__logo { margin: 0; }
	.site-header__logo img { width: 119px; }
	.hactions { justify-content: flex-end; gap: 8px; }
	.hactions__verify { margin-inline: 0 4px; }
	.hactions__menu { display: none; }
}

/* ---------- Language dropdown (Figma 32732:1969 / 32733:3559) ---------- */
.lang-dd { position: relative; }
.lang-dd summary {
	display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 8px;
	font: 500 14px/1.2 var(--font-text); list-style: none; cursor: pointer; border-radius: var(--r-pill);
}
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd__chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.lang-dd[open] .lang-dd__chev { transform: rotate(180deg); }
.lang-dd__menu {
	position: absolute; top: calc(100% + 4px); right: 0; z-index: 5;
	width: 180px; margin: 0; padding: 6px 0; list-style: none;
	background: var(--paper); color: var(--ink);
	border: 1px solid var(--line); border-radius: var(--r-img); box-shadow: var(--sh);
}
.lang-dd__menu a {
	display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px;
	font: 400 14px/1.2 var(--font-text); text-decoration: none;
}
.lang-dd__menu a:hover { background: var(--wash); color: var(--ink); }
.lang-dd__menu a[aria-current] { background: var(--wash); font-weight: 500; }
.lang-dd__name { flex: 1; }
.lang-dd__check { width: 16px; height: 16px; }

/* ---------- Search panel ---------- */
.search-panel {
	position: absolute; top: calc(100% + 8px); left: 8px; right: 8px;
	max-height: calc(100dvh - var(--shell-h) - 24px); overflow: auto;
	padding: 8px; border-radius: var(--r-xl);
	background: var(--paper); color: var(--ink); box-shadow: var(--sh-lg), 0 0 0 1px var(--line);
}
.search-panel[hidden] { display: none; }
.search-panel__form, .mmenu__search {
	display: flex; align-items: center; gap: 10px;
	height: 52px; padding: 0 4px 0 18px; border-radius: var(--r-pill); background: var(--wash);
}
.search-panel__icon { flex: none; width: 20px; height: 20px; color: var(--ink-70); }
.search-panel__form input[type="search"], .mmenu__search input[type="search"] {
	flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent;
	font: 400 16px/1.2 var(--font-text); outline: none; -webkit-appearance: none; appearance: none;
}
.search-panel__form:focus-within, .mmenu__search:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-panel__results { margin: 0; padding: 0; list-style: none; }
.search-panel__results:not(:empty) { padding-top: 6px; }
.search-panel__results a {
	display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px;
	min-height: 64px; padding: 8px 12px; border-radius: var(--r-img); text-decoration: none;
}
.search-panel__results a:hover, .search-panel__results a:focus-visible { background: var(--wash); color: var(--ink); }
.search-panel__thumb { width: 48px; height: 48px; border-radius: 8px; background: var(--grad-tile); object-fit: cover; }
.search-panel__name { font: 500 14px/1.25 var(--font-text); }
.search-panel__price { font: 500 14px/1.2 var(--font-display); color: var(--accent-d); text-align: right; white-space: nowrap; }
.search-panel__price del { display: block; color: var(--ink-70); font-weight: 400; font-size: 12px; }
.search-panel__empty { padding: 14px 12px; color: var(--ink-70); font-size: 14px; }
.search-panel__all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.search-panel__all button {
	display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px;
	padding: 0 12px; border: 0; border-radius: var(--r-img); background: transparent;
	font: 500 14px/1.2 var(--font-text); color: var(--accent-d); cursor: pointer;
}
.search-panel__all button:hover { background: var(--wash-accent); }
.search-panel__all svg { width: 16px; height: 16px; }
.search-panel__close svg { width: 18px; height: 18px; }

@media (min-width: 640px) {
	.search-panel { left: 50%; right: auto; width: min(720px, calc(100vw - 48px)); transform: translateX(-50%); padding: 10px; }
}

/* ---------- Mobile menu (Figma 32731:1820) ---------- */
.mmenu {
	position: fixed; inset: 0; z-index: 120;
	display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
	background: var(--paper); color: var(--ink);
	transform: translateY(-12px); opacity: 0;
	transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.mmenu.is-open { transform: none; opacity: 1; }
.mmenu[hidden] { display: none; }
.mmenu__head {
	display: flex; align-items: center; gap: 4px; flex: none;
	height: 56px; padding-inline: 16px 4px;
}
.mmenu__head .logo { margin-inline-end: auto; }
.mmenu__head .logo img { width: 99px; height: auto; }
.mmenu__search { margin: 16px 16px 0; }
.mmenu__nav { display: flex; flex-direction: column; padding: 24px 20px 24px; }
.mmenu__label { margin: 0; font: 400 14px/1.2 var(--font-text); color: var(--ink-70); }
.mmenu__nav a {
	display: flex; align-items: center; min-height: 60px;
	font: 400 22px/1.1 var(--font-text); letter-spacing: -.01em; text-decoration: none;
}
.mmenu__nav a[aria-current="page"] { color: var(--accent-d); }
.mmenu__foot {
	display: flex; flex-direction: column; gap: 16px; margin-top: auto;
	padding: 20px 16px 32px; border-top: 1px solid var(--line);
}
.mmenu__mail { font: 400 22px/1.1 var(--font-text); letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; }
.lang-links--menu { display: flex; justify-content: center; gap: 8px; padding-top: 8px; }
.lang-links--menu a {
	display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 44px;
	font: 500 18px/1.2 var(--font-text); color: var(--line-2); text-decoration: none;
}
.lang-links--menu a[aria-current] { color: var(--ink); }
.lang-links--menu a:hover { color: var(--ink); }
@media (min-width: 640px) {
	.mmenu__head { padding-inline: 24px 12px; }
	.mmenu__nav { padding-inline: 24px; }
	.mmenu__search { margin-inline: 24px; }
	.mmenu__foot { padding-inline: 24px; }
}

/* ---------- Cart drawer ---------- */
.scrim {
	position: fixed; inset: 0; z-index: 110; background: var(--scrim);
	opacity: 0; transition: opacity .3s var(--ease);
}
.scrim.is-open { opacity: 1; }
.scrim[hidden] { display: none; }

.drawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 115;
	display: flex; flex-direction: column; width: min(440px, 100%);
	background: var(--paper); color: var(--ink); box-shadow: var(--sh-lg);
	transform: translateX(100%); transition: transform .4s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer[hidden] { display: none; }
.drawer__head {
	display: flex; align-items: center; justify-content: space-between; flex: none;
	padding: 12px 8px 12px 20px; border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: 24px; }

.minicart { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.minicart.is-busy { opacity: .55; pointer-events: none; transition: opacity .2s; }
.minicart__empty {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
	flex: 1; padding: 32px 20px; text-align: center;
}
.minicart__empty p { margin: 0; }
.minicart__empty-icon {
	width: 64px; height: 64px; padding: 18px; border-radius: 50%;
	background: var(--wash-accent); color: var(--accent);
}

.ship-progress { flex: none; margin: 16px 20px 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--grad-soft); }
.ship-progress__text { margin: 0 0 10px; }
.ship-progress__text strong { font-weight: 500; color: var(--accent-d); }
.ship-progress__bar { height: 6px; border-radius: 3px; background: var(--orange-100); overflow: hidden; }
.ship-progress__bar span { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .6s var(--ease); }

.minicart__items { flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 8px 20px; list-style: none; }
.minicart__item {
	display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "thumb info remove" "thumb qty price";
	align-items: center; column-gap: 12px; row-gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.minicart__item:last-child { border-bottom: 0; }
.minicart__thumb { grid-area: thumb; align-self: start; display: block; width: 64px; height: 64px; border-radius: var(--r-img); overflow: hidden; background: var(--grad-tile); }
.minicart__thumb img { width: 100%; height: 100%; object-fit: cover; }
.minicart__info { grid-area: info; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.minicart__name { font: 500 16px/1.2 var(--font-display); letter-spacing: -.02em; text-decoration: none; }
.minicart__meta { color: var(--ink-70); }
.minicart__qty { grid-area: qty; justify-self: start; }
.minicart__price { grid-area: price; justify-self: end; text-align: end; font: 500 16px/1 var(--font-display); letter-spacing: -.02em; }
.minicart__price del { color: var(--ink-70); font-size: 13px; margin-inline-end: 6px; }
.minicart__price ins { text-decoration: none; }
.minicart__remove {
	grid-area: remove; align-self: start; justify-self: end; margin-top: -10px; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; margin-inline-end: -10px; border-radius: 50%; color: var(--ink-70);
}
.minicart__remove:hover { background: var(--wash); color: var(--ink); }
.minicart__x { width: 18px; height: 18px; }

.minicart__foot {
	flex: none; display: flex; flex-direction: column; gap: 10px;
	padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
}
.minicart__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; font-size: 16px; }
.minicart__total strong { font: 500 24px/1 var(--font-display); letter-spacing: -.03em; }
.minicart__foot .btn { min-height: 48px; }
