/**
 * INTERLUX — overlays: search, mobile drawer, mini-cart.
 *
 * The header bar, navigation and mega-menu are styled by nutu.css (the 1:1
 * reference). This file keeps only the overlay components that the reference
 * does not define but the storefront still needs.
 */

/* -------------------------------------------------------------------------
 * Search overlay
 *
 * A white sheet that drops from the top over the blurred page, drawn in the
 * reference's vocabulary (nutu.css): gold kickers, a serif field on a hairline
 * that draws itself in gold, category cards with a door from each, and live
 * results as small product cards.
 * ---------------------------------------------------------------------- */

.ilx-search {
	--s-ink: #171714;
	--s-wine: #8d2025;
	--s-gold: #c79d66;
	--s-gold-dark: #9f7442;
	--s-pale: #f5f3ed;
	--s-pale-deep: #efebe3;
	--s-muted: #8a857b;
	--s-ease: cubic-bezier(.22, 1, .36, 1);
	position: fixed;
	inset: 0;
	z-index: var(--ilx-z-modal);
	color: var(--s-ink);
}

.ilx-search[hidden] {
	display: none;
}

.ilx-search__scrim,
.ilx-search__scrim:hover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(20, 18, 15, .42);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	cursor: default;
	transition: opacity .28s ease;
}

.ilx-search.is-open .ilx-search__scrim {
	opacity: 1;
	transition-duration: .5s;
}

/* Closing is quick (the overlay is hidden 300ms after), opening unhurried. */
.ilx-search__panel {
	position: relative;
	z-index: 1;
	max-height: 100vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	border-radius: 0 0 28px 28px;
	box-shadow: 0 40px 100px rgba(28, 24, 18, .24);
	opacity: 0;
	transform: translateY(-28px);
	transition: transform .28s ease, opacity .22s ease;
}

.ilx-search.is-open .ilx-search__panel {
	opacity: 1;
	transform: none;
	transition: transform .7s var(--s-ease), opacity .4s ease;
}

/* The gold thread across the top, drawn open with the sheet. */
.ilx-search__panel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(199, 157, 102, .75) 22%, rgba(199, 157, 102, .75) 78%, transparent);
	transform: scaleX(0);
	transition: transform .2s ease;
}

.ilx-search.is-open .ilx-search__panel::before {
	transform: scaleX(1);
	transition: transform .9s .1s var(--s-ease);
}

.ilx-search__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 34px 40px 36px;
}

/* The sheet's parts arrive a beat apart. */
.ilx-search__head,
.ilx-search__form,
.ilx-search__suggested,
.ilx-search__hint {
	opacity: 0;
	transform: translateY(10px);
}

.ilx-search.is-open .ilx-search__head,
.ilx-search.is-open .ilx-search__form,
.ilx-search.is-open .ilx-search__suggested,
.ilx-search.is-open .ilx-search__hint {
	opacity: 1;
	transform: none;
	transition: opacity .5s ease, transform .7s var(--s-ease);
}

.ilx-search.is-open .ilx-search__head { transition-delay: .06s; }
.ilx-search.is-open .ilx-search__form { transition-delay: .12s; }
.ilx-search.is-open .ilx-search__suggested { transition-delay: .2s; }
.ilx-search.is-open .ilx-search__hint { transition-delay: .28s; }

.ilx-search__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.ilx-search__kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--s-gold-dark);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .2em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ilx-search__kicker::before {
	content: "";
	flex: none;
	width: 18px;
	height: 1px;
	background: var(--s-gold);
}

.ilx-search__close,
.ilx-search__close:hover {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(23, 23, 20, .14);
	border-radius: 50%;
	background: transparent;
	color: var(--s-ink);
	transition: border-color .4s ease, transform .6s var(--s-ease);
}

.ilx-search__close svg {
	width: 20px;
	height: 20px;
}

.ilx-search__close:hover {
	border-color: var(--s-ink);
	transform: rotate(90deg);
}

/* The field ------------------------------------------------------------ */

.ilx-search__form {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 10px 0 20px;
}

.ilx-search__icon {
	flex: none;
	width: 30px;
	height: 30px;
	color: var(--s-ink);
	opacity: .55;
	transition: opacity .4s ease, color .4s ease;
}

.ilx-search__form:focus-within .ilx-search__icon {
	opacity: 1;
	color: var(--s-gold-dark);
}

