.product-page {
  padding-top: 25px;
  margin-bottom: 37px;
}

.product-block {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 20px 40px;
  margin-bottom: 40px;
  min-width: 0;
  width: 100%;
}

.product-base {
  width: 100%;
}

.product-headmobile {
  width: 100%;
}

/* .product-baseinfo {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 470px;
  min-width: 380px;
} */

.product-baseinfo {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Не уже 280px — иначе текст не читается; если не влазит, flex-wrap переносит блок */
  flex: 1 1 280px;
  min-width: min(100%, 280px);
}

.product-baseinfo .product-head {
  display: none;
}

.product-head {
  width: 100%;
  margin-bottom: 20px;
}

.product-info__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-direction: column;
}

.product-head h1.product-title {
  color: #000;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin-bottom: 18px;
}

.product-baseleft {
  display: flex;
  gap: 40px 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.product-opts {
  display: flex;
  align-items: flex-start;
  gap: 16px 19px;
}
.product-opts > div {
  display: flex;
  align-items: center;
  gap: 16px 19px;
  flex-wrap: wrap;
}

.product-stock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 15px;
  border-radius: 30px;
  background: rgba(128, 165, 132, 0.05);
  color: #636d7a;
  font-size: 14px;
  font-weight: 400;
  line-height: 15px;
}
.product-stock.in-stock {
  position: relative;
}
.product-stock.in-stock::before {
  display: block;
  font-family: "icons";
  content: "\e91e";
  color: #27ae60;
}
.product-stock.no-stock {
  position: relative;  
}
.product-stock.no-stock::before {
  display: block;
  font-family: "icons";
  content: "\e918";
  color: var(--redlight);
}

.product-art {
  color: #000;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.product-rate {
  display: flex;
  align-items: baseline;
}
.product-rate .ratebox {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin-right: 12px;
}
.product-rate .ratebox i.star-gray::before {
  color: #bec2c5;
}
.product-rate .ratenum {
  color: #636d7a;
  font-family: var(--latoFont);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-right: 7px;
  text-decoration: none;
}
.product-rate a.ratenum:hover {
  color: var(--links);
  text-decoration: none;
}

button.product-add-fav {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 30px;
  font-size: 20px;
  padding: 0;
  outline: none;
  flex-shrink: 0;
}
button.product-add-fav i[class*="icon-"] {
  font-size: inherit;
  transition: all 0.12s linear;
}
button.product-add-fav i[class*="icon-"]::before {
  transition: all 0.12s linear;
}
button.product-add-fav:hover i[class*="icon-"],
button.product-add-fav.added i[class*="icon-"] {
  transition: all 0.12s linear;
}
button.product-add-fav:hover i[class*="icon-"]::before,
button.product-add-fav.added i[class*="icon-"]::before {
  content: "\e926";
  color: var(--green);
  transition: all 0.12s linear;
}

.product-gallery {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-sliders {
  width: 100%;
  min-width: 0;
}

/* Позиции макета на карточке товара */
.product-layout-top {
  width: 100%;
  margin-bottom: 24px;
}

.product-layout-left {
  width: 100%;
}

.product-layout-right,
.product-fulldescription > .yooai-pgm {
  width: 100%;
  margin-top: 20px;
}

.product-layout-bottom {
  width: 100%;
  margin-top: 30px;
}

/* Сброс Bootstrap col/hidden-xs из common/column_*.twig — иначе ломают сетку темы */
.product-page aside#column-left,
.product-page aside#column-right {
  float: none;
  width: 100%;
  max-width: none;
  padding: 0;
  display: block !important;
}

.product-thumbs {
  position: relative;
  display: none;
  width: 70px;
  max-width: 70px;
  flex: 0 0 70px;
  max-height: 380px;
  overflow: visible;
}

