/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow-y: auto;
}

.modal-conteudo {
    background: #ffffff;
    border-radius: 12px;
    max-width: 360px;
    width: 90%;
    padding: 16px;
    position: relative;
    animation: modalFade 0.2s ease-in-out;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

@keyframes modalFade {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.btn-fechar-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
}

.btn-fechar-modal:hover {
    color: #1f2937;
}

.modal-conteudo img {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.modal-conteudo h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.modal-conteudo p {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    margin-bottom: 8px;
}

.opcoes-produto {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sabores-container h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.sabores-lista {
    list-style: none;
    max-height: 180px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #10b981 #f1f1f5;
}

.sabores-lista::-webkit-scrollbar {
    width: 5px;
}

.sabores-lista::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 3px;
}

.sabores-lista::-webkit-scrollbar-track {
    background: #f1f1f5;
}

.sabor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #f1f1f5;
    border-radius: 6px;
    margin-bottom: 6px;
}

.sabor-item.sabor-especial {
    background: #fef3c7;
    border: 1px solid #d97706;
}

.sabor-item.sabor-especial span::after {
    content: 'Especial';
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background: #d97706;
    color: #ffffff;
    font-size: 10px;
    border-radius: 4px;
}

.sabor-item span {
    font-size: 13px;
    font-weight: 400;
    color: #1f2937;
}

.sabor-controle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-sabor {
    background: #e5e7eb;
    border: none;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-sabor:hover {
    background: #10b981;
    color: #ffffff;
    transform: scale(1.1);
}

.quantidade-sabor {
    font-size: 13px;
    font-weight: 500;
    color: #10b981;
    min-width: 20px;
    text-align: center;
}

.indicador-rolagem {
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
    text-align: center;
    margin-top: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.aviso {
    font-size: 11px;
    font-weight: 400;
    color: #d97706;
    margin-top: 6px;
}

.observacao label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    display: block;
}

.observacao textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 400;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.2s;
}

.observacao textarea:focus {
    border-color: #10b981;
    outline: none;
}

.modal-footer {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.quantidade-controle-footer {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quantidade-controle-footer .quantidade-input {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quantidade-controle-footer input {
    width: 50px;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}

.quantidade-controle-footer input:focus {
    border-color: #10b981;
    outline: none;
}

.btn-quantidade {
    background: #e5e7eb;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-quantidade:hover {
    background: #10b981;
    color: #ffffff;
    transform: scale(1.1);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Botões */
.btn {
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    flex: 1;
    max-width: 180px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
}

.btn-desativado {
    background: #6b7280;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Carrinho */
.carrinho {
    margin-top: 24px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.carrinho:hover {
    transform: translateY(-2px);
}

.carrinho h2 {
   েল: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carrinho-vazio {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    text-align: center;
    padding: 16px;
    background: #f1f1f5;
    border-radius: 8px;
}

.carrinho-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s, box-shadow 0.2s;
}

.carrinho-item:hover {
    background: #f1f1f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.carrinho-item-info {
    flex: 1;
}

.carrinho-item-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.carrinho-item-info .detalhe {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    margin-bottom: 2px;
}

.carrinho-item-detalhes {
    display: flex;
    align-items: center;
    gap: 12px;
}

.carrinho-item-detalhes .quantidade-controle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.carrinho-item-detalhes .quantidade {
    font-size: 13px;
    font-weight: 500;
    color: #10b981;
    min-width: 20px;
    text-align: center;
}

.carrinho-item-detalhes .preco {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    min-width: 60px;
    text-align: right;
}

.btn-remover {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.btn-remover:hover {
    color: #dc2626;
    transform: scale(1.1);
}

.carrinho-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
}

.carrinho-footer .total {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.carrinho-footer .total span {
    color: #10b981;
}

.btn-finalizar {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-finalizar:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
}

/* Botão Flutuante */
.btn-carrinho-fixo {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #10b981;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    z-index: 1000;
}

.btn-carrinho-fixo:hover {
    background: #059669;
    transform: scale(1.1);
}

.carrinho-contador {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e53e3e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Menu */
.user-menu {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 1500;
}

.btn-user {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.btn-user:hover {
    color: #1f2937;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    z-index: 2000;
}

.user-dropdown.mostrar {
    display: block;
    animation: slideInDown 0.2s ease-in-out;
}

.dropdown-item {
    background: none;
    border: none;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 400;
    color: #1f2937;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f1f1f5;
}

/* Modal Cliente, Cadastro, Login e Confirmação */
.cliente-modal, .cadastro-modal, .login-modal, .confirmacao-modal {
    max-width: 360px;
    width: 90%;
    padding: 16px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    display: block;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 400;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #10b981;
    outline: none;
}

.form-group input#cep,
.form-group input#numero,
.form-group input#complemento,
.form-group input#cadastro-cep,
.form-group input#cadastro-numero,
.form-group input#cadastro-complemento,
.form-group input#login-email,
.form-group input#login-senha,
.form-group input#cadastro-email,
.form-group input#cadastro-senha {
    width: 100%;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 400;
    transition: border-color 0.2s;
}

.form-group input#cep:focus,
.form-group input#numero:focus,
.form-group input#complemento:focus,
.form-group input#cadastro-cep:focus,
.form-group input#cadastro-numero:focus,
.form-group input#cadastro-complemento:focus,
.form-group input#login-email:focus,
.form-group input#login-senha:focus,
.form-group input#cadastro-email:focus,
.form-group input#cadastro-senha:focus {
    border-color: #10b981;
    outline: none;
}

.form-group input#cep:invalid,
.form-group input#cadastro-cep:invalid,
.form-group input#login-email:invalid,
.form-group input#cadastro-email:invalid {
    border-color: #ef4444;
}

.form-buttons {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}


.resumo-pedido h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 12px 0 6px;
}

.resumo-pedido p {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    margin: 3px 0;
}

.resumo-pedido ul {
    list-style: none;
    margin: 6px 0;
}

.resumo-pedido li {
    font-size: 13px;
    font-weight: 400;
    color: #1f2937;
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
}

.resumo-pedido li:last-child {
    border-bottom: none;
}

/* Rodapé */
.rodape {
    margin-top: 24px;
    padding: 16px;
    background: #1f2937;
    color: #ffffff;
    text-align: center;
    font-size: 12px;
}

.rodape p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 6px 0;
}

.rodape a {
    color: #10b981;
    text-decoration: none;
    transition: color 0.2s;
}

.rodape a:hover {
    color: #059669;
}

.status-pizzaria {
    font-weight: 600;
}

.status-aberto {
    color: #10b981;
}

.status-fechado {
    color: #ef4444;
}

/* Notificações */
.notificacao {
    position: fixed;
    top: 12px;
    right: 12px;
    background: #10b981;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 3000;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notificacao.mostrar {
    display: flex;
    animation: slideInRight 0.2s ease-in-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.btn-notificacao {
    background: #ffffff;
    color: #10b981;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-notificacao:hover {
    background: #f1f1f5;
}

.erro {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 3000;
    display: none;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.erro.mostrar {
    display: block;
    animation: slideInDown 0.2s ease-in-out;
}

.erro a {
    color: #ffffff;
    text-decoration: underline;
}

.erro a:hover {
    color: #f1f1f5;
}

@keyframes slideInDown {
    from { transform: translate(-50%, -100%); }
    to { transform: translate(-50%, 0); }
}

/* Responsividade para Modal Footer */
@media (max-width: 768px) {
    .modal-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .quantidade-controle-footer {
        flex-shrink: 0;
    }

    .btn-primary {
        flex: 1;
        max-width: 140px;
        padding: 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .modal-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .quantidade-controle-footer {
        flex-shrink: 0;
    }

    .btn-primary {
        flex: 1;
        max-width: 120px;
        padding: 8px;
        font-size: 12px;
    }

    .user-menu {
        top: 8px;
        right: 12px;
    }

    .btn-user {
        width: 28px;
        height: 28px;
    }

    .user-dropdown {
        top: 36px;
        min-width: 100px;
    }
}