/* ==========================================================
   PÁGINA PÚBLICA DA LOJA
========================================================== */

html {
    scroll-behavior: smooth;
}

.pagina-loja {
    background: #f4f7fb;
}


/* ==========================================================
   CAPA DA LOJA
========================================================== */

.perfil-loja {
    width: min(1240px, 94%);
    margin: 20px auto 0;
}

.perfil-loja-capa {
    min-height: 270px;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #0f4c81;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.14);
}

.perfil-loja-capa-img,
.perfil-loja-capa-padrao {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.perfil-loja-capa-img {
    object-fit: cover;
    object-position: center;
}

.perfil-loja-capa-padrao {
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(0, 212, 212, 0.42),
            transparent 28%
        ),
        radial-gradient(
            circle at 65% 100%,
            rgba(59, 130, 246, 0.38),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #071527,
            #0f4c81
        );
}

.perfil-loja-degrade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(4, 12, 25, 0.93) 0%,
            rgba(4, 12, 25, 0.70) 48%,
            rgba(4, 12, 25, 0.25) 100%
        );
}

.perfil-loja-conteudo {
    min-height: 270px;
    position: relative;
    z-index: 2;

    padding: 28px 36px;

    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) 175px;

    align-items: center;
    gap: 22px;

    color: #ffffff;
}


/* LOGO */

.perfil-loja-logo {
    width: 100px;
    height: 100px;

    overflow: hidden;

    border: 4px solid rgba(255, 255, 255, 0.95);
    border-radius: 22px;

    background: #ffffff;
    color: #0f4c81;

    display: grid;
    place-items: center;

    font-size: 31px;
    font-weight: 900;

    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.30);
}

.perfil-loja-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* IDENTIDADE */

.perfil-loja-identidade {
    min-width: 0;
}

.perfil-loja-etiquetas {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.perfil-loja-selo,
.perfil-loja-cidade {
    padding: 6px 10px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;

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

    font-size: 11px;
    font-weight: 800;
}

.perfil-loja-selo {
    background: #00a6a6;
    border-color: #00a6a6;
}

.perfil-loja-identidade h1 {
    margin-top: 10px;

    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
}

.perfil-loja-identidade p {
    max-width: 650px;

    margin-top: 9px;

    color: #e0ecf8;

    font-size: 15px;
    line-height: 1.45;
}


/* RESUMO */

.perfil-loja-resumo {
    margin-top: 13px;

    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}

.perfil-loja-resumo span {
    padding: 7px 10px;

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.10);

    color: #e7f4ff;

    font-size: 12px;
}


/* AÇÕES */

.perfil-loja-acoes {
    min-width: 175px;

    display: flex;
    flex-direction: column;

    gap: 9px;
}

.acao-loja {
    min-height: 44px;

    padding: 11px 14px;

    border-radius: 12px;

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

    font-size: 14px;
    font-weight: 800;

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.acao-loja:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.acao-whatsapp {
    background: #16a34a;
    color: #ffffff;
}

.acao-rota {
    background: #ffffff;
    color: #0f4c81;
}

.acao-instagram {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.22);
}


/* ==========================================================
   NAVEGAÇÃO DA LOJA
========================================================== */

.navegacao-loja {
    width: min(1240px, 94%);

    margin: 12px auto 0;

    position: sticky;

    top: 78px;

    z-index: 8;
}

