.collection-page {
  background: #f7f4ee;
  color: #111;
}

.collection-page button,
.collection-page input {
  font: inherit;
}

.collection-page .bc-nav-links [aria-current="page"] {
  color: #a8432c;
}

.collection-intro {
  padding: 20px 0 18px;
  border-bottom: 1px solid #d5d0c6;
  background: #f2eee6;
}

.collection-intro-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 4vw, 68px);
  align-items: center;
}

.collection-intro-title {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.collection-eyebrow,
.collection-results-kicker,
.collection-visit-band p:first-child {
  margin: 0 0 8px;
  color: #a8432c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.collection-intro-title .collection-eyebrow {
  margin: 0;
  white-space: nowrap;
}

.collection-intro h1 {
  margin: 0;
  font-family: "Classica", Georgia, serif;
  font-size: clamp(42px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.collection-intro-grid > p {
  max-width: none;
  margin: 0;
  color: #56524c;
  font-size: 15px;
  line-height: 1.4;
}

.collection-catalogue {
  padding: 16px 0 64px;
  background: #fbfaf7;
}

.collection-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #d9d5cc;
}

.collection-search {
  display: grid;
  gap: 7px;
}

.collection-search label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collection-search > div {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 48px;
  border: 1px solid #aaa49a;
  background: #fff;
}

.collection-search input {
  min-width: 0;
  padding: 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
}

.collection-search button,
.collection-filter-open {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  background: #111;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.collection-search input:focus-visible,
.collection-page button:focus-visible,
.collection-page a:focus-visible {
  outline: 3px solid #d86f4d;
  outline-offset: 3px;
}

.collection-filter-open {
  display: none;
}

.collection-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px 0 0;
}

.collection-active-filters[hidden] {
  display: none;
}

.collection-active-filters button {
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid #bdb7ae;
  border-radius: 999px;
  background: #fff;
  color: #24211e;
  font-size: 13px;
  cursor: pointer;
}

.collection-active-filters button::after {
  content: " ×";
  font-weight: 700;
}

.collection-active-filters .collection-chip-clear::after {
  content: "";
}

.collection-active-filters .collection-chip-clear {
  border-color: transparent;
  background: transparent;
  color: #963922;
  font-weight: 700;
}

.collection-layout {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 18px;
}

.collection-filters {
  position: sticky;
  top: 82px;
  display: flex;
  max-height: calc(100vh - 98px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d3cec5;
  background: #f4f0e8;
}

.collection-filter-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 14px 15px 12px;
  border-bottom: 1px solid #d3cec5;
}

.collection-filter-header p,
.collection-filter-header span {
  margin: 0;
}

.collection-filter-header p {
  font-size: 18px;
  font-weight: 700;
}

.collection-filter-header span {
  display: block;
  margin-top: 3px;
  color: #67625b;
  font-size: 12px;
  line-height: 1.35;
}

.collection-filters form {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.collection-filter-groups {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.collection-filter-groups details:first-child {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f0e8;
}

.collection-filter-header > button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #aaa49a;
  background: #fff;
  font-size: 26px;
  cursor: pointer;
}

.collection-filter-groups details {
  border-bottom: 1px solid #d3cec5;
}

.collection-filter-groups summary {
  min-height: 46px;
  padding: 14px 17px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.collection-filter-options {
  display: grid;
  gap: 2px;
  padding: 0 12px 14px;
}

.collection-filter-options label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 4px 5px;
  color: #312e2a;
  font-size: 14px;
  cursor: pointer;
}

.collection-filter-options input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #a8432c;
}

.collection-filter-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  flex: 0 0 auto;
  padding: 12px;
  border-top: 1px solid #d3cec5;
  background: #f4f0e8;
}

.collection-filter-actions button,
.collection-empty-state button,
.collection-load-more {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #111;
  font-weight: 700;
  cursor: pointer;
}

.collection-clear-button {
  background: transparent;
  color: #111;
}

.collection-apply-button {
  display: none;
  background: #a8432c;
  color: #fff;
}

.collection-results {
  min-width: 0;
}

.collection-results-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  min-height: 40px;
  margin-bottom: 12px;
}

.collection-results-header h2 {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.collection-results-header > p {
  max-width: 32ch;
  margin: 0;
  color: #68635c;
  font-size: 13px;
  text-align: right;
}

.collection-availability-notice {
  margin: -4px 0 12px;
  color: #6f6962;
  font-size: 11px;
  text-align: right;
}

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

.collection-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid #d5d1c9;
  background: #fff;
}

.collection-product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid #e0dcd5;
  background: #f3f1ed;
}

.collection-product-media img {
  width: 100%;
  height: 100%;
  padding: 13px;
  object-fit: contain;
}

.collection-product-media.is-missing span {
  color: #777169;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.collection-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
}

.collection-product-badges {
  display: flex;
  min-height: 24px;
  flex-wrap: wrap;
  gap: 5px;
}

.collection-product-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 7px;
  background: #f2e3dc;
  color: #8d3622;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.collection-product-card h3 {
  margin: 2px 0 0;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.collection-product-sku,
.collection-product-colour,
.collection-product-meta,
.collection-product-promo-condition,
.collection-product-price-note {
  margin: 0;
}

.collection-product-sku {
  color: #6c665f;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.collection-product-colour {
  min-height: 34px;
  color: #36322e;
  font-size: 13px;
  line-height: 1.3;
}

.collection-product-meta {
  color: #6a655e;
  font-size: 12px;
  line-height: 1.35;
}

