:root {
    --primary-color: #234454;
    --secondary-color: #7E98A3;
    --accent-color: #C72391;
    --bg-light: #FAFAFA;
    --border-color: #E2E4E7;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.collapse {
    visibility: inherit;
}

/* ---- 侧边栏 ---- */
.sidebar {
    width: 96px;
    flex-shrink: 0 !important; /* 禁止flex压缩，重点！ */
    min-width: 96px !important; /* 额外兜底，最小宽度锁死 */
    min-height: calc(100vh - 56px);
    background: #fff;
    border-right: 2px solid #e5e7eb;
    position: sticky;
    top: 56px;
    /*height: calc(100vh - 56px);*/
    overflow-y: auto;
    z-index: 100;
}

.sidebar .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    color: #7e98a3;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-radius: 4px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    color: #e91e8c;
    background-color: #e8f4fd;
    text-decoration: none;
}

.sidebar .nav-link.active {
    background-color: #e8f4fd;
    color: #2378c4;
    font-weight: 600;
}

.sidebar .nav-link svg {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
}

.sidebar .nav-link .nav-label {
    font-size: 11px;
    line-height: 1.2;
}

/* Sidebar Styles */
.container-fluid .sidebar {
    width: 280px;
    min-height: calc(100vh - 56px);
    background-color: #fff;
    border-right: 2px solid var(--border-color);
}

.container-fluid .sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.container-fluid .sidebar-section {
    padding: 12px 16px;
}
.filter-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.filter-item:hover {
    background-color: #f5f5f5;
}

.filter-item label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--primary-color);
}

/* Badge Styles */
.badge-preferred {
    background: linear-gradient(101.72deg, #07B0E8 19.58%, #E472BE 105.42%);
    color: #fff;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 12px;
    border-radius: 16px;
}

.badge-exclusive {
    background: linear-gradient(90deg, #C72391 0%, #FD385D 100%);
    color: #fff;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 12px;
    border-radius: 16px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 32px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Card Styles */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.3s;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card-img {
    background-size: cover;
    background-position: center;
    background-color: var(--bg-light);
    height: 200px;
    position: relative;
}

.product-card-body {
    padding: 16px;
}

.product-brand {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--secondary-color);
}

.product-model {
    font-size: 18px;
    font-weight: 400;
    color: var(--primary-color);
}

.product-category {
    font-size: 14px;
    color: var(--primary-color);
}

.product-meta {
    font-size: 14px;
    color: #979B9F;
}

/* Header Styles */
.page-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 10px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.result-count {
    font-size: 14px;
    color: var(--secondary-color);
}

/* Sort & View Controls */
.view-controls {
    background: #fff;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-color);
}

.sort-select {
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    color: var(--primary-color);
}

.view-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    cursor: pointer;
}

.view-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
}

.footer a {
    color: var(--secondary-color);
    font-size: 14px;
}



/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        width: 100%;
        min-height: auto;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
    }

}

@media (max-width: 1120px) {
    .col-lg-9 {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .sidebar {
        display: none;
    }
}


/* Custom checkbox */
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Accordion filter */
.filter-accordion .card {
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
}

.filter-accordion .card-header {
    background: transparent;
    padding: 12px 16px;
    border-bottom: none;
}

.filter-accordion .card-header .btn-link {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-accordion .card-header .btn-link:hover {
    text-decoration: none;
}

.filter-accordion .card-body {
    padding: 0 16px 12px;
}

/* Year range slider */
.year-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.year-range select {
    flex: 1;
    font-size: 14px;
}

/* noUiSlider custom style */
.year-slider {
    margin: 50px 8px 8px;
}

.year-slider .noUi-target {
    background: #E2E4E7;
    border: none;
    border-radius: 4px;
    height: 6px;
    box-shadow: none;
}

.year-slider .noUi-connect {
    background: var(--primary-color);
}

.year-slider .noUi-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary-color);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    cursor: pointer;
    right: -10px;
    top: -7px;
}

.year-slider .noUi-handle::before,
.year-slider .noUi-handle::after {
    display: none;
}

.year-slider .noUi-handle:hover {
    border-color: var(--accent-color);
}

.year-slider .noUi-tooltip {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
}

.year-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 11px;
    color: var(--secondary-color);
}

/* Verified badge */
.verified-badge {
    color: #4CAF50;
    font-size: 12px;
}

/* Price styling */
.price-text {
    font-weight: 600;
    color: var(--primary-color);
}

/* Category Search */
.manufacturers-search input,.category-search input {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 13px;
    padding: 6px 12px;
}

.manufacturers-search input:focus,.category-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.15rem rgba(35, 68, 84, 0.1);
}

/* Category Filters List */
.category-filters-list {
    max-height: 300px;
    overflow-y: auto;
}

.bigCategory{
    padding: 8px 16px;
}

.twoCategory{
    box-sizing: border-box;
    text-align: left;
    padding: 8px 16px 8px 32px;
}

.manufacturersSearch,.categorySearch{
    font: inherit;
    letter-spacing: inherit;
    color: currentcolor;
    box-sizing: content-box;
    background: none;
    height: 35px;
    margin: 0px;
    -webkit-tap-highlight-color: transparent;
    display: block;
    min-width: 0px;
    width:90%;
    animation-name: mui-auto-fill-cancel;
    animation-duration: 10ms;
    padding: 8.5px 14px;
}

.category-item {
    border-radius: 4px;
    transition: background-color 0.15s;
}

.category-item:hover {
    background-color: #f5f5f5;
}

.category-item.active {
    background-color: #e8f4fd;
}

.category-item .custom-control-label {
    font-size: 14px;
    color: var(--primary-color);
    cursor: pointer;
    width: 100%;
    padding: 2px 0;
}

.category-item .custom-control-input:checked ~ .custom-control-label {
    font-weight: 600;
    color: var(--primary-color);
}

.list-empty{
    display: flex;
    flex-direction: column;
    color: rgb(35, 68, 84);
    width:100%;
}
.list-empty > :not(style):not(style) {
    margin: 0px;
}
.list-empty > :not(style) ~ :not(style) {
    margin-top: 24px;
}
.list-empty .foot{
    display: flex;
    flex-direction: column;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
}
.list-empty .foot p{
    margin: 0px;
    letter-spacing: 0.00938em;
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    text-align: center;
}
.sendPurchase{
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: 0px;
    margin: 0px;
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
    appearance: none;
    text-decoration: none;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.75;
    letter-spacing: 0.02857em;
    padding: 12px 16px;
    border: 2px rgb(199, 35, 145);
    border-radius: 4px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    --variant-textColor: #C72391;
    --variant-outlinedColor: #C72391;
    --variant-outlinedBorder: rgba(199, 35, 145, 0.5);
    --variant-containedColor: #fff;
    --variant-containedBg: #C72391;
    box-shadow: none;
    min-width: 0px;
    text-transform: none;
    color: rgb(255, 255, 255);
    background-color: rgb(199, 35, 145);
    width: fit-content;
}
.no-matching{
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}
.no-matching h5{
    margin: 0px;
    letter-spacing: 0em;
    font-family: Inter, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    text-align: center;
}
.no-matching p{
    margin: 0px;
    letter-spacing: 0.00938em;
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    text-align: center;
}
.empty-img{
    display: flex;
    flex-direction: column;
}