/* ====================================================================
   GAMEMIR CATALOG — Dark gaming catalog with sidebar filters
   Matches reference design: PRO/HIT badges, orange buttons, specs
   ==================================================================== */

/* ---------- Layout ---------- */
.gk-catalog {
    /* фон СТРАНИЦЫ каталога светлее (тон секции «Почему выбирают» #1d1d2e) — «не так темно» */
    position: relative;
    /* атмосфера как на лендинге: оранжевое свечение сверху */
    background: radial-gradient(ellipse at 50% 0%, rgba(255,85,12,0.16), transparent 52%), linear-gradient(180deg, #1d1d2e 0%, #16161f 100%);
    min-height: 100vh;
    padding-bottom: 80px;
}
/* HUD-сетка («кубики») как на лендинге */
.gk-catalog::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 72%);
}
.gk-catalog > .container { position: relative; z-index: 1; }

.catalog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    margin-top: 24px;
}
.catalog-main { min-width: 0; }

/* ---------- Sidebar Filters ---------- */
.catalog-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
    padding: 24px 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.filter-header .tag { font-size: 12px; }
.filter-count {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--orange);
}

.filter-group {
    margin-bottom: 20px;
}
.filter-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 500;
}
.filter-group > summary {
    list-style: none;
    cursor: pointer;
}
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-group > summary::after {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    margin-left: auto;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s ease;
}
.filter-group:not([open]) > summary::after { transform: rotate(-45deg); }
.filter-group > summary:focus-visible { outline: 1px solid var(--orange); outline-offset: 4px; }
.filter-label-dim {
    color: var(--dim);
    margin-left: 8px;
}

.filter-options {
    display: grid;
    gap: 5px;
}
.filter-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid transparent;
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.filter-option:hover {
    border-color: var(--line);
    background: rgba(255,255,255,0.035);
    color: #fff;
}
.filter-option-label { min-width: 0; }
.filter-option-count {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--dim);
}

.filter-select-wrap {
    position: relative;
}
.filter-select {
    width: 100%;
    padding: 12px 36px 12px 14px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.15s;
}
.filter-select:hover,
.filter-select:focus {
    border-color: var(--orange);
    outline: none;
}
.filter-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.filter-price-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.filter-price-range label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 0 10px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    transition: border-color 0.15s;
}
.filter-price-range label:focus-within { border-color: var(--orange); }
.filter-price-range span {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    color: var(--dim);
}
.filter-price-range input {
    width: 100%;
    min-width: 0;
    padding: 11px 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 12px;
    appearance: textfield;
}
.filter-price-range input::-webkit-inner-spin-button,
.filter-price-range input::-webkit-outer-spin-button { margin: 0; appearance: none; }

.filter-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 18px;
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    cursor: pointer;
}
.filter-check input,
.filter-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.filter-check-box {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 1px solid var(--line-2, rgba(255,255,255,0.16));
    background: var(--bg-2);
    position: relative;
}
.filter-check input:focus-visible + .filter-check-box,
.filter-option input:focus-visible + .filter-check-box { outline: 1px solid var(--orange); outline-offset: 2px; }
.filter-check input:checked + .filter-check-box,
.filter-option input:checked + .filter-check-box { background: var(--orange); border-color: var(--orange); }
.filter-check input:checked + .filter-check-box::after,
.filter-option input:checked + .filter-check-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #0a0a0a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.filter-apply {
    width: 100%;
    padding: 13px 16px;
    background: var(--orange);
    border: 0;
    color: #0a0a0a;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    transition: background 0.15s, transform 0.15s;
}
.filter-apply:hover { background: var(--orange-2); transform: translateY(-1px); }
.filter-apply-mobile { display: none; }
.filter-actions { margin-top: 2px; }

