/* Chrome — preview notice, header, navigation, footer. */

.preview-bar {
	margin: 0;
	max-width: none;
	padding: 6px var(--gutter);
	background: var(--sand-light);
	color: var(--slate-dark);
	font-size: 0.8125rem;
	text-align: center;
}

/* Brand row */

.site-header {
	background: var(--slate);
	color: #fff;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--s5);
	min-height: 5rem;
}

.site-logo {
	display: flex;
	align-items: center;
	flex: none;
	color: #fff;
	text-decoration: none;
}

.site-logo:hover {
	color: #fff;
}

.site-logo__img {
	max-height: 3.5rem;
	width: auto;
}

.site-logo__text {
	display: grid;
	justify-items: center;
	gap: 2px;
	color: #fff;
	font-family: var(--font-body);
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
}

.site-logo__text span:first-child {
	font-size: 1.5rem;
	letter-spacing: 0.06em;
}

.site-logo__text span:last-child {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.32em;
}

.site-search {
	display: flex;
	flex: 1;
	max-width: 30rem;
	margin-inline: auto;
}

.site-search input[type="search"] {
	min-height: 2.75rem;
	padding: 0 var(--s4);
	border: 0;
	border-radius: var(--r-btn) 0 0 var(--r-btn);
	color: var(--text);
	font-size: 0.9375rem;
}

.site-search button {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.75rem;
	border: 0;
	border-radius: 0 var(--r-btn) var(--r-btn) 0;
	background: var(--sand);
	color: var(--slate-dark);
	cursor: pointer;
}

.site-search button:hover {
	background: var(--sand-light);
}

.site-search button .icon {
	width: 1.25rem;
	height: 1.25rem;
}

.site-header__actions {
	display: flex;
	align-items: center;
	flex: none;
	gap: var(--s4);
}

.site-header__phone {
	display: inline-flex;
	align-items: center;
	gap: var(--s2);
	color: #fff;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

a.site-header__phone:hover {
	color: #fff;
	text-decoration: underline;
}

.site-header__phone .icon {
	width: 1.125rem;
	height: 1.125rem;
}

/* Ex. VAT / Inc. VAT */

.vat-toggle {
	display: inline-flex;
	padding: 2px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	font-size: 0.8125rem;
	font-weight: 500;
	white-space: nowrap;
}

.vat-toggle__opt {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	padding: 0 var(--s3);
	border-radius: 999px;
	color: #fff;
	text-decoration: none;
}

.vat-toggle__opt:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
}

.vat-toggle__opt.is-on,
.vat-toggle__opt.is-on:hover {
	background: #fff;
	color: var(--slate-dark);
}

.icon-link {
	position: relative;
	display: grid;
	place-items: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	color: #fff;
}

.icon-link:hover {
	color: var(--sand);
}

.icon-link .icon {
	width: 1.75rem;
	height: 1.75rem;
	stroke-width: 1.5;
}

.basket-link__count {
	position: absolute;
	top: 0.25rem;
	right: 0;
	display: grid;
	place-items: center;
	min-width: 1.125rem;
	height: 1.125rem;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--sand);
	color: var(--slate-dark);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1;
}

.nav-burger {
	display: none;
	min-width: 2.75rem;
	min-height: 2.75rem;
	place-items: center;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
}

.nav-burger .icon {
	width: 1.75rem;
	height: 1.75rem;
}

.nav-burger__close {
	display: none;
}

/* Slide-out controls only exist on mobile. */

.nav-overlay,
.nav-head {
	display: none;
}

/* Navigation row: white, a hairline underneath, the only sticky part. */

.nav-bar {
	position: sticky;
	top: 0;
	z-index: 60;
	border-bottom: 1px solid var(--rule);
	background: var(--paper);
}

.nav-bar__inner {
	display: flex;
	align-items: center;
	min-height: 3rem;
}

.nav-bar__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--s6);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-bar__list > li {
	position: relative;
	display: flex;
	align-items: center;
}

.nav-bar__list > li > a {
	display: block;
	padding-block: var(--s3);
	border-bottom: 3px solid transparent;
	color: var(--slate-dark);
	font-weight: 500;
	text-decoration: none;
}

.nav-bar__list > li > a:hover,
.nav-bar__list > .current-menu-item > a,
.nav-bar__list > .current-menu-ancestor > a {
	border-bottom-color: var(--sand);
}

.mega-toggle {
	display: grid;
	place-items: center;
	min-width: 1.75rem;
	min-height: 2.75rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--slate-dark);
	cursor: pointer;
}

.mega-toggle .icon {
	width: 1.125rem;
	height: 1.125rem;
	stroke-width: 2;
	transition: transform 150ms ease;
}

