:root {
    --bg: #0f1724;
    --card: #0b1220;
    --muted: #9aa8b8;
    --accent: #06b6d4;
    --accent-2: #10b981;
    --glass: rgba(255, 255, 255, 0.03);
    --radius: 12px;
    --gap: 16px;
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #e6eef6;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px
}

h1 {
    font-size: 18px;
    margin: 0
}

p.lead {
    margin: 0;
    color: var(--muted);
    font-size: 13px
}

.catalog {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    padding: 80px 0px;
}

/* LEFT: filters */
aside.filters {
    background: #edd4b3;
    padding: 16px;
    border-radius: var(--radius);
    position: sticky;
    /* keep sidebar fixed while scrolling */
    top: 100px;
    /* offset from top (under header/banner) */
    align-self: start;
    height: calc(117vh - 140px);
    overflow: auto;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6)
}

.sticky {
    position: static;
    /* container no longer needs sticky, aside is sticky */
    top: auto
}

.search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px
}

.search input {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: transparent;
    color: #000;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background: transparent;
    cursor: pointer;
    color: #000;
    font-size: 18px;
    font-weight: 700;

}

.filter-btn[aria-pressed="true"] {
    background: #0f1724;
    color: #fff;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.12)
}

.filter-meta {
    font-size: 13px;
    color: #000;
}

.actions {
    display: flex;
    gap: 8px;
    margin-top: 12px
}

.btn {
    padding: 8px 10px;
    border-radius: 10px;
    border: 0;
    background: var(--accent);
    color: #022;
    font-weight: 700;
    cursor: pointer
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-weight: 600
}

/* RIGHT: gallery */
main.gallery {
    padding: 6px
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 4fr));
    gap: 25px;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform .18s ease, box-shadow .18s ease;
    background-color: #0f1724;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 9px 20px rgba(2, 6, 23, 0.6)
}

.thumb {
    width: 100%;
    height: 260px;
    display: block;
    object-fit: cover;
    background: #06101a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 700
}

.card-body {
    padding: 20px;
    text-align: center;
}

.title {
    font-size: 18px;
    margin: 0 0 6px;
    color: #fff;
}

.meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center
}

.badge {
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 12px
}

/* empty state */
.empty {
    padding: 30px;
    text-align: center;
    color: var(--muted)
}

footer.note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px
}

/* responsive */
@media(max-width:980px) {
    .catalog {
        grid-template-columns: 1fr;
        padding: 0px !important;
    }

    main.gallery {
        padding: 120px 0px 80px 0px;
    }

    aside.filters {
        height: auto;
        position: relative
    }

    .sticky {
        position: relative;
        top: auto
    }
}