.rhode-catalog-page .rhode-header {
  position: sticky;
  inset-inline: auto;
  margin: 16px var(--rhode-edge) 0;
  padding: 0;
}

@media (min-width: 1040px) {
  .rhode-catalog-page .rhode-menu-panel { position: absolute; top: 100%; }
}

.rhode-catalog {
  --catalog-ink: #67645e;
  padding: 20px max(16px, 2.25vw) 72px;
  color: var(--catalog-ink);
  font-family: var(--rhode-font);
}

.rhode-catalog a { color: inherit; }

.rhode-catalog__sections,
.rhode-catalog__filters {
  display: flex;
  align-items: center;
  gap: 8px clamp(12px, 1.5vw, 24px);
  font-size: clamp(14px, 13.2958px + .187793vw, 20px);
  line-height: 1.24;
}

.rhode-catalog__sections {
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 28px;
  padding: 5px 3px 9px;
}

.rhode-catalog__filters {
  flex-wrap: wrap;
  min-height: 30px;
  margin-bottom: clamp(16px, 6px + 1.7857vw, 36px);
}

.rhode-catalog__sections a[aria-current],
.rhode-catalog__type summary span {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rhode-catalog__count { margin-inline-start: auto; }
.rhode-catalog__type { position: relative; }
.rhode-catalog__type summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 5px;
  align-items: center;
}
.rhode-catalog summary::-webkit-details-marker { display: none; }
.rhode-catalog__type summary::after {
  content: "";
  width: 10px;
  height: 7px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.rhode-catalog__type ul,
.rhode-catalog__choices ul {
  list-style: none;
  padding: 8px 16px;
  margin: 0;
  background: #f1f0edee;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 52px #0000002e;
  max-height: min(38vh, 340px);
  overflow: auto;
}

.rhode-catalog__type ul {
  position: absolute;
  z-index: 5;
  inset: calc(100% + 7px) auto auto 0;
  width: min(375px, calc(100vw - 32px));
  border-radius: 10px;
}

.rhode-catalog__type li a,
.rhode-catalog__choices li a {
  display: block;
  padding: 10px 0;
  font-size: 14.5px;
  line-height: 1.3;
}

.rhode-catalog__type li a[aria-current],
.rhode-catalog__type li a:hover,
.rhode-catalog__choices li a:hover { text-decoration: underline; }

.rhode-catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(8px, 2.01408px + 1.59624vw, 45px) clamp(8px, 3.0047vw - 3.2676px, 60px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.rhode-catalog__tile {
  --tile-x: 28px;
  --tile-y: 28px;
  position: relative;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  min-height: 440px;
  aspect-ratio: 1 / 1.16534;
  border-radius: 12px;
  background: #f5f5f5;
}

.rhode-catalog__product {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
}

.rhode-catalog__media { position: absolute; inset: 12% 0 18%; }
.rhode-catalog__tile--collection .rhode-catalog__media { inset: 0; }
.rhode-catalog__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.rhode-catalog__tile--collection .rhode-catalog__media img { object-fit: cover; mix-blend-mode: normal; }
.rhode-catalog__media .rhode-catalog__alternate {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s cubic-bezier(.76, 0, .24, 1);
}

.rhode-catalog__card-heading {
  position: absolute;
  inset: var(--tile-y) var(--tile-x) auto;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 9px;
  font-family: var(--rhode-display-font);
  font-size: 3.5vw;
  font-weight: 400;
  line-height: 1;
}

.rhode-catalog__card-heading > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.rhode-catalog__badge {
  flex: none;
  max-width: 45%;
  background: var(--catalog-ink);
  color: #fff;
  border-radius: 20px;
  padding: 4px 8px;
  font-size: clamp(10px, .75vw, 16px);
  line-height: 1.15;
  text-align: center;
  margin-left: auto;
}

.rhode-catalog__copy {
  position: absolute;
  inset: auto var(--tile-x) var(--tile-y);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 8px;
  font-size: clamp(16px, 1.125vw, 23px);
  line-height: 1.5;
  transition: opacity .4s ease;
}
.rhode-catalog__copy h2 {
  color: inherit;
  font-size: clamp(16px, 1.25vw, 25px);
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  margin: 0;
  overflow-wrap: anywhere;
}
.rhode-catalog__price { font-weight: 700; white-space: nowrap; }
.rhode-catalog__copy p { width: 100%; margin: 0; }
.rhode-catalog__reviews { display: flex; align-items: center; gap: 9px; }
.rhode-catalog__unavailable { width: 100%; font-size: 13px; }

.rhode-catalog__action {
  position: absolute;
  inset: auto 12px 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform .7s cubic-bezier(.76, 0, .24, 1), opacity .4s ease;
}
.rhode-catalog__action > a,
.rhode-catalog__choices summary {
  display: block;
  cursor: pointer;
  width: 100%;
  text-align: center;
  border: 1px solid var(--catalog-ink);
  border-radius: 40px;
  background: #fff;
  padding: 12px 8px 11px;
  font-size: clamp(15px, 1.034vw, 20px);
  line-height: 1.5;
  text-transform: uppercase;
  list-style: none;
}
.rhode-catalog__action > a:hover,
.rhode-catalog__choices summary:hover,
.rhode-catalog__choices[open] summary { background: var(--catalog-ink); color: #fff; }

.rhode-catalog__choices ul {
  position: absolute;
  z-index: 6;
  inset: auto 0 calc(100% + 6px);
  border-radius: 20px 20px 12px 12px;
}
.rhode-catalog__choices li a span { display: block; font-size: 12px; }

@media (min-width: 821px) {
  .rhode-catalog__tile:hover .rhode-catalog__alternate,
  .rhode-catalog__tile:focus-within .rhode-catalog__alternate { opacity: 1; }

  .rhode-catalog__tile:hover .rhode-catalog__action,
  .rhode-catalog__tile:focus-within .rhode-catalog__action,
  .rhode-catalog__tile:has(.rhode-catalog__choices[open]) .rhode-catalog__action {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .rhode-catalog__tile:hover .rhode-catalog__copy,
  .rhode-catalog__tile:focus-within .rhode-catalog__copy { opacity: 0; }
}

@media (max-width: 820px) {
  .rhode-catalog__filters { min-height: 27px; }
  .rhode-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rhode-catalog__tile { min-height: 289px; --tile-y: 16px; }
  .rhode-catalog__card-heading { font-size: 18px; }
  .rhode-catalog__badge { padding: 4px 6px; }
  .rhode-catalog__copy { bottom: calc(var(--tile-y) + 35px); }
  .rhode-catalog__copy h2 { font-size: 12px; line-height: 1.2; }
  .rhode-catalog__copy .rhode-catalog__price,
  .rhode-catalog__copy p,
  .rhode-catalog__copy .rhode-catalog__unavailable { display: none; }
  .rhode-catalog__action {
    inset: auto var(--tile-x) var(--tile-y);
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .rhode-catalog__action > a,
  .rhode-catalog__choices summary { background: transparent; padding: 6px 4px; font-size: 12px; line-height: 1.2; }
  .rhode-catalog__choices ul { position: fixed; inset: auto 0 0; z-index: 1040; border-radius: 20px 20px 0 0; }
  .rhode-catalog__tile:has(.rhode-catalog__choices[open]) { z-index: 1040; }
}

@media (max-width: 540px) {
  .rhode-catalog__tile { --tile-x: 12px; }
  .rhode-catalog__filters { column-gap: 13px; }
  .rhode-catalog__type ul { width: min(220px, calc(100vw - 36px)); }
  .rhode-catalog__filters .rhode-catalog__type:nth-child(2) ul { inset-inline: auto 0; }
  .rhode-catalog__badge { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .rhode-catalog__media .rhode-catalog__alternate,
  .rhode-catalog__copy,
  .rhode-catalog__action { transition: none; }
}

.rhode-catalog__empty { padding: 30px 0; font-size: 16px; }
.rhode-catalog__empty a { text-decoration: underline; }
