body{
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Make navbar search visible on search results page */
#nav-search-part-form {
  display: block !important;
}

#navbar-search-form {
  display: flex !important;
  visibility: visible !important;
}

.extended-search-container {
  display: flex !important;
  visibility: visible !important;
}

#navbar-search {
  display: flex !important;
  visibility: visible !important;
}

/* Search Results and Filter Bar */
.search-header-container {
  background: transparent !important;
  padding: 0 !important;
  margin: 20px 20px 0 20px !important;
  border: none !important;
  box-shadow: none !important;
}

/* Adjust margin when logged in (s-navbar is the logged-in navbar) */
body:has(#s-navbar) .search-header-container {
  margin-top: 70px !important;
}

/* Adjust when sidebar is visible - move to the right */
body.sidebar-visible .search-header-container {
  margin-left: 300px !important;
  transition: margin-left 0.3s ease;
}

/* Adjust footer when sidebar is visible */
body.sidebar-visible #sticky-footer {
  margin-left: 280px !important;
  transition: margin-left 0.3s ease;
}

.search-results-filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 0;
  background: transparent;
}

.search-results-info {
  flex: 1;
}

.results-count {
  font-size: 20px;
  color: #666;
  font-weight: 600;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.results-count #matchingproductsvalue {
  font-weight: 600;

}

.filter-toggle-section {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  vertical-align: middle;
  margin-bottom: -10px;
}

.filter-toggle-section .filter-icon {
  cursor: pointer;
  width: 60px;
  /* height: 23px; */
  display: block;
  vertical-align: middle;
  transition: all 0.2s ease;
}

.filter-toggle-section .filter-icon:hover {
  opacity: 0.8;
}

#results, #paginator{
    margin: 20px;
}

/* Ensure results don't get cut off when sidebar is visible */
body.sidebar-visible #results,
body.sidebar-visible #paginator {
    margin-left: 20px;
    margin-right: 20px;
    width: calc(100% - 40px);
    max-width: none;
    overflow-x: hidden;
}

.table{
    border: 1px solid #dcdcdc;
    table-layout: auto;
}

.part-result2 a{
  font-weight: 600;

}

.table tr:nth-child(even) {
    background-color: #fbfbfb;
}

.table th{
  padding:15px 6px 15px 10px;
  background: #f7f7f7;
}
.table td{
  padding: 8px 6px 8px 10px;
  vertical-align:middle;
}

/* Ensure table cells wrap text properly */
.table td {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

table.table thead tr th span{
  font-size: 10px;
}
.current-page{
    background-color: rgb(255, 138, 5);
    text-align: center;
    border: 1px solid rgb(255, 138, 5);
    color: #fff;
    font-weight: 600;
    padding: 5px 18px;
}
.pagination a{
    float: none;
    padding: 5px 18px;
    line-height: 34px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-left-width: 0;
    -webkit-transition:all .2s ease-in-out;
    -moz-transition:all .2s ease-in-out;
    -o-transition:all .2s ease-in-out;
    -ms-transition:all .2s ease-in-out;
    transition:all .2s ease-in-out;
}

.pagination a:first-child{
   border-left-width: 1px;
}
.preview_placeholder{
    width:100px;
    height:100px;
    text-align: center;
    font-size: 14px;
    color:#777;
    background: #ddd;
}
    .preview_placeholder p{
        padding: 30px 10px 25px 10px;

    }
    .preview_placeholder2{
        width:75px;
        height:75px;
        text-align: center;
        font-size: 34px;
        color:#ddd;
        line-height: 75px;
        background: none;
    }

#matchingproducts{
  text-align: right;
  margin-right: 20px;
  padding-right: 10px;
}

#matchingproducts p{
  line-height: 15px;
  font-weight: 400;
  font-size: 12px;
  color:#999;
  margin-right: 4px;
  font-family: "Open Sans", Sans-serif;
}

/* Ensure products count doesn't get cut off when sidebar is visible */
body.sidebar-visible #matchingproducts {
  margin-right: 40px;
  padding-right: 20px;
}

#matchingproducts p#matchingproductsvalue{
    font-size: 35px;
    font-weight: 300;
    font-family: "Open Sans", Sans-serif;
    color: #555;
    line-height: 42px;
    margin-bottom: 0;
    margin-right: 0px;
}
.btn-sort{
    padding: 0px 10px;
    height:30px;
    line-height: 30px;
    border-radius: 30px;
    border:1px solid #0088cc;
}

.search-header{
  padding: 20px;
  margin: 0 20px 20px 20px;
  background-color: #f3f3f3 !important;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  border-radius: 0px;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  border-radius: 0;
  /*border: 1px solid #dcdcdc;*/
  /*height: 80px;*/
}