.filter-reset {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    margin-top: 24px;
    background: transparent;
    border: 1px solid var(--line);
    color: rgba(255,255,255,0.7);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.filter-reset:hover {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}
.filter-chips-label {
    margin-right: 4px;
    color: var(--orange);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--line-2, rgba(255,255,255,0.16));
    background: rgba(255,255,255,0.035);
    color: rgba(255,255,255,0.84);
    font-size: 12px;
    text-decoration: none;
}
.filter-chip span { color: var(--orange); font-size: 17px; line-height: 1; }
.filter-chip:hover { border-color: var(--orange); color: #fff; }
.filter-clear {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-underline-offset: 3px;
}
.filter-clear:hover { color: #fff; }

.filter-active-count {
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--muted);
}
.filter-active-num {
    color: var(--orange);
    margin-left: 8px;
}

/* ---------- Catalog Main ---------- */
.catalog-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.catalog-count {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.catalog-count-num {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--orange);
    margin-right: 8px;
}
.catalog-sort {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.catalog-sort select {
    min-width: 190px;
    padding: 10px 34px 10px 12px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.catalog-sort select:focus { outline: 0; border-color: var(--orange); }

/* ---------- Product Grid ---------- */
.gk-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
}

/* ---------- Product Card ---------- */
.gk-product {
    position: relative;
    min-width: 0;
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
    border: 1px solid var(--line);
    transition: border-color 0.2s, transform 0.2s;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.gk-product:hover {
    border-color: rgba(255,85,12,0.4);
    transform: translateY(-3px);
}

.gk-product-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}
.gk-product-media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.gk-product-img {
    position: relative;
    aspect-ratio: 1/1;                 /* было 3/4 — под квадратные фото товаров (1500×1500) */
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    /* HUD-сцена как на карточке товара: ковёр «плавает», прозрачная пустота PNG читается как дизайн, не дыра */
    /* HUD-сцена карточки (как было): тёмный «колодец» под фото — ковёр на нём «плавает» */
    background:
        radial-gradient(ellipse at 50% 45%, rgba(255,255,255,0.035), transparent 62%),
        linear-gradient(180deg, #0d0d16 0%, #07070d 100%);
}
.gk-product-img::before {                /* слабая HUD-сетка */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
    pointer-events: none;
}
.gk-product-img img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;                 /* было cover — показываем фото ЦЕЛИКОМ, без обрезки */
    /* контур-свет (отделяет тёмный ковёр от тёмного фона) + тень-заземление (для светлого ковра) */
    filter: drop-shadow(0 14px 22px rgba(0,0,0,0.55)) drop-shadow(0 0 1.4px rgba(255,255,255,0.55)) drop-shadow(0 0 10px rgba(255,255,255,0.05));
    transition: filter 0.4s;
}
.gk-product:hover .gk-product-img img {
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.62)) drop-shadow(0 0 1.6px rgba(255,255,255,0.7)) drop-shadow(0 0 14px rgba(255,255,255,0.07)) brightness(1.04);
}
.gk-product-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.03), transparent 70%), var(--bg-1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .14em;
    text-transform: uppercase;
    box-sizing: border-box;
}
.gk-product-placeholder-logo {
    position: static !important;
    width: min(58%, 150px) !important;
    height: auto !important;
    object-fit: contain !important;
    opacity: .38;
    filter: none !important;
}

/* Shared full-resolution gallery for homepage and archive cards. */
.gm-product-gallery,
.gm-product-gallery-link,
.gm-product-gallery-image {
    display: block;
    width: 100%;
    height: 100%;
}
.gm-product-gallery { position: relative; }
.gm-product-gallery-link { touch-action: pan-y; }
.gm-product-gallery-image {
    object-fit: contain;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55)) drop-shadow(0 0 1.4px rgba(255, 255, 255, .55)) drop-shadow(0 0 10px rgba(255, 255, 255, .05));
    transition: opacity .14s ease, transform .3s ease;
}
.gm-product-gallery-image.is-loading { opacity: .52; }
.gk-product:hover .gm-product-gallery-image { transform: scale(1.025); }

.gm-product-gallery-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: rgba(8, 9, 12, .68);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity .14s ease, background .14s ease;
}
.gm-product-gallery-control > span {
    font-size: 28px;
    line-height: 1;
    transform: translateY(-1px);
}
.gm-product-gallery-control--prev { left: 8px; }
.gm-product-gallery-control--next { right: 8px; }
.gm-product-gallery.is-ready:hover .gm-product-gallery-control:not([disabled]),
.gm-product-gallery.is-ready:focus-within .gm-product-gallery-control:not([disabled]) {
    opacity: 1;
    pointer-events: auto;
}
.gm-product-gallery-control:hover { background: rgba(8, 9, 12, .88); }
.gm-product-gallery-control[disabled] {
    opacity: 0 !important;
    pointer-events: none !important;
}
.gm-product-gallery-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    z-index: 4;
    display: flex;
    max-width: calc(100% - 20px);
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 2px 5px;
    overflow-x: auto;
    background: rgba(8, 9, 12, .52);
    border-radius: 4px;
    pointer-events: auto;
    scrollbar-width: none;
    transform: translateX(-50%);
}
.gm-product-gallery-dots::-webkit-scrollbar { display: none; }
.gm-product-gallery-dot {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
}
.gm-product-gallery-dot::before {
    width: 5px;
    height: 5px;
    content: "";
    background: rgba(255, 255, 255, .55);
    border-radius: 50%;
    transition: width .14s ease, background .14s ease;
}
.gm-product-gallery-dot.is-active::before {
    width: 14px;
    background: var(--orange);
    border-radius: 3px;
}
.gm-product-gallery-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

