/* ================================================================
   medical-equipment.css  —  Medical Equipment Overhaul
   Theme: DM Sans + Roboto
   ================================================================ */

.meq-main-section {
    padding: 60px 0 90px;
    background: #f9f8fc;
}

/* ── 1. Sidebar Filter ────────────────────────────────────────── */
.meq-filter-sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(52, 50, 72, 0.06);
    position: sticky;
    top: 100px;
}

.meq-filter-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #343248;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.meq-filter-group {
    margin-bottom: 25px;
}

.meq-label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #343248;
    margin-bottom: 12px;
}

/* Radios and Checkboxes */
.meq-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meq-radio,
.meq-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #6a6a6a;
    transition: color 0.2s ease;
}

.meq-radio input,
.meq-checkbox input {
    accent-color: var(--theme-color1);
    width: 16px;
    height: 16px;
}

.meq-radio:hover,
.meq-checkbox:hover {
    color: var(--theme-color1);
}

/* ── 2. Top Bar & Dropdown ───────────────────────────────────── */
.meq-top-bar {
    background: #fff;
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(52, 50, 72, 0.06);
    box-shadow: 0 4px 12px rgba(52, 50, 72, 0.03);
}

.meq-category-select {
    border-radius: 10px;
    border-color: #eee;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px;
    min-width: 220px;
    cursor: pointer;
}

.meq-category-select:focus {
    border-color: var(--theme-color1);
    box-shadow: 0 0 0 3px rgba(var(--theme-color1-rgb), 0.1);
}

.meq-category-select option {
    padding: 10px;
}

/* Enforce native scrolling */
.meq-category-select {
    overflow-y: auto;
    max-height: 250px;
}

.meq-category-select::-webkit-scrollbar {
    width: 6px;
}

.meq-category-select::-webkit-scrollbar-thumb {
    background-color: var(--theme-color1);
    border-radius: 4px;
}

.meq-results-count {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #9ca3af;
}

/* ── 3. Product Grid & Cards ─────────────────────────────────── */
.meq-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.meq-product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(52, 50, 72, 0.06);
    box-shadow: 0 4px 15px rgba(52, 50, 72, 0.05);
    transition: all 0.3s cubic-bezier(.22, 1, .36, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

.meq-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(var(--theme-color1-rgb), 0.12);
}

.meq-product-card:hover .meq-product-card__name {
    color: var(--theme-color1);
}

/* Image Wrap */
.meq-product-card__img-wrap {
    position: relative;
    padding: 15px;
    background: #fdfdfd;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meq-product-card__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Badge */
.meq-product-card__service-type {
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 50px;
    color: #fff;
}

.meq-product-card__service-type.sale {
    background: #3b82f6;
}

.meq-product-card__service-type.rental {
    background: #8b5cf6;
}

.meq-product-card__service-type.both {
    background: var(--theme-color1);
}

/* Body */
.meq-product-card__body {
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.meq-product-card__name {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    /* Increased from 15px */
    font-weight: 700;
    color: #343248;
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.meq-product-card__supplier {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    /* Increased from 12px */
    font-weight: 500;
    color: #6a6a6a;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.meq-product-card__supplier i {
    font-size: 1.25rem !important;
    /* Made icon bigger */
    margin-right: 8px !important;
}

/* Pricing */
.meq-product-card__pricing {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

/* --- jQuery UI Slider Customization --- */
.meq-slider-container {
    padding-top: 10px;
}

.ui-slider {
    height: 6px;
    background: #f0f0f0;
    border: none;
    border-radius: 10px;
}

.ui-slider-range {
    background: var(--theme-color1);
    border-radius: 10px;
}

.ui-slider-handle {
    width: 18px !important;
    height: 18px !important;
    background: #fff !important;
    border: 2px solid var(--theme-color1) !important;
    border-radius: 50% !important;
    top: -6px !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.ui-slider-handle:hover,
.ui-slider-handle.ui-state-active {
    transform: scale(1.1);
    background: var(--theme-color1) !important;
}

.meq-slider-values {
    font-weight: 600;
    color: #444;
}

.meq-radio span,
.meq-checkbox span {
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.meq-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.meq-price small {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.7;
}

.meq-price--sale {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.meq-price--rent {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

/* Stock */
.meq-stock {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.meq-stock--available {
    color: #10b981;
}

.meq-stock--unavailable {
    color: #ef4444;
}

/* ── 4. Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
    .meq-filter-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .meq-product-grid {
        grid-template-columns: 1fr;
    }

    .meq-top-bar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch !important;
        text-align: center;
    }
}