.ais-ClearRefinements {
  margin: 1em 0;
}

.ais-SearchBox {
  margin: 1em 0;
  width: 100%;
  padding-bottom: 2px;
}

.ais-Pagination {
  margin-top: 1em;
}



.ais-InstantSearch {
  max-width: 960px;
  overflow: hidden;
  margin: 0 auto;
  margin-bottom: 2em;
}

.ais-Hits-item {
  margin-bottom: 1em;
  width: calc(50% - 1rem);
}

.ais-Hits-item img {
  margin-right: 1em;
}

.hit-name {
  margin-bottom: 0.5em;
}

.hit-description {
  color: #888;
  font-size: 14px;
  margin-bottom: 0.5em;
}

#brand-list {
  margin-top: 1em;
}


.ais-Hits-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
}

@media screen and (max-width: 426px) {
  .ais-Hits-list {
    grid-template-columns: repeat(1, 1fr);
    margin-left: 0;
  }
}

@media only screen and (min-width: 426px) and (max-width: 768px) {
  .ais-Hits-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (min-width: 768px) and (max-width: 10248px) {
  .ais-Hits-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 1024px) {
  .ais-Hits-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ais-Hits-item {
  padding: 0;
  height: 310px;
  width: 100%;
  margin: 0;
}

.product_listdes {
  height: 130px;
  overflow: hidden;
}

.viewico {
  width: 21px;
  height: 15px;
  background: url(../../../assets/images/sprites.png)-123px -153px;
  background-repeat: no-repeat;
  float: left;
  margin-left: 3px
}

.cartico {
  float: left;
  width: 20px;
  height: 22px;
  margin-left: 10px;
  background: url(../../../assets/images/sprites.png) -164px -153px;
  background-repeat: no-repeat
}

/* Responsive CSS for Mobile View */
@media screen and (max-width: 768px) {
  .ais-Hits-item {
    width: 100% !important;
  }

  .left-panel,
  .right-panel {
    float: none;
    /* Clear the float for smaller screens */
    width: 100%;
    /* Set the width to 100% for smaller screens */
    padding-left: 0;
    /* Remove padding for smaller screens */
    margin-left: 0;
    /* Remove margin for smaller screens */
  }

  .ais-InstantSearch {
    flex-direction: column;
  }
}



li.ais-RefinementList-item:nth-child(odd) {
  background-color: #f0f0f0;
}


li.ais-RefinementList-item:nth-child(even) {
  background-color: #ffffff;
}

li.ais-RefinementList-item:hover {
  background: #db2523;
  color: #ffff;
}

li.ais-RefinementList-item {
  padding: 0.3em 0 0.3em 0.3em;
  cursor: pointer;
}

.ais-RefinementList-label {
  cursor: pointer;
  padding-left: 0.4em;
}

span.ais-RefinementList-count {
  margin-left: 0.4em;
  color: #e7e7e7;
  background-color: #db2523;
}

li.ais-RefinementList-item:hover span.ais-RefinementList-count {
  color: #db2523;
  background-color: #c9c9c9;
}

.br_nub {
  color: #000;
}

.ais-Pagination-item--selected .ais-Pagination-link {
  color: #fff;
  background-color: #db2523;
  border-color: #db2523;
}

.ais-Pagination-link {
  color: #000;
}

.ais-RefinementList-count {
  font-size: .7rem;
  border-radius: 4px;
}

.ais-RefinementList-labelText {
  margin-left: 5px !important;
}

.product_listview {
  width: 33% !important;
}

.product_listcart {
  width: 67% !important;
}

@media screen and (min-width: 1024px) and (max-width: 1369px) {

  .viewico,
  .cartico {
    display: none;
  }
}

.ais-InstantSearch {
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .ais-InstantSearch {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .ais-InstantSearch {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .ais-InstantSearch {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .ais-InstantSearch {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .ais-InstantSearch {
    max-width: 1320px;
  }
}


.ais-InstantSearch {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  /* Optional spacing between panels */
}

.left-panel {
  flex: 1;
  /* or a fixed width like width: 250px; */
  padding-right: 1em;
}

.right-panel {
  flex: 3;
  /* or width: 100%; to take remaining space */
}