/**
 * Fase 2 — global layout: utility bar, header, nav, offcanvas, footer, container.
 */

.hype-utility-bar {
	position: sticky;
	top: 0;
	z-index: calc(var(--hype-z-header) + 1);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0 var(--hype-page-pad);
	background: var(--hype-ink);
	color: var(--hype-on-ink);
	border-bottom: 0;
}

.hype-utility-bar__copy {
	margin: 0;
	max-width: calc(100% - 88px);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: var(--hype-tracking-label);
	text-transform: uppercase;
	text-align: center;
	text-wrap: balance;
}

.hype-utility-bar__board {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.08em;
	height: 1.2em;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	vertical-align: top;
}

.hype-utility-bar__live {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hype-flap {
	position: relative;
	display: block;
	flex: 0 0 auto;
	height: 1.2em;
	perspective: 2.2em;
	transform-style: preserve-3d;
}

.hype-flap__half,
.hype-flap__leaf {
	position: absolute;
	left: 0;
	width: 100%;
	height: 50%;
	overflow: hidden;
	background: var(--hype-ink);
}

.hype-flap__half--top,
.hype-flap__leaf--down {
	top: 0;
	background: color-mix(in srgb, var(--hype-on-ink) 4%, var(--hype-ink));
}

.hype-flap__half--bottom {
	bottom: 0;
	box-shadow: inset 0 1px 0 color-mix(in srgb, var(--hype-on-ink) 14%, transparent);
}

.hype-flap[data-char=' '] .hype-flap__half--bottom {
	box-shadow: none;
}

.hype-flap__glyph {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 1.2em;
	line-height: 1.2;
	text-align: center;
}

.hype-flap__half--bottom .hype-flap__glyph,
.hype-flap__leaf--up .hype-flap__glyph {
	top: -100%;
}

.hype-flap__leaf {
	z-index: 1;
}

.hype-flap__leaf--down {
	transform-origin: center bottom;
	animation: hype-flap-down 0.2s cubic-bezier(0.45, 0, 0.9, 0.35) forwards;
}

.hype-flap__leaf--up {
	bottom: 0;
	transform-origin: center top;
	transform: rotateX(90deg);
	animation: hype-flap-up 0.24s cubic-bezier(0.15, 0.55, 0.25, 1) 0.18s both;
}

.hype-flap__leaf--down::after,
.hype-flap__leaf--up::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #000;
	opacity: 0;
	pointer-events: none;
}

.hype-flap__leaf--down::after {
	animation: hype-flap-shade-in 0.2s linear forwards;
}

.hype-flap__leaf--up::after {
	animation: hype-flap-shade-out 0.24s linear 0.18s both;
}

@keyframes hype-flap-down {
	from {
		transform: rotateX(0deg);
	}

	to {
		transform: rotateX(-90deg);
	}
}

@keyframes hype-flap-up {
	from {
		transform: rotateX(90deg);
	}

	to {
		transform: rotateX(0deg);
	}
}

@keyframes hype-flap-shade-in {
	to {
		opacity: 0.42;
	}
}

@keyframes hype-flap-shade-out {
	from {
		opacity: 0.42;
	}

	to {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hype-flap__leaf,
	.hype-flap__leaf::after {
		animation: none;
	}
}

.hype-utility-bar__dismiss {
	position: absolute;
	right: var(--hype-page-pad);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 32px;
	color: var(--hype-on-ink);
	text-decoration: none;
	font-size: 20px;
	line-height: 1;
}

.hype-utility-bar__dismiss:hover {
	color: var(--hype-on-ink);
	opacity: 0.62;
	text-decoration: none;
}

.hype-utility-bar__dismiss:focus-visible {
	outline: 2px solid var(--hype-on-ink);
	outline-offset: -6px;
}

#header {
	position: sticky;
	top: 0;
	z-index: var(--hype-z-header);
	background-color: var(--hype-surface);
	border-bottom: 1px solid var(--hype-line);
	box-shadow: none;
	transition:
		background-color 320ms var(--hype-ease-out),
		border-color 320ms var(--hype-ease-out);
}

#header::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-color: var(--color-opacity, #00000014);
	opacity: 0;
	transition: opacity 320ms var(--hype-ease-out);
}

body:has(.hype-utility-bar) #header {
	top: 32px;
}

#header [data-row],
#header [data-row] > div {
	position: relative;
	z-index: 1;
	box-shadow: none;
	background-color: var(--hype-surface);
	transition: background-color 320ms var(--hype-ease-out);
}

/* Scroll down: light glass plus the opacity tint, so ink type stays readable. */
#header.is-transparent {
	background-color: rgb(255 255 255 / 82%);
	background-image: none;
	border-bottom-color: transparent;
}