.navegacao-loja-container {
    padding: 7px;

    display: flex;
    align-items: center;

    gap: 4px;

    overflow-x: auto;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.navegacao-loja a {
    padding: 9px 14px;

    border-radius: 9px;

    color: #475467;

    font-size: 13px;
    font-weight: 800;

    white-space: nowrap;
}

.navegacao-loja a:hover {
    background: #eef6ff;
    color: #0f4c81;
}


/* ==========================================================
   INFORMAÇÕES RÁPIDAS
========================================================== */

.secao-info-loja {
    padding-top: 22px;
    padding-bottom: 18px;
}

.faixa-info-loja {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.info-loja-item {
    min-width: 0;

    padding: 19px;

    display: flex;

    gap: 12px;

    border-right: 1px solid #e2e8f0;
}

.info-loja-item:last-child {
    border-right: 0;
}

.info-loja-icone {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border-radius: 12px;

    background: #eef6ff;

    display: grid;
    place-items: center;

    font-size: 19px;
}

.info-loja-item small,
.info-loja-item strong,
.info-loja-item span {
    display: block;
}

.info-loja-item small {
    color: #667085;

    font-size: 11px;
    font-weight: 700;
}

.info-loja-item strong {
    margin-top: 3px;

    color: #172033;

    font-size: 14px;
}

.info-loja-item span {
    margin-top: 3px;

    color: #667085;

    font-size: 12px;
}


/* ==========================================================
   CATEGORIAS DA LOJA
========================================================== */

.categorias-loja-lista {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 14px;
}

.categoria-loja-item {
    padding: 17px;

    display: grid;

    grid-template-columns: 46px 1fr auto;

    align-items: center;

    gap: 11px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 17px;

    transition:
        transform 0.2s,
        border-color 0.2s,
        box-shadow 0.2s;
}

.categoria-loja-item:hover {
    transform: translateY(-3px);

    border-color: #b8d6ed;

    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.categoria-loja-icone {
    width: 46px;
    height: 46px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #eef6ff,
            #ddf8f8
        );

    display: grid;
    place-items: center;

    font-size: 23px;
}

.categoria-loja-item strong,
.categoria-loja-item small {
    display: block;
}

.categoria-loja-item small {
    margin-top: 3px;

    color: #667085;
}

.categoria-loja-seta {
    color: #0f4c81;

    font-size: 20px;
    font-weight: 900;
}


/* ==========================================================
   TODOS OS PRODUTOS E FILTROS
========================================================== */

.secao-produtos-loja {
    width: 100%;
    max-width: none;

    padding-left:
        max(
            4%,
            calc((100% - 1180px) / 2)
        );

    padding-right:
        max(
            4%,
            calc((100% - 1180px) / 2)
        );

    background: #f8fafc;
}

.ordenacao-loja {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #667085;

    font-size: 14px;
}

.ordenacao-loja select {
    min-height: 42px;

    padding: 0 34px 0 12px;

    border: 1px solid #d7dee8;
    border-radius: 11px;

    background: #ffffff;
}

.produtos-loja-layout {
    display: grid;

    grid-template-columns:
        250px minmax(0, 1fr);

    align-items: start;

    gap: 22px;
}

.filtros-loja {
    padding: 20px;

    position: sticky;

    top: 150px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 20px;
}

.filtro-loja-cabecalho {
    padding-bottom: 15px;

    display: flex;

    justify-content: space-between;

    border-bottom: 1px solid #e2e8f0;
}

.filtro-loja-grupo {
    padding: 17px 0;

    border-bottom: 1px solid #e2e8f0;
}

.filtro-loja-grupo label,
.filtro-loja-grupo > strong {
    display: block;

    margin-bottom: 9px;

    font-size: 14px;
}

.filtro-loja-grupo input[type="search"],
.filtro-loja-grupo input[type="number"] {
    width: 100%;

    min-height: 42px;

    padding: 10px;

    border: 1px solid #d7dee8;
    border-radius: 10px;

    outline: none;
}

.filtro-checkbox {
    padding: 5px 0;

    display: flex !important;

    align-items: center;

    gap: 9px;

    color: #475467;

    cursor: pointer;
}

.filtro-checkbox input {
    width: 16px;
    height: 16px;
}

.filtro-precos {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 7px;
}

.botao-aplicar-filtros {
    width: 100%;

    margin-top: 17px;

    padding: 13px;

    border: 0;
    border-radius: 11px;

    background: #0f4c81;

    color: #ffffff;

    font-weight: 800;

    cursor: pointer;
}

.grade-produtos-loja {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.produto-meta {
    margin-top: 7px;

    color: #667085;

    font-size: 13px;
}


/* ==========================================================
   SOBRE A LOJA
========================================================== */

.sobre-loja-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(320px, 0.85fr);

    gap: 25px;
}

.sobre-loja-texto,
.sobre-loja-mapa {
    min-width: 0;

    padding: 28px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 24px;
}

.sobre-loja-texto h2 {
    font-size: 30px;
}

.sobre-loja-texto > p {
    margin-top: 15px;

    color: #667085;

    line-height: 1.65;
}

.sobre-loja-dados {
    margin-top: 22px;

    display: grid;

    gap: 13px;
}

.sobre-loja-dados div {
    padding: 14px;

    border-radius: 13px;

    background: #f8fafc;
}

.sobre-loja-dados strong,
.sobre-loja-dados span {
    display: block;
}

.sobre-loja-dados span {
    margin-top: 4px;

    color: #667085;

    line-height: 1.5;
}

.mapa-loja-placeholder {
    min-height: 100%;

    padding: 30px;

    border-radius: 18px;

    background:
        radial-gradient(
            circle at top right,
            rgba(0, 166, 166, 0.2),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #eaf2fa,
            #f8fafc
        );

    display: flex;

    flex-direction: column;

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

    text-align: center;
}

.mapa-loja-placeholder > span {
    font-size: 54px;
}

.mapa-loja-placeholder h3 {
    margin-top: 12px;
}

.mapa-loja-placeholder p {
    margin-top: 7px;

    color: #667085;

    line-height: 1.5;
}

.mapa-loja-placeholder a {
    margin-top: 18px;

    padding: 12px 17px;

    border-radius: 11px;

    background: #0f4c81;

    color: #ffffff;

    font-weight: 800;
}


/* ==========================================================
   RESPONSIVO
========================================================== */

@media (max-width: 1050px) {

    .perfil-loja-conteudo {
        grid-template-columns:
            90px minmax(0, 1fr);
    }

    .perfil-loja-logo {
        width: 90px;
        height: 90px;
    }

    .perfil-loja-acoes {
        grid-column: 1 / -1;

        min-width: 0;

        flex-direction: row;
    }

    .perfil-loja-acoes a {
        flex: 1;
    }

    .categorias-loja-lista {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .grade-produtos-loja {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 800px) {

    .navegacao-loja {
        top: 0;
    }

    .perfil-loja-capa {
        min-height: 0;
    }

    .perfil-loja-conteudo {
        min-height: 0;

        padding: 26px;

        grid-template-columns: 82px minmax(0, 1fr);

        align-items: center;
    }

    .perfil-loja-logo {
        width: 82px;
        height: 82px;

        border-radius: 19px;
    }

    .perfil-loja-identidade h1 {
        font-size: 32px;
    }

    .perfil-loja-acoes {
        grid-column: 1 / -1;

        flex-direction: row;
    }

    .faixa-info-loja {
        grid-template-columns: 1fr;
    }

    .info-loja-item {
        border-right: 0;

        border-bottom: 1px solid #e2e8f0;
    }

    .info-loja-item:last-child {
        border-bottom: 0;
    }

    .produtos-loja-layout {
        grid-template-columns: 1fr;
    }

    .filtros-loja {
        position: static;
    }

    .sobre-loja-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .perfil-loja {
        width: 94%;

        margin-top: 14px;
    }

    .perfil-loja-capa {
        border-radius: 19px;
    }

    .perfil-loja-conteudo {
        padding: 22px;

        grid-template-columns: 1fr;

        gap: 15px;
    }

    .perfil-loja-logo {
        width: 76px;
        height: 76px;

        border-radius: 18px;
    }

    .perfil-loja-identidade h1 {
        margin-top: 8px;

        font-size: 30px;
    }

    .perfil-loja-identidade p {
        font-size: 14px;
    }

    .perfil-loja-acoes {
        grid-column: auto;

        flex-direction: column;
    }

    .categorias-loja-lista {
        grid-template-columns: 1fr;
    }

    .grade-produtos-loja {
        grid-template-columns: 1fr;
    }

    .ordenacao-loja {
        margin-top: 15px;

        align-items: flex-start;

        flex-direction: column;
    }

    .ordenacao-loja select {
        width: 100%;
    }

    .sobre-loja-texto,
    .sobre-loja-mapa {
        padding: 21px;
    }
}
/* ==========================================================
   CARDS DE PRODUTOS DA PÁGINA DA LOJA
========================================================== */

.grade-produtos-loja {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}


/* CARD */

.grade-produtos-loja .produto-card {
    min-width: 0;
    height: 560px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 20px;
}


/* ==========================================================
   LINK PRINCIPAL
========================================================== */

.grade-produtos-loja .produto-card-link-principal {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;

    color: inherit;
    text-decoration: none;
}


/* ==========================================================
   IMAGEM
========================================================== */

.grade-produtos-loja .produto-imagem {
    width: 100%;

    height: 310px;
    min-height: 310px;
    max-height: 310px;

    padding: 16px;

    position: relative;

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

    overflow: hidden;

    background: #ffffff;

    border-bottom: 1px solid #edf0f4;
}


.grade-produtos-loja .produto-foto {
    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;
    max-height: 100% !important;

    display: block;

    object-fit: contain !important;
    object-position: center !important;
}


.grade-produtos-loja .imagem-placeholder {
    width: 100%;
    height: 100%;

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

    background: #f8fafc;

    font-size: 60px;
}


/* ==========================================================
   CONTEÚDO
========================================================== */

.grade-produtos-loja .produto-conteudo {
    min-width: 0;

    height: 170px;
    min-height: 170px;
    max-height: 170px;

    padding: 15px 18px;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}


/* CATEGORIA */

.grade-produtos-loja .produto-categoria {
    height: 18px;
    min-height: 18px;

    overflow: hidden;

    color: #0f4c81;

    font-size: 12px;
    font-weight: 800;

    line-height: 18px;
}


/* NOME */

.grade-produtos-loja .produto-conteudo h3 {
    height: 48px;
    min-height: 48px;
    max-height: 48px;

    margin: 6px 0 0;

    overflow: hidden;

    color: #172033;

    font-size: 17px;
    line-height: 24px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* PREÇO ANTIGO */

.grade-produtos-loja .produto-preco-antigo {
    height: 18px;
    min-height: 18px;

    margin-top: 5px;

    color: #98a2b3;

    font-size: 13px;
    line-height: 18px;

    text-decoration: line-through;
}


/* PREÇO */

.grade-produtos-loja .produto-preco {
    height: 32px;
    min-height: 32px;

    margin-top: 2px;

    color: #101828;

    font-size: 25px;
    font-weight: 900;

    line-height: 32px;
}


/* MARCA */

.grade-produtos-loja .produto-meta {
    height: 18px;
    min-height: 18px;

    margin-top: 5px;

    overflow: hidden;

    color: #667085;

    font-size: 12px;
    line-height: 18px;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* ==========================================================
   AÇÕES
========================================================== */

.grade-produtos-loja .produto-card-acoes {
    width: 100%;

    height: 78px;
    min-height: 78px;

    margin-top: auto;
    padding: 12px 18px 18px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: stretch;

    gap: 8px;
}


.grade-produtos-loja .produto-card-acoes a {
    min-width: 0;
    height: 48px;

    margin: 0;
    padding: 8px;

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

    text-align: center;

    border-radius: 14px;

    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}


.grade-produtos-loja .botao-ver-produto {
    background: #0f568f;
    color: #ffffff;
}


.grade-produtos-loja .botao-whatsapp-card {
    background: #16a34a;
    color: #ffffff;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1050px) {

    .grade-produtos-loja {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================================
   CELULAR
========================================================== */

@media (max-width: 600px) {

    .grade-produtos-loja {
        grid-template-columns: 1fr;
    }

    .grade-produtos-loja .produto-card {
        height: 540px;
    }

    .grade-produtos-loja .produto-imagem {
        height: 290px;
        min-height: 290px;
        max-height: 290px;
    }
}

/* ==========================================================
   AJUSTE DO TOPO E LOGO DA LOJA
========================================================== */

.perfil-loja-conteudo {
    grid-template-columns: 125px minmax(0, 1fr) 175px;
    gap: 26px;
    padding: 26px 36px;
}

.perfil-loja-logo {
    width: 125px;
    height: 125px;
    min-width: 125px;

    padding: 3px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.08);

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.perfil-loja-logo img {
    width: 100%;
    height: 100%;

    padding: 0;

    object-fit: contain;
    object-position: center;
}

.perfil-loja-identidade {
    min-width: 0;
}

.perfil-loja-identidade h1 {
    margin-top: 10px;

    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.05;

    white-space: normal;
}

.perfil-loja-identidade p {
    max-width: 620px;

    margin-top: 9px;

    font-size: 14px;
    line-height: 1.45;
}

.perfil-loja-resumo {
    margin-top: 13px;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1050px) {

    .perfil-loja-conteudo {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 20px;
    }

    .perfil-loja-logo {
        width: 105px;
        height: 105px;
        min-width: 105px;
    }

    .perfil-loja-acoes {
        grid-column: 1 / -1;
    }
}


/* ==========================================================
   CELULAR
========================================================== */

@media (max-width: 600px) {

    .perfil-loja-conteudo {
        grid-template-columns: 85px minmax(0, 1fr);
        padding: 22px;
        gap: 15px;
    }

    .perfil-loja-logo {
        width: 85px;
        height: 85px;
        min-width: 85px;

        padding: 5px;

        border-radius: 19px;
    }

    .perfil-loja-identidade h1 {
        font-size: 28px;
    }

    .perfil-loja-acoes {
        grid-column: 1 / -1;
    }
}

/* ==========================================================
   MAPA DA LOJA
========================================================== */

.sobre-loja-mapa {
    width: 100%;
    align-self: start;

    display: flex;
    flex-direction: column;

    gap: 14px;
}

.mapa-loja-wrapper {
    width: 100%;

    overflow: hidden;

    border: 1px solid #dbe3ec;
    border-radius: 18px;

    background: #e8edf3;
}

#mapa-loja,
#mapa-loja.leaflet-container {
    width: 100% !important;

    height: 420px !important;
    min-height: 420px !important;

    position: relative;

    background: #e8edf3;

    z-index: 1;
}

#mapa-loja img,
#mapa-loja .leaflet-tile,
#mapa-loja .leaflet-marker-icon,
#mapa-loja .leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
}

#mapa-loja .leaflet-pane,
#mapa-loja .leaflet-tile,
#mapa-loja .leaflet-marker-icon,
#mapa-loja .leaflet-marker-shadow,
#mapa-loja .leaflet-tile-container {
    position: absolute;
}

.botao-rota-mapa {
    width: 100%;
    min-height: 46px;

    margin: 0;
    padding: 12px 16px;

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

    border-radius: 12px;

    background: #0f568f;
    color: #ffffff;

    font-weight: 800;
}

.botao-rota-mapa:hover {
    background: #0b4777;
}

@media (max-width: 600px) {

    #mapa-loja,
    #mapa-loja.leaflet-container {
        height: 320px !important;
        min-height: 320px !important;
    }
}


/* GARANTE QUE O LEAFLET RESPEITE O TAMANHO */

#mapa-loja.leaflet-container {
    width: 100% !important;
    height: auto !important;

    aspect-ratio: 1 / 1;
}


/* BOTÃO ABAIXO DO MAPA */

.botao-rota-mapa {
    width: 100%;
    min-height: 46px;

    margin: 0;
}


/* CELULAR */

@media (max-width: 600px) {

    #mapa-loja,
    #mapa-loja.leaflet-container {
        aspect-ratio: 1 / 1;
    }
}