/* Основные стили для body */
html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
    /* Минимальная высота 100% экрана */
    display: flex;
    flex-direction: column;
    /* Страница выстраивается по колонкам */
    background-color: #eaeaea;
}

/* Контейнер для основного контента */
main {
    flex: 1;
    /* Занимает всё доступное пространство */
    padding-bottom: 60px;
    /* Отступ для футера */
}

/* Фиксированная шапка продукта */
.product-header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #ddd;
    padding-top: 50px;
    backdrop-filter: blur(5px);
    /* Размытие фона позади элемента */
}

.product-title {
    font-size: 20px;
    color: black;
    margin: 0;
    font-weight: 700;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 50px);
    padding-right: 5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.product-price {
    font-size: 20px;
    color: #2bad64;
    margin: 0;
    font-weight: 550;
    text-align: right;
    flex-shrink: 0;
    max-width: 130px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.old-price {
    font-size: 17px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.new-price {
    font-size: 20px;
    color: #2bad64;
    font-weight: 550;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}


/* Описание продукта */
.product-description {
    font-size: 18px;
    margin: 0;
    text-align: center;
    font-weight: bold;
    padding-top: 100px;
    padding-left: 8px;
    padding-right: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Список характеристик */
.product-specifications {
    list-style: none;
    padding: 0 20px;
    margin-top: 0;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.product-specifications li {
    font-size: 16px;
    margin: 12px 0;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

#truth ul {
    list-style: none;
    padding: 0 20px;
    margin-top: 0;
    text-align: left;
}

#truth ul li {
    padding-bottom: 5px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.video-icon {
    display: block;
    /* Делает элемент блочным */
    margin: 1px auto;
    /* Уменьшаем отступы сверху и снизу */
    width: calc(16.67% - 10px);
    /* Уменьшаем ширину на 50% */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    /* Лёгкая тень для объёма */
    border-radius: 15px;
    /* Сохраняем радиус углов */
    border: none;
    /* Убираем рамку */
    outline: none;
    /* Убираем контуры */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.video-icon:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* Подпрыгивание при клике */
.video-icon:active {
    transform: translateY(-3px) scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.copy-link-btn {
    display: block;
    margin: 12px auto 0;
    width: calc(16.67% - 10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.copy-link-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.copy-link-btn:active {
    transform: translateY(-3px) scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#copyLinkContainer {
    position: relative;
    text-align: center;
}

.copy-status {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 320px;
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #777;
    text-align: center;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}


.tab-switch {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-weight: bold;
}

.tab {
    cursor: pointer;
    color: #777;
    padding: 10px 15px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
    position: relative;
    /* Убираем слишком большие отступы */
}

.tab.active {
    color: black;
    border-bottom: 2px solid black;
}

.tab-content {
    padding: 7px 20px;
}

/* Уменьшение отступа для текста во вкладке "По чесноку" */
.tab-content .cheeky-text {
    padding-top: 5px;
    /* Можно подкорректировать, если нужно меньше */
}

.product-image-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.main-image {
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}

.thumbnails img:hover {
    border-color: #555;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
    .product-header-fixed {
        padding: 10px 10px;
        /* Уменьшение отступов в шапке */
        padding-top: 54px;
        /* Меньший отступ сверху */
    }

    .video-icon {
        width: 55%;
        /* или другое значение, если нужно */
        margin: 1px auto;
        margin-bottom: 10px;
    }

    .copy-link-btn {
        width: 55%;
        /* или другое значение, если нужно */
        margin: 1px auto;
        margin-bottom: 10px;
    }

    .product-header {
        flex-wrap: wrap;
    }

    .product-title {
        text-align: left;
    }

    .product-price {
        text-align: right;
        padding-right: 20px;
    }

    .product-description {
        font-size: 16px;
        font-weight: bold;
        margin-left: 5px;
        margin-right: 5px;
    }

    .main-image {
        width: 95%;
    }

    .thumbnails img {
        width: 50px;
        height: 50px;
    }

    .product-specifications {
        padding: 0 1px;
    }

    .product-specifications li {
        font-size: 15px;
        margin: 10px 0;
    }

    #truth ul {
        padding: 0 1px;
    }

    #truth ul li {
        font-size: 15px;
    }
}


@media (max-width: 360px) {
    .product-header-fixed {
        padding: 10px 10px;
        /* Уменьшение отступов в шапке */
        padding-top: 54px;
        /* Меньший отступ сверху */
    }

    .product-title {
        font-size: 19px;
        margin-top: 0;
    }

    .product-price {
        font-size: 19px;
        margin-top: 0;
        padding-right: 20px;
    }

    .product-description {
        font-size: 17px;
        font-weight: bold;
        padding-top: 90px;
    }

    .product-specifications li {
        font-size: 15px;
    }
}