.search-tabs{
  margin: 20px 20px 0px 20px;
  display: table;
  /*overflow: hidden;*/
}

.search-tab{
  margin-inline: 1px;
  padding: 10px 20px;
  padding-bottom: 9px;
  padding-top: 13px;
  float: left;
  background: #f7f7f7;
  font-weight: 400;
  cursor: pointer;
}

.search-tab-link{
  padding-inline: 20px;
  padding-bottom: 9px;
  padding-top: 13px;
  float: left;
  background: #F7F7F7;
  cursor: pointer;
  text-decoration: none!important;
  color: #333!important;
}

.search-tab.active{
  background: #f3f3f3;
  color: #FF761A;
  border-bottom: 2px solid #FF761A;
  /*border: 1px solid #dcdcdc;*/
  /* border-bottom: 0; */
  position: relative;
  /* background: #f3f3f3; */
  top: 0px;
  z-index: 10;
  padding-bottom: 10px;
  padding-top: 11px;
  font-weight:600;
}

.package-example{
    margin-left: 0 !important;
}

.package-example p{
    font-size: 14px;
}

.search-tab span{
  font-weight: 400;
}

.no_ml{
  margin-left: 0 !important;
}

#search-col{
  width: 415px !important;
  float: left;
}
.searchForm{
  display:block;
  margin:0;
}

.inpt-search{
    width:100%;
    height: 30px !important;
}
#filter-options *{
    float: left;
    /*margin-right: 10px; */
}
#filter-options span{
  margin-right: 10px;
}

.searchForm label{
  display: inline !important;
  margin-right: 10px;
  margin-left: 5px;
}

.btn-search{
  height: 40px;
  display: block;
  padding: 0 30px;
  border-radius: 3px;
  background-color: #fd772f;
  color: #fff;
  border:0;
  margin-bottom: 10px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
}
  .btn-search:hover{
    background-color: #f15d13;
  }

.result-col{
    float: left;
    width: 100%;
    text-align:center;
    margin-bottom: 20px;
}


ul.sort-by {
  list-style: none;
  float: left;
  margin:0;
  margin-left: 20px;
}

.sort-by *{
  float: left;
}

.sort-by i{
  float: initial
}
.sort-by li{
  color: black;
  background: #fff;
  font-size: 14px;
  color: #545454;
  line-height: 30px;
  height:30px;
  margin-right: 10px;
  font-size:12px;
}

#sort-by-label{
  box-shadow: none;
  background-color: transparent;
  line-height:30px;
  margin-left: 10px;
  /*font-weight: bold;*/
  font-size:12px;
}
.sort-by .active a{
  background-color: #0088cc;
  border-radius: 30px;
  overflow: hidden;
}
.sort-by a:hover{
  text-decoration: none;
  color:#fff;
  background-color: #0088cc;

}
.sort-by .active a{
  color: white;
}
#sorter{
  min-width: 400px;
}

.search_request_button{
  text-decoration: none;
  color: #FF671A;
  padding: 5px 10px;
  border: 1px solid #FF671A;
  font-size:12px;
  border-radius: 30px;
}
.search_request_button:hover{
  text-decoration: none !important;
  color: #fff;
  background: #FF671A;
}
.search_request_button i{
  margin-right: 3px;
}
.part-result img.data-icon{
  margin-left: 4px;
  margin-right: 4px;
  margin-bottom: 5px;
}

.part-result img.data-icon:last-child{
  margin-left:6px;
}
.part-result img.data-icon:first-child{
  margin-left: 6px;
  margin-right: 6px;
}

.part-result img.part-image{
  margin-left: auto;
  margin-right: auto;
  display: block;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: transform .2s;
}

.part-result img.part-image:hover {
  transform: scale(4);
  background: #fff;
}

@media (max-width: 1300px){

}

/* @media (max-width: 1200px){
  #matchingproducts{
    display: none;
  }
} */

