.category-section {
    margin-bottom: 2rem;
}

.product-transition {
    overflow: hidden;
    animation: slide-in 0.3s ease-in-out;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.hero-carousel-container {
    border-radius: 16px;
    height: 70vh;
    overflow: hidden;
    margin-top: 1em;
}

.hero-carousel {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    min-height: auto;
}

.hero-slide picture,
.hero-slide-image {
    width: 100%;
    height: 835px;
    object-fit: cover;
    display: block;
}

.hero-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    max-width: 520px;
    color: #fff;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
}

.hero-slide-content h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.hero-slide-content p {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.4;
}

.hero-slide-button {
    align-self: flex-start;
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 220px;
    }

    .hero-slide-content {
        padding: 1.5rem;
        max-width: 100%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0) 100%);
        justify-content: flex-end;
    }

    .hero-slide-content h2 {
        font-size: 1.5rem;
    }

    .hero-slide-content p {
        font-size: 1rem;
    }
}

