/*
--------------------------------------
layout
--------------------------------------
*/
.main-header {
	display               : grid;
	grid-template-columns : var(--container-primary-margin) auto auto 1fr auto var(--container-primary-margin);
  grid-template-rows: 70px auto;
	align-items           : center;
  border-bottom: 1px solid #E7E7E7;
}

.header-bg {
    grid-column : 1/-1;
    grid-row    : 1;
    align-self  : stretch;
    background  : white;
    z-index     : 4;
}

.main-header > :not(.header-bg) {
	z-index : 5;
}

.main-header .header-nav {
	z-index : 10;
  grid-row: 1;
}

.header-burger,
.header-logo,
.header-actions{
	grid-row : 1;
}

.header-search {
	grid-column : 2/-2;
  grid-row: 2;
}

.header-burger {
	grid-column : 2;
}

.header-logo {
	grid-column : 3;
  display: flex;
  align-items: center;
  margin-right: 25px;
}

.header-logo a>*{
  max-width: 150px;
}

.header-actions {
	grid-column : 5;
    align-self  : stretch;
}

.header-nav {
	z-index    : 5;
	background : transparent;
}

@media (max-width: 767px){
  .header-search{
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    height: 0;
    transition: height 0.3s ease;
  }
  .header-search.active{
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    height: 60px;
    padding: 5px 0 10px;
  }
  .search-toggle{
    padding: 5px;
    cursor: pointer;
  }
  .link-icon .cart-products-count{
    right: 0;
    top: -5px;
  }
  .header-logo a>*{
    max-width: 130px;
  }
}

@media (min-width : 768px) {
  .header-search {
    padding : 7px 25px;
    grid-column : 4;
    grid-row: 1;
  }
  .header-search .search-widget{
    max-width: 305px;
  }
  .search-toggle{
    display: none;
  }
}

@media (min-width : 1200px) {
	body[data-is-desktop="true"] .main-header {
		grid-template-columns : var(--container-secondary-margin) auto auto auto 1fr auto var(--container-secondary-margin);
    grid-template-rows: 85px;
	}

	body[data-is-desktop="true"] .main-header > * {
		grid-row : 1;
	}

	body[data-is-desktop="true"] .header-burger {
		grid-column : 2;
	}

	body[data-is-desktop="true"] .header-logo {
		grid-column : 3;
	}

	body[data-is-desktop="true"] .header-nav {
		grid-column : 4;
	}

	body[data-is-desktop="true"] .header-actions {
		grid-column : 6;
	}

	body[data-is-desktop="true"] .header-burger {
		display : none;
	}

	body[data-is-desktop="true"] .main-header {
		padding-bottom : 0;
		position       : -webkit-sticky;
		position       : sticky;
		top            : 0;

	}

	body[data-is-desktop="true"] .main-header > * {
		padding-top    : 7px;
		padding-bottom : 7px;
    height: 85px;
	}

  .header-search {
    grid-column : 5;
  }


	body[data-is-desktop="true"] .header-nav .bwa-menu__top__wrapper {
		background : transparent;
		border-top : none;
	}
}

@media (max-width: 449px){
  .header-actions > * + *{
    margin-left: 15px;
  }
  .header-logo a>*{
    max-width: 90px;
  }
  .header-burger{
    margin-right: 0;
  }
}

@media (max-width: 367px){
  .header-logo a>*{
    max-width: 70px;
  }
}


/*
--------------------------------------
global
--------------------------------------
*/
.overlay_global {
	left : 0;
}

/*
--------------------------------------
burger
--------------------------------------
*/
.header-burger {
	text-align   : center;
	margin-right : 10px;
}

.header-burger p {
	margin : 0;
}

/*
--------------------------------------
Search
--------------------------------------
*/
.header-search{
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.search-widget {
	width : 100%;
}



.search-widget form {
	position    : relative;
	display     : flex;
	align-items : center;
}

.search-widget input[type=text] {
	border-radius : 30px;
	width         : 100%;
	padding       : 10px 20px 10px 45px;
	color         : var(--color-grey-font-default);
	border        : 1px solid var(--color-bg-search);
	transition    : all .3s ease-out;
  background: var(--color-bg-search);
  font-size: 14px;
}

.search-widget form input[type=text]:focus {
	border-color : var(--color-border-focus-search);
	outline      : none;
}

.search-widget form button[type=submit] {
	position        : absolute;
	left            : 10px;
	height          : 30px;
	display         : flex;
	justify-content : center;
	align-items     : center;
	padding         : 0 5px;
	text-align      : center;
	color           : #fff;
	background      : transparent;
	border-radius   : 100%;
  border: none;
  outline: none;
}

.search-widget form input[type=text]:focus + button .search {
	color : white;
}

@media (min-width : 1200px) {
	.search-widget form input[type=text] {
		min-height : 45px;
	}
}
