/* ═══════════════════════════════════════════
   PRODUCTS DIRECTORY — Premium Layout
   ═══════════════════════════════════════════ */

/* Title Row */
.products-directory-title-row h2 {
    font-size: 48px !important;
    font-weight: 600 !important;
    color: #173158 !important;
    margin: 0 !important;
}

/* ═══════════════════════════════════════════
   PRODUCTS PAGINATION
   ═══════════════════════════════════════════ */
.products-pagination {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.products-pagination nav {
    width: 100%;
}

.products-pagination nav>.d-none.flex-sm-fill.d-sm-flex.align-items-sm-center.justify-content-sm-between {
    width: 100%;
}

.products-pagination .pagination {
    margin-top: 0;
    margin-bottom: 0;
    gap: 0.5rem;
    justify-content: center;
}

.products-pagination .page-item {
    margin: 0;
}

.products-pagination .page-link {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    color: #152C50;
    background: #f9fafb;
    padding: 0;
    transition: none;
}

.products-pagination .page-link:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.products-pagination .page-item.active .page-link {
    background: #E83161;
    border-color: #E83161;
    color: #fff;
    font-weight: 600;
}

.products-pagination .page-item.disabled .page-link {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #d1d5db;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    .products-pagination .page-link span {
        display: none;
    }

    .products-pagination .page-link {
        padding: 0 12px !important;
        min-width: 40px;
    }
}

.products-sort-brands-btn {
    width: 300px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 15px !important;
    background: #ffffff !important;
    border: 1px solid #BAC2CD !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    color: #183158 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: none;
}

.products-sort-brands-btn.is-open,
.products-sort-brands-btn-mobile.is-open {
    border-bottom-color: transparent !important;
    z-index: 601;
}

.products-sort-brands-btn svg {
    color: #E83161;
}

/* Category Filter (200x200 boxes) */
.products-categories-scroll {
    gap: 30px !important;
    padding: 10px 0 !important;
    display: flex !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.products-categories-scroll:active {
    cursor: grabbing;
}

.products-categories-scroll * {
    -webkit-user-drag: none;
}

.products-categories-scroll::-webkit-scrollbar {
    display: none !important;
}

.products-cat-card {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important;
    padding: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: start !important;
    justify-content: start !important;
    background: #F7F8F9 !important;
    border: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    transition: background-color 0.25s ease, color 0.25s ease !important;
    flex: 0 0 auto !important;
}

.products-cat-card:hover,
.products-cat-card.active {
    background: #E83161 !important;
    border: none !important;
    box-shadow: none !important;
}

.products-cat-card:hover .products-cat-card-title,
.products-cat-card.active .products-cat-card-title {
    color: #ffffff !important;
}

.products-cat-card:hover .products-cat-card-img-box i,
.products-cat-card.active .products-cat-card-img-box i,
.products-cat-card:hover .products-cat-card-img-box svg path,
.products-cat-card.active .products-cat-card-img-box svg path {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

.products-cat-card:hover .products-cat-card-img,
.products-cat-card.active .products-cat-card-img {
    filter: brightness(0) invert(1) !important;
}

.products-cat-card-img-box {
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.products-cat-card-img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    transition: filter 0.25s ease !important;
}

.products-cat-card-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #173158 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    margin: auto 0 0 0;
    transition: color 0.25s ease !important;
}

/* Product Card Redesign (387x387 image) */
.products-grid-row {
    --bs-gutter-x: 30px;
    --bs-gutter-y: 50px;
}

.product-card-premium {
    width: 387px !important;
    display: flex !important;
    flex-direction: column !important;
    background: transparent !important;
    text-decoration: none !important;
    margin-bottom: 30px !important;
}

.pc-img-box {
    width: 387px !important;
    height: 387px !important;
    /* background: #F7F8F9 !important; */
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border: 2px solid #EDEFF2;
}

.pc-img-box img {
    width: 330px !important;
    height: 330px !important;
    object-fit: contain !important;
}

.pc-badge {
    width: 48px !important;
    height: 48px !important;
    background: #E83161 !important;
    color: #FFF !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
}

.pc-badge-percent {
    font-size: 0.55em !important;
    font-weight: 700 !important;
    display: inline-block !important;
    transform: translateY(-0.25em) !important;
    margin-left: 0.05em !important;
    line-height: 1 !important;
}

.pc-info {
    padding-top: 25px !important;
}

.pc-meta-top {
    font-size: 14px !important;
    color: #5D6F8A !important;
    margin-bottom: 5px !important;
}

.pc-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #183158 !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 75px;
}

