.shop-sidebar__gender-label,
.shop-sidebar__category-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-500, #6b7280);
    margin-bottom: 12px;
}

.shop-sidebar__color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.shop-sidebar__color-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid var(--gray-200, #e5e7eb);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.shop-sidebar__color-swatch--image {
    border-radius: 999px;
}

.shop-sidebar__color-swatch img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-sidebar__color-swatch .shop-sidebar__color-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
}

.shop-sidebar__color-swatch--light {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.shop-sidebar__color-swatch:hover,
.shop-sidebar__color-swatch.is-active {
    border-color: var(--main-600, #043729);
    box-shadow: 0 0 0 2px rgba(4, 55, 41, 0.12);
    transform: translateY(-1px);
}

.shop-sidebar__color-clear {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.shop-sidebar__size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shop-sidebar__size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    border: 2px solid var(--gray-300, #d1d5db);
    border-radius: 0.5rem;
    color: var(--gray-900, #111827);
    background-color: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.shop-sidebar__size-btn:hover,
.shop-sidebar__size-btn.is-active {
    border-color: var(--main-600, #043729);
    color: var(--main-600, #043729);
    background-color: rgba(4, 55, 41, 0.04);
    box-shadow: 0 0 0 2px rgba(4, 55, 41, 0.08);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Mobile shop filters — stacked horizontal scroll rows
   -------------------------------------------------------------------------- */
.shop-mobile-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-mobile-filters__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.shop-mobile-filters__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 999px;
    background: #fff;
    color: var(--gray-900, #111827);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.shop-mobile-filters__trigger i {
    font-size: 1.125rem;
    line-height: 1;
}

.shop-mobile-filters__clear {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--main-600, #043729);
    text-decoration: none;
    white-space: nowrap;
}

.shop-mobile-filters__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.shop-mobile-filters__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-inline: 2px;
}

.shop-mobile-filters__track {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-block: 2px;
}

.shop-mobile-filters a.shop-mobile-filter-chip,
.shop-mobile-filters a.shop-mobile-filter-chip:hover,
.shop-mobile-filters a.shop-mobile-filter-chip:focus {
    color: #111827 !important;
    text-decoration: none !important;
}

.shop-mobile-filters__track::-webkit-scrollbar {
    display: none;
}

.shop-mobile-filter-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 999px;
    background: #fff;
    color: #111827 !important;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    scroll-snap-align: start;
}

.shop-mobile-filter-chip.is-active {
    border-color: var(--main-600, #043729);
    color: var(--main-600, #043729) !important;
    background-color: rgba(4, 55, 41, 0.06);
}

.shop-mobile-filter-chip--size {
    min-width: 38px;
    padding-inline: 10px;
    border-radius: 8px;
}

.shop-mobile-filter-chip--apply {
    border-color: var(--main-600, #043729);
    background: var(--main-600, #043729) !important;
    color: #fff !important;
}

.shop-mobile-filter-price-form {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    scroll-snap-align: start;
}

.shop-mobile-filter-input {
    width: 68px;
    min-height: 34px;
    padding: 0 8px;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 999px;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-900, #111827);
    text-align: center;
}

.shop-mobile-filter-input:focus {
    outline: none;
    border-color: var(--main-600, #043729);
    box-shadow: 0 0 0 2px rgba(4, 55, 41, 0.12);
}

.shop-mobile-filter-price-form__dash {
    flex-shrink: 0;
    color: var(--gray-400, #9ca3af);
    font-size: 0.75rem;
    font-weight: 600;
}

.shop-mobile-filter-swatch {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 2px solid var(--gray-200, #e5e7eb);
    border-radius: 999px;
    background: #fff;
    scroll-snap-align: start;
}

.shop-mobile-filter-swatch__dot {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 999px;
}

.shop-mobile-filter-swatch--light {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.shop-mobile-filter-swatch.is-active {
    border-color: var(--main-600, #043729);
    box-shadow: 0 0 0 2px rgba(4, 55, 41, 0.12);
}

@media (max-width: 991.98px) {
    .shop .flex-between.mb-40 {
        margin-bottom: 16px !important;
    }

    .shop .list-grid-btns {
        display: none !important;
    }

    .shop-mobile-filters-wrap {
        margin-bottom: 16px;
    }

    .shop-mobile-filters__trigger.sidebar-btn.bg-main-600 {
        background: var(--main-600, #043729) !important;
        border-color: var(--main-600, #043729) !important;
        color: #fff !important;
    }

    /* Collapse the sidebar column so it takes no space on mobile
       The inner .shop-sidebar is position:fixed so it escapes the flow */
    .shop-sidebar-col {
        padding: 0 !important;
        flex: 0 0 0 !important;
        max-width: 0 !important;
        overflow: visible !important;
    }
}



/* Custom Premium Price Range Slider (Stitch / Material Design 3 style) */
.price-range-slider-bar {
    height: 6px !important;
    border: none !important;
    background: #e5e7eb !important;
    /* Gray-200 */
    border-radius: 999px !important;
    position: relative !important;
    margin: 12px 10px !important;
    /* added margin to prevent handle overflow on sides */
}

.price-range-slider-bar .ui-slider-range {
    background: var(--main-600, #043729) !important;
    border-radius: 999px !important;
    position: absolute !important;
    height: 100% !important;
    top: 0 !important;
}

.price-range-slider-bar .ui-slider-handle {
    width: 20px !important;
    height: 20px !important;
    background: var(--main-600, #043729) !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: grab !important;
    outline: none !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2) !important;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-left: -10px !important;
    /* Center the handle on the point */
    position: absolute !important;
    z-index: 2 !important;
}

.price-range-slider-bar .ui-slider-handle:hover,
.price-range-slider-bar .ui-slider-handle:active {
    transform: translateY(-50%) scale(1.15) !important;
    box-shadow: 0 0 0 6px rgba(4, 55, 41, 0.15), 0 3px 8px rgba(15, 23, 42, 0.3) !important;
    cursor: grabbing !important;
}

.price-range-slider-bar .ui-slider-handle.ui-state-focus {
    box-shadow: 0 0 0 6px rgba(4, 55, 41, 0.15), 0 3px 8px rgba(15, 23, 42, 0.3) !important;
}

/* RTL support adjustments */
[dir="rtl"] .price-range-slider-bar .ui-slider-handle {
    margin-right: -10px !important;
    margin-left: 0 !important;
}

/* Sidebar mobile drawer — slide-in panel from start (inline-start) */
@media (max-width: 991.98px) {

    /* The column wrapper is hidden; the inner sidebar becomes a fixed drawer */
    .shop-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        inset-inline-start: 0 !important;
        width: min(340px, 90vw) !important;
        z-index: 10100 !important;
        background: #fff !important;
        overflow-y: auto !important;
        padding-top: 56px !important;
        padding-inline: 20px !important;
        padding-bottom: 24px !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.13) !important;
        transform: translateX(-110%) !important;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: transform;
    }

    /* RTL: slide from the right */
    [dir="rtl"] .shop-sidebar {
        inset-inline-start: auto !important;
        inset-inline-end: 0 !important;
        transform: translateX(110%) !important;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.13) !important;
    }

    .shop-sidebar.active {
        transform: translateX(0) !important;
    }

    [dir="rtl"] .shop-sidebar.active {
        transform: translateX(0) !important;
    }

    /* Close button — always visible on mobile drawer */
    .shop-sidebar__close {
        position: absolute !important;
        top: 12px !important;
        inset-inline-end: 12px !important;
        display: flex !important;
    }

    /* Overlay behind drawer — boost z-index so it sits above page content */
    .side-overlay {
        z-index: 9998 !important;
    }
}