/* === Стили блока информации о товаре === */
.custom-product-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    text-align: center;
    list-style: none;
    margin: 20px 0;
    background: #f8f9fa; /* Светлый фон */
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Элементы списка характеристик */
.custom-product-info-item {
    flex: 1 1 18%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    min-width: 120px;
    border-left: 1px solid #ddd; /* Разделитель */
}

/* Убираем разделительную линию у первого элемента */
.custom-product-info-item:first-child {
    border-left: none;
}

/* Значения характеристик (ЗЕЛЕНЫЙ) */
.custom-info-value {
    font-size: 1.6em;
    font-weight: bold;
    color: #28a745; /* Зеленый цвет */
}

/* Описание характеристик (СИНИЙ) */
.custom-info-label {
    font-size: 0.9em;
    font-weight: 600;
    margin-top: 5px;
    color: #007bff; /* Синий цвет */
}

/* --- Адаптация для планшетов и мобильных устройств --- */
@media (max-width: 1024px) {
    .custom-product-info {
        flex-wrap: wrap;
    }

    .custom-product-info-item {
        flex: 1 1 45%;
        border-left: none;
        border-bottom: 1px solid #ddd;
    }
}

@media (max-width: 768px) {
    .custom-product-info {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .custom-product-info-item {
        width: 100%;
        border-bottom: 1px solid #ddd;
        padding: 15px 0;
    }

    .custom-product-info-item:last-child {
        border-bottom: none;
    }
}

/* --- Таблица --- */
.table-wrapper {
    width: 100%;
    overflow-x: auto; /* Добавляет горизонтальный скролл */
    -webkit-overflow-scrolling: touch; /* Плавная прокрутка на мобильных */
    display: flex;
    justify-content: center;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Обязательно, чтобы уголки не срезались */
    border: 1px solid #0073e6;
}

/* Заголовки таблицы */
.styled-table thead {
    background-color: #0073e6;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

/* Общие стили ячеек */
.styled-table th, .styled-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #d1d1d1; /* Тонкие границы между ячейками */
    line-height: 1.3;
}

/* Чередование цветов строк */
.styled-table tbody tr:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Выделение строки */
.highlight-green {
    background-color: #c8e6c9 !important;
    font-weight: bold;
    text-transform: uppercase;
}

/* Подсветка строки при наведении */
.styled-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
}

/* Выравнивание текста в первой колонке */
.styled-table td:first-child {
    font-weight: bold;
    white-space: nowrap;
    text-align: left;
}
/* --- для мобильных --- */

@media (max-width: 768px) {
    /* Скрываем шапку */
    .styled-table thead {
        display: none;
    }

    /* Каждая строка — flex-контейнер, чтобы "ломать" столбцы */
    .styled-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 10px;
        border: 1px solid #ddd;
    }

    /* Общие стили ячеек на мобильном */
    .styled-table tbody td {
        position: relative;
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
        text-align: center;
        border: none;
        border-bottom: 1px solid #ddd;
        margin: 0;

        /* Вместо светлого #f1f1f1 делаем тёмно-серый фон */
        background-color: #444 !important;
        color: #fff !important; 
    }

    /* Последней ячейке убираем нижнюю границу */
    .styled-table tbody td:last-child {
        border-bottom: none;
    }

    /* --- Первая ячейка (модель) на всю ширину и цвет как у заголовка --- */
    .styled-table tbody td:nth-child(1) {
        flex: 1 1 100%;
        background-color: #0073e6 !important; /* Синий, как thead */
        color: #fff !important;
        font-weight: bold;
        font-size: 18px;
        text-transform: uppercase;
        text-align: center;
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 4px;
    }

    /* У каждой ячейки псевдо-заголовок, но убираем фон (делаем его прозрачным) */
    .styled-table tbody td:nth-child(2)::before,
    .styled-table tbody td:nth-child(3)::before,
    .styled-table tbody td:nth-child(4)::before,
    .styled-table tbody td:nth-child(5)::before {
        display: block;
        background-color: transparent !important; /* убираем тёмный фон */
        color: #fff; 
        font-weight: bold;
        margin-bottom: 5px;
        text-align: left;
        border-radius: 4px;
        padding: 0; /* если хотите убрать "вложенный" отступ */
    }

    /* Подставляем текст для псевдо-заголовков */
    .styled-table tbody td:nth-child(2)::before {
        content: "Потребляемая мощность, кВт";
    }
    .styled-table tbody td:nth-child(3)::before {
        content: "Полезная мощность, л.с.";
    }
    .styled-table tbody td:nth-child(4)::before {
        content: "Производительность (H - 10 м), м³/ч";
    }
    .styled-table tbody td:nth-child(5)::before {
        content: "Бассейн";
    }

    /* --- Ослабляем highlight-green, чтобы не перебивал цвет модели --- */
    .styled-table tbody tr.highlight-green td {
        background-color: inherit !important; 
        font-weight: normal !important;
        text-transform: none !important;
    }
}


/* === Стилизация калькулятора дозировки pH Minus === */

/* Контейнер калькулятора */
#ph-calculator-wrapper .custom-product-info {
  max-width: 600px;
  margin-top: 20px;
  font-family: Arial, sans-serif;
}

/* Заголовок калькулятора */
#ph-calculator-wrapper .ph-calculator-title {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #222;
}

/* Поля ввода и выпадающий список */
#ph-calculator-wrapper input,
#ph-calculator-wrapper select {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
}

/* Стили для placeholder */
#ph-calculator-wrapper input::placeholder {
  color: #aaa;
  font-style: italic;
  opacity: 0.6;
}

/* Кнопка расчета */
#ph-calculator-wrapper button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.3s;
}

