/* ==========================================================================
   Carlo Studio 4.1 — header system
   One component, three moods: transparent over the home photograph, ivory on
   internal pages, translucent compact bar once the page scrolls.
   Mobile: menu (left) · logo (center) · favorites + cart (right).
   ========================================================================== */

.crl-header {
	--crl-h-dark: #161718;
	--crl-h-light: var(--crl-ivory, #FFFFFF);
	--crl-h-height: 58px;
	--crl-h-compact: 52px;
	--crl-logo-w: 76px;
	--crl-h-fg: #fff;
	--crl-h-line: rgba(255, 255, 255, .14);
	position: relative;
	z-index: 50;
	color: var(--crl-h-fg);
	background: var(--crl-h-dark);
	transition: background-color var(--crl-d3) var(--crl-ease), color var(--crl-d2) var(--crl-ease), border-color var(--crl-d3) var(--crl-ease), backdrop-filter var(--crl-d3) var(--crl-ease);
}

@media (min-width: 768px) {
	.crl-header { --crl-h-height: 72px; --crl-h-compact: 60px; --crl-logo-w: 92px; }
}

@media (min-width: 1025px) {
	.crl-header { --crl-h-height: 88px; --crl-h-compact: 66px; --crl-logo-w: 108px; }
}

/* Moods ------------------------------------------------------------------ */
.crl-header--light {
	--crl-h-fg: var(--crl-ink, #0F0F10);
	--crl-h-line: rgba(17, 17, 17, .09);
	background: var(--crl-h-light);
	box-shadow: inset 0 -1px 0 var(--crl-h-line);
}

/* Overlay: positioned over the first section of the home page. */
.crl-global-header:has(.crl-header--overlay),
.crl-global-header.crl-gh-overlay {
	position: absolute;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 990;
}

.crl-global-header:has(.crl-header--overlay) .crl-header--overlay:not(.is-scrolled):not(.is-solid),
.crl-global-header.crl-gh-overlay .crl-header--overlay:not(.is-scrolled):not(.is-solid),
.crl-header--in-hero:not(.is-scrolled):not(.is-solid) {
	/* Deepens progressively during the first scroll pixels, then the bar turns solid. */
	background: linear-gradient(180deg, rgba(10, 10, 10, calc(.42 + var(--crl-hp, 0) * .3)) 0%, rgba(10, 10, 10, calc(.14 + var(--crl-hp, 0) * .3)) 62%, rgba(10, 10, 10, calc(var(--crl-hp, 0) * .2)) 100%);
}
/* Overlay requested but the page does not start with a hero: in-flow ivory bar. */
.crl-global-header.crl-gh-inflow { position: sticky !important; top: var(--wp-admin--admin-bar--height, 0px); left: auto; right: auto; z-index: 990; }

/* Sticky (in flow) for graphite/ivory headers. */
.crl-global-header:has(.crl-header--sticky:not(.crl-header--overlay)),
.crl-global-header.crl-gh-sticky:not(.crl-gh-overlay) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 990;
}

/* Sticky overlay: fixed; becomes a translucent bar once the page scrolls. */
.crl-global-header:has(.crl-header--overlay.crl-header--sticky),
.crl-global-header.crl-gh-overlay.crl-gh-sticky { position: fixed; }

.crl-header--overlay.crl-header--solid-ivory.is-scrolled,
.crl-header--overlay.crl-header--solid-ivory.is-solid {
	--crl-h-fg: var(--crl-ink, #0F0F10);
	--crl-h-line: rgba(17, 17, 17, .09);
	background: rgba(255, 255, 255, .94);
	box-shadow: inset 0 -1px 0 var(--crl-h-line);
}
/* With the mega menu open the bar and the panel read as one solid surface. */
.crl-header.is-mega, .crl-header--overlay.crl-header--solid-ivory.is-mega { background: var(--crl-ivory) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.crl-header--solid-graphite.is-mega { background: #161718 !important; }
/* The page dimmer sits behind the header content; the bar itself stays clean. */
.crl-header.is-mega .crl-header__inner { position: relative; max-width: none; padding-inline: max(6px, calc((100% - var(--crl-max)) / 2 + var(--crl-gutter) - 10px)); background: var(--crl-ivory); }
.crl-header--solid-graphite.is-mega .crl-header__inner { background: #161718; }
.crl-header--overlay.crl-header--solid-graphite.is-scrolled,
.crl-header--overlay.crl-header--solid-graphite.is-solid {
	background: rgba(22, 23, 24, .9);
	box-shadow: inset 0 -1px 0 var(--crl-h-line);
}
.crl-header--dark.is-scrolled { box-shadow: inset 0 -1px 0 var(--crl-h-line); }

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.crl-header--overlay.is-scrolled, .crl-header--overlay.is-solid, .crl-header--light.is-scrolled {
		-webkit-backdrop-filter: saturate(1.4) blur(16px);
		backdrop-filter: saturate(1.4) blur(16px);
	}
	.crl-header--overlay.crl-header--solid-ivory.is-scrolled { background: rgba(255, 255, 255, .94); }
	.crl-header--light.is-scrolled { background: rgba(255, 255, 255, .95); }
}

@media screen and (max-width: 600px) {
	/* The WP admin bar is not fixed on small screens. */
	.admin-bar .crl-global-header { top: 0 !important; }
}

.crl-header--in-hero { position: absolute; top: 0; left: 0; right: 0; z-index: 6; }

/* Safe area (phones with notch) for the fixed/sticky header. */
.crl-global-header .crl-header { padding-top: env(safe-area-inset-top, 0px); }

/* ---------- Announcement bar ---------- */
.crl-header__bar {
	padding: 8px var(--crl-gutter);
	background: #111;
	color: #fff;
	font-size: 10.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-align: center;
	overflow: hidden;
	max-height: 40px;
	transition: max-height var(--crl-d3) var(--crl-ease), padding var(--crl-d3) var(--crl-ease), opacity var(--crl-d2) var(--crl-ease);
}
.crl-header__bar a { color: inherit; text-decoration: none; }
.crl-header--compact.is-scrolled .crl-header__bar { max-height: 0; padding-block: 0; opacity: 0; }

/* ---------- Main row ---------- */
.crl-header__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	height: var(--crl-h-height);
	max-width: var(--crl-max);
	margin-inline: auto;
	padding-inline: max(6px, calc(var(--crl-gutter) - 10px));
	transition: height var(--crl-d3) var(--crl-ease);
}
.crl-header--compact.is-scrolled .crl-header__inner { height: var(--crl-h-compact); }

.crl-header__start, .crl-header__end { display: flex; align-items: center; min-width: 0; }
.crl-header__end { justify-content: flex-end; gap: 0; }

.crl-header__icon {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: 0 0 var(--crl-tap);
	width: var(--crl-tap);
	height: var(--crl-tap);
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit !important;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: opacity var(--crl-d1) var(--crl-ease);
}
.crl-header__icon .crl-icon { width: 21px; height: 21px; stroke-width: 1.4; }
.crl-header__icon:hover { opacity: .62; }
.crl-header__icon:focus-visible { outline: 1px solid currentColor; outline-offset: -6px; }

/* Two-line burger that turns into a cross when the menu is open. */
.crl-burger { position: relative; display: block; width: 22px; height: 10px; }
.crl-burger span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: currentColor;
	transition: transform var(--crl-d2) var(--crl-ease), width var(--crl-d2) var(--crl-ease), top var(--crl-d2) var(--crl-ease);
}
.crl-burger span:first-child { top: 0; }
.crl-burger span:last-child { top: 8.5px; width: 68%; }
.crl-header__burger:hover .crl-burger span:last-child { width: 100%; }

.crl-cart-count, .crl-fav-count {
	position: absolute;
	top: 7px;
	right: 4px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: var(--crl-h-fg);
	color: var(--crl-h-dark);
	font: 500 9.5px/16px var(--crl-font);
	letter-spacing: 0;
	text-align: center;
	pointer-events: none;
	transition: transform var(--crl-d2) var(--crl-ease), background-color var(--crl-d2) var(--crl-ease), color var(--crl-d2) var(--crl-ease);
}
.crl-header--light .crl-cart-count, .crl-header--light .crl-fav-count,
.crl-header--solid-ivory.is-scrolled .crl-cart-count, .crl-header--solid-ivory.is-scrolled .crl-fav-count,
.crl-header--solid-ivory.is-solid .crl-cart-count, .crl-header--solid-ivory.is-solid .crl-fav-count { color: var(--crl-h-light); }
.crl-cart-count.is-empty, .crl-fav-count.is-empty { transform: scale(0); }
.crl-cart-count.is-bump { animation: crlPop .45s var(--crl-ease); }

/* Logo: both versions stacked; cross-fade between moods. */
.crl-header__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	text-decoration: none;
	line-height: 0;
}
.crl-logo-stack { position: relative; display: block; width: var(--crl-logo-w); max-width: 34vw; transition: width var(--crl-d3) var(--crl-ease); }
.crl-header--compact.is-scrolled .crl-logo-stack { width: calc(var(--crl-logo-w) * .86); }
.crl-logo-stack img {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(var(--crl-h-height) - 16px);
	object-fit: contain;
	transition: opacity var(--crl-d3) var(--crl-ease);
}
.crl-logo-stack .crl-logo--dark { position: absolute; inset: 0; opacity: 0; }
.crl-header--light .crl-logo--light,
.crl-header--solid-ivory.is-scrolled .crl-logo--light,
.crl-header--solid-ivory.is-solid .crl-logo--light { opacity: 0; }
.crl-header--light .crl-logo--dark,
.crl-header--solid-ivory.is-scrolled .crl-logo--dark,
.crl-header--solid-ivory.is-solid .crl-logo--dark { opacity: 1; }
.crl-logo-text { font-size: 20px; letter-spacing: .3em; }

/* ---------- Desktop navigation ---------- */
.crl-header__nav { display: none; }
.crl-header__burger { display: inline-grid; margin-left: -6px; }
.crl-header__search-btn { display: none; }

.crl-nav { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 34px); margin: 0; padding: 0; list-style: none; }
.crl-nav__item { position: relative; }
.crl-nav__item.has-mega { position: static; }
.crl-nav > li > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 12px 0;
	color: inherit !important;
	font-size: 11.5px;
	font-weight: 400;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}