#header.is-transparent::after {
	opacity: 1;
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

#header.is-transparent [data-row],
#header.is-transparent [data-row] > div {
	background-color: transparent;
	background-image: none;
}

#header.is-transparent:has(.ct-header-trigger[aria-expanded="true"]),
#header.is-transparent:has(.ct-header-trigger[aria-expanded="true"]) [data-row],
#header.is-transparent:has(.ct-header-trigger[aria-expanded="true"]) [data-row] > div {
	background-color: var(--hype-surface);
	border-bottom-color: var(--hype-line);
}

#header.is-transparent:has(.ct-header-trigger[aria-expanded="true"])::after {
	opacity: 0;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

#header [data-row*="middle"] > div {
	min-height: 52px;
	max-width: var(--hype-container);
	padding-inline: 0;
}

@media (min-width: 1280px) {
	#header [data-row*="middle"] > div {
		min-height: 56px;
	}
}

/* Blocksy switches header device at 1000px; HYPE uses 1280. */
@media (max-width: 1279.98px) {
	#header [data-device="desktop"] {
		display: none;
	}

	#header [data-device="mobile"] {
		display: block;
	}
}

@media (min-width: 1280px) {
	#header [data-device="desktop"] {
		display: block;
	}

	#header [data-device="mobile"] {
		display: none;
	}
}

#header .site-title,
#header .site-title a {
	font-family: var(--hype-font);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: var(--hype-tracking-tight);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--hype-ink);
}

#header .site-description {
	display: none;
}

#header [class*="header-menu"],
#offcanvas [data-id="mobile-menu"] {
	--menu-items-spacing: 0px;
	--menu-items-gap: 4px;
	--theme-border-radius: 0;
	--theme-box-shadow: none;
	--theme-link-initial-color: var(--hype-ink);
	--theme-link-hover-color: var(--hype-ink);
	--theme-link-active-color: var(--hype-ink);
	--theme-text-color: var(--hype-ink);
	--theme-icon-color: var(--hype-ink);
	--dropdown-background-color: var(--hype-surface);
	--dropdown-background-hover-color: transparent;
}

#header .menu > li > a,
#header .menu > li > .ct-menu-link {
	position: relative;
	font-family: var(--hype-font);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: var(--hype-tracking-label);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--hype-ink);
	background: transparent;
	border-radius: 0;
	padding: 12px 10px;
}

#header .menu > li > a::after {
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 8px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
}

#header .menu > li > a:hover,
#header .menu > li > a:focus-visible,
#header .menu > li.current-menu-item > a,
#header .menu > li.current-menu-ancestor > a {
	text-decoration: none;
	color: var(--hype-ink);
	background: transparent;
}

#header .menu > li:is(:hover, :focus-within, .current-menu-item, .current-menu-ancestor) > a::after {
	transform: scaleX(1);
}

#header .ct-toggle-dropdown-desktop,
#header .ct-toggle-dropdown-desktop-ghost {
	--toggle-button-radius: 0;
	--toggle-button-background: transparent;
	--theme-icon-color: var(--hype-ink);
	color: var(--hype-ink);
	background: transparent;
	border: 0;
	box-shadow: none;
}

#header .sub-menu {
	--menu-item-radius: 0;
	--dropdown-divider: 1px solid var(--hype-line);
	width: max-content;
	min-width: 200px;
	margin-top: 0;
	padding: var(--hype-space-2) 0;
	border-radius: 0;
	box-shadow: none;
	border: 1px solid var(--hype-line);
	background: var(--hype-surface);
}

#header .sub-menu .menu-item {
	border-radius: 0;
}

[data-header] #header .sub-menu,
[data-header] #header .sub-menu .ct-menu-link,
#header .sub-menu a,
#header .sub-menu .ct-menu-link {
	--theme-link-initial-color: var(--hype-ink);
	--theme-link-hover-color: var(--hype-ink);
	font-family: var(--hype-font);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: var(--hype-tracking-label);
	color: var(--hype-ink);
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}

#header .sub-menu a:hover,
#header .sub-menu .ct-menu-link:hover,
#header .sub-menu li:hover > .ct-menu-link {
	color: var(--hype-ink);
	background: var(--hype-canvas);
}

#header [data-column="end"] > [data-items] {
	display: flex;
	align-items: center;
	gap: var(--hype-space-1);
}

#header [data-column="end"] > [data-items] > * {
	--margin: 0;
	margin: 0;
}

.hype-header-icon,
#header .ct-header-search,
#header .ct-header-trigger,
#header .ct-header-cart .ct-cart-item,
#header .ct-header-account {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--hype-ink);
	text-decoration: none;
}