.ilx-search .ilx-search__field,
.ilx-search .ilx-search__field:focus {
	flex: 1;
	min-width: 0;
	width: auto;
	height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	color: var(--s-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(28px, 3.3vw, 46px);
	font-weight: 400;
	letter-spacing: -.02em;
	line-height: 1.2;
	caret-color: var(--s-gold-dark);
	-webkit-appearance: none;
	appearance: none;
}

.ilx-search .ilx-search__field::placeholder {
	color: #bdb6ab;
	opacity: 1;
}

.ilx-search__field::-webkit-search-cancel-button,
.ilx-search__field::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.ilx-search__clear,
.ilx-search__clear:hover {
	flex: none;
	padding: 6px 2px 3px;
	border: 0;
	border-bottom: 1px solid #b9b1a5;
	border-radius: 0;
	background: transparent;
	color: var(--s-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	transition: color .3s ease, border-color .3s ease;
}

.ilx-search__clear:hover {
	color: var(--s-wine);
	border-color: var(--s-wine);
}

.ilx-search__clear[hidden] {
	display: none;
}

.ilx-search__submit,
.ilx-search__submit:hover {
	flex: none;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--s-ink);
	color: #fff;
	transition: background .4s ease, transform .5s var(--s-ease);
}

.ilx-search__submit svg {
	width: 20px;
	height: 20px;
	transition: transform .55s var(--s-ease);
}

.ilx-search__submit:hover {
	background: var(--s-wine);
}

.ilx-search__submit:hover svg {
	transform: translateX(3px);
}

/* A hairline that draws itself in gold while the field has focus, and runs a
   light along it while results are on their way. */
.ilx-search__line {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	overflow: hidden;
	background: rgba(23, 23, 20, .14);
}

.ilx-search__line::before,
.ilx-search__line::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ilx-search__line::before {
	background: linear-gradient(90deg, var(--s-gold-dark), var(--s-gold));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .9s var(--s-ease);
}

.ilx-search__form:focus-within .ilx-search__line::before {
	transform: scaleX(1);
}

.ilx-search__line::after {
	width: 30%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
	opacity: 0;
}

.ilx-search__form.is-loading .ilx-search__line::after {
	opacity: 1;
	animation: ilxSearchRun 1s linear infinite;
}

@keyframes ilxSearchRun {
	from { transform: translateX(-100%); }
	to { transform: translateX(340%); }
}

/* Popular categories ----------------------------------------------------- */

.ilx-search__suggested {
	margin-top: 30px;
}

.ilx-search__suggested[hidden] {
	display: none;
}

.ilx-search__cats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.ilx-search__cats li {
	margin: 0;
}

.ilx-search__cat {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 10px 20px 10px 10px;
	border-radius: 18px;
	background: var(--s-pale);
	color: var(--s-ink);
	transition: background .4s ease, box-shadow .45s ease;
}

.ilx-search__cat-media {
	position: relative;
	flex: none;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 13px;
	background: #fff;
}

.ilx-search__cat-media img {
	position: absolute;
	inset: 7px;
	width: calc(100% - 14px);
	height: calc(100% - 14px);
	max-width: none;
	object-fit: contain;
	transition: transform .8s var(--s-ease);
}

.ilx-search__cat-initial {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--s-gold-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 26px;
}

.ilx-search__cat-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.ilx-search__cat-name {
	overflow: hidden;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 19px;
	letter-spacing: -.01em;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color .3s ease;
}

.ilx-search__cat-count {
	color: var(--s-muted);
	font-size: 12.5px;
}

.ilx-search__cat-arrow {
	flex: none;
	display: grid;
	width: 18px;
	color: var(--s-ink);
	opacity: .3;
	transition: opacity .4s ease, transform .55s var(--s-ease), color .3s ease;
}

.ilx-search__cat-arrow svg {
	width: 18px;
	height: 18px;
}

.ilx-search__cat:hover,
.ilx-search__cat:focus-visible {
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(199, 157, 102, .5);
}

.ilx-search__cat:hover img,
.ilx-search__cat:focus-visible img {
	transform: scale(1.08);
}

.ilx-search__cat:hover .ilx-search__cat-name,
.ilx-search__cat:focus-visible .ilx-search__cat-name {
	color: var(--s-wine);
}

.ilx-search__cat:hover .ilx-search__cat-arrow,
.ilx-search__cat:focus-visible .ilx-search__cat-arrow {
	color: var(--s-wine);
	opacity: 1;
	transform: translateX(4px);
}

/* Live results ------------------------------------------------------------ */

.ilx-search__results {
	margin-top: 30px;
	transition: opacity .3s ease;
}

.ilx-search__results:empty {
	display: none;
}

.ilx-search__form.is-loading ~ .ilx-search__results {
	opacity: .5;
}

.ilx-search__results-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 16px;
}

