* {
    font-family: "Exo", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

html {
    overflow: hidden;
}

body {
    background-color: #ffffff;
    overflow: hidden;
}

h5 {
    margin-top: 0.5rem;
}

.galeria {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
}

.conteudo {
    width: 20%;
    margin: 15px;
    box-sizing: border-box;
    float: left;
    border-radius: 10px;
    cursor: pointer;
    padding-top: 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
        0 10px 10px rgba(0, 0, 0, 0.22);
    transition: .4s;
    background: #f2f2f2;
}

.conteudo:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16),
        0 3px 6px rgba(0, 0, 0, 0.23);
    transform: translate(0px, -8px);
}

/* .conteudo img {
    border-radius: 20px;
    width: 122px;
    height: 122px;
    text-align: center;
    margin: 0 auto;
    display: block;
} */

/* .conteudo p {
    text-align: center;
    color: #b2bec3;
    padding-top: 0 8px;
} */

/* Cabeçalho com position: fixed */
header {
    left: 25px;
    margin-left: 0px;
    width: 90%;
    background-color: #ffffff;
    z-index: 90;
}

header.active {
    margin-left: 225px;
    width: 72%;
}

.cor-empresa {
    background-color: initial;
}

/* Container para alinhar elementos dentro do cabeçalho */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    max-width: 720x;
    margin: 0 auto;
}

/* Campo de pesquisa */
.search-input {
    flex: 1;
    margin-right: 10px;
}

.svg-search-loading {
    position: absolute;
    right: 10px;
    display: none;
}

/* Ícone da sacola de compras */
.cart-icon {
    padding-top: 5px;
    flex-shrink: 0;
}

main {
    overflow-y: auto;
    max-height: calc(90vh - 60px);
    /* margin-left: 24px; */

    transition: left 0.3s;
    background-color: #ffffff;
}

main.active {
    margin-left: 250px;
}

/* Estilo personalizado para a barra de rolagem do elemento main */
main::-webkit-scrollbar {
    width: 8px;
}

/* Estilo da alça da barra de rolagem do elemento main */
main::-webkit-scrollbar-thumb {
    background-color: #f1f1f1;
    border-radius: 4px;
}

/* Estilo do fundo da barra de rolagem do elemento main */
main::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

.rounded-circle {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Barra lateral */
#sidebar {
    position: fixed;
    height: 100%;
    width: 220px;
    top: 0;
    left: -220px;
    transition: left 0.3s;
    background-color: #343a40;
    color: white;
    border-top-right-radius: 10px;
    z-index: 98;
}

#sidebar.active {
    left: 0px;
}

.sidebar-header {
    text-align: center;
    padding: 0px;
    padding-right: 10px;
    max-height: 300px;
}

.sidebar-header h4 {
    margin: 0;
}

#sidebar ul.nav.flex-column {
    margin-top: 10px;
}

#sidebar ul.nav.flex-column .nav-item {
    padding: 0;
    margin-bottom: 4px;
    padding-bottom: 4px;
    max-height: 31px;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

#sidebar ul.nav.flex-column .nav-link {
    color: #272727;
    margin: 0;
    padding: 0px;
}

#sidebar ul.nav.flex-column .nav-link:hover {
    color: white;
}

#sidebar ul.nav.flex-column button:hover {
    background-color: #495057;
}

/* Estilo para a barra de rolagem da barra lateral */
.sidebar-scroll {
    max-height: calc(95vh - 150px);
    overflow-y: auto;
}

/* Estilo personalizado para a barra de rolagem */
.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

/* Estilo da alça da barra de rolagem */
.sidebar-scroll::-webkit-scrollbar-thumb {
    background-color: #d2d2d2;
    border-radius: 4px;
}

/* Estilo do fundo da barra de rolagem */
.sidebar-scroll::-webkit-scrollbar-track {
    background-color: inherit;
}

/* Botão de alternância da barra lateral */
.toggle-button {
    position: fixed;
    top: 7px;
    left: 5px;
    z-index: 99;
    transition: left 0.3s;
    border-radius: 5px;
}

.toggle-button:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.toggle-button.active {
    left: 170px;
}

.content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
}

.content h1 {
    margin-bottom: 20px;
}


/* Style for new product card */
/* ----------------------------------- */
.products__container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
    grid-auto-flow: column;
    overflow-x: hidden;
    overflow-y: hidden;
    /* white-space: nowrap; */
    padding: 10px;
    gap: 15px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.product-card-box {
    height: 230px;
}

