 
header {
  grid-area: header;
  display: grid;
  background: #ECEDEF;
  padding: 0px;
  text-align: center;
  grid-template-columns: 1fr 1140px 1fr;
  grid-template-areas:
    ". top .";
     position: sticky;  
    top: 0; 
    gap: 0px;
}
 


#top { 
  grid-area: top;
display:flex;
flex-direction: column;
align-items: flex-start;
height:130px; 
padding-right:15px
}


#top > div:first-child {
width:100%;
padding-top: 25px;
gap: 20px;
display:flex;
justify-content: space-between;
align-items: center;
}

 
#top .logo {
    max-width: 340px;
    height: 50px;
    display:flex;
    align-items: center;
}

/* Контейнер гамбургера с фиксированной высотой и фоном */
#top .gamburger {
  display: flex;
  justify-content: space-between;
    height:45px;
    width:100px;
    background-color: #FFEC00;
    display: flex;
   align-items: center;
   padding: 0 10px;
   border-radius: 8px;;
   cursor: pointer;
   font-weight: 600;
     transition: background-color 0.3s;
}

 #top .gamburger:hover{
    background-color: #dfd769;
 }
 
#top .gamburger img {
    height: 35%;
    width: auto;
    display: block;
    margin: 0 10px 0 0px;
}
 
 
#top .logo img 
 {
    height:50px;
    width:  100%;
    display: block;
}





header .search { 
  display: flex;
  align-items: center;
  max-width: 443px; 
  border: 1px solid #ccc;
  border-radius: 7px;  
  overflow: hidden;  
  background-color: white;
}

header .search-input {
  flex: 1; 
  width:400px;
  border: none;
  padding: 12px 15px;
  font-size: 16px;
  outline: none;
  border-radius: 25px 0 0 25px; 
}

header .search-button {
    background-color: #FFEC00;
  border: none;
  padding: 13px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 6px 6px 0; 
  transition: background-color 0.3s;
}

.search-button svg {
  fill: white;
  width: 16px;
  height: 16px;
}

.search-button:hover {
    background-color: #dfd769;
}



#top .compare,
#top .cart { 
  align-items: center;
  justify-content: center;;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  height: 40px;
  cursor: pointer;
  padding: 0px 10px ;
 
 
  user-select: none;
}

#top .compare img,
#top .cart img {
  margin-top:5px;
  height: 50%;
  width: auto;
  display: block;
}

#top .compare,
#top .cart span{
font-size:12px;
font-weight: 900;
padding:0;
margin:0;
text-decoration: none;
color:#000
}


#top2 {
 width:100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#top2 > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    width:600px;
 
}

#top2 img.ico {
    padding:0 8px 0 5px;
    height:20px;
    width: auto;
    display: block;
}



#top2 >div:first-child a{
   text-decoration: none;
    padding:18px 0;
    align-items: center;
     display:flex;
     font-weight: 100;
}

#top2 a >span.adr{
    font-size: 14px;
    color:#000;
    font-weight:100;  
}

#top2 a >span.phone{
    font-size: 15px;
    color:#000;
    font-weight: 900;;  
}


@media (max-width: 1100px) {
  header {
    grid-area: header;
    display: grid;
    background: #ECEDEF;
    padding: 0px;
    text-align: center;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: "top top top";
    position: sticky;
    top: 0;
    gap: 0px;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
  }

  #top {
    width: 100%;
    box-sizing: border-box;
    padding-right:0
  }

  #top > div:first-child {
    width: 100% !important;
    flex-grow: 1;
    justify-content: space-between !important;
    box-sizing: border-box;
  }

.search input[type="text"] {
  width:99%;
}

header .search {
  flex-grow: 1;       /* растягивается, занимает всё свободное пространство */
  flex-shrink: 1;     /* сжимается при необходимости */
  flex-basis: 0;      /* для правильного распределения */
}


}

@media (max-width:1000px) {
  #top .gamburger span {
  display: none;
  }

  #top .gamburger{
    width:45px;
     padding: 0 0px 0 10px;
  }

#top2 > div:first-child{
  flex-direction: column;
  align-items: start;
  width:330px;
 }
 
 #top2 > div:first-child a{
  padding: 0;
 }

}


@media (max-width: 768px) {
 
  #top > div:first-child {
       padding-top: 5px;
         padding-bottom:5px;
       gap:0;
  }
#top01{
  display:flex;
  justify-content: space-between;
  gap:10px;
  padding:5px 0;
 
   width:99%;
}

header .search{
  max-width: 100%; 
}

header {padding:5px 10px}


header .compare span, header .cart span{
display:none;
}

#top .compare img,
#top .cart img {
 
    margin-top: 0px;
    height: 60%;
 
}
#top .compare
{ 
  padding:0 10px;
  margin-left: auto;
}
 
#top .logo {
    background-color: #FDEA1F;
    border-radius: 7px;;
    max-width: 340px;
    height: 40px;
    width:auto
}
#top .logo img 
 {
    height:auto;
    width:  100%;
    display: block;
}
 
#top2 > div:first-child{
  width:100% !important;
  flex-direction: row;
  align-items:center;
   justify-content: space-between;
 }


header nav#nav {
  width:0
 }

 #top2{
  padding:10px 0 5px 0;
 }

 #top {
  height: auto;
 }

 
#top .gamburger{
display:flex;
align-items: center;
justify-content: center;
padding: 0 0px 0 0px;

}
 #top .gamburger img{

      margin: 0 10px;
 }
}


@media (max-width: 400px) {

#top2 a >span.adr {
font-size: 10px;
}
#top2 a >span.adr, #top2 a >span.phone {
font-size: 12
px;
}
 
 

}