@import url('https://fonts.googleapis.com/css2?family=BIZ+UDMincho&display=swap');

 * {
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
}

body {
    background-color: #F2F0EC;
    height: 2000px;
}

header {
    text-align: center;
    padding: 10px;
    font-size: 28px;
    letter-spacing: 5px;
    background-color: #BCBCBC;
    font-weight: bold;      
}

span {
    font-size: 1.5em;
    font-family: "BIZ UDMincho", serif;
    color: #132337;
    font-weight: bold;
}

#hidmenu {
    display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  height: 30px;
  
  /*gap: 20px;  Расстояние между элементами */
  /*padding: 10px 20px;*/
  
}

.poisk {
  display: flex;
  align-items: center;
  margin-left: 5%;
}

.poisk a {
  margin: 0;
  margin-left: 5px;
  padding: 0;
}

.poisk input[type="text"] {
  padding: 0;
  font-size: 1.2em;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-left: 15%;
}

.i {
  margin-left: 10px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
}

#icon {
  display: flex;
  align-items: center;
  margin-right: 5%;
}

#icon>a {
    padding: 20px;
}

#numer {
    display: flex;
  align-items: center;
}

#numer>a {
    margin-right: 0;
}

nav {
    background: linear-gradient(#8A8A89, #F0EFEE);
    width: 100%;
    padding: 7px 0;
    float: left;
    text-align: center;
    display: inline;
}

 a {
    color: #050505;
    font-size: 1.5em;
    margin-left: 10px;
    padding: 30px 50px;
    text-decoration: none;
}

 a:hover {
    color: #132337;
}

nav a:first-child {
    margin-left: 0;
    padding-left: 15px;
}

.imgmenu {
    max-width: 90%;
    height: 288px;
    margin-top: 30px;
    background-image: url('/images/baner.jpg');
    
    margin-left: 5%;
}

.imgmenu:hover {
    background-image: url('/images/bbaner.png');
}

.i {
    font-size: 1.3em;
    color: #050505;
   
}

.i:hover {
    color: #132337;
}



nav input {
    margin-left: 15px;
    font-size: 1.2em;
    border-radius: 7px;
}



#menushow {
    display: inline;
    font-size: 1.4em;
    margin-left: 20px;
    margin-top: 4px;
    float: left;
    cursor: pointer;
}

#mobilemenu {
    display: none;
    width: 100%;
    float: left;
    margin-left: 10px;
}

@media (min-width: 785px){
    #menushow {
        display: none;
        visibility: hidden;
    }
}

@media (max-width: 784px) {
    #hidmenu {
      display: none;
      visibility: hidden;  
    }
    .imgmenu {
        display: none;
        visibility: hidden;
    }
    #menu {
       display: none;
        visibility: hidden;
    }
    h2 {
      font-size: 0.7em;
    }

  .catalog {
    flex-direction: column;
    align-items: center;
  }

  .product {
    width: 90%;
    max-width: 360px;
    display: block !important; /* обязательно для скрытых по умолчанию .product */
  }

  .product img {
    height: auto;
    max-height: 200px;
  }

  .korzina {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 5px;
  }

/* Картинка */
.product img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

/* Кнопка */
.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #132337;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  background-color: #444;
}

/* Корзина и иконки */
/*.korzina {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}*/

.korzina a {
  color: #333;
  font-size: 1.2em;
}

.korzina a:hover {
  color: #132337;
}
    
 #foot {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  #footer_name,
  #leftmenu,
  #rightmenu,
  #foootcontact {
    width: 100%;
    margin: 0 auto;
    margin-top: 20px;
    padding: 0 15px;
  }

  #foootcontact {
    margin-top: 0;
    margin-left: 0;
  }

  #rightmenu {
    margin-right: 0;
  }

  li {
    font-size: 14px;
    margin-bottom: 10px;
  }

  h2 a {
    font-size: 18px;
  }

  #dan {
    margin: 20px 10px;
    text-align: center;
    font-size: 12px;
  }
}

.fixed {
   
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0.97;
  z-index: 9999;
  background: linear-gradient(#8A8A89, #F0EFEE);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menutext {
    margin-left: 10px;
    display: inline;
}

.fixed:hover {
    opacity: 1;
}

.divan {
    display: inline-block;
    border-bottom: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    border-top: 1px solid #000;
    margin-top: 10px;
    font-size: medium;
    align-items: center;
}

#menu {
    width: 100%;
    margin-bottom: 30px;
}

#ugol {
    width: 32%;
    margin-left: 1.7%;
}

