.listsec2 {
    padding: 30px 0 50px;
    background: #F5F7F9;
}

.listsec2 .container {
    position: relative;
}

.listsec2 .proitem {
    background: #fff;
}

.listsec2 .slider-dots {
    display: none;
}

.listofr {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.listofrbx {
    mask: radial-gradient(10px at 10px 10px, #0000 98%, #000) -10px -10px;
    background-color: #00D2D6;
    width: 96px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.listofrbx:hover {
    background-color: #00b8bc;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 210, 214, 0.35);
}

.listofrbx.is-active {
    background-color: #084887;
    box-shadow: 0 0 0 3px rgba(8, 72, 135, 0.35), 0 4px 12px rgba(0, 0, 0, 0.18);
    transform: scale(1.05);
}

/* ===== Categories Filter Button & Dropdown ===== */
.cat-filter-wrap {
    position: relative;
    display: inline-block;
}

.cat-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #F5F7F9;
    border: 1.5px solid #D9E3EB;
    font-size: 16px;
    color: #5D7388;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    white-space: nowrap;
    font-weight: 500;
}

.cat-filter-btn:hover,
.cat-filter-btn.active {
    border-color: #1A5E9D;
    color: #1A5E9D;
    background: #EDF3FA;
}

.cat-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.cat-filter-btn.active .cat-chevron {
    transform: rotate(180deg);
}

.cat-filter-drop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 200;
    min-width: 260px;
    background: #fff;
    border: 1.5px solid #D4DCE5;
    border-radius: 0px;
    box-shadow: 0 8px 28px rgba(26, 94, 157, 0.10);
    padding: 18px 20px 14px;
 
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.cat-filter-drop.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cat-filter-label {
    font-size: 12px;
    color: #8FA3B5;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #EDF1F5;
}

.cat-group {
    margin-top: 4px;
}

.cat-group-title {
    font-size: 15px;
    font-weight: 700;
    color: #1A5E9D;
    margin: 0 0 10px;
    font-family: inherit;
}

.cat-chk-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-chk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #5D7388;
    cursor: pointer;
    transition: color 0.15s;
    user-select: none;
}

.cat-chk-item:hover {
    color: #1A5E9D;
}

.cat-chk-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cat-chk-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    border: 1.8px solid #5D7388;
    border-radius: 3px;
    background: #fff;
    transition: border-color 0.18s, background 0.18s;
}

.cat-chk-item input[type="checkbox"]:checked+.cat-chk-box {
    background: #1A5E9D;
    border-color: #1A5E9D;
}

.cat-chk-item input[type="checkbox"]:checked+.cat-chk-box::after {
    content: '';
    display: block;
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px) translateX(1px);
}

.cat-chk-item strong {
    color: #1A5E9D;
    font-weight: 700;
}

/* ===== Brands Dropdown Specific ===== */
.brand-filter-drop {
    min-width: 280px;
    padding: 14px 16px 10px;
}

.brand-search-wrap {
    margin-bottom: 12px;
}

.brand-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 14px;
    border: 1.5px solid #D9E3EB;
    border-radius: 6px;
    font-size: 14px;
    color: #3D5166;
    font-family: inherit;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%238FA3B5' stroke-width='2'/%3E%3Cpath d='M16.5 16.5l4 4' stroke='%238FA3B5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.brand-search-input::placeholder {
    color: #A6BAC8;
}

.brand-search-input:focus {
    border-color: #1A5E9D;
}

.brand-chk-list {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
    gap: 10px;
}

/* Thin custom scrollbar for brand list */
.brand-chk-list::-webkit-scrollbar {
    width: 4px;
}

.brand-chk-list::-webkit-scrollbar-track {
    background: #F0F3F6;
    border-radius: 4px;
}

.brand-chk-list::-webkit-scrollbar-thumb {
    background: #C5D3DC;
    border-radius: 4px;
}

.brand-chk-list::-webkit-scrollbar-thumb:hover {
    background: #8FA3B5;
}

.brand-count {
    font-size: 13px;
    color: #A6BAC8;
    white-space: nowrap;
}

/* ===== Price Dropdown Specific ===== */
.price-filter-drop {
    min-width: 300px;
    padding: 18px 20px 16px;
}

/* On Sale radio row */
.price-onsale {
    margin-bottom: 18px;
    font-size: 15px;
    color: #5D7388;
}

.price-onsale input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cat-radio-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.8px solid #5D7388;
    border-radius: 50%;
    background: #fff;
    transition: border-color 0.18s;
}

.price-onsale input[type="radio"]:checked+.cat-radio-box {
    border-color: #1A5E9D;
    box-shadow: inset 0 0 0 4px #1A5E9D;
}

/* Slider track */
.price-slider-wrap {
    position: relative;
    height: 36px;
    margin: 10px 0 4px;
}

