/* Кастомный CSS для секции "Топ за місяць" - зеркальный макет */
.top-of-month-section {
    padding: 40px 0;
    background: #ffffff;
}

.top-of-month-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.top-section-header {
    text-align: center;
    margin-bottom: 30px;
}

.top-section-title {
    font-size: 2rem;
    font-weight: 500;
    color: #2d3436;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.top-section-title i {
    color: #f39c12; /* Золотистый цвет для "топ" секции */
    font-size: 1.6rem;
}

.top-section-subtitle {
    font-size: 0.9rem;
    color: #636e72;
    font-weight: 400;
}

/* ЗЕРКАЛЬНАЯ КАРТОЧКА */
.top-favorite-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: row-reverse; /* ЗЕРКАЛЬНЫЙ МАКЕТ: фото справа, контент слева */
    max-width: 1000px;
    margin: 0 auto;
    transition: box-shadow 0.3s ease;
}

.top-favorite-card:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

/* Правая сторона - Фотографии */
.top-favorite-images {
    flex: 1;
    padding: 25px;
    display: flex;
    gap: 12px;
    flex-direction: row-reverse; /* Главное фото справа, миниатюры слева в блоке */
}

.top-main-image-container {
    flex: 1;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}

.top-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.top-favorite-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: 500;
    font-size: 0.75rem;
}

.top-thumbnails-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 60px;
}

.top-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    background: #f8f9fa;
}


.top-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Левая сторона - Контент */
.top-favorite-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.top-content-top {
    margin-bottom: 25px;
}

.top-favorite-category {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.top-favorite-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 12px;
    line-height: 1.3;
}

.top-favorite-description {
    color: #6c757d;
    line-height: 1.5;
    font-size: 0.85rem;
}

.top-content-bottom {
    /* Контент внизу */
}

.top-favorite-price {
    margin-bottom: 18px;
}

.top-price-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.top-action-buttons {
    display: flex;
    gap: 8px;
}

/* Адаптивность для зеркального макета */
@media (max-width: 768px) {
    .top-favorite-card {
        flex-direction: column; /* На мобильных - обычный порядок */
        max-width: 500px;
    }

    .top-favorite-images {
        padding: 20px 20px 0;
        flex-direction: column;
        align-items: center;
    }

    .top-thumbnails-container {
        flex-direction: row;
        width: auto;
        justify-content: center;
        margin-top: 10px;
        gap: 8px;
    }

    .top-thumbnail {
        width: 50px;
        height: 50px;
    }

    .top-main-image {
        height: 220px;
    }

    .top-favorite-content {
        padding: 20px;
    }

    .top-favorite-title {
        font-size: 1.3rem;
    }

    .top-price-value {
        font-size: 1.3rem;
    }

    .top-action-buttons {
        flex-direction: column;
    }

    .top-section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .top-of-month-section {
        padding: 30px 0;
    }

    .top-thumbnails-container {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        margin-top: 12px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .top-thumbnail {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }

    .top-favorite-images {
        padding: 15px 15px 0;
    }

    .top-main-image {
        height: 180px;
    }

    .top-favorite-content {
        padding: 15px;
    }

    .top-section-title {
        font-size: 1.4rem;
    }

    .top-section-header {
        margin-bottom: 25px;
    }
}