.product-thumbs .slider-nav {
  position: absolute;
  z-index: 100;
  left: 50%;
  transform: translate(-50%, 0px);
  width: 30px;
  height: 30px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.product-thumbs .slider-nav:hover svg circle {
  fill: var(--links);
}

.product-thumbs .slider-nav:hover svg path {
  filter: invert(1);
}

.product-thumbs .slider-nav svg * {
  transition: all 0.12s ease-out;
}

.product-thumbs .slider-nav.arrow-prev {
  transform: translate(-50%, 0px) rotate(-90deg);
  top: -15px;
}

.product-thumbs .slider-nav.arrow-next {
  transform: translate(-50%, 0) rotate(90deg);
  bottom: -15px;
}

.product-thumbs .slider-nav.swiper-button-disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Стрелки только после init — иначе вверх на мгновение висит над первым превью */
.product-thumbs:has(.swiper-initialized) .slider-nav:not(.swiper-button-disabled) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.swiper.product-thumbs__slider {
  max-height: 380px;
  height: 100%;
  width: 70px;
  overflow: hidden;
}

/* До JS: колонка и тот же зазор, что spaceBetween: 7 — иначе миниатюры на мгновение слипаются */
.swiper.product-thumbs__slider .swiper-wrapper {
  flex-direction: column;
}
.swiper.product-thumbs__slider:not(.swiper-initialized) .swiper-wrapper {
  gap: 7px;
}

.swiper.product-thumbs__slider .swiper-slide.product-thumb {
  width: 70px;
  height: 70px;
  min-height: 70px;
  max-height: 70px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
}
.swiper.product-thumbs__slider .swiper-slide.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-mainphoto {
  width: 100%;
  min-width: 0;
  max-width: var(--max-product-width);
}

.swiper.product-mainphoto__slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ms-product-thumb-w, 1) / var(--ms-product-thumb-h, 1);
  min-height: 0;
}

.swiper.product-mainphoto__slider .swiper-wrapper {
  height: 100%;
}

