/* Page title */
.lab-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #002633;
    margin-top: 1px;
}

/* Breadcrumb styling */
.lab-breadcrumb {
    font-size: 0.95rem;
}

.lab-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    color: #6c757d;
    font-weight: normal;
}

.lab-breadcrumb .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.lab-breadcrumb .breadcrumb-item a:hover {
    color: #007bff;
    text-decoration: underline;
}

.lab-breadcrumb .breadcrumb-item.active {
    color: #212529;
}

/* Three column layout container */
.lab-header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 2rem;
    text-align: center;
}

.lab-title-section {
    flex: 0 0 auto;
    min-width: 0;
}

.lab-search-section {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.lab-sort-section {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

/* Search and cart section */
.lab-search-input {
    height: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    border-right: none;
    background: #fff !important;
}

.lab-search-input:focus {
    border-color: #007bff;
    box-shadow: none;
    outline: none;
}

.lab-search-btn {
    border-radius: 4px;
    background-color: #00A8E0;
    border: 2px solid #00A8E0;
    color: white;
    height: 36px;
    padding: 0 20px !important;
    margin: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.lab-search-btn:hover {
    background-color: #007bff;
    color: white;
}

/* Search container styling */
.lab-search-container {
    display: flex;
    border-radius: 8px;
    align-items: center;
    width: 85%;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
    height: 40px;
}

.lab-sort-select {
    width: 180px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    height: 40px;
    font-size: 14px;
    cursor: pointer;
}

.lab-sort-label {
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.lab-cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #FFF;
    box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.16), 0 1px 6px 0 rgba(0, 0, 0, 0.23);
}

.lab-cart-btn:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.lab-cart-badge {
    font-size: 0.6rem;
    right: 4px;
    background-color: #0F93FE;
    border-radius: 50%;
    top: 4px;
    color: #fff;
    width: 15px;
    height: 15px;
}

/* Lab Filters Specific Styles */
.lab-filters-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lab-filters-title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.lab-clear-btn {
    color: #007bff;
    font-size: 14px;
    font-weight: 500;
}

.lab-clear-btn:hover {
    color: #0056b3;
    text-decoration: underline !important;
}

.lab-filter-group {
    border-top: 1px solid #e9ecef;
    padding-top: 16px;
}

.lab-filter-group-title {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.lab-expand-icon {
    color: #6c757d;
    font-size: 12px;
}

.lab-filter-options {
    margin-top: 16px;
}

.lab-filter-option {
    margin-bottom: 12px !important;
    align-items: flex-start !important;
}

.lab-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 3px !important;
    margin-right: 0 !important;
    flex-shrink: 0;
    border: 2px solid #dee2e6;
    border-radius: 3px;
    cursor: pointer;
}

.lab-checkbox:checked {
    background-color: #007bff !important;
    border-color: #007bff !important;

}

.dropdown-icon {
    cursor: pointer;
}

.lab-filter-label {
    font-size: 14px;
    color: #333;
    padding-left: 4px !important;
    cursor: pointer;
    word-wrap: break-word;
    hyphens: auto;
}

.lab-filter-label:hover {
    color: #007bff;
}

.form-check-input:checked,
.form-check-input:checked,
.form-check-input:checked {
    background-color: #007bff !important;
    border-color: #007bff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

/* Ensure proper alignment for multi-line text */
.form-check {
    padding-left: 0 !important;
}

.form-check-input {
    margin-left: 0 !important;
}

/* Remove default Bootstrap margins that might interfere */
.form-check .form-check-input {
    float: none;
    margin-left: 0;
}

.form-check .form-check-label {
    padding-left: 0;
}

/* Popular checkups section */
.lab-popular-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0F93FE;
}

.lab-packages-filter {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    justify-content: space-between;
    overflow: hidden;
    border: none;
    transition: all 0.3s ease;
    padding: 15px;
    user-select: none;
}

.scrollable-filter {
    max-height: 175px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Thin light scrollbar styling */
.scrollable-filter::-webkit-scrollbar {
    width: 4px;
}

.scrollable-filter::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.scrollable-filter::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.scrollable-filter::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


.lab-filter-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.lab-filter-container::-webkit-scrollbar {
    display: none;
}

.lab-filter-btn {
    border: 1.5px solid #eae6e6;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}


.lab-filter-btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.lab-filter-btn.inactive {
    background-color: transparent;
    border-color: #eae6e6;
    color: #747474;
}

/* Lab cards */
.lab-card {
    border-radius: 8px;
    background: #FFF;
    overflow: hidden;
    border: none;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-body {
    max-height: 255px;
}

.lab-card-badge {
    background-color: #0F93FE;
    color: white;
    padding: 6px 12px;
    border-bottom-left-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    top: 0px;
    right: 0px;
    z-index: 10;
}

.lab-card-title {
    color: #002633;
    font-size: 14px;
    font-weight: 600;
    padding-top: 18px;
}

.lab-filters-header {
    color: #0F93FE;
    font-size: 18px;
    font-weight: 600;

}

.lab-card-description {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: #6c757d;
}

.lab-card-read-more {
    color: #0F93FE;
    text-decoration: none;
    font-weight: 500;
}

.lab-card-read-more:hover {
    color: #0056b3;
    text-decoration: underline;
}

.lab-card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #212529;
}

.lab-card-original-price {
    color: #6c757d;
    text-decoration: line-through;
    font-size: 0.9rem;
    opacity: 0.6;
}

.lab-card-discount {
    color: #08C;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #08c;
}

.text-muted {
    font-size: 13px;
    font-weight: 400;
}

.lab-add-to-cart-btn,
.lab-go-to-cart-btn {
    border-radius: 8px;
    background: #00A8E0;
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

.lab-add-to-cart-btn:hover,
.lab-go-to-cart-btn:hover {
    background: #068dfc;
    color: #fff;
}


/* Pagination */
.lab-pagination .page-link {
    background: transparent;
    margin: 0 5px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.25px solid #F1F1F1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #212529;
    cursor: pointer;
    font-size: 13px;
}

.lab-pagination .page-link:hover {
    background-color: #f8f9fa;
    color: #212529;
}

.lab-pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.lab-pagination .page-item.disabled .page-link {
    color: #6c757d;
    background: transparent;

}

/* Icons */
.lab-icon {
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 992px) {
    .lab-header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .lab-title-section,
    .lab-search-section,
    .lab-sort-section {
        flex: none;
        width: 100%;
    }

    .lab-search-section {
        justify-content: flex-start;
    }

    .lab-sort-section {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .lab-page-title {
        font-size: 1.2rem;
    }

    .lab-search-input {
        width: 100%;
    }
s
    .lab-sort-select {
        width: 100%;
    }

    .lab-filters-container {
        margin-bottom: 20px;
    }
    .lab-popular-title{
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .lab-filter-btn {
        min-width: 80px;
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .lab-search-input {
        width: 100%;
    }

    .lab-sort-select {
        width: 100%;
        margin-top: 10px;
    }
}

.card-link {
    color: inherit;
    display: block;
}

.card-link:hover {
    color: inherit;
    text-decoration: none;
}

.lab-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover .lab-card {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Mobile Filter/Sort Buttons */
.mobile-filter-sort-btns {
    display: none;
}

.filter-trigger-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #002633;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-trigger-btn:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.filter-trigger-btn svg {
    flex-shrink: 0;
}

/* Show mobile buttons only on mobile/tablet */
@media (max-width: 991px) {

    .mobile-filter-sort-btns,
    .d-flex.d-lg-none.align-items-center.gap-2.mb-3 {
        display: flex !important;
        gap: 10px;
        margin-bottom: 20px;
    }

    .filter-trigger-btn {
        display: flex !important;
        flex: 1;
    }
}

/* Hide mobile buttons on desktop */
@media (min-width: 992px) {

    .mobile-filter-sort-btns,
    .d-flex.d-lg-none.align-items-center.gap-2.mb-3 {
        display: none !important;
    }

    .filter-trigger-btn {
        display: none !important;
    }
}

/* Desktop-only elements */
@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .desktop-only {
        display: block !important;
    }
}


/* ===== MOBILE FILTER MODAL - UNIQUE STYLES ONLY ===== */

/* Mobile Filter Modal Overlay */
.filter-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-modal-overlay.show {
    display: block;
    opacity: 1;
}

/* Mobile Filter Sidebar - Slides from RIGHT, Full Width */
.filter-sidebar-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
}

.filter-sidebar-mobile.show {
    right: 0;
}

/* Filter Header */
.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.filter-header h5 {
    font-size: 18px;
    font-weight: 600;
    color: #002633;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close-filter {
    background: none;
    border: none;
    font-size: 34px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Filter Body */
.filter-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Mobile Filter Sections - Reuse desktop .lab-filter-group styles */


.mobile-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s ease;

}

.mobile-filter-header:hover {
    background: #f8f9fa;
}

.mobile-filter-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.mobile-filter-toggle {
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.mobile-filter-header.active .mobile-filter-toggle {
    transform: rotate(180deg);
}

/* Filter Options - Collapsible */
.mobile-filter-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    background: #fff;
}

.mobile-filter-options.show {
    max-height: 400px;
    padding: 16px 20px;
    overflow-y: auto;
}

/* Mobile Filter Option - Uses same styles as desktop .lab-filter-option */
.mobile-filter-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px !important;
    cursor: pointer;
}

.mobile-filter-option:last-child {
    margin-bottom: 0;
}



/* Reuse desktop label styles - .lab-filter-label */
.mobile-filter-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
    user-select: none;
    padding-left: 4px !important;
    word-wrap: break-word;
    hyphens: auto;
}

.mobile-filter-label:hover {
    color: #007bff;
}

/* Filter Footer */
.filter-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.btn-clear-filters,
.btn-apply-filters {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-filters {
    background: #fff;
    color: #002633;
}

.btn-clear-filters:hover {
    background: #f8f9fa;
    border-color: #002633;
}

.btn-apply-filters {
    background: #007bff;
    color: #fff;
}

.btn-apply-filters:hover {
    background: #0056b3;
}

/* Custom Scrollbar */
.filter-body::-webkit-scrollbar,
.mobile-filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-body::-webkit-scrollbar-track,
.mobile-filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.filter-body::-webkit-scrollbar-thumb,
.mobile-filter-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.filter-body::-webkit-scrollbar-thumb:hover,
.mobile-filter-options::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== SORT MODAL STYLES ===== */

/* Sort Modal Overlay */
.sort-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sort-modal-overlay.show {
    display: block;
    opacity: 1;
}

/* Sort Modal Content - Bottom Sheet */
.sort-modal-content {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 9999;
    transition: bottom 0.3s ease;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
}

.sort-modal-content.show {
    bottom: 0;
}

/* Sort Header */
.sort-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.sort-header h5 {
    font-size: 18px;
    font-weight: 600;
    color: #002633;
    margin: 0;
}

.btn-close-sort {
    background: none;
    border: none;
    font-size: 32px;
    color: #002633;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sort Body */
.sort-body {
    padding: 8px 0;
    overflow-y: auto;
}

/* Sort Options */
.sort-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sort-option:last-child {
    border-bottom: none;
}

.sort-option:hover {
    background: #f8f9fa;
}

.sort-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    margin-right: 14px;
    cursor: pointer;
    accent-color: #007bff;
}

.sort-option label {
    font-size: 15px;
    color: #333;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.sort-option.active label {
    color: #007bff;
    font-weight: 600;
}

input[type=radio]:before {
  width: 15px !important;
  height: 15px !important;
  position: absolute !important;
  content: " " !important;
  border: 1.25px solid #0C0C0C !important;
  border-radius: 4px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}


input[type=radio]:checked::before {
  background-color: #00A8E0 !important;
  border: 1px solid #00A8E0 !important;
  border-radius: 4px !important;
  width: 15px !important;
  height: 15px !important;
  content: "\2713" !important;
  color: #fff !important;
  font-size: 12px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 0px #fff !important
}

/* Responsive - Mobile Only */
@media (max-width: 576px) {
    .filter-header,
    .filter-footer {
        padding: 10px;
    }
    
    .mobile-filter-header {
        padding: 14px 16px;
    }
    
    .mobile-filter-options.show {
        padding: 12px 16px;
    }
}

/* Hide on Desktop */
@media (min-width: 992px) {
    .filter-modal-overlay,
    .filter-sidebar-mobile,
    .sort-modal-overlay,
    .sort-modal-content {
        display: none !important;
    }
}


