﻿/* Общие стили */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}
/* Применяем scroll snap для всей страницы */

/* Основной контейнер */
.main-content {
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    margin: 0 auto;
}

/* Hero-секция */
/* Используем fixed, чтобы задний фон был за шапкой, но важно чтобы .home-image не имела отрицательного z-index */
.home-image {
    top: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    pointer-events: none;
}

    .home-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease, opacity 0.3s ease;
        will-change: transform, opacity;
        z-index: 0;
        pointer-events: none;
    }

/* Отступ для основного контента, чтобы он не накладывался на hero */
.main-content {
    /*padding-top: 100vh;*/
}

/* Стрелка вниз – тёмный вариант */
.scroll-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    color: #fff;
    background: rgba(0,0,0, 0.9);
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    animation: blink 1.5s infinite;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

@keyframes blink {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Остальные стили остаются без изменений */
.main-content h2 {
    text-align: center;
}

/* Панель */
.panel {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 50px;
    background-color: rgba(224,242,252, 0.7);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Заголовок панели */
h2 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
}

/* Навигационные стрелки */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

    .arrow:hover {
        background-color: rgba(0, 0, 0, 0.9);
    }

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

/* Контейнер для товаров */
.scrollable-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px;
}

/* Карточка товара */
.new-arrival-item {
    width: 200px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Внутренний контейнер */
.work-item {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Изображение товара */
.new-arrival-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Название товара (сверху) */
.item-title {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 0 3px black, 0 0 5px black;
}

/* Цена товара (снизу) */
.item-price {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 0 3px black, 0 0 5px black;
}


/* Эффект увеличения при наведении */
.new-arrival-item:hover {
    transform: scale(1.05);
}

    .new-arrival-item:hover .new-arrival-image {
        transform: scale(1.1);
    }

/* Стили для блока выбора по стилю */
.choose {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.choose-item {
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    cursor: pointer;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .choose-item:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    .choose-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }

    .choose-item p {
        position: absolute;
        bottom: 10px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 5px 10px;
        font-size: 14px;
        border-radius: 5px;
    }

/* Стили для блока индивидуального заказа */
.spez {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(to top left, rgba(224,242,252), white);
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.spez-content {
    max-width: 50%;
}

.spez p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.spez-buttons {
    margin-top: 20px;
}

    .spez-buttons button {
        border-radius: 7px;
        border: 1px solid #222;
        margin: 20px;
        cursor: pointer;
    }

.spez img {
    max-width: 25%;
    height: auto;
}
.hide-arrow {
    opacity: 0 !important;
    pointer-events: none !important;
    animation: none !important;
}
/* Стили адаптации для мобильных устройств */

@media (max-width: 768px) {

    .main-content {
        padding: 10px;
    }

    .home-image {
        display: none;
    }

    .arrow {
    }

    .scrollable-container {
        overflow-x: scroll;
        padding-bottom: 10px;
    }

    .new-arrival-item {
        width: 150px;
        height: 200px;
    }

    .choose {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        justify-items: center;
    }


    .choose-item {
        width: 125px;
        height: 125px;
    }

    .spez {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .spez-content {
        max-width: 100%;
        padding: 0 10px;
    }

    .spez img {
        max-width: 100%;
        margin-top: 20px;
    }


    .item-title,
    .item-price {
        font-size: 12px;
    }

    h2 {
        font-size: 20px;
    }

    .modal-content {
        width: 90%;
        padding: 15px;
    }

        .modal-content img {
            width: 100%;
        }
}