/* E16 — compact sticky header, scroll-top, mobile gutters */

.site-header.is-compact {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 200;
	background: #131313 !important;
}

.site-header.is-compact .header-navbar {
	background: #131313 !important;
	padding-top: 8px !important;
	padding-bottom: 8px !important;
	align-items: center !important;
	min-height: 56px;
	box-sizing: border-box;
}

.site-header.is-compact .header-navbar__middle {
	top: 50% !important;
	transform: translate(-50%, -50%) !important;
	width: auto;
	height: auto;
}

.site-header.is-compact .header-logo img {
	display: block;
	height: 28px;
	width: auto;
}

.site-header.is-compact .burger_button {
	width: 40px;
	height: 40px;
}

.site-header.is-compact .burger_button svg {
	width: 18px;
	height: auto;
}

.site-header.is-compact .header-cart__count {
	min-width: 28px;
	min-height: 28px;
	font-size: 16px !important;
}

/* Hide page-hero blocks inside header while compact (keep bar thin) */
.site-header.is-compact .header-hero,
.site-header.is-compact .header-hero--title,
.site-header.is-compact .header-hero--large,
.site-header.is-compact .header-hero--medium {
	display: none !important;
}

/* Desktop (≥1280): collapse tall nav into burger + mobile drawer */
@media (min-width: 1280px) {
	.site-header.is-compact .header-burger {
		display: block !important;
	}

	.site-header.is-compact .header-navbar__start .header-navbar__menu {
		display: none !important;
	}

	.site-header.is-compact .header-navbar__end .become-partner,
	.site-header.is-compact .header-navbar__end > .header-navbar__menu {
		display: none !important;
	}

	.site-header.is-compact .mobile-menu {
		display: flex !important;
		height: calc(100dvh - 56px);
	}
}

#to-top {
	position: fixed;
	right: 20px;
	bottom: 24px;
	z-index: 90;
	width: 48px;
	height: 48px;
	border: 1px solid #454545;
	border-radius: 50%;
	background: #efefef;
	color: #131313;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 5px 21px rgba(239, 239, 239, 0.35);
}

#to-top.is-visible {
	display: inline-flex;
}

#to-top:hover {
	background: #ffffff;
}

#to-top svg {
	display: block;
}

@media (max-width: 767px) {
	#to-top {
		right: 16px;
		bottom: 88px;
	}

	.products .hp-listings,
	.products__list,
	.hp-page__content .hp-listings {
		padding-left: 16px;
		padding-right: 16px;
		box-sizing: border-box;
	}

	.products .row {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}
