/*
 * Carrossel principal com todos os produtos
 * Engerádios
 */

.radio-card--carousel {
    position: relative;
    overflow: hidden;
}

.hero-radio-viewport {
    position: relative;
    height: 78%;
    overflow: hidden;
}

.hero-all-products-track {
    display: flex;
    width: max-content;
    height: 100%;

    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.hero-all-products-slide {
    position: relative;

    width: 348px;
    height: 100%;
    flex: 0 0 348px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px 38px 48px;
}

.hero-all-products-slide img {
    display: block;

    width: 100%;
    height: 100%;
    max-height: 265px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 20px 23px rgba(0, 0, 0, 0.38)
        );

    transition:
        transform 320ms ease,
        filter 320ms ease;
}

.hero-all-products-slide:hover img {
    transform: scale(1.045);

    filter:
        drop-shadow(
            0 24px 28px rgba(0, 0, 0, 0.48)
        );
}

.hero-all-products-slide__label {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 8px 12px;

    color: rgba(255, 255, 255, 0.96);

    background: rgba(17, 17, 17, 0.71);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;

    backdrop-filter: blur(6px);

    font-family: Montserrat, Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.hero-all-products-slide__brand {
    color: #ff5b61;
}

.hero-radio-caption {
    min-height: 103px;
}

.hero-radio-caption b {
    display: block;
}

.hero-radio-caption small {
    display: block;
}

.hero-product-counter {
    position: absolute;
    z-index: 8;
    top: 18px;
    left: 18px;

    padding: 6px 10px;

    color: #ffffff;

    background: rgba(17, 17, 17, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;

    backdrop-filter: blur(5px);

    font-family: Montserrat, Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.045em;
}

.hero-product-progress {
    position: absolute;
    z-index: 8;
    left: 0;
    right: 0;
    bottom: 0;

    height: 3px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.12);
}

.hero-product-progress span {
    display: block;
    width: 0;
    height: 100%;

    background: #d71920;

    transition: width 180ms linear;
}

.hero-product-control {
    position: absolute;
    z-index: 12;
    top: 50%;

    width: 38px;
    height: 54px;

    display: grid;
    place-items: center;

    padding: 0;

    color: #ffffff;

    background: rgba(215, 25, 32, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    opacity: 0.16;

    transition:
        opacity 200ms ease,
        background-color 200ms ease,
        transform 200ms ease;
}

.radio-card--carousel:hover .hero-product-control,
.hero-product-control:focus-visible {
    opacity: 1;
}

.hero-product-control:hover,
.hero-product-control:focus-visible {
    background: #e71a22;
    outline: none;

    transform:
        translateY(-50%)
        scale(1.05);
}

.hero-product-control--previous {
    left: 9px;
}

.hero-product-control--next {
    right: 9px;
}

.hero-product-pause {
    position: absolute;
    z-index: 12;
    top: 17px;
    right: 17px;

    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    padding: 0;

    color: #ffffff;

    background: rgba(17, 17, 17, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;

    cursor: pointer;

    opacity: 0.35;

    transition:
        opacity 180ms ease,
        background-color 180ms ease;
}

.radio-card--carousel:hover .hero-product-pause,
.hero-product-pause:focus-visible {
    opacity: 1;
}

.hero-product-pause:hover {
    background: #d71920;
}

@media (max-width: 1180px) {
    .hero-all-products-slide {
        width: 310px;
        flex-basis: 310px;
    }
}

@media (max-width: 900px) {
    .hero-all-products-slide {
        width: 100vw;
        flex-basis: 100vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-all-products-track {
        transition: none;
    }

    .hero-all-products-slide img,
    .hero-product-control,
    .hero-product-progress span {
        transition: none;
    }
}
