/* RTD Category Cards — bám palette header (đỏ #d0011b), tối giản, KHÔNG hiệu ứng hover */
.rtd-cc {
    margin: 22px 0;
    font-family: inherit;
}

/* Tiêu đề tùy chọn */
.rtd-cc__head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}
.rtd-cc__head::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 19px;
    background: #d0011b;
    border-radius: 2px;
}

/* Lưới card responsive */
.rtd-cc__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

/* Card dùng chung 1 style duy nhất (cha & con giống nhau): chỉ tên + số sản phẩm, căn giữa */
.rtd-cc__card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-height: 84px;
    padding: 18px 14px;
    background: #fff5f6;
    border: 1px solid #f7d7db;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: center;
    text-decoration: none;
}

.rtd-cc__name {
    font-size: 15px;
    font-weight: 600;
    color: #d0011b;
    line-height: 1.4;
    word-break: break-word;
}

.rtd-cc__count {
    font-size: 12.5px;
    color: #999;
    line-height: 1.2;
}

/* Mobile: 2 cột */
@media (max-width: 600px) {
    .rtd-cc__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .rtd-cc__card {
        min-height: 74px;
        padding: 14px 10px;
    }
    .rtd-cc__name {
        font-size: 14px;
    }
    .rtd-cc__head {
        font-size: 16px;
    }
}