.hype-header-icon:hover,
#header .ct-header-search:hover,
#header .ct-header-trigger:hover,
#header .ct-header-cart a:hover {
	text-decoration: none;
	color: var(--hype-ink);
}

#header .ct-header-trigger {
	--toggle-button-radius: 0;
	--toggle-button-background: transparent;
	--toggle-button-border-width: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--hype-ink);
}

#header .ct-header-trigger .hype-icon--menu {
	width: 20px;
	height: 14px;
	overflow: visible;
}

#header .hype-menu-bar {
	fill: currentColor;
	transform-box: fill-box;
	transform-origin: center;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.hype-header-icon,
	#header .ct-header-search,
	#header .ct-header-cart .ct-cart-item {
		transition: transform 200ms var(--hype-ease-out);
	}

	.hype-header-icon:hover,
	#header .ct-header-search:hover,
	#header .ct-header-cart .ct-cart-item:hover {
		transform: translateY(-3px);
	}

	#header .menu > li > a::after {
		transition: transform 200ms var(--hype-ease-out);
	}

	#header .ct-header-trigger:hover .hype-menu-bar--2,
	#header .ct-header-trigger:focus-visible .hype-menu-bar--2 {
		width: 12px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	#header .hype-menu-bar {
		transition:
			transform 200ms var(--hype-ease-out),
			opacity 160ms var(--hype-ease-out),
			width 160ms var(--hype-ease-out);
	}

	#header .ct-header-trigger[aria-expanded="true"] .hype-menu-bar--1 {
		transform: translateY(5.5px) rotate(45deg);
	}

	#header .ct-header-trigger[aria-expanded="true"] .hype-menu-bar--2 {
		opacity: 0;
	}

	#header .ct-header-trigger[aria-expanded="true"] .hype-menu-bar--3 {
		transform: translateY(-5.5px) rotate(-45deg);
	}
}

#header .ct-header-trigger[aria-expanded="true"] .hype-menu-bar--2 {
	width: 20px;
}

#header .ct-icon,
#header .ct-icon-container svg,
.hype-header-icon svg {
	width: 20px;
	height: 20px;
}

.hype-icon {
	display: block;
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}

svg.ct-search-button-content {
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("../icons/search.svg") center / contain no-repeat;
	mask: url("../icons/search.svg") center / contain no-repeat;
}

svg.ct-search-button-content path {
	opacity: 0;
}

#header .ct-dynamic-count-cart {
	font-family: var(--hype-mono);
	font-size: 11px;
	background: var(--hype-ink);
	color: var(--hype-on-ink);
	border-radius: 0;
}

/* Menu overlay: full viewport, sharp, same five destinations. */
#offcanvas {
	--side-panel-width: 100%;
	--side-panel-offset: 0px;
	--side-panel-border-radius: 0px;
	--mobile-menu-divider: 0;
	z-index: var(--hype-z-drawer);
	background: rgb(17 17 17 / 40%);
}

[data-header] #offcanvas .ct-panel-inner,
#offcanvas .ct-panel-inner,
#offcanvas[data-behaviour*="side"] .ct-panel-inner {
	max-width: 100%;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
	background: var(--hype-surface);
	background-color: var(--hype-surface);
	color: var(--hype-ink);
	transition: transform 200ms var(--hype-ease-out);
}

#offcanvas .ct-panel-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 52px;
	padding: 0 var(--hype-page-pad);
	border-bottom: 1px solid var(--hype-line);
}

#offcanvas .ct-panel-heading {
	margin-inline-end: auto;
	font-family: var(--hype-font);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: var(--hype-tracking-label);
	text-transform: uppercase;
	color: var(--hype-ink);
}

#offcanvas .ct-toggle-close {
	--theme-icon-color: var(--hype-ink);
	--theme-icon-size: 20px;
	--toggle-button-size: 44px;
	--toggle-button-radius: 0;
	--toggle-button-background: transparent;
	--toggle-icon-transform: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--hype-ink);
	box-shadow: none;
}

#offcanvas .ct-panel-content,
#offcanvas .ct-panel-content-inner {
	padding: var(--hype-space-5) var(--hype-page-pad) var(--hype-space-7);
	background: var(--hype-surface);
	color: var(--hype-ink);
}

#offcanvas .mobile-menu > ul,
#offcanvas .menu {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

[data-header] #offcanvas .ct-menu-link,
#offcanvas .mobile-menu > ul > li > a,
#offcanvas .menu > li > a,
#offcanvas .menu > li > .ct-menu-link {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 14px 0;
	border-bottom: 1px solid var(--hype-line);
	border-radius: 0;
	background: transparent;
	font-family: var(--hype-font);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: var(--hype-tracking-label);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--hype-ink);
}

