/* ===== КАТАЛОГ И ФИЛЬТРЫ ===== */

/* Хлебные крошки */
.gm-breadcrumbs {
    padding: 15px 0;
    font-size: 13px;
    color: #737373;
}
.gm-breadcrumbs a {
    color: #a7a7a7;
    text-decoration: none;
}
.gm-breadcrumbs a:hover {
    color: #0D86E4;
}
.gm-breadcrumbs__separator {
    margin: 0 8px;
    color: #3a3a3a;
}

/* Заголовок архива */
.gm-archive-title {
    font-size: 28px;
    color: white;
    margin-bottom: 30px;
}

/* Layout с сайдбаром */
.gm-archive-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin: 30px 0;
}

/* Сайдбар */
.gm-archive-sidebar {
    background: #1e1e1e;
    border-radius: 16px;
    padding: 20px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Фильтры */
.gm-filter-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3a3a3a;
}
.gm-filter-group {
    margin-bottom: 25px;
}
.gm-filter-group-title {
    font-size: 14px;
    font-weight: 700;
    color: #e5e5e5;
    margin-bottom: 12px;
}
.gm-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gm-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #a7a7a7;
}
.gm-filter-option input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0D86E4;
}
.gm-filter-option:hover {
    color: #e5e5e5;
}
.gm-filter-count {
    font-size: 11px;
    color: #737373;
}
.gm-filter-price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gm-filter-price-input {
    flex: 1;
    padding: 8px 12px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: white;
    font-size: 13px;
}
.gm-filter-price-input:focus {
    outline: none;
    border-color: #0D86E4;
}
.gm-filter-sort {
    width: 100%;
    padding: 8px 12px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    cursor: pointer;
}
.gm-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.gm-filter-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}
.gm-filter-btn-apply {
    background: #0D86E4;
    color: white;
}
.gm-filter-btn-apply:hover {
    background: #0a6bb8;
}
.gm-filter-btn-reset {
    background: #2a2a2a;
    color: #a7a7a7;
    text-decoration: none;
}
.gm-filter-btn-reset:hover {
    background: #3a3a3a;
    color: white;
}

/* Счетчик товаров */
.gm-archive-count {
    font-size: 14px;
    color: #a7a7a7;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a2a;
}

/* Сетка товаров - фиксированная, без скачков */
.gm-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Карточка товара - без transform при наведении */
.gm-product-card {
    background: #2f2f2f;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.gm-product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.gm-product-card__link {
    text-decoration: none;
    display: block;
}
.gm-product-card__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #1a1a2e;
}
.gm-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gm-product-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}
.gm-product-card__type {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    z-index: 2;
}
.gm-product-card__info {
    padding: 16px;
    flex: 1;
}
.gm-product-card__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
    color: #e5e5e5;
}
.gm-product-card__price {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 8px;
}
.gm-product-card__btn {
    display: block;
    text-align: center;
    background: #0a6bb8;
    color: white;
    padding: 10px;
    margin: 0 16px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s;
}
.gm-product-card__btn:hover {
    background: #0a6bb8;
    color: white;
}

/* Нет товаров */
.gm-no-products {
    text-align: center;
    padding: 60px;
    background: #2a2a2a;
    border-radius: 16px;
    color: #a7a7a7;
    grid-column: 1 / -1;
}

/* Пагинация */
.gm-pagination {
    margin-top: 40px;
    text-align: center;
}
.gm-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.gm-pagination li {
    display: inline-block;
}
.gm-pagination a, .gm-pagination span {
    display: inline-block;
    padding: 8px 14px;
    background: #2a2a2a;
    border-radius: 8px;
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.gm-pagination a:hover {
    background: #0D86E4;
    color: white;
}
.gm-pagination .current span {
    background: #0D86E4;
    color: white;
}

/* Адаптив */
@media (max-width: 1200px) {
    .gm-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .gm-archive-layout { grid-template-columns: 1fr; }
    .gm-archive-sidebar { position: static; margin-bottom: 20px; }
    .gm-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .gm-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .gm-products-grid { grid-template-columns: 1fr; }
}