/* catalog section */

.catalog-section {
  background-color: var(--bg-2-color);
}
.catalog-section-heading {
    margin-bottom: 40px;
}
.catalog-section-heading h2{
    margin-bottom: 15px;
}
.main-content {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 30px;
}

/* Filter toggle base styles */
.filter-toggle {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: first baseline;
  background-color: var(--primary-color);
  color: var(--color-white);
}

.filter-toggle i {
  display: none;
}

/* Rotate icon when active */
.filter-toggle i.rotate {
  transform: rotate(180deg);
}

.sidebar {
  border-radius: 4px;
  overflow: hidden;
  height: fit-content;
}
.brand-list {
  padding: 10px 20px;
  background-color: var(--color-white);
}
.brand-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--light-border-color);
}
.brand-item:last-of-type {
  border-bottom: unset;
}
.items-category {
  color: var(--heading-text-color);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: first baseline;
  cursor: pointer;
  user-select: none;
}
.item-list {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
}
.item-list p{
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 10px;
  cursor: pointer;
}
.item-list p:last-of-type{
  margin-bottom: 0px;
}
.item-list p:hover{
  text-decoration: underline;
}
.item-list p.active{
  text-decoration: underline;
  color: #0066cc;
  font-weight: 600;
}
.subcategory.active {
  color: #0066cc;
}

.item-list.active {
  max-height: 900px; /* Adjust based on your content */
  opacity: 1;
  padding-top: 25px;
}
.items-category i {
  font-size: 18px;
  transition: transform 0.3s ease;
  margin-left: 20px;
}
.items-category i.rotate {
  transform: rotate(180deg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  /* margin-bottom: 30px; */
}

.product-card {
  height: 100%;
  padding: 20px;
  background-color: var(--color-white);
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card img {
  height: 200px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 20px;
}
.product-card h6{
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  margin-bottom: 10px;
}
.product-card p {
  border-bottom: 1px solid var(--light-border-color);
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.product-card a{
  font-size: 16px;
  line-height: 24px;
}

/* .pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}

.page-btn {
  padding: 8px 12px;
  border: 1px solid var(--light-border-color);
  background-color: white;
  color: var(--body-text-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover {
  border-color: var(--primary-color);
}

.page-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
} */


/* responsive css */

@media (max-width: 770px) {
  /* catalog section */

  .catalog-section-heading p {
    font-size: 16px;
    line-height: 26px;
  }
  .main-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .filter-toggle {
    cursor: pointer;
  }
  .filter-toggle i {
    display: inline-block;
    font-size: 18px;
    transition: transform 0.3s ease;
  }
  .brand-list {
    display: none;
    transition: all 0.3s ease;
  }
  .brand-list.active {
    display: block;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 425px) {
  /* catalog section */

  .catalog-section-heading p {
    font-size: 14px;
    line-height: 20px;
  }
  .filter-toggle i {
    font-size: 16px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }

}
