.index-desktop-categories {
   display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   flex-wrap: nowrap;
   margin-bottom: 60px;
   width: 100%;
}
.index-desktop-categories .current-category {
   -ms-flex: 1 0 20%;
   flex: 1 0 20;
   max-width: 20%;
   flex-wrap: wrap;
   padding: 0 10px 0 10px;
   background: #fff;
   position: relative;
   height: 485px;
   overflow: hidden;
}

.product-grid-wrapper .current-model {
   flex: 1 0 25%;
   max-width: 25%;
   margin: 0 15px;
   position: relative;
   -webkit-box-sizing: border-box;
   box-sizing: border-box;
   transition: all 0.4s ease;
   z-index: 1;
   overflow: hidden;
}

.category-slider {
   display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   flex-wrap: nowrap;
   width: 100%;
}

.category-slider p.model {
   text-align: center;
   font-weight: bold;
   font-size: 21px;
   margin-top: 10px;
   text-transform: uppercase;
   color: #585858;
}

.category-slider .button-group {
   top: 70%;
}

.corousel-header h2 {
   text-transform: uppercase;
}

.corousel-header {
   margin-bottom: 15px;
}

.from-to-categories {
   text-align: right;
   font-size: 26px;
   font-weight: 300;
   margin-bottom: 20px;
}

.left-cat,
.right-cat {
   cursor: pointer;
}

.index-desktop-categories .category-label {
   position: absolute;
   bottom: 75px;
   left: 50%;
   transform: translateX(-50%);
   color: white;
   font-size: 24px;
   text-transform: uppercase;
   width: 100%;
   text-align: center;
   opacity: 70%;
}

@media (min-width: 992px) and (max-width: 1799.98px) {
   .index-desktop-categories .button-line a {
      width: 150px;
      height: 45px;
   }
}

.index-desktop-categories .button-line a {
   text-transform: none;
   width: 180px;
   height: 40px;
   background-color: rgba(255, 255, 255, 0.4);
   justify-content: center;
   text-align: center;
   color: #fff;
   text-decoration: none;
   position: relative;
}

.index-desktop-categories .button-line {
   font-size: 14px;
   line-height: 15px;
   border: 2px solid #fff;
   position: absolute;
   bottom: 40px;
   left: 50%;
   transform: translateX(-50%);
}

.banner-grid-category {
   display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   margin-top: 70px;
}
.banner-category {
   -ms-flex: 1 0 20%;
   flex: 1 0 20%;
   max-width: 20%;
   height: auto;
   position: relative;
}
.banner-category img {
   width: 100%;
   max-height: 470px;
   object-fit: cover;
   height: 100%;
}
.banner-category a {
   display: inline-block;
   vertical-align: top;
   width: 100%;
   line-height: 0px;
   height: 100%;
}
.banner-category a:hover:before,
.banner-category a:hover:after {
   opacity: 1;
   width: 100%;
}
.banner-category a:after {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: rgba(0, 0, 0, 0.5);
   opacity: 0;
}

.models-block {
   margin-top: 20px;
}
.models-block .product-carousel.product-grid {
   margin-bottom: 0px;
}
.models-block .category-slider {
   display: flex;
   flex-wrap: nowrap;
}
.models-block .category-slider .product-card {
   margin-bottom: 10px;
}
.models-block .product-card .product-image {
   overflow: hidden;
   border-radius: 10px;
}
.models-block .product-card .product-image .product-link {
   display: block;
}
.models-block .product-card .product-image img {
   width: 100%;
   height: 100%;
   object-fit: contain;
}
.models-block .product-card .model {
   font-weight: 400;
   font-size: 18px;
}

@media (max-width: 991.98px) {
   .index-desktop-categories .current-category {
      max-width: 100%;
      flex-wrap: wrap;
      padding: 0 15px;
      margin: 0 0 15px 0;
      background: #fff;
      position: relative;
      height: 280px;
      overflow: hidden;
   }
   .index-desktop-categories {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      flex-wrap: wrap;
      margin-bottom: 40px;
      width: 100%;
   }
   .category-slider p.model {
      font-size: 18px;
      margin-bottom: 5px;
   }
   .from-to-categories {
      display: none;
   }
   .corousel-header {
      margin-bottom: 0px;
   }
   .second-banner,
   .banner-grid-category {
      display: none;
   }
}

@media (max-width: 991.98px) {
   .models-block {
      width: 100vw;
      margin-left: calc(-50vw + 50%);
      margin-right: calc(-50vw + 50%);
      padding: 0 12px;
      box-sizing: border-box;
   }
   .models-block .product-carousel.product-grid {
      margin-bottom: 30px;
      column-gap: 0;
      row-gap: 0;
   }
   .models-block .category-slider {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: 4px;
      row-gap: 8px;
      width: 100%;
   }
   .models-block .category-slider .product-card {
      width: 100%;
      max-width: 100%;
      margin: 0;
      margin-bottom: 0px;
      padding: 6px 0 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
   }
   .models-block .product-card .product-image {
      width: 92%;
      margin: 0 auto 2px;
   }
   .models-block .product-card .product-image .product-link {
      padding-bottom: 110% !important;
   }
   .models-block .product-card .model {
      font-size: 16px;
      font-weight: 600;
      color: #1c1c1c;
      letter-spacing: 0.5px;
      margin: 2px 0 0;
   }
}

@media (min-width: 992px) {
   .desktop-banner {
      display: flex !important;
   }
}

@media (max-width: 539.98px) {
   .home-banner {
      margin-bottom: 50px;
   }
   .banner-grid-category {
      margin-top: 70px;
   }
}