#ph-calculator-wrapper button:hover {
  background-color: #45a049;
}

/* Блок с результатом */
#ph-calculator-wrapper .ph-calculator-result {
  margin-top: 20px;
  font-size: 18px;
  color: #222;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#ph-calculator-wrapper .ph-calculator-result.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Стиль дозы */
#ph-calculator-wrapper .ph-dose-output {
  background-color: #f5f5f5;
  border-left: 4px solid #4CAF50;
  padding: 12px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

/* Предупреждение о низком pH */
#ph-calculator-wrapper .ph-warning {
  font-size: 15px;
  color: #b30000;
  background-color: #fff0f0;
  border: 1px dashed #f2bcbc;
  padding: 10px;
  border-radius: 4px;
  margin-top: 12px;
  display: block;
}

/* Адаптация для мобильных устройств */
@media (max-width: 480px) {
  #ph-calculator-wrapper .custom-product-info {
    padding: 10px;
  }
  #ph-calculator-wrapper input,
  #ph-calculator-wrapper select,
  #ph-calculator-wrapper button {
    font-size: 14px;
  }
  #ph-calculator-wrapper .ph-dose-output {
    font-size: 16px;
  }
}

/* === Конец стилей калькулятора === */


/* Стили для раздела "Оплата" */
.custom-payment-block {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 15px;
  color: #333;
  margin-bottom: 30px;
}
.custom-payment-block h2 {
  margin-top: 25px;
  font-size: 20px;
  color: #222;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}
.custom-payment-block ul {
  list-style: none;
  padding-left: 0;
}
.custom-payment-block li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}
.custom-payment-block li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: #0088cc;
  font-weight: bold;
  font-size: 18px;
}

/* Стили для описаний лайнеров Elbtal Plastics — davelir.com.ua */

.liner-title {
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.3px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 4px;
  text-transform: uppercase;
}

.liner-list {
  list-style: none !important;
  padding-left: 0;
  margin: 1em 0 2em;
}

.liner-list li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.7em;
  line-height: 1.5;
}

.liner-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: #2ecc71;
  font-size: 14px;
  line-height: 1;
}

.liner-note strong {
  display: inline-block;
  background-color: #f5faff;
  border-left: 4px solid #3399ff;
  padding: 10px 12px;
  margin: 1.5em 0;
  font-weight: 600;
}

.liner-hint em {
  display: block;
  font-size: 13px;
  color: #888;
  margin-top: 1em;
}

/* Цветовая палитра лайнеров */
.liner-color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

.liner-color-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(33.33% - 20px);
  min-width: 240px;
}

.liner-color-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ccc;
  flex-shrink: 0;
}

.liner-color-name {
  font-size: 14px;
  color: #333;
}

.liner-price-note {
  background-color: #fef9ec;
  border-left: 4px solid #f39c12;
  padding: 10px 14px;
  margin: 20px 0;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

/* Примеры цветов */
.liner-color-adriatic {
  background-color: #007bc3;
}
.liner-color-sand {
  background-color: #fceecf;
}
.liner-color-lightblue {
  background-color: #a9ddf6;
}

/* Адаптация под мобильные */
@media (max-width: 600px) {
  .liner-color-item {
    width: 100%;
  }
}

/* Цветовые классы лайнеров Elbtal */
.liner-color-sand        { background-color: #fceecf; }
.liner-color-lightblue   { background-color: #a9ddf6; }
.liner-color-adriatic    { background-color: #007bc3; }
.liner-color-turquoise   { background-color: #69d1c4; }
.liner-color-lightgray   { background-color: #bcbec0; }
.liner-color-darkgray    { background-color: #4a4a4a; }
.liner-color-black       { background-color: #000000; }
.liner-color-white       { background-color: #ffffff; }
.liner-color-steelblue   { background-color: #5b85a3; }
.liner-color-midnight    { background-color: #0f2e4c; }

/* Конец стилей */

/* === Блок галереи текстурных пленок (адаптирован для всех устройств) === */
.liner-pattern-gallery {
  display: flex;                  /* Элементы в ряд */
  flex-wrap: wrap;                /* Перенос при нехватке места */
  gap: 24px;                      /* Отступы между элементами */
  margin: 30px 0;                 /* Отступ сверху и снизу */
  justify-content: space-between;/* Равномерное распределение */
  width: 100%;                    /* Занимает всю ширину родителя */
}

.liner-pattern-item {
  flex: 1 1 calc(25% - 24px);     /* 4 элемента в ряд с учётом отступов */
  max-width: 160px;               /* Ограничиваем ширину */
  text-align: center;
}

.liner-pattern-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;              /* Центрирование без искажения */
  border-radius: 50%;             /* Круглая форма */
  border: 2px solid #ccc;         /* Светлая рамка */
  transition: 0.3s;               /* Эффект при наведении */
}

.liner-pattern-item img:hover {
  border-color: #3399ff;          /* Подсветка при ховере */
}

.liner-pattern-name {
  font-size: 14px;
  color: #333;
  margin-top: 8px;
}

.hidden {
  display: none;
}

/* === Адаптация для мобильных экранов === */
@media (max-width: 768px) {
  .liner-pattern-item {
    flex: 1 1 calc(50% - 24px);   /* По 2 элемента в ряд */
    max-width: 100%;
  }

  .liner-pattern-item img {
    width: 80px;
    height: 80px;
  }

  .liner-pattern-name {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .liner-pattern-item {
    flex: 1 1 100%;               /* По одному в ряд */
    max-width: 100%;
  }

  .liner-pattern-item img {
    width: 70px;
    height: 70px;
  }

  .liner-pattern-name {
    font-size: 12px;
  }
}

/* === Блок галереи текстурных пленок END === */

