/* category.php */
.store-nav-links a.active-cat { color:#f1f5f9; background:rgba(255,255,255,.08); }

/* ═══ Hero: cinematic full-bleed cover banner ════════════════════ */
.cat-hero {
    position: relative;
    min-height: clamp(430px, 56vh, 600px);
    display: flex; align-items: flex-end;
    overflow: hidden;
    background: transparent;
}
.cat-hero__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center 30%;
    transform: scale(1.03);
}
.cat-hero__bg--plain {
    background:
        radial-gradient(ellipse 70% 80% at 30% 40%, rgba(124,58,237,.18), transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 70%, rgba(6,182,212,.1), transparent 70%);
}
.cat-hero__scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(to bottom, rgba(7,8,15,.52) 0%, rgba(7,8,15,.18) 40%, rgba(7,8,15,.28) 75%, transparent 100%),
        radial-gradient(ellipse 70% 60% at 30% 70%, rgba(124,58,237,.16), transparent 70%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}
.cat-hero__bg {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, rgba(0,0,0,.55) 75%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 45%, rgba(0,0,0,.55) 75%, transparent 100%);
}
.cat-hero__gridlines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(124,58,237,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124,58,237,.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 75% 75% at 40% 60%, black 25%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse 75% 75% at 40% 60%, black 25%, transparent 95%);
}
.cat-hero__crumbs {
    position: absolute; top: 28px; left: 0; right: 0; z-index: 3;
}
.cat-hero__crumbs .cat-crumbs {
    max-width: 1180px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; gap: 8px;
    font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.cat-crumbs a { color: rgba(241,245,249,.45); text-decoration: none; transition: color .2s; }
.cat-crumbs a:hover { color: #c4b5fd; }
.cat-crumbs .crumb-sep { color: rgba(241,245,249,.25); }
.cat-crumbs .crumb-current { color: #a78bfa; }
.cat-hero__inner {
    position: relative; z-index: 2;
    max-width: 1180px; margin: 0 auto; width: 100%; box-sizing: border-box;
    padding: 130px 20px 46px;
}
.cat-hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 50px;
    background: rgba(124,58,237,.14); border: 1px solid rgba(124,58,237,.32);
    font-size: .75rem; font-weight: 700; color: #c4b5fd;
    letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 20px;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cat-hero__eyedot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #7c3aed; box-shadow: 0 0 8px #7c3aed;
    animation: dot-pulse 2s ease-in-out infinite;
}
.cat-hero__title {
    font-size: clamp(2.6rem, 5.4vw, 4.1rem);
    font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
    color: #f1f5f9; margin: 0 0 16px;
    text-shadow: 0 4px 40px rgba(0,0,0,.6);
    text-wrap: balance;
}
.cat-hero__accent {
    background: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
/* Accent line lives OUTSIDE the <h1> (SEO: H1 = game name only), styled to look like its second line */
.cat-hero__accent--line {
    font-size: clamp(2.6rem, 5.4vw, 4.1rem);
    font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
    margin: -12px 0 16px; text-wrap: balance;
}
.cat-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cat-guide { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.cat-guide:hover { border-color: rgba(167,139,250,.45); transform: translateY(-2px); }
.cat-guide__date { font-size: .74rem; color: #64748b; }
.cat-guide__title { font-weight: 700; color: #f1f5f9; line-height: 1.3; }
.cat-guide__desc { font-size: .85rem; color: #94a3b8; line-height: 1.5; }
.cat-hero__desc {
    font-size: 1.05rem; line-height: 1.7;
    color: rgba(241,245,249,.66);
    max-width: 580px; margin: 0 0 26px;
}
.cat-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.cat-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 28px; border-radius: 11px;
    font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
    text-decoration: none; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
    white-space: nowrap;
}
.cat-btn-primary {
    background: #a78bfa; color: #0a0b10;
    box-shadow: 0 8px 24px rgba(124,58,237,.35);
}
.cat-btn-primary:hover { background: #7c3aed; color: #fff; }
.cat-btn-outline {
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(241,245,249,.75);
    background: rgba(255,255,255,.03);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cat-btn-outline:hover { color: #f1f5f9; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.07); }
.cat-hero__stats {
    display: flex; align-items: center;
    border-top: 1px solid rgba(255,255,255,.09);
    padding-top: 22px; max-width: 560px;
}
.cat-hero__stat { padding-right: 36px; margin-right: 36px; border-right: 1px solid rgba(255,255,255,.09); }
.cat-hero__stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.cat-hero__stat b {
    display: block; font-size: 1.35rem; font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cat-hero__stat span { font-size: .75rem; color: rgba(241,245,249,.45); font-weight: 500; }

/* ═══ Page shell ═════════════════════════════════════════════════ */
.cat-page-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.cat-page-bg__orb {
    position: absolute; border-radius: 50%; opacity: .12;
}
.cat-page-bg__orb--purple {
    width: 840px; height: 840px;
    background: radial-gradient(circle, rgba(124,58,237,.65) 0%, rgba(124,58,237,.28) 35%, rgba(124,58,237,.06) 60%, transparent 75%);
    top: -200px; right: -160px;
}
.cat-page-bg__orb--cyan {
    width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(6,182,212,.65) 0%, rgba(6,182,212,.28) 35%, rgba(6,182,212,.06) 60%, transparent 75%);
    bottom: -140px; left: -160px; opacity: .08;
}
.cat-page {
    max-width: 1410px; margin: 0 auto;
    padding: 26px 20px 60px;
    position: relative;
}
.cat-page > section { max-width: 1180px; margin-left: auto; margin-right: auto; }
/* scroll-margin: якорные переходы (#products) не должны прятать шапку секции под фикс. хедер */
.cat-section { margin-bottom: 52px; scroll-margin-top: 84px; }

/* Screen-reader-only heading (document outline for the products section) */
.cat-sr-only {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0); clip-path: inset(50%);
    overflow: hidden; white-space: nowrap;
}

/* Section headers (FAQ / About / Other games) */
.cat-sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.cat-sec-tag {
    padding: 4px 12px; border-radius: 50px; flex-shrink: 0;
    font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    background: rgba(124,58,237,.12); color: #a78bfa;
    border: 1px solid rgba(124,58,237,.25);
}
.cat-sec-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: #f1f5f9; margin: 0; }

/* ═══ Toolbar: live search + filter chips ════════════════════════ */
.cat-toolbar {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    position: sticky; top: 72px; z-index: 40;
    padding: 10px;
    margin: 0 -10px 22px;
    border-radius: 16px;
    background: rgba(7,8,15,.82);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.05);
}
.cat-search {
    flex: 1; min-width: 240px; max-width: 480px; position: relative;
    display: flex; align-items: center; gap: 10px;
    height: 46px; padding: 0 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.cat-search.is-focused, .cat-search:focus-within {
    border-color: rgba(139,92,246,.55);
    background: rgba(124,58,237,.06);
    box-shadow: 0 0 0 3px rgba(124,58,237,.14);
}
.cat-search__ic { color: rgba(241,245,249,.35); flex-shrink: 0; }
.cat-search.is-focused .cat-search__ic, .cat-search:focus-within .cat-search__ic { color: #a78bfa; }
.cat-search__input {
    flex: 1; min-width: 0;
    background: none; border: none; outline: none; height: 100%;
    color: #e2e5ee; font-size: .9rem; font-family: inherit;
    caret-color: #a78bfa;
}
.cat-search__input::placeholder { color: rgba(241,245,249,.35); }
.cat-search__kbd {
    flex-shrink: 0;
    font-size: .68rem; font-weight: 700; color: rgba(241,245,249,.3);
    border: 1px solid rgba(255,255,255,.12); border-radius: 6px;
    padding: 2px 7px; background: rgba(255,255,255,.03);
}
.cat-search:focus-within .cat-search__kbd { display: none; }
.cat-search__clear[hidden] { display: none !important; }
.cat-search__clear {
    background: rgba(255,255,255,.06); border: none;
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    color: #8e919c; font-size: 15px; line-height: 1;
    cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.cat-search__clear:hover { color: #f1f5f9; background: rgba(255,255,255,.12); }

/* Search dropdown */
.cat-search__dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: rgba(13,15,24,.97);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    box-shadow: 0 24px 70px rgba(0,0,0,.65), 0 0 0 1px rgba(124,58,237,.12);
    max-height: 400px; overflow-y: auto;
    z-index: 50;
    padding: 4px;
}
.cat-drop-h {
    padding: 10px 14px 5px;
    font-size: .66rem; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; color: rgba(241,245,249,.32);
}
.cat-drop-row {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 12px;
    border-radius: 9px;
    cursor: pointer; text-decoration: none; color: inherit;
    transition: background .12s;
}
.cat-drop-row:hover, .cat-drop-row.is-active { background: rgba(124,58,237,.14); }
.cat-drop-row__th {
    width: 44px; height: 30px; border-radius: 6px;
    background: linear-gradient(135deg, #3a2b52, #141826);
    background-size: cover; background-position: center;
    flex-shrink: 0;
}
.cat-drop-row__ic {
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(124,58,237,.12);
    border: 1px solid rgba(124,58,237,.25);
    display: flex; align-items: center; justify-content: center;
    color: #c4b5fd;
    flex-shrink: 0;
}
.cat-drop-row__body { flex: 1; min-width: 0; }
.cat-drop-row__t {
    font-size: .88rem; font-weight: 600; color: #f1f5f9;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-drop-row__t b { color: #22d3ee; font-weight: 800; }
.cat-drop-row__s {
    font-size: .72rem; color: rgba(241,245,249,.4); margin-top: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-drop-row__aside {
    margin-left: auto; flex-shrink: 0;
    font-size: .8rem; font-weight: 800; color: #a78bfa; white-space: nowrap;
}
.cat-drop-row__fn {
    margin-left: auto; flex-shrink: 0;
    font-size: .68rem; color: rgba(241,245,249,.35);
    background: rgba(255,255,255,.05); padding: 3px 9px; border-radius: 50px;
    white-space: nowrap; max-width: 40%; overflow: hidden; text-overflow: ellipsis;
}
.cat-drop-showall {
    display: block; text-align: center;
    margin: 4px -4px -4px; padding: 11px;
    font-size: .8rem; font-weight: 700; color: #a78bfa;
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(124,58,237,.05);
    cursor: pointer;
    border-radius: 0 0 14px 14px;
}
.cat-drop-showall:hover { background: rgba(124,58,237,.12); }
.cat-drop-empty { padding: 18px 14px; font-size: .85rem; color: rgba(241,245,249,.45); text-align: center; }
.cat-drop-tag {
    display: inline-block; padding: 5px 11px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    font-size: .74rem; font-weight: 600; color: #c4b5fd;
    margin: 0 4px 4px 0; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.cat-drop-tag:hover { background: rgba(124,58,237,.16); border-color: rgba(124,58,237,.35); color: #fff; }
.cat-drop-tags { padding: 4px 14px 12px; }
.cat-drop-letters { display: flex; flex-wrap: wrap; gap: 3px; padding: 4px 14px 12px; align-items: center; }
.cat-drop-lang {
    font-size: .62rem; font-weight: 700; letter-spacing: .1em;
    color: rgba(241,245,249,.25); margin-right: 6px;
}
.cat-drop-letter {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 24px; height: 24px; padding: 0 4px; border-radius: 6px;
    font-size: .74rem; font-weight: 700; color: rgba(241,245,249,.55);
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
    cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.cat-drop-letter:hover { background: rgba(124,58,237,.18); color: #fff; border-color: rgba(124,58,237,.4); }

/* Filter chips */
.cat-toolbar__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-chip {
    position: relative;
    display: inline-flex; align-items: center; gap: 8px;
    height: 46px; padding: 0 16px; border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    color: rgba(241,245,249,.78);
    font-size: .84rem; font-weight: 600;
    cursor: pointer; user-select: none;
    transition: border-color .2s, color .2s, background .2s;
    white-space: nowrap;
}
.cat-chip:hover { border-color: rgba(124,58,237,.4); color: #f1f5f9; }
.cat-chip > svg { color: rgba(241,245,249,.4); transition: transform .2s, color .2s; }
.cat-chip.is-open > svg { transform: rotate(180deg); }
.cat-chip.is-set {
    background: rgba(124,58,237,.13);
    border-color: rgba(124,58,237,.38);
    color: #c4b5fd;
}
.cat-chip.is-set > svg { color: #a78bfa; }
.cat-chip__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #a78bfa; box-shadow: 0 0 6px #a78bfa;
    flex-shrink: 0;
}
.cat-chip__menu {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
    min-width: 200px;
    background: rgba(13,15,24,.97);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    box-shadow: 0 20px 56px rgba(0,0,0,.6);
    padding: 6px;
    cursor: default;
}
.cat-chip__opt {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px; border-radius: 8px;
    font-size: .84rem; color: rgba(241,245,249,.75);
    cursor: pointer; transition: background .12s, color .12s;
}
.cat-chip__opt:hover { background: rgba(124,58,237,.12); color: #f1f5f9; }
.cat-chip__opt input { accent-color: #7c3aed; margin: 0; cursor: pointer; }
.cat-chip__menu--price { padding: 14px; min-width: 250px; }
.cat-price__head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 10px;
    font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(241,245,249,.4);
}
.cat-price__found { color: #a78bfa; text-transform: none; letter-spacing: normal; font-size: .74rem; font-weight: 700; }
.cat-price__found b { color: #f1f5f9; }
.cat-price__inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.cat-price__inputs input {
    width: 100%; box-sizing: border-box;
    height: 38px; padding: 0 10px; border-radius: 9px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.09);
    color: #f1f5f9; font-size: .84rem; font-family: inherit; outline: none;
    transition: border-color .2s;
    -moz-appearance: textfield;
}
.cat-price__inputs input::-webkit-outer-spin-button,
.cat-price__inputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cat-price__inputs input:focus { border-color: rgba(124,58,237,.5); }
.cat-price__dash { color: rgba(241,245,249,.3); flex-shrink: 0; }
.cat-price__slider { position: relative; height: 18px; margin: 0 8px 4px; cursor: default; }
.cat-price__track {
    position: absolute; left: 0; right: 0; top: 50%; height: 4px;
    transform: translateY(-50%); border-radius: 4px;
    background: rgba(255,255,255,.08);
}
.cat-price__fill {
    position: absolute; top: 50%; height: 4px;
    transform: translateY(-50%); border-radius: 4px;
    background: linear-gradient(90deg, #7c3aed, #22d3ee);
    left: 0; right: 0;
}
.cat-price__thumb {
    position: absolute; top: 50%; width: 16px; height: 16px;
    border-radius: 50%; transform: translate(-50%, -50%);
    background: #f1f5f9; border: 3px solid #7c3aed;
    box-shadow: 0 2px 8px rgba(0,0,0,.5);
    cursor: grab; touch-action: none;
}
.cat-price__thumb:active { cursor: grabbing; }
.cat-toolbar__count {
    margin-left: auto; padding-right: 6px;
    font-size: .82rem; color: rgba(241,245,249,.42); font-weight: 600;
    white-space: nowrap;
}
.cat-toolbar__count b { color: #f1f5f9; }

/* Search-empty state */
.cat-main__empty {
    text-align: center; padding: 48px 20px; margin-bottom: 22px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
}
.cat-main__empty-t { font-size: .95rem; color: rgba(241,245,249,.55); margin-bottom: 16px; }

/* ═══ Grid: featured-first (variant B) ═══════════════════════════ */
.cat-section .store-products-grid {
    margin: 0;
    grid-template-columns: repeat(auto-fill, minmax(266px, 1fr));
    gap: 20px;
    justify-content: start;
}
.cat-order-handle{display:none;position:absolute;z-index:12;top:10px;left:50%;transform:translateX(-50%);width:68px;height:30px;grid-template-columns:repeat(6,4px);place-content:center;gap:4px;border:1px solid rgba(196,181,253,.5);border-radius:999px;background:rgba(10,10,22,.97);box-shadow:0 7px 22px rgba(0,0,0,.5);cursor:grab;touch-action:none;user-select:none}.cat-order-handle:hover,.cat-order-handle:focus-visible{border-color:#a78bfa;background:rgba(76,29,149,.98);box-shadow:0 0 0 3px rgba(139,92,246,.18),0 8px 24px rgba(0,0,0,.48);outline:none}.cat-order-handle:active{cursor:grabbing}.cat-order-handle i{width:4px;height:4px;border-radius:50%;background:#ddd6fe}.cat-order-editing .store-product-card{transition:transform .16s,border-color .16s,opacity .16s}.cat-order-editing .cat-order-handle{display:grid}.cat-order-editing .store-product-card.is-dragging{opacity:.35;transform:scale(.985);border-color:#8b5cf6}.cat-order-editing .store-product-card.is-drop-before{box-shadow:inset 0 4px 0 #8b5cf6}.cat-order-editing .store-product-card.is-drop-after{box-shadow:inset 0 -4px 0 #8b5cf6}
.cat-order-toast{position:fixed;z-index:9999;left:50%;bottom:26px;transform:translate(-50%,18px);padding:10px 15px;border:1px solid rgba(52,211,153,.35);border-radius:11px;background:rgba(7,18,18,.94);box-shadow:0 12px 36px rgba(0,0,0,.42);color:#6ee7b7;font-size:.78rem;font-weight:750;opacity:0;pointer-events:none;transition:.18s}.cat-order-toast.is-visible{opacity:1;transform:translate(-50%,0)}.cat-order-toast.is-error{color:#fda4af;border-color:rgba(251,113,133,.4);background:rgba(28,9,14,.95)}
@media(max-width:700px){.cat-order-handle{top:8px;width:72px;height:34px}}
/* Featured (first) card: wide horizontal layout on desktop */
@media (min-width: 880px) {
    .cat-grid--featured .spc-feat {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 46% 1fr;
        grid-template-rows: 1fr auto;
        grid-template-areas: "thumb body" "thumb footer";
        min-height: 260px;
    }
    /* NB: no absolute-fill on the img here — Chromium drops the image when a
       masked overlay (the corner ring below) sits above an absolutely
       positioned img inside this transformed card. Grid stretch suffices. */
    .cat-grid--featured .spc-feat .spc-thumb { grid-area: thumb; height: 100%; min-height: 260px; }
    .cat-grid--featured .spc-feat .spc-body {
        grid-area: body;
        margin-top: 0; border-radius: 0; border-top: none;
        border-left: 1px solid rgba(255,255,255,.06);
        padding: 26px 28px 14px;
        justify-content: center;
    }
    .cat-grid--featured .spc-feat .spc-body .spc-desc { flex: initial; }
    .cat-grid--featured .spc-feat .spc-name { font-size: 1.5rem; }
    .cat-grid--featured .spc-feat .spc-desc { -webkit-line-clamp: 3; font-size: .9rem; }
    .cat-grid--featured .spc-feat .spc-footer {
        grid-area: footer;
        border-left: 1px solid rgba(255,255,255,.06);
        padding: 14px 28px;
    }
}

/* ── GRID VARIANT C: горизонтальный список ───────────────────────
   Включается в панели: категория → «Вид сетки товаров» → «Списком». */
.cat-grid--list { display: flex; flex-direction: column; gap: 16px; }
.cat-grid--list .store-product-card {
    display: grid;
    /* фикс. ширина колонки цены — иначе разделитель гуляет от карточки к карточке */
    grid-template-columns: 280px 1fr 224px;
    grid-template-areas: "thumb body footer";
    min-height: 176px;
}
.cat-grid--list .spc-thumb { grid-area: thumb; height: 100%; min-height: 176px; }
/* Percent heights don't resolve inside the grid cell — fill it absolutely */
.cat-grid--list .spc-thumb img,
.cat-grid--list .spc-thumb .spc-thumb-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat-grid--list .spc-body {
    grid-area: body;
    margin-top: 0; border-radius: 0; border-top: none;
    border-left: 1px solid rgba(255,255,255,.06);
    padding: 20px 24px; justify-content: center;
}
.cat-grid--list .spc-body .spc-desc { flex: initial; }
.cat-grid--list .spc-footer {
    grid-area: footer;
    flex-direction: column; align-items: flex-end; justify-content: center; gap: 12px;
    border-top: none; border-left: 1px solid rgba(255,255,255,.05);
    padding: 20px 22px;
}
.cat-grid--list .spc-footer .spc-price { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 880px) {
    .cat-grid--list .store-product-card { display: flex; flex-direction: column; }
    .cat-grid--list .spc-thumb { min-height: 180px; }
    /* justify-content:center из десктопного правила выше здесь сбивает футер
       в центр — возвращаем цену влево, кнопку «Подробнее» вправо */
    .cat-grid--list .spc-footer { flex-direction: row; align-items: center; justify-content: space-between; border-left: none; border-top: 1px solid rgba(255,255,255,.04); }
    .cat-grid--list .spc-footer .spc-price { justify-content: flex-start; }
}

/* ═══ Violet corner accents — same recipe as the product page panels ═══ */
.cat-trust__item, .cat-faq-item, .cat-other-tile, .cat-empty, .cat-main__empty { position: relative; }
.cat-toolbar::after, .cat-trust__item::after, .cat-faq-item::after, .cat-other-tile::after,
.cat-empty::after, .cat-main__empty::after, .cat-section .store-product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background:
        radial-gradient(150px 150px at 0% 0%, rgba(139,92,246,.44), transparent 72%),
        radial-gradient(150px 150px at 100% 100%, rgba(139,92,246,.35), transparent 72%),
        radial-gradient(120px 120px at 100% 0%, rgba(124,58,237,.15), transparent 70%),
        radial-gradient(120px 120px at 0% 100%, rgba(124,58,237,.15), transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
}
/* RECOMMENDED-товары — уголки золотые (перебивает фиолетовый рецепт выше) */
.cat-section .store-product-card.spc-rec::after {
    background:
        radial-gradient(150px 150px at 0% 0%, rgba(251,191,36,.5), transparent 72%),
        radial-gradient(150px 150px at 100% 100%, rgba(251,191,36,.4), transparent 72%),
        radial-gradient(120px 120px at 100% 0%, rgba(251,191,36,.18), transparent 70%),
        radial-gradient(120px 120px at 0% 100%, rgba(251,191,36,.18), transparent 70%);
}

/* Чип статуса на карточках — специально БЕЗ переопределений: рендерится
   базовая пилюля .spc-status из store.css (как на главной и товаре). */

/* Trial chip on product listing cards */
.spc-trial-chip {
    position:absolute; top:8px; right:8px; z-index:3;
    display:inline-flex; align-items:center; gap:4px;
    padding:5px 10px; border-radius:20px;
    background:linear-gradient(135deg,rgba(34,211,238,.85),rgba(124,58,237,.85));
    border:1px solid rgba(165,243,252,.5);
    color:#fff; font-size:.72rem; font-weight:700;
    cursor:pointer; -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
    box-shadow:0 4px 12px rgba(34,211,238,.25);
    transition:transform .15s, box-shadow .15s;
}
.spc-trial-chip:hover {
    transform:translateY(-1px) scale(1.04);
    box-shadow:0 6px 16px rgba(34,211,238,.4);
}
.spc-trial-chip:disabled { opacity:.6; cursor:wait; }

/* Empty category state */
.cat-empty {
    text-align: center; padding: 60px 20px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 14px;
}
.cat-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.cat-empty h3 { color: #f1f5f9; font-size: 1.15rem; margin: 0 0 8px; }
.cat-empty p { color: #8e919c; font-size: .92rem; margin: 0; }

/* ═══ Trust badges ═══════════════════════════════════════════════ */
.cat-section--trust { margin-top: -8px; }
.cat-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-trust__item {
    display: flex; align-items: center; gap: 13px;
    padding: 17px 18px;
    background: rgba(255,255,255,.028);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
}
.cat-trust__ic {
    width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 14%, transparent);
    box-shadow: 0 0 20px color-mix(in srgb, var(--c) 14%, transparent);
}
.cat-trust__ic svg {
    width: 23px; height: 23px;
    fill: none; stroke: currentColor; stroke-width: 2.25;
    stroke-linecap: round; stroke-linejoin: round;
    filter: drop-shadow(0 2px 5px color-mix(in srgb, var(--c) 42%, transparent));
}
.cat-trust__item:first-child .cat-trust__ic svg { fill: currentColor; stroke: none; }
.cat-trust__ic svg .soft-fill { fill: color-mix(in srgb, var(--c) 20%, transparent); }
.cat-trust__ic svg .soft-dot { stroke-width: 3.2; }
.cat-trust__item b { display: block; font-size: .85rem; font-weight: 700; color: #f1f5f9; margin-bottom: 2px; }
.cat-trust__item span:not(.cat-trust__ic) { font-size: .72rem; color: rgba(241,245,249,.42); }

/* ═══ FAQ accordion ══════════════════════════════════════════════ */
.cat-faq-list { display: flex; flex-direction: column; gap: 10px; }
.cat-faq-item {
    position: relative;
    background: rgba(255,255,255,.028);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 13px; overflow: hidden;
    transition: border-color .25s, background .25s;
}
.cat-faq-item[open] { border-color: rgba(124,58,237,.3); background: rgba(124,58,237,.045); }
.cat-faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 17px 20px;
    cursor: pointer; list-style: none;
    font-size: .95rem; font-weight: 700; color: #f1f5f9;
}
.cat-faq-item summary::-webkit-details-marker { display: none; }
.cat-faq-t { flex: 1; }
.cat-faq-c {
    width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(124,58,237,.12); border: 1px solid rgba(124,58,237,.25);
    color: #a78bfa; font-size: 1rem; font-weight: 600;
    transition: transform .25s, background .2s, color .2s;
}
.cat-faq-item[open] .cat-faq-c { transform: rotate(45deg); background: #7c3aed; color: #fff; }
.cat-faq-answer {
    padding: 0 20px 18px;
    font-size: .88rem; line-height: 1.7; color: rgba(241,245,249,.58);
    max-width: 820px;
    animation: catFaqIn .22s ease;
}
@keyframes catFaqIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* ═══ About: prose panel with clamp + fade ═══════════════════════ */
.cat-about {
    position: relative;
    background:
        radial-gradient(240px 160px at 100% 100%, rgba(124,58,237,.06), transparent 70%),
        rgba(255,255,255,.022);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 28px 30px;
    overflow: hidden;
}
/* Violet corner-lit border ring — same design language as product page panels */
.cat-about::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
    background:
        radial-gradient(150px 150px at 0% 0%, rgba(139,92,246,.44), transparent 72%),
        radial-gradient(150px 150px at 100% 100%, rgba(139,92,246,.35), transparent 72%),
        radial-gradient(120px 120px at 100% 0%, rgba(124,58,237,.15), transparent 70%),
        radial-gradient(120px 120px at 0% 100%, rgba(124,58,237,.15), transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}
.cat-about__cube {
    position: absolute; right: -34px; bottom: -40px;
    width: 170px; height: 170px;
    color: #8b5cf6; opacity: .08; transform: rotate(-6deg);
    pointer-events: none; z-index: 0;
}
.cat-about-body { position: relative; z-index: 1; font-size: .92rem; line-height: 1.75; color: rgba(241,245,249,.6); max-width: 900px; }
.cat-about-body p { margin: 0 0 14px; }
.cat-about-body p:last-child { margin-bottom: 0; }
.cat-about-body a { color: #a78bfa; }
.cat-about-body.is-clamped { max-height: 110px; overflow: hidden; }
.cat-about-fade {
    position: absolute; left: 0; right: 0; bottom: 0; height: 84px; z-index: 1;
    background: linear-gradient(to bottom, transparent, #0b0d16 78%);
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 16px;
}
.cat-about-fade.is-open {
    position: static; height: auto; background: none;
    padding: 18px 0 0;
}
.cat-about-more {
    display: inline-flex; align-items: center; gap: 7px;
    height: 38px; padding: 0 20px; border-radius: 10px;
    background: rgba(124,58,237,.13);
    border: 1px solid rgba(124,58,237,.3);
    color: #c4b5fd; font-size: .78rem; font-weight: 700;
    cursor: pointer; font-family: inherit;
    transition: background .2s, border-color .2s;
}
.cat-about-more:hover { background: rgba(124,58,237,.22); border-color: rgba(124,58,237,.45); }
.cat-about-more svg { transition: transform .25s; }

/* Trial tag + «Подробнее» button on product cards (affordance) */
.spc-trial-tag {
    margin-left: 8px; font-size: .62rem; font-weight: 700;
    padding: 3px 8px; border-radius: 50px;
    background: rgba(34,211,238,.12); color: #22d3ee; border: 1px solid rgba(34,211,238,.3);
    white-space: nowrap;
}
.cat-section .spc-more {
    display: inline-flex; align-items: center; gap: 5px;
    height: 32px; padding: 0 13px; border-radius: 9px;
    background: rgba(124,58,237,.12); border: 1px solid rgba(124,58,237,.28);
    color: #c4b5fd; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
    transition: background .2s, border-color .2s, transform .2s;
    flex-shrink: 0;
}
.cat-section .store-product-card:hover .spc-more { background: rgba(124,58,237,.22); border-color: rgba(124,58,237,.45); transform: translateX(2px); }

/* ═══ CTA-планка возврата к покупке (после «О категории») ════════ */
.cat-back-cta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px; flex-wrap: wrap;
    padding: 20px 24px; border-radius: 16px;
    background:
        radial-gradient(320px 160px at 10% 0%, rgba(124,58,237,.12), transparent 70%),
        rgba(16,18,27,.55);
    border: 1px solid rgba(124,58,237,.3);
}
.cat-back-cta__t { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; color: #f1f5f9; margin-bottom: 4px; }
.cat-back-cta__s { font-size: .78rem; color: rgba(241,245,249,.5); }
.cat-back-cta__btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 22px; border-radius: 11px;
    background: #a78bfa; color: #0a0b10;
    font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
    text-decoration: none; white-space: nowrap;
    box-shadow: 0 8px 24px rgba(124,58,237,.25);
    transition: background .2s, color .2s;
}
.cat-back-cta__btn:hover { background: #7c3aed; color: #fff; }

/* ═══ Responsive ═════════════════════════════════════════════════ */
@media (max-width: 980px) {
    .cat-trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .cat-hero { min-height: 400px; }
    .cat-hero__inner { padding: 82px 16px 34px; }
    .cat-hero__crumbs .cat-crumbs { padding: 0 16px; }
    .cat-hero__desc { font-size: .95rem; }
    .cat-hero__stats { max-width: none; }
    .cat-hero__stat { padding-right: 22px; margin-right: 22px; }
    .cat-page { padding: 20px 16px 40px; }
    .cat-section { margin-bottom: 38px; }
    .cat-toolbar { top: 62px; position: static; margin: 0 0 18px; padding: 0; border: none; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .cat-search { max-width: none; flex-basis: 100%; }
    .cat-toolbar__count { margin-left: 0; flex-basis: 100%; order: 10; }
    .cat-chip { height: 42px; padding: 0 13px; font-size: .8rem; }
    .cat-chip__menu { min-width: 200px; max-width: calc(100vw - 40px); }
    /* Right-half chips open their menu right-aligned so it can't overflow the viewport */
    .cat-chip:nth-child(n+3) .cat-chip__menu { left: auto; right: 0; }
    /* «Читать далее»: on narrow screens the clamped text wraps into more lines,
       so give the fade more height — the button must never sit on readable text */
    .cat-about-body.is-clamped { max-height: 150px; }
    .cat-about-fade { height: 120px; background: linear-gradient(to bottom, transparent, #0b0d16 62%); }
    .cat-btn { height: 44px; padding: 0 20px; }
}
@media (max-width: 560px) {
    .cat-trust { grid-template-columns: 1fr; }
    .cat-hero__title { font-size: 2.3rem; }
    .cat-hero__accent--line { font-size: 2.3rem; margin-top: -8px; }
    .cat-about { padding: 20px 18px; }
    .cat-sec-title { font-size: 1.15rem; }
}