.crl-nav > li > a .crl-icon { width: 12px; height: 12px; transition: transform var(--crl-d2) var(--crl-ease); }
.crl-nav > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 6px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform var(--crl-d3) var(--crl-ease);
}
.crl-nav > li > a:hover::after, .crl-nav > li > a[aria-current="page"]::after, .crl-nav__item.is-open > a::after { transform: scaleX(1); transform-origin: left; }
.crl-nav__item.is-open > a .crl-icon { transform: rotate(180deg); }

/* Classic dropdown (WordPress menus with submenus) */
.crl-nav__sub {
	position: absolute;
	top: 100%;
	left: -22px;
	min-width: 230px;
	margin: 0;
	padding: 14px 0;
	list-style: none;
	background: var(--crl-ivory);
	color: var(--crl-ink);
	box-shadow: 0 0 0 1px rgba(17, 17, 17, .06), 0 24px 48px -24px rgba(0, 0, 0, .25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--crl-d2) var(--crl-ease), transform var(--crl-d2) var(--crl-ease), visibility var(--crl-d2);
}
.crl-nav__item:hover > .crl-nav__sub,
.crl-nav__item:focus-within > .crl-nav__sub { opacity: 1; visibility: visible; transform: none; }
.crl-nav__sub a { display: block; padding: 9px 22px; color: inherit; font-size: 13px; text-decoration: none; letter-spacing: .02em; transition: opacity var(--crl-d1); }
.crl-nav__sub a:hover { opacity: .6; }

