.main_container {
  max-width: 100% !important;
  padding: 20px 40px !important;
  background-color: var(--background-color);
}
.reset-filter {
    border-bottom: 1px solid var(--border-color);
    font-weight: bold;
    /* margin-bottom: 5px; */
    padding: 10px 5px;
}
  .reset-filter span{
    color: var(--alternative-color);
    float: right;
    font-size: calc(var(--font-size) - 2px); /* 1px smaller than the body font */
    cursor: pointer;
    font-weight: normal;
  }
  .reset-filter .ti{
    font-size: calc(var(--font-size) - 2px);
  }
  .reset-filter span:hover{
    color: var(--primary-color);
  }
  .filter-br-pd{
    background: #fff !important;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
  }
  .product-icon-font-2x{
    font-size: calc(var(--font-size) - 2px);
   }
  .product-item {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding: 10px 0px 10px 0px;
  }
  .products-list > div:last-child {
     border-bottom: 1px solid var(--border-color);
     margin-bottom:20px ;
  }
  .products-list-img {
     width: 80px !important;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    /* margin-left: 0px; */
}
  /* .product-img {
    flex: 0 0 15%; Equivalent to col-md-2
  } */
  .products-list-btn{
    line-height: 0;
    padding: 5px 7px;
    font-size: calc(var(--font-size) - 4px);
    /* margin-left: 5px; */
    margin-top: 0px;
    background: #fff;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    display: flex;
    align-items: center;
    display: inline-flex;
  }
  .products-list-btn.buy-btn{
    width: 30%;
    justify-content: center;
  }
  .products-list-btn:hover{
    background: var(--primary-color);
    color: #FFFFFF !important;
    border: 1px solid var(--primary-color) !important;
  }

  .product-details {
    flex: 0 0 72%; /* Equivalent to col-md-3 */
  }
  .product-price {
    flex: 0 0 20%;
    color: var(--alternative-color);/* Equivalent to col-md-2 */
    font-size: var(--font-size);
    text-align: right;
  }
  .product-button {
    flex: 0 0 8%;
    color: var(--alternative-color);
    font-size: var(--font-size);
    text-align: right;
  }
  .product-sale_price span .product-currency {
    font-size: var(--font-size);
  }
  .product-price div{
    padding-top: 3px;
    white-space: nowrap;
  }
  .product-sale_price span  {
    color:  var(--secondary-color);
    font-size: var(--font-size);
  }
  .product-stock span  {
    color:  var(--secondary-color);
  }
  .product-name{
    display: flex;
    align-items: center;
    /* font-weight: bold; */
    padding-bottom: 5px;
  }

  .product-name a{
    cursor: pointer;
  }
  .product-attr {
    font-size: var(--font-size);
   }
   .product-attr  a {
    color: var(--secondary-color);
   }

  .product-attr li {
    list-style: disc !important;
    padding-top: 2px;
    margin-left: 15px;
    color: var(--alternative-color); /* Reduce margin between bullet and text */
  }
  .product-attr li  span{
    color:  var(--secondary-color);
  }
  .product-name span a{
    color: #555;
    text-decoration: underline;
  }
  .product-name span a:hover{
    color: var(--primary-color) !important;
  }

  .product-lis-no-result{
    text-align: center;
    font-size: calc(var(--font-size) - 3px);
    color: var(--alternative-color);
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 30px;
  }
  .product-list-buy {
    flex: 0 0 20%; /* Equivalent to col-md-1 */
  }
  .text-primary{
    color: var(--primary-color) !important;
  }
  .surplus-label {
    display: inline-block;
    background: #ffc107;
    color: #000;
    font-size: 12px;
    border-radius: 4px;
    padding: 0px 8px;
    margin-left: 10px;
  }
  /* .surplus-label{
    background: #e3d7ff;
    border-radius: 20px;
    color: #3D188D;
    padding: 1px 7px;
    font-size: calc(var(--font-size) - 5px);
    margin-left: 3px;
} */
 /* .surplus-item{
    background: #e3d7ff38;
  } */