/* Badges */
.gk-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 3;
}
.gk-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 5px 10px;
    border: 1px solid;
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.6);
}
.badge-pro {
    color: var(--orange);
    border-color: rgba(255,85,12,0.5);
}
.badge-hit {
    color: #fbbf24;
    border-color: rgba(251,191,36,0.5);
}
.badge-sale {
    color: #d9dada;
    border-color: rgba(34,211,238,0.4);
}

/* Favorite button */
.gk-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.65);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: color 0.15s, border-color 0.15s;
    cursor: pointer;
    z-index: 3;
}
.gk-fav:hover { color: var(--orange); border-color: var(--orange); }
.gk-fav svg { width: 14px; height: 14px; }

/* Product Body */
.gk-product-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gk-product-name {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: #fff;
}
.gk-product-name a {
    color: inherit;
    text-decoration: none;
}
.gm-product-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: start;
    gap: 4px;
}
.gm-product-heading .gk-product-name {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    line-height: 24px;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.gm-product-fav.gk-fav {
    position: static;
    z-index: auto;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 5px;
}
.gm-product-fav.gk-fav svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.9));
}
.gk-product-meta {
    display: flex;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    flex-wrap: wrap;
}
.gk-product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.gk-product-meta .dot {
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
}

.gk-product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    gap: 10px;
}

.gk-product-price {
    font-family: var(--font-display);
    font-size: 20px;
    color: #fff;
    min-width: 0;
    white-space: nowrap;
}
.gk-product-price s {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--dim);
    margin: 0 0 2px;
    letter-spacing: 0.05em;
}
.gk-product-price del {
    display: block;
    margin: 0 0 2px;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
}
.gk-product-price ins {
    color: inherit;
    text-decoration: none;
}
.gk-price-current { white-space: nowrap; }

.gk-btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--orange);
    color: #0a0a0a;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
    border: 0;
}
.gk-btn-cart:hover {
    background: var(--orange-2);
    color: #fff;
    transform: translateY(-1px);
}
.gk-btn-cart.is-disabled {
    color: var(--muted);
    background: var(--bg-2);
    cursor: default;
    pointer-events: none;
}
.gk-product a:focus-visible,
.gk-product button:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

/* ---------- Pagination ---------- */
.gk-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}
.gk-pagination .page-numbers {
    list-style: none;
    display: flex;
    gap: 6px;
    padding: 0;
    margin: 0;
}
.gk-pagination .page-numbers li {
    display: inline-flex;
}
.gk-pagination .page-numbers li a,
.gk-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    color: rgba(255,255,255,0.7);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.gk-pagination .page-numbers li a:hover {
    border-color: var(--orange);
    color: #fff;
}
.gk-pagination .page-numbers li span.current {
    background: var(--orange);
    border-color: var(--orange);
    color: #0a0a0a;
    font-weight: 700;
}

