.woocommerce-ordering { display: none !important; }

.medibyx-archive-hero {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .92)),
        radial-gradient(circle at top right, rgba(240, 144, 4, .18), transparent 34%);
    box-shadow: 0 22px 55px -36px rgba(15, 23, 42, .6);
}

.medibyx-catalog-toolbar,
.medibyx-filter-card {
    box-shadow: 0 18px 45px -34px rgba(15, 23, 42, .45);
}

.medibyx-sort-menu {
    box-shadow: 0 22px 45px -26px rgba(15, 23, 42, .4);
}

.medibyx-sort-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.medibyx-hero-pill,
.medibyx-active-filter-chip {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .12);
}

#sidebar-filter .widget { margin-bottom: 2.5rem; }
#sidebar-filter .widget:last-child { margin-bottom: 0; }
#sidebar-filter select { min-height: 42px; }
#sidebar-filter .wc-block-product-filters__open-overlay { display: none !important; }
#sidebar-filter .wc-block-product-filters__overlay {
    display: block !important;
    position: static !important;
    background: transparent !important;
}

#sidebar-filter h2.widgettitle,
#sidebar-filter h3.widget-title,
#sidebar-filter .wp-block-heading {
    font-size: 11px !important;
    font-weight: 900 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    margin-bottom: 1.25rem !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

#sidebar-filter input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    margin-right: 10px;
}

#sidebar-filter input[type="checkbox"]:checked {
    background-color: #F09004;
    border-color: #F09004;
}

#sidebar-filter input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.medibyx-pagination nav.woocommerce-pagination { border: none; padding: 0; }
.medibyx-pagination ul.page-numbers {
    display: inline-flex !important;
    gap: 8px !important;
    border: none !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.medibyx-pagination ul.page-numbers li {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.medibyx-pagination ul.page-numbers li a,
.medibyx-pagination ul.page-numbers li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 12px !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}
.medibyx-pagination ul.page-numbers li a:hover {
    background: #fff7ed !important;
    border-color: #F09004 !important;
    color: #F09004 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(240, 144, 4, 0.15) !important;
}
.medibyx-pagination ul.page-numbers li span.current {
    background: #F09004 !important;
    border-color: #F09004 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(240, 144, 4, 0.25) !important;
}
.medibyx-pagination ul.page-numbers li span.dots {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}
.medibyx-pagination .prev,
.medibyx-pagination .next { font-size: 18px !important; }

@media (max-width: 1023px) {
    .mobile-filter-wrapper {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-filter-wrapper.is-open {
        grid-template-rows: 1fr;
    }

    .mobile-filter-inner { overflow: hidden; }
}

@media (max-width: 767px) {
    .medibyx-archive-page {
        padding-top: 0.75rem !important;
        padding-bottom: 5rem !important;
    }

    .medibyx-archive-hero {
        padding: 1.25rem !important;
        border-radius: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .medibyx-archive-hero nav {
        margin-bottom: 0.875rem !important;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.125rem;
    }

    .medibyx-archive-hero h1 {
        font-size: 1.75rem !important;
        line-height: 1.05 !important;
        margin-bottom: 0.75rem !important;
    }

    .medibyx-archive-hero p,
    .medibyx-archive-hero .text-sm {
        font-size: 0.8125rem !important;
        line-height: 1.55 !important;
    }

    .medibyx-hero-pill {
        font-size: 9px !important;
        padding: 0.3125rem 0.625rem !important;
        margin-bottom: 0.75rem !important;
    }

    .medibyx-active-filter-chip {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #mobile-filter-btn {
        min-height: 46px;
        padding: 0.875rem 1rem !important;
        margin-bottom: 0.75rem !important;
        border-radius: 1rem !important;
    }

    #sidebar-filter {
        padding: 1rem !important;
        border-radius: 1rem !important;
        margin-bottom: 1rem;
    }

    #sidebar-filter select,
    #sidebar-filter button[type="submit"] {
        min-height: 44px;
        font-size: 13px !important;
    }

    .medibyx-catalog-toolbar {
        padding: 0.75rem !important;
        border-radius: 1rem !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    .medibyx-catalog-toolbar > div {
        width: 100%;
    }

    #medibyx-sort-toggle {
        min-height: 44px;
        padding: 0.75rem 1rem !important;
    }

    #medibyx-sort-menu {
        width: 100% !important;
    }

    .medibyx-product-grid {
        gap: 0.75rem !important;
    }

    .medibyx-pagination {
        margin-top: 2.5rem !important;
        padding-top: 1.25rem !important;
        justify-content: flex-start !important;
        overflow-x: auto;
    }

    .medibyx-pagination ul.page-numbers {
        width: max-content;
    }
}

@media (max-width: 379px) {
    .medibyx-product-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}
