.products-wrapper .container {
  display: flex;
  padding: 1rem;
  gap: 3rem;
}

.products-wrapper .sidebar {
  flex: 1;
  max-width: 300px;
  background: #ffffff;
  /* background: #f4f4f4; */
  padding: 1rem;
  border-radius: 8px;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  max-height: 600px;
  overflow-y: scroll;
}

.products-wrapper .content {
  flex: 3;
  /* max-height: 900px;
  overflow: auto; */
}

.products-wrapper ul {
  list-style: none;
  padding: 0;
}

.products-wrapper li {
  margin: 0.5rem 0;
}

.products-wrapper li a {
  text-decoration: none;
  color: #000 !important;
  /* color: #666666; */
  font-weight: bold;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  display: block;
  width: 100%;
  font-size: 18px;
}

.products-wrapper li a.active {
  background: #16659f;
  color: #fff !important;
}

.products-wrapper li a.disabled {
  /* color: #aaa; */
  color: #000;
  cursor: not-allowed;
}

.products-wrapper .products {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.products-wrapper .product-card {
  border: 1px solid #ddd;
  border-radius: 18px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-basis: 30%;
  max-width: 30%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  position: relative;
  background: transparent;
}
.products-wrapper .product-inner {
  padding: 18px;
}
.products-wrapper .product-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0.2;
}
@media screen and (max-width: 1080px) {
  .products-wrapper .product-card {
    flex-basis: 45%;
    max-width: 45%;
  }
}
@media screen and (max-width: 840px) {
  .products-wrapper .product-card {
    flex-basis: 90%;
    max-width: 90%;
  }
}
.products-wrapper .product-card:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.products-wrapper .product-card h4 {
  margin: 0 0 0.5rem;
  font-size: 24px;
  /* overflow-wrap: break-word !important; */
}

.products-wrapper .product-card p {
  margin: 0;
  color: #555;
}

.products-wrapper .product-card .product-description {
  margin-bottom: 10px;
}

.products-wrapper .alphabet-filter-container {
  margin-bottom: 2rem;
}

.products-wrapper .alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.products-wrapper .alphabet-filter a {
  text-decoration: none;
  color: #16659f;
  padding: 0.3rem 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.products-wrapper .alphabet-filter a:hover:not(.disabled) {
  background: #16659f;
  color: #fff;
}

.products-wrapper .alphabet-filter a.disabled {
  color: #aaa;
  cursor: not-allowed;
  border: 1px solid #aaa;
  opacity: 0.5;
}

.products-wrapper .alphabet-filter a.active {
  background: #16659f !important;
  color: #fff !important;
}

.products-wrapper .all-products-button {
  font-weight: bold;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  display: block;
  width: 100%;
  /* color: #666666; */
  color: #000;
  font-size: 18px;
}

.products-wrapper .content h3 {
  text-align: center;
}

.products-wrapper .hidden {
  display: none;
}

.products-wrapper .read-more {
  color: #666666;
  cursor: pointer;
  text-decoration: underline;
  font-weight: bold;
}

.products-wrapper .read-more:hover {
  text-decoration: none;
}

.products-wrapper .cus-card-button {
  background: linear-gradient(30deg, #5e9fce, #16659f);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background-color 0.3s ease;
}

.search-bar-container {
  margin-bottom: 20px;
}

.search-bar {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.select-industry {
  display: none;
}
@media (min-width: 620px) and (max-width: 768px) {
  .products-wrapper .product-card {
    flex-basis: 45%;
    max-width: 45%;
  }
}
@media screen and (max-width: 768px) {
  .alphabet-filter-container,
  .sidebar {
    display: none;
  }
  .products-wrapper .container {
    flex-direction: column;
    gap: 20px;
  }
  .search-bar {
    width: 100%;
    max-width: 100%;
  }
  .select-industry {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
  }
}
@media (max-width: 620px) {
  .products-wrapper .product-card {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* Custom product sub-category box */

#sub-category-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
  gap: 1rem;
}

#sub-category-filter .sub-category-btn,
#sub-category-filter .reset-btn {
  border: 1px solid #ddd;
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-basis: 30%;
  max-width: 30%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  cursor: pointer;
  font-size: 18px;
  color: #16659f;
  background: #fff;
  font-weight: bold;
  display: block;
  text-align: center;
}
@media screen and (max-width: 1080px) {
  #sub-category-filter .sub-category-btn,
  #sub-category-filter .reset-btn {
    flex-basis: 45%;
    max-width: 45%;
  }
}
@media screen and (max-width: 840px) {
  #sub-category-filter .sub-category-btn,
  #sub-category-filter .reset-btn {
    flex-basis: 90%;
    max-width: 90%;
  }
}
#sub-category-filter .sub-category-btn:hover,
#sub-category-filter .reset-btn:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
@media (min-width: 620px) and (max-width: 768px) {
  #sub-category-filter .sub-category-btn,
  #sub-category-filter .reset-btn {
    flex-basis: 45%;
    max-width: 45%;
  }
}
@media (max-width: 620px) {
  #sub-category-filter .sub-category-btn,
  #sub-category-filter .reset-btn {
    flex-basis: 47%;
    max-width: 100%;
  }
}

/* Custom Scrollbar */

.sidebar {
  --sb-track-color: #dbf4ff62;
  --sb-thumb-color: #4d92c378;
  --sb-size: 7px;
}

.sidebar::-webkit-scrollbar {
  width: var(--sb-size);
}

.sidebar::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 2px;
}

@supports not selector(::-webkit-scrollbar) {
  .sidebar {
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
  }
}
