.product__main-images .product__main-smallimages-wrapper {
    position: relative;
    height: 400px;
    padding-right: 8px;
}

.product__main-images .swiper-scrollbar {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    border-radius: 3px;
    background: rgba(255, 0, 0, 0.1);
}

.product__main-images .swiper-scrollbar-drag {
    background: #8C0014;
    border-radius: 3px;
    cursor: pointer;
}

.product__main-images .product__main-smallimages {
    height: 100%;
    padding-right: 10px;
}

.detail-video-table {
    display: flex;
    flex-wrap: wrap;
    gap: 55px;
    margin-bottom: 20px;
}

.detail-video-table-desc {
    max-width: calc((100% - 15px * 1) / 2);
}

.product__content h4 {
    font-weight: 600;
    font-size: 24px;
    line-height: 24px;
    color: #000000;
}

.catalog .catalog-active {
    height: unset;
}

@media screen and (max-width: 768px) {
    .detail-video-table {
        justify-content: center;
        gap: 20px;
    }

    .detail-video-table-desc,
    .detail-video-table-video,
    .detail-video-table-video .video-js {
        max-width: 100%;
    }

    .detail-video-table-desc {
        padding: 0 20px;
    }

    .product .product__tab {
        margin-top: 35px;
        height: auto;
    }

}

@media (max-width: 762px) {
    .product__tab .product__tab-wrapper {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 5px 20px;
    }
}

@media screen and (max-width: 576px) {
    .product .product__tab {
        margin-top: 0;
    }
}

.question_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.question_sep {
    margin: 32px 1px;
    height: 3px;
    background: #f3f3f3;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.questions-item {
    border-bottom: 1px solid #f3f3f3;
    padding-bottom: 20px;
}

.qi-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 15px;
}

.qi-header-name {
    line-height: 24px;
    font-size: 20px;
    font-weight: 600;
}

.qi-header-date, .qi-answer-date {
    line-height: 24px;
    font-size: 16px;
    font-weight: 500;
}

.qi-question {
    box-shadow: inset 0 1px 0 #fff;
    border-radius: 5px;
    border: 1px solid #f3f3f3;
    background-color: #fff;
    padding: 24px 32px;
    margin-bottom: 8px;
}

.qi-answer-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0 15px 35px;
}

.qi-answer-name {
    color: #8C0014;
    font-size: 18px;
    font-weight: 600;
}

.qi-answer-text {
    color: #222d38;
    box-shadow: inset 0 1px 0 #fff;
    border-radius: 5px;
    background-color: #f3f3f3;
    padding: 24px;
    margin-left: 35px;
}

.more-btn {
    text-align: center;
    padding-top: 5px;
}

@media screen and (max-width: 768px) {

    .question_header {
        flex-direction: column;
    }

    .qi-answer-header {
        padding: 15px 0 15px 5px;
    }

    .qi-question {
        padding: 24px 22px;
        margin-bottom: 7px;
    }

    .qi-answer-text {
        padding: 22px;
        margin-left: 5px;
    }

}

/* ОТЗЫВЫ */

#file-input {
    padding: 12px 16px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
}

#file-input:hover {
    border-color: #a1a1a1;
    background-color: #fafafa;
}

#file-input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

/* Стили для выбранных файлов */
#file-input::file-selector-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #000;
    color: white;
    font-weight: 500;
    cursor: pointer;
    margin-right: 16px;
    transition: background-color 0.3s;
}

#file-input::file-selector-button:hover {
    background-color: #000;
}

/* стилизация звездочек рейтинга */

.rating-container {
    position: relative;
    padding: 15px 0;
    width: 100%;
}

.rating-line {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rating-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.stars-rating {
    display: flex;
    gap: 2px;
    direction: ltr; /* Меняем на ltr для правильного позиционирования */
    flex-shrink: 0;
}

.star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    user-select: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Звезды при наведении - все жёлтые */
.stars-rating:hover .star {
    color: #ffc107;
}

/* При наведении на конкретную звезду - делаем все звёзды слева от неё жёлтыми,
   а звёзды справа - серыми */
.star:hover ~ .star {
    color: #ddd !important;
}

/* Если есть выбранный рейтинг - показываем оранжевый цвет */
.star.selected {
    color: #ff9800;
}

/* При наведении на область звёзд, когда рейтинг уже выбран */
.stars-rating:has(.star.selected):hover .star.selected {
    color: #ffc107; /* Временный жёлтый при наведении */
}

/* При наведении на конкретную звезду, когда рейтинг уже выбран */
.star:hover ~ .star.selected {
    color: #ddd !important; /* Сбрасываем цвет у звёзд справа */
}

/* Тень для выбранных звёзд */
.star.selected {
    text-shadow: 0 0 8px rgba(255, 152, 0, 0.3);
}

.rating-hint {
    font-size: 14px;
    color: #666;
    min-width: 120px;
    flex-shrink: 0;
    font-style: italic;
}

/* Для лучшей видимости при выборе */
.rating-hint.selected {
    color: #ff9800;
    font-weight: 500;
    font-style: normal;
}

/* Адаптивность для мобильных */
@media (max-width: 576px) {
    .rating-line {
        gap: 10px;
    }

    .star {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }

    .rating-hint {
        min-width: 100px;
        font-size: 13px;
    }
}

/* preloader */
.product__wrapper #preloader {
    margin: 0px auto;
    text-align: center;
}

.product__wrapper .lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 65px;
    height: 30px
}

.lds-ellipsis div {
    position: absolute;
    top: 14px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #55799e;
    animation-timing-function: cubic-bezier(0, 1, 1, 0)
}

.lds-ellipsis div:nth-child(1) {
    left: 6px;
    animation: lds-ellipsis1 .6s infinite
}

.lds-ellipsis div:nth-child(2) {
    left: 6px;
    animation: lds-ellipsis2 .6s infinite
}

.lds-ellipsis div:nth-child(3) {
    left: 26px;
    animation: lds-ellipsis2 .6s infinite
}

.lds-ellipsis div:nth-child(4) {
    left: 45px;
    animation: lds-ellipsis3 .6s infinite
}

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0)
    }
    100% {
        transform: scale(1)
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1)
    }
    100% {
        transform: scale(0)
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0)
    }
    100% {
        transform: translate(19px, 0)
    }
}

/* END preloader*/
