/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #1f2937;
    line-height: 1.5;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 12px 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.header h1 {
    font-size: 20px;
    font-weight: 800;
    color: #e53e3e;
    text-align: center;
    margin-bottom: 8px;
}
.free-delivery {
    font-size: 10px; /* Tamanho menor para não chamar muita atenção */
    color: #333; /* Cor neutra, pode ajustar */
    opacity: 0.6; /* Transparência para não poluir visualmente */
    font-weight: normal; /* Evita negrito para maior discrição */
}

.info-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.info-status p {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    justify-content: center;
    margin-bottom: 4px;
}

.info-pizzaria {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.busca-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 8px;
}

.busca-container input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.busca-container input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    outline: none;
}

.icon-busca {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.busca-resultados {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 2000;
    margin-top: 4px;
    scrollbar-width: thin;
    scrollbar-color: #10b981 #f1f1f5;
}

.busca-resultados::-webkit-scrollbar {
    width: 6px;
}

.busca-resultados::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 3px;
}

.busca-resultados::-webkit-scrollbar-track {
    background: #f1f1f5;
}

.busca-resultado-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.busca-resultado-item:hover {
    background: #f1f1f5;
}

.busca-resultado-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}

.busca-resultado-info {
    display: flex;
    flex-direction: column;
}

.busca-titulo {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.busca-titulo strong {
    color: #10b981;
}

.busca-preco {
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
}

.nav-categorias {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 4px;
    margin: 0 auto;
    max-width: 600px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-categorias::-webkit-scrollbar {
    display: none;
}

.btn-nav {
    background: none;
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}

.btn-nav:hover, .btn-nav.active {
    color: #10b981;
}

.btn-nav.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #10b981;
    animation: slideIn 0.2s ease-in-out;
}

@keyframes slideIn {
    from { width: 0; }
    to { width: 100%; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* Seções */
.secao {
    margin-bottom: 24px;
    scroll-margin-top: 80px;
}

.secao h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.produtos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.produto {
    display: flex;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.produto:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.produto-info {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.produto-imagem {
    flex: 0 0 120px;
    order: 2;
}

.produto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    border-radius: 0 8px 8px 0;
}

.produto-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.produto-info p {
    font-size: 13px;
    font-weight: 300;
    color: #6b7280;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preco {
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
}

.sem-resultados {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    text-align: center;
    padding: 16px;
}

/* Ícones */
.icon {
    width: 16px;
    height: 16px;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .produtos-container {
        grid-template-columns: 1fr;
    }

    .produto {
        flex-direction: row;
    }

    .produto-imagem {
        flex: 0 0 100px;
    }

    .produto-imagem img {
        border-radius: 0 8px 8px 0;
    }

    .produto-info h3 {
        font-size: 14px;
    }

    .produto-info p {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }

    .preco {
        font-size: 13px;
    }

    .carrinho {
        padding: 12px;
    }

    .carrinho-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .carrinho-item-detalhes {
        width: 100%;
        justify-content: space-between;
    }

    .carrinho-footer {
        flex-direction: column;
        gap: 12px;
        padding: 8px;
    }

    .btn-carrinho-fixo {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }

    .modal-conteudo {
        max-width: 340px;
    }

    .modal-footer {
        flex-direction: row;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 18px;
    }

    .busca-container {
        max-width: 100%;
    }

    .secao h2 {
        font-size: 16px;
    }

    .produtos-container {
        grid-template-columns: 1fr;
    }

    .produto-imagem {
        flex: 0 0 80px;
    }

    .produto-info h3 {
        font-size: 13px;
    }

    .produto-info p {
        font-size: 11px;
    }

    .preco {
        font-size: 12px;
    }

    .modal-conteudo img {
        max-height: 120px;
    }

    .modal-conteudo h3 {
        font-size: 16px;
    }

    .sabor-item {
        padding: 6px;
    }

    .sabor-item span {
        font-size: 12px;
    }

    .modal-conteudo {
        max-width: 320px;
    }

    .carrinho-item-info h3 {
        font-size: 13px;
    }

    .carrinho-item-info .detalhe {
        font-size: 11px;
    }
}