.pc-meta-bottom {
    font-size: 14px !important;
    color: #183158 !important;
    margin-bottom: 55px !important;
}

.prod-card-separator {
    display: inline-block;
    width: 2px;
    height: 15px;
    background-color: #D1D1D1;
    margin: 0 10px;
    vertical-align: middle;
}

.pc-btn-signup {
    width: 168px !important;
    height: 42px !important;
    border: 2px solid #E83161 !important;
    color: #E83161 !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: none !important;
    text-transform: uppercase !important;
}

.pc-btn-signup:hover {
    background: #E83161 !important;
    color: #FFF !important;
}

.pc-btn-signup svg path {
    fill: currentColor !important;
}

@media (max-width: 711.98px) {
    .products-directory-title-row h2 {
        font-size: 24px !important;
    }

    .products-sort-brands-btn-mobile {
        width: 156px !important;
        height: 34px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 10px !important;
        background: #ffffff !important;
        border: 1px solid #BAC2CD !important;
        border-radius: 0 !important;
        font-size: 12px !important;
        color: #183158 !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        margin-top: 9% !important;
    }

    .products-cat-card {
        width: 82px !important;
        height: 82px !important;
        min-width: 82px !important;
        padding: 10px !important;
        align-items: start !important;
        justify-content: start !important;
    }

    .products-cat-card-img-box {
        width: 24px !important;
        height: 24px !important;
        margin-bottom: 5px !important;
    }

    .products-cat-card-img {
        width: 24px !important;
        height: 24px !important;
    }

    .products-cat-card-img-box i {
        font-size: 16px !important;
    }

    .products-cat-card-title {
        font-size: 10px !important;
        margin: auto 0 0 0 !important;
    }

    .products-grid-row {
        --bs-gutter-x: 8px;
        --bs-gutter-y: 24px;
    }

    .product-card-premium {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }

    .pc-img-box {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
    }

    .pc-badge {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
        top: 8px !important;
        right: 8px !important;
    }

    .pc-info {
        padding-top: 10px !important;
    }

    .pc-meta-top {
        font-size: 8px !important;
    }

    .pc-title {
        font-size: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 5px !important;
        -webkit-line-clamp: 3 !important;
        height: 84px;
    }

    .pc-meta-bottom {
        font-size: 8px !important;
        margin-bottom: 15px !important;
    }

    .prod-card-separator {
        height: 10px;
        margin: 0 6px;
    }

    .pc-btn-signup {
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
        border: 2px solid #E83161 !important;
    }

    .pc-btn-signup span {
        display: none !important;
    }

    .pc-btn-signup svg {
        width: 8px !important;
        height: 8px !important;
    }

    /* Mobile: product card image scales inside square box */
    .pc-img-box img {
        width: 78% !important;
        max-width: 123px !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: contain !important;
    }

    .products-categories-scroll {
        gap: 5px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Laptop Screen Overrides (992px to 1639.98px)
   Mirrors the same range used by /categories and /brands so the
   products hero banner, title row, category strip and product cards
   fit the laptop viewport without being clipped by the global 1640px
   .kp-container width. PC (≥1640px) and mobile (<768px) layouts are
   not touched.
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 992px) and (max-width: 1639.98px) {

    /* Containers: make fluid for the laptop range. !important also
       overrides the inline `max-width: 1640px; padding: 0;` set on the
       breadcrumb .kp-container in products.blade.php. */
    .kp-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    /* Banner — convert the fixed inline 1230 + 10 + 400 (= 1640px) banner
       layout into a fluid flex layout that fills the available container. */
    .hero-section.hero-split .d-md-flex.align-items-stretch {
        width: 100% !important;
        gap: 10px !important;
    }

    .hero-section.hero-split .d-md-flex.align-items-stretch>div:first-child {
        width: auto !important;
        max-width: none !important;
        height: 380px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        flex: 1 1 0% !important;
    }

    .hero-section.hero-split .d-md-flex.align-items-stretch>div:last-child {
        width: 350px !important;
        max-width: 350px !important;
        height: 380px !important;
        flex: 0 0 350px !important;
    }

    /* Banner text block padding + typography */
    .hero-section.hero-split .hero-content {
        padding: 45px 40px !important;
    }

    .hero-section.hero-split .hero-content>h1 {
        font-size: 38px !important;
        line-height: 44px !important;
        margin-bottom: 12px !important;
    }

    .hero-section.hero-split .hero-content>p {
        font-size: 16px !important;
        line-height: 22px !important;
        max-width: 500px !important;
        margin-bottom: 24px !important;
    }

    .hero-section.hero-split .hero-content>.d-flex.align-items-center {
        gap: 20px !important;
    }

    .hero-section.hero-split .hero-content>.d-flex.align-items-center>a.btn {
        width: 180px !important;
        height: 52px !important;
        font-size: 15px !important;
        padding-left: 16px !important;
    }

    .hero-section.hero-split .hero-content>.d-flex.align-items-center>a:not(.btn) {
        font-size: 16px !important;
    }

    /* Directory title row */
    .products-directory-title-row h2 {
        font-size: 38px !important;
    }

    .products-sort-brands-btn {
        width: 260px !important;
        height: 44px !important;
        font-size: 15px !important;
    }

    /* Filter dropdown: align panel with button (overrides inline 300px width) */
    .products-directory-title-row .cat-filter-dropdown-wrap .cat-filter-dropdown-menu {
        width: 100% !important;
        min-width: 100% !important;
        left: 0 !important;
        right: auto !important;
        box-sizing: border-box;
    }

    /* Product cards & grid — match the category-details fluid 4-column layout */
    .products-grid-row>.col {
        width: 25% !important;
        max-width: 25% !important;
        flex: 0 0 25% !important;
    }

    .product-card-premium {
        width: 100% !important;
    }

    .pc-img-box {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        padding: 1.5rem !important;
        margin-bottom: 15px !important;
    }

    .pc-img-box img {
        width: 80% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: contain !important;
    }

    .pc-badge {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        top: 12px !important;
        right: 12px !important;
    }

    .pc-info {
        padding-top: 0 !important;
    }

    .pc-title {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
        min-height: 45px !important;
        max-height: 45px !important;
        height: 45px !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    .pc-meta-bottom {
        margin-bottom: 20px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Tablet Screen Overrides (768px to 991.98px)
   The products banner uses inline-pixel widths (1230 + 10 + 400 = 1640px)
   and the global .kp-container is 1640px — both overflow tablet
   viewports. Product cards (387×387) also need to shrink so multiple
   fit per row.

   Mobile <768 keeps the existing `(max-width: 767.98px)` rules, and
   laptop 992–1639.98 keeps its own block. PC ≥1640 is not touched.
   ═══════════════════════════════════════════════════════════════════ */
/* ───────── Shift Breakpoint for Products Page (apply mobile until 712px, then tablet) ───────── */
@media (min-width: 712px) and (max-width: 767.98px) {

    /* Hide Mobile Layout */
    .d-md-none {
        display: none !important;
    }

    /* Show Tablet/Desktop Layout */
    .d-none.d-md-block {
        display: block !important;
    }

    .d-none.d-md-flex {
        display: flex !important;
    }
}

@media (min-width: 712px) and (max-width: 991.98px) {

    /* Prevent page-level horizontal scroll on tablet */
    .cat-section[aria-label="All products listing"] {
        overflow-x: clip;
    }

    /* Containers: make fluid for the tablet range. !important also
       overrides the inline `max-width: 1640px; padding: 0;` set on the
       breadcrumb .kp-container in products.blade.php. */
    .kp-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    /* Banner — convert the inline 1230 + 10 + 400 = 1640px layout into a
       fluid flex layout with a smaller image col. */
    .hero-section.hero-split .d-md-flex.align-items-stretch {
        width: 100% !important;
        gap: 10px !important;
    }

    .hero-section.hero-split .d-md-flex.align-items-stretch>div:first-child,
    .hero-section.hero-split .d-md-flex.align-items-stretch>div:last-child {
        width: calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        height: 320px !important;
        flex: 0 0 calc(50% - 5px) !important;
    }

    .hero-section.hero-split .d-md-flex.align-items-stretch>div:first-child {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Banner text block padding + typography */
    .hero-section.hero-split .hero-content {
        padding: 24px 26px !important;
    }

    .hero-section.hero-split .hero-content>h1 {
        font-size: 28px !important;
        line-height: 32px !important;
        margin-bottom: 10px !important;
    }

    .hero-section.hero-split .hero-content>p {
        font-size: 13px !important;
        line-height: 18px !important;
        max-width: 100% !important;
        margin-bottom: 16px !important;
    }

    .hero-section.hero-split .hero-content>.d-flex.align-items-center {
        gap: 14px !important;
        flex-wrap: wrap !important;
    }

    .hero-section.hero-split .hero-content>.d-flex.align-items-center>a.btn {
        width: 200px !important;
        height: 44px !important;
        font-size: 13px !important;
        padding-left: 14px !important;
    }

    .hero-section.hero-split .hero-content>.d-flex.align-items-center>a:not(.btn) {
        font-size: 14px !important;
    }

    /* Decorative 403×403 SVG inside the left banner box — clamp so it
       doesn't dominate the smaller tablet card. */
    .hero-section.hero-split .d-md-flex.align-items-stretch>div:first-child>.position-absolute svg {
        display: none;
        width: 240px !important;
        height: 240px !important;
        opacity: 0.45 !important;
    }

    /* Directory title row */
    .products-directory-title-row {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .products-directory-title-row h2 {
        font-size: 30px !important;
    }

    .products-sort-brands-btn {
        width: 220px !important;
        height: 40px !important;
        font-size: 14px !important;
        padding: 0 12px !important;
    }

    /* Filter dropdown: match button width on tablet (overrides inline 300px) */
    .products-directory-title-row .cat-filter-dropdown-wrap .cat-filter-dropdown-menu {
        width: 100% !important;
        min-width: 100% !important;
        left: 0 !important;
        right: auto !important;
        box-sizing: border-box;
    }

    .products-directory-title-row .cat-filter-dropdown-wrap {
        max-width: 100%;
    }

    /* Category strip — contain horizontal scroll inside viewport */
    .products-categories-toolbar {
        max-width: 100%;
        overflow: hidden;
    }

    .products-categories-scroll {
        gap: 12px !important;
        max-width: 100%;
    }

    .products-cat-card {
        width: 160px !important;
        height: 160px !important;
        min-width: 160px !important;
        padding: 22px 16px !important;
    }

    .products-cat-card-img-box,
    .products-cat-card-img {
        width: 48px !important;
        height: 48px !important;
    }

    .products-cat-card-title {
        font-size: 16px !important;
    }

    /* Product cards — 2 fluid columns on tablet */
    .products-grid-row {
        --bs-gutter-x: 20px !important;
        --bs-gutter-y: 30px !important;
    }

    .products-grid-row>.col {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }

    .product-card-premium {
        width: 100% !important;
        margin-bottom: 25px !important;
    }

    .pc-img-box {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
    }

    .pc-img-box img {
        width: 80% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: contain !important;
    }

    .pc-badge {
        width: 34px !important;
        height: 34px !important;
        font-size: 13px !important;
        top: 10px !important;
        right: 10px !important;
    }

    .pc-info {
        padding-top: 16px !important;
    }

    .pc-meta-top {
        font-size: 12px !important;
    }

    .pc-title {
        font-size: 14px !important;
        margin-bottom: 8px !important;
        height: 48px !important;
    }

    .pc-meta-bottom {
        font-size: 12px !important;
        margin-bottom: 20px !important;
    }

    .prod-card-separator {
        height: 10px;
        margin: 0 6px;
    }

    .pc-btn-signup {
        width: 150px !important;
        height: 38px !important;
        font-size: 12px !important;
    }
}

/* Join to Buy Button Hover styling */
.prod-btn-join {
    transition: all 0.3s ease !important;
}

.prod-btn-join:hover {
    background-color: #ffffff !important;
    color: #183158 !important;
}

.prod-btn-join:hover svg path {
    fill: #E73161 !important;
}

/* ─── Desktop: brands dropdown aligns with toggle button ─── */
.products-directory-title-row .cat-filter-dropdown-wrap .cat-filter-dropdown-menu {
    width: 100% !important;
    min-width: 100% !important;
    left: 0 !important;
    right: auto !important;
    box-sizing: border-box;
}

/* ─── Filter Dropdown Wrapper ─── */
.cat-filter-dropdown-wrap {
    --cat-font: 'Poppins', 'Inter', sans-serif;
    position: relative;
    display: inline-block;
}

/* ─── Toggle icon: + by default, – when open ─── */
.cat-filter-toggle .cat-filter-icon {
    display: inline-block;
    flex-shrink: 0;
}

.cat-filter-toggle .cat-icon-minus {
    display: none;
}

.cat-filter-toggle.is-open .cat-icon-plus {
    display: none;
}

.cat-filter-toggle.is-open .cat-icon-minus {
    display: inline-block;
}

/* ─── Dropdown Panel ─── */
.cat-filter-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 100%;
    background: #fff;
    border: 1px solid #BAC2CD;
    border-top: none;
    border-radius: 0 !important;
    z-index: 600;
}

/* ─── Selected count row ─── */
.cat-fdd-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #F7F8F9;
    margin: 12px 16px 8px;
    border-bottom: none;
}

.cat-fdd-count-text {
    font-size: 14px;
    color: #183158;
    font-family: var(--cat-font);
    font-weight: 400;
}

.cat-fdd-count {
    font-weight: 500;
    color: #E83161;
    font-size: 16px;
    margin-right: 2px;
}

.cat-fdd-reset {
    font-size: 14px;
    font-weight: 500;
    color: #E83161;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--cat-font);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.cat-fdd-reset:hover {
    text-decoration: underline;
}

/* ─── Checkbox list ─── */
.cat-fdd-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 0 6px;
}

.cat-fdd-list::-webkit-scrollbar {
    width: 4px;
}

.cat-fdd-list::-webkit-scrollbar-track {
    background: #F7F8F9;
}

.cat-fdd-list::-webkit-scrollbar-thumb {
    background: #BAC2CD;
}

.cat-fdd-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 16px;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
    transition: background 0.12s;
}

.cat-fdd-item:hover {
    background: #F7F8F9;
}

.cat-fdd-item:hover .cat-fdd-item-label {
    color: #E83161;
}

/* Hide native checkbox */
.cat-fdd-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom checkbox box */
.cat-fdd-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid #BAC2CD;
    background: #fff;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}

.cat-fdd-checkbox:checked+.cat-fdd-box {
    background: #fff;
    border-color: #E83161;
}

.cat-fdd-checkbox:checked+.cat-fdd-box::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #E83161;
}

.cat-fdd-item-label {
    font-size: 14px;
    color: #183158;
    font-family: var(--cat-font);
    transition: color 0.15s;
    line-height: 1.45;
    flex: 1;
    min-width: 0;
}

/* ─── Loading overlay ─── */
.cat-slider-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* ─── Empty state ─── */
.cat-filter-empty {
    width: 100%;
    color: #5D6F8A;
    font-size: 14px;
    font-family: var(--cat-font);
    text-align: center;
    padding: 24px 0;
}

/* ─── Mobile: brands dropdown (products page only) ─── */
@media (max-width: 767.98px) {
    .products-directory-title-row {
        position: relative;
        overflow: visible;
    }

    .products-directory-title-row .products-mobile-brand-filter.cat-filter-dropdown-wrap {
        position: static !important;
        display: block;
        z-index: 80;
    }

    .products-directory-title-row .products-mobile-brand-filter .cat-filter-dropdown-menu {
        position: absolute;
        top: 93%;
        left: 0;
        right: 0;
        width: 100% !important;
        min-width: 0 !important;
        margin-top: 0;
        border-top: 1px solid #BAC2CD;
        z-index: 650;
        box-sizing: border-box;
        padding: 2%;
    }

    .products-mobile-brand-filter .products-sort-brands-btn-mobile.is-open {
        position: relative;
        z-index: 651;
        border-bottom-color: #BAC2CD !important;
    }

    .products-mobile-brand-filter .cat-fdd-meta {
        margin: 0;
        padding: 8px 8px;
        background: #F7F8F9;
        border-bottom: 1px solid #E8ECF0;
        margin: 0px 14px;
    }

    .products-mobile-brand-filter .cat-fdd-count-text {
        font-size: 12px;
        color: #173158;
    }

    .products-mobile-brand-filter .cat-fdd-count {
        font-size: 14px;
    }

    .products-mobile-brand-filter .cat-fdd-reset {
        font-size: 12px;
    }

    .products-mobile-brand-filter .cat-fdd-item {
        padding: 10px 16px;
    }

    .products-mobile-brand-filter .cat-fdd-item-label {
        font-size: 13px;
        line-height: 1.4;
        word-break: break-word;
    }

    .products-mobile-brand-filter .cat-fdd-list {
        max-height: 280px;
        padding: 0;
        scrollbar-color: #E83161 #F7F8F9;
    }

    .products-mobile-brand-filter .cat-fdd-list::-webkit-scrollbar-thumb {
        background: #E83161;
    }
}

/* ─── Sticky Breadcrumb ─── */
.breadcrumb-nav {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: var(--nav-mega-top, 140px) !important;
    z-index: 950 !important;
    background: #ffffff !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transition: top 0.3s ease-in-out !important;
}

@media (max-width: 767.98px) {
    .breadcrumb-nav {
        top: var(--nav-mega-top, 9.25rem) !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
}

@media (min-width: 712px) and (max-width: 991.98px) {
    .breadcrumb-nav {
        top: 85px !important;
    }
}