.product-card {
    scroll-snap-align: start;
    width: 126px;
    height: 100%;
    border-radius: 5px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    position: relative;
    /* display: inline-block; */
    transition: margin-right 0.3s ease;
}

.product-image {
    width: 100%;
    height: 125px;
    padding: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.product-image span {
    /* width: 100px;
    height: 100px; */
    display: block;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-image__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background-color: rgba(69, 71, 69, 0.1);
    pointer-events: none;
}

.product-info {
    /* padding-top: 10px; */
    text-align: left;
    height: 95px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.product-name {
    color: #444;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    max-height: 2.4em;
    /* Limita a altura a duas linhas */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Mostra até 2 linhas */
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 16px;
    color: #555;
    font-weight: bolder;
    margin: 0;
}

.product-description {
    font-size: 12px;
    color: #868686;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-to-cart-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.add-to-cart-btn {
    z-index: 1;
}

@media only screen and (max-width: 768px) {
    .products__container {
        overflow-x: auto;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .product-card-box {
        margin-right: 10px;
    }

    .product-card {
        margin: 0 !important;
        width: 100px;
        height: 200px;
    }

    .product-image {
        width: 100%;
        height: 100px;
        padding: 5px;
    }

}

/* ------------------------------------- */
/* End of Style for new product card */

/* .card {
    margin-bottom: 0;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.5rem;
} */

.is-hidden {
    display: none;
}

/* Classe CSS para limitar o tamanho da imagem do produto */
.card-img {
    height: 100%;
    width: auto;
    /* Mantém a proporção da imagem */
}

.categoria-titulo {
    /* width: 100%; */
    justify-content: space-between;
    margin-top: 30px;
    padding-left: 30px;
    font-size: 20px;
    /* Tamanho da fonte */
    font-weight: bold;
    /* Peso da fonte (negrito) */
    color: #454545;
    /* Cor do texto */
    /* Espaço inferior para separação */
    /* border-bottom: 2px solid #333; */
    /* Linha de separação na parte inferior */
    padding-bottom: 5px;
    /* Espaçamento entre o texto e a linha */
}

.categoria-titulo h3 {
    font-size: 1.5rem;
    margin: 0;
    /* Tamanho da fonte do título da categoria */
    color: #333;
    /* Cor do texto */
    /* border-bottom: 2px solid #ccc; */
    /* Linha separadora abaixo do título */
    padding-bottom: 5px;
    /* Espaçamento abaixo da linha */
}

.ver-mais-bottom {
    display: none;
}

/* .preco-card {
    bottom: 0;
    left: 0;
    margin: 10px;
}

.btn-comprar {
    font-size: 0.7rem;
} */

.footer-icon {
    max-width: 30px;
}

/* Classe para exibir a barra lateral em telas maiores que 768px (tamanho de um tablet, por exemplo) */
@media (min-width: 768px) {
    #sidebar {
        left: 0;
    }

    header {
        margin-left: 230px;
    }

    main {
        margin-left: 200px;
    }

    #productModal .modal-dialog {
        max-width: 300px;
    }
}

@media screen and (max-width: 480px) {

    header {
        width: 100%;
    }

    main {
        margin: 5px;
        padding-left: 10px !important;
        padding-right: 0 !important;
    }

    .content {
        margin: 0;
        padding: 0;
    }

    .ver-mais-top {
        display: none;
    }

    main .ver-mais-bottom {
        display: block;
    }

    .modal-dialog {
        display: contents;
        max-width: fit-content;
    }

    .modal-body {
        /* max-height: 400px; */
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .space-evenly {
        justify-content: space-evenly !important;
    }

    .modal-content {
        height: 100%;
    }


}

/* Estilo para a descrição do produto no modal com quebra de linha automática */
.modal-body p {
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    /* Adiciona quebra de linha automática */
}

/* Estilo para centralizar a imagem dentro do modal */
/*  */
.modal-body img {
    display: block;
    margin: 0 auto;
    max-width: 200px;
}

#carouselExampleIndicators {
    width: 250px;
    /* Defina a largura máxima desejada */
    max-height: 300px;
    /* Defina a altura máxima desejada */
    margin: 0 auto;
    /* Centralizar o carousel */
}

#carouselExampleIndicators .carousel-inner img {
    width: 100%;
    /* Ajustar a largura da imagem ao container */
    height: auto;
    /* Manter a proporção da imagem */
    max-height: 300px;
    /* Garantir que a altura da imagem não exceda a altura máxima do container */
    object-fit: cover;
    /* Cobrir o container mantendo a proporção da imagem */
}