/* ---------- Mega menu ---------- */
.crl-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 2;
	background: var(--crl-ivory);
	color: var(--crl-ink);
	box-shadow: inset 0 1px 0 rgba(17, 17, 17, .08), 0 30px 60px -30px rgba(0, 0, 0, .28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	pointer-events: none;
	transition: opacity var(--crl-d2) var(--crl-ease), transform var(--crl-d3) var(--crl-ease-out), visibility var(--crl-d2);
}
.crl-nav__item.is-open > .crl-mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
/* Without JavaScript the panel still opens on hover / keyboard focus. */
html:not(.crl-js) .crl-nav__item.has-mega:hover > .crl-mega,
html:not(.crl-js) .crl-nav__item.has-mega:focus-within > .crl-mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

.crl-mega__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 210px auto;
	gap: clamp(32px, 4vw, 72px);
	max-width: var(--crl-max);
	margin-inline: auto;
	padding: 44px var(--crl-gutter) 52px;
}
.crl-mega__label { margin: 0 0 18px; color: var(--crl-taupe); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; }
.crl-mega__cats {
	display: grid;
	grid-template-rows: repeat(5, auto);
	grid-auto-flow: column;
	grid-auto-columns: minmax(190px, max-content);
	align-content: start;
	gap: 2px 56px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.crl-mega__cat > .crl-mega__link {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 6px 0;
	color: inherit;
	font-size: clamp(22px, 1.9vw, 28px);
	font-weight: 300;
	letter-spacing: .01em;
	line-height: 1.15;
	text-decoration: none;
	transition: opacity var(--crl-d1) var(--crl-ease), transform var(--crl-d2) var(--crl-ease);
}
.crl-mega__cat > .crl-mega__link small { color: var(--crl-taupe); font-size: 11px; letter-spacing: .04em; }
.crl-mega__cats:hover .crl-mega__link { opacity: .45; }
.crl-mega__cats .crl-mega__link:hover, .crl-mega__cats .crl-mega__link:focus-visible { opacity: 1; transform: translateX(3px); }
.crl-mega__sub { margin: 2px 0 12px; padding: 0; list-style: none; }
.crl-mega__sub a { display: block; padding: 4px 0; color: var(--crl-muted); font-size: 13px; text-decoration: none; }
.crl-mega__sub a:hover { color: var(--crl-ink); }

.crl-mega__aside { border-left: 1px solid rgba(17, 17, 17, .1); padding-left: clamp(24px, 3vw, 44px); }
.crl-mega__shortcuts { margin: 0; padding: 0; list-style: none; }
.crl-mega__shortcuts a, .crl-mm__shortcuts a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid rgba(17, 17, 17, .08);
	color: inherit;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
}
.crl-mega__shortcuts .crl-icon, .crl-mm__shortcuts .crl-icon { width: 15px; height: 15px; transition: transform var(--crl-d2) var(--crl-ease); }
.crl-mega__shortcuts a:hover .crl-icon, .crl-mm__shortcuts a:hover .crl-icon { transform: translateX(4px); }

