.catalog-shell {
    display: grid;
    gap: 24px;
}

.catalog-hero {
    background: linear-gradient(145deg, #24272d 0%, #202228 100%);
    border: 1px solid #3c4048;
    border-radius: 16px;
    padding: 28px;
}

.catalog-hero h1 {
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #f4f6fa;
}

.catalog-hero p {
    margin: 0;
    color: #b6bcc8;
    max-width: 920px;
    font-size: 19px;
}

.catalog-hero-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.catalog-hero-pills span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(242, 169, 21, 0.12);
    border: 1px solid rgba(242, 169, 21, 0.3);
    font-size: 13px;
    font-weight: 700;
    color: #ffcb6d;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
}

.catalog-sidebar,
.catalog-results {
    display: grid;
    gap: 14px;
    align-content: start;
}

.catalog-sidebar {
    position: sticky;
    top: 98px;
}

.catalog-panel {
    background: #25282f;
    border: 1px solid #3b4048;
    border-radius: 14px;
    padding: 18px;
    color: #e7ebf2;
}

.catalog-panel h3 {
    font-size: 22px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.catalog-filter-form {
    display: grid;
    gap: 14px;
}

.catalog-filter-card {
    background: #202329;
    border: 1px solid #3a3e46;
    border-radius: 14px;
    padding: 14px;
}

.catalog-filter-title {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.catalog-filter-card label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #b8bec8;
    text-transform: uppercase;
}

.catalog-filter-card input,
.catalog-filter-card select {
    width: 100%;
    border: 1px solid #535862;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #16181d;
    color: #edf1f7;
}

.catalog-filter-card input:focus,
.catalog-filter-card select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(242, 169, 21, 0.14);
}

.catalog-filter-option {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600 !important;
    color: #d0d6e1 !important;
}

.catalog-filter-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.catalog-filter-option span {
    line-height: 1.3;
}

.catalog-price-stack {
    display: grid;
    gap: 8px;
}

.catalog-summary {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.catalog-summary-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.catalog-summary strong {
    font-size: 30px;
}

.vin-banner {
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid #4f4c3b;
    background: linear-gradient(145deg, #2e2a20 0%, #25272d 100%);
    color: #eceff3;
}

.vin-banner.error {
    border-color: #653232;
    background: linear-gradient(145deg, #322324 0%, #26272d 100%);
}

.vin-banner h3 {
    font-size: 22px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.vin-banner p {
    margin: 0 0 12px;
    color: #c7ccd7;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.category-groups {
    display: grid;
    gap: 14px;
}

.category-group {
    background: #25282f;
    border: 1px solid #3b4048;
    border-radius: 14px;
    padding: 16px;
    display: grid;
    gap: 14px;
}

.category-group-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: end;
    flex-wrap: wrap;
}

.category-group-head h3 {
    margin: 0;
    font-size: 34px;
    color: #f5f7fa;
    text-transform: uppercase;
}

.category-group-head p {
    margin: 6px 0 0;
    color: #a6acb8;
}

.group-meta {
    color: #a6acb8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #2b2d33;
    border: 1px solid #3c4047;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.catalog-card-wrap {
    display: grid;
    gap: 8px;
}

.favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid #565d69;
    border-radius: 8px;
    color: #d8deea;
    text-decoration: none;
    background: #262a31;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.favorite-btn:hover {
    border-color: var(--primary-color);
    color: #111;
    background: var(--primary-color);
}

.favorite-btn.active {
    border-color: var(--primary-color);
    background: rgba(242, 169, 21, 0.2);
    color: #ffd98c;
}

.catalog-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.catalog-card-image {
    height: 220px;
    background: #dfdfdf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    overflow: hidden;
}

.catalog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-card-body {
    padding: 14px;
    display: grid;
    gap: 10px;
    height: 100%;
}

.catalog-card-title {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    min-height: 66px;
    color: #f4f6fb;
    text-transform: uppercase;
}

.catalog-card-meta {
    color: #adb4c1;
    font-size: 13px;
}

.catalog-card-snippet {
    color: #c2c8d3;
    font-size: 14px;
    line-height: 1.45;
    min-height: 40px;
}

.catalog-card-bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.catalog-price {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 32px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-pill.in-stock { background: #184f2f; color: #b7ffd7; }
.status-pill.on-order { background: #62420d; color: #ffe6b6; }
.status-pill.unavailable { background: #5f2424; color: #ffd2d2; }

.pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.page-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #4f545e;
    text-decoration: none;
    color: #edf1f7;
    background: #24272d;
    font-weight: 700;
}

.page-chip.active,
.page-chip:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #151515;
}

@media (max-width: 980px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
    }
}
