.cc-shop {
  min-height: 100vh;
}

.cc-shop-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
  padding-block: 64px 40px;
}

.cc-shop-intro h1 {
  margin: 0;
  font-size: clamp(64px, 6.1vw, 88px);
  letter-spacing: -.045em;
  line-height: .92;
}

.cc-shop-intro p {
  max-width: 52ch;
  margin: 0 0 6px;
  color: var(--cc-ink-soft);
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.5;
  text-wrap: pretty;
}

.cc-shop-toolbar {
  position: sticky;
  z-index: 80;
  top: 71px;
  border-block: 1px solid var(--cc-line);
  background: rgba(243, 240, 232, .98);
  backdrop-filter: blur(14px);
}

.admin-bar .cc-shop-toolbar {
  top: 103px;
}

.cc-shop-toolbar__inner {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cc-shop-toolbar__desktop,
.cc-shop-toolbar__summary {
  display: flex;
  align-items: center;
}

.cc-shop-toolbar__desktop {
  gap: 8px;
}

.cc-filter-trigger,
.cc-sort-trigger,
.cc-shop-toolbar__mobile button {
  color: var(--cc-ink) !important;
  font: 650 11px/1 var(--cc-sans);
  letter-spacing: .075em;
  text-transform: uppercase;
  cursor: pointer;
}

.cc-filter-trigger {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--cc-line-strong);
  border-radius: 2px;
  background: var(--cc-paper);
  transition: color .2s var(--cc-ease), background-color .2s var(--cc-ease), border-color .2s var(--cc-ease);
}

.cc-filter-trigger:hover,
.cc-filter-trigger:focus-visible,
.cc-filter-trigger[aria-expanded="true"] {
  color: var(--cc-ink) !important;
  border-color: var(--cc-ink);
  background: var(--cc-paper-light);
}

.cc-filter-trigger span,
.cc-shop-toolbar__mobile span {
  color: var(--cc-ink-soft);
  font-size: 10px;
  letter-spacing: 0;
}

.cc-filter-trigger i,
.cc-sort-trigger i,
.cc-shop-toolbar__mobile i {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s var(--cc-ease);
}

[aria-expanded="true"] > i {
  transform: rotate(225deg) translate(-1px, -1px);
}

.cc-filter-reset-link {
  margin-left: 4px;
  border-bottom: 1px solid var(--cc-line-strong);
  color: var(--cc-ink-soft) !important;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.cc-shop-toolbar__summary {
  flex: 0 0 auto;
  gap: 28px;
}

.cc-shop-toolbar__summary > span {
  color: var(--cc-ink-soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.cc-sort-trigger {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--cc-line-strong);
  border-radius: 2px;
  background: var(--cc-paper);
  box-shadow: none;
  appearance: none;
  transition: color .2s var(--cc-ease), background-color .2s var(--cc-ease), border-color .2s var(--cc-ease);
}

.cc-sort-trigger:hover,
.cc-sort-trigger:focus-visible,
.cc-sort-trigger[aria-expanded="true"] {
  color: var(--cc-ink) !important;
  border-color: var(--cc-ink);
  background: var(--cc-paper-light);
}

.cc-shop-toolbar__mobile {
  display: none;
}

.cc-shop-panel {
  position: absolute;
  z-index: 2;
  top: 100%;
  right: 0;
  left: 0;
  border-bottom: 1px solid var(--cc-line);
  background: var(--cc-paper-light);
  box-shadow: 0 18px 30px rgba(17, 17, 15, .08);
}

.cc-shop-panel[hidden] {
  display: none;
}

.cc-shop-panel__form {
  padding-block: 24px 28px;
}

.cc-shop-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cc-shop-panel__head p,
.cc-shop-panel legend {
  margin: 0;
  color: var(--cc-ink-soft);
  font: 650 10px/1.25 var(--cc-sans);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cc-shop-panel__head button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--cc-ink);
  cursor: pointer;
}

.cc-shop-panel__head svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.cc-shop-panel__groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cc-shop-panel fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cc-shop-panel legend {
  margin-bottom: 12px;
}

.cc-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-filter-options label {
  position: relative;
  cursor: pointer;
}

.cc-filter-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cc-filter-options label span {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--cc-line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--cc-ink);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .065em;
  text-transform: uppercase;
  transition: color .2s var(--cc-ease), background-color .2s var(--cc-ease), border-color .2s var(--cc-ease);
}