[data-header] #offcanvas .menu-item:hover > .ct-menu-link,
[data-header] #offcanvas .current-menu-item > .ct-menu-link,
#offcanvas .mobile-menu > ul > li.current-menu-item > a,
#offcanvas .mobile-menu > ul > li > a:hover,
#offcanvas .mobile-menu > ul > li > a:focus-visible,
#offcanvas .menu > li.current-menu-item > a,
#offcanvas .menu > li > a:hover,
#offcanvas .menu > li > a:focus-visible {
	color: var(--hype-ink);
	background: transparent;
	text-decoration: none;
}

#offcanvas .mobile-menu > ul > li.current-menu-item > a,
#offcanvas .menu > li.current-menu-item > a {
	box-shadow: inset 0 -1px 0 var(--hype-ink);
}

#offcanvas .mobile-menu ul ul,
#offcanvas .menu ul,
#offcanvas .mobile-menu [class*="children"] > ul li a::before,
#offcanvas .ct-toggle-dropdown-mobile {
	display: none;
}

@media (max-width: 1279.98px) {
	body:has(.hype-utility-bar) #offcanvas {
		top: 84px;
		height: calc(100% - 84px);
	}

	body:not(:has(.hype-utility-bar)) #offcanvas {
		top: 52px;
		height: calc(100% - 52px);
	}

	#offcanvas .ct-panel-actions {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	#offcanvas .ct-panel-inner,
	#offcanvas[data-behaviour*="side"] .ct-panel-inner,
	#header,
	#header::after,
	#header [data-row],
	#header [data-row] > div,
	#header .hype-menu-bar,
	#header .menu > li > a::after {
		transition: none;
	}
}

/* Search drops as a top bar. The rest of the page stays visible
   under a light veil, not a full white or dark cover. */
#search-modal.ct-panel {
	z-index: var(--hype-z-drawer);
	align-items: stretch;
	justify-content: flex-start;
	background: rgb(17 17 17 / 14%) !important;
	background-image: none !important;
	color: var(--hype-ink);
}

#search-modal .ct-panel-actions {
	position: absolute;
	top: 10px;
	inset-inline-end: var(--hype-page-pad);
	z-index: 3;
	padding: 0;
}

#search-modal .ct-toggle-close {
	--theme-icon-color: var(--hype-ink);
	--theme-icon-size: 20px;
	--toggle-button-size: 44px;
	--toggle-button-radius: 0;
	--toggle-button-background: transparent;
	--toggle-button-margin-end: 0;
	--toggle-button-margin-block: 0;
	color: var(--hype-ink);
}

#search-modal .ct-toggle-close:hover {
	--toggle-icon-transform: none;
	color: var(--hype-ink);
}

#search-modal .ct-toggle-close:focus-visible {
	outline: 2px solid var(--hype-focus);
	outline-offset: 2px;
}

#search-modal .ct-panel-content {
	--vertical-alignment: flex-start;
	flex: 0 1 auto;
	justify-content: flex-start;
	width: 100%;
	max-height: min(70vh, 680px);
	padding: 12px calc(var(--hype-page-pad) + 52px) var(--hype-space-5) var(--hype-page-pad);
	overflow: auto;
	background: var(--hype-surface);
	border-bottom: 1px solid var(--hype-line);
	box-shadow: 0 18px 36px rgb(17 17 17 / 10%);
}

#search-modal .ct-panel-content:has(.hype-search-suggest, .ct-search-results) {
	max-height: min(88vh, 780px);
}

@media (max-width: 767.98px) {
	#search-modal .ct-panel-content {
		flex: 1 1 auto;
		max-height: none;
		min-height: 100dvh;
	}
}

[data-panel*="in"] #search-modal.active .ct-panel-content {
	animation-name: hype-search-drop;
	animation-duration: 280ms;
	animation-timing-function: var(--hype-ease-out);
}

@keyframes hype-search-drop {
	from {
		transform: translate3d(0, -100%, 0);
	}

	to {
		transform: translate3d(0, 0, 0);
	}
}

#search-modal .ct-search-form {
	width: 100%;
	max-width: var(--hype-container);
	margin-inline: auto;
}

#search-modal .ct-search-form-inner {
	display: flex;
	align-items: center;
	height: 56px;
	margin: 0;
	padding: 0 var(--hype-space-3) 0 var(--hype-space-4);
	border: 1px solid var(--hype-ink);
	border-radius: 0 !important;
	background: var(--hype-surface);
	box-shadow: none;
	--theme-form-field-border-focus-color: var(--hype-focus);
	--theme-form-field-border-initial-color: var(--hype-ink);
	--theme-form-field-background-focus-color: var(--hype-surface);
}

