@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Montserrat:wght@400;500;600;700&display=swap');

/* =========================
   ГЛОБАЛЬНЫЙ СТИЛЬ
========================= */

body {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  background-color: #fff;
  color: #111;
}

[class*=__container] {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 55px;
}

/* =========================
   ХЕДЕР
========================= */

.main__header {
  padding: 10px 0;
  background-color: #f9f9f9;
  box-shadow: inset 0px -1px 0px rgba(0,0,0,0.1);
}

.header__container {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.menu__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu__list {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu__item {
  display: flex;
  align-items: center;
}

.menu__link {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

.menu__link:hover {
  color: #0b4c52;
}

.site-logo h1 {
  margin: 0;
  font-size: 35px;
  font-weight: 700;
}

.site-logo a {
  color: #111;
  text-decoration: none;
}

/* =========================
   КОНТЕЙНЕР СТРАНИЦЫ (2 КОЛОНКИ)
========================= */

.page-container.two-col-layout {
    display: grid;
    grid-template-columns: 650px 1fr; /* левая колонка стала шире */
    gap: 40px;
    max-width: 1600px;
    margin: 40px auto;
    padding: 0 40px;
}

/* Левая колонка */
.left-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* =========================
   ПАНЕЛЬ ТОВАРА
========================= */

.product-panel {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-title {
  font-size: 24px;
  font-weight: 700;
}

.price-block {}
.price-current {
  font-size: 36px;
  font-weight: 700;
}

.price-current sup {
  font-size: 18px;
}

/* Материалы */
.materials-container {
  display: flex;
  align-items: center;
}

.materials {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  color: #000;
  text-decoration: none;
}

.materials img {
  width: 20px;
  margin-left: 8px;
}

/* Ориентация (кнопки переключения) */
  .orientation-label {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #222;
  }
  .orientation-buttons {
    display: flex;
    gap: 12px;
  }
  .orientation-button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    width: 56px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition:
      border-color 0.3s ease,
      background-color 0.3s ease;
  }
  .orientation-button svg {
    width: 40px;
    height: 20px;
    stroke: #666;
    stroke-width: 1.5;
    fill: none;
  }
  .orientation-button.active {
    border-color: #a7c584;
    background-color: #eff9ea;
  }
  .orientation-button.active svg {
    stroke: #007b8f;
  }
  .orientation-button:hover:not(.active) {
    border-color: #a7c584;
  }

/* Копирование кода */
.copy {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* сам текст подсказки */
.copy::after {
    content: "Скопируйте код";
    position: absolute;
    top: -32px;               /* над кодом */
    left: 50%;
    transform: translateX(-50%);
    background: #000000d0;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
}

/* маленький треугольник снизу */
.copy::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #000000d0;
    opacity: 0;
    transition: 0.25s ease;
}

/* Появление при наведении */
.copy:hover::after,
.copy:hover::before {
    opacity: 1;
}

.copy p {
  font-size: 16px;
  font-weight: 500;
  margin-right: 10px;
}

.copy img {
  width: 20px;
}

/* Модалка копирования */
.copy-modal {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 9999;
}
.copy-modal.show {
  opacity: 1;
}

/* Кнопка заказа + дропдаун */
.quantity-cart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-cart-container {
  position: relative;
  width: 100%;
}

.btn-cart {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #a7c584;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
}

.btn-cart:hover {
  background: #6b8a47;
}

/* Выпадающий список */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: 0.3s;
  list-style: none;
  margin: 5px 0 0 0;
  padding: 0;
}

.btn-cart-container.open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
  padding: 14px 16px;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

.dropdown-item img {
  width: 20px;
}

/* =========================
   ГАБАРИТЫ (изображение + таблица)
========================= */

.dimensions-img {
  width: 100%;
  margin-bottom: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.dimensions-img--zoomed {
  transform: scale(1.2);
  z-index: 10;
  position: relative;
}

/* Таблица под картинкой */
.specs {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}

.specs tr {
  border-bottom: 1px solid #e7e7e7;
}

.specs td {
  padding: 10px 0;
}

.specs td:last-child {
  font-weight: 500;
  text-align: right;
}

/* =========================
   ОПИСАНИЕ
========================= */

.description-block {
  font-size: 15px;
  line-height: 1.8;
}

.description-block p {
  margin-bottom: 16px;
}

/* =========================
   ХАРАКТЕРИСТИКИ
========================= */

.container h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.section-title {
  font-weight: 700;
  margin: 30px 0 10px;
}

.spec-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid #eee;
}

.spec-table td {
  padding: 8px 0;
}

.spec-table td:first-child {
  color: #666;
  width: 400px;
}

/* =========================
   ПРАВАЯ КОЛОНКА (ФОТО)
========================= */
.right-gallery {
    position: relative; /* обязательно для стрелок */
}

.right-gallery .gallery-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
}

.right-gallery img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

/* =========================
   МОБИЛЬНЫЙ СЛАЙДЕР
========================= */

/* Общие стили для изображений в слайдере */
.right-gallery .slide img {
  width: 100%;
  height: auto;
  display: block;  /* Убирает лишние пробелы */
  opacity: 1 !important;  /* Принудительно показывает, даже если JS/CSS скрывает */
  visibility: visible !important;
  object-fit: cover;  /* Чтобы фото заполняло слайд без искажений */
}

.right-gallery .slide {
  flex-shrink: 0;  /* Уже рекомендовал — добавьте, если нет */
  width: 100%;  /* Фиксируем ширину, помимо min-width */
  box-sizing: border-box;  /* Учитывает padding/border в ширине */
}

.slider-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
}
.dot.active {
  background: #0b4c52;
}

/* =========================
   АДАПТИВ
========================= */

@media (max-width: 768px) {

  .page-container.two-col-layout {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .right-gallery .gallery-wrapper {
    flex-direction: row;
    overflow: hidden;
    gap: 0;
  }

  .right-gallery .slide {
    min-width: 100%;
    flex-shrink: 0;  /* Добавлено: предотвращает сжатие слайдов */
    width: 100%;
  }

  .slider-dots {
    display: flex;
  }
}

/* Стрелки слайдера */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    padding: 10px 14px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    user-select: none;
}

.slider-arrow-left {
    left: 10px;
}

.slider-arrow-right {
    right: 10px;
}

@media (min-width: 768px) {
    .slider-arrow {
        display: none;
    }
}