/* ========================================
   КАТАЛОГ / АРХИВ ТОВАРОВ (.catalog)
   ======================================== */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* ========================================
   КАТЕГОРИИ НА ГЛАВНОЙ (.home-categories)
   ======================================== */

.home-categories {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px;
    color: var(--dark-gray, #212121);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 700px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1500px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ----- Карточка категории ----- */
.category-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.category-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover .category-card-bg {
    transform: scale(1.08);
}

/* Затемнение градиентом снизу — чтобы белый текст читался на любом фото */
.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.25) 45%,
        rgba(0, 0, 0, 0) 75%
    );
    transition: background 0.35s ease;
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0) 80%
    );
}

.category-card-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-card-title {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Тонкая жёлтая полоска слева от заголовка — фирменный акцент бренда */
.category-card-title::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 3px;
    background: var(--primary-yellow, #FFC107);
    margin-bottom: 8px;
    border-radius: 2px;
}

.category-card-count {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 400;
}

/* ----- .no-data — общая заглушка для пустых блоков ----- */
.no-data {
    color: var(--text-gray, #757575);
    padding: 20px 0;
}

/* ----- Карточка товара ----- */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 22px;
    overflow: hidden;
    padding: 25px;
    transition: 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    border-color: #e3e3e3;
}

/* ----- Бейдж "ТОП" ----- */
.product-badge {
    position: absolute;
    left: 22px;
    top: 22px;
    background: var(--primary-yellow, #FFC107);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 10px;
    z-index: 10;
}

/* ----- Фото товара ----- */
.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 290px;
    margin-bottom: 15px;
}

.product-image img {
    max-height: 260px;
    max-width: 100%;
    object-fit: contain;
    transition: 0.35s;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

/* ----- Название товара ----- */
.product-name {
    display: -webkit-box;
    color: #222;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    min-height: 82px;
    margin-bottom: 12px;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-name:hover {
    color: var(--primary-yellow, #FFC107);
}

/* ----- Артикул ----- */
.product-sku {
    color: #999;
    font-size: 16px;
    margin-bottom: 18px;
}

/* ----- Разделитель ----- */
.product-divider {
    height: 1px;
    background: #ececec;
    margin-bottom: 22px;
}

/* ----- Цена ----- */
.product-price {
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1;
     justify-content: flex-end;
}

.product-price .woocommerce-Price-amount {
    font-size: 35px;
    color: #111;
    font-weight: 600;
}

.product-price .woocommerce-Price-currencySymbol {
    font-size: 22px;
    color: #999;
    font-weight: 500;
    margin-left: 6px;
}

.product-price del {
    color: #999;
    font-size: 18px;
    margin-right: 8px;
}

.product-price del .woocommerce-Price-amount {
    font-size: 22px;
    font-weight: 400;
}

.product-price ins {
    text-decoration: none;
}

/* ----- Кнопка "Купить" ----- */
.product-button {
    margin-top: auto;
}

.product-button .button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary-yellow, #FFC107);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    border: none;
    transition: 0.25s;
    text-decoration: none;
}

.product-button .button svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.product-button .button:hover {
    background: #e3aa00;
    transform: translateY(-2px);
}

.product-button .added_to_cart {
    display: none;
}

/* ----- Наличие товара ----- */
.product-stock {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-stock::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.product-stock.in-stock {
    color: #2e7d32;
}

.product-stock.in-stock::before {
    background: #2e7d32;
}

.product-stock.out-of-stock {
    color: #c62828;
}

.product-stock.out-of-stock::before {
    background: #c62828;
}
.product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.product-sku {
    margin-bottom: 0;
}

.product-stock {
    margin-bottom: 0;
}
/* ==========================================================
   Кнопка "Применить" фильтры
========================================================== */

.filter-apply{

    opacity:.6;
    cursor:not-allowed;
    transition:.25s;

}

.filter-apply.is-active{

    opacity:1;
    cursor:pointer;

}

/* AJAX-фильтры каталога */
.catalog-grid.is-loading {
    opacity: .45;
    pointer-events: none;
    transition: opacity .2s ease;
}

.filter-checkbox-list li:nth-child(n+6) {
    display: none;
}

.filter-toggle-more.is-open {
    margin-top: 8px;
}
/* Все бренды фильтра после раскрытия */
.filter-block:has(.filter-toggle-more.is-open) .filter-checkbox-list li {
    display: list-item !important;
}

/* Скролл списка брендов */
.filter-checkbox-list {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
}

/* Немного аккуратнее сам скролл */
.filter-checkbox-list::-webkit-scrollbar {
    width: 5px;
}

.filter-checkbox-list::-webkit-scrollbar-thumb {
    background: #d5d5d5;
    border-radius: 10px;
}

.filter-checkbox-list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}