#search-modal .ct-search-form-inner:focus,
#search-modal .ct-search-form-inner:focus-within {
	border-color: var(--hype-ink);
	outline: 2px solid var(--hype-focus);
	outline-offset: 2px;
	background: var(--hype-surface);
	box-shadow: none;
}

#search-modal .ct-search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--hype-ink);
	font-family: var(--hype-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
}

#search-modal .ct-search-form input[type="search"]::placeholder {
	color: var(--hype-mute);
	opacity: 1;
}

#search-modal .ct-search-form input[type="search"]:focus,
#search-modal .ct-search-form input[type="search"]:focus-visible {
	outline: none;
	box-shadow: none;
	border-color: transparent;
	background: transparent;
}

#search-modal .ct-search-form .wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0 !important;
	background: transparent;
	color: var(--hype-ink);
	box-shadow: none;
}

#search-modal .ct-search-form .wp-element-button svg {
	width: 20px;
	height: 20px;
}

#search-modal .ct-search-form:has(.ct-search-results) .ct-search-form-inner,
#search-modal .ct-search-form:has(.hype-search-suggest) .ct-search-form-inner {
	margin-bottom: var(--hype-space-5);
}

#search-modal .ct-search-form:has(.hype-search-suggest) {
	display: grid;
	grid-template-columns: minmax(12.5rem, 18rem) minmax(0, 1fr);
	column-gap: var(--hype-space-6);
	align-items: start;
}

#search-modal .ct-search-form:has(.hype-search-suggest) > .ct-search-form-inner {
	grid-column: 1 / -1;
	grid-row: 1;
}

#search-modal .ct-search-form:has(.hype-search-suggest):not(:has(.ct-search-results)) {
	grid-template-columns: minmax(0, 1fr);
}

#search-modal .hype-search-suggest {
	grid-column: 1;
	grid-row: 2;
	min-width: 0;
	margin: 0;
	padding: 0;
}

#search-modal .ct-search-form:has(.ct-search-results) > .hype-search-suggest {
	border-inline-end: 1px solid var(--hype-line);
	padding-inline-end: var(--hype-space-5);
}

#search-modal .ct-search-form:has(.hype-search-suggest) > .ct-search-results {
	grid-column: 2;
	grid-row: 2;
}

#search-modal .ct-search-form .ct-search-results {
	position: static;
	inset: auto;
	top: auto;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--hype-space-4);
	margin: 0;
	padding: 0;
	overflow: visible;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

#search-modal .ct-search-form .ct-search-results[data-hype-kicker]::before {
	content: attr(data-hype-kicker);
	grid-column: 1 / -1;
	margin: 0 0 calc(var(--hype-space-2) - var(--hype-space-4));
	font-family: var(--hype-font);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--hype-tracking-label);
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--hype-mute);
}

@media (min-width: 768px) {
	#search-modal .ct-search-form:not(:has(.hype-search-suggest)) .ct-search-results {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	#search-modal .ct-search-form:has(.hype-search-suggest) .ct-search-results {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	#search-modal .ct-search-form:has(.hype-search-suggest) {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--hype-space-5);
	}

	#search-modal .ct-search-form:has(.hype-search-suggest) > .hype-search-suggest,
	#search-modal .ct-search-form:has(.hype-search-suggest) > .ct-search-results {
		grid-column: 1;
		grid-row: auto;
	}

	#search-modal .ct-search-form:has(.ct-search-results) > .hype-search-suggest {
		border-inline-end: 0;
		padding-inline-end: 0;
		padding-bottom: var(--hype-space-4);
		border-bottom: 1px solid var(--hype-line);
	}
}

#search-modal .ct-search-item {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	margin: 0;
	padding: 0 0 14px;
	border: 0;
	border-radius: 0;
	background: var(--hype-surface);
	box-shadow: var(--hype-card-shadow);
	color: var(--hype-ink);
	text-decoration: none;
}

#search-modal .ct-search-item:hover {
	text-decoration: none;
	box-shadow: var(--hype-card-shadow-hover);
}

#search-modal .ct-search-item:focus-visible {
	outline: 2px solid var(--hype-focus);
	outline-offset: 2px;
}

#search-modal .ct-search-item .ct-media-container {
	flex: none;
	align-self: stretch;
	width: 100%;
	max-width: none;
	aspect-ratio: 1;
	margin: 0 0 12px;
	overflow: hidden;
	border-radius: 0 !important;
	border-bottom: 1px solid var(--hype-line);
	background: var(--hype-line);
}

#search-modal .ct-search-item .ct-media-container img {
	display: block;
	width: 100%;
	height: 100%;
	padding: 8%;
	object-fit: contain;
	aspect-ratio: auto;
}

#search-modal .ct-search-item > span {
	padding-inline: 12px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

#search-modal .ct-search-item .product-search-meta {
	display: block;
	margin-top: 4px;
}