.price-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #D9E3EB;
    border-radius: 3px;
    transform: translateY(-50%);
    pointer-events: none;
}

.price-slider-fill {
    position: absolute;
    height: 100%;
    background: #1A5E9D;
    border-radius: 3px;
}

/* Range inputs stacked */
.price-range {
    position: absolute;
    top: 45%;
    left: -2px;
    width: 100%;
    height: 3px;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    outline: none;
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #1A5E9D;
    box-shadow: 0 1px 6px rgba(26, 94, 157, 0.18);
    cursor: pointer;
    pointer-events: all;
    transition: box-shadow 0.2s;
}

.price-range::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 5px rgba(26, 94, 157, 0.12);
}

.price-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #1A5E9D;
    cursor: pointer;
    pointer-events: all;
}

/* Footer: price label left, reset button right */
.price-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    gap: 12px;
}

.price-labels {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-label-text {
    font-size: 13px;
    color: #8FA3B5;
}

.price-range-display {
    font-size: 15px;
    font-weight: 700;
    color: #1A5E9D;
    letter-spacing: 0.01em;
}

.price-reset-btn {
    padding: 10px 22px;
    background: #00D2D6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.price-reset-btn:hover {
    background: #00b8bc;
    transform: translateY(-1px);
}

.price-reset-btn:active {
    transform: translateY(0);
}

/* ===== Sort By ===== */
.cbps-sec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 14px;
}

.mobile-filter-trigger {
    display: none;
}

.cbpslft {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cbpsrgt {
    display: flex;
    align-items: center;
}

.sort-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-label {
    font-size: 16px;
    font-weight: 700;
    color: #5D7388;
    white-space: nowrap;
    cursor: default;
}

.sort-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sort-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 10px 44px 10px 18px;
    border: 1.5px solid #D9E3EB;
    border-radius: 0;
    background: #F5F7F9;
    font-size: 15px;
    color: #5D7388;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    white-space: nowrap;
}

.sort-select:hover,
.sort-select:focus {
    border-color: #1A5E9D;
    color: #1A5E9D;
    background: #EDF3FA;
}

.sort-chevron {
    position: absolute;
    right: 14px;
    pointer-events: none;
    transition: transform 0.25s ease;
}

.sort-select:focus~.sort-chevron {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .cbps-sec {
        flex-direction: column;
        align-items: flex-start;
    }

    .cbpsrgt {
        width: 100%;
    }

    .sort-wrap {
        width: 100%;
    }

    .sort-select {
        flex: 1;
        width: 100%;
    }
}

.listsec1 {
    padding-bottom: 50px;
}

.lisecmn {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.listlft {
    width: 22%;
    border: 1px solid #D9E3EB;
}

.listlft-mn {
    padding: 0 20px;
}

.listlft-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #1A5E9D;
}

.listlft-head h4 {
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: 19px;
}

.listlft-head a {
    color: #00D2D6;
}

.listlft-delivery {
    padding: 20px 0 10px;
    border-bottom: 1px solid #D9E3EB;
}

.listlft-Concern {
    padding: 20px 0;
    border-bottom: 1px solid #D9E3EB;
}

.listlft-form {
    padding: 20px 0;
}

.listlft-form .brand-chk-list {
    max-height: none;
}

.listrgt {
    width: 76%;
}

.listprescri {
    width: 100%;
}

.listrgt ul {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.listrgt ul li {
    width: 23.44%;
}

.listprescri ul li {
    width: 18.74%
}
.listrgt ul h5{text-transform:uppercase;font-size: 20px;}

.prescri-info {
    border: 1px solid #5D7388;
    padding: 10px 10px 10px 40px;
    font-size: 15px;
    position: relative;
    color: #5D7388;
    margin-bottom: 5px;
}

.prescri-info img {
    position: absolute;
    top: 13px;
    left: 18px;
    width: 10px;
}

/* ===== Concern Tag Checkboxes ===== */
.listlft-Concern h4,
.listlft-delivery h4,
.listlft-form h4 {
    font-size: 19px;
    font-weight: 700;
    color: #5D7388;
    margin: 0 0 12px;
}

.listlft-Concern .price-onsale {
    font-size: 17px;
}

.concern-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.concern-tag {
    display: block;
    cursor: pointer;
    user-select: none;
}

.concern-tag input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.concern-tag span {
    display: block;
    padding: 9px 12px;
    border: 1.5px solid #D9E3EB;
    border-radius: 0px;
    font-size: 15px;
    color: #5D7388;
    font-family: inherit;
    font-weight: 500;
    background: #fff;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
    text-align: left;
    line-height: 1.35;
}

.concern-tag:hover span {
    border-color: #1A5E9D;
    color: #1A5E9D;
    background: #EDF3FA;
}

.concern-tag input[type="checkbox"]:checked+span {
    border-color: #1A5E9D;
    color: #1A5E9D;
    background: #EDF3FA;
    font-weight: 600;
}

/* ===== Mobile Filter Slider ===== */
.mobile-filter-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    transition: visibility 0.3s;
}

