/* ========================= PRODUCT DETAIL PAGE ========================= */

.product-page {
  padding-bottom: 0;
}

/* Hero товара — экран 848px по макету */
.product-hero {
  padding-bottom: 0;
}

.product-hero__layout {
  position: relative;
  min-height: 781px;
  max-width: 1775px;
}

/* Rectangle 65 — рамка левой панели 615×650 */
.product-hero__panel {
  position: absolute;
  left: 2px;
  top: 52px;
  width: 615px;
  height: 650px;
  pointer-events: none;
  z-index: 0;
}

.product-hero__title {
  position: absolute;
  left: 91px;
  top: 92px;
  width: 485px;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  z-index: 1;
}

.product-badges {
  position: absolute;
  top: 52px;
  left: 716px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  font-size: 24px;
  line-height: 1.25;
  max-width: 700px;
  z-index: 1;
}

.product-hero__photo {
  position: absolute;
  left: 675px;
  top: 30px;
  width: 1109px;
  max-width: calc(100% - 675px);
  height: 644px;
  object-fit: cover;
  display: block;
  border-radius: 60px;
}

.product-colors {
  position: absolute;
  left: 91px;
  top: 303px;
  display: flex;
  gap: 20px;
  z-index: 1;
}

.product-colors__swatch {
  width: 53px;
  height: 53px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}

.product-colors__swatch--active {
  border-color: transparent;
}

.product-calc {
  position: absolute;
  left: 91px;
  top: 396px;
  width: 368px;
  z-index: 1;
}

.product-calc__title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 20px;
}

.product-calc__link {
  display: inline-block;
  color: #000;
}

.product-calc__link .arrow-btn {
  color: #ED1C24;
}

.product-btn--sales {
  position: absolute;
  left: 238px;
  top: 589px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 381px;
  height: 115px;
  padding: 0 40px;
  background: #fff;
  color: #000;
  border: 2px solid rgba(0, 0, 0, 0.05);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity 0.2s;
  z-index: 1;
}

.product-btn--sales .product-btn__arrow {
  flex-shrink: 0;
  width: 8px;
  height: 17px;
}

.product-btn--buy {
  position: absolute;
  left: 1087px;
  top: 420px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 310px;
  height: 95px;
  padding: 0 32px;
  background: #ED1C24;
  color: #fff;
  border-radius: 26px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity 0.2s;
  z-index: 1;
}

.product-btn--buy:hover,
.product-btn--sales:hover {
  opacity: 0.85;
}

.product-thumbs {
  position: absolute;
  left: 858px;
  top: 625px;
  display: flex;
  gap: 16px;
}

.product-thumbs__item {
  width: 163px;
  height: 76px;
  border: none;
  background: #fff;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.product-thumbs__item--active {
  border: 3px solid #ED1C24;
}

.product-thumbs__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tabs — Group 243 */
.product-tabs-section {
  padding-bottom: 40px;
}

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 40px;
  margin-left: 3px;
}

.product-tabs__btn {
  position: relative;
  background: none;
  border: none;
  padding: 0 0 12px;
  font: 400 36px/1.2 "Proxima Nova", "Montserrat", "Segoe UI", Arial, sans-serif;
  color: #000;
  cursor: pointer;
}

.product-tabs__btn[data-tab="desc"] { margin-right: 191px; }
.product-tabs__btn[data-tab="specs"] { margin-right: 190px; }
.product-tabs__btn[data-tab="docs"] { margin-right: 190px; }
.product-tabs__btn[data-tab="gallery"] { margin-right: 188px; }

.product-tabs__btn:hover {
  color: #ED1C24;
}

.product-tabs__btn--active {
  color: #ED1C24;
}

.product-tabs__btn--active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 66px;
  height: 2px;
  background: #ED1C24;
}

.product-panel__text {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.35;
  max-width: 1775px;
  margin: 0 0 0 3px;
}

/* Feature blocks */
.product-features {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-bottom: 70px;
}

.product-feat__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  max-width: 1775px;
  margin-left: 3px;
}

.product-feat--img-left .product-feat__inner {
  flex-direction: row;
}

.product-feat--img-right .product-feat__inner {
  flex-direction: row;
}

.product-feat__media {
  flex-shrink: 0;
}

.product-feat--img-left .product-feat__media {
  width: 626px;
  height: 626px;
}

.product-feat--img-right .product-feat__media {
  width: 620px;
  height: 620px;
}

.product-feat--img-right:last-of-type .product-feat__media {
  width: 626px;
  height: 626px;
}

.product-feat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-feat__content {
  position: relative;
  flex-shrink: 0;
  width: 936px;
  min-height: 450px;
  background: #f9f9f9;
  padding: 60px 52px 52px 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.product-feat__num {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 86px;
  font-weight: 400;
  line-height: 1;
  color: rgba(0, 0, 0, 0.08);
  pointer-events: none;
  user-select: none;
}

.product-feat--img-left .product-feat__num {
  left: 0;
  transform: translate(-50%, -50%);
}

.product-feat--img-right .product-feat__num {
  right: 0;
  transform: translate(50%, -50%);
}

.product-feat__title {
  font-size: 52px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 24px;
  max-width: 756px;
}

.product-feat__body {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  max-width: 756px;
}

@media (max-width: 1800px) {
  .product-hero__layout {
    min-height: 781px;
    padding-bottom: 0;
  }

  .product-hero__photo {
    max-width: calc(100% - 675px);
  }
}

@media (max-width: 1400px) {
  .product-hero__layout {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 0;
  }

  .product-hero__title,
  .product-badges,
  .product-hero__photo,
  .product-hero__panel,
  .product-colors,
  .product-calc,
  .product-btn--sales,
  .product-btn--buy,
  .product-thumbs {
    position: static;
    width: auto;
    max-width: 100%;
    left: auto;
    top: auto;
  }

  .product-hero__photo {
    width: 100%;
    height: auto;
    min-height: 320px;
    order: 2;
  }

  .product-badges {
    order: 1;
  }

  .product-hero__title {
    order: 0;
  }

  .product-colors { order: 3; }
  .product-calc { order: 4; }
  .product-btn--sales { order: 6; width: 100%; min-width: 0; }
  .product-btn--buy { order: 5; width: 100%; min-width: 0; }
  .product-thumbs { order: 7; flex-wrap: wrap; }

  .product-hero__panel {
    display: none;
  }

  .product-feat__inner {
    flex-direction: column !important;
    align-items: stretch;
  }

  .product-feat--img-left .product-feat__media,
  .product-feat--img-right .product-feat__media {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .product-feat__content {
    width: 100%;
    min-height: 0;
    padding: 40px 32px;
  }

  .product-feat__num {
    position: static;
    transform: none;
    margin-bottom: 16px;
    font-size: 64px;
  }

  .product-tabs__btn {
    margin-right: 32px !important;
  }
}

@media (max-width: 768px) {
  .product-hero__title {
    font-size: 36px;
  }

  .product-badges {
    font-size: 20px;
  }

  .product-calc__title {
    font-size: 28px;
  }

  .product-btn--buy,
  .product-btn--sales {
    font-size: 24px;
    height: auto;
    padding: 20px 24px;
  }

  .product-tabs__btn {
    font-size: 24px;
    margin-right: 16px !important;
  }

  .product-panel__text {
    font-size: 24px;
  }

  .product-feat__title {
    font-size: 36px;
  }

  .product-thumbs__item {
    width: 72px;
    height: 48px;
  }
}
