/* GEFF storefront — Pista Viva: white court, one red route, external handoff. */

.cbn-sol-shop {
  position: relative;
  overflow: clip;
  background: var(--cbn-sol-paper);
  color: var(--cbn-sol-ink);
}

.cbn-shop-route {
  position: absolute;
  top: 38rem;
  bottom: 33rem;
  left: clamp(18px, 5vw, 76px);
  z-index: 0;
  width: 2px;
  background: var(--cbn-sol-red);
  opacity: 0.72;
}

.cbn-shop-route::before,
.cbn-shop-route::after {
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  background: var(--cbn-sol-red);
  content: "";
}

.cbn-shop-route::before {
  top: 0;
}
.cbn-shop-route::after {
  bottom: 0;
}

.cbn-shop-hero,
.cbn-shop-handoff,
.cbn-shop-chapters,
.cbn-shop-catalog,
.cbn-shop-close {
  position: relative;
  z-index: 1;
}

.cbn-shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(40px, 7vw, 118px);
  min-height: min(760px, calc(100svh - 80px));
  padding: clamp(64px, 8vw, 120px) var(--cbn-sol-pad) clamp(70px, 9vw, 128px);
}

.cbn-shop-hero__copy {
  max-width: 640px;
}

.cbn-shop-hero h1,
.cbn-shop-chapter h2,
.cbn-shop-close h2 {
  margin: 14px 0 0;
  font-family: var(--cbn-font-display);
  font-weight: 950;
  letter-spacing: var(--cbn-sol-track-section);
  line-height: 0.84;
  text-transform: uppercase;
}

.cbn-shop-hero h1 {
  max-width: 620px;
  font-size: clamp(58px, 7.1vw, 112px);
  letter-spacing: var(--cbn-sol-track-hero);
}

.cbn-shop-hero__lead {
  max-width: 560px;
  margin: 30px 0 0;
  font-size: clamp(20px, 1.75vw, 25px);
  font-weight: 760;
  line-height: 1.35;
}

.cbn-shop-hero__note {
  max-width: 520px;
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--cbn-sol-red);
  color: var(--cbn-sol-grey);
  font-size: 16px;
  line-height: 1.55;
}

.cbn-shop-hero .cbn-sol-button {
  margin-top: 32px;
}

.cbn-shop-hero__collage {
  position: relative;
  width: min(100%, 720px);
  min-height: 530px;
  margin-inline: auto;
}

.cbn-shop-hero__tile {
  position: absolute;
  width: min(54%, 360px);
  margin: 0;
  overflow: hidden;
  background: #f3f1ed;
}

.cbn-shop-hero__tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.cbn-shop-hero__tile--1 {
  top: 7%;
  left: 0;
  z-index: 2;
  transform: rotate(-4deg);
}
.cbn-shop-hero__tile--2 {
  top: 0;
  right: 5%;
  z-index: 1;
  transform: rotate(5deg);
}
.cbn-shop-hero__tile--3 {
  right: 0;
  bottom: 0;
  z-index: 3;
  transform: rotate(-2deg);
}

.cbn-shop-hero__tile--1::after,
.cbn-shop-hero__tile--3::after {
  position: absolute;
  inset: 0;
  border: 8px solid var(--cbn-sol-red);
  content: "";
  pointer-events: none;
}

.cbn-shop-hero__stamp {
  position: absolute;
  right: 35%;
  bottom: 15%;
  z-index: 4;
  margin: 0;
  color: var(--cbn-sol-ink);
  font-family: var(--cbn-font-display);
  font-size: clamp(31px, 4vw, 52px);
  font-weight: 950;
  line-height: 0.78;
  text-align: right;
}

.cbn-shop-handoff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px var(--cbn-sol-pad);
  background: var(--cbn-sol-ink);
  color: white;
}

.cbn-shop-handoff p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.cbn-shop-handoff strong {
  color: white;
}
.cbn-shop-handoff span {
  color: #d1ccc4;
}
.cbn-sol-text-link--light {
  color: white;
  border-color: white;
  white-space: nowrap;
}