.ilx-search__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0 4px;
	border-bottom: 1px solid #b9b1a5;
	color: var(--s-ink);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color .3s ease, border-color .3s ease;
}

.ilx-search__more svg {
	width: 14px;
	height: 14px;
	transition: transform .5s var(--s-ease);
}

.ilx-search .ilx-search__more:hover {
	color: var(--s-wine);
	border-color: var(--s-wine);
}

.ilx-search__more:hover svg {
	transform: translateX(4px);
}

.ilx-search__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ilx-search__grid li {
	margin: 0;
	animation: ilxSearchIn .55s var(--s-ease) both;
	animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes ilxSearchIn {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

.ilx-search__product {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--s-ink);
}

.ilx-search__product-media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	margin-bottom: 8px;
	overflow: hidden;
	border-radius: 16px;
	background: var(--s-pale);
	transition: background .4s ease, box-shadow .45s ease;
}

.ilx-search__product-media img {
	position: absolute;
	inset: 14px;
	width: calc(100% - 28px);
	height: calc(100% - 28px);
	max-width: none;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform .8s var(--s-ease);
}

.ilx-search__product-name {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	transition: color .3s ease;
}

.ilx-search__product-name mark {
	padding: 0;
	background: linear-gradient(transparent 62%, rgba(199, 157, 102, .32) 62%);
	color: inherit;
}

.ilx-search__product-price {
	color: var(--s-gold-dark);
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
}

.ilx-search__product-price del {
	margin-right: 6px;
	color: #a39e94;
}

.ilx-search__product-price ins {
	text-decoration: none;
}

.ilx-search__product:hover .ilx-search__product-media,
.ilx-search__product:focus-visible .ilx-search__product-media {
	background: var(--s-pale-deep);
	box-shadow: inset 0 0 0 1px rgba(199, 157, 102, .45);
}

.ilx-search__product:hover img,
.ilx-search__product:focus-visible img {
	transform: scale(1.06);
}

.ilx-search__product:hover .ilx-search__product-name,
.ilx-search__product:focus-visible .ilx-search__product-name {
	color: var(--s-wine);
}

/* Nothing found: said once, plainly, with the categories offered again. */
.ilx-search__empty {
	animation: ilxSearchIn .5s var(--s-ease) both;
}

.ilx-search__empty-title {
	margin: 0 0 6px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 26px;
	letter-spacing: -.015em;
	line-height: 1.2;
	color: var(--s-ink);
}

.ilx-search__empty-note {
	margin: 0;
	color: var(--s-muted);
	font-size: 14.5px;
}

.ilx-search__hint {
	margin: 28px 0 0;
	color: #a39e94;
	font-size: 12px;
	text-align: right;
}

.ilx-search__hint kbd {
	display: inline-block;
	padding: 2px 7px;
	border: 1px solid rgba(23, 23, 20, .14);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 0 rgba(23, 23, 20, .1);
	color: var(--s-ink);
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
}