/* ---------- No products ---------- */
.gk-no-products {
    padding: 80px 32px;
    text-align: center;
    color: var(--muted);
    font-size: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .gk-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* мобильные элементы каталога — на десктопе скрыты */
.catalog-mbar, .filter-sheet-head, .filter-backdrop { display: none; }

@media (max-width: 768px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-sort { display: none; }

    /* sticky-тулбар: кнопка Фильтры + сортировка */
    .catalog-mbar {
        display: flex;
        gap: 10px;
        position: sticky;
        top: 56px;
        z-index: 20;
        margin: 0 0 16px;
        padding: 10px 0;
        background: linear-gradient(180deg, #1d1d2e 72%, rgba(29,29,46,0));
    }
    .cmbar-filters {
        display: inline-flex; align-items: center; gap: 8px;
        padding: 11px 16px; white-space: nowrap; cursor: pointer;
        background: var(--bg-2); border: 1px solid var(--line-2, rgba(255,255,255,0.14)); color: #fff;
        font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
        clip-path: polygon(0 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%);
    }
    .cmbar-filters svg { width: 15px; height: 15px; }
    .cmbar-num {
        min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
        background: var(--orange); color: #0a0a0a; font-family: var(--font-mono); font-size: 10px;
        display: inline-flex; align-items: center; justify-content: center;
    }
    .cmbar-sort { flex: 1; }
    .cmbar-sort select {
        width: 100%; padding: 11px 14px; cursor: pointer;
        background: var(--bg-2); border: 1px solid var(--line); color: #fff;
        font-family: var(--font-body); font-size: 13px; appearance: none; -webkit-appearance: none;
    }

    /* сайдбар → нижний лист (bottom sheet) */
    .catalog-sidebar {
        position: fixed; left: 0; right: 0; bottom: 0; top: auto;
        z-index: 60; margin: 0; padding: 0 18px 26px;
        max-height: 82vh; overflow-y: auto;
        background: linear-gradient(180deg, #1a1a26, #12121d);
        border-top: 1px solid var(--line-2, rgba(255,255,255,0.14));
        border-radius: 18px 18px 0 0;
        transform: translateY(101%);
        transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
        display: block;
    }
    .catalog-sidebar.open { transform: translateY(0); }
    .filter-sheet-head {
        display: flex; align-items: center; justify-content: space-between;
        position: sticky; top: 0; z-index: 1;
        padding: 16px 0 12px; margin-bottom: 6px;
        background: #1a1a26; border-bottom: 1px solid var(--line);
    }
    .filter-sheet-head .t {
        font-family: var(--font-head); font-weight: 600; font-size: 15px;
        text-transform: uppercase; letter-spacing: 0.04em;
    }
    .filter-sheet-close {
        width: 40px; height: 40px; border-radius: 50%;
        background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: #fff;
        font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    }
    .filter-header { display: none; }
    .filter-group { flex: none; margin-bottom: 18px; }
    .filter-option { min-height: 42px; padding: 9px 10px; }
    .filter-actions {
        position: sticky;
        bottom: -26px;
        z-index: 2;
        margin: 0 -18px;
        padding: 14px 18px 26px;
        background: linear-gradient(180deg, rgba(18,18,29,0.88), #12121d 24%);
    }
    .filter-apply-desktop { display: none; }
    .filter-apply-mobile { display: inline; }
    .filter-reset { justify-content: center; margin-top: 10px; padding: 11px 14px; }
    .filter-active-count { display: none; }
    .filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 6px 0 14px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .filter-chips::-webkit-scrollbar { display: none; }
    .filter-chips-label,
    .filter-chip,
    .filter-clear { flex: 0 0 auto; }

    /* backdrop */
    .filter-backdrop {
        display: block; position: fixed; inset: 0;
        background: rgba(0,0,0,0.62); backdrop-filter: blur(2px);
        z-index: 55; opacity: 0; visibility: hidden;
        transition: opacity 0.25s, visibility 0.25s;
    }
    .filter-backdrop.open { opacity: 1; visibility: visible; }

    /* сетка 2 колонки + уплотнение карточек */
    .gk-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gk-product-body { padding: 12px 12px 14px; gap: 4px; }
    .gk-product-name { font-size: 13px; }
    .gk-product-meta { font-size: 8px; gap: 6px; }
    .gk-product-foot { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 10px; padding-top: 10px; }
    .gk-product-price { font-size: 16px; }
    .gk-btn-cart { justify-content: center; width: 100%; padding: 9px 10px; font-size: 10px; }
    .gk-badge { font-size: 9px; padding: 4px 7px; }
    .gk-fav { width: 40px; height: 40px; top: 8px; right: 8px; }
}

@media (max-width: 680px) {
    .gm-catalog-product .gk-product-img { aspect-ratio: 2.15 / 1; }
    .gm-catalog-product .gk-product-body { padding: 8px; gap: 3px; }
    .gm-catalog-product .gm-product-heading {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 0;
    }
    .gm-catalog-product .gk-product-name {
        min-height: 31px;
        font-size: 12px;
        line-height: 15.5px;
    }
    .gm-catalog-product .gk-product-meta { gap: 5px; font-size: 8px; line-height: 12px; }
    .gm-catalog-product .gk-product-foot {
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
        margin-top: 4px;
        padding-top: 4px;
    }
    .gm-catalog-product .gk-product-price { font-size: 14px; line-height: 18px; }
    .gm-catalog-product .gk-btn-cart {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        padding: 6px;
        font-size: 10px;
        line-height: 13px;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .gm-catalog-product .gm-product-fav.gk-fav {
        width: 44px;
        height: 44px;
        background: transparent;
    }
    .gm-product-gallery-control { display: none !important; }
    .gm-product-gallery-dots { bottom: 5px; padding: 1px 4px; }
    .gm-product-gallery-dot { width: 24px; height: 24px; flex-basis: 24px; }
    .gm-product-gallery-dot::before { width: 4px; height: 4px; }
    .gm-product-gallery-dot.is-active::before { width: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .gm-product-gallery-image,
    .gm-product-gallery-control,
    .gm-product-gallery-dot { transition: none; }
}

/* ---------- WC overrides (hide default elements) ---------- */
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-breadcrumb,
.woocommerce-products-header,
.storefront-sorting,
nav.woocommerce-pagination { display: none !important; }
