.ot-result {
    width: 100%;
    padding: 20px 20px;
    display: flex;
    background-color: white;
    min-height: 80vh;
  }
  
  
  .ot-filter {
    max-width: 260px;
    width: 100%;
    border-right: 0.5px solid rgba(184, 184, 184, 0);
    height: auto;
    overflow-x: auto;
    position: sticky;
    top: 100px; /* Stick to the top of the parent container */
    z-index: 1;
    /* max-height: 550px; */
    height: 100%;
    /* padding-right: 30px; */
    overflow-y: auto;
    transition: all ease-in 0.5s;
  }

  .ot-filter::-webkit-scrollbar{
    width: 0.1em;
  }

  .ot-filter::-webkit-scrollbar-thumb {
    background-color: rgba(176, 176, 176, 0.019);
}
  
  .ot-productgrid {
    width: 100%;
    padding-left: 20px;
    flex: 1;
    overflow-y: auto;
    transition: all ease 0.5s;
  }
  
  main,
  section {
    display: block;
    width: 100%;
  }
  
  .in-productgrid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding-top: 20px; /* Add padding to separate from sticky filter */
    padding-left: 30px;
    justify-content: flex-start;
    transition: paddding-left cubic-bezier(.43,0,.24,1) 0.01s;
  }
  
  .in-product {
    width: 31.3333333333%;
    margin-bottom: 10px;
    /* border: 1px solid rgb(236, 236, 236); */
    border-radius: 10px;
    overflow: hidden;
    transition: width cubic-bezier(.43,0,.24,1) 1s;
  }
  
  .in-product figure {
    max-width: 550px;
  }
  
  .in-product figure a .in-productimg img {
    max-width: 329px;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .in-productdisc {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0px 5px;
  }
  
  .productname {
    font-size: 18px;
  }

  .productname a{
    color: black;
  }
  
  .productbrand {
    font-size: 14px;
    color: rgb(116, 116, 116);
  }
  
  .productprice {
    font-size: 1.4rem;
    color: rgb(0, 0, 0);
    padding-top: 5px;
  }

  .ot-filterapply{
    display: none;
  }


  .search-result{
    width: 100%;
    padding: 20px 20px 20px 20px;
    background-color: white;
  }

  .search-text{
    font-size: 1.5rem;
    font-family: 'Forum' , serif;
  }
  
  /* Responsive styles */
  @media screen and (max-width: 768px) {

    .productname {
      font-size: 14px;
    }

    .productprice{
      font-size: 16px!important;
      padding-top: 0px;
    }
    
    .ot-result{
        padding: 10px 10px;
        margin-top: 0px;
    }

    .ot-filter {
      position: fixed;
      max-width: 100%!important;
      max-height: none!important;
      height: auto;
      top: 100%!important;
      left: 0!important;
      background-color: white;
      z-index: 100000;
      transform: translateY(0);
      transition: all ease 1s;
      z-index: 10000000000000000000000;
    }



    .ot-filter.open {
      display: block!important; /* Show when active */
      transition: all ease 1s;
      margin-bottom: 100px;
      animation: slideup forwards cubic-bezier(.43,0,.24,1) 1s;
      transform: translateY(0);
      height: 100vh;
    }

    @keyframes slideup {
      0%{
        transform: translateY(0%);
      }
      100%{
        transform: translateY(-100%);
      }
    }

    @keyframes slidesdown {
      0%{
        transform: translateY(-100%);
        height: auto;
      }
      100%{
        transform: translateY(0%);
        height: 50%;
      }
    }

    .in-filter{
      height: 86vh;
      overflow-y: scroll;
      position: relative;
      padding: 20px 20px 40px 20px;
    }

    

    body.ot-filter-active {
      overflow: hidden; /* Prevent scrolling on the body */
    }

    .ot-productgrid{
        padding-left: 0px;
    }
  
    .in-product {
      flex: 0 1 48.9%; /* Adjust for two products per row on smaller screens */
      max-width: none;
      margin-bottom: 15px;
      border-radius: 0px;
      margin-bottom: 20px;
    }

    .in-productgrid {
        justify-content: space-between;
        gap: 5px;
        padding-left: 0px;
        padding-top: 0px;
      }

    .in-productdisc{
        margin-top: 10px;
        padding: 0px 10px;
        gap: 5px;
    }

    .ac-result{
      padding: 10px 10px!important;
      top: 70px!important;
      border-top: 0.5px solid rgba(189, 189, 189, 0.842);
      margin-top: 0px!important;
    }

    .serch-disc , .filter-toggle{
      font-size: 1rem!important;
    }

    .filter-toggle{
      display: none!important;
    }

    .filter-toggle-mobile{
      display: flex!important;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border: none;
      border: 0.3px solid rgb(97, 97, 97);
      background-color: white;
      padding: 2px 18px;
      border-radius: 20px;
      font-size: 1rem;
      cursor: pointer;
    }

    .filter-text{
      color: black!important;
    }

    .ot-filterapply{
      display: block;
      width: 100%;
      position: absolute;
      bottom: 0px;
      padding: 20px 20px 20px 20px;
      border-top: 0.5px solid rgba(187, 187, 187, 0.776);
      z-index: 100000000000;
      background-color: white;
    }

    .in-filterapply{
      display: flex;
      width: 100%;
      height: auto;
      align-items: center;
      justify-content: center;
      gap: 20px;
    }

    .close-filter{
      background-color: white;
      border: 1px solid rgba(149, 149, 149, 0.782);
      border-radius: 40px;
      padding: 10px 20px;
      font-size: 1rem;
      width: 45%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .apply-filter{
      background-color: rgb(0, 0, 0);
      border: 1px solid black;
      border-radius: 40px;
      padding: 10px 20px;
      color: white;
      font-size: 1rem;
      width: 45%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
}

@media screen and (max-width:1024px) {
  
   .ot-filter{
    max-width: 200px;
    width: 100%;
   }

}







.ac-result{
  margin-top: 0px;
  width: 100%;
  padding: 0px 20px;
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  position: sticky;
  top: 70px;
  /* border-bottom: 0.5px solid rgba(184, 184, 184, 0); */
  background-color: white;
  z-index: 1000;
}

.ac-result .serch-disc{
  font-size: 1.5rem;
  font-weight: 300;
}

.filter-sort .filter-toggle{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  /* border: 1px solid black; */
  background-color: white;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 1.2rem;
  cursor: pointer;
}

.filter-toggle-mobile{
  display: none;
}

.ot-filter.active {
  width: 0%;
  /* padding-right: 0px; */
  transition: width ease 0.6s , padding-right ease 0.3s;
}

.ot-productgrid.active {
  width: 100%;
  padding-left: 0px;
  transition: all ease 0.6s;
}

.in-productgrid.active{
  padding-left: 30px;
  animation: paddingleft forwards cubic-bezier(.43,0,.24,1) 1s;
  animation-delay: 0.3s;
}

@keyframes paddingleft {
  0%{
    padding-left: 30px;
  }
  100%{
    padding-left: 0px;
  }
}

.in-product.active{
  width: 23.333333%;
  /* transition: width cubic-bezier(.43,0,.24,1) 1s; */
}


/* Radio Buttons */


/* Hide the actual checkbox */
input[type="checkbox"] {
  display: none;
}

/* Style the label to look like a checkbox */
input[type="checkbox"] + label {
  position: relative;
  padding-left: 30px; /* Space for the checkbox */
  cursor: pointer;
  display: inline-block;
  color: #000000;
  line-height: 20px;
}

/* Add a box that will be our custom checkbox */
input[type="checkbox"] + label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 2.7px;
  width: 14px; /* Width of the checkbox */
  height: 14px; /* Height of the checkbox */
  border: 1.35px solid #666; /* Border of the checkbox */
  border-radius: 3px; /* Border radius of the checkbox */
  background-color: #fff; /* Background color of the checkbox */
}

/* Add a checkmark when the checkbox is checked */
input[type="checkbox"]:checked + label:after {
  content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 4px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:checked + label:before {
  background-color: #1f1f1f;
}
  
  