/* До JS слайды уже 100% ширины контейнера — без скачка после init */
.swiper.product-mainphoto__slider .swiper-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.swiper-slide.product-photoslide {
  max-height: none;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swiper-slide.product-photoslide .product-photo {
  display: flex;
  width: 100%;
  height: 100%;
}
.swiper-slide.product-photoslide .product-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}
.ms-image-thumb-crop .swiper-slide.product-photoslide .product-photo img {
  object-fit: cover;
  object-position: center;
}
.ms-image-thumb-crop .swiper-slide.product-thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.product-photo__hints {
  position: absolute;
  z-index: 10;
  top: 22px;
  left: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.product-photohint {
  border-radius: 6px;
  color: #fff;
  font-family: var(--latoFont);
  font-size: 13px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: 0.26px;
  text-transform: uppercase;
  padding: 7px 13px 4px 13px;
}
.product-photohint.hint-r {
  background: #ff6569;
}

.product-mainphoto .products-slider__pagination {
  position: absolute;
  display: none;
  width: auto;
  min-height: 24px;
  z-index: 10;
  left: 13px;
  bottom: 20px;
  border-radius: 20px;
  background: #fafafb;
  padding: 5px 8px;
  color: rgba(99, 109, 122, 0.6);
  font-family: var(--latoFont);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.24px;
}
@media screen and (max-width: 575px) {
  .swiper.product-mainphoto__slider.swiper-initialized .products-slider__pagination {
    display: inline-flex;
  }
}

.product-info {
  position: relative;
  flex: 1 1 320px;
  min-width: min(100%, 290px);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0px 5px 30px 0px rgba(0, 0, 0, 0.09);
  padding: 27px 24px 30px 24px;
  max-width: 100%;
  width: 100%;
  height: auto;
  align-self: flex-start;
  overflow: visible;
}
/* На планшете/десктопе ценник не раздуваем — место отдаём характеристикам */
@media screen and (min-width: 576px) {
  .product-info {
    flex: 0 1 320px;
    max-width: 320px;
    width: auto;
  }
}
.product-info--sale {
  padding-top: 22px;
}

.product-offerhead {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.product-pricerow {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}
.product-pricerow__values {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.product-pricerow__current {
  color: #000;
  font-family: var(--latoFont);
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.15;
}
.product-pricerow__current b {
  color: #000;
  font-family: var(--defaultFont);
  font-size: inherit;
  font-weight: 700;
}
.product-pricerow__old {
  color: #afb4bf;
  font-family: var(--latoFont);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: line-through;
}
.product-info span.bonusprice {
  display: block;
  color: #000;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.product-saving {
  position: absolute;
  z-index: 2;
  top: -11px;
  left: 20px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--product-saving-from, #FF5C4D) 0%, var(--product-saving-to, #E5396F) 100%);
  color: var(--product-saving-text, #fff);
  font-family: var(--latoFont);
  font-size: 12px;
  line-height: 18px;
  padding: 2px 10px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.product-saving .icon-saving {
  color: inherit;
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}
.product-saving__label {
  font-weight: 400;
  text-transform: lowercase;
}
.product-saving__value {
  font-weight: 700;
}

.product-avail {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.product-avail--yes {
  color: var(--green);
}
.product-avail--no {
  color: var(--redlight);
}

.product-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}
.product-counts .quantity-count-box {
  height: 40px;
}
.product-counts .quantity-count-box button {
  font-size: 24px;
}
.product-counts > span {
  color: #636d7a;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
}

.product-buy {
  display: flex;
  flex-direction: column;
  margin-bottom: 26px;
  width: 100%;
  margin-bottom: 0;
}

.product-buyadds {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 20px;
  gap: 6px;
}

.product-consult {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4px;
  gap: 12px;
}
.product-consult__title {
  margin: 0;
  color: #071d37;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.product-consult .soc-list {
  justify-content: center;
  gap: 12px;
}
.product-consult .soc-list .soc-lnk {
  width: 48px;
  height: 48px;
}
.product-consult .soc-list .soc-lnk[class*="soc-"]::before {
  font-size: 22px;
}

.product-addincart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  background: var(--ms-cart-bg, #27ae60);
  padding: 17px 32px 15px 32px;
  color: #fff;
  font-family: var(--latoFont);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  max-width: 300px;
}
.product-addincart > i[class*="icon-"] {
  font-size: 16px;
  line-height: 1;
  color: inherit;
}
.product-addincart:hover {
  filter: brightness(0.94);
}

.product-bonusinfo {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  order: 1;
  flex: none;
}

.bonusinfo-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.bonusinfo-row p {
  flex-shrink: 0;
  color: #000;
  text-align: right;
  font-family: var(--latoFont);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}
.bonusinfo-row p b {
  color: #000;
  font-family: var(--defaultFont);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}
.bonusinfo-row > span {
  display: inline-block;
  flex-shrink: 0;
  color: #000;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}
.bonusinfo-row > span.gname {
  color: #636d7a;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.bonusinfo-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bonusinfo-col > span {
  display: inline-block;
  flex-shrink: 0;
}
.bonusinfo-col > span.gname {
  color: #636d7a;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

span.dot {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 10px;
  flex-shrink: 1;
}
span.dot::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0px;
  border-bottom: 1px dotted #d7d7d7;
}

.product-variants__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-var > span {
  display: inline-block;
  color: #636d7a;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 10px;
}
.product-var__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}
.product-var__row .form-control,
.product-var__row textarea.form-control {
  width: 100%;
  max-width: 320px;
}
.product-var__row .input-group {
  display: flex;
  width: 100%;
  max-width: 320px;
}
.product-var__row .input-group .form-control {
  flex: 1 1 auto;
  width: 1%;
  max-width: none;
  border-radius: 8px 0 0 8px;
  padding-right: 16px;
}
.product-var__row .input-group-btn {
  display: flex;
  width: auto;
  vertical-align: stretch;
}
.product-var__row .input-group-btn .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  border: 1px solid #ECEEF2;
  border-left: 0;
  background: #fff;
  color: #636d7a;
  box-shadow: none;
  text-shadow: none;
}
.product-var__row .input-group-btn .btn:hover,
.product-var__row .input-group-btn .btn:focus {
  background: #f7f8fa;
  color: #000;
  outline: none;
}
.product-var__row .input-group-btn .btn .icon-calendar {
  font-size: 16px;
  line-height: 1;
}
.product-var.has-error .text-danger,
.product-variants > .text-danger {
  color: var(--redlight, #e74c3c);
  font-size: 13px;
  margin-top: 6px;
  width: 100%;
}

.product-fullinfo .textblock {
  margin-bottom: 18px;
}
.product-fullinfo .product-desc-preview p {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.product-specs__list {
  display: flex;
  flex-direction: column;
}
.product-specs__list [data-hidespec] {
  display: none;
}

/* Контейнер только у превью-блока — по его ширине решаем стек vs строка */
.product-specs {
  container-type: inline-size;
  container-name: product-specs;
}

.product-spec__row {
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
}
.product-spec__row .spec-name {
  flex: 0 1 auto;
  min-width: 0;
  color: #636d7a;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
}
.product-spec__row span.dots {
  position: relative;
  display: block;
  flex: 1 0 12px;
  min-width: 12px;
  margin: 0 10px;
  align-self: center;
  height: 0;
}
.product-spec__row span.dots::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  top: 0;
  border-bottom: 1px dotted #d7d7d7;
}
.product-spec__row p {
  flex: 0 0 42%;
  width: 42%;
  max-width: 220px;
  min-width: 0;
  margin: 0;
  color: #000;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  text-align: left;
}
.product-spec__row:not(:first-child) {
  padding-top: 0;
  border-top: none;
}

.product-fulldescription p {
  font-size: 15px;
  line-height: 1.6;
}
.product-fulldescription p:not(:last-child) {
  margin-bottom: 15px;
}
.product-fulldescription .nav-tabs {
  margin-bottom: 23px;
  width: 100%;
}
.product-fulldescription .nav-tabs > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 0;
  line-height: 24px;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  padding: 0 0px 5px 0;
  color: #000;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
}
.product-fulldescription .nav-tabs > li > a::after {
  position: absolute;
  content: "";
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transition: all 0.12s linear;
}
.product-fulldescription .nav-tabs > li > a sup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  height: 16px;
  min-width: 16px;
  background-color: #eb5757;
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  right: -20px;
  border-radius: 100px;
  padding: 0 5px;
}
.product-fulldescription .nav-tabs > li:first-child > a {
  padding: 0 10px 5px 0;
}
.product-fulldescription .nav-tabs > li.active > a,
.product-fulldescription .nav-tabs > li.active > a:focus,
.product-fulldescription .nav-tabs > li.active > a:hover {
  cursor: default;
  color: inherit;
  font-weight: 600;
  background-color: transparent;
}
.product-fulldescription .nav-tabs > li:hover > a,
.product-fulldescription .nav-tabs > li.active > a {
  cursor: pointer;
  color: var(--links);
}
.product-fulldescription .nav-tabs > li:hover > a::after,
.product-fulldescription .nav-tabs > li.active > a::after {
  background-color: #3498db;
  transition: all 0.12s linear;
}

.descspec-box > span {
  display: inline-block;
  font-size: 13px;
  line-height: 19px;
  color: #93989e;
  margin-bottom: 15px;
}
#form-review label.control-label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  line-height: 16px;
  color: #55595c;
  margin-bottom: 12px;
  text-align: left;
}
#form-review label.control-label sup {
  padding: 0;
  margin: 0;
  top: 0;
  color: #ff6569;
  -webkit-text-stroke-width: 1;
  -webkit-text-stroke-color: #edeee9;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}
#form-review .form-group {
  margin-bottom: 18px;
}
#form-review #review {
  margin-bottom: 38px;
}
#form-review #review:last-child {
  margin-bottom: 0;
}
#form-review .review-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
#form-review .review-author {
  font-weight: 500;
  font-size: 12px;
  line-height: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
