.hero-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
  overflow: hidden;
  border-radius: 18px;
  background: #171f28;
  isolation: isolate;
}

.hero-slides {
  display: grid;
  width: 100%;
  height: clamp(210px, 35vw, 520px);
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.hero-slides [hidden],
.hero-carousel-controls[hidden] {
  display: none !important;
}

.hero-slide {
  grid-area: 1 / 1;
  display: block;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .65s ease;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.hero-slide:focus-visible {
  outline: 3px solid #dec28f;
  outline-offset: -5px;
}

.hero-slide picture,
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  object-fit: cover;
  object-position: center;
  background: #171f28;
}

.hero-carousel-controls {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  background: rgba(15,20,27,.56);
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
  backdrop-filter: blur(5px);
  pointer-events: auto;
}

.hero-carousel-dot {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hero-carousel-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  box-shadow: 0 1px 3px rgba(0,0,0,.55);
  content: "";
  transition: transform .2s ease, background-color .2s ease;
}

.hero-carousel-dot[aria-current="true"]::before {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.25), 0 1px 4px rgba(0,0,0,.65);
  transform: scale(1.25);
}

.hero-carousel-dot:hover::before {
  background: #dec28f;
}

.hero-carousel-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-carousel.is-single-slide .hero-slide {
  transition: none;
}

@media (max-width: 640px) {
  .hero-carousel {
    margin-bottom: 28px;
    border-radius: 12px;
  }

  .hero-slides {
    height: clamp(210px, 66vw, 430px);
  }

  .hero-carousel-controls {
    bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-carousel-dot::before {
    transition: none;
  }
}

.catalog-empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 20px;
  border: 1px dashed #d6cec1;
  border-radius: 14px;
  background: #f7f4ee;
  color: #625d54;
  text-align: center;
}

.catalog-empty-state a {
  color: #26231f;
  font-weight: 700;
  text-underline-offset: 3px;
}
