@charset "UTF-8";

/**
 * Modern Category/Shop Page Styles
 * Mobile-First | Filter sidebar (desktop sticky, mobile drawer) | Reusable product grid
 * Preserves: .div-2, .sidebar, .content-side, .filter-brand-area, .brand-filter, all data attributes
 */

/* ============================================================
   CATEGORY PAGE LAYOUT - Mobile-First (375px default)
   ============================================================ */

.category-page {
    --category-sidebar-width: 280px;
    --category-overlay-bg: rgba(0, 0, 0, 0.4);
    --category-transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --category-gap: var(--space-4, 1rem);
    --category-section-spacing: var(--space-6, 1.5rem);
    --category-block-spacing: var(--space-8, 2rem);
}

/* Category container: centered, no background, 24px top/bottom padding */
.category-page .category-page__container {
    width: 100%;
    max-width: min(1280px, 100vw - 2rem);
    margin-left: auto;
    margin-right: auto;
    padding-top: 24px;
    padding-bottom: 24px;
    padding-left: var(--space-4, 1rem);
    padding-right: var(--space-4, 1rem);
    background: none;
}

/* Ensure .no-container on category page has no background */
.category-page .category-page__container.no-container {
    background: none !important;
}

/* ============================================================
   HERO: Banner + Breadcrumb + Title – alignment & UI
   ============================================================ */

.category-page__hero {
    margin-bottom: var(--category-section-spacing);
    text-align: left;
}

.category-page__banner-wrap {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md, 0.75rem);
    overflow: hidden;
    background: linear-gradient(135deg, var(--modern-gray-50, #f2f2f7) 0%, var(--modern-gray-100, #e5e5ea) 100%);
    margin-bottom: var(--space-4, 1rem);
}

.category-page__banner-img {
    display: block;
    width: 100%;
    height: 8.75rem; /* 140px – banner height mobile */
    object-fit: cover;
    object-position: center;
}

@media (min-width: 576px) {
    .category-page__banner-img {
        height: 10rem; /* 160px */
    }
}

@media (min-width: 768px) {
    .category-page__banner-img {
        height: 11.25rem; /* 180px */
    }
}

@media (min-width: 992px) {
    .category-page__banner-img {
        height: 13.75rem; /* 220px – full banner look desktop */
    }
}

/* Breadcrumb: Home > Parent > Category – left aligned */
.category-page__breadcrumb {
    margin-bottom: var(--space-3, 0.75rem);
    text-align: left;
}

.category-page__breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-1, 0.25rem);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    color: var(--modern-text-secondary, #6c757d);
}

.category-page__breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin-left: var(--space-1, 0.25rem);
    color: var(--modern-gray-400, #8e8e93);
}