#search-modal .ct-search-item .product-search-meta .price,
#search-modal .ct-search-item .product-search-meta small {
	font-family: var(--hype-mono);
	font-size: 14px;
	font-weight: 500;
	color: var(--hype-ink);
}

#search-modal .ct-search-item .price del,
#search-modal .ct-search-item .price del .amount {
	color: var(--hype-mute);
	font-weight: 400;
}

#search-modal .ct-search-item .price ins,
#search-modal .ct-search-item .price ins .amount {
	color: var(--hype-heat);
	text-decoration: none;
}

#search-modal .ct-search-form .ct-search-results .ct-search-more {
	grid-column: 1 / -1;
	display: inline-flex;
	justify-content: flex-start;
	width: fit-content;
	margin: 0;
	padding: var(--hype-space-2) 0 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--hype-ink);
	font-size: 14px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

#search-modal .ct-search-form .ct-search-results .ct-search-more:hover {
	color: var(--hype-ink);
}

#search-modal .ct-search-form .ct-search-results .ct-search-more:focus-visible {
	outline: 2px solid var(--hype-focus);
	outline-offset: 2px;
}

#search-modal .hype-search-kicker {
	margin: 0 0 var(--hype-space-2);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--hype-tracking-label);
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--hype-mute);
}

#search-modal .hype-search-suggest ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#search-modal .hype-search-suggest a {
	display: grid;
	grid-template-columns: 1.75rem minmax(0, 1fr) auto;
	gap: var(--hype-space-2);
	align-items: baseline;
	min-height: 44px;
	padding: 10px 0;
	border-bottom: 1px solid var(--hype-line);
	color: var(--hype-mute);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-decoration: none;
}

#search-modal .hype-search-suggest a:hover,
#search-modal .hype-search-suggest a:focus-visible {
	color: var(--hype-ink);
	text-decoration: none;
}

#search-modal .hype-search-suggest a:focus-visible {
	outline: 2px solid var(--hype-focus);
	outline-offset: 2px;
}

#search-modal .hype-search-suggest__index {
	font-family: var(--hype-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--hype-sold);
}

#search-modal .hype-search-suggest a:hover .hype-search-suggest__index,
#search-modal .hype-search-suggest a:focus-visible .hype-search-suggest__index {
	color: var(--hype-ink);
}

#search-modal .hype-search-suggest__label {
	min-width: 0;
	overflow-wrap: anywhere;
}

#search-modal .hype-search-suggest__hit {
	color: var(--hype-ink);
	font-weight: 600;
}

#search-modal .hype-search-suggest__kind {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--hype-tracking-label);
	text-transform: uppercase;
	color: var(--hype-mute);
	white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
	#search-modal .hype-search-suggest__label {
		transition: transform 180ms var(--hype-ease-out);
	}

	#search-modal .hype-search-suggest a:hover .hype-search-suggest__label,
	#search-modal .hype-search-suggest a:focus-visible .hype-search-suggest__label {
		transform: translateX(4px);
	}
}

.ct-header-cart-overlay,
.ct-panel-overlay,
[data-panel] .ct-panel-backdrop {
	background: rgb(17 17 17 / 40%);
}

#woo-cart-panel .ct-panel-inner {
	max-width: 400px;
	width: 100%;
	border-radius: 0;
	box-shadow: none;
	border-inline-start: 1px solid var(--hype-line);
	background: var(--hype-surface);
}

@media (max-width: 767.98px) {
	#woo-cart-panel .ct-panel-inner {
		max-width: 100%;
		height: 100%;
	}
}

/* Mini cart. New Balance drawer density + Saint Laurent sharp footer,
   locked to design.md §14: 400px, 0 radius, no shadow, 40% ink overlay. */
.ct-header-cart {
	position: static;
}

.ct-header-cart:is(:hover, :focus-within) .ct-cart-content {
	opacity: 0;
	visibility: hidden;
	transform: translate3d(100%, 0, 0);
}

.ct-header-cart.is-open::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: var(--hype-z-overlay);
	background: rgb(17 17 17 / 40%);
}

.ct-header-cart .ct-cart-content,
#woo-cart-panel .ct-cart-content {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	z-index: var(--hype-z-drawer);
	display: flex;
	flex-direction: column;
	width: min(400px, 100%);
	height: 100%;
	margin: 0;
	padding: 16px;
	overflow: hidden;
	border-radius: 0;
	box-shadow: none;
	border-inline-start: 1px solid var(--hype-line);
	background: var(--hype-surface);
	color: var(--hype-ink);
	opacity: 0;
	visibility: hidden;
	transform: translate3d(100%, 0, 0);
	transition: transform 200ms var(--hype-ease-out), opacity 200ms var(--hype-ease-out), visibility 200ms;
}

