.productGallery {
  padding-left: 80px;
  height: 100%;
  max-height: 460px;
}

.productGallery-link {
  height: 100%;
}

.productGallery-slide img {
  height: 100%;
  max-height: 460px;
}

.productGallery.fullwidth {
  padding-left: 0;
}

.productGallery-slider {
  height: 100%;
}

.thumbs-wrapper {
  height: 100%;
  max-height: 460px;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: 25px;
  padding-bottom: 14px;
}

.productGallery-slider .swiper-container {
  height: 100%;
}

.productGallery-thumbs {
  height: 100%;
  padding: 0;
}

#product-slider-thumb {
  height: 100%;
  box-sizing: border-box;
}

#product-slider-thumb .swiper-slide {
  height: 60px;
  padding: 0;
}

#product-slider-thumb .swiper-slide img {
  height: 60px;
  object-fit: contain;
}

.thumbs-slider-navigation {
  height: 100%;
  position: absolute;
  top: 0;
  width: 100%;
  left: 0;
}

#thumb-prev,
#thumb-next {
  width: 100%;
  height: 8px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  cursor: pointer;
  border-radius: 4px;
}

#thumb-next {
  left: 0;
  bottom: 0;
  top: unset;
  right: unset;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

#thumb-prev {
  left: 0;
  top: 25px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 7L6 2L11 7' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

#thumb-prev::after {
  content: none;
}
#thumb-next::after {
  content: none;
}

.product-description {
  border-bottom: none;
}

.product-description-inner {
  min-height: 385px;
  max-height: 385px;
  overflow-y: auto;
  box-sizing: border-box;
  scrollbar-gutter: stable;
  padding: 0;
  margin-bottom: 0;
  border-bottom: 1px solid #e9e9e9;
}

.product-description-inner > *:last-child {
  margin-bottom: 0 !important;
}

.product-description-inner p,
.product-description-inner ul {
  margin: 0;
  line-height: 1.7;
}

.product-right-body {
  /*padding-bottom: 18px;
  margin-bottom: 16px;*/
  padding-bottom: 0;
  margin-bottom: 0;
}

.productPrice-value {
  font-size: 24px;
}

.productPrice-tabs-content .productSub-in {
  display: grid;
  grid-template-columns: 4fr 1fr 1fr 1fr 1fr;
  gap: 30px;
}

.productSub {
  padding: 5px 0;
}

.productDesc {
  margin-top: 30px;
}

.product-subs {
  margin-top: 30px;
}

.product-data.product-price {
  margin-top: 30px;
  border-bottom: none;
}

.product-not-in-store-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 35px;
}

.product-not-in-store-wrap .product-not-in-store {
  padding: 0;
  margin: 0;
  border-bottom: none;
}

@media (max-width: 768px) {
  .productGallery {
    padding-left: 0;
    margin-bottom: 15px;
  }
  .productGallery-slider {
    height: auto;
  }
  .productGallery-slider .swiper-container {
    height: auto;
  }
  .productGallery .swiper-wrapper {
    height: auto;
  }
  .productGallery-thumbs {
    top: 15px;
    left: unset;
    bottom: unset;
    max-height: 62px;
  }
  .thumbs-wrapper {
    padding: 0 15px;
  }
  .thumbs-slider-navigation {
    position: absolute;
  }
  #thumb-prev, #thumb-next {
    width: 8px;
    height: 100%;
  }
  #thumb-next {
    right: 0;
    left: unset;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='12' viewBox='0 0 8 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L1 11' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  }
  #thumb-prev {
    left: 0;
    right: unset;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='12' viewBox='0 0 8 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 1L2 6L7 11' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  }
  .product-description {
    min-height: auto;
    max-height: 100%;
    border-bottom: none;
  }
  .productPrice-tabs-content .productSub-in {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .productSub-item.productSub-head {
    grid-column: 1 / -1;
  }
  .productSub-code {
    text-align: left;
    grid-column: 1;
    order: 1;
  }
  .productSub-product.js-gallery {
    grid-column: 1 / -1;
    display: grid;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    grid-template-columns: 1fr 1fr;
  }
  .productSub-product-picture[href] {
    width: 100%;
    height: 120px;
  }
  .productSub-product-picture img {
    object-fit: contain;
    object-position: left;
  }
  .productSub-item {
    padding-bottom: 5px;
  }
  .productSub-product-title {
    padding: 0;
    margin: 0;
    width: 100%;
  }
  .productSub-item.productSub-price {
    grid-column: 2;
    order: 2;
  }
  .productSub-item.productSub-counter {
    grid-column: 1;
    order: 3;
  }
  .productSub-item.productSub-button {
    grid-column: 2;
    order: 4;
  }
}

/* Бренды на главной */
.sectionBrandsSlider .sectionTitle {
  font-weight: inherit;
}

.brandsSlider {
  min-height: 150px;
}

.brandsSlider-slide {
  width: 16.666%;
  padding: 0 10px;
  box-sizing: border-box;
}

.brandsSlider-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 15px;
  border: 1px solid #e9e9e9;
  box-sizing: border-box;
}

.brandsSlider-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brandsSlider-pagination {
  justify-content: center;
  margin-top: 20px;
  min-height: 12px;
}

@media all and (max-width: 1023px) {
  .brandsSlider-slide {
    width: 25%;
  }
}

@media all and (max-width: 767px) {
  .brandsSlider-slide {
    width: 50%;
  }

  .brandsSlider-link {
    height: 90px;
  }
}

/* Вкладка «Доставка и оплата» в карточке товара */
.productDelivery {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
}

@media all and (max-width: 767px) {
  .productDelivery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* С пятой вкладкой ряд не помещается в 375px: сжимаем отступы, на узких экранах — прокрутка */
  .productDesc .tabs-ui-buttons {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .productDesc .tabs-ui-buttons::-webkit-scrollbar {
    display: none;
  }

  .productDesc .tabs-ui-button {
    margin-right: 12px;
  }

  .productDesc .tabs-ui-button:last-child {
    margin-right: 0;
  }
}