#form-review .review-date {
  font-weight: 400;
}
#form-review .review-rating {
  display: flex;
  align-items: center;
}
#form-review .review-rating-box {
  display: flex;
  gap: 4px;
  margin-right: 10px;
  font-size: 12px;
}
#form-review .review-count {
  font-weight: 400;
  font-size: 11px;
  line-height: 13px;
  color: var(--gray);
}
#form-review .rating-text {
  border-radius: 12px;
  background: #fafafb;
  padding: 18px 25px;
  font-size: 13px;
  line-height: 22px;
  color: #000;
}
#form-review .review-item + .review-item {
  margin-top: 22px;
}
#form-review .review-write {
  margin-top: 8px;
  padding: 22px 20px 20px;
  border-radius: 12px;
  background: #fafafb;
  border: 1px solid #eceef2;
}
#form-review .review-write__head {
  margin-bottom: 18px;
}
#form-review .review-write__title {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: #1f1f1f;
}
#form-review .review-write .form-group {
  margin-bottom: 16px;
}
#form-review .review-write .form-group:last-of-type {
  margin-bottom: 8px;
}
#form-review .review-write .form-control {
  background: #fff;
  padding: 12px 16px;
  min-height: 44px;
}
#form-review .review-write textarea.form-control {
  min-height: 120px;
  resize: vertical;
}
#form-review .review-stars-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
}
#form-review .review-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  margin: 0;
}
#form-review .review-stars input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
#form-review .review-stars > label {
  width: auto;
  margin: 0;
  padding: 4px;
  cursor: pointer;
  line-height: 1;
  font-size: 22px;
  transition: transform 0.12s linear;
}
#form-review .review-stars > label:hover {
  transform: scale(1.08);
}
#form-review .review-stars > label .icon-star::before {
  color: #bec2c5;
  transition: color 0.12s linear;
}
/* Выбранная оценка — только когда курсор вне блока (иначе конфликтует с превью) */
#form-review .review-stars:not(:hover) > input:checked ~ label .icon-star::before,
#form-review .review-stars:not(:hover) > input:checked + label .icon-star::before {
  color: #ff6569;
}
/* Превью при наведении/перемещении: сколько звёзд выбираю */
#form-review .review-stars > label:hover .icon-star::before,
#form-review .review-stars > label:hover ~ label .icon-star::before {
  color: #ff6569;
}
#form-review .review-stars__hint {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 4px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--gray);
}
#form-review .help-block,
#form-review .review-write__note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 18px;
  color: var(--gray);
}
/* Ядро кладёт text_note с красным inline/text-danger — убираем «ошибкоподобный» вид */
#form-review .help-block span,
#form-review .review-write__note span {
  color: inherit !important;
  font-weight: 500;
}
#form-review .review-write__login {
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray);
}
#form-review .review-write .buttons {
  margin-top: 8px;
  padding-top: 4px;
}