.crl-mega__tiles { display: flex; gap: 16px; }
.crl-mega__tile { display: block; width: clamp(170px, 14vw, 220px); color: inherit; text-decoration: none; }
.crl-mega__tile-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--crl-media); }
.crl-mega__tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--crl-ease-out); }
.crl-mega__tile:hover img { transform: scale(1.04); }
.crl-mega__tile-name { display: block; margin-top: 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.crl-mega__tile-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--crl-taupe); font-size: 12px; }
.crl-mega__tile-cta .crl-icon { width: 13px; height: 13px; transition: transform var(--crl-d2) var(--crl-ease); }
.crl-mega__tile:hover .crl-mega__tile-cta .crl-icon { transform: translateX(4px); }

.crl-nav__item.is-open > .crl-mega .crl-mega__cat,
.crl-nav__item.is-open > .crl-mega .crl-mega__tile { animation: crlRise var(--crl-d3) var(--crl-ease-out) both; }
.crl-nav__item.is-open > .crl-mega .crl-mega__cat:nth-child(2) { animation-delay: 30ms; }
.crl-nav__item.is-open > .crl-mega .crl-mega__cat:nth-child(3) { animation-delay: 60ms; }
.crl-nav__item.is-open > .crl-mega .crl-mega__cat:nth-child(4) { animation-delay: 90ms; }
.crl-nav__item.is-open > .crl-mega .crl-mega__cat:nth-child(n+5) { animation-delay: 120ms; }
.crl-nav__item.is-open > .crl-mega .crl-mega__tile { animation-delay: 90ms; }
.crl-nav__item.is-open > .crl-mega .crl-mega__tile + .crl-mega__tile { animation-delay: 150ms; }