.ct-header-cart.is-open .ct-cart-content,
#woo-cart-panel.active .ct-cart-content {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.ct-header-cart .ct-cart-content[data-count="0"],
#woo-cart-panel .ct-cart-content[data-count="0"] {
	display: flex;
}

.ct-cart-content::before {
	content: none;
}

.hype-bolsa-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--hype-space-3);
	flex: 0 0 auto;
	padding: var(--hype-space-5);
	border-bottom: 1px solid var(--hype-line);
}

.hype-bolsa-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: var(--hype-tracking-tight);
}

.hype-bolsa-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-inline-end: -8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--hype-ink);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.ct-cart-content .woocommerce-mini-cart {
	max-height: 100vh !important;
	padding-inline: 20px 39px !important; 
}



.ct-cart-content .woocommerce-mini-cart,
#woo-cart-panel .ct-panel-content-inner > .woocommerce-mini-cart {
	display: flex;
	flex-direction: column;
	gap: var(--hype-space-4);
	flex: 1 1 auto;
	min-height: 0;
	max-height: none;
	margin: 0 -16px;
	padding: var(--hype-space-5) var(--hype-space-5) var(--hype-space-6);
	overflow-y: auto;
	background: var(--hype-canvas);
}

.ct-cart-content .woocommerce-mini-cart li.woocommerce-mini-cart-item,
	#woo-cart-panel .woocommerce-mini-cart li.woocommerce-mini-cart-item {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		grid-template-areas:
			"media data"
			"media remove";
		column-gap: var(--hype-space-4);
		row-gap: var(--hype-space-2);
		align-items: start;
		min-height: 170px;
		margin: 0;
		padding: var(--hype-space-3);
		border: 1px solid var(--hype-line);
		border-bottom: 1px solid var(--hype-line);
		border-radius: 0;
		background: var(--hype-surface);
		box-shadow: var(--hype-card-shadow);
		transition:
			border-color 280ms var(--hype-ease-out),
			box-shadow 280ms var(--hype-ease-out);
}

@media (max-width: 1279.98px) {
	.ct-cart-content .woocommerce-mini-cart,
	.ct-cart-content .woocommerce-mini-cart__buttons {
		padding-inline: 20px 66px !important;
	}
}


.ct-cart-content .woocommerce-mini-cart li.woocommerce-mini-cart-item:hover,
#woo-cart-panel .woocommerce-mini-cart li.woocommerce-mini-cart-item:hover {
	box-shadow: var(--hype-card-shadow-hover);
	transform: none;
}

.ct-cart-content .woocommerce-mini-cart-item .ct-media-container,
.ct-cart-content .woocommerce-mini-cart-item > a:not(.remove) {
	grid-area: media;
	width: 112px;
	height: 112px;
	border-radius: 0;
}

.ct-cart-content .woocommerce-mini-cart-item img {
	width: 112px;
	height: 112px;
	object-fit: contain;
	background: var(--hype-line);
	border-radius: 0;
}

.ct-cart-content .product-data {
	grid-area: data;
	min-width: 0;
	font-size: 14px;
}

.ct-cart-content .product-title {
	display: block;
	margin: 0 0 var(--hype-space-1);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: var(--hype-tracking-tight);
	text-decoration: none;
}

.ct-cart-content .product-title:hover {
	text-decoration: underline;
	color: var(--hype-ink);
}

.ct-cart-content dl.variation {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--hype-space-2);
	margin: 0 0 var(--hype-space-2);
	font-size: 12px;
	color: var(--hype-mute);
}

.ct-cart-content dl.variation dt,
.ct-cart-content dl.variation dd {
	margin: 0;
}

.ct-cart-content dl.variation dt {
	font-weight: 500;
}

.ct-cart-content .quantity,
.ct-cart-content .woocommerce-Price-amount,
.ct-cart-content .woocommerce-mini-cart__total .amount {
	font-family: var(--hype-mono);
	font-size: 14px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.ct-cart-content .quantity {
	display: block;
	color: var(--hype-ink);
}

.ct-cart-content del,
.ct-cart-content del .amount {
	color: var(--hype-mute);
	font-weight: 400;
}

.ct-cart-content ins,
.ct-cart-content ins .amount {
	color: var(--hype-heat);
	text-decoration: none;
}

.ct-cart-content .remove {
	position: static;
	grid-area: remove;
	justify-self: start;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--hype-mute);
}

.ct-cart-content .remove svg {
	display: none;
}

.ct-cart-content .remove::after {
	content: "Quitar";
}

.ct-cart-content .remove:hover,
.ct-cart-content .remove:focus-visible {
	color: var(--hype-ink);
	opacity: 1;
}