@media (max-width: 900px){
  #sorter{
    display: none;
  }
}
.mobile_head_content{
  display: none;
}
.mobile_sponsor{
  display: none;
}
#matchingproducts #search-product{ 
display: none;
}
.div-banner-mobile{
  display: none!important;
}
@media (max-width:767px) {
  #inline_ad_template .row-fluid {
  display: block!important;
  }
  #inline_ad_template .row-fluid .inline_ad_template_col{
    width: 100%!important;
    text-align: center!important;
    border: 1px solid #eee!important
    }
  .conn_box {
    width: 120px!important;
    float: inherit!important;
    display: inline-block!important;
    margin-right: 0px!important;
    margin-bottom: 5px!important;
}
#inline_ad_template .inline_ad_template_col .ad_sponsored_icon {
  float: inherit!important;
  margin-right: 0px!important;
  margin-top: 0px!important;
}
#inline_ad_template .row-fluid .inline_ad_template_col .ad_link_button {
  margin-right: -6px!important;
  position: inherit!important;
}
.conn_box .img_div {
  width: 120px!important;
}
.conn_box .con_box_label {
  width: 120px!important;
}
.featured_content {
  text-align: center!important;
}
  .conn_title_sect {
    width: 100%!important;
    float: inherit!important;
  }
  .conn_title {
    font-size: 18px!important;
}
.conn_title br{
  display: none!important;
}
  .featured_buttons .stock_available_button{
    float: initial!important;
    margin: auto!important;
  }
  .tooltip.top{
    display: none!important;
  }
  .div-banner-mobile{
    display: flex!important;
    margin-top: 10px;
  }
  .modal {
    position: fixed!important;
  }
  .price-result p{
    margin-top: 8px!important;
    font-size: 17px!important;
  }
  .no_ml.autocomplete{
    display: flex!important;
  }
  .mobile-search-right{
    float: right!important;
  }
  #filter-options,h1.search_title{
    display: none;
  }
  #matchingproducts p{
    display: inline-block!important;
    font-size: 12px!important;
    font-weight: 600!important;
    margin: 0px!important;
    line-height: initial!important;
  }
  #matchingproducts #search-product{ 
    width: 53%!important;
    text-align: left!important;
    float: left!important;
  }
  .section-heading{
    width: max-content!important;
  }
  .search-filter-section{
    width: 100%!important;
  }
  .search-layout{
    flex-direction: column!important;
  }
  .left-sidebar{
    position: relative!important;
    width: 100%!important;
    top: auto!important;
    bottom: auto!important;
    height: auto!important;
    border-right: none!important;
    border-bottom: 1px solid #e0e0e0!important;
    display: none!important;
    margin-top: 0!important;
  }
  .sidebar-visible .left-sidebar{
    display: block!important;
  }
  .main-content{
    margin-left: 0!important;
    padding: 0 10px!important;
  }
  .sidebar-filter-container{
    width: 100%!important;
  }
  .filter-item{
    width: 100%!important;
  }
  .filter-header{
    padding: 12px 16px!important;
  }
  .filter-content{
    padding: 12px 16px!important;
  }
  .search-filters{
    overflow: auto;
  }
  .callout-banner .description-text{
    max-width: 100%!important;
  }
  .callout-banner .div-banner{
    display: none;
  }
  .div-banner,.div-banner-mobile{
    width: 100%!important;
    justify-content: left!important;
  }
  .table tr:nth-child(even){
    background: transparent!important;
  }
  #related-search-carousel{
    display: contents!important;
  }
  #related-search-carousel .title{
    margin-top: 75px;
  }
  .current-page {
    padding: 0px 14px;
  }
  .pagination a{
    padding: 0px 14px; 
  }
  .pagination *:nth-child(8) {
    display: inline-block;
    line-height: 18px;
    /* margin-left: inherit; */
  }
  /* .pagination *:nth-child(1) {
    margin-left: inherit;
  } */
  table.search-results-table, .search-results-table tbody,.search-results-table thead,.search-results-table tbody,.search-results-table th,.search-results-table td,.search-results-table tr {
    display: block!important;
    float:left!important;/* ie9 fix */
    width:100%!important;
    clear:both!important;
  }
  table.search-results-table{
    border: none!important;
    overflow: initial!important;
  }
  .search-results-table thead tr {
    position: absolute!important;
    top: -9999px!important;
    left: -9999px!important;
  }
  .search-results-table tr {
    border: 1px solid #ccc!important;
    margin-top: 30px;
  }
  .search-results-table td,.search-results-table th {
    height: fit-content!important;
    border: none!important;
  }
  .search-results-table td:before {
    float: left!important;
    width: 59%!important;
    padding: 0 0 0 1%!important;
    margin-left: -61%!important;
    font-weight: 600;
    font-size: 17px;
    color: black!important;
    text-align: left!important;
  }
  .search-results-table .manufacturer_mobile{
    padding-left: 8px!important;
    border-bottom: 1px solid #ccc!important;
  }
  .manufacturer_mobile_img{
    display: none;
  }
  .search-results-table td{
    text-align: left!important;
    padding-left:38%!important;
   -moz-box-sizing:border-box!important;
   -webkit-box-sizing:border-box!important;
    box-sizing:border-box!important; 
   }
   .avail_icon{
     text-align: left;
     margin: 0px!important;
   }
   .featured_img img {
    width: 150px;
  }
  .manuf_img img{
    margin:auto;
  }
  .title_container{
    display: inline-block;
    margin-left: 20px;
   }
  .title_container a{
    font-size: 18px;
    font-weight: 700;
  }

  .title_container span{
    font-size: 13px;
    font-weight: 700  
  }
  .featured_buttons_alt {
    text-align: center;
    margin-top: 15px;
    margin-right: 0px;
  }
  .featured_buttons{
    margin-bottom:0px;
  }
  .search-results-table .inline_ad_part .s-btn-small{
   margin-right: 0px!important;
    padding: 10px 30px!important;
  }
 .featured_buttons .s-btn-small{
  margin-right: 0px!important;
  padding: 10px 30px!important;
  }
  .search_title {
  text-align: center!important;
  }
 .featured_part{
  background: white;
  margin-bottom: 0px!important;
  border: 1px solid #ccc!important;
  text-align: center!important;
  padding: 8px 6px 8px 6px!important;
 }
 .search-results-table .inline_ad_template_container{
   margin-bottom: 0px!important;
 }
 .featured_data_icons{
   padding-right: 0px;
 }
  .inline_data_icons{
    padding-right: 0px;
  }
  .search-results-table td:nth-of-type(2) {display: none!important;}
  .search-results-table td:nth-of-type(3) {display: none!important;}
    /* td:nth-of-type(1) {display: none!important;} */
    .search-results-table .in-line_ad::before {
      display: none!important;
  }
  .search-results-table .in-line_ad{
    text-align: center!important;
  }
  .search-results-table .inline_ad_part .sponsored_indicator_wrapper{
    display: none!important;
  }
  .featured_part .sponsored_indicator_wrapper{
    display: none!important;
  }
  .featured_part img.sponsor-3d {
    margin-right: 0px!important;
  }
  .featured_data_icons span {
    display: none!important;
  }
  .inline_data_icons img.sponsor-3d {
    margin-right: 0px!important;
  }
  .inline_data_icons span {
    display: none!important;
  }
  .mobile_head_content{
    display: flex;
    align-items: center;
  }
  .mobile_sponsor{
    display: block;
    background: #3b6285;
    color: white;
    font-size: 14px;
    margin-bottom: 10px;
    padding: 10px;
  }
  .search-results-table td:nth-of-type(1):before {content: "Manufacturer:";}
  .search-results-table td:nth-of-type(2):before {content: "Image:";}
  .search-results-table td:nth-of-type(3):before {content: "Part:";}
  .search-results-table td:nth-of-type(4):before {content: "Package:";}
  .search-results-table td:nth-of-type(5):before {content: "Availability:";}
  .search-results-table td:nth-of-type(6):before {content: "Avg. Price (USD):";}
  .search-results-table td:nth-of-type(7):before {content: "Description:";}
  .search-results-table td:nth-of-type(8):before {content: "Data Available:";}
}
.search-message{
    visibility: visible;
    font-family: 'Open Sans';
    font-size: 16px;
    padding-left: 30px;
    line-height: 30px;
}
.search-message ul li{
  font-weight: lighter;
  line-height: 22px;
}

