/**
 * Styles for WooCommerce Category Grid Module
 */

.cho-cat-grid-wrapper {
    width: 100%;
    /* max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px; */
}

.cho-cat-grid {
    column-count: 4;
    column-gap: 40px;
    orphans: 1;
    widows: 1;
}

.cho-cat-group {
    break-inside: avoid;
    display: block;
    /* Đổi sang block để column-count hoạt động mượt hơn */
    width: 100%;
    margin-bottom: 35px;
    /* Khoảng cách mặc định cho nhóm có danh mục con */
    transition: all 0.3s ease;
}

/* Những nhóm chỉ có tiêu đề (không có con) sẽ xếp sát nhau để bù vào chỗ trống */
.cho-cat-group.no-children {
    margin-bottom: 12px;
}

.cho-cat-header {
    margin: 0 0 12px 0;
    padding: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    /* Giảm nhẹ size để trông sang hơn */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* Giảm margin dưới của header nếu là nhóm không có con */
.no-children .cho-cat-header {
    margin-bottom: 0;
}

.cho-cat-header a {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
        font-family: 'Be Vietnam Pro';
}


.cho-cat-header a:hover {
    color: #446084;
}

.cho-cat-icon {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.cho-cat-icon svg {
    width: 12px;
    height: 12px;
}

.cho-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
div#cho-cat-grid ul.cho-cat-list li {
    margin-left: 0 !important;
    margin-bottom: 12px;
}
.cho-cat-list li {
    margin-bottom: 10px;
}

.cho-cat-list li a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #777;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.cho-cat-list li a:hover {
    color: #111;
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1024px) {
    .cho-cat-grid {
        column-count: 3;
        column-gap: 30px;
    }
}

@media (max-width: 768px) {
    .cho-cat-grid {
        column-count: 2;
        column-gap: 20px;
    }
}

@media (max-width: 480px) {
    .cho-cat-grid {
        column-count: 1;
    }

    .cho-cat-group {
        margin-bottom: 30px;
    }
}