.product-page .custom-checkbox span {
	white-space: nowrap;
}

@media screen and (min-width: 576px) {
  .product-page {
    margin-bottom: 42px;
  }

  .product-head h1.product-title {
    font-size: 20px;
  }

  .product-thumbs {
    display: block;
  }
  .product-gallery {
    margin-bottom: 30px;
  }
  .product-sliders {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin-left: 0;
    margin-right: 0;
  }
  .product-layout-right {
    margin-top: 30px;
  }
  .product-mainphoto {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: var(--max-product-width);
    overflow: hidden;
  }
  .products-slider__pagination {
    display: none !important;
  }
  .swiper.product-thumbs__slider .swiper-slide.product-thumb {
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: none;
    box-shadow: none;
    transition: box-shadow 0.15s ease;
  }
  .swiper.product-thumbs__slider:not(.swiper-initialized) .swiper-slide.product-thumb:first-child,
  .swiper-slide.product-thumb.swiper-slide-thumb-active,
  .swiper-slide.product-thumb:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.14);
  }
  .swiper-slide.product-thumb:hover {
    cursor: pointer;
  }
  .product-info {
    padding: 27px 30px;
    width: auto;
  }
  .product-pricerow__current {
    font-size: 24px;
  }
  .product-pricerow__old {
    font-size: 17px;
  }
  .product-info span.bonusprice {
    font-size: 15px;
  }
  .product-counts > span {
    font-size: 14px;
    line-height: 18px;
  }

  .product-buyadds {
    margin-top: 20px;
  }
  .product-addincart {
    padding: 18px 32px 17px 32px;
    font-size: 15px;
  }
  .product-bonusinfo {
    margin-top: 27px;
  }

  .bonusinfo-row p {
    font-size: 15px;
  }
  .bonusinfo-row p b {
    font-size: 15px;
  }
  .bonusinfo-row > span {
    font-size: 15px;
  }
  .bonusinfo-row > span.gname {
    font-size: 15px;
  }
  .bonusinfo-col > span.gname {
    font-size: 15px;
  }
  .product-specs {
    margin-bottom: 24px;
  }
  /* Десктоп/планшет: имя ····· значение; колонка значений фиксированной доли — ровная вертикаль */
  .product-spec__row {
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    border: none;
  }
  .product-spec__row .spec-name {
    flex: 0 1 auto;
    min-width: 0;
    line-height: 22px;
  }
  .product-spec__row span.dots {
    position: relative;
    display: block;
    flex: 1 0 12px;
    min-width: 12px;
    margin: 0 10px;
    align-self: center;
    height: 0;
  }
  .product-spec__row span.dots::after {
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    top: 0;
    border-bottom: 1px dotted #d7d7d7;
  }
  .product-spec__row p {
    flex: 0 0 42%;
    width: 42%;
    max-width: 220px;
    min-width: 0;
    margin: 0;
    color: #000;
    line-height: 22px;
    text-align: left;
  }
  .product-spec__row:not(:first-child) {
    padding-top: 0;
    border-top: none;
  }
  /* Во вкладке шире — колонка значений как во вёрстке */
  .product-fulldescription .product-spec__row p {
    flex: 0 0 326px;
    max-width: 326px;
    width: 326px;
  }
  .product-fulldescription p {
    font-size: 16px;
    line-height: 1.6;
  }
  #form-review .review-author {
    font-size: 13px;
    line-height: 16px;
    margin-right: 17px;
  }
  #form-review .review-title {
    margin-bottom: 20px;
    justify-content: flex-start;
    align-items: center;
  }
  #form-review .rating-text {
    padding: 30px 40px;
  }
  #form-review label.control-label {
    font-size: 14px;
    line-height: 17px;
    margin-bottom: 14px;
  }
  .descspec-box > span {
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 15px;
  }
  .descspec-box {
    margin-bottom: 25px;
  }
}

