/* Правильный дизайн для страницы акций */

/* Заголовок страницы */
#product-search h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

#product-search h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #dc3545;
    margin: 10px auto 0;
}

/* Панель сортировки */
#product-search .row:first-of-type {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
}

/* Контейнер товаров */
#product-search .row:nth-of-type(2) {
    margin: 0;
}

/* Карточка товара в списке */
.product-list .product-layout {
    margin-bottom: 20px;
}

.product-list .product-thumb {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
}

.product-list .product-thumb:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Изображение товара */
.product-list .product-thumb .image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-list .product-thumb .image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-list .discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Контент */
.product-list .product-thumb .content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Рейтинг */
.product-list .rating {
    margin-bottom: 10px;
}

.product-list .rating i {
    color: #ffc107;
    font-size: 14px;
}

/* Заголовок */
.product-list .product-thumb h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.product-list .product-thumb h4 a {
    color: #333;
    text-decoration: none;
}

.product-list .product-thumb h4 a:hover {
    color: #007bff;
}

/* Описание */
.product-list .description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Цены */
.product-list .price-block {
    margin-bottom: 15px;
}

.product-list .price-old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.product-list .price-new {
    font-size: 24px;
    font-weight: 700;
    color: #dc3545;
}

/* Кнопки */
.product-list .button-group {
    display: flex;
    gap: 8px;
}

.product-list .btn-cart {
    background: #5cb85c;
    border: none;
    color: white;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.product-list .btn-cart:hover {
    background: #449d44;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(92, 184, 92, 0.3);
}

.product-list .btn-cart i {
    margin-right: 5px;
}

.product-list .btn-wishlist,
.product-list .btn-compare {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-list .btn-wishlist:hover,
.product-list .btn-compare:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

/* Вид сетки */
.product-grid .product-thumb {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
}

.product-grid .product-thumb:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-grid .product-thumb .image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-grid .product-thumb .image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-grid .product-thumb .content {
    padding: 15px;
}

.product-grid .product-thumb h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.product-grid .product-thumb .description {
    display: none;
}

.product-grid .price-new {
    font-size: 20px;
}

.product-grid .btn-cart {
    width: 100%;
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-list .product-thumb {
        flex-direction: column;
        gap: 15px;
    }
    
    .product-list .product-thumb .image {
        width: 100%;
        height: 200px;
    }
}