.category-list-box{
    padding-left: 2px;
    margin-bottom: 20px;
  }
  .category-list-box .category-name {
  cursor: pointer;
  }
  .category-name span:hover {
    color: var(--primary-color);
    }
.product_title{
  font-size: calc(var(--font-size) + 5px);
}
.product-sort-wrapper{
  padding: 10px 0px 20px 5px;
}
.product-sort-wrapper select{
  padding: 3px;
  color: var(--alternative-color);
  border-color: var(--border-color);
  margin-right: 8px;
  width: 150px;
  border-radius: 5px;
}
.nested-category-list {
    display: none;
    padding-left: 10px;
}
.nested-category-list ul {
  display: none;
  padding-left: 10px;
}
.nested-category{
  padding-left: 10px;
}
.nested-category li ul {
  display: none;
}
.cat-active ul {
  display: block !important;
}
.toggle {
    cursor: pointer;
}

.toggle-open {
    cursor: pointer;
}
.cat-active .nested-category-list{
  display: block;
}
 .cat-selected{
  font-weight: bold;
}
.category-list-box li{
  padding-top: 5px;
  font-size: calc(var(--font-size) - 2px);
}
.filter-bx{
    /* padding-top: 5px; */
    /* line-height: 23px; */
}
.filter-bx-title {
    /* font-weight: bold; */
    font-size: calc(var(--font-size) - 2px);
    padding-top: 5px;
    color: var(--alternative-color);
    padding: 5px 5px;
}
.filter-bx-val-count{
  color: #b2b2b2;
  /* font-style: italic; */
  padding-left: 2px;
font-size: calc(var(--font-size) - 3px);
}
.filter-bx-check {
    width: 1rem;
    height: 1rem;
    margin-top: -5px;
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
    background: #fff;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    top: .125rem;
    position: relative;
}
.filter-bx-check:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    position: relative;
    -webkit-appearance: none; /* Remove default styling for WebKit browsers */
    -moz-appearance: none; /* Remove default styling for Mozilla browsers */
    appearance: none; /* Remove default styling for other browsers */
    outline: none; /* Remove outline */
    color: #fff; /* Set the check-mark color */
}

.filter-bx-check:checked::before {
    content: '\2714'; /* Unicode for check-mark */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: calc(var(--font-size) - 5px);
    color: #fff; /* Color of the check-mark */
    font-weight: 700;
}

.filter-bx-container {
  max-height: 300px;
  overflow-y: auto;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease;
  padding: 0px 5px;
}
.filter-bx-container.show {
  opacity: 1;
  max-height: 120px; /* Set a high value for max-height to accommodate the content */
}
.filter-bx-container::-webkit-scrollbar {
  width: 8px; /* Width of the scrollbar */
}

.filter-bx-container::-webkit-scrollbar-thumb {
  background-color: var(--alternative-color); /* Color of the scroll thumb */
  border-radius: 10px; /* Rounded corners of the scroll thumb */
}

.filter-bx-container::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* Darker color on hover */
}
.filter-bx-container select{
  padding: 3px;
  color: #555;
  border-color: var(--border-color);
  margin-right: 8px;
  border-radius: 5px;
}
.search-list-headlines{
    /* padding-top: 5px; */
    /* padding-bottom: 15px; */
    font-size: calc(var(--font-size) + 3px);
}
.products-search-result{
    color: #b2b2b2;
    font-size: var(--font-size);
}
.filter-bx-val{
 padding-bottom: 3px;
 font-size: calc(var(--font-size) - 2px);
}
.filter-bx-close{
 float: right;
 color: var(--alternative-color);
}
.filter-bx-close:hover{
  cursor: pointer;
  color: var(--primary-color);
 }
.filter-bx-delimiter{
    padding: 5px;
}
.filter-bx-select{
    width: 70px;
    background: white;
    padding: 5px;
    border: 1px solid var(--border-color);
}

