.template-collection .category-overview--collection {
  padding: 26px 0 28px;
  background: #fff;
}

.template-collection .collection-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e7e8eb;
  padding-bottom: 12px;
}

.template-collection .collection-section-heading h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}

.template-collection .collection-section-heading a {
  color: #111;
  font-weight: 700;
  text-decoration: underline;
}

.template-collection .category-overview__grid--collection {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.template-collection .category-overview__tile--collection {
  border: 1px solid #e7e8eb;
  border-radius: 7px;
  background: #fff;
  padding: 12px;
  text-align: left;
  box-shadow: 0 3px 10px rgb(0 0 0 / 4%);
  transition: box-shadow .18s ease, transform .18s ease;
}

.template-collection .category-overview__tile--collection:hover,
.template-collection .category-overview__tile--collection:focus-visible,
.template-collection .category-overview__tile--collection.is-active {
  box-shadow: 0 8px 18px rgb(0 0 0 / 10%);
  transform: translateY(-2px);
}

.template-collection .category-overview__tile--collection img,
.template-collection .category-overview__tile--collection .image-placeholder {
  height: 150px;
  border-radius: 5px;
  background: #fff;
  padding: 12px;
}

.template-collection .category-overview__tile-copy {
  display: grid;
  gap: 5px;
}

.template-collection .category-overview__tile-copy strong {
  color: #202327;
  font-size: 15px;
  line-height: 1.25;
}

.template-collection .category-overview__tile-copy small {
  color: #69707a;
  font-size: 13px;
  line-height: 1.35;
}

.template-collection .collection-results {
  padding: 26px 0 56px;
  border-top: 1px solid #e7e8eb;
  background: #fff;
}

.template-collection .collection-layout {
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 26px;
}

.template-collection .filter-panel {
  position: sticky;
  top: 166px;
  border: 1px solid #e7e8eb;
  border-radius: 7px;
  background: #fff;
  padding: 16px 18px;
  box-shadow: 0 3px 10px rgb(0 0 0 / 4%);
}

.template-collection .filter-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e7e8eb;
  padding-bottom: 12px;
}

.template-collection .filter-panel__header h2 {
  margin: 0;
  font-size: 20px;
}

.template-collection .filter-panel__header a {
  color: #6b737d;
  font-size: 13px;
  text-decoration: underline;
}

.template-collection .filter-group {
  padding: 17px 0;
  border-bottom: 1px solid #eef0f2;
}

.template-collection .filter-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.template-collection .filter-group h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.template-collection .filter-option {
  border-radius: 5px;
  padding: 8px 9px;
  color: #434950;
}

.template-collection .filter-option:hover,
.template-collection .filter-option.is-active {
  background: #f3f4f5;
  color: #111;
}

.template-collection .price-filter {
  display: grid;
  gap: 10px;
}

.template-collection .price-filter .button,
.template-collection .price-filter .button--secondary {
  border-color: #202327;
  background: #202327;
  color: #fff;
}

.template-collection .price-filter .button:hover,
.template-collection .price-filter .button--secondary:hover {
  border-color: #111820;
  background: #111820;
  color: #fff;
}

.template-collection .collection-toolbar {
  min-height: auto;
  margin-bottom: 18px;
  border: 1px solid #e7e8eb;
  border-radius: 7px;
  padding: 15px 18px;
  background: #fff;
  box-shadow: 0 3px 10px rgb(0 0 0 / 4%);
}

.template-collection .collection-toolbar strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

.template-collection .collection-toolbar p {
  margin: 0;
  color: #6a717b;
}

.template-collection .collection-product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.template-collection .collection-product-grid .product-card {
  min-width: 0;
  border: 1px solid #e7e8eb;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 10px rgb(0 0 0 / 5%);
  transition: box-shadow .18s ease, transform .18s ease;
}

.template-collection .collection-product-grid .product-card:hover,
.template-collection .collection-product-grid .product-card:focus-within {
  box-shadow: 0 8px 18px rgb(0 0 0 / 10%);
  transform: translateY(-2px);
}

.template-collection .collection-product-grid .product-card__media {
  aspect-ratio: 1.05 / 1;
}

.template-collection .collection-product-grid .product-card__media img {
  padding: 20px;
}

.template-collection .collection-product-grid .product-card__content {
  padding: 14px 15px 17px;
}

.template-collection .collection-empty {
  display: grid;
  justify-items: start;
  gap: 12px;
  border: 1px solid #e7e8eb;
  border-radius: 7px;
  padding: 34px;
  background: #fff;
}

.template-collection .collection-empty h2,
.template-collection .collection-empty p {
  margin: 0;
}

.template-collection .collection-pagination {
  margin-top: 28px;
  justify-content: center;
}

@media (max-width: 1280px) {
  .template-collection .category-overview__grid--collection,
  .template-collection .collection-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .template-collection .collection-layout {
    grid-template-columns: 1fr;
  }

  .template-collection .filter-panel {
    position: static;
  }

  .template-collection .category-overview__grid--collection,
  .template-collection .collection-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .template-collection .collection-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .template-collection .collection-toolbar form {
    width: 100%;
  }

  .template-collection .collection-toolbar .sort-select {
    width: 100%;
  }

  .template-collection .category-overview__grid--collection,
  .template-collection .collection-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
