.main-page--commerce-single .breadcrumbs {
  margin-bottom: 40px;
}

/* Как у catalog-container: на ≤991px убираем боковые отступы container,
   чтобы блок commerce-single шёл на всю ширину без белых полей */
@media only screen and (max-width: 991px) {
  .main-page--commerce-single > section > .container {
    padding-left: 0;
    padding-right: 0;
  }

  .main-page--commerce-single .breadcrumbs {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .main-page--commerce-single .breadcrumbs > .container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }
}

.commerce-single {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.85fr);
  gap: 20px;
  align-items: start;
  background: #e9f2f8;
  border-radius: 30px;
  padding: 20px;
}

.commerce-single__left,
.commerce-single__right {
  min-width: 0;
}

.commerce-single__card {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
}

.commerce-single__left.commerce-single__card {
  padding: 28px 28px 24px;
}

.commerce-single__header {
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(1, 13, 67, 0.1);
}

.commerce-single__title-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.commerce-single__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: #010d43;
}

.commerce-single__title-top .sale-label {
  background-color: #e9f2f8;
  border-radius: 100px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
}

.commerce-single__title-top .sale-label img {
  height: 13px;
  width: auto;
  display: inline-block;
}

.commerce-single__title-top .sale-label span {
  font-size: 12px;
  font-weight: 500;
  line-height: 0.8;
  color: #010d43;
}

.commerce-single__location {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(1, 13, 67, 0.55);
}

.commerce-single__gallery {
  --commerce-gallery-h: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.commerce-single__gallery-page {
  position: relative;
  height: var(--commerce-gallery-h);
}

.commerce-single__gallery-page[hidden] {
  display: none !important;
}

.commerce-single__ymap-page {
  position: relative;
  width: 100%;
  height: var(--commerce-gallery-h) !important;
  min-height: var(--commerce-gallery-h);
  border-radius: 20px;
  overflow: hidden;
  background: #dfeaf3;
}

.commerce-single__ymap {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 20px;
}

.commerce-single__layout-select-wrap {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 255px;
  opacity: 1;
  visibility: visible;
}

.commerce-single__v-select {
  position: relative;
  --vs-border-color: #d9dbe3;
}

.commerce-single__v-select .vs__dropdown-toggle {
  height: 48px;
  border-radius: 24px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--vs-border-color);
  cursor: pointer;
}

.commerce-single__v-select .vs__selected-options {
  height: 100%;
  display: flex;
  align-items: center;
  flex-grow: 1;
  padding: 0;
}

.commerce-single__v-select .vs__selected {
  color: #010d43;
  background: transparent;
  border: none;
  margin: 0;
  padding: 0 20px;
  font-weight: 600;
  line-height: 1;
}

.commerce-single__v-select .vs__actions {
  display: flex;
  align-items: center;
  padding-right: 18px;
}

.commerce-single__v-select .vs__open-indicator {
  display: flex;
  transition: transform 0.15s ease;
}

.commerce-single__v-select.vs--open .vs__open-indicator {
  transform: rotate(180deg);
}

.commerce-single__v-select.vs--open .vs__dropdown-toggle {
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  border-bottom-color: #d9dbe3;
}

.commerce-single__v-select .vs__dropdown-menu {
  display: block;
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d9dbe3;
  border-radius: 24px;
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.15);
  z-index: 10;
  overflow: hidden;
}

.commerce-single__v-select .vs__dropdown-menu[hidden] {
  display: none;
}

.commerce-single__v-select .vs__dropdown-option {
  position: relative;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 3px 47px 3px 20px;
  font-weight: 600;
  color: #010d43;
  cursor: pointer;
  background: #fff;
}

.commerce-single__v-select .vs__dropdown-option:hover {
  background-color: rgba(1, 13, 67, 0.05);
}

.commerce-single__v-select .vs__dropdown-option::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid #d9dbe3;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M13.4877 0.242325C13.74 0.47664 13.74 0.85654 13.4877 1.09085L5.48509 8.52182C5.09255 8.88632 4.45616 8.88632 4.06363 8.52182L0.189254 4.92419C-0.0630847 4.68989 -0.0630847 4.30999 0.189254 4.07565C0.441592 3.84135 0.850715 3.84135 1.10305 4.07565L4.77436 7.48472L12.5739 0.242325C12.8262 0.0080107 13.2353 0.0080107 13.4877 0.242325Z' fill='white'/%3E%3C/svg%3E");
  background-size: 0 0;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: background-size 0.2s ease;
}

