.dh-filter-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin: 4px 0 20px;
}
.dh-filter-count { margin: 0; font-size: 13px; color: #52634c; white-space: nowrap; }
.dh-filter-count strong { color: var(--green); font-variant-numeric: tabular-nums; }
.dh-stock-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid #c2cbb8;
    border-radius: 4px;
    background: #f7f5ed;
    color: var(--green);
    font-size: 13px;
    line-height: 1.7;
    cursor: pointer;
}
.dh-stock-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); cursor: pointer; }
.dh-stock-toggle:has(input:checked) { background: #e9f2e8; border-color: #7b9475; }
.dh-stock-toggle:focus-within { outline: 2px solid var(--green); outline-offset: 3px; }
.dh-stock-apply { min-height: 44px; padding: 6px 12px; border: 1px solid #c2cbb8; border-radius: 4px; }
.dh-filter-chips { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.dh-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    min-height: 40px;
    padding: 7px 12px;
    border: 1px solid #c2cbb8;
    border-radius: 20px;
    background: #eef1e7;
    color: var(--green);
    font-size: 12px;
    line-height: 1.7;
}
.dh-filter-chip > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.dh-chip-close { flex: none; font-size: 20px; line-height: 1; }
.dh-filter-chip:hover { background: #e2e8d8; border-color: #7b8c70; }
.dh-filter-chip:focus-visible, .dh-clear-filters:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.dh-clear-filters { display: inline-flex; align-items: center; min-height: 40px; padding: 6px; font-size: 12px; color: #5c6654; text-decoration: underline; text-underline-offset: 4px; }
.dh-page-count {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    z-index: 3;
    padding: 5px 9px;
    border-radius: 4px;
    background: var(--green);
    color: #fffdf6;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    pointer-events: none;
}
.dar-hajer .book-art > .wish-button { top: 10px; right: 10px; left: auto; }
.dar-hajer .book-art > .book-badge { top: auto; bottom: 10px; right: 10px; left: auto; }
.dar-hajer.dh-list-view ul.products .book-art > .wish-button { top: 8px; right: 8px; left: auto; }
.woocommerce-product-gallery__image { position: relative; }
.woocommerce div.product div.images:has(.dh-page-count) .woocommerce-product-gallery__trigger {
    top: 52px;
    left: 10px;
    right: auto;
}
.dar-hajer .dh-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    margin: 10px 0 0;
    padding: 5px 10px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
}
.dar-hajer .dh-stock-status::before {
    content: '';
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: currentColor;
}
.dar-hajer .dh-stock-status--outofstock { color: #8c2d25; background: #fcefeb; border-color: #e6c2b9; }
.dar-hajer .dh-stock-status--instock { color: #315d3c; background: #e9f2e8; border-color: #c4d7c3; }
.dar-hajer .dh-stock-status--onbackorder { color: #79510d; background: #fff5dc; border-color: #e6d4a6; }
.dar-hajer.single-product .summary > .dh-stock-status { margin: 0 0 20px; font-size: 14px; padding: 7px 12px; }
@media (max-width: 700px) {
    .dh-filter-state { gap: 10px; }
    .dh-filter-chips { flex-basis: 100%; }
    .dh-page-count { top: 7px; left: 7px; padding: 4px 6px; font-size: 10px; }
    .dar-hajer .book-art > .wish-button { top: 7px; right: 7px; left: auto; }
    .dar-hajer .book-art > .book-badge { bottom: 7px; right: 7px; }
    .dar-hajer.dh-list-view ul.products .book-art > .wish-button { top: auto; bottom: 6px; right: 6px; left: auto; }
    .dar-hajer.dh-list-view ul.products .book-art > .book-badge { bottom: 6px; left: 6px; right: auto; }
    .woocommerce div.product div.images:has(.dh-page-count) .woocommerce-product-gallery__trigger { left: 7px; }
}