/* Превью характеристик: стек только когда в строку уже не помещаются имя, точки и значение */
@container product-specs (max-width: 280px) {
  .product-spec__row {
    display: block;
    margin-bottom: 12px;
  }
  .product-spec__row .spec-name {
    flex: none;
    max-width: none;
    line-height: 21px;
  }
  .product-spec__row span.dots {
    display: none;
  }
  .product-spec__row p {
    flex: none;
    width: auto;
    max-width: none;
    line-height: 18px;
  }
  .product-spec__row:not(:first-child) {
    padding-top: 7px;
    border-top: 1px solid #eceef2;
  }
}

@media screen and (min-width: 992px) {
  .product-page {
    padding-top: 0;
  }
  .product-page .breadcrumb {
    margin-bottom: 30px;
  }
  .product-page .custom-radio span {
    padding: 8px 16.5px;
    font-size: 15px;
  }
  .product-page .custom-checkbox span {
    font-size: 15px;
  }

  .product-head {
    margin-bottom: 20px;
  }

  .swiper-slide.product-photoslide {
    border-radius: 20px;
  }
  .product-head h1.product-title {
    font-size: 22px;
  }
  .product-opts {
    gap: 15px 25px;
    justify-content: flex-start;
  }
  .product-art {
    font-size: 15px;
  }
  button.product-add-fav {
    font-size: 21px;
  }
  .product-info {
    padding: 30px 22px 40px 22px;
    margin-bottom: 0;
  }
  .product-info--sale {
    padding-top: 24px;
  }
  .product-saving {
    left: 22px;
  }
  .product-info .soc-list {
    justify-content: center;
    gap: 14px;
  }
  .product-pricerow__current {
    font-size: 25px;
  }
  .product-pricerow__old {
    font-size: 19px;
  }
  .product-info span.bonusprice {
    font-size: 15px;
  }
  .product-counts {
    gap: 14px;
    margin-bottom: 20px;
  }
  .product-counts > span {
    font-size: 14px;
    line-height: 18px;
    flex: 1;
  }
  .product-buy {
    align-items: center;
    justify-content: center;
  }

  .product-buyadds {
    justify-content: center;
    margin-top: 20px;
    align-items: center;
  }
  .product-addincart {
    padding: 17px 32px 15px 32px;
    font-size: 15px;
    width: 100%;
  }
  .product-addincart:hover {
    filter: brightness(0.94);
    color: #fff;
    transition: filter 0.12s linear;
  }
  .product-bonusinfo {
    margin-top: 0;
  }
  .bonusinfo-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }
  .bonusinfo-row p {
    font-size: 16px;
  }
  .bonusinfo-row p b {
    font-size: 16px;
  }
  .bonusinfo-row > span {
    font-size: 16px;
  }
  .bonusinfo-row > span.gname {
    font-size: 16px;
  }
  .bonusinfo-col > span.gname {
    font-size: 16px;
  }
  .product-fullinfo .textblock {
    margin-bottom: 32px;
  }
  .product-specs {
    margin-bottom: 0px;
  }
  .product-spec__row {
    margin-bottom: 6px;
  }
  .product-fulldescription p {
    font-size: 18px;
    line-height: 1.6;
  }
  #form-review #review {
    margin-bottom: 45px;
  }
  #form-review label.control-label {
    font-size: 17px;
    font-weight: 600;
    line-height: normal;
    padding-top: 0;
  }
  #form-review .form-group {
    margin-bottom: 30px;
  }
  #form-review .review-write {
    margin-top: 12px;
    padding: 28px 32px 24px;
  }
  #form-review .review-write__title {
    font-size: 18px;
  }
  #form-review .review-write .form-group {
    margin-bottom: 22px;
  }
  #form-review .review-stars > label {
    font-size: 26px;
  }
  #form-review .review-stars__hint {
    font-size: 12px;
  }
  #form-review .help-block,
  #form-review .review-write__note {
    font-size: 14px;
    margin-top: 12px;
  }
  .product-fulldescription .nav-tabs {
    position: relative;
    margin-bottom: 28px;
    gap: 12px 32px;
    flex: 1 100%;
  }
  .product-fulldescription .nav-tabs::after {
    display: block;
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    background: #000000;
    opacity: 0.1;
    bottom: 0;
  }
  .product-fulldescription .nav-tabs > li > a {
    padding: 0 0px 20px 0;
    font-size: 18px;
    line-height: 24px;
  }
  .product-fulldescription .nav-tabs > li:first-child > a {
    padding: 0 10px 20px 0;
  }
  .product-fulldescription {
    display: flex;
    flex-wrap: wrap;
    gap: 0px 30px;
  }
  .product-fulldescription .tab-content {
    flex: 1 806px;
  }
  /* Правая колонка макета / YooAI PGM — справа от табов описания */
  .product-layout-right,
  .product-fulldescription > .yooai-pgm {
    flex: 1 326px;
    margin-top: 50px;
    margin-bottom: 50px;
  }
}

