/**
 * Home — bloco de produtos em destaque.
 *
 * A imagem local funciona como fallback até que o administrador envie outra
 * mídia pelo bloco `destaque_produtos`. Dimensões calculadas pelo Swiper ficam
 * inline por exigência da biblioteca; toda apresentação está centralizada aqui.
 */
.home-featured-products {
    background-image: url('../../images/bg-destaque.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-featured-products__carousel-shell {
    position: relative;
}

.home-featured-products__carousel {
    overflow: hidden;
    width: 100%;
}

.home-featured-products__carousel .products.swiper-wrapper {
    align-items: stretch;
    display: flex;
    margin: 0;
}

.home-featured-products__carousel .products > .product.swiper-slide {
    box-sizing: border-box;
    display: flex;
    float: none;
    height: auto;
    margin: 0;
    padding: 0;
}

.home-featured-products__carousel .post_item_wrap {
    align-items: center;
    display: flex;
    flex: 1;
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.home-featured-products__carousel .post_featured,
.home-featured-products__carousel .post_thumb {
    width: 100%;
}

.home-featured-products__carousel .post_content {
    align-items: center;
    display: flex;
    flex: 1;
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.home-featured-products__carousel .post_content .price {
    margin-top: auto;
    text-align: center;
}

.home-featured-products__carousel .post_thumb .home-featured-products__image {
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: auto;
}

.home-featured-products__thumb {
    text-align: center;
}

.home-featured-products__carousel .home-featured-products__thumb > a {
    align-items: center;
    display: flex;
    justify-content: center;
    width: 100%;
}

.home-featured-products__carousel .post_content .star-rating {
    align-self: center;
    float: none;
    margin-left: auto;
    margin-right: auto;
}

.home-featured-products__brand {
    color: #888;
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
}

.home-featured-products__control {
    align-items: center;
    background: #fea526;
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    height: 44px;
    justify-content: center;
    opacity: 0.92;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, opacity 0.2s ease;
    width: 44px;
    z-index: 5;
}

.home-featured-products__control:hover,
.home-featured-products__control:focus-visible {
    background: #202020;
    opacity: 1;
}

.home-featured-products__control--previous {
    left: -58px;
}

.home-featured-products__control--next {
    right: -58px;
}

.home-featured-products.sem-navegacao .home-featured-products__control {
    display: none;
}

@media (max-width: 1279px) {
    .home-featured-products__carousel-shell {
        padding: 0 52px;
    }

    .home-featured-products__control--previous {
        left: 0;
    }

    .home-featured-products__control--next {
        right: 0;
    }
}

@media (max-width: 767px) {
    .home-featured-products__carousel-shell {
        padding: 0 42px;
    }

    .home-featured-products__control {
        height: 36px;
        width: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-featured-products__control {
        transition: none;
    }
}