a {
  color: var(--primary-color);
}
 a:hover{
  color: var(--primary-color);
}

.active>.page-link, .page-link.active {
  z-index: 3;
  color: var(--bs-pagination-active-color);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.page-link:hover, .page-link:focus{
  color: var(--primary-color) !important;
}
.active>.page-link, .page-link.active:hover{
  color: var(--bs-pagination-active-color) !important;
}
.pagination{
  --bs-pagination-color: var(--secondary-color) !important;
}
.page-link:focus {
  box-shadow: none;
}
.pagination-item{
  /* margin: 20px; */
  border-top: 1px solid var(--border-color);
  padding: 20px 0px 0px 0px;
}
.pagination-item p{
  float: left;
  padding-top: 10px;
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.view-toggle-icons {
  display: flex;
  margin-top: 3px;
  justify-content: end;
  gap: 10px;
  cursor: pointer;
}
.view-toggle-icons i {
  font-size: 22px;
}
.toggle-icons-selected {
  color: var(--primary-color);
}
.table-view {
  max-width: 100%;
  overflow-x: auto;
  font-size: calc(var(--font-size) - 1px);
}
.table-view tbody tr.surplus-item .surplus-label {
  margin: 0px;
}
.table-view tbody tr td div.product-img {
  width: 50px;
  margin: 0 5px;
}
.position-left-0 {
  position: sticky;
  left: 0;
}
.position-left-1 {
  position: sticky;
  left: 77px;
}
.position-right-0 {
  position: sticky;
  right: 0;
}
.position-right-1 {
  position: sticky;
  right: 100px;
  text-align: right;
}
.table-view::-webkit-scrollbar {
  height: 35px;
}
.table-view::-webkit-scrollbar-track {
  background: lightgray;
  border-top: 15px solid #fff;
  border-bottom: 15px solid #fff;
}
.table-view::-webkit-scrollbar-thumb {
  background: gray;
  border-top: 15px solid #fff;
  border-bottom: 15px solid #fff;
}
.prod-category {
    font-weight: normal;
    color: var(--alternative-color);
    margin-top: 2px;
    font-size: 13px;
}
.prod-category a {
  text-decoration: none !important;
}
.attr-filter{
  overflow: auto !important;
}
.select-filter{
  min-width: 35%;
}
.reset-sel:focus-visible {
  outline: none;
}

.tile-view-box {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  transition: transform 0.2s ease;
}

.tile-view-box:hover {
  border: 1.5px solid var(--primary-color) !important;
  box-shadow: 0 6px 24px 0 rgba(219, 78, 57, 0.15);
  transform: translateY(-4px) scale(1.01);
}

.tile-img {
   width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
}

.tile-content {
  flex: 1;
  padding: 0 0;
}

.tile-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.3;
}

.tile-title a {
  text-decoration: none;
}

.tile-sub {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.tile-badge {
  display: inline-block;
  background: #ffc107;
  color: #000;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.tile-detail {
  font-size: 14px;
  white-space: nowrap;
  color: #555;
}

.tile-actions {
   display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    /* align-items: center; */
    flex-direction: column;
}

.tile-divider {
  border-top: 1px solid #f3f3f3;
  margin: 10px 0 15px 0px;
}
.tile-price {
  font-size: calc(var(--font-size) + 2px);
  font-weight: bold;
}
.prod-row{
  padding-left: 12px;
}
.prod-col{
  margin-bottom: 25px !important;
}
.tile-detail_bold{
  font-weight:bold;
  Color:#000 !Important;
}
.tile-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
}
.prod-attr {
  display: flex;
  gap: 5px;
  align-items: flex-start;
}
.prod-name{
    font-size: 12px;
    color: #888;
}
.prod-value {
  font-size: 12px;
  font-weight: bold;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1 1 auto;
  color: #888;
}
.rfq-btn {
  background: #fff;
  color: var(--secondary-color) !important;
  border: 1px solid var(--secondary-color) !important;
}
.rfq-btn:hover {
    background: var(--secondary-color);
    color: #FFFFFF !important;
    border: 1px solid var(--secondary-color) !important;
}
.prod-item-number {
  font-size: 12px;
  color: #888;
}
.prod-item-value{
  font-size: 12px;
  font-weight: bold;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1 1 auto;
  color: #888;
}
.product-view {
  display: flex;
  justify-content: center;
}
#productsPage .blogs-category {
    display: flex;
}
  #productsPage .blog-tag-btn{
    /* display: flex; */
    padding: 0.5em 2em;
  }
  .product-details-content {
    width: 89%;
}
  .product-details-content .product-item-number{
    padding: 0 10px;
  }

  #productsPage .products-list-btn.rfq-btn{
    /* margin-bottom: 1.2em; */
    /* width: 48%; */
    justify-content: center;
  }

  #productsPage .tile-actions .products-list-btn.rfq-btn{
    width: 30%;
  }

  /* #productsPage .buy-btn{
    color : var(--primary-color) !important;
  } */
