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

.product-page {
  padding-top: 100px;
  padding-bottom: 80px;
  background-color: var(--color-bg);
}

.product-page__container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-bottom: 60px;
}

/* ============================================
   PAGE TITLE
   ============================================ */
.product-content {
  flex-grow: 1;
  min-width: 0;
}

.product-page__title {
  font-family: "PF BeauSans Pro", var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  text-transform: none;
  color: #222;
  margin: 0 0 28px;
  text-align: center;
  -webkit-text-stroke: 0px black;
  text-shadow: none;
  border-bottom: none;
  padding-bottom: 0;
}

/* ============================================
   PRODUCT HERO (gallery + info)
   ============================================ */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

/* ============================================
   GALLERY / SLIDER
   ============================================ */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Main image area — no overflow arrows inside */
.product-gallery__main {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
}

.product-gallery__track {
  display: flex;
  transition: transform 0.4s ease;
}

.product-gallery__slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
}

.product-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

/* Thumbnails strip: arrow — thumbs — arrow */
.product-gallery__thumbs-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  flex: 1;
  overflow: hidden;
}

/* Side arrows (flanking thumbnails) */
.product-gallery__arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  padding: 0;
}

.product-gallery__arrow:hover {
  background: var(--color-link-dark-green);
  color: #fff;
  border-color: var(--color-link-dark-green);
}

.product-gallery__arrow--prev { }
.product-gallery__arrow--next { }

/* Thumbnails */
.product-gallery__thumb {
  width: 80px;
  height: 64px;
  border: 2px solid transparent;
  background: #f5f5f5;
  cursor: pointer;
  padding: 2px;
  transition: border-color 0.2s;
  overflow: hidden;
  flex-shrink: 0;
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery__thumb:hover {
  border-color: #aaa;
}

.product-gallery__thumb.is-active {
  border-color: var(--color-link-dark-green);
}

/* ============================================
   PRODUCT INFO (right column)
   ============================================ */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* "Добавить в заказ" — outlined button at top */
.product-info__btn-order {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  align-self: flex-end;
  padding: 10px 18px;
  border: 1px solid var(--color-link-dark-green);
  background: transparent;
  color: var(--color-link-dark-green);
  font-family: "PF BeauSans Pro", var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  min-height: 44px;
}

.product-info__btn-order:hover {
  background: var(--color-link-dark-green);
  color: #fff;
}

.product-info__short-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  margin: 0;
  flex: 1;
}

/* "КАРТОЧКА ПРОДУКТА" — filled teal button at bottom */
.product-info__btn-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: flex-end;
  padding: 0 20px;
  min-height: 48px;
  background: linear-gradient(106.95deg, #358393 24.64%, #2A6D7C 77.55%);
  color: #e9e9e9;
  font-family: "PF BeauSans Pro", var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: filter 0.2s;
  white-space: nowrap;
}

.product-info__btn-card:hover {
  filter: brightness(1.1);
}

.product-info__btn-card-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
}

/* ============================================
   TABS
   ============================================ */
.product-tabs {
  margin-bottom: 50px;
}

.product-tabs__nav {
  display: flex;
  border-bottom: 2px solid #ddd;
  gap: 0;
  margin-bottom: 0;
}

.product-tabs__tab {
  padding: 12px 28px;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-family: "PF BeauSans Pro", var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.product-tabs__tab:hover {
  color: var(--color-link-dark-green);
}

.product-tabs__tab.is-active {
  color: var(--color-link-dark-green);
  border-bottom-color: var(--color-link-dark-green);
  background: #fff;
}

.product-tabs__panel {
  padding: 30px 0;
  display: block;
}

.product-tabs__panel[hidden] {
  display: none;
}

.product-tabs__heading {
  font-family: "PF BeauSans Pro", var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  color: #333;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.product-tabs__subheading {
  font-family: "PF BeauSans Pro", var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-link-dark-green);
  margin: 24px 0 10px;
}

.product-tabs__text {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin: 0 0 14px;
}

.product-tabs__list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-tabs__list li {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* ============================================
   SPECS TABLE (full)
   ============================================ */
.product-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.product-specs-table tr:nth-child(even) {
  background: #f7f7f7;
}

.product-specs-table tr:hover {
  background: #eef6f8;
}

.product-specs-table__label {
  padding: 11px 16px;
  color: #555;
  font-weight: 500;
  width: 45%;
  border-bottom: 1px solid #eee;
}

.product-specs-table__value {
  padding: 11px 16px;
  color: #222;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

/* ============================================
   DESCRIPTION TAB BLOCKS
   ============================================ */

.desc-section__title {
  font-family: "PF BeauSans Pro", var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-link-dark-green);
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-link-dark-green);
}

/* Application table */
.desc-app-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 24px;
}

.desc-app-table__head {
  background: #d6e8ec;
  color: #1a4a5a;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #b0cdd5;
}

.desc-app-table__cell {
  padding: 8px 14px;
  border: 1px solid #ddeaed;
  color: #333;
  vertical-align: top;
  line-height: 1.5;
}

.desc-app-table tbody tr:nth-child(even) .desc-app-table__cell {
  background: #f5fbfc;
}

/* EAC block */
.desc-eac {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 20px 0;
  padding: 14px 16px;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
}

.desc-eac__badge { flex-shrink: 0; }
.desc-eac__svg { width: 60px; height: 30px; }

