.catalog {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.catalog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 300px;
    flex: 0 0 300px;
    min-width: 0;
}
.catalog-groups {
    padding: 24px;
    border: 1px solid #dbe1df;
    border-radius: 8px;
    background: #f0f3ef;
    box-shadow: 0 5px 18px #263c4808;
}
.catalog-sidebar h2 {
    font-size: 22px;
    margin-bottom: 20px;
}
.catalog-main {
    flex: 1;
    min-width: 0;
    position: relative;
}
.filter-panel {
    padding: 24px;
    background: #edf1f2;
    border: 1px solid #dbe1df;
    border-radius: 8px;
    box-shadow: 0 5px 18px #263c4808;
}
.filter-panel h2 {
    font-size: 22px;
    margin-bottom: 18px;
}
.filter-panel > .button-row {
    display: flex;
    gap: 10px;
}
.filter-panel .button {
    flex: 1 1 auto;
    justify-content: center;
    padding: 10px 12px;
    gap: 8px;
}
.filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}
.filter-grid > .field {
    flex: 1 1 100%;
    min-width: 0;
}
.product-card {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
}
.product-card:first-child {
    padding-top: 0;
}
.product-photo {
    flex: 0 0 220px;
    height: 200px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e8e8e3;
    transition: border-color .2s;
}
.product-photo:hover,
.product-photo:focus-visible {
    border-color: var(--accent);
}
.product-photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .3s;
}
.product-photo:hover img, .product-photo:focus-visible img {
    transform: scale(1.035);
}
.product-copy {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex: 1;
    min-width: 0;
}
.product-info {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
.product-copy h2 {
    font-size: 24px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.product-copy h3 {
    font-size: 16px;
    margin: 7px 0 12px;
    font-weight: 500;
}
.product-note {
    font-size: 13px;
    color: #66737a;
}
.product-makes {
    color: #415c6b;
    font-size: 12px;
    margin: 12px 0 0;
    letter-spacing: .5px;
}
.cart-toggle {
    flex: 0 0 auto;
    max-width: 45%;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    padding: 8px 15px;
}
.cart-toggle span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.catalog-loading {
    position: absolute;
    inset: 0;
    z-index: 15;
    background: #f9faf9c9;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}
.catalog-loading span:last-child {
    line-height: 28px;
}
@media (max-width: 1000px) {
    .catalog-sidebar {
        flex-basis: 270px;
        width: 270px;
    }
    .catalog {
        gap: 22px;
    }
    .product-photo {
        flex-basis: 170px;
        height: 175px;
    }
    .product-card {
        gap: 20px;
    }
}
@media (max-width: 760px) {
    .catalog {
        flex-direction: column;
    }
    .catalog-sidebar, .catalog-main {
        width: 100%;
        flex-basis: auto;
    }
    .filter-grid > .field, .filter-grid > .field:first-child {
        flex-basis: calc(50% - 14px);
    }
    .product-photo {
        flex-basis: 140px;
        height: 155px;
    }
}
@media (max-width: 640px) {
    .filter-grid > .field,
    .filter-grid > .field:first-child {
        flex-basis: 100%;
    }
    .product-card {
        flex-wrap: wrap;
    }
    .product-copy {
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .product-copy > .cart-toggle {
        width: 100%;
        max-width: 100%;
    }
}
@media (max-width: 450px) {
    .filter-panel,
    .catalog-groups {
        padding: 20px;
    }
    .product-card {
        gap: 16px;
        align-items: flex-start;
    }
    .product-photo {
        flex-basis: 115px;
        height: 130px;
    }
    .product-copy h2 {
        font-size: 19px;
    }
    .product-copy h3 {
        font-size: 15px;
    }
    .product-note {
        font-size: 12px;
    }
}
