/* ═══════════════════════════════════════════
   OFFERS DIRECTORY — Premium Layout
   ═══════════════════════════════════════════ */

/* Banner right-image overlay */
.offer-banner-img-wrap {
    position: relative;
    overflow: hidden;
}

.offer-banner-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #10223D;
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
}

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

.offers-sort-box {
    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;
}

.offers-sort-box.is-open {
    border-bottom-color: transparent !important;
    z-index: 601;
}

.offers-sort-box-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: 8% !important;
}

.offers-sort-box-mobile.is-open {
    border-bottom-color: transparent !important;
    z-index: 601;
}

.offers-sort-box svg {
    color: #E83161;
}

/* Category Filter (200x200 boxes) */
.offers-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;
}

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

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

.offers-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) */
.offers-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;
}

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

.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: 8px !important;
}

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

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

.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;
}

/* Pagination */
.offer-pagination {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

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

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

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

.offer-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;
}

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

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

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

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

    .offers-sort-box {
        width: 156px !important;
        height: 34px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 12px !important;
        background: #F7F8F9 !important;
        border: 1px solid #EDEDED !important;
        font-size: 12px !important;
        color: #152C50 !important;
        text-decoration: none !important;
        font-weight: 500 !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;
        text-align: left !important;
    }

    .offers-grid-row {
        --bs-gutter-x: 8px !important;
        --bs-gutter-y: 24px !important;
    }

    .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-img-box img {
        max-width: 80% !important;
        max-height: 80% !important;
        object-fit: contain !important;
    }

    .pc-badge {
        width: 33px !important;
        height: 30px !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: 147px !important;
        margin-bottom: 5px !important;
        -webkit-line-clamp: 3 !important;
        min-height: auto !important;
        height: 48px !important;
    }

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

    .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 exact size */
    .pc-img-box img {
        width: 123px !important;
        height: 123px !important;
        object-fit: contain !important;
    }

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

/* ═══════════════════════════════════════════════════════════════════
   Laptop Screen Overrides (992px to 1639.98px)
   Mirrors the same range used by /categories, /brands and /products so
   the offers hero banner, title row, category strip and offer 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 offers.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 */
    .offers-directory-title-row h2 {
        font-size: 38px !important;
    }

    .offers-sort-box {
        width: 240px !important;
        height: 44px !important;
        font-size: 15px !important;
    }

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

    /* Offer cards & grid — match the products page fluid 4-column layout */
    .offers-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: 30px !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 offers banner uses inline-pixel widths (1230 + 10 + 400 = 1640px)
   and the global .kp-container is 1640px — both overflow tablet
   viewports. Offer cards (387×387) also need to shrink for tablet.

   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 Offers 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) {

    /* Containers: make fluid for the tablet range. !important also
       overrides the inline `max-width: 1640px; padding: 0;` on the
       breadcrumb .kp-container in offers.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 {
        width: 240px !important;
        height: 240px !important;
        opacity: 0.45 !important;
        display: none !important;
    }

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

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

    .offers-sort-box {
        width: 200px !important;
        height: 40px !important;
        font-size: 14px !important;
        padding: 0 12px !important;
    }

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

    /* Category strip — 200×200 cat cards scroll horizontally. Trim them
       slightly so 3–4 fit comfortably in view at tablet widths. */
    .offers-categories-scroll {
        gap: 12px !important;
    }

    .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;
    }

    /* Offer cards — match products page fluid 2-column layout */
    .offers-grid-row {
        --bs-gutter-x: 20px !important;
        --bs-gutter-y: 30px !important;
    }

    .offers-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 {
        max-width: 80% !important;
        max-height: 80% !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;
        min-height: 48px !important;
    }

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

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

/* ── Sticky breadcrumb (like about us) ── */
.offers-breadcrumb-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: var(--nav-mega-top, 140px);
    z-index: 901;
    background: #ffffff;
    padding: 20px 0;
}

/* ── Filter loader spinner ── */
@keyframes offerFilterSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ── Category & Brand Sort Dropdowns ── */
.offers-category-sort-wrapper {
    position: relative;
    display: inline-block;
}

.offers-brand-sort-wrapper {
    position: relative;
    display: inline-block;
}

.offers-sort-box.is-active-filter {
    border-color: #E83161 !important;
    color: #E83161 !important;
}

.offers-brand-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 1050;
    width: 300px;
    background: #fff;
    border: 1px solid #d9dfe7;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.offers-brand-dropdown.is-open {
    display: block;
}

.offers-brand-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f8f9;
    padding: 10px 14px;
    border-bottom: 1px solid #e9ecef;
}

.offers-brand-selected-label {
    color: #E83161;
    font-size: 16px;
    font-weight: 600;
}

.offers-brand-reset {
    color: #E83161;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.offers-brand-list {
    max-height: 370px;
    overflow-y: auto;
    padding: 10px 14px 12px;
    scrollbar-width: thin;
    scrollbar-color: #E83161 #f0f0f0;
}

.offers-brand-list::-webkit-scrollbar {
    width: 4px;
}

.offers-brand-list::-webkit-scrollbar-thumb {
    background: #E83161;
    border-radius: 2px;
}

.offers-brand-group-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9aacbf;
    margin: 12px 0 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0f0f0;
}

.offers-brand-group-label:first-child {
    margin-top: 2px;
}

.offers-brand-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    color: #2d4670;
    font-size: 15px;
    font-weight: 500;
}

.offers-brand-item:last-child {
    margin-bottom: 0;
}

.offers-brand-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin: 0;
    accent-color: #E83161;
    cursor: pointer;
}

/* ── JOIN TO BUY hover effect ── */
.offers-join-btn {
    background: #E83161 !important;
    color: #ffffff !important;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.offers-join-btn svg path {
    fill: #ffffff;
    transition: fill 0.25s ease;
}

.offers-join-btn:hover {
    background: #ffffff !important;
    color: #173158 !important;
    box-shadow: 0 6px 20px rgba(23, 49, 88, 0.3);
}

.offers-join-btn:hover svg path {
    fill: #E83161 !important;
}

/* ─── 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: align dropdown to right edge of button ─── */
@media (max-width: 767.98px) {
    .offers-directory-title-row {
        overflow: visible;
    }

    .offers-mobile-brand-filter {
        z-index: 80;
    }

    .offers-mobile-brand-filter .cat-filter-dropdown-menu {
        width: 322px;
        min-width: 300px;
        left: auto;
        right: 0;
        /* margin-top: -1px; */
        z-index: 650;
        border: 1px solid #BAC2CD !important;
    }

    .offers-mobile-brand-filter .cat-filter-btn.is-open,
    .offers-mobile-brand-filter .offers-sort-box-mobile.is-open {
        position: relative;
        z-index: 651;
    }

    .offers-mobile-brand-filter .cat-fdd-meta {
        margin: 12px 12px 8px;
    }

    .offers-mobile-brand-filter .cat-fdd-item {
        padding: 9px 12px;
    }

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

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

    .offers-mobile-brand-filter .cat-fdd-list {
        scrollbar-color: #E83161 #F7F8F9;
    }
}

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