/* Между колонкой и тремя колонками фото упирается в свой максимум, справа остаётся пустая полоса.
   Ценник встаёт в эту полосу. Описание и характеристики идут ниже, уже на всю ширину. */
@media screen and (min-width: 992px) and (max-width: 1197.98px) {
  .product-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 40px;
    row-gap: 28px;
    align-items: start;
  }
  .product-gallery {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    margin-bottom: 0;
  }
  .product-base,
  .product-baseleft {
    display: contents;
  }
  .product-base > input[type="hidden"] {
    position: absolute;
  }
  .product-info {
    grid-column: 2;
    grid-row: 1;
    width: 320px;
    max-width: 320px;
    margin-top: 0;
  }
  .product-baseinfo {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }
}

@media screen and (min-width: 1198px) {
  .product-block {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .product-gallery {
    /* Не растёт в пустоту справа; сжимается, чтобы влезли характеристики + покупка */
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: calc(70px + 14px + var(--max-product-width));
    margin-bottom: 0;
  }

  .product-thumbs,
  .swiper.product-thumbs__slider {
    max-height: 464px;
  }

  .product-mainphoto {
    max-width: var(--max-product-width);
  }

  /* 280 + 40 + 320 — как во вёрстке: три колонки уже с 1198px */
  .product-base {
    flex: 1 0 640px;
    width: auto;
    min-width: 0;
  }

  .product-baseleft {
    flex-wrap: nowrap;
  }

  .product-info {
    flex: 0 0 320px;
    width: 320px;
    max-width: 320px;
  }

  .product-baseinfo {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media screen and (min-width: 1226px) {
  .product-layout-right,
  .product-fulldescription > .yooai-pgm {
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media screen and (min-width: 1280px) {
  .product-variants {
    max-width: initial;
    margin-right: 0;
  }

  .product-head {
    margin-bottom: 42px;
  }
  .product-head h1.product-title {
    font-size: 28px;
    font-weight: bold;
  }
  .product-specs .altlink {
    margin-top: 6px;
  }
  .swiper-slide.product-thumb:hover {
    cursor: pointer;
  }
  #form-review .form-group {
    margin-bottom: 20px;
  }
  #form-review .review-author {
    font-size: 14px;
  }
  #form-review .review-count {
    font-size: 13px;
  }
  #form-review .review-rating {
    align-items: baseline;
  }
  .product-fulldescription .nav-tabs {
    position: relative;
    margin-bottom: 36px;
    gap: 12px 30px;
  }
  .product-fulldescription .nav-tabs > li > a {
    font-size: 19px;
  }
}

/* Живая цена опций: «=» — цена варианта, «+» доплата, «−» скидка */
.product-pricerow__current {
  font-variant-numeric: tabular-nums;
}
.product-pricerow__old.is-off,
.product-saving.is-off {
  display: none;
}
.product-page .product-var__row {
  align-items: stretch;
}
.product-page .custom-radio--priced {
  align-items: stretch;
}
.product-page .custom-radio--priced > span {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 72px;
  height: 100%;
  box-sizing: border-box;
}
.product-page .product-opt__name {
  font-weight: 400;
  font-size: inherit;
  line-height: 1.2;
}
.product-page .custom-checkbox .product-opt__name,
.product-page .custom-checkbox .product-opt__price {
  background: none;
  padding: 0;
  outline: none;
}
.product-page .product-opt__price {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.product-page .product-opt__price--abs {
  color: #1a1d23;
}
.product-page .product-opt__price--plus {
  color: #1f8a4c;
}
.product-page .product-opt__price--minus {
  color: #c0392b;
}
.product-page .custom-radio input:checked + span .product-opt__price--abs {
  color: var(--links);
}
.product-page .custom-checkbox .product-opt__price {
  align-self: center;
  margin-left: 2px;
  font-size: 13px;
}