.crl-mega-backdrop {
	position: fixed;
	inset: 0;
	z-index: -1;
	background: rgba(15, 15, 16, .28);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity var(--crl-d3) var(--crl-ease), visibility var(--crl-d3);
}
.crl-header.is-mega .crl-mega-backdrop { opacity: 1; visibility: visible; }

@keyframes crlRise { from { opacity: 0; transform: translateY(10px); } }

@media (min-width: 1025px) {
	.crl-header__nav { display: block; }
	.crl-header__burger { display: none; }
	.crl-header__search-btn { display: inline-grid; }
	.crl-header--left .crl-header__inner { grid-template-columns: auto 1fr auto; }
	.crl-header--left .crl-header__logo { order: -1; justify-content: flex-start; }
	.crl-header--left .crl-header__start { justify-content: center; }
}

@media (min-width: 1025px) and (max-width: 1240px) {
	.crl-mega__inner { grid-template-columns: minmax(0, 1fr) 190px; }
	.crl-mega__tiles { display: none; }
}

@media (min-width: 768px) and (max-width: 1024px) {
	.crl-header__search-btn { display: inline-grid; }
}

/* ---------- Panels (menu drawer, cart drawer, search) ---------- */
.crl-drawer, .crl-search-panel {
	position: fixed;
	inset: 0;
	z-index: 100000;
	color: var(--crl-ink, #111);
}
.crl-drawer[hidden], .crl-search-panel[hidden] { display: none; }

.crl-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 15, 16, .46);
	opacity: 0;
	transition: opacity var(--crl-d3) var(--crl-ease);
}
.is-open > .crl-drawer__backdrop { opacity: 1; }

.crl-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(88vw, 420px);
	background: #fff;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	transition: transform var(--crl-d3) var(--crl-ease-out);
	padding-bottom: env(safe-area-inset-bottom);
}
.crl-drawer--left .crl-drawer__panel { left: 0; transform: translateX(-102%); }
.crl-drawer--right .crl-drawer__panel { right: 0; transform: translateX(102%); }
.crl-drawer.is-open .crl-drawer__panel { transform: none; }

.crl-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 64px;
	padding: 8px 8px 8px 20px;
	border-bottom: 1px solid var(--crl-soft);
}
.crl-drawer__title { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }

