.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 .collection-results {
  padding: 24px 0 56px;
  border-top: 0;
  background: #fff;
}

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

.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-toolbar .woocommerce-ordering {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.template-collection .collection-toolbar .woocommerce-ordering::before {
  content: "Sort by";
  color: #202327;
}

.template-collection .collection-toolbar .orderby {
  width: 240px;
  height: 44px;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  background: #fff;
  padding: 0 12px;
  color: #202327;
  font: inherit;
}

.template-collection .collection-toolbar .orderby.is-sort-enhanced {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.customer-support-contact select.is-sort-enhanced,
.collection-filter-dialog select.is-sort-enhanced {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.somdot-sort-menu {
  position: relative;
  width: 250px;
}

.customer-support-contact .somdot-sort-menu,
.collection-filter-dialog .somdot-sort-menu {
  width: 100%;
}

.somdot-sort-menu.is-placeholder .somdot-sort-menu__trigger {
  color: #74797e;
}

.somdot-sort-menu.is-invalid .somdot-sort-menu__trigger {
  border-color: #f04f68;
  box-shadow: 0 0 0 3px rgb(240 79 104 / 14%);
}

.somdot-sort-menu__trigger {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #d8dce1;
  border-radius: 10px;
  padding: 0 15px;
  background: #fff;
  color: #202327;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.somdot-sort-menu__trigger:hover,
.somdot-sort-menu__trigger:focus-visible,
.somdot-sort-menu.is-open .somdot-sort-menu__trigger {
  border-color: #202327;
  box-shadow: 0 0 0 3px rgb(32 35 39 / 10%);
  outline: 0;
}

.somdot-sort-menu__chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .16s ease;
}

.somdot-sort-menu.is-open .somdot-sort-menu__chevron {
  transform: translateY(2px) rotate(225deg);
}

.somdot-sort-menu__list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid #d8dce1;
  border-radius: 12px;
  padding: 7px;
  background: #fff;
  box-shadow: 0 18px 40px rgb(28 32 37 / 16%);
}

.customer-support-contact .somdot-sort-menu__list {
  z-index: 80;
}

.somdot-sort-menu__option {
  position: relative;
  display: block;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 9px 38px 9px 12px;
  background: #fff;
  color: #34393e;
  font: inherit;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.somdot-sort-menu__option:hover,
.somdot-sort-menu__option:focus-visible {
  background: #f3f4f5;
  color: #111;
  outline: 0;
}

.somdot-sort-menu__option[aria-selected="true"] {
  background: #f4f1ed;
  color: #202327;
  font-weight: 750;
}

.somdot-sort-menu__option[aria-selected="true"]::after {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 9px;
  height: 5px;
  border-bottom: 2px solid #202327;
  border-left: 2px solid #202327;
  content: "";
  transform: translateY(-65%) rotate(-45deg);
}

.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 {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
}

.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 .collection-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .template-collection .collection-results {
    padding-top: 20px;
  }
}

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

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

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

@media (max-width: 640px) {
  .template-collection .collection-results {
    padding-top: 14px;
  }

  .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 .collection-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.collection-page-intro {
  padding: clamp(34px, 5vw, 72px) 0 clamp(24px, 3vw, 44px);
  background: #f7f5f1;
  text-align: center;
}

.collection-page-intro p {
  margin: 0 0 10px;
  color: #7b5135;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.collection-page-intro h1 {
  margin: 0;
  color: #202327;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.05;
}

.collection-page-intro span {
  display: block;
  max-width: 720px;
  margin: 16px auto 0;
  color: #65676b;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
}
