progress#scroll-progress {
/* 	-webkit-appearance: none;
    appearance: none; */
    position: fixed;
    top: -2px;
    left: 0;
    height: 6px;
    accent-color: var(--accent-color);
/* 	background: transparent; */
    width: 100%;
    z-index: 100000;
	transition: top 0.2s ease;
	will-change: top;
}
progress#scroll-progress[value="0"],
progress#scroll-progress[value="100"]{
	top: -5px;
}
progress#scroll-progress::-webkit-progress-bar { background: transparent; }
progress::-webkit-progress-value { accent-color: var(--accent-color); }


.header {
	display: flex;
    flex-direction: column;
    gap: 10px;
	z-index: 10;
}
.info-header { background-color: var(--black-color); }
.info-header * { 
	transition: color 0.2s ease;
	will-change: color;
}
.info-header .phone { color: var(--white-color); }
.info-header .address:hover *,
.info-header .phone:hover,
.info-header .time:hover * { color: var(--accent-color); }
.info-header__container { padding-block: 5px; }
.info-header__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}
.info-header__content * {
	color: var(--white-color);
	font-style: normal;
}
.phone { 
	white-space: nowrap;
	text-decoration: none;
}
.time {
	display: flex;
	min-width: 177px;
}
.time > span {
	white-space: nowrap;
	display: inline-block;
}

.main-header {
	width: 100%;
	margin-top: 45px;
    position: fixed;
    z-index: 11;
	transition: margin-top 0.1s ease;
	will-change: margin-top;
}
.header .main-header::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -50px 0;
	opacity: 0;
	pointer-events: none;
	background-image: 
		linear-gradient(
			to bottom, 
			rgba(255, 255, 255, 0.8) 60%, 
			rgba(255, 255, 255, 0) 80%
		);
	transition: opacity 0.3s ease;
	will-change: opacity;
}
@supports (color: color-mix(in srgb, white, black)) {
  .header .main-header::before {
    background-image: linear-gradient(
      to bottom,
      color-mix(in srgb, var(--white-color) 80%, transparent) 60%,
      transparent 80%
    );
  }
}
.header.scrolled .main-header::before { opacity: 1; }
.header.scrolled .main-header { margin-top: 20px; }
.main-header__content {
	display: grid;
	grid-template-columns: 115px minmax(min-content, 1fr) minmax(150px, 1fr) 45px 48px;
	align-items: center;
	gap: 20px;
}
.logo-link {
	display: block;
	width: 115px;
	height: 45px;
	object-fit: cover;
}
.logo-link:hover svg path { fill: var(--accent-color) !important; }
.menu {
	height: 55px;
	border-radius: 50px;
	padding: 15px 32px;
	background-color: var(--white-color);
}
.menu-list, .submenu-list {
	list-style: none; 
}
.menu-list {
	display: flex;
	gap: 17px;
	align-items: center;
	justify-content: space-between;
}
.menu-item { position: relative; }
.menu-item:hover > .menu-link { color: var(--accent-color); }
.menu-item > .menu-link { 
	text-transform: lowercase;
	position: relative;
    z-index: 1;
}
.menu-link { 
	display: flex;
    align-items: center;
    gap: 4px;
	color: var(--black-color);
	transition: color 0.2s ease;
	will-change: color;
}
.menu-link svg {}
.submenu-list-wrapper { /* border: 1px solid red; */
	position: absolute;
    top: 45px;
	left: calc(100% - 40px);
	display: flex;
	padding-block: 20px 13px;
	background-color: var(--white-color);
    border-radius: 10px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}
.submenu-list-wrapper::before { /* border: 1px solid blue; */
	content: "";
	position: absolute;
    width: 150px;
    height: 100px;
    top: -45px;
    left: -50px;
}
.submenu-list-wrapper svg { /* border: 1px solid green; */
    width: 21px;
    height: 32px;
	position: absolute;
	top: -25px;
    left: 23px;
}
.submenu-list {
	position: static;
	width: max-content;
	display: flex;
    flex-direction: column;
	padding-right: 100px;
	max-height: 300px;
    overflow-y: auto;
}
.menu-item:has(.submenu-list):hover .submenu-list-wrapper {
	opacity: 1;
	pointer-events: auto;
}
.menu-item:has(.submenu-list):hover .menu-link svg { transform: scale(1, -1); }
.submenu-item {
	position: relative;
    z-index: 1;
}
.submenu-item:hover .menu-link { color: var(--accent-color); }
.submenu-item .menu-link {
	padding: 13px 30px;
	transition: color 0.2s ease;
	will-change: color;
}
header .search { 
 	position: relative;
	display: inline-flex;
    height: 54px;
}
header .search form {
	width: 100%;
	height: 100%;
}
header .search-input {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 50px;
	padding-right: 60px;
	padding-left: 15px;
	font-size: 18px;
	letter-spacing: 1px;
}
header .search-input:focus-visible { outline-color: var(--accent-color); }
header .search svg {
	position: absolute;
	right: 16px;
	top: 50%;
    transform: translateY(-50%);
	transition: 
		width 0.2s ease,
		height 0.2s ease;
	will-change: width, height;
}
header .search:has(.search-input:focus-visible) svg,
header .search:hover svg { 
	width: 30px;
    height: 40px;
	cursor: pointer;
}
header .search svg:hover path { fill: var(--accent-color); }
.like svg {
	width: 44px;
	height: 50px;
}
header .search .search-btn { opacity: 0; }
.like svg:hover path { fill: var(--accent-color); }
.basket { position: relative; }
.basket svg {
	width: 48px;
	height: 50px;
}
.basket svg:hover path { fill: var(--accent-color); }
.burger {
	display: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}