.modal-header .close {
    position: absolute;
    top: 0.4rem;
    right: 1rem;
    color: #ffffff;
}

/* Estilo para o título do modal */
.modal-title {
    text-align: center;
    /* background-color: #6c7d71; */
    /* Cor de fundo cinza */
    color: white;
    /* Cor do texto */
    padding: 5px 0;
    /* Espaçamento interno superior e inferior para centralização */
    margin: 0;
    /* Zera a margem para remover o espaço em branco ao redor do título */
    width: 100%;
    color: white;
}


.texto-cortado {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limite o texto a 2 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Define o comportamento de quebra de linha padrão */
    text-overflow: ellipsis;
    /* Adiciona uma elipse no final do texto cortado */
}

#abrirSacolaBtn {
    color: white;
    background-color: #09a437;
}

#abrirSacolaBtn:hover {
    color: white;
    background-color: #034c19fd;
}

#sacolaModal {
    height: 100%;
    overflow-y: hidden;
    /* Oculta a barra de rolagem na janela toda */
}

.modal-dialog {
    max-width: fit-content;
}

#confirmacaoModal {
    top: 200px;
    justify-self: center;
    height: 100%;
}

#confirmacaoModalContent {
    max-width: 200px;
    border-radius: 10px;
}

.botoes-modal-vertical {
    display: flex;
    flex-direction: column;
    align-content: center;
}

.modal-body {
    /* max-height: 400px; */
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 0;
}

.total-sacola {
    position: sticky;
    background-color: #f8f8f8;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.modal-footer {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    padding: 10px;
    border-top: none;
    border-radius: 10px;
    /* justify-content: space-between; */
}

#pagamentoFooter {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    padding: 10px;
    justify-content: space-around;
}

/* Estilo personalizado para a barra de rolagem */
.modal-body::-webkit-scrollbar {
    width: 8px;
    /* Largura da barra de rolagem */
}

/* Estilo da alça da barra de rolagem */
.modal-body::-webkit-scrollbar-thumb {
    background-color: #373738;
    /* Cor da alça da barra de rolagem */
    border-radius: 4px;
    /* Borda arredondada da alça da barra de rolagem */
}

/* Estilo do fundo da barra de rolagem */
.modal-body::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    /* Cor de fundo da barra de rolagem */
}

/* #productModal .modal-dialog {
    max-width:300px;
} */

.remover-produto {
    position: relative;
    left: -15px;
}

#loadingPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    color: white;
    display: none;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

.endereco-card {
    width: 100%;
}

/* Estilo para a lista com barra de rolagem e limite de altura */
#listaBairros {
    position: relative;
    max-height: 100px;
    /* Defina a altura máxima desejada */
    overflow-y: auto;
    /* Adiciona uma barra de rolagem vertical quando necessário */
    border: 1px solid #ccc;
    /* Apenas para visualização, pode ser removido */
    padding: 10px;
    /* Adicione algum espaço interno para melhorar a aparência */
}

#listaCidades {
    position: relative;
    max-height: 100px;
    /* Defina a altura máxima desejada */
    overflow-y: auto;
    /* Adiciona uma barra de rolagem vertical quando necessário */
    border: 1px solid #ccc;
    /* Apenas para visualização, pode ser removido */
    padding: 10px;
    /* Adicione algum espaço interno para melhorar a aparência */
}

/* Estilo para os itens da lista */
#listaBairros li {
    list-style: none;
    /* Remove os marcadores de lista padrão */
    margin: 5px 0;
    /* Adicione algum espaçamento entre os itens da lista */
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Classe CSS para animação de movimento para a direita */
@keyframes slideRight {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Classe CSS para animação de movimento para a esquerda */
@keyframes slideLeft {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Aplica a animação de movimento para a direita */
.slide-right {
    animation: slideRight 0.5s ease forwards;
}

/* Aplica a animação de movimento para a esquerda */
.slide-left {
    animation: slideLeft 0.5s ease forwards;
}

#myform {
    text-align: center;
    padding: 5px;
    margin: 2%;
}

.qty {
    width: 25px;
    height: 25px;
    text-align: center;
    border: none;
    color: green;
    font-weight: 900;
}

/* input.qtyplus { width:25px; height:25px;}
input.qtyminus { width:25px; height:25px;} */

input.qtyminus,
input.qtyplus {
    width: 20px;
    background: inherit;
    border-radius: 20px;
    padding: 0;
    border: none;
    /* border: none; */
    display: inline-block;
    /* vertical-align: middle; */
    text-align: center;
    font-weight: 900;
    color: #272727;
    background-color: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}