.search-filters {
  display: none;
}

/* Left Sidebar Layout */
.search-layout {
  display: flex;
  min-height: calc(100vh - 200px);
  margin: 0;
  position: relative;
}

.left-sidebar {
  width: 280px;
  background: #ffffff;
  border-right: 1px solid #e0e0e0;
  position: fixed;
  left: 0;
  top: 80px; /* Start below the navbar */
  bottom: 0;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 2px 0 4px rgba(0,0,0,0.1);
  scrollbar-width: thin;
  scrollbar-color: #fd772f #f1f1f1;
  scroll-behavior: smooth;
}


.left-sidebar::-webkit-scrollbar {
  width: 8px;
}

.left-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.left-sidebar::-webkit-scrollbar-thumb {
  background: #fd772f;
  border-radius: 4px;
}

.left-sidebar::-webkit-scrollbar-thumb:hover {
  background: #e66a1a;
}

/* Force sidebar to be on the left when visible */
.sidebar-visible .left-sidebar {
  display: block !important;
  left: 0 !important;
  right: auto !important;
}

.main-content {
  flex: 1;
  margin-left: 0;
  background: #ffffff;
  transition: margin-left 0.3s ease;
  overflow-x: hidden;
  max-width: 100%;
}

body.sidebar-visible .main-content {
  margin-left: 280px;
  margin-top: 0;
  width: calc(100% - 280px);
  overflow-x: hidden;
}

