/* ========== REVIEWS.CSS - СТИЛИ ДЛЯ БЛОКА ОТЗЫВОВ ========== */

.reviews-section {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.reviews-section h2 {
    text-align: center;
    font-size: 36px;
    color: #344955;
    margin-bottom: 15px;
    font-weight: 400;
    font-family: 'Roboto Serif', serif;
}

.reviews-section .section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #4A6572;
    margin-bottom: 40px;
}

.reviews-section .section-subtitle span {
    color: #F9AA33;
    font-weight: 600;
}

/* Контейнер карусели отзывов */
.reviews-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 30px;
    padding: 0 50px;
}

/* Трек карусели */
.reviews-track-container {
    overflow: hidden;
    border-radius: 20px;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* Карточка отзыва */
.review-card {
    flex: 0 0 100%;
    padding: 10px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .review-card {
        flex: 0 0 50%; /* 2 отзыва на планшете */
    }
}

@media (min-width: 992px) {
    .review-card {
        flex: 0 0 33.333%; /* 3 отзыва на десктопе */
    }
}

.review-content {
    background: white;
    border-radius: 20px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #E0E6ED;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.review-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(249,170,51,0.1);
    border-color: #F9AA33;
}

/* Шапка отзыва */
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F9AA33, #ffb347);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.review-avatar.has-photo {
    background: transparent;
    overflow: hidden;
    padding: 0;
}

.review-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.review-author-info {
    flex: 1;
}

.review-author {
    font-size: 18px;
    font-weight: 600;
    color: #344955;
    margin-bottom: 5px;
}

.review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #4A6572;
}

.review-city {
    display: flex;
    align-items: center;
    gap: 3px;
}

.review-city i {
    color: #F9AA33;
    font-size: 12px;
}

.review-date {
    display: flex;
    align-items: center;
    gap: 3px;
}

.review-date i {
    color: #4A6572;
    font-size: 12px;
}

/* Рейтинг */
.review-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 15px;
}

.review-rating i {
    color: #F9AA33;
    font-size: 16px;
}

.review-rating i.far {
    color: #E0E6ED;
}

/* Текст отзыва */
.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #4A6572;
    margin-bottom: 15px;
    flex: 1;
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.review-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

/* Кнопка "Читать полностью" */
.review-read-more {
    background: none;
    border: none;
    color: #F9AA33;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-bottom: 15px;
    text-align: left;
    display: inline-block;
    transition: color 0.3s;
}

.review-read-more:hover {
    color: #e6991f;
    text-decoration: underline;
}

/* Товар, который заказывали */
.review-product {
    display: inline-block;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #344955;
    border: 1px solid #E0E6ED;
    margin-top: 5px;
    align-self: flex-start;
}

.review-product i {
    color: #F9AA33;
    margin-right: 5px;
    font-size: 12px;
}

/* Стрелки навигации */
.reviews-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: #F9AA33;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(249,170,51,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews-arrow:hover {
    background: #e6991f;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 15px rgba(249,170,51,0.4);
}

.reviews-arrow.prev {
    left: 0;
}

.reviews-arrow.next {
    right: 0;
}

/* Индикаторы */
.reviews-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.reviews-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #F9AA33;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.reviews-indicator.active {
    background: #F9AA33;
    transform: scale(1.2);
}

.reviews-indicator:hover {
    background: #F9AA33;
    opacity: 0.7;
}

/* Кнопка "Оставить отзыв" */
.reviews-button-wrapper {
    text-align: center;
    margin-top: 30px;
}

.reviews-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #F9AA33, #ffb347);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(249,170,51,0.3);
    text-decoration: none;
    border: none;
}

.reviews-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249,170,51,0.4);
}

.reviews-button i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.reviews-button:hover i {
    transform: translateX(5px);
}

/* Модальное окно с полным отзывом */
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 20000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.review-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

.review-modal-content {
    background: white;
    border-radius: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(249, 170, 51, 0.2);
}

.review-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #F9AA33;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(249,170,51,0.3);
}

.review-modal-close:hover {
    background: #e6991f;
    transform: rotate(90deg);
}

.review-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.review-modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F9AA33, #ffb347);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
    flex-shrink: 0;
}

.review-modal-avatar.has-photo {
    background: transparent;
    overflow: hidden;
    padding: 0;
}

.review-modal-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.review-modal-author {
    font-size: 24px;
    font-weight: 600;
    color: #344955;
    margin-bottom: 5px;
}

.review-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #4A6572;
    font-size: 14px;
}

.review-modal-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.review-modal-rating i {
    color: #F9AA33;
    font-size: 20px;
}

.review-modal-text {
    font-size: 16px;
    line-height: 1.8;
    color: #4A6572;
    margin-bottom: 25px;
    white-space: pre-line;
}

.review-modal-product {
    display: inline-block;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #344955;
    border: 1px solid #E0E6ED;
}

.review-modal-product i {
    color: #F9AA33;
    margin-right: 5px;
}