@media (max-width: 1100px) {
	.ilx-search__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.ilx-search__cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ilx-search__panel {
		border-radius: 0 0 22px 22px;
	}

	.ilx-search__inner {
		padding: 20px 16px 24px;
	}

	.ilx-search__form {
		gap: 12px;
		padding-bottom: 14px;
	}

	.ilx-search__icon {
		width: 24px;
		height: 24px;
	}

	.ilx-search .ilx-search__field,
	.ilx-search .ilx-search__field:focus {
		font-size: 24px;
	}

	.ilx-search__submit,
	.ilx-search__submit:hover {
		width: 44px;
		height: 44px;
	}

	.ilx-search__cats {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.ilx-search__cat-media {
		width: 52px;
		height: 52px;
	}

	.ilx-search__cat-name {
		font-size: 17px;
	}

	.ilx-search__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.ilx-search__results-head {
		flex-wrap: wrap;
	}

	.ilx-search__hint {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ilx-search *,
	.ilx-search *::before,
	.ilx-search *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* -------------------------------------------------------------------------
 * Drawers (mobile navigation + mini-cart)
 * ---------------------------------------------------------------------- */

.ilx-drawer,
.ilx-minicart {
	position: fixed;
	inset: 0;
	z-index: var(--ilx-z-modal);
}

.ilx-drawer[hidden],
.ilx-minicart[hidden] {
	display: none;
}

.ilx-drawer__scrim,
.ilx-minicart__scrim {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: rgba(22, 21, 15, 0.45);
	opacity: 0;
	cursor: default;
	transition: opacity var(--ilx-transition);
}

.ilx-drawer.is-open .ilx-drawer__scrim,
.ilx-minicart.is-open .ilx-minicart__scrim {
	opacity: 1;
}

.ilx-drawer__panel,
.ilx-minicart__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(25rem, 90vw);
	background-color: var(--ilx-color-bg);
	box-shadow: var(--ilx-shadow-lg);
	transform: translateX(100%);
	transition: transform var(--ilx-duration) var(--ilx-ease);
}

.ilx-drawer.is-open .ilx-drawer__panel,
.ilx-minicart.is-open .ilx-minicart__panel {
	transform: translateX(0);
}

.ilx-drawer__head,
.ilx-minicart__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ilx-space-2xs);
	flex-shrink: 0;
	min-height: var(--ilx-header-height-mobile);
	padding-inline: var(--ilx-space-sm);
	border-bottom: var(--ilx-border-width) solid var(--ilx-color-line);
}

.ilx-drawer__title,
.ilx-minicart__title {
	overflow: hidden;
	color: var(--ilx-color-ink);
	font-size: var(--ilx-text-xs);
	font-weight: var(--ilx-weight-semibold);
	letter-spacing: var(--ilx-tracking-label);
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.ilx-drawer__close,
.ilx-minicart__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ilx-color-ink);
	cursor: pointer;
}

.ilx-drawer__close:hover,
.ilx-minicart__close:hover {
	background: transparent;
	border: 0;
	color: var(--ilx-color-accent-strong);
}

/* Drawer body ---------------------------------------------------------- */

.ilx-drawer__body {
	position: relative;
	flex: 1;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.ilx-drawer__search {
	display: flex;
	align-items: center;
	gap: var(--ilx-space-2xs);
	width: calc(100% - var(--ilx-space-sm) * 2);
	margin: var(--ilx-space-sm);
	padding: 0.75rem var(--ilx-space-sm);
	border: var(--ilx-border-width) solid var(--ilx-color-line-strong);
	border-radius: var(--ilx-radius-sm);
	background-color: var(--ilx-color-surface);
	color: var(--ilx-color-muted);
	font-size: var(--ilx-text-small);
	font-weight: var(--ilx-weight-regular);
	letter-spacing: 0;
	text-transform: none;
	justify-content: flex-start;
}

.ilx-drawer__search:hover {
	border-color: var(--ilx-color-ink);
	background-color: var(--ilx-color-surface);
	color: var(--ilx-color-ink);
}

.ilx-drawer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ilx-drawer__list[hidden] {
	display: none;
}

.ilx-drawer__item {
	display: flex;
	align-items: stretch;
	margin: 0;
	border-bottom: var(--ilx-border-width) solid var(--ilx-color-line);
}

.ilx-drawer__link {
	flex: 1;
	display: flex;
	align-items: center;
	gap: var(--ilx-space-2xs);
	min-height: 3.25rem;
	padding: var(--ilx-space-2xs) var(--ilx-space-sm);
	color: var(--ilx-color-text);
	font-size: var(--ilx-text-body);
	text-decoration: none;
}

.ilx-drawer__item.is-current > .ilx-drawer__link {
	color: var(--ilx-color-accent-strong);
	font-weight: var(--ilx-weight-medium);
}

.ilx-drawer__count {
	color: var(--ilx-color-muted);
	font-size: var(--ilx-text-xs);
	font-variant-numeric: tabular-nums;
}

.ilx-drawer__expand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 3.25rem;
	padding: 0;
	border: 0;
	border-left: var(--ilx-border-width) solid var(--ilx-color-line);
	border-radius: 0;
	background: transparent;
	color: var(--ilx-color-muted);
	cursor: pointer;
}

