/* Taj Catalog 5.49.4 - product count next to every category in the left "All categories" sidebar.
   Separate file so taj-catalog.css stays untouched (and a cached copy of it can never hide this). */

/* The link becomes a row: name on the left, count on the right (still one clickable link). */
body.taj-active .taj-unitbar .taj-cat-row > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
body.taj-active .taj-unitbar .taj-cat-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* The count pill. */
body.taj-active .taj-unitbar .taj-cat-n {
    flex: none;
    box-sizing: border-box;
    min-width: 28px;
    margin: 0;
    padding: 1px 8px;
    border-radius: 999px;
    background: #EEF1F4;
    color: #4b5563;
    font-style: normal;
    font-weight: 600;
    font-size: 11.5px;
    line-height: 1.55;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    font-variant-numeric: tabular-nums;
}
/* Empty category: quiet, so the eye goes to the ones that have products. */
body.taj-active .taj-unitbar .taj-cat-n.is-zero {
    background: transparent;
    color: #a3a9b1;
    font-weight: 500;
}

/* Rows without a + button: keep the numbers in one straight column with the rows that have one
   (+ button = 26px wide + 14px right margin, on top of the usual 16px link padding). */
body.taj-active .taj-unitbar .taj-cat:not(.has-kids) > .taj-cat-row > a {
    padding-right: 56px;
}

/* Site convention: hover = orange. */
body.taj-active .taj-unitbar .taj-cat-row:hover .taj-cat-n {
    background: #FFE7D1;
    color: #D9731A;
}
body.taj-active .taj-unitbar .taj-cat-row:hover .taj-cat-n.is-zero {
    background: transparent;
    color: #c4a68c;
}
