/*============================================================================================
	Start Products Area
==============================================================================================*/
.shop-category {
  padding-top: 56px;
}
.shop-product {
  padding-bottom: 72px;
}

/* Force a fixed 4-up product grid regardless of viewport width, instead of
   relying on Bootstrap's col-xl-3 (which was rendering more columns than
   intended on very wide screens). */
#product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
#product-list .product-card {
  width: 100%;
  max-width: 100%;
  flex: none;
  padding: 0;
}
#product-list .product-item {
  margin-top: 0;
  height: 100%;
}

@media only screen and (max-width: 991.99px) {
  #product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media only screen and (max-width: 575.99px) {
  #product-list {
    grid-template-columns: repeat(1, 1fr);
  }
}
/* Dropdown filter. With 50+ categories in this shop, showing every pill
   on the page (even in a scroll box) crowded the layout. Tucking them
   behind a toggle keeps the page compact; the panel only appears, and
   only then scrolls, when the shopper opens it. */
.category-filter-dropdown {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 32px;
}
.category-filter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--white-color);
  border: 2px solid var(--border-color);
  border-radius: 100px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--title-color);
  cursor: pointer;
  transition: all 0.3s ease;
}
.category-filter-toggle:hover {
  border-color: var(--primary-color);
}
.category-filter-toggle i {
  color: var(--primary-color);
  font-size: 16px;
}
.category-filter-toggle .arrow {
  transition: transform 0.3s ease;
}
.category-filter-dropdown.open .category-filter-toggle .arrow {
  transform: rotate(180deg);
}
.category-filter-toggle .count-badge {
  background-color: var(--primary-color);
  color: var(--white-color);
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 100%;
  padding: 0 5px;
}
.category-select {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100%);
  background-color: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0px 16px 40px rgba(44, 44, 84, 0.14);
  padding: 20px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 20;
}
.category-filter-dropdown.open .category-select {
  display: flex;
}
.category-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--white-color);
  position: relative;
  padding: 8px 16px 8px 8px;
  border: 2px solid var(--border-color);
}
.category-item:hover {
  border-color: var(--primary-color);
}
.category-item input[type="checkbox"] {
  display: none;
}
.category-item .content {
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-item .icon {
  width: 28px;
  height: 28px;
  font-size: 14px;
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  background-color: #7ab32e;
  flex-shrink: 0;
}
.category-item .icon img {
  width: 16px;
  filter: brightness(0) invert(1);
}
.category-item .icon._2 {
  background-color: #ff7676;
}
.category-item .icon._3 {
  background-color: #40c6bc;
}
.category-item .icon._4 {
  background-color: #ffc245;
}
.category-item .text {
  color: var(--title-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 120%;
  white-space: nowrap;
}
.category-item .check-icon {
  display: none;
  color: var(--primary-color);
  font-size: 16px;
  line-height: 1;
}
.category-item.active {
  border-color: var(--primary-color);
  background-color: #fef1f6;
}
.category-item.active .check-icon {
  display: inline;
}

/* ScrollBar CSS */
.category-select::-webkit-scrollbar {
  width: 4px !important;
  height: 4px !important;
  display: block;
}
.category-select::-webkit-scrollbar-thumb {
  cursor: pointer !important;
  background: var(--primary-color) !important;
  border-radius: 4px;
}

@media only screen and (max-width: 575.99px) {
  .category-select {
    max-height: 240px;
    width: calc(100vw - 40px);
  }
  .category-filter-toggle {
    font-size: 14px;
    padding: 10px 16px;
  }
  .category-item .text {
    font-size: 13px;
  }
}

/*============================================================================================
      End Products Area
  ==============================================================================================*/
