﻿.cn-products {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
}

.cn-filterCard {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    position: sticky;
    top: 14px;
}

.cn-filterHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

    .cn-filterHead h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 900;
        color: #951f1f;
    }

.cn-filterClear {
    border: 1px solid rgba(149,31,31,.25);
    background: rgba(149,31,31,.06);
    color: #951f1f;
    font-weight: 900;
    border-radius: 10px;
    height: 36px;
    padding: 0 12px;
    cursor: pointer;
}

.cn-filterGroup {
    padding: 10px 0;
    border-top: 1px solid rgba(0,0,0,.06);
}

    .cn-filterGroup:first-child {
        border-top: 0;
        padding-top: 0;
    }

.cn-filterTitle {
    font-weight: 900;
    color: #951f1f;
    margin-bottom: 8px;
}

.cn-filterList {
    display: grid;
    gap: 8px;
}

.cn-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.cn-check__box {
    width: 16px;
    height: 16px;
}

.cn-check__label {
    font-weight: 800;
    color: rgba(0,0,0,.75);
}

.cn-products__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.cn-products__title {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    color: #951f1f;
}

.cn-products__count {
    font-weight: 800;
    opacity: .75;
}

.cn-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.cn-card {
    text-decoration: none;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: block;
}

.cn-card__img {
    background: #fff;
    padding: 10px;
}

    .cn-card__img img {
        width: 100%;
        height: 210px; /* fixed area so cards stay aligned */
        object-fit: contain; /* ✅ show whole image clearly (no crop) */
        display: block;
    }


.cn-card__body {
    padding: 12px;
}

.cn-card__cat {
    font-size: 12px;
    font-weight: 900;
    color: rgba(149,31,31,.9);
    margin-bottom: 6px;
}

.cn-card__name {
    font-weight: 900;
    color: rgba(0,0,0,.82);
    margin-bottom: 10px;
}

.cn-card__price {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.cn-price {
    font-weight: 900;
    color: #951f1f;
}

.cn-old {
    font-weight: 800;
    opacity: .55;
    text-decoration: line-through;
}

.cn-empty {
    padding: 18px;
    border: 1px dashed rgba(0,0,0,.18);
    border-radius: 14px;
    background: rgba(0,0,0,.02);
    font-weight: 800;
    grid-column: 1 / -1;
}

@media (max-width: 1100px) {
    .cn-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .cn-products {
        grid-template-columns: 1fr;
    }

    .cn-filterCard {
        position: static;
    }

    .cn-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .cn-grid {
        grid-template-columns: 1fr;
    }
}
.cn-check {
    cursor: pointer; /* ✅ */
}

.cn-check__box {
    cursor: pointer; /* ✅ */
}

.cn-check__label {
    cursor: pointer; /* ✅ */
}
.cn-card__img {
    position: relative;
}

.cn-pbadge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
}
.cn-pbadge--danger {
    background: rgba(149,31,31,.92);
}
.cn-card--unavailable {
    opacity: .75;
}