.sale-products .sale-filter-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    font-family: Inter;
}

.sale-products .sale-filter-panel summary {
    cursor: pointer;
    list-style: none;
}

.sale-products .sale-filter-panel summary::-webkit-details-marker {
    display: none;
}

.sale-products .sale-filter-toggle {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-family: inherit;
}

.sale-products .sale-filter-reset {
    margin: 0;
    font-family: inherit;
}

.sale-products .sale-filter-icon {
    display: inline-grid;
    width: 14px;
    justify-items: center;
    gap: 3px;
}

.sale-products .sale-filter-icon i {
    width: 100%;
    height: 1px;
    background: currentColor;
}

.sale-products .sale-filter-icon i:nth-child(2) {
    width: 10px;
}

.sale-products .sale-filter-icon i:nth-child(3) {
    width: 5px;
}

.sale-products .sale-filter-chevron {
    display: inline-block;
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    margin: 0 2px 3px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
}

.sale-products .sale-filter-panel details[open] > summary > .sale-filter-chevron {
    margin-bottom: 0;
    transform: rotate(225deg);
}

.sale-products .sale-filter-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(400px, 100%);
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #fff;
    color: #222;
    font-family: Inter;
}

.sale-products .sale-filter-drawer[open] {
    display: flex;
    flex-direction: column;
    animation: sale-filter-slide-in 180ms ease-out;
}

.sale-products .sale-filter-drawer::backdrop {
    background: rgb(0 0 0 / 38%);
}

@keyframes sale-filter-slide-in {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .sale-products .sale-filter-drawer[open] {
        animation: none;
    }
}

.sale-products .sale-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.sale-products .sale-filter-header h4 {
    margin: 0;
    font: 600 18px Inter;
}

.sale-products .sale-filter-close {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: 24px/1 Inter;
    cursor: pointer;
}

.sale-products .sale-filter-form {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    font: inherit;
}

.sale-products .sale-filter-grid {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 20px;
}

.sale-products .sale-filter-form :is(input, button, a) {
    font-family: inherit;
}

.sale-products .sale-filter-group {
    min-width: 0;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
}

.sale-products .sale-filter-title {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid #eee;
    font: inherit;
    font-weight: 600;
}

.sale-products .sale-filter-price {
    display: flex;
    gap: 8px;
    margin: 8px 0;
}

.sale-products .sale-filter-price label {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.sale-products .sale-filter-price input {
    width: 100%;
    height: 34px;
    padding: 6px 9px;
}

.sale-products .sale-filter-option {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 4px 0;
    font: inherit;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.sale-products .sale-filter-option input {
    flex-shrink: 0;
    margin: 0;
    accent-color: var(--theme-base-color, #ff5122);
}

.sale-products .sale-filter-choices {
    padding: 6px 4px;
}

.sale-products .sale-filter-branch-row {
    position: relative;
    padding-right: 28px;
}

.sale-products .sale-filter-branch > summary {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
}

.sale-products .sale-filter-children {
    margin-left: 6px;
    padding-left: 14px;
    border-left: 1px solid #e5e5e5;
}

.sale-products .sale-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #e5e5e5;
}