.mobile-filter-slider.open {
    visibility: visible;
}

.mfs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-filter-slider.open .mfs-overlay {
    opacity: 1;
}

.mfs-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-filter-slider.open .mfs-panel {
    transform: translateX(0);
}

.mfs-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #EDF1F5;
}

.mfs-header h4 {
    margin: 0;
    font-size: 20px;
    color: #1A5E9D;
    font-weight: 700;
}

.mfs-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #5D7388;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.mfs-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.mfs-footer {
    padding: 20px;
    border-top: 1px solid #EDF1F5;
}

.mfs-apply-btn {
    width: 100%;
    padding: 14px;
    background: #00D2D6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

/* Accordion */
.mfs-acc-item {
    border-bottom: 1px solid #F5F7F9;
}

.mfs-acc-btn {
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: #3D5166;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.mfs-acc-btn.active {
    color: #1A5E9D;
    background: #F8FBFF;
}

.mfs-chevron {
    transition: transform 0.3s;
}

.mfs-acc-btn.active .mfs-chevron {
    transform: rotate(180deg);
}

.mfs-acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.mfs-acc-panel.open,
.mfs-acc-item.active .mfs-acc-panel {
    max-height: 2500px !important;
    overflow-y: auto !important;
}

[dir="rtl"] .mfs-panel,
html[lang="ar"] .mfs-panel {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

[dir="rtl"] .mobile-filter-slider.open .mfs-panel,
html[lang="ar"] .mobile-filter-slider.open .mfs-panel {
    transform: translateX(0);
}

/* Override existing drop styles inside panel */
.mfs-acc-panel .cat-filter-drop {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 10px 20px 20px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.mfs-acc-panel .sort-wrap {
    padding: 15px 20px 25px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.mfs-acc-panel .sort-select-wrap {
    width: 100%;
}

.mfs-acc-panel .sort-select {
    width: 100%;
    flex: none;
}

@media (min-width: 993px) and (max-width: 1200px) {
    .listprescri ul li {
        width: 23.4%;
    }
}

@media (max-width: 1024px) {
    .listlft {
        display: none;
    }

    .listrgt {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .listlft {
        display: none;
    }

    .listrgt {
        width: 100%;
    }

    .listrgt ul {
        gap: 15px;
    }

    .listrgt ul li {
        width: 31.9%;
    }
}

@media (max-width: 767px) {
    .listsec1 {
        padding-bottom: 50px;
    }

    .cbps-sec {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 15px;
    }

    .cbpslft,
    .cbpsrgt {
        display: none !important;
    }

    .mobile-filter-trigger {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        background: #1A5E9D;
        color: #fff;
        border: none;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        border-radius: 4px;
        font-family: inherit;
        width: 100%;
        justify-content: center;
    }

    .lisecmn {
        margin-top: 25px;
    }

    .listlft {
        display: none;
    }

    .listrgt {
        width: 100%;
    }

    .listrgt ul {
        gap: 10px;
    }

    .listrgt ul li {
        width: 48.5%;
    }

    .mfs-acc-panel {
        padding: 0 20px;
    }

    .listofrbx {
        width: 75px;
        height: 35px;
        font-size: 17px;
    }

    .listofr {
        gap: 10px;
    }

    .proitem-img img {
        height: 140px;
    }
}

/* ===== Active Pagination Highlight Fix ===== */
[aria-current="page"] > span,
[aria-current="page"] > button,
[aria-current="page"] > a,
.pagination .active > span,
.pagination .active > a {
    background-color: #1A5E9D !important;
    color: #ffffff !important;
    border-color: #1A5E9D !important;
    font-weight: 700 !important;
    position: relative !important;
    z-index: 10 !important;
    box-shadow: 0 2px 6px rgba(26, 94, 157, 0.3) !important;
}

span[wire\:key^="paginator-page"] button:hover:not([aria-current="page"]),
span[wire\:key^="paginator-page"] a:hover:not([aria-current="page"]) {
    background-color: #EDF3FA !important;
    color: #1A5E9D !important;
    border-color: #1A5E9D !important;
}

span[aria-disabled="true"] > span {
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* ===== Common Loader CSS ===== */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}
.spinner-border span { display: none; }
@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 50;
}

.spinner-tracker {
    position: sticky;
    top: 50vh; 
    transform: translateY(-50%); 
    display: flex;
    justify-content: center;
    width: 100%;
}

.proitem-img img {
    transition: opacity 0.2s ease-in-out;
}

.grid-loading {
    opacity: 0.3 !important;
    pointer-events: none !important;
    filter: blur(1px) grayscale(20%);
    transition: opacity 0.2s ease, filter 0.2s ease;
}