/*
 * Custom Styles for Kärcher Website
 * 
 * Этот файл содержит кастомные стили для сайта Kärcher
 * Все изменения в этом файле будут применяться глобально
 * 
 * Автор: [Ваше имя]
 * Дата создания: [Дата]
 */

/* ========================================
   GLOBAL STYLES
   ======================================== */

/* Здесь можно добавить глобальные стили для всего сайта */


/* Стили для блока отзывов товаров */

/* Скрытие существующих отзывов BazaarVoice */
.hidden-reviews,
#ratings.hidden-reviews,
#ratings[style*="display: none"],
#ratings[style*="visibility: hidden"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* Скрытие всех BazaarVoice виджетов */
[data-bv-show="reviews"] {
    display: none !important;
}

.product-reviews-block {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reviews-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.reviews-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fafafa;
    transition: box-shadow 0.2s ease;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-rating .star {
    display: inline-block;
    margin-right: 2px;
}

.rating-value {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.review-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.review-author {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.review-date {
    color: #888;
    font-size: 12px;
}

.review-title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.review-recommendation {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    border-left: 3px solid #28a745;
}

.review-recommendation:not(:contains('Рекомендует')) {
    border-left-color: #dc3545;
}

.show-more-reviews {
    text-align: center;
    margin-top: 20px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    color: #007bff;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.show-more-reviews:hover {
    background: #e9ecef;
}

.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-style: italic;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .product-reviews-block {
        margin: 10px 0;
        padding: 15px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .review-meta {
        align-items: flex-start;
    }
    
    .reviews-header h2 {
        font-size: 20px;
    }
    
    .review-title {
        font-size: 15px;
    }
    
    .review-text {
        font-size: 14px;
    }
}

/* Анимации */
.review-item {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для звезд */
.star {
    transition: transform 0.1s ease;
}

.star:hover {
    transform: scale(1.1);
}

/* Темная тема (если поддерживается) */
@media (prefers-color-scheme: dark) {
    .product-reviews-block {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .review-item {
        background: #4a5568;
        border-color: #718096;
    }
    
    .reviews-header h2 {
        color: #e2e8f0;
    }
    
    .review-title {
        color: #e2e8f0;
    }
    
    .review-text {
        color: #cbd5e0;
    }
    
    .review-author {
        color: #e2e8f0;
    }
    
    .show-more-reviews {
        background: #4a5568;
        border-color: #718096;
        color: #63b3ed;
    }
    
    .show-more-reviews:hover {
        background: #718096;
    }
}

/* Product Reviews Styles */
.custom-reviews-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    /* max-width: 800px; */
    /* margin: 0 auto; */
    width: 100%;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Rating Summary */
.rating-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 24px;
}

.average-rating {
    text-align: center;
    min-width: 120px;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.rating-stars {
    margin: 8px 0;
    font-size: 24px;
}

.rating-text {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.rating-details {
    flex: 1;
}

.total-reviews {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.recommendation-rate {
    font-size: 16px;
    color: #28a745;
    font-weight: 500;
}

/* Rating Breakdown */
.rating-breakdown h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rating-label {
    min-width: 60px;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.rating-progress {
    flex: 1;
    max-width: 200px;
}

.progress-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #ffc107, #ff9800);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-count {
    min-width: 30px;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    text-align: right;
}

/* Stars */
.star {
    display: inline-block;
    font-size: 1.2em;
    margin-right: 2px;
}

.star.filled {
    color: #ffc107;
}

.star.half {
    color: #ffc107;
    position: relative;
}

.star.half::after {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.star.empty {
    color: #e9ecef;
}

/* Reviews Header */
.reviews-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

/* Reviews Container */
.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual Review */
.review-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-rating .rating-stars {
    font-size: 16px;
    margin: 0;
}

.rating-value {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.review-meta {
    text-align: right;
}

.review-author {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.review-date {
    font-size: 12px;
    color: #6c757d;
}

.review-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 12px;
}

.review-recommendation {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 16px;
    display: inline-block;
}

.review-recommendation.recommended, .review-recommendation.not-recommended {
    background: #fffbe6;
    color: #222;
    border: 1px solid #ffe066;
}

.review-recommendation.recommended::before {
    content: '✓';
    color: #ffc107;
    margin-right: 6px;
}

.review-recommendation.not-recommended::before {
    content: '✗';
    color: #ffc107;
    margin-right: 6px;
}

/* Show More Button */
.show-more-reviews {
    text-align: center;
    margin-top: 20px;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.show-more-reviews:hover {
    background: #0056b3;
}

/* No Reviews */
.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-reviews-widget {
        padding: 16px;
        margin: 0 8px;
    }
    
    .rating-overview {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .rating-details {
        text-align: center;
    }
    
    .review-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .review-meta {
        text-align: left;
    }
    
    .rating-progress {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .rating-summary {
        padding: 16px;
    }
    
    .rating-number {
        font-size: 36px;
    }
    
    .rating-stars {
        font-size: 20px;
    }
    
    .review-item {
        padding: 16px;
    }
} 

/* ========================================
   CUSTOM COMPONENTS
   ======================================== */

/* Здесь можно добавить стили для кастомных компонентов */

/* ========================================
   OVERRIDES
   ======================================== */


/* Cookie consent */
.onetrust-pc-dark-filter {
    display: none;
}

#onetrust-banner-sdk {
    display: none;
}

.otFloatingFlat {
    display: none;
}


.fg-product-filter {
    display: none;
}


#article1499263 {
    display: none;
}

.fg-checkbox-custom {
    display: none;
}

.fc-ratings {
    display: none;
}

.fc-dealer {
    display: none;
}

#top-bar {
    display: none;
}

.fc-search-container {
    display: none !important;
}

.fc-country-select {
    display: none !important;
}

.fg-countries-detection {
    display: none !important;
}

 
/* Здесь можно переопределить существующие стили */

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Мобильные устройства */
@media (max-width: 767px) {
    /* Стили для мобильных устройств */
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 991px) {
    /* Стили для планшетов */
}

/* Десктопы */
@media (min-width: 992px) {
    /* Стили для десктопов */
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Здесь можно добавить утилитарные классы */ 