/* @media (max-width: 2000px){

} */

@media (min-width: 1700px){
  .product-button{
    /* flex: 1 0 10%; */
    float: right;
    /* margin-top: 0.7em; */
  }
  .tile-detail-row{
    flex-wrap: wrap;
  }
  .tile-detail{
    flex-wrap: wrap;
  }
}
/* 1440x900 */
@media (max-width: 1440px) {
  .filter-br-pd{
    flex: 0 0 auto;
    width: 25%;
  }
  .prod-wrapper-col{
    flex: 0 0 auto;
    width: 100%;
  }
  .products-list-btn {
    /* margin-left: 8px; */
    padding: 6px;
  }
  .prod-col {
    flex: 0 0 auto;
  }

  /* grid */
  .product-img{
    flex: 0 0 auto;
    width: 8%;
  }
  .prod-details {
    flex: 0 0 auto;
    width: 80%;
  }
  .tile-detail{
    flex-wrap: wrap;
  }
  .product-price{
    flex: 1 0 20%;
    /* padding: 0 10px; */
  }
  .product-button{
    /* flex: 1 0 10%; */
    float: right;
    margin-top: 0.7em;
  }
  .prod-details{
    flex: 0 0 auto;
    width: 90%;
  }
  .prod-buy-btn {
    margin-top: 2px !important;
  }
  .tile-detail-row{
    flex-wrap: wrap;
  }
}

/* 1366x768 */
@media (max-width: 1366px) {
  .prod-col {
    flex: 0 0 auto;
  }
  .prod-sort-col, .view-toggle-icons{
    flex: 0 0 auto;
    width: 16.66666667%;
  }
  .filter-br-pd{
    flex: 0 0 auto;
    width: 25%;
  }
  .prod-wrapper-col{
    flex: 0 0 auto;
    /* width: 75%; */
  }
  /* .products-list-btn {
    margin-left: 8px;
    padding: 2px 5px;
  } */

  /* grid */
  .product-img{
    flex: 0 0 auto;
    width: 15%;
  }
  .prod-details {
    flex: 0 0 auto;
    width: 80%;
  }
  .product-price{
    flex: 1 0 20%;
    /* padding: 0 10px; */
  }
  .product-button{
    flex: 1 0 10%;
  }
  .prod-details{
    flex: 0 0 auto;
    width: 80%;
  }
  .prod-buy-btn {
    margin-top: 2px !important;
  }
}

