/* Убираем скролл и растягиваем фон */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* запрет скролла */
}

/* Фон на весь экран */
body {
    background-image: url('img/background2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    font-family: 'Playfair Display', serif;
}

/* Хедер */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    z-index: 100;
    display: flex;
    align-items: center;
}
.logo {
    height: 170px;
    width: auto;
}


/* Основной экран */
.product-page {
    height: 100vh; /* на весь экран */
    display: flex;
    align-items: center;
    justify-content: center; /* по центру горизонтально */
    padding: 0 40px;
    position: relative; /* для вложенных элементов */
}

/* Контейнер */
.product-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Текст */
.product-info {
    flex: 1;
}

.product-info h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #d4af37;
}

.product-description {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 10px;
}

.product-features li {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/* Кнопка */
.product-btn {

    display: inline-block;
    padding: 14px 30px;
    border: 2px solid #d4af37;
    border-radius: 8px;
    text-decoration: none;
    color: #000;
    background: #fff;
}
.product-btn:hover {
    background: linear-gradient(45deg, #b87333, #caa179); /* медный градиент */
    color: #fff; /* текст меняем на белый для контраста */
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212,175,55,0.4);
}

/* Картинка */
.product-image {
    flex: 1;
}

.product-image img {
    width: 100%;
}
/* Карусель */
.carousel {
    position: relative;
    overflow: hidden;
}

/* Лента */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* Картинки */
.carousel-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Кнопки */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}
/* Превью */
.carousel-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

/* Мини-картинки */
.thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: 0.3s;
}

/* Активная */
.thumb.active {
    opacity: 1;
    border-color: #d4af37;
}

/* Hover */
.thumb:hover {
    opacity: 1;
}
.product-subtitle {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #d4af37;
}
/* ========== Адаптив для планшетов и смартфонов ========== */

  
/* ========== Адаптив для планшетов и мобильных устройств ========== */
@media (max-width: 1024px) {
    html, body {
        overflow: auto; /* разрешаем скролл */
        height: auto;
    }

    .product-page {
        padding: 20px 15px;
        flex-direction: column; /* колонки для мобильных */
        align-items: center;
    }

    .product-container {
        flex-direction: column; /* заголовок над картинкой */
        gap: 15px;
        align-items: center;
    }

    /* Заголовок над картинкой */
    .product-info {
        order: -1; /* помещаем h1 над картинкой */
        width: 100%;
        text-align: center;
    }

    .product-info h1 {
        font-size: 2.8rem;
        margin-bottom: 20px;
        color: #d4af37;
    }

    .product-subtitle,
    .product-description {
        font-size: 1.4rem;
        text-align: center;
    }

    .product-features li {
        font-size: 1.15rem;
        margin-bottom: 8px;
        text-align: center;
    }

    .product-btn {
        width: 90%;
        font-size: 1.2rem;
        padding: 16px 0;
    }

    .product-image {
        width: 100%;
    }

    .product-image img,
    .carousel-img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
        border-radius: 12px;
    }

    .carousel-btn {
        font-size: 1.6rem;
        padding: 6px 10px;
    }

    /* Скрываем мини-превью */
    .carousel-thumbs {
        display: none;
    }
}

/* ========== Свайп для мобильных устройств ========== */
.carousel-track {
    touch-action: pan-x; /* разрешаем свайп по оси X */
    -webkit-overflow-scrolling: touch;
}