.xmas {
  --ink: #1a1a1a;
  --muted: #3a3a3a;
  --line: #e4e4e4;
  --soft: #f6f6f6;
  --font: "Lane Crawford", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.xmas,
.xmas *,
.xmas *::before,
.xmas *::after {
  box-sizing: border-box;
}

.xmas button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.xmas img {
  display: block;
  max-width: 100%;
}

.xmas .page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 3.75rem clamp(1.25rem, 4vw, 2.5rem) 5rem;
}

.xmas .intro {
  text-align: center;
}

.xmas .intro__title {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.xmas .intro__sub {
  max-width: 60rem;
  margin: 0.9rem auto 0;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.xmas .intro__copy {
  max-width: 44rem;
  margin: 1.85rem auto 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink);
  text-wrap: balance;
}

.xmas .intro__copy p {
  margin: 0;
  text-align: center;
}

.xmas .intro__copy p + p {
  margin-top: 0.9rem;
}

.xmas .block {
  margin-top: 4.5rem;
  text-align: center;
}

.xmas .block__title {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.45;
  text-transform: uppercase;
}

.xmas .block__lede {
  max-width: 40rem;
  margin: 0.95rem auto 1.5rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink);
  text-wrap: balance;
  text-align: center;
}

.xmas .tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 2.15rem;
  margin: 1.85rem 0 1.35rem;
}

.xmas .tabs__btn {
  padding: 0.2rem 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.xmas .tabs__btn:hover {
  border-bottom-color: #bdbdbd;
}

.xmas .tabs__btn.is-active {
  font-weight: 700;
  border-bottom-color: var(--ink);
}

.xmas .carousel {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
  align-items: center;
  gap: 0.35rem;
}

.xmas .arrow {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #222;
}

.xmas .arrow svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xmas .arrow:hover {
  color: #000;
}

.xmas .arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.xmas .carousel:not(.is-scrollable) .arrow {
  visibility: hidden;
  pointer-events: none;
}

.xmas .viewport {
  min-width: 0;
  overflow: hidden;
}

.xmas .track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 1.35rem) / 4);
  gap: 1.35rem;
  margin: 0;
  padding: 0 0 0.25rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.xmas .track::-webkit-scrollbar {
  display: none;
}

.xmas .card {
  scroll-snap-align: start;
  min-width: 0;
}

.xmas .card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.xmas .card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 0.9rem;
  background: transparent;
}

.xmas .card__media.is-empty {
  background: var(--soft);
}

.xmas .card__media img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.xmas .card__link:hover .card__media img {
  transform: scale(1.035);
}

.xmas .card__brand {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.xmas .card__name {
  min-height: 2.7em;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.xmas .card__price {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  font-weight: bold;
}

@media (max-width: 900px) {
  .xmas .track {
    grid-auto-columns: calc((100% - 2 * 1rem) / 3);
    gap: 1rem;
  }
}

@media (max-width: 680px) {
  .xmas .page {
    padding: 2.25rem 1rem 3.5rem;
  }

  .xmas .block {
    margin-top: 3.25rem;
  }

  .xmas .tabs {
    gap: 0.25rem 1.15rem;
    margin-top: 1.4rem;
  }

  .xmas .tabs__btn {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .xmas .carousel {
    grid-template-columns: minmax(0, 1fr);
  }

  .xmas .arrow {
    display: none;
  }

  .xmas .track {
    grid-auto-columns: calc((100% - 0.85rem) / 2.15);
    gap: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xmas .track {
    scroll-behavior: auto;
  }

  .xmas .card__media img,
  .xmas .card__link:hover .card__media img {
    transition: none;
    transform: none;
  }
}
