.block-main-collection__description {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px 64px;
  align-items: end;
  padding-top: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(var(--color-entry-line), 0.7);
}

.block-main-collection__title {
  margin: 0;
  color: rgb(var(--color-text));
  font-family: var(--font-heading-family, Georgia, serif);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: var(--font-heading-weight, 400);
  letter-spacing: -0.035em;
  line-height: 1;
}

.block-main-collection__description-copy {
  max-width: 720px;
  color: rgba(var(--color-text), 0.68);
  font-size: 13px;
  line-height: 1.75;
}

.block-main-collection__description-copy > :first-child {
  margin-top: 0;
}

.block-main-collection__description-copy > :last-child {
  margin-bottom: 0;
}

.collection-experience {
  align-self: start;
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 17px 18px;
  border: 1px solid rgba(var(--color-entry-line), 0.72);
  background: rgb(var(--color-background));
}

.collection-experience__top,
.collection-experience__sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.collection-experience__filters,
.collection-experience__sort-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.collection-experience__filter {
  position: relative;
}

.collection-experience__filter summary,
.collection-experience__clear {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(var(--color-entry-line), 0.9);
  background: transparent;
  color: rgb(var(--color-text));
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.collection-experience__filter summary::-webkit-details-marker {
  display: none;
}

.collection-experience__filter summary::after {
  content: "+";
  font-size: 13px;
}

.collection-experience__filter[open] summary::after {
  content: "−";
}

.collection-experience__filter-count:not(:empty) {
  color: rgba(var(--color-text), 0.56);
}

.collection-experience__filter-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 210px;
  max-height: 280px;
  gap: 10px;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(var(--color-entry-line), 0.9);
  background: rgb(var(--color-background));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.collection-experience__filter-panel label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(var(--color-text), 0.78);
  cursor: pointer;
  font-size: 11px;
  line-height: 1.4;
}

.collection-experience__filter-panel input {
  accent-color: rgb(var(--color-text));
}

.collection-experience__clear {
  border-color: transparent;
  color: rgba(var(--color-text), 0.62);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.collection-experience__count {
  flex: 0 0 auto;
  margin: 0;
  color: rgba(var(--color-text), 0.58);
  font-size: 10px;
}

.collection-experience__sort-row {
  padding-top: 14px;
  border-top: 1px solid rgba(var(--color-entry-line), 0.55);
}

.collection-experience__sort-label {
  color: rgba(var(--color-text), 0.52);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.collection-experience__sort-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(var(--color-text), 0.65);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.collection-experience__sort-tabs button:hover,
.collection-experience__sort-tabs button.is-active {
  border-color: rgb(var(--color-text));
  color: rgb(var(--color-text));
}

.collection-experience__sort-tabs button.is-active {
  background: rgb(var(--color-text));
  color: rgb(var(--color-background));
}

.collection-experience__selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--color-entry-line), 0.35);
}

.collection-experience__selected button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(var(--color-entry-line), 0.9);
  border-radius: 999px;
  background: transparent;
  color: rgb(var(--color-text));
  cursor: pointer;
  font: inherit;
  font-size: 9px;
}

.collection-experience__empty {
  grid-column: 1 / -1;
  padding: 28px 0;
  text-align: center;
}

.collection-experience__load-more {
  display: block;
  min-width: min(280px, 100%);
  min-height: 44px;
  margin: 30px auto 0;
  padding: 0 24px;
  border: 1px solid rgb(var(--color-text));
  background: transparent;
  color: rgb(var(--color-text));
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.collection-experience__load-more[hidden] {
  display: none;
}

.collection-experience__load-more:hover,
.collection-experience__load-more:focus-visible {
  background: rgb(var(--color-text));
  color: rgb(var(--color-background));
}

.collection-experience.is-loading .collection-experience__count::after {
  content: " · Loading all products…";
}

.collection-experience__empty p {
  margin: 0 0 14px;
  color: rgba(var(--color-text), 0.68);
  font-size: 12px;
}

.collection-experience__empty button {
  padding: 10px 16px;
  border: 1px solid rgb(var(--color-text));
  background: transparent;
  color: rgb(var(--color-text));
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facets-sorting {
  display: none !important;
}

.facets-count {
  display: none !important;
}

.collection-experience__empty {
  align-self: start;
}

.product-card-filter-data {
  display: none !important;
}

.product-card-details {
  display: grid;
  margin-top: 12px;
  border-top: 1px solid rgba(var(--color-entry-line), 0.7);
}

.product-card-details__item {
  border-bottom: 1px solid rgba(var(--color-entry-line), 0.55);
}

.product-card-details__summary {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
}

.product-card-details__summary:focus-visible {
  outline: 2px solid rgb(var(--color-text));
  outline-offset: 3px;
}

.product-card-details__icon {
  position: relative;
  width: 12px;
  height: 12px;
}

.product-card-details__icon::before,
.product-card-details__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.product-card-details__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.product-card-details__item.is-open .product-card-details__icon::after {
  transform: translate(-50%, -50%) rotate(0);
}

.product-card-details__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s ease, opacity 0.25s ease;
}

.product-card-details__item.is-open .product-card-details__panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.product-card-details__panel > div {
  overflow: hidden;
  color: rgba(var(--color-text), 0.68);
  font-size: 10px;
  line-height: 1.65;
}

.product-card-details__item.is-open .product-card-details__panel > div {
  padding-bottom: 14px;
}

.product-card-details__panel p {
  margin: 0 0 8px;
}

.color-board__item[data-quick-add-ready="true"] {
  position: relative;
  cursor: pointer;
  outline-offset: 3px;
}

.color-board__item[data-quick-add-ready="true"]:focus-visible {
  outline: 2px solid rgb(var(--color-text));
}

.color-board__item.is-sold-out {
  opacity: 0.34;
  filter: grayscale(1);
  cursor: not-allowed;
}

.color-board__item.is-sold-out::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%) rotate(-42deg);
}

.color-board__item.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.color-board__item.is-loading::after {
  position: absolute;
  inset: -3px;
  border: 1px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  content: "";
  animation: collection-swatch-spin 0.7s linear infinite;
}

.collection-experience-toast {
  position: fixed;
  z-index: 9999;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 14px 18px;
  background: rgb(var(--color-text));
  color: rgb(var(--color-background));
  font-size: 11px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.collection-experience-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.collection-experience-toast[data-type="error"] {
  outline: 1px solid rgb(var(--color-background));
  outline-offset: -4px;
}

.collection-swatch-tooltip {
  position: fixed;
  z-index: 10000;
  padding: 7px 10px;
  background: rgb(var(--color-text));
  color: rgb(var(--color-background));
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.collection-swatch-tooltip.is-visible {
  opacity: 1;
}

@keyframes collection-swatch-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 960px) {
  .collection-results-shell {
    grid-area: list;
  }
}

@media (max-width: 959px) {
  .block-main-collection__description {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 24px;
  }

  .collection-experience {
    margin-right: 16px;
    margin-left: 16px;
    padding: 14px;
  }

  .collection-experience__top,
  .collection-experience__sort-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .collection-experience__sort-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .collection-experience__sort-tabs button {
    flex: 0 0 auto;
  }

  .collection-experience__filter-panel {
    position: static;
    min-width: 0;
    margin-top: 8px;
    box-shadow: none;
  }

  .collection-experience-toast {
    right: 16px;
    bottom: 16px;
    max-width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card-details__panel,
  .collection-experience-toast,
  .collection-swatch-tooltip,
  .product-card-details__icon::before,
  .product-card-details__icon::after {
    transition: none;
  }
}
