/* Halal Store - Amazon-style sticky filter bar. Fixed under the header,
   slides in only while scrolling down (JS toggles .visible); hidden by
   default so the top of search/category pages is untouched. */
#hs-filter-bar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 9000;
    background: var(--bg-softer-gray);
    border-bottom: 1px solid hsl(0 0% 0% / .08);
    box-shadow: 0 2px 10px hsl(0 0% 0% / .12);
    transform: translateY(-120%);
    transition: transform .25s ease;
    visibility: hidden
}

#hs-filter-bar.visible {
    transform: translateY(0);
    visibility: visible
}

#hs-filter-bar[hidden] {
    display: none
}

.hs-filter-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch
}

.hs-filter-scroll::-webkit-scrollbar {
    display: none
}

@supports not (gap: 8px) {
    .hs-filter-scroll > * + * {
        margin-right: 8px
    }
}

.hs-filter-pill,
#hs-filter-cats {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid hsl(0 0% 0% / .18);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: .9rem;
    font-weight: 700;
    background: #fff;
    color: var(--text-color);
    cursor: pointer;
    white-space: nowrap
}
@media (min-width: 1080px){
	.hs-filter-pill{
	 font-size: 1.2rem;
	}
}

.hs-filter-pill.selected,
#hs-filter-cats.selected {
    background: var(--sec-color);
    border-color: var(--sec-color);
    color: #fff
}

#hs-filter-cats[hidden] {
    display: none
}

.hs-filter-count {
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    color: var(--sec-color);
    font-size: .75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px
}

.hs-filter-count[hidden] {
    display: none
}

.hs-chev {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    opacity: .7
}

#hs-filter-clear {
    flex: 0 0 auto;
    color: #b42318;
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: underline
}

#hs-filter-clear[hidden] {
    display: none
}

.hs-filter-pills {
    display: contents
}

/* Bottom sheet (categories) */
#hs-filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 9500
}

.hs-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: hsl(0 0% 0% / .5)
}

.hs-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--bg-softer-gray);
    border-radius: 16px 16px 0 0;
    padding: 12px 16px 24px;
    box-shadow: 0 -4px 24px hsl(0 0% 0% / .25)
}

.hs-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0 10px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: var(--bg-softer-gray)
}

.hs-sheet-title {
    font-weight: 800;
    font-size: 1.05rem
}

.hs-sheet-close {
    border: none;
    background: hsl(0 0% 0% / .08);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-color)
}

.hs-sheet-list {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.hs-sheet-item {
    text-align: start;
    border: 1px solid hsl(0 0% 0% / .12);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 1rem;
    background: #fff;
    color: var(--text-color);
    cursor: pointer
}

.hs-sheet-item.selected {
    border-color: var(--sec-color);
    border-width: 2px;
    font-weight: 800
}

.hs-sheet-loading,
.hs-sheet-empty {
    text-align: center;
    opacity: .7;
    padding: 18px 0
}

@media (prefers-reduced-motion: reduce) {
    #hs-filter-bar {
        transition: none
    }
}