/* 1280x800 */
@media (max-width: 1280px) {
  .prod-col {
    flex: 0 0 auto;
  }
  /* .products-list-btn{
    margin-left: 8px;
    padding: 2px 7px;
  } */
  .prod-sort-col, .view-toggle-icons{
    flex: 0 0 auto;
    width: 16.66666667%;
  }

  /* grid */
  .product-img{
    flex: 0 0 auto;
    width: 15%;
  }
  .prod-details {
    flex: 0 0 auto;
    width: 80%;
  }
  .product-price{
    flex: 1 0 20%;
    /* padding: 0 10px; */
  }
  .product-button{
    flex: 1 0 10%;
  }
  .prod-details{
    flex: 0 0 auto;
    width: 80%;
  }
  .prod-buy-btn {
    margin-top: 2px !important;
  }

}

/* 1024x768 */
@media (max-width: 1024px) {
  .filter-br-pd{
    flex: 0 0 auto;
    width: 25%;
  }
  .prod-wrapper-col {
    flex: 0 0 auto;
    width: 100%;
  }
  .prod-col {
    flex: 0 0 auto;
  }
  /* .products-list-btn{
    margin-left: 8px;
  } */
  .product_title {
    font-size: calc(var(--font-size) + 3px);
  }
  .prod-headlines {
    flex: 0 0 auto;
    width: 50%;
  }
  .prod-sort-col {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
  .view-toggle-icons{
    flex: 0 0 auto;
    width: 16.66666667%;
  }
  .prod-breadcrumb-ul{
    display: block;
  }
  .prod-breadcrumb-col{
    margin-bottom: 10px;
  }
  .filter-bx-val {
    display: flex;
    align-items: baseline;
  }

  /* grid */
  .product-img{
    flex: 0 0 auto;
    width: 20%;
  }
  .prod-details {
    flex: 0 0 auto;
    width: 80%;
  }
  .product-price{
    flex: 1 0 20%;
    /* padding: 0 10px; */
  }
  .product-button{
    flex: 1 0 10%;
  }
  .prod-details{
    flex: 0 0 auto;
    width: 80%;
  }
  .prod-buy-btn {
    margin-top: 2px !important;
  }
  .form-group .field-val {
    margin: 5px 17px !important;
}
.form-group .field-label{
    width: 36.333333% !important;
}
}
@media (max-width: 873px) and (min-width: 393px){
  .tile-actions .tile-detail{
    display: flex;
    flex-wrap: wrap !important;
  }
}
@media (max-width:800px) and (min-width: 360px){
  .main_container{
    padding: 0 !important;
  }
  .prod-wrapper-col{
    width: 100%;
  }
  .prod-row {
    padding-left: 1.7em;
  }
  .prod-col{
  }
  .prod-headlines{
    width: 100%;
  }
  .product-sort-wrapper select{
    width: 11em;
    margin-top: 10px;
  }
  .view-toggle-icons{
    margin-top: 1em;
    margin-left: 8em;
  }
  .pagination-item p{
    padding-left: 6.6em;
    width: 100%;
    margin-bottom: 1em;
  }
  .pagination-item{
    padding-bottom: 20px;
  }
  #productsPage .pagination{
        display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 65vw;
  }
  .product-details-content {
    width: 66%;
}
.tile-img{
  height: 14vh;
}
#productsPage .pagination-nav-numbering{
      display: flex;
    flex-direction: column;
    align-items: center;
}
 .tile-actions{
    display: block;
  }
  .tile-actions .tile-actions-button-two{
    align-items: center;
    margin-top: 16px;
    /* margin-left: 24%; */

  }
  a.sub-links, .product_title {
    word-break: break-word;
  }
}


/* Loader styles from products_v2.css */

.prod_loading-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.prod_spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 4px solid rgba(219, 78, 57, 0.08);
  border-top-color: var(--primary-color);
  animation: spin 0.95s linear infinite;
  box-shadow: 0 3px 8px rgba(219, 78, 57, 0.12);
}

.prod_loading-text strong {
  display: block;
  font-size: 15px;
  color: var(--secondary-color);
}
.prod_loading-text .muted {
  display: inline;
  font-size: 13px;
  color: var(--alternative-color);
  /* margin-top: 2px; */
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* End of loader styles */
