

/* Start:/bitrix/templates/aspro-premier/components/bitrix/catalog.section/catalog_block/style.css?176432707210474*/
/* ==========================================================================
   1. СЕТКА ТОВАРОВ (GRID)
   Используем специфичный селектор .catalog-items .catalog-block,
   чтобы не ломать слайдеры и блоки "Лучшие предложения".
   ========================================================================== */
.custom-catalog-grid,
.catalog-items .catalog-block { 
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    
    /* Сброс стандартных стилей Битрикса/Аспро */
    float: none !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Адаптив сетки */
@media (max-width: 1200px) {
    .custom-catalog-grid, .catalog-items .catalog-block { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .custom-catalog-grid, .catalog-items .catalog-block { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .custom-catalog-grid, .catalog-items .catalog-block { grid-template-columns: 1fr; }
}

/* Сброс для вложенных блоков (защита от двойной сетки при фильтрации) */
.catalog-items .catalog-block .catalog-block {
    display: contents; 
    margin: 0;
    padding: 0;
    border: none;
}

/* ==========================================================================
   2. КАРТОЧКА ТОВАРА
   ========================================================================== */
.custom-product-card {
    background: #fff;
    border: 1px solid #eef0f3;
    padding: 16px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    min-width: 220px; /* Защита от сплющивания */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

/* Эффект при наведении */
.custom-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: transparent;
    z-index: 2;
}

/* --- Изображение --- */
.card-image {
    position: relative;
    height: 240px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

/* Зум картинки */
.custom-product-card:hover .card-image img {
    transform: scale(1.05);
}

/* --- Стикеры --- */
.card-stickers {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
}

.sticker {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 2px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}
.sticker.hit { background: #ff9800; }
.sticker.sale { background: #ff4e33; }

/* --- Цены --- */
.card-prices-list {
    margin-bottom: 12px;
    min-height: 40px;
}

.price-row {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-label { color: #555; }
.price-value { font-weight: 700; font-size: 15px; color: #000; }

/* --- Название --- */
.card-title {
    margin-bottom: 15px;
    height: 42px;
    overflow: hidden;
}

.card-title a {
    font-size: 14px;
    line-height: 1.4;
    color: #000;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none !important;
    border-bottom: none !important; 
    background-image: none !important;
}

.card-title a:hover { 
    color: #ff4e33; 
}

/* --- Склады --- */
.card-stocks {
    margin-bottom: 15px;
    font-size: 12px;
    margin-top: auto;
}

.stock-row { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 4px; 
}

.stock-name { color: #888; }
.stock-val { font-weight: 500; }
.stock-val.in-stock { color: #28a745; }
.stock-val.out-of-stock { color: #ff4e33; }

/* --- Артикул --- */
.card-article { 
    font-size: 11px; 
    color: #aaa; 
    margin-bottom: 15px; 
}

/* ==========================================================================
   3. КНОПКА "В КОРЗИНУ"
   ========================================================================== */
.card-actions { 
    margin-top: 0; 
}

.btn-custom-buy {
    background: #ff4e33;
    color: white;
    border: none;
    width: 100%;
    padding: 11px;
    border-radius: var(--theme-button-border-radius, 4px);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-transform: none;
    position: relative;
}

.btn-custom-buy:hover { background: #e03e25; }
.btn-custom-buy:active { transform: translateY(1px); }

/* Успех */
.btn-custom-buy.success-added {
    background-color: #7dca8f !important;
    pointer-events: none;
    transform: scale(0.98);
}

/* Загрузка */
.btn-custom-buy.loading {
    opacity: 0.8;
    cursor: wait;
    color: transparent !important;
}

.btn-custom-buy.loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   4. ВСПЛЫВАЮЩЕЕ УВЕДОМЛЕНИЕ (TOAST)
   ========================================================================== */
#cart-toast {
    position: fixed; 
    top: 100px;      
    right: 30px;     
    z-index: 2147483647; 
    min-width: 300px;
    background-color: #fff;
    color: #333;
    text-align: left;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    border-left: 5px solid #7dca8f;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 15px;
}

#cart-toast.show { 
    opacity: 1; 
    transform: translateY(0); 
}

.toast-icon { width: 24px; height: 24px; flex-shrink: 0; }
.toast-icon svg { fill: #7dca8f; width: 100%; height: 100%; }
.toast-content { display: flex; flex-direction: column; }
.toast-title { font-weight: 700; margin-bottom: 2px; font-size: 15px; }
.toast-message { color: #666; font-size: 13px; }

/* ==========================================================================
   5. ПАГИНАЦИЯ
   ========================================================================== */
.bottom_nav_wrapper { 
    width: 100%; 
    margin-top: 20px; 
    text-align: center; 
    clear: both; 
}

.bottom_nav .bx-pagination .bx-pagination-container ul {
    display: flex; 
    justify-content: center; 
    list-style: none; 
    padding: 0; 
    flex-wrap: wrap; 
    gap: 5px;
}

.bottom_nav .bx-pagination .bx-pagination-container li { 
    display: inline-block; 
}

/* ==========================================================================
   6. СТИЛИ ДЛЯ ВСТРОЕННОГО УМНОГО ФИЛЬТРА (Horizontal Light)
   ========================================================================== */
.section-filter-wrapper {
    margin-bottom: 20px;
}

.custom-smart-filter {
    background: transparent;
    padding: 0;
    border: none;
}

.smartfilter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-group {
    position: relative;
    border: none;
    padding: 0;
    margin: 0;
}

.filter-title {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-title:hover { border-color: #ccc; }
.filter-group.active .filter-title { border-color: #ff4e33; z-index: 1001; }
.filter-title .arrow { font-size: 8px; color: #999; transition: transform 0.2s; }
.filter-group.active .filter-title .arrow { transform: rotate(180deg); }

.filter-content {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 220px;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 10px;
    z-index: 1000;
}

.filter-group.active .filter-content { display: block; }
.filter-content::-webkit-scrollbar { width: 4px; }
.filter-content::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: color 0.2s;
}
.filter-checkbox:hover { color: #000; }
.filter-checkbox input { display: none; }
.filter-checkbox .checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
}
.filter-checkbox input:checked ~ .checkmark { background-color: #ff4e33; border-color: #ff4e33; }
.filter-checkbox input:checked ~ .checkmark:after {
    content: '';
    position: absolute;
    left: 5px; top: 2px; width: 4px; height: 8px;
    border: solid white; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.filter-checkbox input:checked ~ .label-text { font-weight: 500; color: #000; }
.count { color: #aaa; font-size: 11px; margin-left: auto; }

.filter-buttons { margin-left: auto; }
.btn-reset {
    font-size: 13px;
    color: #888;
    text-decoration: underline;
    background: none;
    padding: 0;
    border: none;
}
.btn-reset:hover { color: #ff4e33; }

/* Сообщение об отсутствии товаров */
.catalog-empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    background: #f9f9f9;
    color: #666;
    border-radius: 4px;
    font-size: 16px;
}
/* End */
/* /bitrix/templates/aspro-premier/components/bitrix/catalog.section/catalog_block/style.css?176432707210474 */