/* Shrink search bar when sidebar is visible */
body.sidebar-visible .search-header {
  margin-left: 280px !important;
  margin-right: 20px !important;
  transition: all 0.3s ease;
  position: relative;
  z-index: 999;
  width: calc(100% - 300px) !important;
}

body.sidebar-visible .search-tabs {
  margin-left: 280px !important;
  margin-right: 20px !important;
  transition: all 0.3s ease;
  position: relative;
  z-index: 999;
  width: calc(100% - 300px) !important;
}

body.sidebar-visible .search_title {
  margin-left: 280px !important;
  margin-right: 20px !important;
  transition: all 0.3s ease;
  position: relative;
  z-index: 999;
  width: calc(100% - 300px) !important;
}

/* Override any existing positioning */
body.sidebar-visible .search-header,
body.sidebar-visible .search-tabs,
body.sidebar-visible .search_title {
  left: 10px !important;
  right: 20px !important;
}

/* Ensure search bar container is also moved */
.sidebar-visible .search-bar-container {
  margin-left: 280px !important;
  transition: all 0.3s ease;
}

/* Move the entire search section */
.sidebar-visible .search-section {
  margin-left: 280px !important;
  transition: all 0.3s ease;
}

/* Ensure sidebar is always visible when filters are active */
.sidebar-visible .left-sidebar {
  display: block !important;
}

.filter-toggle-container {
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.d-flex {
  display: flex !important;
}


.d-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.align-items-center {
  align-items: center;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.btn-clear {
  text-decoration: underline !important;
  color: #3a5c84 !important;
  font-weight: bold;
  margin-right: 20px;
  cursor: pointer;
}

.btn-see-parts {
  background: #3a5c84;
  color: #FFFFFF;
  width: 80px !important;
  height: 32px;
  border-radius: 3px;
  border: none;
}

.w25 {
  width: 25%;
}

.search-filter-section {
  padding-left: 20px;
  border-right: 1px solid #d9d9d9;
}

.search-filter-section:last-child {
  border-right: 0px;
}

/* Override for vertical layout */
.vertical-filter-section {
  padding-left: 15px;
  border-right: none;
  border-bottom: none;
}

.search-filter-section .section-heading {
  font-size: 14px;
  font-weight: 600;
  color: #3A3A3A; 
}

.mr-10 { margin-right: 10px;}
.ml-10 { margin-left: 10px;}
.mt-10 { margin-top: 10px;}
.mb-10 { margin-bottom: 10px;}

.filter-list-item {
  display: flex;
}

.align-items-stretch {
  align-items: stretch !important;
}

.list-item-label {
  margin-top: 5px;
  margin-left: 10px;
}

.filter-list {
  height: 140px;
  overflow: auto;
  margin-right: 20px;
}

.cad-filters {
  display: flex;
  flex-flow: wrap;
}

.cad-filters div {
  width: 30%;
  margin-bottom: 20px;
}

.cad-filters div img {
  width: 25px;
  height: 25px;
  margin-left: 10px;
  cursor: pointer;
}

.adv-search {
  border-radius: 4px;
  height: 40px;
  margin-top: -10px;
  margin-left: 7px;
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: none;
}

.adv-search-selected { 
  border-radius: 4px;
  height: 40px;
  margin-top: -10px;
  margin-left: 7px;
  color: #fff;
  display: none;
  cursor: pointer;
  position: relative;
  transition: none;
}

/**************************** toggle ******************************/ 
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #fd772f;
}

input:focus + .slider {
  box-shadow: 0 0 1px #fd772f;
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/*************************** scrollbar *******************************/ 
div::-webkit-scrollbar {
  width: 6px;
}

div::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
  
div::-webkit-scrollbar-thumb {
  background: #888; 
}

div::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

#col-data-available {
  min-width: 200px;
}

/* Sidebar Filter Layout Styles - Matching the image */
.sidebar-filter-container {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  /* overflow: hidden; */
  height: 100%;
  padding-top: 20px;
}

.filter-item {
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
  background: #fff;
  border-radius: 8px;
  margin: 5px 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.filter-item:last-child {
  border-bottom: none;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s ease;
  user-select: none;
}

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

.filter-item.expanded .filter-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.filter-title {
  font-size: 12px;
  font-weight: 400;
  color: #333333;
  letter-spacing: 0.5px;
  flex: 1;
}

.filter-count {
  background: #fff3e8;
  color: #ff761a;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  margin: 0 12px;
  line-height: 1;
  border: 1px solid #ffd5b8;
}

.filter-chevron {
  font-size: 12px;
  color: #666666;
  transition: transform 0.2s ease;
}

.filter-item.expanded .filter-chevron {
  transform: rotate(180deg);
}

.filter-content {
  max-height: 0;
  overflow: hidden;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
  margin: 0;
}

/* Special styling for parametric filter content to take full width */
.filter-item[data-filter="parametric"] .filter-content {
  padding: 0 !important;
  background: #ffffff;
}

.filter-item.expanded .filter-content {
  max-height: none;
  padding: 16px 16px 20px 16px;
  overflow: visible;
  height: auto;
  margin-top: 12px;
  border-radius: 0 0 8px 8px;
}
/* Small search input in filter content */
.filter-search-container {
  margin: 8px 0 10px 0;
  position: sticky;
  top: 0;
  background: #fff;
  padding-top: 4px;
  z-index: 1;
}

.filter-search {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  font-size: 12px;
}

.filter-search:focus {
  outline: none;
  border-color: #ff9a54;
  box-shadow: 0 0 0 3px rgba(255,118,26,0.15);
}

/* Override for parametric filters when expanded */
.filter-item[data-filter="parametric"].expanded .filter-content {
  padding: 0 !important;
  background: #ffffff;
}

/* CAD Options Styling */
.cad-options {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cad-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.cad-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  margin: 0;
  margin-right: 10px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.cad-option input[type="checkbox"]:hover {
  border-color: #ff761a;
  box-shadow: 0 0 0 2px rgba(255, 118, 26, 0.1);
}

.cad-option input[type="checkbox"]:checked {
  background-color: #ff761a;
  border-color: #ff761a;
  color: #fff;
}

.cad-option input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

.cad-option input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 118, 26, 0.2);
}

.cad-option img {
  width: 18px;
  height: 18px;
}

.cad-option label {
  font-size: 13px;
  color: #555555;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  flex: 1;
}

/* Filter List Styling */
.filter-list {
  padding: 0;
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #fd772f #f1f1f1;
  scroll-behavior: smooth;
}

/* Custom Checkbox Styling - Rounded Square Design */
.filter-list input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  margin: 0;
  margin-right: 10px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.filter-list input[type="checkbox"]:hover {
  border-color: #ff761a;
  box-shadow: 0 0 0 2px rgba(255, 118, 26, 0.1);
}

.filter-list input[type="checkbox"]:checked {
  background-color: #ff761a;
  border-color: #ff761a;
  color: #fff;
}

.filter-list input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

/* Focus state for accessibility */
.filter-list input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 118, 26, 0.2);
}