.header .js-cart-count {
	transform: translateY(0.5px);
}


/* MOBILE MENU (offcanvas) */
.mobile-menu {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
}

.mobile-menu__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.45);
	opacity: 0;
	transition: opacity .25s ease;
}

.mobile-menu__panel {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: min(360px, 88vw);
	background: var(--white-color);
	transform: translateX(-100%);
	transition: transform .25s ease;
	box-shadow: 10px 0 40px rgba(0,0,0,0.15);
	display: flex;
	flex-direction: column;
}

.mobile-menu__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 16px;
	border-bottom: 1px solid rgba(0,0,0,0.08);
}

.mobile-menu__logo { display: inline-block; width: 115px; height: 45px; }

.mobile-menu__close {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 10px;
	background: var(--accent-color);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.mobile-menu__list {
	list-style: none;
	margin: 0;
	padding: 10px 0;
	overflow-y: auto;
}

.mobile-menu__item { margin: 0; }

.mobile-menu__link,
.mobile-menu__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px;
	border: 0;
	background: transparent;
	color: var(--black-color);
	text-decoration: none;
	cursor: pointer;
	font-size: 16px;
}

.mobile-menu__link:hover,
.mobile-menu__toggle:hover {
	background: rgba(0,0,0,0.04);
}

.mobile-menu__chev {
	display: inline-block;
	transform: rotate(0deg);
	transition: transform .2s ease;
	font-size: 22px;
	line-height: 1;
	opacity: .7;
}

.mobile-menu__submenu {
	max-height: 0;
	overflow: hidden;
	transition: max-height .25s ease;
	background: rgba(0,0,0,0.02);
}

.mobile-menu__sublink {
	display: block;
	padding: 12px 16px 12px 28px;
	color: var(--black-color);
	text-decoration: none;
	font-size: 15px;
}

.mobile-menu__sublink:hover { background: rgba(0,0,0,0.04); }

.mobile-menu__item.is-open .mobile-menu__submenu { max-height: 800px; }
.mobile-menu__item.is-open .mobile-menu__chev { transform: rotate(90deg); }

.mobile-menu__divider {
	height: 1px;
	background: rgba(0,0,0,0.08);
	margin: 8px 0;
}

/* OPEN STATE */
body.mobile-menu-open .mobile-menu { pointer-events: auto; }
body.mobile-menu-open .mobile-menu__overlay { opacity: 1; }
body.mobile-menu-open .mobile-menu__panel { transform: translateX(0); }
body.mobile-menu-open { overflow: hidden; }




@media screen and (max-width: 1150px) {
	main { 
		--main-offset: 150px;
    	position: relative; 
	}
	.mobile-menu { display: block; }
	.info-header { display: none; }
	.main-header { margin-top: 20px; }

	/* 1) прячем десктопное меню */
	.menu { 
		display: none; 
	}
	
	.header.scrolled .main-header,
	.main-header { margin-top: 10px; }

	/* 2) показываем бургер */
	.burger {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		gap: 6px;

		width: 45px;
		height: 45px;

		border-radius: 10px;
		background-color: var(--accent-color);
		box-shadow: var(--box-shadow, none);
	}

	.burger__line {
		display: block;
		width: 18px;
		height: 2px;
		background: #fff;
		border-radius: 2px;
	}

	/* 3) перестраиваем сетку: 2 строки */
	.main-header__content {
		grid-template-columns: 30px 45px 1fr 45px;
		grid-template-rows: 30px 54px;
		grid-template-areas:
			"logo logo logo logo"
			"like basket search burger";
		gap: 10px;
	}

	/* 4) раскладываем элементы по зонам */
	.logo-link { 
		grid-area: logo;
		justify-self: center;
		align-self: center;
		height: 30px;
	}
	.logo-link svg { height: 30px; }

	.like { 
		grid-area: like;
		justify-self: start;
		align-self: center;
	}

	.basket { 
		grid-area: basket;
		justify-self: start;
		align-self: center;
	}

	header .search { 
		grid-area: search;
		align-self: center;
		width: 100%;
		height: 45px;
	}

	.burger { 
		grid-area: burger;
		justify-self: end;
		align-self: center;
	}

	/* 5) чуть поджать иконки при необходимости */
	.like svg { width: 28px; height: 32px; }
	.basket svg { width: 30px; height: 34px; }

	/* счетчик корзины чтобы не уезжал */
	.header .basket__counter {
        scale: 0.8;
	}
}


@media screen and (max-width: 600px) {
	.hero__description br { display: none; }
	main { --main-offset: 120px; }
}

