.stock-carousel {
  position: relative;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid rgba(95, 108, 86, 0.14);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 22px 54px rgba(51, 44, 31, 0.08);
}

.custom-consult-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.custom-consult-inline p {
  margin: 0;
}

.custom-consult-inline .button {
  grid-column: 2;
  min-width: 138px;
  justify-content: center;
}

.stock-carousel__stage {
  position: relative;
  display: block;
  min-height: clamp(360px, 46vw, 560px);
  overflow: hidden;
  color: #fbf6ec;
}

.stock-carousel__stage:focus-visible {
  outline: 2px solid rgba(183, 152, 90, 0.46);
  outline-offset: -6px;
}

.stock-carousel__stage img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.96) contrast(0.99);
  transform: scale(1.01);
  transition: opacity 280ms ease, transform 720ms ease, filter 720ms ease;
}

.stock-carousel__stage:hover img,
.stock-carousel__stage:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.02) contrast(1.02);
}

.stock-carousel__stage.is-changing img {
  opacity: 0.42;
}

.stock-carousel__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 34, 28, 0.04) 28%, rgba(30, 34, 28, 0.7)),
    linear-gradient(90deg, rgba(30, 34, 28, 0.34), transparent 54%);
  pointer-events: none;
}

.stock-carousel__counter {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 1;
  color: rgba(255, 252, 244, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
}

.stock-carousel__copy {
  position: absolute;
  left: clamp(22px, 4vw, 46px);
  right: clamp(22px, 4vw, 46px);
  bottom: clamp(24px, 4vw, 46px);
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: 38rem;
}

.stock-carousel__copy span {
  color: rgba(255, 252, 244, 0.76);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.stock-carousel__copy strong {
  font-family: var(--heading);
  font-size: clamp(2.1rem, 5vw, 5.2rem);
  font-weight: 400;
  line-height: 0.98;
}

.stock-carousel__controls {
  position: absolute;
  inset: 50% 18px auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.stock-carousel__button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 252, 244, 0.48);
  border-radius: 999px;
  background: rgba(35, 38, 32, 0.22);
  color: #fff9ed;
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
  pointer-events: auto;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.stock-carousel__button:hover,
.stock-carousel__button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 252, 244, 0.78);
  background: rgba(35, 38, 32, 0.42);
}

.stock-carousel__dots {
  position: absolute;
  left: clamp(22px, 4vw, 46px);
  right: clamp(22px, 4vw, 46px);
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.stock-carousel__dot {
  width: 18px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 252, 244, 0.34);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease;
}

.stock-carousel__dot.is-active {
  width: 34px;
  background: rgba(255, 252, 244, 0.86);
}

@media (max-width: 720px) {
  .stock-carousel {
    border-radius: 24px;
  }

  .stock-carousel__stage {
    min-height: 360px;
  }

  .stock-carousel__copy {
    bottom: 58px;
  }

  .stock-carousel__controls {
    inset: 50% 12px auto;
  }

  .stock-carousel__button {
    width: 38px;
    height: 38px;
  }

  .stock-carousel__dots {
    left: 18px;
    right: 18px;
    bottom: 20px;
    max-height: 28px;
    overflow: hidden;
  }

  .stock-carousel__dot {
    width: 14px;
  }

  .stock-carousel__dot.is-active {
    width: 26px;
  }

  .custom-consult-inline {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .custom-consult-inline .button {
    grid-column: auto;
    justify-self: start;
  }
}
