.collection-page {
  width: min(1400px, 90%);
  margin: 0 auto 72px;
}
.collection-page [hidden] {
  display: none !important;
}
.collection-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 24px;
  font-size: 11px;
  color: var(--muted);
}
.collection-breadcrumb a:hover {
  text-decoration: underline;
}
.collection-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 7%;
  padding-block: 12px 34px;
}
.collection-hero h1 {
  font: 400 clamp(40px, 4.2vw, 64px)/1.08 var(--display);
  letter-spacing: -0.045em;
  max-width: 12ch;
  margin: 18px 0;
}
.collection-hero > div > p:not(.eyebrow) {
  max-width: 48ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.collection-hero-note {
  display: block;
  font-size: 10px;
  margin-top: 20px;
  letter-spacing: 0.02em;
}
.collection-hero figure {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}
.collection-hero img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}
.collection-hero figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 14px 10px;
  background: linear-gradient(transparent, #0009);
  color: #fff;
  font-size: 9px;
}
.collection-tabs {
  display: flex;
  gap: 28px;
  border-block: 1px solid var(--color-base-300);
  margin-bottom: 34px;
  overflow-x: auto;
}
.collection-tabs a {
  flex-shrink: 0;
  padding: 18px 0 15px;
  font-size: 12px;
  border-bottom: 3px solid transparent;
}
.collection-tabs a[aria-current] {
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}
.collection-tabs a:hover {
  color: var(--color-primary);
}
.collection-browser {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.collection-sidebar {
  position: sticky;
  top: 20px;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-right: 18px;
  border-right: 1px solid var(--color-base-300);
}
.collection-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.collection-filter-heading h2 {
  font: 24px var(--display);
}
.collection-reset {
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
[data-close-facets] {
  display: none;
}
.collection-search,
.collection-style,
.collection-availability {
  display: block;
  font-size: 12px;
  margin-bottom: 20px;
}
#collection-facet-form .input,
#collection-facet-form .select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin-top: 8px;
  background-color: var(--color-base-100);
  font-size: 12px;
}
.collection-price-filter {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}
.collection-price-filter legend {
  font-size: 12px;
}
.collection-price-filter > div {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 8px;
}
.collection-price-filter label {
  flex: 1;
  min-width: 0;
  font-size: 10px;
  color: var(--muted);
}
.collection-price-filter > div > span {
  padding-bottom: 12px;
}
#collection-price-error {
  font-size: 12px;
  color: var(--color-error);
  line-height: 1.5;
  margin-bottom: 16px;
}
.collection-facet {
  border-top: 1px solid var(--color-base-300);
}
.collection-facet summary {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 16px 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.collection-facet summary::-webkit-details-marker {
  display: none;
}
.collection-facet summary::after {
  content: '+';
  margin-left: auto;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 400;
}
.collection-facet[open] summary::after {
  content: '−';
}
[data-facet-selected]:not(:empty) {
  padding: 2px 6px;
  background: var(--color-base-200);
  border-radius: 4px;
  font-size: 10px;
}
.collection-facet-options {
  padding-bottom: 14px;
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.collection-facet-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  font-size: 11px;
  line-height: 1.4;
  padding: 5px 0;
  cursor: pointer;
}
.collection-facet-options input {
  flex-shrink: 0;
}
.collection-facet-options label > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.collection-facet-options small {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.collection-facet-options .is-unavailable {
  opacity: 0.45;
  cursor: default;
}
.collection-availability {
  padding-top: 18px;
  border-top: 1px solid var(--color-base-300);
}
.collection-filter-note {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin: 16px 0;
}
.collection-apply {
  width: 100%;
}
.collection-results {
  min-width: 0;
}
.collection-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.collection-toolbar .eyebrow {
  font-size: 9px;
}
.collection-toolbar h2 {
  font: 25px var(--display);
  margin-top: 7px;
  scroll-margin-top: 110px;
}
.collection-toolbar > label {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.collection-toolbar .select {
  width: 185px;
  min-height: 42px;
  font-size: 12px;
}
.collection-filter-open {
  display: none;
}
.collection-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.collection-active-filters .btn {
  height: auto;
  min-height: 34px;
  padding: 6px 10px;
  max-width: 100%;
  white-space: normal;
  font-size: 11px;
  text-align: left;
  overflow-wrap: anywhere;
}
.collection-active-filters .btn span {
  font-size: 17px;
  margin-left: 6px;
}
.collection-wine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.collection-wine-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-base-300);
  background: var(--color-base-100);
  border-radius: 4px;
  overflow: hidden;
}
.collection-wine-art {
  position: relative;
  background: var(--color-base-200);
}
.collection-type {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  text-transform: capitalize;
  background: var(--color-base-100);
  color: var(--color-base-content);
  padding: 5px 9px;
  border-radius: 3px;
  font-size: 10px;
  pointer-events: none;
}
[data-collection-gallery] {
  position: relative;
  aspect-ratio: 1;
}
.collection-static-photo,
.collection-wine-art .wine-gallery {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.collection-static-photo img,
.collection-wine-art .wine-gallery:not(.photo-triptych) img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}
.collection-static-photo.photo-triptych img {
  width: 300%;
  max-width: none;
  height: auto;
}
.collection-wine-art .gallery-caption {
  color: var(--color-base-content);
  background: color-mix(in srgb, var(--color-base-100) 94%, transparent);
  border-color: var(--color-base-300);
  inset: auto 8px 8px;
}
.collection-wine-art .gallery-back {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  background: var(--color-base-100);
  color: var(--color-base-content);
  border: 1px solid var(--color-base-300);
  border-radius: 3px;
  padding: 5px 7px;
  font-size: 10px;
  cursor: pointer;
}
.collection-wine-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 16px;
}
.collection-wine-region {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.collection-wine-copy h3 {
  font: 25px/1.2 var(--display);
  letter-spacing: -0.025em;
  margin: 10px 0 6px;
}
.collection-wine-copy h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.collection-wine-variety {
  font-size: 12px;
}
.collection-wine-notes {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0 14px;
}
.collection-review {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  padding-bottom: 14px;
  margin-top: auto;
}
.collection-review strong {
  color: var(--color-primary);
  font-size: 16px;
}
.collection-review small {
  font-size: 9px;
  font-weight: 400;
}
.collection-review > span {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.collection-wine-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--color-base-300);
  padding-block: 15px;
}
.collection-wine-price > strong {
  font-size: 21px;
}
.collection-wine-price > strong small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.collection-wine-price > span {
  font-size: 10px;
  color: var(--color-primary);
}
.collection-wine-price > span small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 3px;
}
.collection-card-cart {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}
.collection-card-cart label {
  font-size: 10px;
}
.collection-card-cart .input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px;
  margin-top: 5px;
  background: var(--color-base-100);
}
.collection-card-cart .btn {
  min-height: 42px;
  font-size: 11px;
  padding-inline: 8px;
}
.collection-card-status {
  grid-column: 1 / -1;
}
.collection-card-status,
.collection-case-status {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 8px;
}
.collection-card-status a,
.collection-case-status a {
  display: block;
  text-decoration: underline;
  color: var(--color-primary);
}
.collection-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.collection-card-actions .btn {
  min-height: 42px;
  height: auto;
  padding: 7px 4px;
  font-size: 10px;
  white-space: normal;
}
.collection-card-actions a {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.collection-card-actions small {
  font-size: 8px;
  font-weight: 400;
}
.collection-catalog-note {
  margin-top: 24px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}
.collection-empty {
  text-align: center;
  padding: 70px 24px;
  background: var(--color-base-200);
  border-radius: 4px;
}
.collection-empty h3 {
  font: 32px var(--display);
}
.collection-empty p {
  margin: 14px auto 24px;
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.7;
}
.collection-filter-dialog:not([open]) {
  display: none;
}
.collection-noscript {
  padding: 24px;
  font-size: 13px;
}
@media (max-width: 1180px) {
  .collection-browser {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }
  .collection-wine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .collection-page {
    width: calc(100% - 32px);
  }
  .collection-browser {
    display: block;
  }
  .collection-sidebar {
    position: static;
    max-height: none;
    border: 0;
    padding: 0;
    margin-bottom: 24px;
  }
  .collection-enhanced .collection-sidebar {
    display: none;
  }
  .collection-enhanced .collection-filter-open {
    display: inline-flex;
  }
  .collection-filter-dialog[open] {
    position: fixed;
    inset: 0 auto 0 0;
    margin: 0;
    width: min(380px, 92vw);
    max-width: none;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-right: 1px solid var(--color-base-300);
    padding: 0;
    background: var(--color-base-100);
    color: var(--color-base-content);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .collection-filter-dialog::backdrop {
    background: #14251dcc;
  }
  .collection-filter-dialog form {
    min-height: 100%;
    padding: 24px 22px max(24px, env(safe-area-inset-bottom));
  }
  .collection-filter-dialog [data-close-facets] {
    display: inline-flex;
    margin-left: auto;
    padding: 0;
    width: 44px;
    min-height: 44px;
  }
  .collection-filter-dialog .collection-filter-heading {
    gap: 14px;
  }
  .collection-filter-dialog .collection-filter-heading h2 {
    font-size: 26px;
  }
  .collection-filter-dialog .collection-facet-options label {
    min-height: 44px;
    font-size: 13px;
  }
  .collection-filter-dialog .collection-apply {
    position: sticky;
    bottom: 0;
    box-shadow: 0 0 0 8px var(--color-base-100);
  }
  html.collection-filters-open {
    overflow: hidden;
  }
}
@media (max-width: 600px) {
  .collection-page {
    width: calc(100% - 24px);
    margin-bottom: 48px;
  }
  .collection-breadcrumb {
    padding-block: 16px;
    font-size: 10px;
  }
  .collection-hero {
    display: block;
    padding-block: 8px 24px;
  }
  .collection-hero h1 {
    font-size: 42px;
    max-width: 13ch;
    margin: 14px 0;
  }
  .collection-hero > div > p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.6;
  }
  .collection-hero-note {
    display: none;
  }
  .collection-hero figure {
    display: none;
  }
  .collection-tabs {
    gap: 22px;
    margin-bottom: 24px;
  }
  .collection-tabs a {
    font-size: 11px;
    padding-block: 14px 11px;
  }
  .collection-toolbar {
    flex-wrap: wrap;
    gap: 16px 12px;
  }
  .collection-toolbar > div {
    flex: 1;
  }
  .collection-toolbar h2 {
    font-size: 24px;
  }
  .collection-toolbar > label {
    width: 100%;
    justify-content: space-between;
  }
  .collection-toolbar .select {
    width: 200px;
    font-size: 16px;
  }
  .collection-wine-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .collection-wine-copy {
    padding: 20px;
  }
  .collection-wine-copy h3 {
    font-size: 30px;
  }
  .collection-wine-region,
  .collection-wine-notes {
    font-size: 12px;
  }
  .collection-wine-variety {
    font-size: 14px;
  }
  .collection-wine-price {
    justify-content: space-between;
  }
  .collection-card-cart {
    grid-template-columns: 80px minmax(0, 1fr);
  }
  .collection-card-cart .input,
  #collection-facet-form .input,
  #collection-facet-form .select {
    font-size: 16px;
  }
  .collection-card-cart .btn,
  .collection-card-actions .btn {
    min-height: 46px;
    font-size: 12px;
  }
  .collection-card-actions small {
    font-size: 9px;
  }
  .collection-wine-art .gallery-back {
    min-height: 38px;
  }
}
