.category-showcase {
  --category-showcase-gap: clamp(20px, 1.8vw, 32px);
  --category-showcase-gutter: clamp(16px, 2.6vw, 50px);
  --category-showcase-text: #111;
  --category-showcase-muted: #4d4d4d;
  --category-showcase-card-title-text: #fff;
  --category-showcase-card-background: #f1f1f1;
  --category-showcase-button-text: #111;
  --category-showcase-button-border: #222;
  --category-showcase-highlight: #111;
  --category-showcase-highlight-text: #fff;
  width: 100%;
  padding: clamp(42px, 5vw, 82px) var(--category-showcase-gutter);
  color: var(--category-showcase-text);
}

.category-showcase,
.category-showcase * {
  box-sizing: border-box;
}

.category-showcase__inner {
  width: 100%;
  min-width: 0;
}

.category-showcase__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  margin-bottom: 32px;
}

.category-showcase__title,
.category-showcase__card-title {
  margin: 0;
  font: inherit;
}

.category-showcase__title {
  color: var(--category-showcase-text);
  font-size: clamp(20px, 1.45vw, 28px);
  font-weight: 600;
  line-height: 1.2;
}

.category-showcase__subtitle {
  margin: 10px 0 0;
  color: var(--category-showcase-muted);
  font-size: 15px;
  line-height: 1.55;
}

.category-showcase__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 22px;
  padding: 12px 24px;
  border: 1px solid var(--category-showcase-button-border);
  color: var(--category-showcase-button-text);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease, background-color .2s ease;
}

.category-showcase__button:hover,
.category-showcase__button:focus {
  color: var(--category-showcase-highlight-text);
  background: var(--category-showcase-highlight);
  text-decoration: none;
}

.category-showcase__carousel {
  min-width: 0;
  overflow: hidden;
}

.category-showcase__carousel .swiper-container {
  width: 100%;
  overflow: hidden;
}

.category-showcase__card {
  height: auto;
  min-width: 0;
}

.category-showcase__card-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--category-showcase-ratio);
  overflow: hidden;
  color: var(--category-showcase-text);
  background: var(--category-showcase-card-background);
  text-decoration: none;
  isolation: isolate;
}

.category-showcase__card-link:hover,
.category-showcase__card-link:focus {
  color: var(--category-showcase-text);
  text-decoration: none;
}

.category-showcase__card-link:focus-visible {
  outline: 2px solid var(--category-showcase-highlight);
  outline-offset: 3px;
}

.category-showcase__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s cubic-bezier(.2, .65, .3, 1);
}

.category-showcase__card-title {
  position: absolute;
  z-index: 1;
  left: clamp(18px, 1.35vw, 26px);
  right: clamp(18px, 1.35vw, 26px);
  bottom: clamp(18px, 1.35vw, 26px);
  color: var(--category-showcase-card-title-text);
  font-size: clamp(18px, 1.15vw, 22px);
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 1px 10px rgba(255, 255, 255, .22);
  transition: color .2s ease;
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .category-showcase__card-link:hover .category-showcase__image {
    transform: scale(1.045) !important;
  }

  .category-showcase__card-link:hover .category-showcase__card-title {
    color: var(--category-showcase-text);
  }
}

@media (max-width: 767px) {
  .category-showcase__card.swiper-slide {
    width: 82%;
  }
}

@media (max-width: 1023px) {
  .category-showcase__carousel .swiper-buttons {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .category-showcase--has-intro .category-showcase__inner {
    display: flex;
    align-items: stretch;
    gap: var(--category-showcase-gap);
  }

  .category-showcase__intro {
    flex: 0 0 22%;
    margin-bottom: 0;
    padding-right: clamp(8px, 1vw, 18px);
  }

  .category-showcase__carousel {
    flex: 1 1 auto;
  }

  .category-showcase__carousel .swiper-buttons > div {
    width: 42px;
    height: 42px;
    color: #111;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-showcase__button,
  .category-showcase__card-title,
  .category-showcase__image {
    transition: none;
  }
}
