/* MotoCockpit catalog: light product cards over a layered technical night surface. */
.sf-category-body {
    background: #060a11;
}

.sf-category-body .sf-page {
    background-color: #070b12;
    background-image:
        radial-gradient(ellipse at 82% 4%, rgba(36, 104, 222, 0.25), transparent 32rem),
        radial-gradient(ellipse at 8% 72%, rgba(20, 184, 214, 0.11), transparent 30rem),
        linear-gradient(rgba(91, 148, 232, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 148, 232, 0.13) 1px, transparent 1px),
        linear-gradient(145deg, rgba(255, 255, 255, 0.025) 0%, transparent 32%, rgba(47, 123, 255, 0.035) 58%, transparent 82%),
        linear-gradient(180deg, #0a101a 0%, #070b12 52%, #05080d 100%);
    background-position: center, center, -1px -1px, -1px -1px, center, center;
    background-size: auto, auto, 72px 72px, 72px 72px, auto, auto;
}

.sf-category-body .sf-category-page {
    padding-block: clamp(30px, 4vw, 58px) clamp(72px, 8vw, 118px);
}

.sf-category-body .sf-category-page__header {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: clamp(26px, 3vw, 42px);
    background: rgba(11, 17, 27, 0.74);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.sf-category-body .sf-category-page__header h1 {
    color: #f4f7fb;
}

.sf-category-body .sf-category-page__header p {
    color: #9ba9bb;
}

.sf-category-body .sf-category-layout {
    gap: clamp(20px, 2.4vw, 36px);
}

.sf-category-body .sf-category-layout--without-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

.sf-category-body .sf-category-sidebar {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 0 18px 20px;
    background: rgba(11, 17, 27, 0.82);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(16px);
}

.sf-category-body .sf-category-sidebar__head {
    color: #eef3f9;
}

.sf-category-body .sf-category-sidebar fieldset {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    padding: 18px 0;
}

.sf-category-body .sf-category-sidebar legend {
    margin-bottom: 10px;
    padding: 0;
    color: #e7edf5;
    font-size: 13px;
    font-weight: 700;
}

.sf-category-body .sf-filter-choice {
    color: #9aa8ba;
}

.sf-category-body .sf-category-results {
    min-width: 0;
}

.sf-category-body .sf-category-results > .sf-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 1.8vw, 26px);
}

.sf-category-body .sf-product-card {
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05),
        0 18px 44px rgba(0, 0, 0, 0.3);
    transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms var(--mc-ease);
}

.sf-category-body .sf-product-card::after {
    position: absolute;
    z-index: 2;
    inset: auto 12% 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, transparent, var(--mc-accent), #32d5ff, transparent);
    opacity: 0;
    transform: scaleX(0.55);
    transition: opacity 240ms ease, transform 240ms var(--mc-ease);
    content: '';
    pointer-events: none;
}

.sf-category-body .sf-product-card:hover,
.sf-category-body .sf-product-card:focus-within {
    border-color: rgba(47, 123, 255, 0.3);
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.08),
        0 28px 64px rgba(0, 0, 0, 0.42),
        0 0 34px rgba(47, 123, 255, 0.1);
    transform: translateY(-6px);
}

.sf-category-body .sf-product-card:hover::after,
.sf-category-body .sf-product-card:focus-within::after {
    opacity: 1;
    transform: scaleX(1);
}

.sf-category-body .sf-product-card__media-wrap {
    aspect-ratio: 16 / 10;
    border-bottom: 0;
    background: #080d14;
}

.sf-category-body .sf-product-card__media {
    padding: 0;
}

.sf-category-body .sf-product-card__media::after {
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(4, 9, 16, 0.28));
    content: '';
    pointer-events: none;
}

.sf-category-body .sf-product-card__media img {
    object-fit: cover;
}

.sf-category-body .sf-product-card:hover .sf-product-card__media img {
    transform: scale(1.035);
    filter: brightness(1.04) saturate(1.04);
}

.sf-category-body .sf-product-card__wish {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(6, 12, 20, 0.66);
    color: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
}

.sf-category-body .sf-product-card__wish:hover,
.sf-category-body .sf-product-card__wish.is-active {
    border-color: rgba(255, 255, 255, 0.44);
    background: rgba(6, 12, 20, 0.88);
    color: #77aaff;
}

.sf-category-body .sf-product-card__body {
    padding: 21px 22px 22px;
}

.sf-category-body .sf-product-card__body h2 {
    color: #111827;
    font-size: clamp(18px, 1.4vw, 22px);
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.sf-category-body .sf-product-card__body h2 a:hover {
    color: #2468db;
}

.sf-category-body .sf-product-card__brand {
    order: -1;
    margin: 0 0 8px;
    color: #2f6ed5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
}

.sf-category-body .sf-product-card__description {
    min-height: 43px;
    margin-top: 10px;
    color: #687386;
    font-size: 13px;
    line-height: 1.6;
}

.sf-category-body .sf-product-card__foot {
    align-items: center;
    margin-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 17px;
}

.sf-category-body .sf-price {
    color: #111827;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.sf-category-body .sf-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 9px;
    background: #e9f8ef;
    color: #18794e;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.sf-category-body .sf-stock::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(24, 121, 78, 0.11);
    content: '';
}

.sf-category-body .sf-stock.is-out {
    background: #fff0f0;
    color: #c53a3a;
}

.sf-category-body .sf-product-card__actions {
    margin-top: 14px;
}

.sf-category-body .sf-product-card__cart {
    min-height: 46px;
    border-radius: 12px;
    opacity: 1;
    box-shadow: 0 10px 24px rgba(47, 123, 255, 0.2);
    transform: none;
}

.sf-category-body .sf-product-card__cart:hover {
    box-shadow: 0 13px 28px rgba(47, 123, 255, 0.28);
}

.sf-category-body .sf-pagination a,
.sf-category-body .sf-pagination span {
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(12, 19, 30, 0.76);
    color: #9ba9bb;
}

.sf-category-body .sf-pagination a:hover,
.sf-category-body .sf-pagination .is-active,
.sf-category-body .sf-pagination [aria-current='page'] {
    border-color: var(--mc-accent);
    background: var(--mc-accent);
    color: #fff;
}

.sf-category-body .sf-empty {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: clamp(32px, 6vw, 72px);
    background: rgba(11, 17, 27, 0.8);
    color: #9ba9bb;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.sf-category-body .sf-empty h2 {
    color: #f4f7fb;
}

.sf-category-sidebar-toggle--catalog {
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding-inline: 16px;
    background: rgba(11, 17, 27, 0.86);
    color: #75a7ff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

@media (max-width: 1180px) {
    .sf-category-body .sf-category-results > .sf-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .sf-category-body .sf-category-sidebar {
        margin-bottom: 16px;
    }

    .sf-category-body .sf-category-results > .sf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .sf-category-body .sf-category-page {
        padding-block: 22px 72px;
    }

    .sf-category-body .sf-category-page__header {
        padding: 20px;
    }

    .sf-category-body .sf-category-results > .sf-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .sf-category-body .sf-product-card {
        border-radius: 17px;
    }

    .sf-category-body .sf-product-card__body {
        padding: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-category-body .sf-product-card,
    .sf-category-body .sf-product-card::after,
    .sf-category-body .sf-product-card__media img {
        transition: none;
    }
}