.crl-search {
	position: relative;
	display: flex;
	align-items: center;
	border-bottom: 1px solid currentColor;
}
.crl-search > .crl-icon { position: absolute; left: 0; width: 18px; height: 18px; opacity: .6; }
.crl-search input[type="search"] {
	width: 100%;
	min-height: 48px;
	padding: 10px 8px 10px 30px;
	border: 0;
	background: transparent;
	color: inherit;
	font: 16px/1.3 var(--crl-font);
	-webkit-appearance: none;
	appearance: none;
	border-radius: 0;
	box-shadow: none;
}
.crl-search input[type="search"]::placeholder { color: inherit; opacity: .45; }
.crl-search input[type="search"]:focus { outline: none; }
.crl-search:focus-within { border-bottom-color: var(--crl-ink); }
.crl-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- Mobile menu (full screen, layered views) ---------- */
.crl-mm .crl-drawer__panel.crl-mm__panel {
	width: 100%;
	max-width: 480px;
	background: var(--crl-ivory);
	overflow: hidden;
	padding-bottom: 0;
}
@media (min-width: 481px) {
	.crl-mm .crl-drawer__panel.crl-mm__panel { box-shadow: 30px 0 60px -30px rgba(0, 0, 0, .3); }
}
.crl-mm__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
	height: calc(58px + env(safe-area-inset-top, 0px));
	padding: env(safe-area-inset-top, 0px) 6px 0 var(--crl-gutter);
	border-bottom: 1px solid rgba(17, 17, 17, .08);
}
.crl-mm__logo { line-height: 0; }
.crl-mm__logo img { display: block; width: 76px; height: auto; }

.crl-mm__views { position: relative; flex: 1 1 auto; min-height: 0; }
.crl-mm__view {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 6px var(--crl-gutter) calc(28px + env(safe-area-inset-bottom, 0px));
	transition: transform var(--crl-d3) var(--crl-ease-out), opacity var(--crl-d2) var(--crl-ease);
}
.crl-mm__view[hidden] { display: none; }
.crl-mm__view:not(.is-active) { pointer-events: none; }
.crl-mm__view[data-crl-mm-root]:not(.is-active) { transform: translateX(-24%); opacity: 0; }
.crl-mm__view--sub { transform: translateX(100%); }
.crl-mm__view--sub.is-active { transform: none; }

.crl-mm__search { padding: 14px 0 6px; }
.crl-mm__search .crl-search { border-bottom-color: rgba(17, 17, 17, .22); }

.crl-mm__primary, .crl-mm__secondary, .crl-mm__sublist, .crl-mm__shortcuts, .crl-mm__grand { margin: 0; padding: 0; list-style: none; }
.crl-mm__primary { padding: 10px 0 18px; }
.crl-mm__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 58px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid rgba(17, 17, 17, .08);
	background: none;
	color: inherit;
	font: 300 clamp(26px, 7.6vw, 32px)/1.1 var(--crl-font);
	letter-spacing: .01em;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.crl-mm__link .crl-icon { width: 20px; height: 20px; opacity: .5; transition: transform var(--crl-d2) var(--crl-ease); }
.crl-mm__link:active .crl-icon, .crl-mm__link:hover .crl-icon { transform: translateX(4px); }
.crl-mm__link[aria-current="page"] span { border-bottom: 1px solid currentColor; }

