:root {
    --star-size: 16px;
    /*--star-size-md: 25px;*/
    --star-size-md: 20px;
    /*--star-size-lg: 40px;*/
    --star-color: #fafb4c;
    --logo-height: 23vh;
}

.main .hero {
    margin-bottom: 50px;
    margin-top: 25px;
}

.main .hero,
.main .hero .hero-search {
    border-radius: 50px;
}

.main .hero {
    position: relative;
    width: 100%;
    height: 100%;
    background: none;
}

.main .hero .hero-search {
    background-color: var(--bbx-locales-primary-color);
    width: 100%;
    position: relative;
    padding: 50px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    /*gap: 15px;*/
    gap: 20px;
    /*visibility: visible;*/
}

.main .hero .hero-search .hero-title {
    color: #FFFFFF;
    text-align: center;
    /*font-size: 25px;*/
    font-size: 30px;
    font-weight: 700;
    line-height: 30px;
    margin-bottom: 0;
}

.main .hero .hero-search .hero-description {
    color: #FFF;
    font-size: 18px;
    font-weight: 400;
    line-height: 23px;
    text-align: center;
    margin-bottom: 0;
}

.main .hero .hero-search .hero-form {
    width: 100%;
    position: relative;
}

.main .hero .hero-search .hero-form .hero-input {
    width: 100%;
    border-radius: 4px;
    border: 0;
    height: 46px;
    color: var(--bbx-locales-grey-text);
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    padding: 5px 15px;
    padding-right: 50px;
}

.main .hero .hero-search .hero-form .hero-input::placeholder {
    font-style: italic;
}

.main .hero .hero-search .hero-form .hero-submit {
    border-radius: 4px;
    background-color: var(--bbx-locales-secondary-color);
    color: #FFFFFF;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: absolute;
    right: 3px;
    top: 3px;
    cursor: pointer;
    transition: background-color .3s ease;
}

.main .hero .hero-search .hero-form .hero-submit:hover {
    background-color: var(--bbx-locales-primary-color);
}

/* Supplier banner */
.main .hero.supplier {
    background-color: var(--bbx-locales-primary-color);
    display: flex;
    justify-content: space-between;
    position: relative;
    align-items: center;
    color: white;
}

.main .hero.supplier .infos-wrapper {
    padding: 50px;
    display: flex;
    flex-direction: column;
    /*gap: 15px;*/
    gap: 20px;
    justify-content: center;
    height: 100%;
}