/* Адаптация */
@media (max-width: 768px) {
    .reviews-section h2 {
        font-size: 28px;
    }
    
    .reviews-section .section-subtitle {
        font-size: 16px;
    }
    
    .reviews-carousel-container {
        padding: 0 40px;
    }
    
    .reviews-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .review-modal-content {
        padding: 30px 20px;
    }
    
    .review-modal-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .review-modal-author {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .reviews-carousel-container {
        padding: 0 35px;
    }
    
    .review-content {
        padding: 20px;
    }
    
    .review-author {
        font-size: 16px;
    }
    
    .review-text {
        font-size: 14px;
    }
    
    .reviews-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}
/* ===== СТИЛИ ДЛЯ ФОРМЫ ОТПРАВКИ ОТЗЫВА ===== */

.review-form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 30000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.review-form-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

.review-form-modal-content {
    background: white;
    border-radius: 30px;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(249, 170, 51, 0.2);
}

.review-form-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #F9AA33;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(249,170,51,0.3);
}

.review-form-modal-close:hover {
    background: #e6991f;
    transform: rotate(90deg);
}

.review-form-modal h3 {
    font-size: 28px;
    color: #344955;
    margin-bottom: 5px;
    font-weight: 600;
    text-align: center;
}

.review-form-subtitle {
    text-align: center;
    color: #4A6572;
    font-size: 14px;
    margin-bottom: 25px;
}

.review-form-group {
    margin-bottom: 20px;
}

.review-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #344955;
    font-size: 14px;
    font-weight: 500;
}

.review-form-group label i {
    color: #F9AA33;
    font-size: 16px;
}

.review-form-group input,
.review-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E6ED;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Manrope', sans-serif;
    transition: all 0.3s;
    background: #f8f9fa;
    box-sizing: border-box;
}

.review-form-group input:focus,
.review-form-group textarea:focus {
    outline: none;
    border-color: #F9AA33;
    box-shadow: 0 0 0 3px rgba(249,170,51,0.1);
    background: white;
}

.review-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Звездный рейтинг */
.stars-input {
    display: flex;
    gap: 8px;
    font-size: 28px;
    color: #F9AA33;
    cursor: pointer;
    justify-content: center;
    padding: 10px 0;
}

.stars-input i {
    transition: all 0.2s;
}

.stars-input i:hover {
    transform: scale(1.2);
}

.review-form-policy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(249, 170, 51, 0.05);
    border-radius: 10px;
    border: 1px dashed #F9AA33;
}

.review-form-policy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #F9AA33;
}

.review-form-policy label {
    color: #4A6572;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    flex: 1;
}

.review-form-policy a {
    color: #F9AA33;
    text-decoration: none;
    font-weight: 600;
}

.review-form-policy a:hover {
    text-decoration: underline;
}

.review-form-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #F9AA33, #ffb347);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 15px rgba(249, 170, 51, 0.2);
}

.review-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(249, 170, 51, 0.3);
}

.review-form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px;
    color: #4A6572;
    font-size: 13px;
    background: #f8f9fa;
    border-radius: 8px;
}

.review-form-note i {
    color: #4CAF50;
    font-size: 16px;
}

@media (max-width: 480px) {
    .review-form-modal-content {
        padding: 30px 20px;
    }
    
    .review-form-modal h3 {
        font-size: 24px;
    }
    
    .stars-input {
        font-size: 24px;
    }
}
/* ===== СТИЛИ ДЛЯ ЗАГРУЗКИ ФОТО В ФОРМЕ ОТЗЫВА ===== */

.review-photo-upload-area {
    position: relative;
    border: 2px dashed #F9AA33;
    border-radius: 12px;
    background: rgba(249, 170, 51, 0.02);
    transition: all 0.3s;
    cursor: pointer;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-photo-upload-area:hover {
    border-color: #344955;
    background: rgba(52, 73, 85, 0.02);
}

.review-photo-upload-area.drag-over {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.review-photo-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.review-photo-placeholder {
    text-align: center;
    padding: 15px;
    pointer-events: none;
}

.review-photo-placeholder i {
    font-size: 32px;
    color: #F9AA33;
    margin-bottom: 8px;
}

.review-photo-placeholder p {
    color: #344955;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

.review-photo-placeholder .file-types {
    color: #4A6572;
    font-size: 12px;
    opacity: 0.8;
}

/* Превью загруженного фото */
.review-photo-preview {
    margin-top: 10px;
}

.photo-preview-item {
    position: relative;
    display: inline-block;
    max-width: 150px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #F9AA33;
}

.photo-preview-item img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s;
}

.photo-preview-remove:hover {
    background: #a71d2a;
    transform: scale(1.1);
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    .review-photo-placeholder i {
        font-size: 28px;
    }
    
    .review-photo-placeholder p {
        font-size: 13px;
    }
    
    .review-photo-placeholder .file-types {
        font-size: 11px;
    }
}
/* ПРИНУДИТЕЛЬНОЕ ОТОБРАЖЕНИЕ ОТЗЫВОВ */
.reviews-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
}

.reviews-carousel-container {
    display: block !important;
    visibility: visible !important;
}

.reviews-track {
    display: flex !important;
    visibility: visible !important;
}

.review-card {
    display: block !important;
    visibility: visible !important;
}

/* Если отзывы загружаются через JS, убедитесь что контейнер видим */
#reviewsTrack {
    display: flex !important;
    min-height: 200px;
}