/* style.css */

body {
    background-color: #ffffff;
    font-family: 'Google Sans', 'Roboto', 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    color: #000000;
    margin: 0;
    padding: 0;
}

a { font-size: 15px; color: #0000cc; text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { color: #CC0000; font-size: 22px; font-weight: bold; margin-bottom: 15px; }
h2 { font-size: 19px; font-weight: bold; margin-top: 20px; }
h3 { font-size: 16px; font-weight: bold; }

ul { margin: 4px 20px 0; padding-left: 20px; }
li { padding-bottom: 4px; }
p  { margin: 0; padding-bottom: 8px; }
img { max-width: 100%; height: auto; }

/* Контейнер */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Шапка */
.site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

@media (min-width: 768px) {
    .site-header { gap: 100px; }
}

.header-block { text-align: left; }
.header-block.center { text-align: center; }

.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    min-height: 25px;   /* всі рядки однакової висоти незалежно від наявності іконок */
}
.contact-row a { text-decoration: none; color: #000; }
.contact-icon { width: 25px; height: 25px; object-fit: contain; }

/* Каталог */
.catalog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.catalog-item { text-align: center; max-width: 250px; }

/* Таблиця характеристик товару */
.tech-specs {
    border-collapse: collapse;
    margin-bottom: 20px;
}
.tech-specs th,
.tech-specs td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    white-space: normal;
}
.tech-specs th { text-align: center; background: #f9f9f9; }


/* Таблиця каталогу */
.catalog-table {
    border-collapse: collapse;
    margin-bottom: 16px;
}
.catalog-table th,
.catalog-table td {
    border: 1px solid #ccc;
    padding: 4px 6px;
    text-align: center;
    white-space: normal;        /* переноситься по пробілах скрізь */
}
.catalog-table th {
    background: #f9f9f9;
    font-size: 16px;
}
/* Перша колонка (назва) — вліво */
.catalog-table td:first-child,
.catalog-table th:first-child {
    text-align: left;
}
/* Ячейки з colspan — довгі слова теж переносяться */
.catalog-table td[colspan],
.catalog-table th[colspan] {
    overflow-wrap: break-word;
}
/* Колонка ціни */
.catalog-table .col-price {
    color: #CC0000;
    font-weight: bold;
}
/* Заборонити перенос у конкретній ячейці — додайте style="white-space:nowrap" або клас .nowrap */
.nowrap { white-space: nowrap; }

/* Ціни — два класи:
   .price      — для каталогів (жирний, червоний, звичайний розмір)
   .price-lg   — для сторінки товару (на 1 розмір більше) */
.price {
    font-weight: bold;
    color: #CC0000;
}

.price-lg {
    font-weight: bold;
    font-size: 26px;
}

.price-suffix {
    font-size: 19px;
    font-weight: bold;
}

/* Кнопка замовлення */
.order-btn {
    background: #d90000;
    color: #fff;
    padding: 7px 17px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .3s;
    margin: 5px 0;
}
.order-btn:hover { background: #b50000; }

/* Сповіщення */
.notify {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    border-radius: 6px;
    color: #fff;
    opacity: 1;
    transition: .5s;
    z-index: 9999;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
}
.notify.success { background: #2ecc71; }
.notify.error   { background: #e74c3c; }
.notify.hide    { opacity: 0; transform: translate(-50%, -60%); }

/* YouTube */
.video-wrap {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
    aspect-ratio: 16 / 9;  /* змініть на 4/3 якщо відео квадратне */
}
.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Підвал */
.site-footer {
    text-align: right;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* 9:16 */
    height: 0;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    .video-container {
        padding-bottom: 0;
        height: 90vh;
        width: auto;
        aspect-ratio: 9 / 16;
    }
}