/* Карточка товара — видео и таблицы характеристик */

.esm-product-video {
  margin: 0 0 28px;
  padding: 0;
}

.esm-product-video__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.esm-product-video__title {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
}

.esm-product-video__count {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
}

.esm-product-video__viewport {
  position: relative;
}

.esm-product-video__track {
  position: relative;
}

.esm-product-video__slide[hidden] {
  display: none !important;
}

.esm-product-video__frame {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  aspect-ratio: 16 / 9;
}

.esm-product-video__frame iframe,
.esm-product-video__frame video,
.esm-product-video__frame embed {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border: 0;
  aspect-ratio: 16 / 9;
}

.esm-product-video__frame .wp-block-embed,
.esm-product-video__frame .wp-block-embed__wrapper {
  width: 100%;
  height: 100%;
  margin: 0;
}

.esm-product-video__frame .wp-block-embed__wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
}

.esm-product-video__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.esm-product-video__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}

.esm-product-video__nav--prev {
  left: 10px;
}

.esm-product-video__nav--next {
  right: 10px;
}

.esm-product-video__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.esm-product-video__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.esm-product-video__dot.is-active {
  background: #2563eb;
  transform: scale(1.15);
}

/* Вкладки */
.single-product .woocommerce-tabs {
  margin-top: 28px !important;
}

.single-product .woocommerce-tabs .resp-tabs-list li,
.single-product .woocommerce-tabs ul.tabs li a {
  font-size: 15px !important;
}

.single-product .woocommerce-tabs .resp-tab-active,
.single-product .woocommerce-tabs ul.tabs li.active a {
  color: #1a1a1a !important;
  border-bottom-color: #1a1a1a !important;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
.single-product .woocommerce-tabs .tab-content {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #333 !important;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child,
.single-product .woocommerce-tabs .tab-content > h2:first-child {
  display: none;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel p,
.single-product .woocommerce-tabs .tab-content p {
  margin: 0 0 14px;
}

/* Таблицы характеристик — только во вкладке «Детали/Характеристики» */
.single-product .woocommerce-tabs table.shop_attributes,
.single-product .woocommerce-tabs .woocommerce-product-attributes,
.single-product .woocommerce-tabs .woocommerce-product-attributes table {
  width: 100%;
  max-width: 640px;
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
}

.single-product .woocommerce-tabs table.shop_attributes th,
.single-product .woocommerce-tabs table.shop_attributes td,
.single-product .woocommerce-tabs .woocommerce-product-attributes th,
.single-product .woocommerce-tabs .woocommerce-product-attributes td {
  padding: 12px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid #eef0f2 !important;
  font-family: "Manrope", "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  vertical-align: top;
}

.single-product .woocommerce-tabs table.shop_attributes tr:last-child th,
.single-product .woocommerce-tabs table.shop_attributes tr:last-child td,
.single-product .woocommerce-tabs .woocommerce-product-attributes tr:last-child th,
.single-product .woocommerce-tabs .woocommerce-product-attributes tr:last-child td {
  border-bottom: 0 !important;
}

.single-product .woocommerce-tabs table.shop_attributes th,
.single-product .woocommerce-tabs .woocommerce-product-attributes th {
  width: 42%;
  background: #f9fafb !important;
  color: #4b5563 !important;
  font-weight: 600 !important;
}

.single-product .woocommerce-tabs table.shop_attributes td,
.single-product .woocommerce-tabs .woocommerce-product-attributes td {
  color: #111 !important;
  font-weight: 500 !important;
}

.single-product .woocommerce-tabs table.shop_attributes td a,
.single-product .woocommerce-tabs .woocommerce-product-attributes td a {
  color: #2563eb !important;
  text-decoration: none;
}

.single-product .woocommerce-tabs table.shop_attributes td a:hover,
.single-product .woocommerce-tabs .woocommerce-product-attributes td a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .esm-product-video__title {
    font-size: 20px;
  }

  .esm-product-video__nav {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  .esm-product-video__nav--prev {
    left: 4px;
  }

  .esm-product-video__nav--next {
    right: 4px;
  }

  .single-product .woocommerce-tabs table.shop_attributes th,
  .single-product .woocommerce-tabs table.shop_attributes td,
  .single-product .woocommerce-tabs .woocommerce-product-attributes th,
  .single-product .woocommerce-tabs .woocommerce-product-attributes td {
    display: block;
    width: 100% !important;
    padding: 10px 14px !important;
  }

  .single-product .woocommerce-tabs table.shop_attributes th,
  .single-product .woocommerce-tabs .woocommerce-product-attributes th {
    border-bottom: 0 !important;
    padding-bottom: 4px !important;
  }

  .single-product .woocommerce-tabs table.shop_attributes td,
  .single-product .woocommerce-tabs .woocommerce-product-attributes td {
    padding-top: 0 !important;
    padding-bottom: 12px !important;
  }
}