/* Individual specification filter lists - no separate scroll */
.filter-item[data-filter^="spec_"] .filter-list {
  max-height: none;
  overflow-y: visible;
  scrollbar-width: none;
  scroll-behavior: auto;
}

.filter-list::-webkit-scrollbar {
  width: 6px;
}

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

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

.filter-list::-webkit-scrollbar-thumb:hover {
  background: #e66a1a;
}

/* Hide scrollbar for individual specification filter lists */
.filter-item[data-filter^="spec_"] .filter-list::-webkit-scrollbar {
  display: none;
}

.filter-list .d-flex {
  margin-bottom: 8px;
  display: flex !important; /* Ensure flex display is maintained */
}

/* Ensure search filtering works properly */
.filter-list .d-flex[style*="display: none"] {
  display: none !important;
}

/* Make sure search functionality works for all filter lists */
.manufacturers-filter .d-flex,
.packages-filter .d-flex,
.mounting-types-filter .d-flex,
.dimensions-filter .d-flex {
  transition: none !important;
}

/* Ensure items can be hidden/shown by search */
.filter-list .d-flex {
  display: flex !important;
}

.filter-list .d-flex[style*="display: none"] {
  display: none !important;
}

/* Force show/hide for search filtering */
.filter-list .d-flex[style*="display: flex"] {
  display: flex !important;
}

/* Ensure search filtering works with inline styles */
.filter-list .d-flex[style*="display: none"] {
  display: none !important;
}

/* Make sure search works for all filter types */
.manufacturers-filter .d-flex,
.packages-filter .d-flex,
.mounting-types-filter .d-flex,
.dimensions-filter .d-flex {
  display: flex !important;
}

.manufacturers-filter .d-flex[style*="display: none"],
.packages-filter .d-flex[style*="display: none"],
.mounting-types-filter .d-flex[style*="display: none"],
.dimensions-filter .d-flex[style*="display: none"] {
  display: none !important;
}

/* Force hide items with inline style display: none */
.manufacturers-filter .d-flex[style*="display: none !important"],
.packages-filter .d-flex[style*="display: none !important"],
.mounting-types-filter .d-flex[style*="display: none !important"],
.dimensions-filter .d-flex[style*="display: none !important"] {
  display: none !important;
}