#ugol>a {
    display: flex;
    justify-content: center;
    padding: 0;
}

#priam {
    width: 32%;
}

#priam>a {
    display: flex;
    justify-content: center;
    padding: 0;
}

#modul {
    width: 32%;
}

#modul>a {
    display: flex;
    justify-content: center;
    padding: 0;
}

#img_menu {
    width: 100%;
}

#img_menu>img {
    margin-top: 40px;
    margin-left: 5%;
    margin-right: 5%;
    width: 1100px;
    height: 350px;
}



.show {
    margin-left: 5%;
    margin-right: 5%;
    box-sizing: border-box;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 22%;
    float: left;
    max-width: 320px;
    border: 1px solid #e3e3e3;
    border-radius: 5px;
}

.show>img {
    height: 212px;
    width: 320px;
    border-radius: 5px;
}

.show>h2 {
    margin: 7px 10%;
    float: left;
    text-align: center;
    width: 100%;
}

#filter {
    font-weight: lighter;
    margin-left: 7%;
}

#popular {
    float: left;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
}

.korzina {
    float: right;
    padding: 0;
    margin: 0;
}

.korzina>a {
    padding: 5px;
}

.korzina>a:hover {
    color: rgb(152, 12, 12);
}

.catalog {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.product img {
  display: block;
  margin-bottom: 4px; /* уменьшает отступ снизу картинки */
}

.product h3 {
   margin-top: 0; 
}

.product {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 300px;
  text-align: center;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  display: none;
}

.product.visible {
  display: block;
}

.product:hover {
  transform: scale(1.03);
}

.product img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
}

.product h3 {
  margin: 10px 0 5px;
}

.product p {
  color: #333;
  margin-bottom: 2px;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #cdcbcb;
  color: #050505;
  text-decoration: none;
  border-radius: 5px;
  border-bottom: 4px solid #BCBCBC;
  font-size: 1em;
}

#but {
    display: flex;
    justify-content: center;
}

#but:hover {    
    margin-top: 2px;
    color: #132337;
    
}

.ese {
    font-size: 1.5em;

}



#popular_ugol {
    margin-top: 40px;
   /* margin-left: 5%;*/
}

#popular_ugol>p {
    margin-top: 20px;
    font-size: 20px;
    color: #1f1f1f;
    margin-right: 5%;
    text-decoration: none;
    margin-left: 5%;
}

#popular_otzov {
    margin-top: 40px;
    /*margin-left: 5%;*/
}

#otzov {
    font-size: 0.7em;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.article {
    float: left;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid #e3e3e3;
    background-color: #fff;
    box-sizing: border-box;
    width: 23%;
    border-radius: 5px;
}


footer {
    width: 100%;
    margin-top: 40px;
    background-color: #BCBCBC;
}

#foot {
    
    display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

#footer_name { 
    width: 25%;
    margin-top: 20px;
    text-align: center;
}


#leftmenu {
    width: 20%;
    margin-top: 20px;
    font-size: 15px;
    padding: 0;
    
}

#rightmenu {
    width: 35%;
    margin-top: 20px;
    margin-left: 0;
    padding: 0;
    font-size: 15px;
    margin-right: 20%;
}

#foootcontact {
    
    margin-right: 0;
    margin-left: 70%;
    margin-top: -370px;

}

.verh {
    font-size: 10px;

}

li {
    list-style-type: none;
    font-weight: lighter;
    margin-top: 10px;
    margin-bottom: 20px;
    text-decoration: underline;
    font-size: 10px;
}

#dan {
    margin-left: 5%;
    margin-right: 20%;
}

.parent {
      position: relative;
      display: inline-block;
      padding: 20px;
      background-color: #132337;
      color: #ccc;
      cursor: pointer;
      font-family: sans-serif;
      border-radius: 35px;
      margin-left: 6%;
}

.child-container {
      position: absolute;
      top: 0;
      left: 100%; /* Появляется справа */
      display: flex; /* Горизонтальная линия */
      gap: 10px;
      opacity: 0;
      pointer-events: none;
      transform: translateX(20px);
      transition: opacity 0.4s ease, transform 0.4s ease;
      z-index: 10;
}

.parent:hover .child-container {
      opacity: 1;
      pointer-events: auto;
      transform: translateX(0);
}

.child {
      padding: 15px 20px;
      background-color: #ecf0f1;
      border: 1px solid #bdc3c7;
      white-space: nowrap;
      transition: background-color 0.3s ease;
      
      border-radius: 35px
}

.child:hover {
      background-color: #dcdde1;
}

.child>a {
        font-size: 1em;
}