

/* Компактная секція "Улюбленець місяця" */
.monthly-favorite-section {
    padding: 40px 0;
    background: #ffffff;
}

.monthly-favorite-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.section-title {

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

.section-title i {
    color: #00b894;
    font-size: 1.6rem;
}

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

.monthly-favorite-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    transition: box-shadow 0.3s ease;
}

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

/* Левая сторона - Фотографии */
.favorite-images {
    flex: 1;
    padding: 25px;
    display: flex;
    gap: 12px;
}

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

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

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

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

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

.thumbnail:hover,
.thumbnail.active {
    border-color: #00b894;
}

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

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

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

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

.favorite-title {

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

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

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

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

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3436;
}

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

.add-to-cart-btn {
    flex: 2;
    background: #2d3436;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    background: #1a1d20;
    transform: translateY(-1px);
}

.details-btn {
    flex: 1;
    background: white;
    color: #2d3436;
    border: 1px solid #dee2e6;
    padding: 10px 16px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-btn:hover {
    border-color: #2d3436;
    transform: translateY(-1px);
    text-decoration: none;
    color: #2d3436;
}

/* Адаптивность - компактная версия */
@media (max-width: 768px) {
    .monthly-favorite-card {
        flex-direction: column;
        max-width: 500px;
    }

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

    .thumbnails-container {
        flex-direction: row;
        width: auto;
        justify-content: center;
        margin-top: 10px;
        gap: 8px; /* Добавили отступы между миниатюрами */
    }

    /* Настройки миниатюр для планшетов */
    .thumbnail {
        width: 50px;
        height: 50px;
    }

    .main-image {
        height: 220px;
    }

    .favorite-content {
        padding: 20px;
    }

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

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

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

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

/* ИСПРАВЛЕНО: Показываем миниатюры на мобильных */
@media (max-width: 480px) {
    .monthly-favorite-section {
        padding: 30px 0;
    }

    /* УБРАНО: display: none для thumbnails-container */
    .thumbnails-container {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        margin-top: 12px;
        gap: 6px;
        flex-wrap: wrap; /* Добавлен перенос на новую строку если не помещаются */
    }

    /* Настройки миниатюр для мобильных */
    .thumbnail {
        width: 45px;
        height: 45px;
        flex-shrink: 0; /* Не сжимаем миниатюры */
    }

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

    .main-image {
        height: 180px;
    }

    .favorite-content {
        padding: 15px;
    }

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

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