.crl-mm__label { margin: 8px 0 12px; color: var(--crl-taupe); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; }
.crl-mm__explore { padding-bottom: 22px; }
.crl-mm__tiles {
	display: flex;
	gap: 10px;
	margin-inline: calc(var(--crl-gutter) * -1);
	padding-inline: var(--crl-gutter);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--crl-gutter);
	scrollbar-width: none;
}
.crl-mm__tiles::-webkit-scrollbar { display: none; }
.crl-mm__tile { flex: 0 0 38%; max-width: 170px; scroll-snap-align: start; color: inherit; text-decoration: none; }
.crl-mm__tile-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--crl-stone); }
.crl-mm__tile-media img { width: 100%; height: 100%; object-fit: cover; }
.crl-mm__tile-name { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

.crl-mm__secondary { display: grid; gap: 0; padding: 4px 0 18px; }
.crl-mm__secondary a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	color: var(--crl-brand-gray);
	font-size: 14px;
	letter-spacing: .02em;
	text-decoration: none;
}
.crl-mm__secondary .crl-icon { width: 18px; height: 18px; }
.crl-mm__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(17, 17, 17, .08); }
.crl-mm__social { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.crl-mm__social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.crl-mm__social .crl-icon { width: 17px; height: 17px; }
.crl-drawer__note { margin: 10px 0 0; font-size: 12px; color: var(--crl-muted); }

/* Sub view */
.crl-mm__back {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	min-height: 48px;
	margin-top: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--crl-taupe);
	font: 400 11px/1 var(--crl-font);
	letter-spacing: .2em;
	text-transform: uppercase;
	cursor: pointer;
}
.crl-mm__back .crl-icon { width: 16px; height: 16px; }
.crl-mm__title { margin: 6px 0 18px; font-size: clamp(30px, 9vw, 38px); font-weight: 300; line-height: 1.05; letter-spacing: .01em; }
.crl-mm__sublist > li { border-bottom: 1px solid rgba(17, 17, 17, .08); }
.crl-mm__sublink {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 60px;
	padding: 8px 0;
	color: inherit;
	font-size: 17px;
	font-weight: 400;
	letter-spacing: .02em;
	text-decoration: none;
}
.crl-mm__sublink small { margin-left: auto; color: var(--crl-taupe); font-size: 12px; }
.crl-mm__thumb { flex: 0 0 48px; width: 48px; height: 60px; overflow: hidden; background: var(--crl-stone); }
.crl-mm__thumb img { width: 100%; height: 100%; object-fit: cover; }
.crl-mm__grand { padding: 0 0 12px 62px; }
.crl-mm__sublist:not(.crl-mm__sublist--cats) .crl-mm__grand { padding-left: 14px; }
.crl-mm__grand a { display: block; padding: 8px 0; color: var(--crl-muted); font-size: 14px; text-decoration: none; }
.crl-mm__shortcuts { padding-top: 22px; }

/* Entrance: items rise in sequence when the menu or a view opens. */
.crl-mm.is-open .crl-mm__view.is-active .crl-mm__primary > li,
.crl-mm.is-open .crl-mm__view.is-active .crl-mm__sublist > li {
	animation: crlRise var(--crl-d3) var(--crl-ease-out) both;
	animation-delay: calc(120ms + var(--i, 0) * 45ms);
}
.crl-mm.is-open .crl-mm__view.is-active .crl-mm__explore,
.crl-mm.is-open .crl-mm__view.is-active .crl-mm__secondary { animation: crlRise var(--crl-d3) var(--crl-ease-out) .32s both; }

/* Burger becomes a cross while the menu is open. */
[aria-expanded="true"] > .crl-burger span:first-child { top: 4.25px; transform: rotate(45deg); }
[aria-expanded="true"] > .crl-burger span:last-child { top: 4.25px; width: 100%; transform: rotate(-45deg); }

/* Search panel */
.crl-search-panel__inner {
	position: relative;
	z-index: 1;
	padding: calc(22px + env(safe-area-inset-top, 0px)) var(--crl-gutter) 32px;
	background: var(--crl-ivory);
	transform: translateY(-100%);
	transition: transform var(--crl-d3) var(--crl-ease-out);
	max-height: 100vh;
	overflow-y: auto;
}
.crl-search-panel.is-open .crl-search-panel__inner { transform: none; }
.crl-search-panel__label { max-width: 860px; margin: 0 auto; padding-right: 48px; color: var(--crl-taupe); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; }
.crl-search-panel .crl-search { max-width: 860px; margin: 8px auto 0; padding-right: 48px; }
.crl-search-panel .crl-search input { font-size: clamp(18px, 2.4vw, 26px); min-height: 60px; padding-left: 36px; }
.crl-search-panel__close { position: absolute; top: calc(30px + env(safe-area-inset-top, 0px)); right: max(8px, calc(var(--crl-gutter) - 8px)); }
.crl-search-results { max-width: 860px; margin: 18px auto 0; }
.crl-search-results ul { margin: 0; padding: 0; list-style: none; }
.crl-search-results li a { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; color: inherit; text-decoration: none; border-bottom: 1px solid rgba(17, 17, 17, .08); transition: opacity var(--crl-d1); }
.crl-search-results li a:hover { opacity: .7; }
.crl-search-results img { width: 56px; height: 70px; object-fit: cover; background: var(--crl-media); }
.crl-search-results .crl-sr__name { font-size: 14px; }
.crl-search-results .crl-sr__price { font-size: 13px; font-weight: 500; }
.crl-search-results .crl-sr__label { margin: 14px 0 6px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--crl-muted); }
.crl-search-results .crl-sr__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.crl-search-results .crl-sr__cats a { padding: 8px 12px; border: 1px solid var(--crl-border); color: inherit; font-size: 13px; text-decoration: none; }
.crl-search-results .crl-sr__all { display: inline-block; margin-top: 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: inherit; }
.crl-search-results .crl-sr__empty { font-size: 14px; color: var(--crl-muted); }