.ct-cart-content .woocommerce-mini-cart__total,
.ct-cart-content .woocommerce-mini-cart__buttons,
.ct-cart-content .cart-empty,
.ct-cart-content .return-to-shop,
.ct-cart-content .woocommerce-mini-cart__empty-message {
	margin: 0;
	border: 0;
	border-radius: 0;
}

.ct-cart-content .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex: 0 0 auto;
	padding: var(--hype-space-4) var(--hype-space-5) var(--hype-space-3);
	border-top: 1px solid var(--hype-line);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ct-cart-content .woocommerce-mini-cart__buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--hype-space-2);
	flex: 0 0 auto;
	margin: 0;
	padding: 0 var(--hype-space-5) var(--hype-space-5);
	border: 0;
}

.ct-cart-content .woocommerce-mini-cart__buttons > * {
	grid-column: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0;
	text-align: center;
}

.ct-cart-content .woocommerce-mini-cart__buttons .button:not(.checkout) {
	color: var(--hype-ink);
	background: transparent;
	border: 1px solid var(--hype-ink);
}

.ct-cart-content .woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout):hover {
	color: var(--hype-heat);
	background: transparent;
	border-color: var(--hype-heat);
}

.ct-cart-content .cart-empty,
.ct-cart-content .woocommerce-mini-cart__empty-message {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	margin: 0;
	padding: var(--hype-space-5);
	color: var(--hype-mute);
	font-size: 14px;
}

.ct-cart-content .return-to-shop {
	padding: 0 var(--hype-space-5) var(--hype-space-5);
}

.ct-cart-content .return-to-shop .button {
	width: 100%;
}

@media (max-width: 767.98px) {
	.ct-header-cart .ct-cart-content,
	#woo-cart-panel .ct-cart-content,
	#woo-cart-panel .ct-panel-inner {
		width: 100%;
		max-width: none;
		border-inline-start: 0;
	}

	.ct-cart-content .woocommerce-mini-cart__buttons {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ct-header-cart .ct-cart-content,
	#woo-cart-panel .ct-cart-content {
		transition: none;
	}
}

body:has(.hype-site-footer) #footer {
	display: none;
}

.hype-site-footer {
	background: var(--hype-ink);
	color: var(--hype-on-ink);
	padding: var(--hype-space-7) var(--hype-page-pad);
	font-size: 12px;
}

@media (min-width: 1280px) {
	.hype-site-footer {
		padding-block: var(--hype-space-8);
	}
}

.hype-site-footer a {
	color: var(--hype-on-ink);
	text-decoration: none;
}

.hype-site-footer a:hover {
	color: var(--hype-on-ink);
	text-decoration: underline;
}

.hype-site-footer__inner {
	max-width: var(--hype-container);
	margin-inline: auto;
}

.hype-site-footer__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--hype-space-6) var(--hype-space-4);
}

@media (min-width: 768px) {
	.hype-site-footer__grid {
		grid-template-columns: repeat(4, 1fr);
		gap: var(--hype-space-6);
	}
}

.hype-footer-col__title {
	margin: 0 0 var(--hype-space-3);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hype-on-ink);
}

.hype-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hype-footer-col li {
	margin: 0 0 var(--hype-space-2);
}

.hype-footer-newsletter {
	margin-top: var(--hype-space-7);
	max-width: 400px;
}

.hype-footer-newsletter__label {
	display: block;
	margin-bottom: var(--hype-space-2);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hype-footer-newsletter__row {
	display: flex;
	align-items: flex-end;
	gap: var(--hype-space-4);
	border-bottom: 1px solid var(--hype-on-ink);
}

.hype-footer-newsletter input[type="email"] {
	flex: 1;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--hype-on-ink);
	padding: 8px 0;
	min-height: 44px;
}

.hype-footer-newsletter input[type="email"]::placeholder {
	color: rgb(255 255 255 / 55%);
}

.hype-footer-newsletter button {
	background: transparent;
	color: var(--hype-on-ink);
	border: 0;
	border-radius: 0;
	min-height: 44px;
	padding: 8px 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--hype-tracking-label);
	text-transform: uppercase;
}

.hype-footer-newsletter button:hover {
	background: transparent;
	color: var(--hype-on-ink);
	text-decoration: underline;
}

.hype-site-footer__meta {
	display: flex;
	flex-direction: column;
	gap: var(--hype-space-2);
	margin-top: var(--hype-space-7);
}

@media (min-width: 768px) {
	.hype-site-footer__meta {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

.hype-payments,
.hype-copyright {
	margin: 0;
	color: var(--hype-on-ink);
}

.skip-link.screen-reader-text:focus {
	outline: 2px solid var(--hype-focus);
	outline-offset: 2px;
}
