/* Updates for Category style */

.category-image-banner {
  height: auto;
}

/* Default styles for desktop */
.category-image-banner .sm-category-image {
  display: block;
}
.category-image-banner .lg-category-image {
  display: none;
}
.category-image-banner .stay-on-mobile {
  display: block;
}

.heading-wrapper.half-size {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

.heading-wrapper.half-size .woocommerce-products-header,
.heading-wrapper .mr_header_section_content {
  width: 100%;
}

body.woocommerce ul.products li.product a img {
  margin: 4px auto 12px auto !important;
  max-width: 100%;
}

/* Responsive styles for mobile */
@media screen and (min-width: 600px) {
  body.woocommerce ul.products li.product a img {
    margin: 4px auto 12px auto !important;
    max-width: 80%;
  }

  .category-image-banner .lg-category-image {
    display: block;
  }

  .category-image-banner .sm-category-image {
    display: none;
  }

  .heading-wrapper.half-size {
    flex-direction: row-reverse;
  }
  .heading-wrapper.half-size .woocommerce-products-header,
  .heading-wrapper.half-size .mr_header_section_content {
    width: 50%;
  }
}

.filtertop-shop {
  margin-bottom: 40px;
}

.filtertop-shop .prdctfltr_filter_title {
  font-weight: 400 !important;
}

/* .filtertop-shop .prdctfltr_showing {
   margin-left: auto;
} */

.mr_header_section_content {
  background: white;
  /* box-shadow: 0px 0px 14px -8px #38383869; */
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  padding: 36px 32px;
  margin-top: -100px;
}

.category-sliding-menu {
  position: relative;
  max-width: 1352px;
  margin: auto;
}
.category-sliding-menu::before,
.category-sliding-menu::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  pointer-events: none;
  width: 4%;
}

.category-sliding-menu::before {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), #fff);
  z-index: 1;
}

.category-sliding-menu::after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
}

.cats-menu-container {
  display: block;
  margin: 54px 0 28px;
  text-align: center;
  overflow: hidden; /* Hide the default scrollbar */
  white-space: nowrap;
  padding-bottom: 15px;
  font-size: 16px;
}

.cats-menu-items-list {
  list-style: none;
  padding: 0 20px;
  margin: 0;
  display: inline-block;
  -webkit-overflow-scrolling: touch;
}

.cats-menu-item {
  display: inline-block;
  margin-right: 40px;
}

/* .cats-menu-item a{
   padding: 8px 12px;
   border-radius: 4px;
   transition: box-shadow 0.25s ease;
} */
/* .cats-menu-item a:hover{
   box-shadow: 0px 0px 2px 1px #ebebeb;
   text-decoration: none!important;
   color: #64142d;
} */

.cats-menu-item a {
  position: relative;
}

.cats-menu-item a:hover,
.cats-menu-item.current-menu-item a {
  text-decoration: none !important;
  color: #64142d;
}
.cats-menu-item a:after {
  background: none repeat scroll 0 0 transparent;
  bottom: -5;
  content: "";
  display: block;
  height: 2px;
  left: 50%;
  position: absolute;
  background: #64142d;
  transition: width 0.3s ease 0s, left 0.3s ease 0s;
  width: 0;
}
.cats-menu-item a:hover:after,
.cats-menu-item.current-menu-item a:after {
  width: 100%;
  left: 0;
}

@media (max-width: 768px) {
  .cats-menu-item {
    margin-right: 10px; /* Adjust margin for smaller screens */
  }
}

/* a.prdctfltr_woocommerce_filter:hover{
   text-decoration: none!important;
}

.prdctfltr_wc .prdctfltr_filter_title {
   display: flex;
   align-items: center;
   font-weight: 600;
   font-size: 16px;
   background-color: #ffffff;
   padding: 10px;
   border-bottom: 1px solid #ccc;
   transition: all 0.3s ease; 
 }
/* Default styles for the fixed class */
/* .prdctfltr_wc .prdctfltr_filter_title.fixed {
   position: fixed;
   top: 186px;
   right: 0;
   left: 0;
   padding-right: 24px;
   padding-left: 24px;
   background: white;
   z-index: 99;
 } */

/* Mobile styles for the fixed class */
@media screen and (max-width: 768px) {
  .prdctfltr_wc .prdctfltr_filter_title.fixed {
    top: -1px;
    padding: 10px;
    /* Additional mobile styles here */
  }
}

/* We can update the class on previous codes as well***************** */
@media screen and (max-width: 839px) {
  .mr_header_section_content {
    margin: -40px 14px 24px;
  }
}

.breadcrumbs-wrp {
  margin-bottom: 14px;
  color: #858383;
}
.breadcrumbs-wrp span {
  font-size: 14px;
  color: #858383;
  font-style: italic;
}
.breadcrumbs-wrp a:hover span {
  color: #64142d !important;
}
.breadcrumbs-wrp a:hover {
  text-decoration: unset !important;
}

.woocommerce-breadcrumb {
  display: none;
}
.mr_header_section_content h1 {
  font-size: 28px;
}
.breadcrumbs-wrp {
  display: block;
  margin-bottom: 14px;
  color: #858383;
  max-width: 1352px;
  margin: auto;
  padding: 8px 8px 32px;
}
header {
  background-color: #ffffff !important;
}
header.woocommerce-products-header {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  background-color: #ffffff !important;
  max-width: 1352px;
  margin: auto;
  flex-wrap: nowrap;
}

.mr_header_section_content {
  background: white;
  /* box-shadow: 0px 0px 14px -8px #38383869; */
  /* border: 1px solid #e9e9e9; */
  border-radius: 0px;
  padding: 36px 32px;
  margin-top: 0px;
  max-width: 95%;
  /* margin-right: -40px; */
  z-index: 9;
  margin-top: -40px;
}

.term-description p {
  line-height: 1.4rem;
}

@media screen and (min-width: 600px) {
  .mr_header_section_content {
    background: white;
    box-shadow: 8px 0px 13px -10px #272626;
    border: none !important;
    border-radius: 0px;
    padding: 36px 32px;
    margin: auto;
    width: 478px;
    max-width: 480px;
    min-width: 320px;
    margin-right: -100px;
    z-index: 9;
  }
  header.woocommerce-products-header {
    flex-direction: row;
  }
  .breadcrumbs-wrp {
    padding: none;
  }
}

@media screen and (max-width: 400px) {
  .prdctfltr_showing {
    /* display: none; */
  }
}

.woocommerce .woocommerce-products-header {
  background-color: #ffffff !important;
}

.truncated-description {
  display: inline;
}

.hidden {
  display: none !important;
}

.show-more-less .show-more {
  font-size: 14px;
  background: none;
  color: #64142d;
  text-decoration: underline;
  font-weight: bold;
  cursor: pointer;
}

.show-more-less .show-more:hover {
  color: #500f24;
}

/* Change cursor to grab when hovering over the container, not on links */
.cats-menu-container {
  cursor: grab;
}

.cats-menu-container a {
  cursor: pointer; /* Ensures links still use the pointer cursor */
}

/* Change cursor to grabbing when actively dragging */
.cats-menu-container.grabbing {
  cursor: grabbing;
}

.cats-menu-container {
  -webkit-user-select: none; /* Chrome, Safari, Opera */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

ul.cats-menu-items-list > li.cats-menu-item:nth-of-type(1) {
  margin-left: 16px;
}