.desc-eac__name {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 13px;
  color: #333;
}

.desc-eac__list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.desc-eac__list li {
  font-size: 13px;
  line-height: 1.5;
  color: #444;
}

/* Info-box */
.desc-info-box {
  background: #f2f2f2;
  border: 1px solid #ddd;
  padding: 14px 20px;
  margin: 20px 0;
}

.desc-info-box__lead {
  font-size: 13px;
  font-style: italic;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px;
  line-height: 1.5;
}

.desc-info-box__list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.desc-info-box__list li {
  font-size: 13px;
  line-height: 1.5;
  color: #444;
}

/* Features: two-column dashed box */
.desc-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px dashed #82bbc8;
  margin: 0 0 28px;
}

.desc-features__col {
  margin: 0;
  padding: 14px 20px 14px 34px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.desc-features__col:first-child {
  border-right: 1px dashed #82bbc8;
}

.desc-features__col li {
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

/* Kit table */
.desc-kit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 24px;
}

.desc-kit-table__head {
  background: #d6e8ec;
  color: #1a4a5a;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #b0cdd5;
}

.desc-kit-table__head--qty {
  width: 110px;
  text-align: center;
}

.desc-kit-table__cell {
  padding: 8px 14px;
  border: 1px solid #ddeaed;
  color: #333;
  line-height: 1.5;
}

.desc-kit-table__cell--qty {
  text-align: center;
  font-weight: 600;
}

.desc-kit-table tbody tr:nth-child(even) .desc-kit-table__cell {
  background: #f5fbfc;
}

@media (max-width: 640px) {
  .desc-features {
    grid-template-columns: 1fr;
  }
  .desc-features__col:first-child {
    border-right: none;
    border-bottom: 1px dashed #82bbc8;
  }
}

/* ============================================
   DOC GRID (Documents tab)
   ============================================ */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid #c8dce2;
}

/* Card */
.doc-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  border: 1px solid #c8dce2;
  margin: -1px 0 0 -1px; /* collapse borders */
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.doc-card:hover {
  background: #eef6f9;
}

/* Icon wrap */
.doc-card__icon-wrap {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-card__file-svg {
  width: 44px;
  height: 52px;
}

/* PDF – синий */
.doc-card__icon-wrap--pdf {
  color: #2a6d7c;
}

/* XLS – зелёный */
.doc-card__icon-wrap--xls {
  color: #1d7a3a;
}

/* DOC – тёмно-синий */
.doc-card__icon-wrap--doc {
  color: #1a4a8a;
}

/* Type badge */
.doc-card__type {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: currentColor;
  padding: 1px 4px;
  border-radius: 2px;
  color: inherit;
  line-height: 1.4;
  pointer-events: none;
  white-space: nowrap;
  background: transparent;
}

/* override badge color to match icon */
.doc-card__icon-wrap--pdf .doc-card__type  { color: #2a6d7c; }
.doc-card__icon-wrap--xls .doc-card__type  { color: #1d7a3a; }
.doc-card__icon-wrap--doc .doc-card__type  { color: #1a4a8a; }

/* Body */
.doc-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.doc-card__name {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #222;
  font-weight: 400;
}

.doc-card__name--bold {
  font-weight: 700;
}

.doc-card__size {
  font-size: 12px;
  color: #888;
}

/* Responsive */
@media (max-width: 700px) {
  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .doc-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   VIDEO TAB
   ============================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-card__thumb-link {
  display: block;
  text-decoration: none;
}

.video-card__thumb {
  position: relative;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 16 / 10;
}

.video-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.video-card__thumb-link:hover .video-card__img {
  transform: scale(1.04);
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s;
  opacity: 0.9;
}

.video-card__play svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.video-card__thumb-link:hover .video-card__play {
  transform: translate(-50%, -50%) scale(1.12);
  opacity: 1;
}

.video-card__title {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

@media (max-width: 580px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */
.product-related {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.product-related__title {
  font-family: "PF BeauSans Pro", var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  color: #666;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.product-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-related__card {
  border: 1px solid #eee;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-related__card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.product-related__media {
  height: 160px;
  background: #f5f5f5;
  overflow: hidden;
}

.product-related__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.3s;
}

.product-related__card:hover .product-related__img {
  transform: scale(1.05);
}

.product-related__body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-related__name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
}

.product-related__link {
  align-self: flex-start;
  font-size: 13px;
  padding: 7px 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1115px) {
  .product-page__container {
    flex-direction: column;
  }

  .product-page {
    padding-top: 80px;
  }
}

@media (max-width: 900px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-page {
    padding-top: 70px;
  }

  .product-page__title {
    font-size: 18px;
  }

  .product-tabs__tab {
    padding: 10px 14px;
    font-size: 13px;
  }

  .product-related__grid {
    grid-template-columns: 1fr;
  }

  .product-gallery__slide {
    height: 260px;
  }

  .product-info__cta-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .product-page {
    padding-top: 60px;
  }

  .product-gallery__slide {
    height: 220px;
  }

  .product-tabs__tab {
    padding: 8px 10px;
    font-size: 12px;
  }

  .product-info__actions {
    flex-direction: column;
  }

  .product-info__btn-wish {
    width: 100%;
    justify-content: center;
  }

  .product-info__btn-cart {
    width: 100%;
  }
}
