.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
	/* background: rgba(255, 255, 255, 0.96); */
	/* backdrop-filter: blur(12px); */
	/* -webkit-backdrop-filter: blur(12px); */
	border-bottom: 1px solid rgba(17, 17, 17, 0.06);
	transition:
		box-shadow 0.25s ease,
		background 0.25s ease;
}

.site-header.active {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.site-header__top {
	border-bottom: 1px solid rgba(17, 17, 17, 0.05);
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	min-height: 72px;
	padding: 0 28px;
}

.site-header__left,
.site-header__center,
.site-header__right {
	min-width: 0;
}

.site-header__left {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.site-header__center {
	display: flex;
	align-items: center;
	justify-content: center;
}

.site-header__right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.logohome a {
	display: inline-flex;
	align-items: center;
}

.logohome svg {
	display: block;
	width: 136px;
	height: auto;
}

.navbar-main {
	padding: 0;
}

.navbar-main .navbar-collapse {
	display: block;
	flex-basis: auto;
	width: 100%;
}

.navbar-main .container-fluid {
	padding: 0;
}

.navbar-main__list {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2px;
}

.navbar-main .nav-item {
	display: flex;
	align-items: center;
}

.navbar-main .nav-item > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 12px;
	border-radius: 999px;
	color: #1d1d1b;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.navbar-main .nav-item > a:hover,
.navbar-main .nav-item > a.active {
	background: rgba(0, 0, 0, 0.045);
	color: #000;
	text-decoration: none;
}

.navbar-main .nav-item > a::before {
	display: none;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 2px;
}

.header-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	color: #1d1d1b;
	text-decoration: none;
	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.header-action:hover {
	background: rgba(0, 0, 0, 0.045);
	color: #000;
	text-decoration: none;
}

.header-action .material-icons {
	font-size: 21px;
	width: 21px;
	height: 21px;
	min-width: 0;
}

.navbar-categories {
	position: relative;
}

.navbar-categories > ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	flex-wrap: wrap;
}

.navbar-categories > ul > li {
	position: relative;
	list-style: none;
}

.navbar-categories > ul > li > a {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	color: #666;
	font-size: 14px;
	font-weight: 450;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.navbar-categories > ul > li > a:hover,
.navbar-categories > ul > li:hover > a,
.navbar-categories > ul > li > a.active {
	background: rgba(0, 0, 0, 0.045);
	color: #000;
	text-decoration: none;
}

.navbar-categories > ul > li > a.is-strong {
	font-weight: 600;
	color: #1d1d1b;
}

/* Remove hover gap */
.dropmenu-nav {
	position: relative;
}

.dropmenu-nav::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 24px;
}

/* Submenu */
.subcategory {
	position: absolute;
	left: 50%;
	top: calc(100% + 16px);
	transform: translateX(-50%) translateY(8px);
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid rgba(17, 17, 17, 0.08);
	border-radius: 20px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease,
		visibility 0.2s ease;
	z-index: 50;
	min-width: max-content;
	white-space: nowrap;
}

.dropmenu-nav:hover .subcategory,
.dropmenu-nav:focus-within .subcategory {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.subcategory__list {
	display: flex;
	align-items: stretch;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	flex-wrap: nowrap;
}

.subcategory__list > li {
	flex: 0 0 auto;
	width: max-content;
	list-style: none;
}

.subcategory__list > li > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 14px;
	color: #1d1d1b;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	width: max-content;
	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.subcategory__list > li > a:hover {
	background: rgba(0, 0, 0, 0.045);
	text-decoration: none;
}

.navbar-toggler {
	display: none;
	border: 0;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.045);
	box-shadow: none !important;
}

.navbar-toggler:focus {
	outline: none;
	box-shadow: none;
}

.main-menu__item-header .navbar-toggler {
	margin-right: 0.5rem;
}

@media (min-width: 1025px) and (max-width: 1199px) {
	.site-header__inner {
		gap: 16px;
		padding: 0 20px;
	}

	.navbar-main__list {
		gap: 0;
	}

	.navbar-main .nav-item > a {
		min-height: 34px;
		padding: 0 10px;
		font-size: 14px;
	}

	.navbar-categories > ul {
		gap: 2px;
		padding: 6px 0;
	}

	.navbar-categories > ul > li > a {
		min-height: 30px;
		padding: 0 10px;
		font-size: 13px;
	}

	.dropmenu-nav::after {
		height: 24px;
	}

	.subcategory {
		top: calc(100% + 12px);
		padding: 12px 14px;
		border-radius: 16px;
	}

	.subcategory__list {
		gap: 6px;
	}

	.subcategory__list > li > a {
		min-height: 38px;
		padding: 0 14px;
		font-size: 13px;
		border-radius: 12px;
	}
}

@media (max-width: 1024px) {
	.site-header__inner {
		grid-template-columns: auto auto;
		justify-content: space-between;
		min-height: 64px;
		padding: 0 12px;
	}

	.site-header__center {
		order: 3;
		grid-column: 1 / -1;
		display: none;
	}

	.navbar-toggler {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
	}

	.navbar-main .navbar-collapse {
		display: none;
		margin-top: 12px;
		padding: 14px;
		background: #fff;
		border: 1px solid rgba(17, 17, 17, 0.08);
		border-radius: 18px;
		box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
	}

	.navbar-main .navbar-collapse.show {
		display: block;
	}

	.navbar-main__list {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}

	.navbar-main .nav-item > a {
		justify-content: flex-start;
		width: 100%;
		min-height: 42px;
		border-radius: 12px;
	}

	.site-header__bottom {
		display: none;
	}

	.logohome svg {
		width: 124px;
	}

	.cart-action--desktop {
		display: none !important;
	}

	.cart-action--mobile {
		display: inline-flex !important;
	}
}

/* Cart blockcart */
.blockcart.cart-preview {
	position: relative;
}

.header-action.cart-action {
	position: relative;
}

.cart-action--desktop {
	display: inline-flex;
}

.cart-action--mobile {
	display: none;
}

.cart-badge {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 16px;
	height: 16px;
	padding: 0 3px;
	border-radius: 999px;
	background: #e5007e;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	pointer-events: none;
}

.blockcart__dropdown.cart-dropdown {
	min-width: 360px;
	border-radius: 20px;
	border: 1px solid rgba(17, 17, 17, 0.08);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
	margin-top: 8px;
}

.cart-dropdown .cart-loader {
	text-align: center;
	padding: 1rem 0;
}

.cart-dropdown .cart-dropdown__close {
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
	color: #999;
}

.cart-dropdown .cart-dropdown__close:hover {
	color: #000;
}

.cart-summary-line.cart-total {
	display: flex;
	justify-content: space-between;
	font-weight: 600;
	padding-top: 0.75rem;
}

.navbar .navbar-nav {
	flex-direction: row;
}

.header-top .container {
	max-width: none !important;
}

.header-top__block--search .search-toggler {
	display: none !important;
}

.header-top__search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
	z-index: 999;
}

