.checkbox-row,
.filter-chip {
    cursor: pointer;
    font-size: .9rem
}

.btn-order:hover,
.filter-chip.active,
.p-badge.sale {
    background: var(--accent)
}

.btn-order:hover,
.search-input:focus {
    box-shadow: 0 0 15px var(--accent-dim)
}

:root {
    --bg: #050505;
    --surface: #111;
    --border: #333;
    --text-main: #fff;
    --text-muted: #888;
    --accent: #07b410;
    --accent-dim: rgba(204, 255, 0, 0.1);
    --font-head: system-ui;
    --font-body: 'Segoe UI', Roboto, sans-serif;
    --thumb-height: 44px
}

.filter-chip,
.search-input {
    border: 1px solid var(--border)
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    padding-bottom: 80px
}

.catalog-header {
    padding: 40px 5% 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(5, 5, 5, .95);
    backdrop-filter: blur(10px);
    z-index: 100
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px
}

h1 {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: .9;
    text-transform: uppercase
}

.result-count {
    font-family: monospace;
    color: var(--accent);
    font-size: .9rem
}

.filter-title,
.p-price {
    font-family: var(--font-head)
}

.search-wrapper {
    position: relative;
    width: 100%
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted)
}

.search-input {
    width: 100%;
    background: var(--surface);
    padding: 15px 15px 15px 45px;
    color: #fff;
    font-size: 1rem;
    border-radius: 4px;
    transition: .3s;
    appearance: none
}

.search-input:focus {
    outline: 0;
    border-color: var(--accent)
}

.filter-scroller {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px 5%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    scrollbar-width: none
}

.filter-scroller::-webkit-scrollbar {
    display: none
}

.filter-chip {
    background: 0 0;
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 50px;
    white-space: nowrap;
    transition: .2s;
    flex-shrink: 0
}

.filter-chip.active {
    color: #000;
    border-color: var(--accent);
    font-weight: 700
}

.main-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 80vh
}

.sidebar {
    padding: 30px;
    border-right: 1px solid var(--border);
    height: 100%
}

.filter-group {
    margin-bottom: 30px
}

.filter-title {
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #fff
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-muted)
}

.p-badge,
.p-category {
    font-size: .7rem;
    text-transform: uppercase
}

.checkbox-row:hover {
    color: #fff
}

input[type=checkbox] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px
}

.product-grid {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-content: start
}

.p-card {
    background: var(--surface);
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: .3s;
    content-visibility: auto;
    contain-intrinsic-size: 400px
}

.p-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    z-index: 2
}

.p-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    color: #000;
    font-weight: 700;
    padding: 4px 8px;
    z-index: 5
}

.p-details,
.p-img-box {
    padding: 20px;
    display: flex
}

.p-img-box {
    height: 250px;
    background: radial-gradient(circle at center, #222, #111);
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.p-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5))
}

.p-card:hover .p-img {
    transform: scale(1.1)
}

.p-details {
    flex-grow: 1;
    flex-direction: column
}

.p-category {
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 5px
}

.p-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    color: #fff
}

.p-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px
}

.spec-tag {
    border: 1px solid #333;
    color: #888;
    font-size: .7rem;
    padding: 2px 6px
}

.p-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
    padding-top: 15px
}

.p-price {
    font-size: 1.4rem;
    color: #fff
}

.p-price small {
    font-size: .9rem;
    color: #666;
    text-decoration: line-through;
    margin-right: 5px
}

.btn-order {
    background: #fff;
    color: #000;
    border: none;
    padding: 8px 16px;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: .2s;
    text-decoration: none;
    display: inline-block
}

@media (max-width:900px) {
    .main-layout {
        grid-template-columns: 1fr
    }

    .sidebar,
    .spec-tag {
        display: none
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        padding: 15px;
        gap: 10px
    }

    h1 {
        font-size: 2rem
    }

    .p-img-box {
        height: 160px;
        padding: 10px
    }

    .p-details {
        padding: 12px
    }

    .p-title {
        font-size: .9rem
    }

    .p-price {
        font-size: 1.1rem
    }

    .btn-order {
        padding: 6px 12px;
        font-size: .75rem
    }
}

.no-results {
    grid-column: 1/-1;
    text-align: center;
    padding: 100px;
    color: #666;
    font-family: monospace
}
