/* =========================================================================
   Promo bar, header, navigation, panels, drawers, footer
   ========================================================================= */

/* ---------- promo bar ---------- */

.vm-promo {
	background: var(--ink-surface);
	color: #efe9e0;
	font-size: 12.5px;
	letter-spacing: .01em;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.vm-promo__track { position: relative; width: 100%; height: 100%; }

.vm-promo__item {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	opacity: 0;
	padding-inline: var(--gut);
	text-align: center;
}

/* The outgoing message is hidden instantly; only the incoming one animates,
   so the two never overlap mid-crossfade. */
.vm-promo__item.is-active { opacity: 1; animation: vm-promo-in .38s var(--ease); }

@keyframes vm-promo-in {
	from { opacity: 0; transform: translateY(70%); }
	to { opacity: 1; transform: none; }
}

@media (min-width: 900px) {
	.vm-promo__track {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 34px;
	}
	.vm-promo__item {
		position: static;
		opacity: 1;
		transform: none;
		padding-inline: 0;
	}
	.vm-promo__item + .vm-promo__item::before {
		content: "";
		width: 4px; height: 4px;
		border-radius: 50%;
		background: rgba(255, 255, 255, .25);
		margin-right: 34px;
	}
	.vm-promo__item:nth-child(n + 4) { display: none; }
}
.vm-promo__item .vm-icon { color: var(--gold-2); }
.vm-promo__item .amount, .vm-promo__item bdi { color: #fff; font-weight: 600; }

/* ---------- header ---------- */

.vm-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: rgba(255, 255, 255, .82);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.vm-header.is-stuck {
	border-bottom-color: var(--line);
	box-shadow: 0 1px 20px rgba(20, 17, 15, .05);
}

.vm-header__inner {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gut);
	height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 10px;
}

.vm-brand { display: flex; align-items: center; margin-right: auto; }
@media (min-width: 1024px) { .vm-brand { margin-right: 34px; } }

.vm-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.vm-logo__mark { display: grid; place-items: center; color: var(--gold); }
.vm-logo__mark svg { transition: transform var(--t-slow); }
.vm-brand:hover .vm-logo__mark svg { transform: rotate(25deg); }
.vm-logo__text {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .16em;
	line-height: 1;
}
.vm-logo__text em { font-style: normal; font-weight: 300; }
.vm-logo--sm .vm-logo__text { font-size: 16px; }
.vm-logo--light { color: #fff; }
.vm-logo--light .vm-logo__mark { color: var(--gold-2); }

.vm-header__actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }

.vm-iconbtn {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: var(--r-pill);
	color: var(--ink);
	transition: background var(--t-fast), color var(--t-fast);
	position: relative;
}
.vm-iconbtn:hover { background: var(--sand); }

.vm-burger { display: grid; }
@media (min-width: 1024px) { .vm-burger { display: none; } }

.vm-bag__count {
	position: absolute;
	top: 4px; right: 3px;
	min-width: 18px; height: 18px;
	padding: 0 5px;
	display: grid; place-items: center;
	background: var(--gold);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1;
	border-radius: var(--r-pill);
	border: 2px solid var(--paper);
	transform: scale(1);
	transition: transform var(--t);
}
.vm-bag__count.is-empty { display: none; }
.vm-bag.is-bumped .vm-bag__count { animation: vm-bump .45s var(--ease); }

@keyframes vm-bump {
	40% { transform: scale(1.35); }
	100% { transform: scale(1); }
}

/* ---------- desktop nav ---------- */

.vm-nav { display: none; }
@media (min-width: 1024px) { .vm-nav { display: block; } }

.vm-nav__list { display: flex; align-items: center; gap: 2px; }

.vm-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 10px 14px;
	border-radius: var(--r-pill);
	font-size: 14.5px;
	font-weight: 500;
	color: var(--ink-2);
	transition: color var(--t-fast), background var(--t-fast);
}
.vm-nav__link:hover { color: var(--ink); background: var(--sand); }
.vm-nav__caret { transition: transform var(--t-fast); opacity: .5; }
.vm-nav__item.is-open > .vm-nav__link { color: var(--ink); background: var(--sand); }
.vm-nav__item.is-open .vm-nav__caret { transform: rotate(180deg); }

.vm-nav__link--hot { color: var(--sale); font-weight: 600; }
.vm-nav__link--hot:hover { background: var(--sale-wash); color: var(--sale); }

/* ---------- mega menu ---------- */

.vm-mega {
	position: absolute;
	left: 0; right: 0;
	top: 100%;
	background: var(--paper);
	border-top: 1px solid var(--line);
	box-shadow: var(--sh-2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity var(--t), transform var(--t), visibility var(--t);
	pointer-events: none;
}
.vm-nav__item.is-open .vm-mega {
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
}

.vm-mega__inner {
	max-width: var(--wrap);
	margin-inline: auto;
	padding: 34px var(--gut) 40px;
	display: grid;
	grid-template-columns: 1fr 1.5fr auto;
	gap: 44px;
}
.vm-mega--brands .vm-mega__inner { grid-template-columns: 1fr; }

.vm-mega__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted-2);
	margin-bottom: 16px;
}

