/* --- Сетка товаров --- */

.sale-page {
    width: 100%;
}

.sale-page .page-title {
    text-align: left;
}

.sale-page .products-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* --- Карточка товара --- */
.sale-page .product-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Изображение */
.sale-page .product-card img {
    height: 200px;
    object-fit: contain;
}

.sale-page .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #bfdbfe;
}

/* Метки (Бейджи) */
.sale-page .badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.sale-page .badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
}

.sale-page .badge.hit {
    background-color: #2563eb;
}

.sale-page .badge.action {
    background-color: #f59e0b;
    color: #fff;
}

.sale-page .badge.discount {
    background-color: #ef4444;
}

/* Контент */
.sale-page .product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sale-page .product-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 15px 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sale-page .product-title a {
    color: #000000!important;
    text-decoration: none;
}

.sale-page .product-meta {
    margin-bottom: 12px;
}

.sale-page .availability {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #22c55e;
    margin-bottom: 4px;
}

.sale-page .availability::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    margin-right: 6px;
}

.sale-page .sku {
    font-size: 12px;
    color: #6b7280;
}

/* Блок цены */
.sale-page .price-box {
    margin-top: auto;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.sale-page .price-new {
    font-size: 20px;
    font-weight: 700;
    color: #ef4444;
}

/*.price-old {*/
/*    font-size: 14px;*/
/*    text-decoration: line-through;*/
/*    color: #6b7280;*/
/*}*/

/* Кнопки действий */
.sale-page .actions {
    display: grid;
    /*grid-template-columns: 1fr 48px;*/
    /*gap: 10px;*/
}

.sale-page .actions .add_to_cart_button {
    border-radius: 8px;
}

.sale-page .actions .added_to_cart {
    display: none;
}

.sale-page .woocommerce-pagination {
    margin-top: 50px;
}

/*.btn-quick {*/
/*    background-color: transparent;*/
/*    border: 1px solid #2563eb;*/
/*    color: #2563eb;*/
/*    padding: 10px;*/
/*    border-radius: 8px;*/
/*    font-size: 13px;*/
/*    font-weight: 600;*/
/*    cursor: pointer;*/
/*    transition: all 0.3s ease;*/
/*}*/

/*.btn-quick:hover {*/
/*    background-color: #eff6ff;*/
/*}*/

/*.btn-cart {*/
/*    background-color: #2563eb;*/
/*    border: none;*/
/*    border-radius: 8px;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    cursor: pointer;*/
/*    transition: all 0.3s ease;*/
/*    color: white;*/
/*}*/

/*.btn-cart:hover {*/
/*    background-color: #1d4ed8;*/
/*}*/

/*.btn-cart svg {*/
/*    width: 20px;*/
/*    height: 20px;*/
/*    fill: none;*/
/*    stroke: currentColor;*/
/*    stroke-width: 2;*/
/*}*/

/*!* Уведомление (Toast) *!*/
/*.toast {*/
/*    position: fixed;*/
/*    bottom: 20px;*/
/*    right: 20px;*/
/*    background: #333;*/
/*    color: white;*/
/*    padding: 12px 24px;*/
/*    border-radius: 8px;*/
/*    opacity: 0;*/
/*    transform: translateY(20px);*/
/*    transition: all 0.3s;*/
/*    z-index: 100;*/
/*}*/

/*.toast.show {*/
/*    opacity: 1;*/
/*    transform: translateY(0);*/
/*}*/
