@import "./vars.css";

.article h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
}
.article h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
}
.article h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  text-align: left;
}
.article ul {
  margin-left: 20px;
  display: flex;
  gap: 6px;
  flex-direction: column;
  padding-bottom: 8px;
}
.article li {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.articles-wrapper-content table {
  width: 100%;
  border-collapse: separate; /* Важно для border-radius */
  border-spacing: 0; /* Убираем промежутки между ячейками */
  margin: 1.5rem 0;
  font-family: Arial, sans-serif;
  background-color: #fff; /* Фон для скруглённых углов */
  border-radius: 12px; /* Основное скругление */
  overflow: hidden; /* Скрываем "вылезающие" углы */
  box-shadow: 0 0px 50px -25px rgba(0, 0, 0, 0.1);
  border-width: 0 !important;
}

/* Скругление верхних углов у первой строки (thead) */
.articles-wrapper-content thead tr:first-child th:first-child {
  border-top-left-radius: 12px;
}
.articles-wrapper-content thead tr:first-child th:last-child {
  border-top-right-radius: 12px;
}

/* Скругление нижних углов у последней строки */
.articles-wrapper-content tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}
.articles-wrapper-content tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* Стили для шапки таблицы (thead) */
.articles-wrapper-content thead {
  background-color: #f5f5f6 !important;
}

.articles-wrapper-content thead td {
  padding: 16px 20px; /* Увеличенные отступы для крупного текста */
  text-align: left;
  color: #2c2c2c !important; /* Цвет текста */
  font-weight: 600 !important; /* Жирность */
  font-size: 20px !important; /* Размер шрифта */
  position: sticky;
  top: 0;
}

/* Тело таблицы */
.articles-wrapper-content tbody td {
  padding: 8px 16px;
  border-bottom: 1px solid #f5f5f6;
  font-size: 16px; /* Размер текста в ячейках */
}

.articles-wrapper-content tbody td a {
  color: var(--primary);
  cursor: pointer;
}

/* Чередование строк */
/* .articles-wrapper-content tbody tr:nth-child(even) {
  background-color: #f9f9f9;
} */

/* Эффект при наведении */
.articles-wrapper-content tbody tr:hover {
  background-color: #f3faff;
}

/* Подпись таблицы */
.articles-wrapper-content table caption {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: left;
  color: #2c2c2c;
}

/* articleProduct */
.articleProduct .article-product-slider-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 350px;
  max-height: 350px;
  margin: 0 auto;
  position: relative;
}

.article-product-slider-navigation {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.articleProduct .article-product-slider-wrapper:hover .article-product-slider-navigation {
  opacity: 1;
}

.article-product-swiper-pagination {
  display: flex;
  justify-content: center;
}

.articleProduct .article-product-slider__images {
  width: 100%;
  min-width: 350px;
  height: 100%;
  padding-bottom: 20px;
}

.articleProduct .article-product-slider__thumbs {
  width: 100%;
  height: 56px;
  margin-top: 16px;
}

.articleProduct .article-product-slider__thumbs .swiper-slide {
  width: 56px !important;
  height: 56px !important;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease;
  padding: 5px 9px;
}

.articleProduct .article-product-slider__thumbs .swiper-slide-thumb-active {
  border-color: var(--primary);
}

.articleProduct .article-product-slider__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article-product-slider__images .article-product-slider__image {
  display: flex;
  justify-content: center;
}

.article-product-slider__images .article-product-slider__image img {
  height: 260px;
}

.articleProduct .product-characteristic-item {
  margin-top: 0;
  justify-content: start;
  gap: 4px;
}

.article-product__offer-link {
  cursor: pointer;
  margin-top: 12px;
  padding: 9px 16px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .article-product__offer-link {
    width: 100%;
  }
}

.article-product__no-offers-btn {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .article-product__no-offers-btn {
    width: 100%;
  }
}

/* articleModel */
.articleModel .article-model-slider-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 350px;
  max-height: 350px;
  margin: 0 auto;
  position: relative;
}

.article-model-slider-navigation {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.articleModel .article-model-slider-wrapper:hover .article-model-slider-navigation {
  opacity: 1;
}

.article-model-swiper-pagination {
  display: flex;
  justify-content: center;
}

.articleModel .article-model-slider__images {
  width: 100%;
  height: 100%;
  padding-bottom: 20px;
}

.articleModel .article-model-slider__thumbs {
  width: 100%;
  height: 56px;
  margin-top: 16px;
}

.articleModel .article-model-slider__thumbs .swiper-slide {
  width: 56px !important;
  height: 56px !important;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease;
  padding: 5px 9px;
}

.articleModel .article-model-slider__thumbs .swiper-slide-thumb-active {
  border-color: var(--primary);
}

.articleModel .article-model-slider__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article-model-slider__images .article-model-slider__image {
  display: flex;
  justify-content: center;
}

.article-model-slider__images .article-model-slider__image img {
  height: 260px;
}

.articleModel .product-characteristic-item {
  margin-top: 0;
  justify-content: start;
  gap: 4px;
}

.article-model__offer-link {
  cursor: pointer;
  margin-top: 12px;
  padding: 9px 16px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .article-model__offer-link {
    width: 100%;
  }
}

.article-model__no-offers-btn {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .article-model__no-offers-btn {
    width: 100%;
  }
}

.swiper-pagination-bullet {
  background: #cccccc;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 10px;
}