.vm-mega__col ul li a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 10px;
	margin-left: -10px;
	border-radius: var(--r-sm);
	font-size: 15px;
	color: var(--ink-2);
	transition: background var(--t-fast), color var(--t-fast);
}
.vm-mega__col ul li a:hover { background: var(--sand); color: var(--ink); }
.vm-mega__col ul li a span { font-size: 12px; color: var(--muted-2); }

.vm-mega__brands { columns: 3; column-gap: 18px; }
.vm-mega__brands li { break-inside: avoid; }

.vm-mega__brandgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 6px;
}
.vm-mega__brandgrid a {
	display: block;
	padding: 12px 14px;
	border-radius: var(--r-sm);
	transition: background var(--t-fast);
}
.vm-mega__brandgrid a:hover { background: var(--sand); }
.vm-mega__brandname { display: block; font-size: 15px; font-weight: 500; }
.vm-mega__brandcount { display: block; font-size: 12px; color: var(--muted-2); margin-top: 2px; }

.vm-mega__card {
	display: block;
	width: 258px;
	background: var(--sand);
	border-radius: var(--r-md);
	overflow: hidden;
	transition: transform var(--t), box-shadow var(--t);
}
.vm-mega__card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.vm-mega__card-media { display: block; background: var(--paper); }
.vm-mega__card-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.vm-mega__card-body { display: block; padding: 14px 16px 18px; }
.vm-mega__card-tag {
	display: block;
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gold);
	font-weight: 600;
}
.vm-mega__card-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.35;
	margin: 6px 0 8px;
}
.vm-mega__card-price { font-size: 15px; font-weight: 600; }
.vm-mega__card-price del { display: none; }

/* ---------- scrim ---------- */

.vm-scrim {
	position: fixed;
	inset: 0;
	background: rgba(20, 17, 15, .38);
	backdrop-filter: blur(2px);
	z-index: 95;
	opacity: 0;
	transition: opacity var(--t);
}
.vm-scrim.is-on { opacity: 1; }

/* ---------- slide-down panels ---------- */

.vm-panel {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	background: var(--paper);
	box-shadow: var(--sh-2);
	transform: translateY(-101%);
	transition: transform var(--t);
	max-height: 90vh;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.vm-panel.is-open { transform: none; }

.vm-panel__inner {
	max-width: 860px;
	margin-inline: auto;
	padding: 22px var(--gut) 32px;
}

.vm-searchform {
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 2px solid var(--ink);
	padding-bottom: 10px;
}
.vm-searchform__icon { color: var(--muted); }
.vm-searchform__input {
	flex: 1;
	border: 0;
	background: none;
	font-size: clamp(18px, 3.4vw, 24px);
	padding: 6px 0;
	outline: none;
}
.vm-searchform__input::placeholder { color: var(--muted-2); }
.vm-searchform__input::-webkit-search-cancel-button { display: none; }

.vm-searchsuggest { margin-top: 22px; }
.vm-searchsuggest__label {
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted-2);
	font-weight: 600;
	margin-bottom: 12px;
}

.vm-searchresults:not(:empty) { margin-top: 22px; }
.vm-searchhits { display: grid; gap: 4px; }
.vm-searchhits a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px;
	border-radius: var(--r-sm);
	transition: background var(--t-fast);
}
.vm-searchhits a:hover { background: var(--sand); }
.vm-searchhits__media { width: 56px; flex: none; border-radius: var(--r-xs); overflow: hidden; background: var(--sand); }
.vm-searchhits__media img { aspect-ratio: 1; object-fit: cover; }
.vm-searchhits__body { display: grid; gap: 1px; min-width: 0; }
.vm-searchhits__brand { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.vm-searchhits__title { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-searchhits__price { font-size: 14px; font-weight: 600; }
.vm-searchhits__price del { color: var(--muted-2); font-size: 12.5px; margin-left: 6px; text-decoration: line-through; }

.vm-searchall {
	display: inline-block;
	margin-top: 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--gold);
	border-bottom: 1px solid currentColor;
}
.vm-searchempty { color: var(--muted); font-size: 15px; padding: 8px; }

/* ---------- drawers ---------- */

.vm-drawer {
	position: fixed;
	top: 0; bottom: 0;
	z-index: 100;
	width: min(420px, 92vw);
	background: var(--paper);
	display: flex;
	flex-direction: column;
	transition: transform var(--t);
	box-shadow: var(--sh-3);
}
.vm-drawer--right { right: 0; transform: translateX(101%); }
.vm-drawer--left { left: 0; transform: translateX(-101%); }
.vm-drawer.is-open { transform: none; }

.vm-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--line);
	flex: none;
}
.vm-drawer__title { font-size: 17px; font-weight: 600; }

.vm-drawer__inner { display: contents; }

