﻿/* *********************************** Estrutura */

.bv-header-establishment-lojas {
    min-width: 0;
}

    .bv-header-establishment-lojas *,
    .bv-header-establishment-lojas *::before,
    .bv-header-establishment-lojas *::after {
        box-sizing: border-box;
    }

.bv-header-no-scroll {
    overflow: hidden;
}

/* *********************************** Resumo */

.bv-header-establishment-lojas__summary {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px 15px;
    border: 1px solid var(--est-border, #e5e8ee);
    border-radius: 20px;
    background: var(--est-surface, #fff);
    box-shadow: 0 7px 22px rgba(22, 30, 48, .055);
}

    .bv-header-establishment-lojas__summary > div {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 11px;
    }

.bv-header-establishment-lojas__summary-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--est-primary-soft, rgba(255, 46, 147, .11));
    color: var(--est-primary-dark, #d91f78);
}

.bv-header-establishment-lojas__summary h3,
.bv-header-establishment-lojas__summary p {
    margin: 0;
}

.bv-header-establishment-lojas__summary h3 {
    color: var(--est-text, #202124);
    font-size: .94rem;
    font-weight: 950;
}

.bv-header-establishment-lojas__summary p {
    margin-top: 3px;
    color: var(--est-muted, #737b88);
    font-size: .69rem;
    font-weight: 720;
}

.bv-header-establishment-lojas__filter-button {
    min-height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid var(--est-border, #e5e8ee);
    border-radius: 999px;
    background: #fff;
    color: var(--est-text, #202124);
    font-size: .73rem;
    font-weight: 900;
    cursor: pointer;
}

    .bv-header-establishment-lojas__filter-button:hover,
    .bv-header-establishment-lojas__filter-button.is-active {
        border-color: rgba(255, 46, 147, .30);
        background: var(--est-primary-softer, rgba(255, 46, 147, .065));
        color: var(--est-primary-dark, #d91f78);
    }

    .bv-header-establishment-lojas__filter-button small {
        min-width: 19px;
        height: 19px;
        display: grid;
        place-items: center;
        padding: 0 5px;
        border-radius: 999px;
        background: var(--est-primary, #ff2e93);
        color: #fff;
        font-size: .57rem;
    }

/* *********************************** Chips */

.bv-header-establishment-lojas__filterchips {
    display: flex;
    gap: 7px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .bv-header-establishment-lojas__filterchips::-webkit-scrollbar {
        display: none;
    }

    .bv-header-establishment-lojas__filterchips > span,
    .bv-header-establishment-lojas__filterchips > button {
        min-height: 32px;
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0 10px;
        border: 1px solid rgba(255, 46, 147, .18);
        border-radius: 999px;
        background: var(--est-primary-softer, rgba(255, 46, 147, .065));
        color: var(--est-primary-dark, #d91f78);
        font-size: .66rem;
        font-weight: 850;
    }

/* *********************************** Destaques */

.bv-header-establishment-lojas__destaques {
    --bv-destaques-card-ratio: 16 / 8.8;
    --bv-destaques-radius: 22px;
    --bv-destaques-card-radius: 19px;
    margin-bottom: 18px;
    border: 1px solid var(--est-border, #e5e8ee);
    background: #fff;
    box-shadow: 0 10px 30px rgba(22, 30, 48, .08);
}

    .bv-header-establishment-lojas__destaques
    .bv-destaques__heading h2 i {
        color: var(--est-primary, #ff2e93);
    }

.bv-header-establishment-lojas__destaque-card {
    min-height: 270px;
}

.bv-header-establishment-lojas__destaque-category,
.bv-header-establishment-lojas__destaque-rating,
.bv-header-establishment-lojas__destaque-opening {
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: rgba(255, 255, 255, .91);
    font-size: .70rem;
    font-weight: 780;
}

    .bv-header-establishment-lojas__destaque-rating i {
        color: #ffd34d;
    }

    .bv-header-establishment-lojas__destaque-rating strong {
        color: #fff;
    }

    .bv-header-establishment-lojas__destaque-rating span {
        color: rgba(255, 255, 255, .75);
    }

    .bv-header-establishment-lojas__destaque-opening.is-open strong {
        color: #78f0ae;
    }

    .bv-header-establishment-lojas__destaque-opening.is-closed strong {
        color: #ff9e9e;
    }

/* *********************************** Título da lista */

.bv-header-establishment-lojas__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 2px 14px;
}

    .bv-header-establishment-lojas__heading h3,
    .bv-header-establishment-lojas__heading p {
        margin: 0;
    }

    .bv-header-establishment-lojas__heading h3 {
        color: var(--est-text, #202124);
        font-size: 1rem;
        font-weight: 950;
    }

    .bv-header-establishment-lojas__heading p {
        margin-top: 4px;
        color: var(--est-muted, #737b88);
        font-size: .72rem;
    }

    .bv-header-establishment-lojas__heading > span {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 15px;
        background: var(--est-primary-soft, rgba(255, 46, 147, .11));
        color: var(--est-primary-dark, #d91f78);
    }

/* *********************************** Grid */

.bv-header-establishment-lojas__grid {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.bv-header-establishment-lojas__item {
    min-width: 0;
}

.bv-header-establishment-lojas__card {
    height: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(170px, 34%) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--est-border, #e5e8ee);
    border-radius: 21px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(22, 30, 48, .055);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

    .bv-header-establishment-lojas__card:hover {
        border-color: rgba(255, 46, 147, .24);
        box-shadow: 0 14px 32px rgba(22, 30, 48, .11);
        transform: translateY(-2px);
    }

/* *********************************** Imagem */

.bv-header-establishment-lojas__media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 245px;
    display: block;
    overflow: hidden;
    background: #edf0f4;
}

    .bv-header-establishment-lojas__media img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 280ms ease;
    }

.bv-header-establishment-lojas__card:hover
.bv-header-establishment-lojas__media img {
    transform: scale(1.035);
}

.bv-header-establishment-lojas__placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: grid;
    place-items: center;
    background: linear-gradient( 135deg, rgba(255, 46, 147, .10), rgba(36, 25, 76, .09) );
    color: var(--est-primary-dark, #d91f78);
    font-size: 2rem;
}

.bv-header-establishment-lojas__media.has-image-error img,
.bv-destaque-card__media.has-image-error img {
    display: none;
}

.bv-header-establishment-lojas__media.has-image-error::after,
.bv-destaque-card__media.has-image-error::after {
    content: "\f54e";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient( 135deg, rgba(255, 46, 147, .10), rgba(36, 25, 76, .09) );
    color: var(--est-primary-dark, #d91f78);
    font-family: "Font Awesome 6 Free";
    font-size: 2rem;
    font-weight: 900;
}

.bv-header-establishment-lojas__type {
    position: absolute;
    top: 9px;
    left: 9px;
    max-width: calc(100% - 18px);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 999px;
    background: rgba(17, 24, 39, .57);
    color: #fff;
    font-size: .60rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

/* *********************************** Corpo */

.bv-header-establishment-lojas__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 16px 17px 14px;
}

.bv-header-establishment-lojas__title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--est-text, #202124);
    font-size: 1.02rem;
    line-height: 1.28;
    font-weight: 950;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bv-header-establishment-lojas__category,
.bv-header-establishment-lojas__rating,
.bv-header-establishment-lojas__address {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    color: var(--est-muted, #737b88);
    font-size: .69rem;
    line-height: 1.35;
    font-weight: 760;
}

    .bv-header-establishment-lojas__category i,
    .bv-header-establishment-lojas__address i {
        color: var(--est-primary, #ff2e93);
    }

    .bv-header-establishment-lojas__rating i {
        color: #f4b400;
    }

    .bv-header-establishment-lojas__rating strong {
        color: var(--est-text, #202124);
        font-size: .78rem;
        font-weight: 950;
    }

    .bv-header-establishment-lojas__rating span {
        color: var(--est-muted, #737b88);
    }

.bv-header-establishment-lojas__address {
    align-items: flex-start;
}

.bv-header-establishment-lojas__opening {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 7px;
    margin-top: auto;
    padding-top: 14px;
    font-size: .68rem;
    font-weight: 760;
}

    .bv-header-establishment-lojas__opening strong {
        font-weight: 950;
    }

    .bv-header-establishment-lojas__opening.is-open strong {
        color: #168a4d;
    }

    .bv-header-establishment-lojas__opening.is-closed strong {
        color: #c72d2d;
    }

    .bv-header-establishment-lojas__opening.is-unknown strong {
        color: var(--est-muted, #737b88);
    }

    .bv-header-establishment-lojas__opening span {
        color: var(--est-muted, #737b88);
    }

/* *********************************** Modal */

.bv-header-establishment-lojas-filter {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    align-items: end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

    .bv-header-establishment-lojas-filter[hidden] {
        display: none !important;
    }

    .bv-header-establishment-lojas-filter.is-open {
        opacity: 1;
        pointer-events: auto;
    }

.bv-header-establishment-lojas-filter__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .66);
    backdrop-filter: blur(4px);
}

.bv-header-establishment-lojas-filter__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 90dvh;
    overflow-y: auto;
    padding: 18px;
    border-radius: 28px 28px 0 0;
    background: #fff;
    box-shadow: 0 -18px 50px rgba(15, 23, 42, .22);
}

.bv-header-establishment-lojas-filter__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

    .bv-header-establishment-lojas-filter__header h3,
    .bv-header-establishment-lojas-filter__header p {
        margin: 0;
    }

    .bv-header-establishment-lojas-filter__header h3 {
        font-size: 1.04rem;
        font-weight: 950;
    }

    .bv-header-establishment-lojas-filter__header p {
        margin-top: 4px;
        color: var(--est-muted, #737b88);
        font-size: .71rem;
    }

    .bv-header-establishment-lojas-filter__header button {
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        border: 1px solid var(--est-border, #e5e8ee);
        border-radius: 50%;
        background: #f8f9fb;
    }

.bv-header-establishment-lojas-filter__search {
    min-height: 47px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid var(--est-border, #e5e8ee);
    border-radius: 16px;
    color: var(--est-muted, #737b88);
}

    .bv-header-establishment-lojas-filter__search input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--est-text, #202124);
        font-size: .79rem;
    }

.bv-header-establishment-lojas-filter__group {
    margin: 20px 0 0;
    padding: 18px 0 0;
    border: 0;
    border-top: 1px solid var(--est-border, #e5e8ee);
}

    .bv-header-establishment-lojas-filter__group legend {
        margin-bottom: 9px;
        font-size: .79rem;
        font-weight: 950;
    }

.bv-header-establishment-lojas-filter__option {
    position: relative;
    display: block;
    cursor: pointer;
}

    .bv-header-establishment-lojas-filter__option +
    .bv-header-establishment-lojas-filter__option {
        margin-top: 7px;
    }

    .bv-header-establishment-lojas-filter__option input {
        position: absolute;
        opacity: 0;
    }

    .bv-header-establishment-lojas-filter__option > span {
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 11px;
        border: 1px solid var(--est-border, #e5e8ee);
        border-radius: 15px;
    }

    .bv-header-establishment-lojas-filter__option
    input:checked + span {
        border-color: rgba(255, 46, 147, .40);
        background: var(--est-primary-softer, rgba(255, 46, 147, .065));
    }

    .bv-header-establishment-lojas-filter__option strong,
    .bv-header-establishment-lojas-filter__option small {
        display: block;
    }

    .bv-header-establishment-lojas-filter__option strong {
        color: var(--est-text, #202124);
        font-size: .75rem;
        font-weight: 900;
    }

    .bv-header-establishment-lojas-filter__option small {
        margin-top: 2px;
        color: var(--est-muted, #737b88);
        font-size: .63rem;
    }

    .bv-header-establishment-lojas-filter__option > span > i {
        color: var(--est-primary, #ff2e93);
        opacity: 0;
    }

    .bv-header-establishment-lojas-filter__option
    input:checked + span > i {
        opacity: 1;
    }

.bv-header-establishment-lojas-filter__fields {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--est-border, #e5e8ee);
}

    .bv-header-establishment-lojas-filter__fields label > span {
        display: block;
        margin-bottom: 6px;
        color: var(--est-text, #202124);
        font-size: .73rem;
        font-weight: 900;
    }

    .bv-header-establishment-lojas-filter__fields select {
        width: 100%;
        min-height: 45px;
        padding: 0 11px;
        border: 1px solid var(--est-border, #e5e8ee);
        border-radius: 14px;
        background: #fff;
        color: var(--est-text, #202124);
        font-size: .76rem;
    }

.bv-header-establishment-lojas-filter__footer {
    position: sticky;
    bottom: -18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 23px -18px -18px;
    padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--est-border, #e5e8ee);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

/* *********************************** Desktop */

@media (min-width: 880px) {
    .bv-header-establishment-lojas__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bv-header-establishment-lojas__card {
        grid-template-columns: 1fr;
    }

    .bv-header-establishment-lojas__media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .bv-header-establishment-lojas__body {
        min-height: 245px;
    }
}

@media (min-width: 680px) {
    .bv-header-establishment-lojas-filter {
        place-items: center;
        padding: 24px;
    }

    .bv-header-establishment-lojas-filter__panel {
        width: min(650px, 100%);
        border-radius: 28px;
    }

    .bv-header-establishment-lojas-filter__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* *********************************** Celular */

@media (max-width: 560px) {
    .bv-header-establishment-lojas__summary {
        padding: 12px;
    }

    .bv-header-establishment-lojas__filter-button {
        width: 42px;
        min-width: 42px;
        padding: 0;
    }

        .bv-header-establishment-lojas__filter-button > span {
            display: none;
        }

    .bv-header-establishment-lojas__card {
        grid-template-columns: 1fr;
    }

    .bv-header-establishment-lojas__media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .bv-header-establishment-lojas__body {
        min-height: 235px;
        padding: 14px;
    }

    .bv-header-establishment-lojas-filter__footer {
        grid-template-columns: 1fr;
    }
}

@media (hover: none) {
    .bv-header-establishment-lojas__card:hover {
        transform: none;
    }

        .bv-header-establishment-lojas__card:hover
        .bv-header-establishment-lojas__media img {
            transform: none;
        }
}

@media (prefers-reduced-motion: reduce) {
    .bv-header-establishment-lojas *,
    .bv-header-establishment-lojas *::before,
    .bv-header-establishment-lojas *::after,
    .bv-header-establishment-lojas-filter,
    .bv-header-establishment-lojas-filter * {
        animation: none !important;
        transition: none !important;
    }
}
