/* CUSTOM zhanghao234：列表默认收起 0 库存。主题升级后若类名还在，本文件不用改。 */
tbody.item-list:not(.zh-zero-ready) tr.is-soldout {
    display: none;
}

tbody.item-list tr.js-zero-stock {
    display: none;
}

.js-zero-toggle-row td {
    padding: 14px 8px 8px !important;
    border: none !important;
    text-align: center !important;
    background: transparent !important;
}

.zero-stock-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    margin: 0 auto;
    padding: 6px 14px;
    border: 1px dashed var(--tokyo-border-strong, #d7dbe2);
    border-radius: var(--tokyo-radius-pill, 999px);
    background: var(--tokyo-surface, #fff);
    color: var(--tokyo-text-soft, #667085);
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.zero-stock-bar:hover,
.zero-stock-bar.is-open {
    color: var(--tokyo-text, #1f2430);
    border-style: solid;
}

.zero-stock-bar-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    font-size: 11px;
    font-weight: 600;
}

.zero-stock-bar-arrow {
    display: inline-block;
    font-size: 10px;
    opacity: 0.7;
}

.zero-stock-bar.is-open .zero-stock-bar-arrow {
    transform: rotate(180deg);
}