.cbn-shop-chapters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--cbn-sol-line);
  background: white;
}

.cbn-shop-chapters a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  padding: 18px var(--cbn-sol-pad);
  border-right: 1px solid var(--cbn-sol-line);
  color: var(--cbn-sol-ink);
  font-size: 15px;
  font-weight: 820;
  text-decoration: none;
}

.cbn-shop-chapters a:last-child {
  border-right: 0;
}
.cbn-shop-chapters a:hover,
.cbn-shop-chapters a:focus-visible {
  color: var(--cbn-sol-red);
}

.cbn-shop-chapter {
  padding: clamp(76px, 9vw, 138px) var(--cbn-sol-pad) clamp(80px, 10vw, 150px);
  background: white;
}

.cbn-shop-chapter + .cbn-shop-chapter {
  border-top: 1px solid var(--cbn-sol-line);
}

.cbn-shop-chapter__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: end;
  gap: 34px;
  margin-bottom: clamp(50px, 7vw, 90px);
}

.cbn-shop-chapter__heading .cbn-sol-section-index {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}
.cbn-shop-chapter h2 {
  margin: 0;
  font-size: clamp(48px, 6vw, 90px);
}
.cbn-shop-chapter__heading > p:last-child {
  margin: 0;
  color: var(--cbn-sol-grey);
  font-size: 17px;
  line-height: 1.55;
}

.cbn-shop-products {
  display: grid;
  gap: clamp(70px, 10vw, 150px);
}

.cbn-shop-product {
  display: grid;
  grid-template-columns: minmax(300px, 0.94fr) minmax(0, 1.06fr);
  align-items: start;
  gap: clamp(34px, 6vw, 100px);
  scroll-margin-top: 100px;
}

.cbn-shop-product--2 {
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
}
.cbn-shop-product--2 .cbn-shop-product__media {
  order: 2;
}

.cbn-shop-product__media {
  position: relative;
  max-width: 640px;
}
.cbn-shop-product__main-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f3f1ed;
}
.cbn-shop-product__ref {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 9px 12px;
  background: var(--cbn-sol-red);
  color: white;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.cbn-shop-product__copy {
  max-width: 640px;
}
.cbn-shop-product__category {
  margin: 3px 0 18px;
  color: var(--cbn-sol-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.cbn-shop-product h3 {
  max-width: 590px;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--cbn-font-display);
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 950;
  letter-spacing: var(--cbn-sol-track-card);
  line-height: 0.9;
  text-transform: uppercase;
}
.cbn-shop-product__description {
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.55;
  white-space: normal;
}
.cbn-shop-product__shown {
  margin: 16px 0 0;
  color: var(--cbn-sol-grey);
  font-size: 14px;
  line-height: 1.5;
}
.cbn-shop-product__price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 22px;
  padding: 14px 0;
  border-top: 1px solid var(--cbn-sol-line);
  border-bottom: 1px solid var(--cbn-sol-line);
}
.cbn-shop-product__price span {
  color: var(--cbn-sol-grey);
  font-size: 12px;
  line-height: 1.35;
}
.cbn-shop-product__price strong {
  font-size: 36px;
  font-weight: 900;
  line-height: 0.9;
  white-space: nowrap;
}
.cbn-shop-product__cta {
  min-height: 52px;
}

.cbn-shop-product__details {
  margin-top: 25px;
  border-top: 1px solid var(--cbn-sol-line);
}
.cbn-shop-product__details summary {
  padding: 17px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
  list-style-position: outside;
}
.cbn-shop-product__details summary::marker {
  color: var(--cbn-sol-red);
}
.cbn-shop-product__details-body {
  padding: 2px 0 0;
}
.cbn-shop-product__options-note,
.cbn-shop-product__pending,
.cbn-shop-product__colors {
  margin: 0 0 20px;
  color: var(--cbn-sol-grey);
  font-size: 14px;
  line-height: 1.5;
}
.cbn-shop-product__pending strong {
  color: var(--cbn-sol-ink);
}
.cbn-shop-component {
  margin: 0 0 20px;
  padding-left: 14px;
  border-left: 2px solid var(--cbn-sol-red);
}
.cbn-shop-component h4 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.3;
}
.cbn-shop-component p {
  margin: 4px 0;
  color: var(--cbn-sol-grey);
  font-size: 14px;
  line-height: 1.5;
}
.cbn-shop-component strong {
  color: var(--cbn-sol-ink);
}