/* Additional force hide for search filtering */
.filter-list .d-flex[style*="display: none"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* CSS class for search hidden items */
.search-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Force hide items with search-hidden class */
.filter-list .d-flex.search-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure visible items are shown */
.filter-list .d-flex:not(.search-hidden) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}

/* Real-time search loading indicator */
.filter-search.search-loading {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23ff761a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  animation: search-pulse 1.5s ease-in-out infinite;
}

@keyframes search-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Smooth transitions for search results */
.filter-list .d-flex {
  transition: all 0.2s ease-in-out;
}

/* Search input focus states */
.filter-search:focus {
  outline: none;
  border-color: #ff761a;
  box-shadow: 0 0 0 3px rgba(255, 118, 26, 0.15);
  background-color: #fff;
}

/* No results message styling */
.no-results-message {
  padding: 20px 10px;
  text-align: center;
  color: #666;
  font-style: italic;
  background: #f8f9fa;
  border-radius: 4px;
  margin: 10px 0;
  border: 1px dashed #ddd;
}

/* Global loading indicator */
#results.loading {
  opacity: 0.7;
  pointer-events: none;
}

#loading-indicator {
  text-align: center;
  padding: 20px;
  color: #666;
  background: #f8f9fa;
  border-radius: 4px;
  margin: 10px 0;
  border: 1px solid #e0e0e0;
}

#loading-indicator i {
  margin-right: 8px;
  color: #ff761a;
}

/* Real-time filter feedback */
.filter-item {
  transition: all 0.2s ease;
}

.filter-item.has-active-filters {
  border-left: 3px solid #ff761a;
  background: #fff8f5;
}

/* Active filter indicators */
.filter-list input[type="checkbox"]:checked + label {
  color: #ff761a;
  font-weight: 600;
}

/* Smooth animations for all filter changes */
.filter-list .d-flex,
.cad-option,
.compliance-option {
  transition: all 0.2s ease-in-out;
}

.filter-list .list-item-label {
  font-size: 13px;
  color: #555555;
  margin-left: 8px;
}

/* Compliance Options */
.compliance-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.compliance-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  margin: 0;
  margin-right: 10px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.compliance-option input[type="checkbox"]:hover {
  border-color: #ff761a;
  box-shadow: 0 0 0 2px rgba(255, 118, 26, 0.1);
}

.compliance-option input[type="checkbox"]:checked {
  background-color: #ff761a;
  border-color: #ff761a;
  color: #fff;
}

.compliance-option input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

.compliance-option input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 118, 26, 0.2);
}

.compliance-option label {
  font-size: 13px;
  color: #555555;
  font-weight: 500;
  margin: 0;
}

/* Availability Toggle Item - Always Open at Top */
.availability-toggle-item {
  margin: 5px 5px 8px 5px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.availability-toggle-item .availability-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  gap: 12px;
  margin: 0;
}

.availability-toggle-item .availability-option span {
  font-size: 13px;
  color: #333333;
  font-weight: 400;
  flex: 1;
}

/* Regular Availability Option (for other contexts) */
.availability-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  gap: 12px;
}

.availability-option span {
  font-size: 13px;
  color: #555555;
  font-weight: 500;
}

/* Filter Actions */
.filter-actions {
  padding: 20px;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

/* Filter Actions Top - Always Visible */
.filter-actions-top {
  padding: 12px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-clear-all {
  background: #3B5D83;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-clear-all:hover {
  background: #2d4a6b;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(59, 93, 131, 0.3);
}

.btn-clear-all:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(59, 93, 131, 0.3);
}

.btn-clear-all i {
  font-size: 10px;
}

.active-filters-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #ffffff;
  background: #ff761a;
  padding: 8px 12px;
  border-radius: 20px;
  border: none;
  font-weight: 600;
}

.active-filters-count i {
  font-size: 10px;
}

.count-badge {
  background: transparent;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  min-width: auto;
  text-align: center;
  line-height: 1.2;
}

/* Filter Messages */
.filter-message {
  padding: 8px 12px;
  margin: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  animation: slideDown 0.3s ease;
}

.filter-message-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.filter-message-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Parametric Filters Styling */
.parametric-filter-group {
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #ffffff;
}

#parametric-filters-container {
  /* Remove separate scrolling - use main sidebar scroll */
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Individual specification filters use main sidebar scroll */

.parametric-filter-header {
  padding: 12px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  font-weight: 600;
  font-size: 13px;
  color: #333333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.parametric-filter-unit {
  font-size: 11px;
  color: #666666;
  font-weight: normal;
}

.parametric-filter-content {
  padding: 16px;
}

/* Range Slider Styling */
.parametric-range-container {
  margin-bottom: 16px;
}

.parametric-range-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: #666666;
}

.parametric-range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
}