.main .hero.supplier .infos-wrapper .supplier-name {
    color: #FFFFFF;
    /*font-size: 25px;*/
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.main .hero.supplier .infos-wrapper .supplier-subtitle {
    color: #FFFFFF;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 137.5%;
    margin-bottom: 0;
}

.main .hero.supplier .images-wrapper,
.main .hero.supplier .images-wrapper .logo {
    border-radius: 50px;
    background-color: white;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.main .hero.supplier .images-wrapper {
    width: 40%;
    position: relative;
    height: 100%;
}

.main .hero.supplier .images-wrapper .logo {
    position: absolute;
    border: 6px solid var(--bbx-locales-primary-color);
    width: var(--logo-height);
    height: var(--logo-height);
    top: calc(50% - (var(--logo-height) / 2));
    left: -15%;
    /*left: calc(var(--logo-height) / 2);*/
    background-size: cover;
}

.main .hero.supplier .supplier-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main .hero.supplier .supplier-rating-wrapper .badge-certified {
    border-radius: 10px;
    padding: 5px 10px;
    background: var(--bbx-locales-secondary-color);
}

.main .hero.supplier .supplier-rating-wrapper .rating-text {
    color: #FFFFFF;
    font-size: 16px;
}

.main .hero.supplier .supplier-rating-wrapper .supplier-rating {
    max-width: calc(var(--star-size) * 5);
    white-space: nowrap;
    text-align: center;
    font-weight: 400;
}

.main .hero.supplier .supplier-rating-wrapper .supplier-rating .rating-wrapper {
    overflow: hidden;
    display: flex;
}

.main .hero.supplier .supplier-rating-wrapper .supplier-rating .rating-wrapper .flex {
    display: inline-flex;
}

.main .hero.supplier .supplier-rating-wrapper .supplier-rating .rating-wrapper .star {
    display: inline-block;
    width: var(--star-size);
    aspect-ratio: 1;
    /*background: var(--bbx-locales-secondary-color);*/
    background: var(--star-color);
    clip-path: polygon(50% 0,
    calc(50% * (1 + sin(.4turn))) calc(50% * (1 - cos(.4turn))),
    calc(50% * (1 - sin(.2turn))) calc(50% * (1 - cos(.2turn))),
    calc(50% * (1 + sin(.2turn))) calc(50% * (1 - cos(.2turn))),
    calc(50% * (1 - sin(.4turn))) calc(50% * (1 - cos(.4turn))));
}

/* Media Queries */
@media screen and (min-width: 576px) {
    .main .hero {
        /*margin-bottom: 100px;*/
        margin-bottom: 150px;
    }

    .main .hero.supplier {
        /*margin-bottom: 50px;*/
        margin-bottom: 100px;
    }

    .main .hero.supplier .images-wrapper .logo {
        min-height: 150px;
        min-width: 150px;
        top: calc(50% - (max(var(--logo-height), 150px) / 2));
    }

    .main .hero {
        background-color: lightgrey;
        width: 100%;
        /*height: 46vh;*/
        /*height: 36vh;*/
        /*min-height: 316px;*/
        position: relative;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        /*visibility: hidden;*/
    }

    .main .hero .hero-search {
        width: 80%;
        left: calc(50% - 40%);
        bottom: -50px;
    }

    .main .hero.supplier .infos-wrapper .supplier-name {
        font-size: 40px;
    }

    .main .hero.supplier .infos-wrapper .supplier-subtitle {
        /*font-size: 25px;*/
        font-size: 20px;
    }

    .main .hero.supplier .supplier-rating-wrapper .rating-text {
        /*font-size: 25px;*/
        font-size: 20px;
    }

    .main .hero.supplier .supplier-rating-wrapper .supplier-rating {
        max-width: calc(var(--star-size-md) * 5);
    }

    .main .hero.supplier .supplier-rating-wrapper .supplier-rating .rating-wrapper .star {
        width: var(--star-size-md);
    }
}

@media screen and (min-width: 768px) {
    .main .hero .hero-search .hero-title {
        /*font-size: 40px;*/
        /*line-height: 50px;*/
        font-size: 48px;
        line-height: 62px;
    }

    .main .hero .hero-search .hero-description {
        /*font-size: 30px;*/
        /*line-height: 45px;*/
        font-size: 20px;
        line-height: 28px;
        /*margin-bottom: 20px;*/
    }

    .main .hero .hero-search .hero-form .hero-input {
        /*font-size: 20px;*/
    }

    .main .hero.supplier .infos-wrapper .supplier-name {
        /*font-size: 60px;*/
        font-size: 40px;
    }

    .main .hero.supplier .infos-wrapper .supplier-subtitle {
        /*font-size: 30px;  */
        font-size: 20px;
    }

    .main .hero.supplier .supplier-rating-wrapper .rating-text {
        /*font-size: 30px;*/
        font-size: 20px;
    }

    .main .hero.supplier .supplier-rating-wrapper .supplier-rating {
        max-width: calc(var(--star-size-md) * 5);
    }

    .main .hero.supplier .supplier-rating-wrapper .supplier-rating .rating-wrapper .star {
        width: var(--star-size-md);
    }
}

@media screen and (min-width: 992px) {
    .main .hero {
        height: 36vh;
        min-height: 366px;
    }

    .main .hero .hero-search {
        position: absolute;
    }

    .main .hero.supplier .infos-wrapper {
        padding-left: 100px;
        max-width: 55%;
    }
}

@media screen and (min-width: 1200px) {
    .main .hero .hero-search {
        padding: 50px 150px;
    }
}