.cc-filter-options label:hover span {
  border-color: var(--cc-ink);
  background: var(--cc-paper);
  color: var(--cc-ink);
}

.cc-filter-options input:checked + span {
  border-color: var(--cc-ink);
  background: var(--cc-ink);
  color: var(--cc-paper-light);
}

.cc-filter-options label:hover input:checked + span {
  background: var(--cc-ink);
  color: var(--cc-paper-light);
}

.cc-filter-options input:focus-visible + span {
  outline: 2px solid var(--cc-ink);
  outline-offset: 3px;
}

.cc-shop-panel__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--cc-line);
}

.cc-shop-panel__actions > a {
  border-bottom: 1px solid var(--cc-line-strong);
  color: var(--cc-ink-soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.cc-shop-panel--sort .cc-shop-panel__form {
  max-width: 1600px;
}

.cc-filter-options--sort {
  justify-content: flex-end;
}

.cc-shop-panel__actions--sort {
  justify-content: flex-end;
}

.cc-shop-products {
  min-height: 440px;
  padding-block: 48px 120px;
}

.cc-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
}

.cc-shop-card {
  min-width: 0;
}

.cc-shop-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: transparent;
}

.cc-shop-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .45s var(--cc-ease), transform .6s var(--cc-ease);
}

.cc-shop-card__image--front {
  opacity: 1;
}

.cc-shop-card__image--back {
  opacity: 0;
}

@media (hover: hover) and (min-width: 1101px) {
  .cc-shop-card:hover .cc-shop-card__image--front,
  .cc-shop-card:focus-within .cc-shop-card__image--front {
    opacity: 0;
  }

  .cc-shop-card:hover .cc-shop-card__image--back,
  .cc-shop-card:focus-within .cc-shop-card__image--back {
    opacity: 1;
  }

  .cc-shop-card:hover .cc-shop-card__image,
  .cc-shop-card:focus-within .cc-shop-card__image {
    transform: scale(1.018);
  }
}

.cc-shop-card__sold-out {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 6px 8px;
  border: 1px solid var(--cc-line-strong);
  background: rgba(243, 240, 232, .92);
  color: var(--cc-ink-soft);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cc-shop-card.is-sold-out .cc-shop-card__image {
  opacity: .62;
}

.cc-shop-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--cc-line);
}

.cc-shop-card__type {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cc-ink-soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.cc-shop-card__type i {
  width: 16px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--cc-player-accent);
}

.cc-shop .cc-shop-card h2 {
  margin: 2px 0 0;
  font-family: var(--cc-sans);
  font-size: 19px;
  font-weight: 520;
  letter-spacing: -.015em;
  line-height: 1.25;
}

.cc-shop-card__price,
.cc-shop-card__availability {
  margin: 0;
  color: var(--cc-ink-soft);
  font-size: 16px;
  line-height: 1.3;
}

.cc-shop-card__price del {
  opacity: .55;
}

.cc-shop-card__price ins {
  background: transparent;
  text-decoration: none;
}

.cc-shop-card__availability {
  font-size: 13px;
}

.cc-no-results {
  display: grid;
  min-height: 360px;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 48px 24px;
  border: 1px solid var(--cc-line);
  text-align: center;
}

.cc-shop .cc-no-results h2 {
  margin: 0;
  font-family: var(--cc-sans);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .085em;
  line-height: 1.3;
}

.cc-no-results p {
  margin: 0 0 8px;
  color: var(--cc-ink-soft);
}

.cc-button--outline {
  background: transparent;
  color: var(--cc-ink) !important;
}

.cc-button--outline:hover,
.cc-button--outline:focus-visible {
  background: var(--cc-ink);
  color: var(--cc-paper-light) !important;
}

.cc-shop-scrim {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(17, 17, 15, .28);
}