.collection-product-price {
  margin: 3px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.collection-product-price--sale {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
}

.collection-product-promo-condition {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6f6962;
  font-size: 10px;
  line-height: 1.2;
}

.collection-offer-badge {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  background: #a8432c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}

.collection-product-price--sale del {
  color: #777169;
  font-size: 13px;
  font-weight: 500;
}

.collection-product-price--sale strong {
  color: #a8432c;
  font-size: 18px;
}

.collection-product-price-note {
  color: #6f6962;
  font-size: 11px;
  line-height: 1.35;
}

.collection-product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: auto;
  padding-top: 7px;
}

.collection-product-actions a,
.collection-product-actions button {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}

.collection-product-actions button {
  background: #111;
  color: #fff;
}

.collection-product-actions button.is-saved {
  border-color: #a8432c;
  background: #a8432c;
}

.collection-empty-state {
  padding: 46px 24px;
  border: 1px solid #d5d1c9;
  background: #f4f0e8;
  text-align: center;
}

.collection-empty-state h3,
.collection-empty-state p {
  margin: 0;
}

.collection-empty-state p {
  margin-top: 8px;
  color: #67625b;
}

.collection-empty-state button {
  margin-top: 18px;
  background: #111;
  color: #fff;
}

.collection-load-more {
  display: block;
  min-width: 220px;
  margin: 24px auto 0;
  background: #fff;
  color: #111;
}

.collection-visit-band {
  padding: 42px 0;
  border-top: 1px solid #c9c2b7;
  background: #e8e1d6;
}

.collection-visit-band .bc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr) auto;
  gap: 32px;
  align-items: center;
}

.collection-visit-band h2 {
  max-width: 620px;
  margin: 0;
  font-family: "Classica", Georgia, serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400;
  line-height: 1;
}

.collection-visit-band .bc-shell > p {
  margin: 0;
  color: #5d5851;
  line-height: 1.5;
}

.collection-visit-band a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  padding: 0 20px;
  background: #a8432c;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.collection-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 250;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 18px;
  background: #111;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

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

@media (max-width: 820px) {
  .collection-intro {
    padding: 18px 0 16px;
  }

  .collection-intro-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .collection-intro h1 {
    font-size: clamp(40px, 7vw, 50px);
  }

  .collection-toolbar {
    position: sticky;
    top: 62px;
    z-index: 80;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 0 12px;
    background: #fbfaf7;
    box-shadow: 0 1px 0 #d9d5cc;
  }

  .collection-search {
    gap: 0;
  }

  .collection-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .collection-filter-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .collection-layout {
    grid-template-columns: 1fr;
    padding-top: 14px;
  }

  .collection-filters {
    position: fixed;
    inset: auto 0 0;
    z-index: 420;
    max-height: min(84vh, 720px);
    display: block;
    overflow: auto;
    border: 0;
    border-top: 1px solid #aaa49a;
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.22);
    transform: translateY(105%);
    transition: transform 180ms ease;
  }

  .collection-filters form {
    display: block;
    overflow: visible;
  }

  .collection-filter-groups {
    overflow: visible;
  }

  .collection-filter-groups details:first-child {
    position: static;
  }

  .collection-filters.is-open {
    transform: translateY(0);
  }

  .collection-filters:not(.is-open) {
    visibility: hidden;
  }

  .collection-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 410;
    background: rgba(0, 0, 0, 0.42);
  }

  .collection-filter-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f4f0e8;
  }

  .collection-filter-header > button,
  .collection-apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .collection-filter-actions {
    position: sticky;
    bottom: 0;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #d3cec5;
    background: #f4f0e8;
  }

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

  .collection-visit-band .bc-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .collection-visit-band a {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .collection-intro {
    padding: 16px 0 14px;
  }

  .collection-intro h1 {
    font-size: 40px;
  }

  .collection-intro-title {
    display: block;
  }

  .collection-intro-title .collection-eyebrow {
    margin-bottom: 5px;
  }

  .collection-intro-grid > p {
    font-size: 14px;
  }

  .collection-toolbar {
    align-items: stretch;
  }

  .collection-search > div {
    grid-template-columns: 1fr;
  }

  .collection-search button {
    display: none;
  }

  .collection-filter-open {
    align-self: end;
    padding: 0 14px;
  }

  .collection-results-header {
    align-items: start;
    min-height: 34px;
    margin-bottom: 10px;
  }

  .collection-results-header > p {
    max-width: 18ch;
    font-size: 11px;
  }

  .collection-product-grid {
    gap: 8px;
  }

  .collection-product-body {
    gap: 5px;
    padding: 10px;
  }

  .collection-product-media img {
    padding: 8px;
  }

  .collection-product-badges {
    min-height: 20px;
  }

  .collection-product-badges span {
    min-height: 20px;
    padding: 3px 5px;
    font-size: 8px;
  }

  .collection-product-card h3 {
    font-size: 15px;
  }

  .collection-product-sku,
  .collection-product-meta,
  .collection-product-price-note {
    font-size: 10px;
  }

  .collection-product-colour {
    min-height: 31px;
    font-size: 11px;
  }

  .collection-product-price {
    font-size: 16px;
  }

  .collection-product-price--sale {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .collection-product-price--sale del {
    font-size: 11px;
  }

  .collection-product-price--sale strong {
    font-size: 16px;
  }

  .collection-offer-badge {
    min-height: 19px;
    padding: 3px 4px;
    font-size: 8px;
  }

  .collection-product-promo-condition {
    gap: 4px;
    font-size: 8px;
    white-space: normal;
  }

  .collection-product-actions {
    grid-template-columns: 1fr;
  }

  .collection-product-actions a,
  .collection-product-actions button {
    font-size: 11px;
  }

  .collection-visit-band {
    padding: 34px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collection-filters {
    transition: none;
  }
}