.ilx-drawer__expand:hover {
	background-color: var(--ilx-color-surface-alt);
	border: 0;
	border-left: var(--ilx-border-width) solid var(--ilx-color-line);
	color: var(--ilx-color-ink);
}

.ilx-drawer__item--all .ilx-drawer__link,
.ilx-drawer__item--all a {
	flex: 1;
	display: flex;
	align-items: center;
	min-height: 3rem;
	padding: var(--ilx-space-2xs) var(--ilx-space-sm);
	color: var(--ilx-color-accent-strong);
	font-size: var(--ilx-text-small);
	font-weight: var(--ilx-weight-medium);
	letter-spacing: var(--ilx-tracking-nav);
	text-decoration: none;
	text-transform: uppercase;
}

/* Drawer foot ---------------------------------------------------------- */

.ilx-drawer__foot {
	flex-shrink: 0;
	padding: var(--ilx-space-sm);
	border-top: var(--ilx-border-width) solid var(--ilx-color-line);
	background-color: var(--ilx-color-surface-alt);
}

.ilx-drawer__footlink {
	display: flex;
	align-items: center;
	gap: var(--ilx-space-2xs);
	padding-block: var(--ilx-space-3xs);
	color: var(--ilx-color-text);
	font-size: var(--ilx-text-small);
	text-decoration: none;
}

.ilx-drawer__footlink .ilx-icon {
	color: var(--ilx-color-accent);
}

.ilx-drawer__footlink:hover {
	color: var(--ilx-color-accent-strong);
}

.ilx-drawer__footlink--quiet {
	color: var(--ilx-color-muted);
	font-size: var(--ilx-text-xs);
}

/* -------------------------------------------------------------------------
 * Mini-cart
 *
 * A white sheet from the right over the blurred page, in the vocabulary of
 * the search overlay and the menu: a gold kicker over the count in serif,
 * each line a small card (the door on a pale stage, its name, the options
 * chosen, the line total), and a summary that stays in view below the lines.
 * The body is woocommerce/cart/mini-cart.php, refreshed by the cart fragments.
 * ---------------------------------------------------------------------- */

.ilx-minicart {
	--c-ink: #171714;
	--c-wine: #8d2025;
	--c-gold: #c79d66;
	--c-gold-dark: #9f7442;
	--c-pale: #f5f3ed;
	--c-muted: #8a857b;
	--c-line: rgba(23, 23, 20, .1);
	--c-ease: cubic-bezier(.22, 1, .36, 1);
	color: var(--c-ink);
}

.ilx-minicart .ilx-minicart__scrim,
.ilx-minicart .ilx-minicart__scrim:hover {
	border: 0;
	background: rgba(20, 18, 15, .42);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: opacity .28s ease;
}

.ilx-minicart.is-open .ilx-minicart__scrim {
	transition-duration: .5s;
}

/* Closing is quick (the drawer is hidden 300ms after), opening unhurried. */
.ilx-minicart .ilx-minicart__panel {
	width: min(460px, 100vw);
	overflow: hidden;
	border-radius: 28px 0 0 28px;
	background: #fff;
	box-shadow: -30px 0 90px rgba(28, 24, 18, .22);
	transition: transform .3s ease;
}

.ilx-minicart.is-open .ilx-minicart__panel {
	transition: transform .7s var(--c-ease);
}

.ilx-minicart .ilx-minicart__head {
	position: relative;
	align-items: flex-start;
	min-height: 0;
	padding: 32px 30px 24px;
	border-bottom: 0;
}

/* A hairline under the head that fades out before either edge. */
.ilx-minicart .ilx-minicart__head::after {
	content: "";
	position: absolute;
	left: 30px;
	right: 30px;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(199, 157, 102, .6), var(--c-line) 40%, var(--c-line) 80%, transparent);
}

.ilx-minicart__heading {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.ilx-minicart .ilx-minicart__title {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--c-gold-dark);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .2em;
	line-height: 1.3;
}

.ilx-minicart .ilx-minicart__title::before {
	content: "";
	flex: none;
	width: 18px;
	height: 1px;
	background: var(--c-gold);
}

.ilx-minicart__count {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 30px;
	letter-spacing: -.02em;
	line-height: 1.1;
	color: var(--c-ink);
}

.ilx-minicart__count.is-empty {
	display: none;
}