.category-page__breadcrumb-item a {
    color: var(--modern-primary, #007aff);
    text-decoration: none;
}

.category-page__breadcrumb-item a:hover {
    text-decoration: underline;
}

.category-page__breadcrumb-item--current {
    color: var(--modern-text-primary, #1c1c1e);
    font-weight: 500;
}

.category-page__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--modern-text-primary, #1c1c1e);
    margin: 0 0 var(--space-4, 1rem);
    line-height: 1.25;
    text-align: left;
}

@media (min-width: 768px) {
    .category-page__title {
        font-size: 1.75rem;
    }
}

/* Main: sidebar + content – alignment, no padding-left */
.category-page__main,
.category-page .div-2.category-page__main {
    display: flex;
    flex-wrap: wrap;
    gap: var(--category-gap);
    position: relative;
    align-items: flex-start;
    width: 100%;
    padding-left: 0;
}

/* Prevent body scroll when mobile filter drawer is open */
body.category-page__body--sidebar-open {
    overflow: hidden;
    touch-action: none;
}

/* ============================================================
   MOBILE: Filter button (always visible on small screens)
   ============================================================ */

.category-page__filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    min-width: 48px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--modern-border-primary, #d1d1d6);
    border-radius: 0.5rem;
    background: var(--modern-surface-primary, #fff);
    color: var(--modern-text-primary, #1c1c1e);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--category-transition), border-color var(--category-transition);
    -webkit-tap-highlight-color: transparent;
}

.category-page__filter-btn:hover,
.category-page__filter-btn:focus {
    background: var(--modern-gray-50, #f2f2f7);
    border-color: var(--modern-gray-300, #aeaeb2);
}

.category-page__filter-btn:focus-visible {
    outline: 2px solid var(--modern-primary, #007aff);
    outline-offset: 2px;
}

.category-page__filter-btn-text {
    display: none;
}

@media (min-width: 375px) {
    .category-page__filter-btn-text {
        display: inline;
    }
}

/* ============================================================
   MOBILE: Sidebar overlay (backdrop)
   ============================================================ */

.category-page__sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: var(--category-overlay-bg);
    opacity: 0;
    transition: opacity var(--category-transition);
    pointer-events: none;
}

.category-page__sidebar-overlay.category-page__sidebar-overlay--visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   SIDEBAR: Mobile drawer / Desktop sticky
   ============================================================ */

@media (max-width: 991px) {
    /* Hide sidebar by default on mobile/tablet; show as drawer when open */
    .category-page__sidebar.sidebar-sm-hide {
        display: none !important;
    }

    .category-page__sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(100%, 320px);
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        z-index: 1050;
        margin: 0;
        padding: var(--space-4, 1rem);
        padding-bottom: calc(var(--space-4, 1rem) + env(safe-area-inset-bottom));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        transition: transform var(--category-transition);
    }

    /* When drawer is open: show sidebar and slide in */
    .category-page__sidebar.sidebar-sm-hide.category-page__sidebar--open {
        display: block !important;
        transform: translateX(0);
    }

    .category-page__sidebar-header {
        padding-bottom: var(--space-2, 0.5rem);
    }

    .category-page__sidebar-title {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--modern-text-primary, #1c1c1e);
    }

    .category-page__sidebar-actions {
        border-color: var(--modern-border-secondary, #e5e5ea) !important;
    }

    .category-page__apply-btn {
        min-height: 48px;
        font-weight: 600;
        border-radius: 0.5rem;
    }
}

@media (min-width: 992px) {
    .category-page__sidebar {
        position: sticky;
        top: 1rem;
        align-self: flex-start;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }

    .category-page__sidebar-header,
    .category-page__sidebar-actions {
        display: none !important;
    }
}

/* ============================================================
   CATEGORY CONTENT: Header (title + short_note)
   Standard spacing: space-4 (16px) base, space-6 (24px) section
   ============================================================ */

.category-content__header {
    padding-top: 0;
    margin-bottom: var(--category-section-spacing);
}

.category-content__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--modern-text-primary, #1c1c1e);
    margin-bottom: var(--space-2, 0.5rem);
    line-height: 1.25;
}

.category-content__title a {
    color: inherit;
    text-decoration: none;
}

.category-content__note {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--modern-text-secondary, #6c757d);
    max-width: 60ch;
    margin-top: var(--space-2, 0.5rem);
}

/* Category cover / banner image – short banner height, responsive */
.category-content__cover-wrap {
    border-radius: var(--radius-md, 0.75rem);
    overflow: hidden;
    background: var(--modern-gray-100, #e5e5ea);
    margin-bottom: var(--space-4, 1rem);
    width: 100%;
}

.category-content__cover-img {
    display: block;
    width: 100%;
    height: 6.25rem; /* 100px – banner height mobile */
    object-fit: cover;
    object-position: center;
}

@media (min-width: 576px) {
    .category-content__cover-img {
        height: 7.5rem; /* 120px */
    }
}

@media (min-width: 768px) {
    .category-content__header {
        margin-bottom: var(--category-block-spacing);
    }

    .category-content__title {
        font-size: 1.75rem;
        margin-bottom: var(--space-3, 0.75rem);
    }

    .category-content__note {
        font-size: 0.9375rem;
        margin-top: var(--space-3, 0.75rem);
    }

    .category-content__cover-wrap {
        margin-bottom: var(--space-5, 1.25rem);
    }

    .category-content__cover-img {
        height: 8.75rem; /* 140px */
    }
}

@media (min-width: 992px) {
    .category-content__cover-img {
        height: 10rem; /* 160px – banner height desktop */
    }
}

/* Category content wrapper – no bg, left aligned */
.category-content {
    width: 100%;
    text-align: left;
}

/* Footer: full description + SEO (below products) – standard spacing */
.category-content__footer {
    margin-top: var(--category-block-spacing);
    padding-top: var(--space-6, 1.5rem);
    border-top: 1px solid var(--modern-border-light, #f2f2f7);
    text-align: left;
}

.category-content__footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--modern-text-primary, #1c1c1e);
    margin-bottom: var(--space-3, 0.75rem);
}

.category-content__description {
    margin-bottom: var(--space-6, 1.5rem);
}

.category-content__description-body {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.category-content__description-body p {
    margin-bottom: var(--space-3, 0.75rem);
}

.category-content__description-body p:last-child {
    margin-bottom: 0;
}

/* Links inside category short_note: visible and highlighted */
.category-content__description-body a,
.category-content__note a {
    color: var(--modern-primary, #007aff);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    background: rgba(0, 122, 255, 0.08);
    padding: 0.1em 0.25em;
    border-radius: 0.25rem;
}

.category-content__description-body a:hover,
.category-content__note a:hover {
    color: var(--modern-primary-hover, #0051d5);
    background: rgba(0, 122, 255, 0.14);
}

.category-content__description-body a:focus-visible,
.category-content__note a:focus-visible {
    outline: 2px solid var(--modern-primary, #007aff);
    outline-offset: 2px;
}

.category-content__seo {
    padding-top: var(--space-4, 1rem);
    margin-top: var(--space-4, 1rem);
    border-top: 1px solid var(--modern-border-light, #f2f2f7);
}

.category-content__seo-desc,
.category-content__seo-keywords {
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* ============================================================
   TOOLBAR: Small = row1 (Filter + Sort) | row2 (Brands). Lg = one row
   ============================================================ */

.category-toolbar-outer {
    border-bottom: 1px solid var(--modern-border-light, #f2f2f7);
    padding-top: var(--space-2, 0.5rem);
    padding-bottom: var(--space-3, 0.75rem);
}

.category-toolbar-outer .category-toolbar {
    border-bottom: none;
}

/* Row 1: Filter + Sort – full height so buttons are fully visible */
.category-toolbar-outer .category-toolbar__row-1 {
    min-height: 52px;
    padding-top: var(--space-2, 0.5rem);
    padding-bottom: var(--space-2, 0.5rem);
    border-bottom: none;
    align-items: center;
}

/* Row 2: filter-brand-area – enough height for touch scroll */
.category-toolbar-outer .category-toolbar__row-2 {
    min-height: 52px;
    padding-top: var(--space-2, 0.5rem);
    padding-bottom: var(--space-2, 0.5rem);
    border-bottom: none;
    align-items: center;
}

@media (min-width: 992px) {
    .category-toolbar-outer {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: var(--space-3, 0.75rem);
    }

    /* Override .category-toolbar width:100% so flex distributes space; row-2 (brands) must stay visible */
    .category-toolbar-outer .category-toolbar__row-1,
    .category-toolbar-outer .category-toolbar__row-2 {
        width: auto;
        max-width: none;
    }

    .category-toolbar__row-1 {
        order: 2;
        flex-shrink: 0;
        margin-top: 0;
    }

    .category-toolbar__row-2 {
        order: 1;
        flex: 1 1 0;
        margin-top: 0;
        /* Ensure brand filter area never collapses on large screens */
        min-width: 180px;
    }
}

.category-toolbar {
    display: flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    padding: var(--space-3, 0.75rem) 0;
    border-bottom: 1px solid var(--modern-border-light, #f2f2f7);
    text-align: left;
    flex-wrap: nowrap;
    width: 100%;
}

@media (min-width: 992px) {
    .category-toolbar-outer .category-toolbar__row-1,
    .category-toolbar-outer .category-toolbar__row-2 {
        padding: 0;
        border-bottom: none;
    }
}

.category-toolbar__count {
    font-size: 0.8125rem;
    color: var(--modern-text-secondary, #6c757d);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 0;
}

@media (min-width: 360px) {
    .category-toolbar__count {
        font-size: 0.875rem;
    }
}

/* Brands: horizontal scroll, touch-friendly (left to right / right to left) */
.category-toolbar__brands {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.category-toolbar__brands-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    padding: 8px 4px 12px;
    margin: -8px -4px -12px 0;
    width: 100%;
    min-height: 48px;
    align-items: center;
}

.category-toolbar__brands-scroll::-webkit-scrollbar {
    height: 6px;
}

.category-toolbar__brands-scroll::-webkit-scrollbar-thumb {
    background: var(--modern-border-primary, #d1d1d6);
    border-radius: 6px;
}

.category-toolbar__brands-scroll::-webkit-scrollbar-track {
    background: var(--modern-gray-50, #f2f2f7);
    border-radius: 6px;
}

/* Brand pills: primary theme color when active (ALL + selected brand) */
.category-toolbar__brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.375rem 0.875rem;
    white-space: nowrap;
    border-radius: 9999px;
    border: 1px solid var(--modern-border-primary, #d1d1d6);
    background: var(--modern-surface-primary, #fff);
    color: var(--modern-text-primary, #1c1c1e);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

@media (min-width: 576px) {
    .category-toolbar__brand-pill {
        min-height: 44px;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

.category-toolbar__brand-pill:hover {
    background: var(--modern-gray-50, #f2f2f7);
    border-color: var(--modern-gray-300, #aeaeb2);
}

/* ALL + selected brand: primary theme color (from backend theme / Bootstrap) */
.brand-filter-active.category-toolbar__brand-pill,
.category-toolbar__brand-pill.brand-filter-active {
    background: var(--bs-primary, #0d6efd) !important;
    border-color: var(--bs-primary, #0d6efd) !important;
    color: #fff !important;
}

.brand-filter-active.category-toolbar__brand-pill:hover,
.category-toolbar__brand-pill.brand-filter-active:hover {
    background: var(--bs-primary, #0d6efd) !important;
    border-color: var(--bs-primary, #0d6efd) !important;
    color: #fff !important;
    opacity: 0.92;
}

/* Sort By: single dropdown arrow (no double icon) */
.category-toolbar__sort-wrap,
.category-toolbar__sort {
    position: relative;
}

.category-toolbar__sort-wrap .sort-select,
.category-toolbar__sort .form-select,
.category-toolbar__sort .form-select-sm {
    min-height: 44px;
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid var(--modern-border-primary, #d1d1d6);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px;
    background-color: #fff;
}

.category-toolbar__sort-wrap .sort-select:focus,
.category-toolbar__sort .form-select:focus {
    outline: none;
    border-color: var(--bs-primary, #0d6efd);
}

/* ============================================================
   FILTER SIDEBAR: Clear link + groups
   ============================================================ */

.filter-sidebar__clear-wrap {
    padding-bottom: var(--space-2, 0.5rem);
}

.filter-sidebar__clear-link {
    font-size: 0.875rem;
    color: var(--modern-primary, #007aff);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.filter-sidebar__clear-link:hover {
    color: var(--modern-primary-hover, #0051d5);
}

/* Sidebar: main "Filters" heading (desktop) */
.filter-sidebar__main-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--modern-text-primary, #1c1c1e);
    margin: 0 0 var(--space-4, 1rem);
    padding-bottom: var(--space-2, 0.5rem);
    border-bottom: 1px solid var(--modern-border-secondary, #e5e5ea);
}

/* Accordion: section trigger (clickable header) */
.filter-sidebar__accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--modern-text-primary, #1c1c1e);
    text-align: left;
    background: var(--modern-gray-50, #f8f9fa);
    border: 1px solid var(--modern-border-secondary, #e5e5ea);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.filter-sidebar__accordion-trigger:hover {
    background: var(--modern-gray-100, #e5e5ea);
    border-color: var(--modern-gray-300, #d1d1d6);
}

.filter-sidebar__accordion-trigger[aria-expanded="false"] .filter-sidebar__accordion-icon {
    transform: rotate(-90deg);
}

.filter-sidebar__accordion-icon {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1c1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transition: transform 0.2s ease;
}

.filter-sidebar__accordion-body {
    border: 1px solid var(--modern-border-secondary, #e5e5ea);
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: visible;
}

.filter-sidebar__accordion-body.collapse:not(.show) {
    border: none;
}

/* Price section: always open, not collapsible */
.filter-sidebar__accordion-body--always-open {
    display: block !important;
}

.filter-sidebar__accordion-trigger--static {
    cursor: default;
    pointer-events: none;
}

.filter-sidebar__accordion-trigger--static .filter-sidebar__accordion-icon {
    display: none;
}

/* Price filter inner: padding and no overflow */
.filter-sidebar__group-inner {
    padding: 0.5rem 0.75rem;
    min-width: 0;
    overflow-x: hidden;
}

/* Price section only: no scroll, compact layout */
#filter-accordion-price.filter-sidebar__accordion-body {
    overflow: visible;
}

#filter-accordion-price .filter-sidebar__group-inner {
    overflow: hidden;
    width: 100%;
    padding: 0.75rem 0.75rem 1rem;
    min-height: 120px;
    box-sizing: border-box;
}

#filter-accordion-price .filter-sidebar__group-inner .d-flex {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
}

#filter-accordion-price .filter-sidebar__group-inner .input-min,
#filter-accordion-price .filter-sidebar__group-inner .input-max {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    width: 0;
    box-sizing: border-box;
}

/* ----- Price range slider: container ----- */
#filter-accordion-price .range-slider {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    height: 44px;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

/* Price range: track (full bar background) */
.filter-sidebar .range-slider .slider-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    top: 50%;
    margin-top: -4px;
    border-radius: 8px;
    background: var(--modern-gray-200, #e5e5ea);
    z-index: 1;
    pointer-events: none;
    box-sizing: border-box;
}

/* Price range: selected range fill (between min and max thumbs) */
.filter-sidebar .range-slider .slider-range {
    position: absolute;
    left: 0;
    width: 0;
    height: 8px;
    top: 50%;
    margin-top: -4px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--bs-primary, #0d6efd), var(--bs-primary-hover, #0b5ed7));
    z-index: 2;
    pointer-events: none;
    transition: left 0.15s ease, width 0.15s ease;
    box-sizing: border-box;
    min-width: 0;
}

/* Price range: hide native track, keep thumbs; stack both inputs full width */
.filter-sidebar .range-slider input[type="range"] {
    position: absolute;
    left: 0;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    top: 50%;
    margin-top: -22px;
    z-index: 3;
    box-sizing: border-box;
}

.filter-sidebar .range-slider input[type="range"].range-max {
    z-index: 4;
}

.filter-sidebar .range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: all;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--bs-primary, #0d6efd);
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 5;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.filter-sidebar .range-slider input[type="range"]:active::-webkit-slider-thumb {
    cursor: grabbing;
    transform: scale(1.08);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.filter-sidebar .range-slider input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--bs-primary, #0d6efd);
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 5;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.filter-sidebar .range-slider input[type="range"]:active::-moz-range-thumb {
    cursor: grabbing;
    transform: scale(1.08);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.filter-sidebar .range-slider input[type="range"]::-webkit-slider-runnable-track,
.filter-sidebar .range-slider input[type="range"]::-moz-range-track {
    background: transparent;
    border: none;
}

/* Filter UL lists: padding left */
.filter-sidebar__options {
    padding-left: 0.75rem;
}

.filter-sidebar__group-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--modern-text-primary, #1c1c1e);
}

/* Filter sidebar: nx-form-check – checkbox base style (same as login) */
.filter-sidebar .nx-form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.filter-sidebar input[type="checkbox"],
.filter-sidebar .nx-form-check .form-check-input,
.filter-sidebar input[type="checkbox"].nx-form-check-input,
.filter-sidebar .nx-form-check-input {
    width: 20px !important;
    height: 18px !important;
    min-width: 20px !important;
    min-height: 18px !important;
    max-width: 20px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: #ffffff !important;
    border: 2px solid #e8e8ed !important;
    border-radius: 4px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
    position: relative !important;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.filter-sidebar .nx-form-check-input:checked,
.filter-sidebar input[type="checkbox"].nx-form-check-input:checked {
    background-color: var(--bs-primary, #0d6efd) !important;
    border-color: var(--bs-primary, #0d6efd) !important;
}

.filter-sidebar .nx-form-check-input:checked::after,
.filter-sidebar input[type="checkbox"].nx-form-check-input:checked::after {
    content: '✓' !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.filter-sidebar .nx-form-check-input:hover,
.filter-sidebar input[type="checkbox"].nx-form-check-input:hover {
    border-color: var(--bs-primary, #0d6efd);
}

.filter-sidebar .nx-form-check-input:focus,
.filter-sidebar input[type="checkbox"].nx-form-check-input:focus {
    outline: 2px solid var(--bs-primary, #0d6efd) !important;
    outline-offset: 2px;
}

.filter-sidebar .nx-form-check-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
    margin: 0;
    user-select: none;
    line-height: 1.5;
}

/* Price inputs in sidebar: touch-friendly */
.filter-sidebar__group-inner .input-min,
.filter-sidebar__group-inner .input-max {
    min-height: 44px;
    font-size: 1rem; /* prevents iOS zoom on focus */
}

/* ============================================================
   CONTENT AREA: Product grid (preserve existing .row, .nx-product-col)
   ============================================================ */

/* Override skeleton-loader: show product list when we have products (skeleton-loader hides .nx-products-loading by default) */
.category-content .row.nx-products-loading.category-product-area--visible,
.category-page__content .row.nx-products-loading.category-product-area--visible {
    display: flex !important;
}

.category-page__content {
    flex: 1;
    min-width: 0;
    width: 100%;
    text-align: left;
}

.category-page__content .row.responsive,
.category-content .row.row-responsive {
    margin-left: calc(var(--space-2, 0.5rem) * -1);
    margin-right: calc(var(--space-2, 0.5rem) * -1);
    justify-content: flex-start;
}

.category-page__content .nx-product-col,
.category-content .nx-product-col {
    padding-left: var(--space-2, 0.5rem);
    padding-right: var(--space-2, 0.5rem);
    margin-bottom: var(--space-2, 0.5rem);
}

/* Mobile / small: 2 products per row, wider product cards (tighter padding + row gutter) */
@media (max-width: 575px) {
    .category-page__content .row.row-responsive.g-2.g-sm-3,
    .category-content .row.row-responsive.g-2.g-sm-3 {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }
    .row.row-responsive.g-2.g-sm-3.nx-products-loading .col-6.col-md-4.col-lg-3.nx-product-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        box-sizing: border-box;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
}

/* ============================================================
   PAGINATION – modern style, 100% responsive
   ============================================================ */

.category-content #pro-paginate-area,
.category-content .hide-area#pro-paginate-area {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: var(--space-4, 1rem) 0;
    margin-top: var(--space-4, 1rem);
    margin-bottom: var(--space-4, 1rem);
}

.category-content #pro-paginate-area nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
}

.category-content #pro-paginate-area .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-content #pro-paginate-area .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--modern-text-primary, #1c1c1e);
    background: #fff;
    border: 1px solid var(--modern-border-secondary, #e5e5ea);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.category-content #pro-paginate-area .page-item .page-link:hover {
    background: var(--modern-gray-50, #f8f9fa);
    border-color: var(--modern-gray-300, #d1d1d6);
}

.category-content #pro-paginate-area .page-item.active .page-link {
    background: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    color: #fff;
}

.category-content #pro-paginate-area .page-item.disabled .page-link {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.category-content #pro-paginate-area .text-muted.small {
    font-size: 0.8125rem;
    color: var(--modern-text-secondary, #6c757d);
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
}

@media (min-width: 576px) {
    .category-content #pro-paginate-area .text-muted.small {
        margin-bottom: 0;
        width: auto;
        text-align: left;
    }
}

/* ============================================================
   LOADER & SKELETON (preserve IDs and classes)
   ============================================================ */

#brand-filter-loader .nx-loading-message,
.nx-inline-loader .nx-loading-message {
    font-size: 0.875rem;
    color: var(--modern-text-secondary, #6c757d);
    margin-top: 0.5rem;
}

/* ============================================================
   RESPONSIVE - Tablet (768px+)
   ============================================================ */

@media (min-width: 768px) {
    .category-page__container {
        padding-left: var(--space-5, 1.25rem);
        padding-right: var(--space-5, 1.25rem);
    }

    .category-toolbar__brands-scroll {
        flex-wrap: nowrap;
    }
}

/* ============================================================
   RESPONSIVE - Desktop (992px+)
   ============================================================ */

@media (min-width: 992px) {
    .category-page__main {
        flex-wrap: nowrap;
    }

    .category-page__sidebar {
        flex: 0 0 var(--category-sidebar-width);
        width: var(--category-sidebar-width);
    }

    .category-page__content {
        flex: 1;
        min-width: 0;
    }
}
