main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 60px
}

/* Title */
h1 {
    margin: 0 0 8px;
    font-size: clamp(22px, 3.2vw, 32px)
}

.lead {
    color: #d4d4d4;
    margin: 0 0 18px
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px
}

@media (max-width: 980px) {
    .layout {
        grid-template-columns: 1fr
    }
}

/* Sidebar Categories */
.sidebar {
    position: sticky;
    top: 84px;
    align-self: start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px
}

    .sidebar h2 {
        margin: 4px 6px 10px;
        font-size: 14px;
        color: #fff;
        letter-spacing: .04em
    }

.cat-list {
    display: grid;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0
}

.cat-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: #0b0b0b;
    color: #dcdcdc;
    border: 1px solid #1f1f1f;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: .2s
}

    .cat-btn:hover {
        background: #111
    }

    .cat-btn.active {
        border-color: var(--deep);
        box-shadow: 0 0 0 3px rgba(239,68,68,.18) inset;
        color: #fff
    }

.count {
    font-size: 12px;
    color: #9f9f9f
}

/* Panel (Types + Products) */
.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px
}

    .panel-head h3 {
        margin: 0;
        font-size: 18px
    }

.muted {
    color: #a3a3a3;
    font-size: 12px
}

/* Type chips */
.types {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 6px 0 14px
}

.chip {
    border: 1px solid #333;
    background: #0b0b0b;
    color: #ddd;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer
}

    .chip.active {
        border-color: var(--deep);
        background: #7f1d1d;
        color: #fff
    }

/* Grid */
.grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0,1fr))
}

@media (max-width: 1100px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0,1fr))
    }
}

@media (max-width: 780px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0,1fr))
    }
}

@media (max-width: 520px) {
    .grid {
        grid-template-columns: 1fr
    }
}

/* Card */
.card {
    background: #0b0b0b;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(6px);
    opacity: 0;
    transition: .4s ease
}

    .card.show {
        transform: none;
        opacity: 1
    }

.media {
    aspect-ratio: 4/3;
    background: #000;
    overflow: hidden
}

    .media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .6s ease
    }

.card:hover .media img {
    transform: scale(1.05)
}

.body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.name {
    font-weight: 700;
    font-size: 14px;
    color: #fff
}

.meta {
    font-size: 12px;
    color: #b3b3b3
}

.actions {
    margin-top: 8px;
    display: flex;
    gap: 8px
}

.btn {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #000;
    color: #fff;
    text-decoration: none
}

    .btn.primary {
        background: #b91c1c;
        border-color: #7f1d1d
    }

/* Glow backdrop */
.glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(600px 200px at 20% 15%, rgba(239,68,68,.14) 0%, transparent 60%), radial-gradient(800px 280px at 80% 90%, rgba(127,29,29,.12) 0%, transparent 65%);
    animation: glow 12s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: brightness(1)
    }

    to {
        filter: brightness(1.06)
    }
}

.card .top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

/* Fiyat stilleri */
.card .price-sm {
    font-weight: 900;
    font-size: 14px;
    color: #fff;
}

.card .old-price-sm {
    margin-left: 6px;
    font-size: 12px;
    color: #b9b9b9;
    text-decoration: line-through;
    opacity: .85;
}
@media (max-width: 980px) {
    .sidebar {
        position: static;
        z-index: auto;
        top: auto;
    }
}
/* Accordion */
.accordion-item {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #1f1f1f;
    background: #0b0b0b;
}

.accordion-header {
    width: 100%;
    background: transparent;
    color: #e5e5e5;
    border: none;
    padding: 10px 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .accordion-header:hover {
        background: #111;
    }

    .accordion-header.active {
        color: #fff;
    }

    .accordion-header span {
        font-size: 12px;
        opacity: .6;
    }

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    display: flex;
    flex-direction: column;
    padding: 0 8px;
}

.accordion-item.open .accordion-body {
    max-height: 400px;
    padding-bottom: 8px;
}

/* Type buttons */
.type-btn {
    text-align: left;
    background: transparent;
    border: none;
    padding: 8px 10px;
    font-size: 12px;
    color: #bdbdbd;
    cursor: pointer;
    border-radius: 6px;
}

    .type-btn:hover {
        background: #141414;
        color: #fff;
    }

    .type-btn.active {
        background: #7f1d1d;
        color: #fff;
    }