.cc-shop-scrim[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .cc-shop-intro {
    grid-template-columns: 1fr;
    padding-block: 48px 32px;
  }

  .cc-shop-intro h1 {
    font-size: 64px;
  }

  .cc-shop-toolbar__inner {
    min-height: 56px;
  }

  .cc-filter-trigger {
    padding-inline: 10px;
  }

  .cc-shop-toolbar__summary {
    gap: 16px;
  }

  .cc-shop-toolbar__summary > span {
    display: none;
  }

  .cc-shop-products {
    padding-block: 40px 80px;
  }

  .cc-shop-grid {
    gap: 40px 20px;
  }

  .cc-shop-card__image--front {
    opacity: 0;
  }

  .cc-shop-card__image--back {
    opacity: 1;
  }

  .cc-shop .cc-shop-card h2 {
    font-size: 17px;
  }

  .cc-shop-card__price {
    font-size: 15px;
  }
}

@media (max-width: 859px) {
  .cc-shop-toolbar {
    top: 55px;
  }

  .admin-bar .cc-shop-toolbar {
    top: 101px;
  }

  .cc-filter-trigger {
    padding-inline: 8px;
    font-size: 10px;
  }
}

@media (max-width: 719px) {
  .cc-shop-toolbar {
    backdrop-filter: none;
  }

  .cc-shop-intro {
    padding-block: 32px 24px;
  }

  .cc-shop-intro h1 {
    font-size: 44px;
  }

  .cc-shop-intro p {
    margin-bottom: 0;
    font-size: 17px;
  }

  .cc-shop-toolbar__inner {
    width: 100%;
    min-height: 52px;
  }

  .cc-shop-toolbar__desktop,
  .cc-shop-toolbar__summary {
    display: none;
  }

  .cc-shop-toolbar__mobile {
    display: flex;
    width: 100%;
  }

  .cc-shop-toolbar__mobile button {
    display: flex;
    min-height: 52px;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: var(--cc-paper);
    color: var(--cc-ink) !important;
  }

  .cc-shop-toolbar__mobile button:hover,
  .cc-shop-toolbar__mobile button:focus-visible,
  .cc-shop-toolbar__mobile button[aria-expanded="true"] {
    background: var(--cc-paper-light);
    color: var(--cc-ink) !important;
  }

  .cc-shop-toolbar__mobile button:first-child {
    border-right: 1px solid var(--cc-line);
  }

  .cc-shop-panel {
    position: fixed;
    z-index: 120;
    top: auto;
    bottom: 0;
    max-height: min(82svh, 680px);
    overflow-y: auto;
    border-top: 1px solid var(--cc-line);
    box-shadow: 0 -18px 36px rgba(17, 17, 15, .14);
  }

  .cc-shop-panel__form {
    width: 100%;
    padding: 20px 16px 24px;
  }

  .cc-shop-panel__groups {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cc-filter-options--sort {
    flex-direction: column;
  }

  .cc-filter-options--sort label span {
    width: 100%;
    justify-content: flex-start;
  }

  .cc-shop-panel__actions {
    position: sticky;
    bottom: -24px;
    margin-inline: -16px;
    padding: 16px;
    background: var(--cc-paper-light);
  }

  .cc-shop-panel__actions .cc-button {
    min-height: 44px;
    padding-inline: 16px;
  }

  .cc-shop-products {
    min-height: 360px;
    padding-block: 24px 64px;
  }

  .cc-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }

  .cc-shop-card__content {
    padding-top: 10px;
  }

  .cc-shop-card__type {
    gap: 6px;
    font-size: 8px;
  }

  .cc-shop-card__type i {
    width: 12px;
  }

  .cc-shop .cc-shop-card h2 {
    font-size: 15px;
  }

  .cc-shop-card__price {
    font-size: 14px;
  }

  .cc-shop-card__sold-out {
    top: 8px;
    left: 8px;
  }

  .cc-no-results {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-shop-card__image,
  .cc-filter-trigger,
  .cc-filter-options label span,
  .cc-filter-trigger i,
  .cc-sort-trigger i {
    transition: none !important;
  }
}