.ilx-minicart .ilx-minicart__close,
.ilx-minicart .ilx-minicart__close:hover {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(23, 23, 20, .14);
	border-radius: 50%;
	background: transparent;
	color: var(--c-ink);
	transition: border-color .4s ease, transform .6s var(--c-ease);
}

.ilx-minicart__close svg {
	width: 20px;
	height: 20px;
}

.ilx-minicart .ilx-minicart__close:hover {
	border-color: var(--c-ink);
	transform: rotate(90deg);
}

/* Body: the lines scroll, the summary stays. ----------------------------- */

.ilx-minicart__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.ilx-cart {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

#ilx-minicart .ilx-cart__list {
	flex: 1;
	min-height: 0;
	margin: 0;
	padding: 6px 30px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
}

#ilx-minicart .ilx-cart__item {
	position: relative;
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 18px;
	margin: 0;
	padding: 20px 0;
	border-bottom: 1px solid var(--c-line);
}

#ilx-minicart .ilx-cart__item:last-child {
	border-bottom: 0;
}

/* WooCommerce clears its list items with ::before and ::after, which would
   take the first cells of the grid. */
#ilx-minicart .ilx-cart__item::before,
#ilx-minicart .ilx-cart__item::after {
	content: none;
	display: none;
}

#ilx-minicart.is-open:not(.is-settled) .ilx-cart__item {
	animation: ilxCartIn .6s var(--c-ease) both;
	animation-delay: calc(.12s + var(--i, 0) * 50ms);
}

@keyframes ilxCartIn {
	from { opacity: 0; transform: translateX(18px); }
	to { opacity: 1; transform: none; }
}

#ilx-minicart .ilx-cart__media {
	position: relative;
	display: block;
	height: 116px;
	overflow: hidden;
	border-radius: 14px;
	background: var(--c-pale);
}

#ilx-minicart .ilx-cart__media img {
	position: absolute;
	inset: 10px;
	width: calc(100% - 20px);
	height: calc(100% - 20px);
	max-width: none;
	margin: 0;
	border-radius: 0;
	background: none;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform .8s var(--c-ease);
}

#ilx-minicart .ilx-cart__media:hover img {
	transform: scale(1.06);
}

#ilx-minicart .ilx-cart__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding-top: 2px;
}

#ilx-minicart .ilx-cart__top {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

#ilx-minicart .ilx-cart__name {
	flex: 1;
	min-width: 0;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--c-ink);
	transition: color .3s ease;
}

#ilx-minicart a.ilx-cart__name:hover {
	color: var(--c-wine);
}

#ilx-minicart .ilx-cart__remove,
#ilx-minicart .ilx-cart__remove:hover {
	flex: none;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin: -4px -6px 0 0;
	border-radius: 50%;
	background: transparent;
	color: #a39e94 !important;
	font-size: 0;
	transition: background .3s ease, color .3s ease;
}

#ilx-minicart .ilx-cart__remove svg {
	width: 16px;
	height: 16px;
}

#ilx-minicart .ilx-cart__remove:hover {
	background: var(--c-pale);
	color: var(--c-wine) !important;
}

/* The options chosen for the door, one per line: a quiet label, then its value. */
#ilx-minicart .ilx-cart__body dl.variation {
	display: block;
	margin: 10px 0 0;
	padding: 0;
	border: 0;
	font-size: 12.5px;
	line-height: 1.5;
}

#ilx-minicart .ilx-cart__body dl.variation::before,
#ilx-minicart .ilx-cart__body dl.variation::after {
	content: none;
	display: none;
}

#ilx-minicart .ilx-cart__body dl.variation dt,
#ilx-minicart .ilx-cart__body dl.variation dd {
	display: inline;
	float: none;
	margin: 0;
	padding: 0;
}

#ilx-minicart .ilx-cart__body dl.variation dt {
	color: var(--c-muted);
	font-weight: 400;
}

#ilx-minicart .ilx-cart__body dl.variation dd {
	margin-left: 3px;
	color: var(--c-ink);
	font-weight: 500;
}

#ilx-minicart .ilx-cart__body dl.variation dd::after {
	content: "\A";
	white-space: pre;
}

#ilx-minicart .ilx-cart__body dl.variation dd p {
	display: inline;
	margin: 0;
}

#ilx-minicart .ilx-cart__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 12px;
}