.cbn-shop-gallery {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--cbn-sol-red) transparent;
}
.cbn-shop-gallery img {
  flex: 0 0 min(180px, 34vw);
  width: min(180px, 34vw);
  aspect-ratio: 1;
  object-fit: cover;
  scroll-snap-align: start;
}

.cbn-shop-close {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(70px, 9vw, 130px) var(--cbn-sol-pad);
  background: var(--cbn-sol-red);
  color: white;
}

.cbn-shop-close .cbn-sol-section-index {
  color: white;
}
.cbn-shop-close h2 {
  margin-top: 17px;
  font-size: clamp(52px, 7.8vw, 116px);
}
.cbn-shop-close .cbn-sol-button--light {
  flex: 0 0 auto;
}

.cbn-sol-shop :is(a, button, summary):focus-visible {
  outline: 3px solid #ffcc00;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .cbn-shop-hero {
    grid-template-columns: 1fr;
  }
  .cbn-shop-hero__collage {
    min-height: min(72vw, 570px);
  }
  .cbn-shop-product,
  .cbn-shop-product--2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .cbn-shop-product--2 .cbn-shop-product__media {
    order: 0;
  }
  .cbn-shop-product__media,
  .cbn-shop-product__copy {
    max-width: 700px;
  }
}

@media (max-width: 620px) {
  .cbn-shop-route {
    top: 34rem;
    left: 18px;
    bottom: 25rem;
  }
  .cbn-shop-hero {
    gap: 42px;
    padding-top: 54px;
  }
  .cbn-shop-hero h1 {
    font-size: clamp(52px, 15vw, 74px);
  }
  .cbn-shop-hero__lead {
    margin-top: 22px;
    font-size: 19px;
  }
  .cbn-shop-hero__note {
    font-size: 15px;
  }
  .cbn-shop-hero__collage {
    min-height: 92vw;
  }
  .cbn-shop-hero__tile {
    width: 56%;
  }
  .cbn-shop-hero__stamp {
    right: 31%;
    bottom: 12%;
    font-size: 29px;
  }
  .cbn-shop-handoff {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding-block: 20px;
  }
  .cbn-shop-handoff p {
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
  }
  .cbn-shop-chapters {
    grid-template-columns: 1fr;
  }
  .cbn-shop-chapters a {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--cbn-sol-line);
  }
  .cbn-shop-chapters a:last-child {
    border-bottom: 0;
  }
  .cbn-shop-chapter {
    padding-top: 68px;
  }
  .cbn-shop-chapter__heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 52px;
  }
  .cbn-shop-chapter__heading .cbn-sol-section-index {
    margin-bottom: -8px;
  }
  .cbn-shop-chapter h2 {
    font-size: clamp(46px, 14vw, 70px);
  }
  .cbn-shop-product h3 {
    font-size: clamp(31px, 10vw, 48px);
    hyphens: auto;
  }
  .cbn-shop-product__description {
    font-size: 16px;
  }
  .cbn-shop-product__price {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }
  .cbn-shop-product__price strong {
    font-size: 32px;
  }
  .cbn-shop-product__cta {
    display: flex;
    width: 100%;
    min-height: 52px;
  }
  .cbn-shop-gallery img {
    flex-basis: 63vw;
    width: 63vw;
  }
  .cbn-shop-close {
    align-items: flex-start;
    flex-direction: column;
    gap: 34px;
  }
  .cbn-shop-close h2 {
    font-size: clamp(48px, 14vw, 68px);
  }
  .cbn-shop-close .cbn-sol-button {
    width: 100%;
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cbn-shop-hero__tile--1,
  .cbn-shop-hero__tile--2,
  .cbn-shop-hero__tile--3 {
    transform: none;
  }
}