.mega-toggle[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

/* Dropdown: the category's products in a plain list. */

.mega {
	position: absolute;
	top: 100%;
	left: -1rem;
	z-index: 70;
	min-width: 26rem;
}

.mega[hidden] {
	display: none;
}

@media (hover: hover) and (min-width: 961px) {
	.has-mega:hover > .mega {
		display: block;
	}
}

.mega__inner {
	padding: var(--s3) var(--s6) var(--s5);
	border: 1px solid var(--rule);
	border-top: 0;
	border-radius: 0 0 var(--r-card) var(--r-card);
	background: var(--paper);
	box-shadow: 0 10px 24px rgba(31, 37, 45, 0.12);
}

/* The category name is already the menu item; don't repeat it. */
.mega__title {
	display: none;
}

.mega__list {
	margin: 0 0 var(--s4);
	padding: 0;
	list-style: none;
}

.mega__list a {
	display: flex;
	justify-content: space-between;
	gap: var(--s5);
	min-height: 3.25rem;
	align-items: center;
	padding-block: var(--s3);
	border-bottom: 1px solid var(--rule);
	color: var(--text);
	font-size: 0.9375rem;
	line-height: 1.4;
	text-decoration: none;
}

.mega__list a:hover .mega__name {
	text-decoration: underline;
}

.mega__price {
	color: var(--text-2);
	font-size: 0.8125rem;
	white-space: nowrap;
}

.mega__all {
	display: inline-block;
	padding-block: var(--s2);
	color: var(--slate-dark);
	font-weight: 500;
	font-size: 0.9375rem;
}

/* Footer */

.site-footer {
	background: var(--slate-dark);
	color: #d9dce1;
	font-size: 0.9375rem;
}

.site-footer__cols {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.4fr;
	gap: var(--s6);
	padding-block: var(--s8) var(--s7);
}

.site-footer__brand,
.site-footer__heading {
	margin: 0 0 var(--s3);
	color: #fff;
	font-family: var(--font-head);
	font-size: 1.375rem;
	font-weight: 600;
}

.site-footer__brand {
	font-size: 1.75rem;
}

.site-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__list li {
	padding-block: 3px;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--sand);
	text-decoration: underline;
}

.site-footer__credit {
	display: block;
	margin-top: var(--s1);
}

.site-footer__legal a {
	text-decoration: underline;
}

.site-footer__legal {
	margin: 0;
	max-width: none;
	padding: var(--s4) var(--gutter);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: #b4b9c1;
	font-size: 0.8125rem;
	text-align: center;
}

/* Tablet and mobile */

@media (max-width: 1100px) {
	.site-header__phone span {
		display: none;
	}

	.site-header__phone {
		min-width: 2.75rem;
		min-height: 2.75rem;
		justify-content: center;
	}

	.site-header__phone .icon {
		width: 1.5rem;
		height: 1.5rem;
	}
}

@media (max-width: 960px) {
	.site-header__inner {
		flex-wrap: wrap;
		gap: var(--s3) var(--s4);
		min-height: 0;
		padding-block: var(--s3);
	}

	.site-logo__img {
		max-height: 2.75rem;
	}

	.site-logo__text span:first-child {
		font-size: 1.25rem;
	}

	.site-logo__text span:last-child {
		font-size: 0.6875rem;
	}

	.site-header__actions {
		margin-left: auto;
		gap: var(--s2);
	}

	/* Search drops to its own full-width row under the logo. */
	.site-search {
		order: 3;
		flex-basis: 100%;
		max-width: none;
	}

	.nav-burger {
		display: grid;
	}

	.nav-burger[aria-expanded="true"] .nav-burger__open {
		display: none;
	}

	.nav-burger[aria-expanded="true"] .nav-burger__close {
		display: block;
	}

	/* Slide-out panel from the right, with a dimmed overlay behind it. */
	.nav-bar {
		position: fixed;
		inset: 0 0 0 auto;
		z-index: 100;
		width: min(21rem, 88vw);
		overflow-y: auto;
		overscroll-behavior: contain;
		border-bottom: 0;
		box-shadow: -12px 0 32px rgba(31, 37, 45, 0.2);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 250ms var(--ease-out), visibility 0s linear 250ms;
	}

	.nav-bar.is-open {
		transform: none;
		visibility: visible;
		transition-delay: 0s;
	}

	.nav-overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 90;
		background: rgba(31, 37, 45, 0.55);
		opacity: 0;
		visibility: hidden;
		transition: opacity 250ms ease, visibility 0s linear 250ms;
	}

	.nav-overlay.is-open {
		opacity: 1;
		visibility: visible;
		transition-delay: 0s;
	}

	/* Logo and close button on a slate band, like the header. */
	.nav-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--s4);
		padding: var(--s3) var(--s3) var(--s3) var(--gutter);
		background: var(--slate);
	}

	.nav-close {
		display: grid;
		place-items: center;
		min-width: 2.75rem;
		min-height: 2.75rem;
		padding: 0;
		border: 0;
		background: none;
		color: #fff;
		cursor: pointer;
	}

	.nav-close .icon {
		width: 1.75rem;
		height: 1.75rem;
	}

	.nav-bar__inner {
		padding-block: var(--s2);
	}

	.nav-bar__list {
		flex-direction: column;
		flex: 1;
		gap: 0;
	}

	.nav-bar__list > li {
		flex-wrap: wrap;
		justify-content: space-between;
		border-bottom: 1px solid var(--rule);
	}

	.nav-bar__list > li > a {
		flex: 1;
		padding-block: var(--s3);
		border-bottom: 0;
	}

	.mega-toggle {
		min-width: 2.75rem;
	}

	.mega {
		position: static;
		flex-basis: 100%;
		min-width: 0;
	}

	.mega__inner {
		padding: 0 0 var(--s3) var(--s4);
		border: 0;
		box-shadow: none;
	}

	.site-footer__cols {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__about {
		grid-column: 1 / -1;
	}
}

@media (max-width: 480px) {
	.vat-toggle__opt {
		padding: 0 var(--s2);
	}

	.site-footer__cols {
		grid-template-columns: 1fr;
	}
}