@media (min-width: 768px) {
	.header-top__block--menu-toggle {
		display: block !important;
	}
	.header-top .header-top__row {
		flex-wrap: nowrap;
	}

	.header-actions {
		gap: 6px;
	}

	.header-top__block--search.active {
		margin-bottom: 0 !important;
		height: 0px !important;
	}

	#_desktop_search_from .search-result {
		padding: 0 12px;
	}
}

@media (min-width: 992px) {
	#_desktop_search_from .js-search-result {
		position: relative;
		margin-top: 0.5rem;
		border: none;
	}
}

@media (min-width: 1025px) {
	.header-top__block--menu-toggle {
		display: none !important;
	}

	.header-top__row {
		flex-direction: column;
	}
}

#_desktop_search_from .search-form {
	margin: 0 auto;
	max-width: 50rem;

	padding: 1.5rem;
	background: #ffff;
	margin-top: 1rem;
	border-radius: 24px;
	border: 1px solid var(--border);
	box-shadow: 0 2px 16px rgb(0, 0, 0, 0.15);
}

#_desktop_search_from .search-form__input {
	border-radius: 8px;
	background-color: #f9f9f9;
}
#_desktop_search_from .search-form__input:focus {
	border-color: var(--primary);
}

#_desktop_search_from .search-result__bottom {
	bottom: 0.25rem;
}
