body {
    box-sizing: border-box;
    background-color: #f7f7f7;
    font-family: "Montserrat", serif;
    height: 94vh;
}

main {
    padding-bottom: 120px;
}

input[type='text'], input[type='password'], input[type='number'], select {
    min-height: 46px;
}

@media(min-width: 1201px) {
    .container {
        width: 60%;
    }
}

.input-field {
    border: 1px solid #e1e1e1;
    padding: 8px;
    border-radius: 8px;
    background-color: #efefef;
}

.form-label {
    font-weight: 500;
}

.row {
    margin: auto;
}

.hide {
    display: none;
}

.separador {
    height: 1px;
    width: 100%;
    border-bottom: 1px solid lightgray;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Tela de carregamento */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Classe que exibe o preloader */
#preloader.active {
    opacity: 1;
    visibility: visible;
}

/* Spinner animado */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Efeito de transição suave */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #dadada;
    z-index: 999;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Classe que ativa a animação de saída */
.page-transition.active {
    opacity: 1;
    /*transform: translateY(-30px);*/
}


.titulo-pagina {
    font-size: 22px;
    font-weight: 500;
    color: #373737;
    margin-bottom: 14px
}

.subtitulo-pagina {
    font-size: 16px;
    font-weight: 500;
    color: #bc0000;
    margin-bottom: 14px;
}