.vm-drawer__body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 18px 20px;
}

.vm-drawer__foot {
	flex: none;
	padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line);
	background: var(--paper);
}

.vm-drawer__totals {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	font-size: 15px;
}
.vm-drawer__totals strong { font-size: 19px; }
.vm-drawer__note { font-size: 12.5px; color: var(--muted); margin: 4px 0 14px; }
.vm-drawer__link {
	display: block;
	text-align: center;
	margin-top: 12px;
	font-size: 14px;
	color: var(--muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.vm-drawer__trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 14px;
	font-size: 12.5px;
	color: var(--muted);
}
.vm-drawer__trust .vm-icon { color: var(--green); }

.vm-drawer__empty { padding: 60px 24px; text-align: center; margin: auto; }
.vm-drawer__empty-icon {
	display: grid;
	place-items: center;
	width: 74px; height: 74px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--sand);
	color: var(--muted);
}
.vm-drawer__empty-title { font-size: 18px; font-weight: 600; }
.vm-drawer__empty-text { font-size: 14.5px; color: var(--muted); margin: 6px 0 22px; }

/* ---------- mobile nav ---------- */

.vm-mnav__hero {
	display: flex;
	flex-direction: column;
	gap: 2px;
	position: relative;
	padding: 18px 20px;
	border-radius: var(--r-md);
	background: linear-gradient(120deg, var(--ink-surface), #2b241c);
	color: #fff;
	margin-bottom: 26px;
}
.vm-mnav__hero span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.vm-mnav__hero strong { font-size: 18px; font-weight: 600; }
.vm-mnav__hero .vm-icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gold-2); }

.vm-mnav__label {
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted-2);
	font-weight: 600;
	margin: 24px 0 8px;
}
.vm-mnav__label:first-child { margin-top: 0; }

.vm-mnav__list li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 0;
	border-bottom: 1px solid var(--line);
	font-size: 16px;
}
.vm-mnav__list li a em { font-style: normal; font-size: 12px; color: var(--muted-2); }
.vm-mnav__list li a .vm-icon { margin-left: auto; color: var(--muted-2); }
.vm-mnav__list--plain li a { font-size: 15px; color: var(--ink-2); }

.vm-mnav__foot { display: grid; gap: 12px; }
.vm-mnav__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	font-size: 12.5px;
	color: var(--muted);
}
.vm-mnav__note .vm-icon { color: var(--green); }

/* ---------- footer ---------- */

.vm-signup {
	background: linear-gradient(135deg, #1b1712 0%, #241d15 55%, #2e2317 100%);
	color: #f2ece3;
	padding: clamp(44px, 6vw, 72px) 0;
}
.vm-signup__inner {
	display: grid;
	gap: 28px;
	align-items: center;
}
@media (min-width: 900px) { .vm-signup__inner { grid-template-columns: 1.1fr 1fr; gap: 56px; } }

.vm-signup__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(26px, 4vw, 38px);
	line-height: 1.12;
}
.vm-signup__text { color: #b9ada0; margin-top: 10px; font-size: 15px; }

.vm-signup__form { display: flex; gap: 10px; flex-wrap: wrap; }
.vm-signup__form input[type="email"] {
	flex: 1 1 220px;
	min-width: 0;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--r-pill);
	padding: 14px 20px;
	color: #fff;
	outline: none;
	transition: border-color var(--t-fast), background var(--t-fast);
}
.vm-signup__form input[type="email"]::placeholder { color: #8d8377; }
.vm-signup__form input[type="email"]:focus { border-color: var(--gold-2); background: rgba(255, 255, 255, .1); }

.vm-footer {
	background: var(--ink-surface);
	color: #cdc4b9;
	padding: clamp(48px, 6vw, 72px) 0 28px;
	font-size: 14.5px;
}

.vm-footer__grid {
	display: grid;
	gap: 40px;
	grid-template-columns: 1fr;
}
@media (min-width: 640px) { .vm-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .vm-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; } }

.vm-footer__blurb { margin: 18px 0 20px; max-width: 34ch; color: #9b9188; line-height: 1.65; }

.vm-footer__social { display: flex; gap: 8px; }
.vm-footer__social a {
	width: 40px; height: 40px;
	display: grid; place-items: center;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 50%;
	transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.vm-footer__social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.vm-footer__col h3 {
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 16px;
	font-weight: 600;
}
.vm-footer__col ul li + li { margin-top: 9px; }
.vm-footer__col ul li a, .vm-footer__col ul li span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #9b9188;
	transition: color var(--t-fast);
}
.vm-footer__col ul li a:hover { color: #fff; }

.vm-footer__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.vm-badge-soft {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 13px;
	border-radius: var(--r-pill);
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .1);
	font-size: 12.5px;
	color: #cdc4b9;
}

.vm-footer__bottom {
	margin-top: 44px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	color: #7f766d;
}
.vm-footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.vm-footer__legal a:hover { color: #fff; }