.commerce-single__v-select .vs__dropdown-option:hover::before {
  opacity: 1;
}

.commerce-single__v-select .vs__dropdown-option--selected::before {
  opacity: 1;
  background-color: #010d43;
  border-color: #010d43;
  background-size: 14px 9px;
}

@media (max-width: 767px) {
  .commerce-single__layout-select-wrap {
    width: 190px;
  }

  .commerce-single__v-select .vs__dropdown-toggle {
    height: 40px;
    border-radius: 20px;
  }
}

.commerce-single__layout-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: hidden;
}

.commerce-single__layout-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.commerce-single__tab-slider {
  position: relative;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.commerce-single__tab-slider .swiper-wrapper,
.commerce-single__tab-slider .swiper-slide {
  height: 100%;
}

.commerce-single__tab-slide {
  height: 100%;
}

.commerce-single__tab-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commerce-single__tab-slider .swiper-button-prev,
.commerce-single__tab-slider .swiper-button-next {
  color: #010d43;
}

.commerce-single .realty-single-gallery-modes-container {
  margin-top: 0;
}

.commerce-single .realty-single-gallery-modes {
  margin: 0;
  background: transparent;
}

.commerce-single .realty-single-gallery-modes .gallery-modes-slide {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.commerce-single .realty-single-gallery-modes.is-modes-ready .gallery-modes-slide {
  opacity: 1;
  visibility: visible;
  transition: left 0.2s ease, width 0.2s ease;
}

.commerce-single .realty-single-gallery-layout-mode {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #010d43;
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* Fallback до инициализации слайдера вкладок */
.commerce-single .realty-single-gallery-modes:not(.is-modes-ready) .realty-single-gallery-layout-mode.selected {
  background-color: #010d43;
  color: #fff;
}

.commerce-single__right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.commerce-single__card-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #010d43;
}

.commerce-single__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.commerce-single__row + .commerce-single__row {
  margin-top: 14px;
}

.commerce-single__row-label {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(1, 13, 67, 0.5);
}

.commerce-single__row-value {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #010d43;
  text-align: right;
}

.commerce-single__card--price {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.commerce-single__price-line {
  display: flex;
  gap: 10px;
  align-items: center;
}

.commerce-single__price-line .old-price {
  margin: 0 10px 0 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: #010d43;
  text-decoration: line-through;
}

.commerce-single__price {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #010d43;
}

.commerce-single__cta {
  width: fit-content;
  min-width: 214px;
}

.commerce-single__specs {
  display: flex;
  flex-direction: column;
}

.commerce-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.commerce-single__tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(1, 13, 67, 0.15);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #010d43;
}

@media (max-width: 1200px) {
  .commerce-single {
    grid-template-columns: 1fr;
  }

  .commerce-single__title {
    font-size: 28px;
  }
}

@media only screen and (max-width: 1649px) {
  .commerce-single__price,
  .commerce-single__price-line .old-price {
    font-size: 22px;
  }
}

@media only screen and (max-width: 991px) {
  .commerce-single {
      padding: 24px 16px;
  }
}

@media (max-width: 767px) {
  .commerce-single {
    border-radius: 20px;
    /* padding: 12px; */
    gap: 12px;
  }

  .commerce-single__card {
    border-radius: 20px;
    padding: 20px;
  }

  .commerce-single__left.commerce-single__card {
    padding: 20px 20px 0 20px;
  }

  .commerce-single__title {
    font-size: 24px;
  }

  .commerce-single__gallery {
    --commerce-gallery-h: 280px;
  }

  .commerce-single .realty-single-gallery-modes-container {
    overflow-x: auto;
  }
}

@media only screen and (max-width: 575px) {
  .commerce-single__price,
  .commerce-single__price-line .old-price {
    font-size: 18px;
  }
}

@media screen and (max-width: 375px) {
  .commerce-single__price-line {
    flex-wrap: wrap;
  }

  .commerce-single__price-line .old-price {
    width: 100%;
    display: block;
    margin-right: 0;
  }
}