/* Mini cart (WooCommerce markup inside the drawer) */
.crl-minicart { flex: 1; display: flex; flex-direction: column; padding: 0 20px 20px; }
.crl-minicart .widget_shopping_cart_content { display: flex; flex-direction: column; min-height: 100%; }
.crl-minicart .woocommerce-mini-cart { margin: 0; padding: 0; list-style: none; }
.crl-minicart .woocommerce-mini-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 72px 1fr;
	grid-template-areas: "img name" "img qty";
	gap: 4px 14px;
	padding: 16px 32px 16px 0;
	border-bottom: 1px solid var(--crl-soft);
	font-size: 14px;
	line-height: 1.4;
}
.crl-minicart .woocommerce-mini-cart-item > a:not(.remove) { grid-area: name; display: contents; color: inherit; text-decoration: none; font-weight: 400; }
.crl-minicart .woocommerce-mini-cart-item img { grid-area: img; grid-row: 1 / 4; width: 72px !important; height: 90px !important; object-fit: cover; margin: 0 !important; background: var(--crl-media); float: none !important; }
.crl-minicart .woocommerce-mini-cart-item .variation { grid-column: 2; margin: 0; font-size: 12px; color: var(--crl-muted); }
.crl-minicart .woocommerce-mini-cart-item .variation dt, .crl-minicart .woocommerce-mini-cart-item .variation dd { display: inline; margin: 0; float: none; }
.crl-minicart .woocommerce-mini-cart-item .variation dd p { display: inline; margin: 0; }
.crl-minicart .woocommerce-mini-cart-item .variation dd::after { content: ""; display: block; }
.crl-minicart .woocommerce-mini-cart-item .quantity { grid-column: 2; font-size: 13px; color: var(--crl-brand-gray); }
.crl-minicart .remove_from_cart_button { position: absolute; top: 12px; right: 0; display: grid; place-items: center; width: 32px; height: 32px; color: var(--crl-muted) !important; font-size: 20px; text-decoration: none; background: none !important; }
.crl-minicart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 18px 0 14px; padding-top: 4px; font-size: 15px; }
.crl-minicart .woocommerce-mini-cart__total strong { font-weight: 500; }
.crl-minicart .woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 0; }
.crl-minicart .woocommerce-mini-cart__buttons a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	border: 1px solid var(--crl-black);
	border-radius: var(--crl-radius);
	background: #fff;
	color: var(--crl-black);
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
}
.crl-minicart .woocommerce-mini-cart__buttons a.checkout { order: -1; background: var(--crl-black); color: #fff; }
.crl-minicart .woocommerce-mini-cart__empty-message { margin: 40px 0; text-align: center; color: var(--crl-muted); }
.crl-minicart .blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; }

@media (prefers-reduced-motion: reduce) {
	.crl-header, .crl-header__inner, .crl-logo-stack, .crl-logo-stack img, .crl-drawer__panel, .crl-drawer__backdrop, .crl-search-panel__inner,
	.crl-nav__sub, .crl-mega, .crl-mega-backdrop, .crl-mm__view, .crl-burger span { transition: none !important; }
	.crl-mm .crl-mm__view *, .crl-mega * { animation: none !important; }
}
