.featured-carousel {
    position: relative;
    overflow: hidden;
    transition: background-color 200ms ease, color 200ms ease;
    background: var(--color-bg-primary);
}

.carousel-container {
    max-width: 80rem;
    margin: 0 auto;
}

.carousel-stage {
    position: relative;
    box-sizing: border-box;
    height: clamp(400px, 55vh, 500px);
}


.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 500ms ease;
}

.carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.slide-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

@media (min-width: 768px) {
    .slide-layout {
        flex-direction: row;
        align-items: stretch;
    }

    .slide-content {
        height: 100%;
    }
}

.slide-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary);

    padding: 16px;

    height: auto;
    min-height: 220px;
}

@media (min-width: 768px) {
    .slide-image {
        width: 50%;
        min-height: 0;
        height: 100%;
    }
}

.slide-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.slide-image form {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image-button {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;

    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.slide-content {
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background-color 200ms ease, color 200ms ease;
}

@media (min-width: 768px) {
    .slide-content {
        width: 50%;
        padding: 3rem;
    }
}

.featured-carousel .slide-content {
    background: var(--color-bg-secondary);
}


.slide-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    margin: 0 0 1rem 0;
}

@media (min-width: 768px) {
    .slide-title {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

.featured-carousel .slide-title {
    color: var(--color-text-strong);
}

.slide-description {
    margin: 0 0 1.5rem 0;
}

.featured-carousel .slide-description {
    color: var(--color-text-carousel-description);
}


.slide-price {
    font-size: 1.5rem;
    line-height: 2rem;
    margin: 0 0 1.5rem 0;
}

.featured-carousel .slide-price {
    color: var(--color-accent);
}

.slide-button {
    color: var(--color-button-primary-text);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: 0;
    cursor: pointer;
    transition: background-color 200ms ease;
    align-self: flex-start;
}

.featured-carousel .slide-button {
    background: var(--color-button-primary-bg);
}

.featured-carousel .slide-button:hover {
    background: var(--color-button-primary-hover);
}


.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 9999px;
    box-shadow: var(--shadow-carousel-nav);
    z-index: 10;
    transition: background-color 200ms ease;
    background: var(--color-carousel-nav-btn);
}

.carousel-nav:hover {
    background: var(--color-bg-secondary);
}

.carousel-nav--prev {
    left: 1rem;
}

.carousel-nav--next {
    right: 1rem;
}

.carousel-nav__icon {
    width: 24px;
    height: 24px;
    display: block;
    color: var(--color-text-strong);
}

.carousel-indicators {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    border: 0;
    cursor: pointer;
    transition: background-color 200ms ease;
    background: var(--color-carousel-dot);
}

.carousel-dot:hover {
    background: var(--color-carousel-dot-hover);
}

.carousel-dot.is-active {
    background: var(--color-accent);
}