#ilx-minicart .ilx-cart__qty {
	color: var(--c-muted);
	font-size: 12.5px;
}

#ilx-minicart .ilx-cart__price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	color: var(--c-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	letter-spacing: -.01em;
	white-space: nowrap;
	transition: opacity .3s ease;
}

#ilx-minicart .ilx-cart__unit {
	color: var(--c-muted);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 11.5px;
	letter-spacing: 0;
}

/* While a changed quantity is on its way, the figures it will change wait dimmed. */
#ilx-minicart .ilx-cart__item.is-updating .ilx-cart__price,
#ilx-minicart .ilx-cart__summary.is-updating .ilx-cart__total .amount {
	opacity: .4;
}

/* The quantity stepper: − and + in a fine pill around a count that rolls. */
#ilx-minicart .ilx-qty {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 3px;
	border: 1px solid rgba(23, 23, 20, .14);
	border-radius: 999px;
	background: #fff;
	transition: border-color .3s ease;
}

#ilx-minicart .ilx-qty:hover,
#ilx-minicart .ilx-qty:focus-within {
	border-color: rgba(23, 23, 20, .32);
}

#ilx-minicart .ilx-qty__step,
#ilx-minicart .ilx-qty__step:hover {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--c-ink);
	transition: background .25s ease, color .25s ease, transform .2s ease;
}

#ilx-minicart .ilx-qty__step svg {
	width: 14px;
	height: 14px;
}

#ilx-minicart .ilx-qty__step:hover:not(:disabled) {
	background: var(--c-pale);
	color: var(--c-wine);
}

#ilx-minicart .ilx-qty__step:active:not(:disabled) {
	transform: scale(.88);
}

#ilx-minicart .ilx-qty__step:disabled {
	background: transparent;
	color: var(--c-ink);
	opacity: .25;
	cursor: default;
}

#ilx-minicart .ilx-qty__value {
	position: relative;
	display: block;
	width: 30px;
	height: 20px;
	overflow: hidden;
}

#ilx-minicart .ilx-qty__digit {
	position: absolute;
	inset: 0;
	color: var(--c-ink);
	font-size: 14px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 20px;
	text-align: center;
	transition: transform .38s var(--c-ease), opacity .3s ease;
}

#ilx-minicart .ilx-qty__digit.is-entering-up { transform: translateY(100%); opacity: 0; }
#ilx-minicart .ilx-qty__digit.is-entering-down { transform: translateY(-100%); opacity: 0; }
#ilx-minicart .ilx-qty__digit.is-leaving-up { transform: translateY(-100%); opacity: 0; }
#ilx-minicart .ilx-qty__digit.is-leaving-down { transform: translateY(100%); opacity: 0; }

#ilx-minicart .ilx-cart__note {
	margin: 8px 0 0;
	color: var(--c-wine);
	font-size: 12px;
	animation: ilxCartUp .4s var(--c-ease) both;
}

#ilx-minicart .ilx-cart__note[hidden] {
	display: none;
}

/* WooCommerce greys a line out while it is being removed. */
#ilx-minicart .ilx-cart__item .blockUI.blockOverlay {
	border-radius: 14px;
	background: rgba(255, 255, 255, .7) !important;
}

/* Summary ------------------------------------------------------------------ */

#ilx-minicart .ilx-cart__summary {
	flex: none;
	position: relative;
	padding: 22px 30px 30px;
	background: #fff;
	box-shadow: 0 -18px 30px -24px rgba(28, 24, 18, .25);
}

#ilx-minicart .ilx-cart__summary::before {
	content: "";
	position: absolute;
	top: 0;
	left: 30px;
	right: 30px;
	height: 1px;
	background: var(--c-line);
}

#ilx-minicart .ilx-cart__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 0;
	border: 0;
}

#ilx-minicart .ilx-cart__total strong {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--c-gold-dark);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .2em;
	text-transform: uppercase;
}

#ilx-minicart .ilx-cart__total strong::before {
	content: "";
	width: 18px;
	height: 1px;
	background: var(--c-gold);
}

#ilx-minicart .ilx-cart__total .amount {
	transition: opacity .3s ease;
	color: var(--c-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 30px;
	font-weight: 400;
	letter-spacing: -.02em;
}

#ilx-minicart .ilx-cart__buttons {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin: 20px 0 0;
	padding: 0;
}

