.category-top10-header {
   display: flex;
   align-items: center;
   justify-content: center;
   min-height: 270px;
   margin-bottom: 30px;
   overflow: hidden;
   position: relative;

   img {
      position: absolute;
   }

   > div {
      position: relative;
      z-index: 1;
      text-align: center;
      padding: 20px 40px;

      * {
         color: $white;
      }
   }

}

.catalog-row-top10 {
   display: flex;
   flex-wrap: wrap;
}

.catalog-top10 {
   margin-bottom: $grid-gutter-width;
   padding: 20px;
   border: 1px solid $border-color;
   border-radius: $border-radius-base;
   height: calc(100% - $grid-gutter-width);

   .flags {
      left: unset;
      right: 20px;
   }

   .catalog-content {
      padding: 0 10px;

      .d-flex {
         display: flex;
         justify-content: space-between;

         > div:first-child {
            width: 60%;
         }
      }

      .producer {
         font-size: $font-size-h2;
         line-height: $line-height-md;
      }

      .title {
         font-size: $font-size-h3;
         font-weight: $font-weight-bold;
         height: 51px;
         line-height: $line-height-md;
      }

      .perex {
         font-size: $font-size-base;
      }

      a:hover {
         .title {
            text-decoration: underline;
         }
      }
   }

   .availability {
      p {
         &:first-child {
            margin-right: 15px;
         }

         + p {
            display: block;
         }
      }

      strong {
         white-space: nowrap;
      }
   }

   .catalog-flags {
      .flag {
         float: right;
      }
   }

   .catalog-btn {
      padding: 15px 0;
   }

   @include haf {
      .title {
         text-decoration: none;
      }
   }
}

.catalog-top10-gallery {
   display: flex;
   margin-bottom: 10px;

   .img {
      padding: 10px;
   }

   .main-image {
      width: calc(100% - 125px);

      img {
         width: auto;
         max-height: 360px;
      }
   }

   .gallery {
      order: -1;
      padding-right: 10px;

      .img {
         display: flex;
         align-items: center;
         justify-content: center;
         aspect-ratio: 1;
         width: 115px;
         margin-bottom: $grid-gutter-width;
         border: 1px solid $border-color;
         border-radius: $border-radius-base;
      }
   }
}

@media screen and (min-width: $md) and (max-width: $xxl - 1),
   screen and (max-width: 639px) {
   .catalog-top10 {
      .availability {
         flex-direction: column;
         align-items: flex-start;
      }
   }
}

@media screen and (max-width: $xs - 1) {
   .catalog-top10 {
      padding: 10px;

      .catalog-content {
         .d-flex {
            display: block;

            > div:first-child {
               width: 100%;
            }
         }
      }
   }

   .catalog-top10-gallery {
      .main-image {
         width: calc(100% - 80px);
      }

      .gallery {
         .img {
            width: 70px;
         }
      }
   }
}