.aviso-pagina {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.aviso-pagina .texto {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
}

.aviso-pagina a {
    text-decoration: none;
    color: #bc0000;
    font-weight: 500;
}

.titulo-grupo {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.item {
    position: relative;
    border: 1px solid #e1e1e1;
    padding: 8px;
    border-radius: 8px;
    background-color: #efefef;
    margin-bottom: 8px;
    min-height: 62px;
    cursor: pointer;
}

.produto {
    display: flex;
    cursor: pointer;
}

.item.flutuante {
    border: 0;
    background-color: transparent;
}

.item.ativo {
    border: 2px solid rgb(188 0 0 / 60%);
}

.item .bi-chevron-right {
    position: absolute;
    right: 10px;
    top: 40%;
}

.item .titulo, .titulo-item {
    font-size: 16px;
    font-weight: 500;
    color: #393939;
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: nowrap;
}

.item .descricao, .descricao-item {
    font-size: 14px;
    color: #696969;
}

.item .imagem {
    width: 100%;
}

.span-rs {
    font-size: 12px;
    font-weight: 500;
    color: black;
}

.btn-avancar {
    width: 160px;
    border-radius: 4px;
    margin-top: 0;
    text-align: center;
    background-color: #bc0000;
    color: whitesmoke;
    padding: 8px;
    float: right;
    font-weight: 500;
    cursor: pointer;
}

.btn-avancar a {
    color: whitesmoke;
    text-decoration: none;
}

.nome-cliente-titulo {
    text-align: right;
    margin-bottom: -2px;
    font-style: italic;
}

.modal {
    top: 35%;
}

.tempo-aproximado {
    font-size: 12px;
    color: #080808;
}

.input-troco, .input-cupom {
    font-size: 24px;
    border: 0;    
    color: #393939;
}

.input-troco:focus-visible, .input-cupom:focus-visible {
    border: none !important;
    outline: none !important;
}

.btn {
    min-width: 90px;
}

/*
.btn-primary {
    background-color: #bc0000;
    border: 1px solid #640a0a;
    line-height: 30px;
}*/

.btn-primary, .btn-avancar {
    padding: 8px 6px;
    font-size: 16px;
    color: white;
    background: linear-gradient(45deg, #bc0000 20%, #b20000 50%, #990000 80%);
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, filter 0.3s ease;
    position: relative;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 20px rgba(188, 0, 0, 0.3);*/ /* Adiciona uma sombra iluminada */
    background-size: 200% 200%;
    border-color: #bc0000 !important;
}

/* Efeito ao passar o mouse */
.btn-primary:hover, .btn-avancar:hover {
    background: linear-gradient(45deg, #bc0000 25%, #b20000 45%, #990000 65%);
    /*box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(188, 0, 0, 0.5);*/ /* Sombra maior com mais brilho */
    filter: brightness(1.2) contrast(1.3); /* Aumenta o brilho e o contraste */
}

/* Efeito ao clicar */
.btn-primary:active, .btn-avancar:active {
    background: linear-gradient(45deg, #990000 15%, #b20000 40%, #bc0000 75%);
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 10px rgba(188, 0, 0, 0.3);*/ /* Sombra reduzida ao clicar */
    filter: brightness(0.8) contrast(1); /* Reduz o brilho e o contraste */
}


.ln-14 {
    line-height: 14px;
}

.progress {
    position: relative;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    width: 0;
    height: 100%;
    background-color: #3498db;
    animation: loading-animation 2s infinite;
}

.qtde-adicional {
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    background-color: #d1d1d1;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.desc-adicional, .desc-borda, .desc-especie {
    font-size: 13px;
    color: #272727;
}

.desc-especie {
    font-size: 12px;
}

.valor-adicional, .valor-borda, .valor-especie {
    font-size: 10px;
    font-weight: 500;
    color: #bc0000;
}

.choices__inner {
    background-color: #ffffff;
}

@keyframes loading-animation {
    100% { left: 100%; width: 30%; }
}

/* Estilo para o indicador de scroll */
.scroll-indicator {
    position: absolute;
    top: 30%;
    right: 0px;
    transform: translateY(-50%);
    z-index: 10;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #bc0000;
    font-size: 1.2rem;
    opacity: 0; /* Começa invisível */
    transition: opacity 0.3s ease;
    animation: pulse-horizontal 2s infinite;
}
.scroll-indicator.visible {
    opacity: 1;
}

@keyframes pulse-horizontal {
    50% { transform: translateY(-50%) translateX(5px); }
}


@keyframes loading-animation {
    0% { left: -100%; width: 30%; }
    50% { left: 50%; width: 50%; }
    100% { left: 100%; width: 30%; }
}

#modalAdicionarProduto {
    top: 0;
}

/* Estilização para o modal de adicionar produto */
#modalAdicionarProduto .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background-color: #fdfdfd;
    overflow: hidden;
}

/* Cabeçalho com a imagem do produto */
#modalAdicionarProduto .modal-header-imagem {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    width: 100%;
    border-bottom: 1px solid #eee;
}

#modalAdicionarProduto .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#modalAdicionarProduto #adicionar-produto-modal-content h5 {
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 600;
    color: #343a40;
}

#modalAdicionarProduto #adicionar-produto-modal-content .text-muted {
    font-size: 1rem;
    color: #6c757d !important;
}

#modalAdicionarProduto #modal-preco-total {
    color: #bc0000;
    font-size: 1.4rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

#modalAdicionarProduto #produto-observacao {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
    border-radius: 8px;
    min-height: 60px;
}

#modalAdicionarProduto #produto-observacao:focus {
    background-color: #fff;
    border-color: #bc0000;
    box-shadow: 0 0 0 0.2rem rgb(188 0 0 / 25%);
}

#modalAdicionarProduto .modal-footer {
    background-color: #fff;
    border-top: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Estilo para o seletor de quantidade */
.quantity-selector-modal {
    display: flex;
    align-items: center;
    background-color: #f1f3f5;
    border: 1px solid #e9ecef;
    border-radius: 25px; /* Bordas arredondadas para um visual moderno */
    padding: 5px;
    height: 44px; /* Altura fixa para alinhar com o preço */
}

.quantity-selector-modal .btn {    
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 1;
    font-weight: 600;
    border: none;
    color: #495057;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
    min-width: unset !important;
}

.quantity-selector-modal .btn:hover {
    background-color: #f8f9fa;
    transform: scale(1.05);
}

.quantity-selector-modal input {
    width: 40px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 1.2rem;
    color: #343a40;
}

#modalAdicionarProduto .modal-footer .btn-primary {
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}