#ilx-minicart .ilx-cart__button,
#ilx-minicart .ilx-cart__button:hover {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--c-ink);
	color: #fff !important;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .1em;
	line-height: 1;
	text-transform: uppercase;
	transition: background .4s ease;
}

#ilx-minicart .ilx-cart__button:hover {
	background: var(--c-wine);
}

#ilx-minicart .ilx-cart__button svg {
	width: 18px;
	height: 18px;
	transition: transform .55s var(--c-ease);
}

#ilx-minicart .ilx-cart__button:hover svg {
	transform: translateX(4px);
}

#ilx-minicart .ilx-cart__view,
#ilx-minicart .ilx-cart__view:hover {
	display: inline-flex;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 4px 0 3px;
	border: 0;
	border-bottom: 1px solid #b9b1a5;
	border-radius: 0;
	background: transparent;
	color: var(--c-ink) !important;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1.2;
	text-transform: uppercase;
	transition: color .3s ease, border-color .3s ease;
}

#ilx-minicart .ilx-cart__view:hover {
	border-color: var(--c-wine);
	color: var(--c-wine) !important;
}

/* Empty -------------------------------------------------------------------- */

.ilx-cart--empty {
	align-items: center;
	justify-content: center;
	padding: 30px 40px 60px;
	text-align: center;
}

.ilx-minicart.is-open:not(.is-settled) .ilx-cart--empty > * {
	animation: ilxCartUp .6s var(--c-ease) both;
}

.ilx-minicart.is-open .ilx-cart--empty > :nth-child(2) { animation-delay: .06s; }
.ilx-minicart.is-open .ilx-cart--empty > :nth-child(3) { animation-delay: .12s; }
.ilx-minicart.is-open .ilx-cart--empty > :nth-child(4) { animation-delay: .18s; }

@keyframes ilxCartUp {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

.ilx-cart__empty-mark {
	display: grid;
	place-items: center;
	width: 88px;
	height: 88px;
	margin-bottom: 26px;
	border-radius: 50%;
	background: var(--c-pale);
	color: var(--c-gold-dark);
}

.ilx-cart__empty-mark svg {
	width: 34px;
	height: 34px;
}

#ilx-minicart .ilx-cart__empty-title {
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	color: var(--c-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 28px;
	letter-spacing: -.02em;
	line-height: 1.15;
	text-align: center;
}

#ilx-minicart .ilx-cart__empty-note {
	max-width: 30ch;
	margin: 0 0 28px;
	color: var(--c-muted);
	font-size: 14.5px;
	line-height: 1.6;
}

#ilx-minicart .ilx-cart--empty .ilx-cart__button,
#ilx-minicart .ilx-cart--empty .ilx-cart__button:hover {
	width: auto;
	min-width: 220px;
}

@media (max-width: 480px) {
	.ilx-minicart .ilx-minicart__panel {
		border-radius: 0;
	}

	.ilx-minicart .ilx-minicart__head {
		padding: 22px 18px 18px;
	}

	.ilx-minicart .ilx-minicart__head::after,
	#ilx-minicart .ilx-cart__summary::before {
		left: 18px;
		right: 18px;
	}

	#ilx-minicart .ilx-cart__list {
		padding: 4px 18px;
	}

	#ilx-minicart .ilx-cart__item {
		grid-template-columns: 78px minmax(0, 1fr);
		gap: 14px;
	}

	#ilx-minicart .ilx-cart__media {
		height: 100px;
	}

	#ilx-minicart .ilx-cart__summary {
		padding: 18px 18px 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ilx-minicart *,
	.ilx-minicart *::before,
	.ilx-minicart *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* -------------------------------------------------------------------------
 * Scroll lock while an overlay is open
 * ---------------------------------------------------------------------- */

body.ilx-locked {
	overflow: hidden;
}

/* Drawer back button (created by JS when a sub-level is shown) */
.ilx-drawer__back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	margin-left: calc(var(--ilx-space-sm) * -1 + 0.25rem);
	margin-right: var(--ilx-space-3xs);
	padding: 0;
	border: 0;
	border-radius: var(--ilx-radius-sm);
	background: transparent;
	color: var(--ilx-color-ink);
	cursor: pointer;
}

.ilx-drawer__back:hover {
	border: 0;
	background-color: var(--ilx-color-surface-alt);
	color: var(--ilx-color-accent-strong);
}
