/* Apparel-only SanMar-style filters */

.ps-apparel-shop-layout {
    align-items: flex-start;
    display: grid;
    gap: 1.5rem 1.75rem;
    grid-template-columns: 250px minmax(0, 1fr);
    margin: 0 0 2rem;
}

.ps-apparel-filters {
    background: #fff;
    position: sticky;
    top: 1rem;
}

.ps-apparel-filters__group {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.15rem 0 0.35rem;
}

.ps-apparel-filters__heading,
.ps-apparel-filters__heading:hover,
.ps-apparel-filters__heading:focus,
.ps-apparel-filters__heading:active,
.ps-apparel-filters button.ps-apparel-filters__heading,
.ps-apparel-filters button.ps-apparel-filters__heading:hover,
.ps-apparel-filters button.ps-apparel-filters__heading:focus,
.ps-apparel-filters button.ps-apparel-filters__heading:active {
    align-items: center;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #111827 !important;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 700;
    justify-content: space-between;
    line-height: 1.3;
    margin: 0;
    outline: none;
    padding: 0.85rem 0;
    text-decoration: none !important;
    width: 100%;
}

.ps-apparel-filters__chevron {
    background: currentColor;
    display: inline-block;
    height: 2px;
    position: relative;
    transition: transform 0.4s ease;
    width: 12px;
}

.ps-apparel-filters__group:not(.is-open) .ps-apparel-filters__chevron {
    height: 12px;
    mask: linear-gradient(#000 0 0) center/12px 2px no-repeat,
        linear-gradient(#000 0 0) center/2px 12px no-repeat;
    -webkit-mask: linear-gradient(#000 0 0) center/12px 2px no-repeat,
        linear-gradient(#000 0 0) center/2px 12px no-repeat;
    width: 12px;
}

.ps-apparel-filters__body {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    overflow: hidden;
    padding: 0 0 0.75rem;
    transition: grid-template-rows 0.45s ease, opacity 0.35s ease, padding 0.35s ease;
}

.ps-apparel-filters__group:not(.is-open) .ps-apparel-filters__body {
    grid-template-rows: 0fr;
    opacity: 0;
    padding-bottom: 0;
    pointer-events: none;
}

.ps-apparel-filters__body-inner {
    min-height: 0;
    overflow: hidden;
}

.ps-apparel-filters__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ps-apparel-filters__option {
    align-items: center;
    border-radius: 6px;
    color: #4b5563;
    cursor: pointer;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    margin: 0;
    padding: 0.42rem 0.35rem;
    transition: background-color 0.35s ease, color 0.35s ease;
}

.ps-apparel-filters__option:hover {
    background: #f3f4f6;
    color: #111827;
}

.ps-apparel-filters__option input {
    accent-color: #2563eb;
    height: 16px;
    margin: 0;
    width: 16px;
}

.ps-apparel-filters__option-label {
    font-size: 14px;
    line-height: 1.35;
}

.ps-apparel-filters__count {
    color: #6b7280;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
    padding-left: 0.5rem;
    text-align: right;
}

.ps-apparel-filters__option:hover .ps-apparel-filters__count {
    color: #111827;
}

.ps-apparel-filters__more,
.ps-apparel-filters__more:hover,
.ps-apparel-filters__more:focus,
.ps-apparel-filters__more:active,
.ps-apparel-filters button.ps-apparel-filters__more,
.ps-apparel-filters button.ps-apparel-filters__more:hover,
.ps-apparel-filters button.ps-apparel-filters__more:focus,
.ps-apparel-filters button.ps-apparel-filters__more:active {
    background: none !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #2563eb !important;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin: 0.35rem 0 0;
    outline: none;
    padding: 0;
    text-decoration: none !important;
}

.ps-apparel-filters__submit {
    background: #2563eb;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    margin-top: 0.85rem;
    min-height: 40px;
    padding: 0.55rem 1rem;
    width: 100%;
}

@media (max-width: 991px) {
    .ps-apparel-shop-layout {
        grid-template-columns: 1fr;
    }

    .ps-apparel-filters {
        position: static;
    }
}