.parametric-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fd772f;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.parametric-range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fd772f;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.parametric-range-inputs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.parametric-range-input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
  width: 20px;
}

/* Single Value Input Styling */
.parametric-single-value-container {
  padding: 8px 0;
}

.parametric-single-value-container .d-flex {
  display: flex;
  align-items: center;
  padding: 4px 0;
}

.parametric-single-value-container input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
}

.parametric-single-value-container .list-item-label {
  font-size: 13px;
  color: #555555;
  cursor: pointer;
  margin: 0;
  flex: 1;
}

.parametric-single-value-container .list-item-label:hover {
  color: #333;
}

/* Legacy single value input styling (for backward compatibility) */
.parametric-single-value-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
  background: #f8f9fa;
}

.parametric-single-value-input:focus {
  outline: none;
  border-color: #fd772f;
  box-shadow: 0 0 0 2px rgba(253, 119, 47, 0.2);
}

/* Checkbox List Styling */
.parametric-checkbox-list {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #fd772f #f1f1f1;
  scroll-behavior: smooth;
}

.parametric-checkbox-list::-webkit-scrollbar {
  width: 6px;
}

.parametric-checkbox-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.parametric-checkbox-list::-webkit-scrollbar-thumb {
  background: #fd772f;
  border-radius: 3px;
}

.parametric-checkbox-list::-webkit-scrollbar-thumb:hover {
  background: #e66a1a;
}

.parametric-checkbox-item {
  display: flex;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.parametric-checkbox-item:last-child {
  border-bottom: none;
}

.parametric-checkbox-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  margin: 0;
  margin-right: 10px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.parametric-checkbox-item input[type="checkbox"]:hover {
  border-color: #ff761a;
  box-shadow: 0 0 0 2px rgba(255, 118, 26, 0.1);
}

.parametric-checkbox-item input[type="checkbox"]:checked {
  background-color: #ff761a;
  border-color: #ff761a;
  color: #fff;
}

.parametric-checkbox-item input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

.parametric-checkbox-item input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 118, 26, 0.2);
}

.parametric-checkbox-item label {
  font-size: 12px;
  color: #555555;
  margin: 0;
  cursor: pointer;
  flex: 1;
}

/* Dropdown Search Styling */
.parametric-dropdown-container {
  position: relative;
}

.parametric-dropdown-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 8px;
}

.parametric-dropdown-list {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #ffffff;
  position: absolute;
  width: 100%;
  z-index: 1000;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: #fd772f #f1f1f1;
  scroll-behavior: smooth;
}

.parametric-dropdown-list::-webkit-scrollbar {
  width: 6px;
}

.parametric-dropdown-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.parametric-dropdown-list::-webkit-scrollbar-thumb {
  background: #fd772f;
  border-radius: 3px;
}

.parametric-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: #e66a1a;
}

.parametric-dropdown-item {
  padding: 8px 12px;
  font-size: 12px;
  color: #555555;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.parametric-dropdown-item:hover {
  background: #f8f9fa;
}

.parametric-dropdown-item:last-child {
  border-bottom: none;
}

.parametric-dropdown-show-more {
  padding: 8px 12px;
  font-size: 11px;
  color: #fd772f;
  text-align: center;
  font-style: italic;
  border-top: 1px solid #e0e0e0;
}

/* Loading Spinner for Parametric Filters */
.parametric-loading .spinner {
  margin: 0 auto 10px;
  width: 40px;
  height: 40px;
}

.parametric-loading .spinner div {
  background-color: #fd772f;
  height: 100%;
  width: 6px;
  display: inline-block;
  margin: 0 2px;
  animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.parametric-loading .spinner .rect1 { animation-delay: -1.1s; }
.parametric-loading .spinner .rect2 { animation-delay: -1.0s; }
.parametric-loading .spinner .rect3 { animation-delay: -0.9s; }
.parametric-loading .spinner .rect4 { animation-delay: -0.8s; }
.parametric-loading .spinner .rect5 { animation-delay: -0.7s; }

@keyframes sk-stretchdelay {
  0%, 40%, 100% { 
    transform: scaleY(0.4);
  } 20% { 
    transform: scaleY(1.0);
  }
}

/* Responsive adjustments for vertical layout */
@media (max-width: 1200px) {
  .vertical-filter-row {
    flex-direction: column;
  }
  
  .vertical-filter-section {
    max-width: 100%;
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .search-filters {
    margin: 0px 10px 0px 10px;
    padding: 0.5rem;
    max-height: 500px;
  }
  
  .vertical-filter-section {
    padding: 10px;
  }
  
  .vertical-filter-section .filter-list {
    height: 100px;
  }
}