:root {
    --primary: #CB9B2A;
    --secondary: #AF7E33;
    --bg-color: #fce4ec;
    --white: #ffffff;
    --text-color: #AF7E33;

    --primary1: #d85c86;
    --secondary1: #5d4037;
    --bg-color1: #fce4ec;
    --white1: #ffffff;
    --text-color1: #AF7E33;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('./Background_pages.png'); 
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--text-color);
    padding-bottom: 80px; /* Espaço para o footer mobile */
    margin: 0; padding: 0;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

h1 { color: var(--primary); font-family: 'Georgia', serif; }
p { color: var(--secondary); margin-bottom: 20px; }

/* FORMULÁRIO DE BUSCA */
.search-box {
    display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px;
}

input {
    padding: 15px; border: 2px solid #ddd; border-radius: 10px;
    font-size: 1rem; outline: none; width: 100%; box-sizing: border-box;
}
input:focus { border-color: var(--primary); }

.btn-search {
    background: var(--primary); color: white; border: none;
    padding: 15px; border-radius: 10px; font-weight: bold;
    cursor: pointer; font-size: 1rem; transition: 0.3s; width: 100%;
}
.btn-search:hover { background: #AF7E33; }

/* LISTA DE PEDIDOS */
.order-list { list-style: none; padding: 0; text-align: left; }

.order-item {
    border: 1px solid #eee; padding: 15px; margin-bottom: 15px;
    border-radius: 10px; background: #fff;
    border-left: 5px solid #ccc; position: relative;
}

/* Cores dos Status */
.status-aguardando_pagamento { border-left-color: #f1c40f; }
.status-pago { border-left-color: #3498db; }
.status-em_producao { border-left-color: #e67e22; }
.status-partiu_entrega { border-left-color: #9b59b6; }
.status-finalizado { border-left-color: #2ecc71; }
.status-cancelado { border-left-color: #e74c3c; opacity: 0.7; }

.order-header {
    display: flex; justify-content: space-between; margin-bottom: 10px;
    border-bottom: 1px dashed #eee; padding-bottom: 5px;
}
.order-id { font-weight: bold; color: var(--secondary); }
.order-status { 
    font-size: 0.8rem; font-weight: bold; 
    padding: 3px 8px; border-radius: 4px; background: #f0f0f0; 
}

.order-items { font-size: 0.9rem; color: #555; margin-bottom: 10px; }
.order-footer { 
    display: flex; justify-content: space-between; align-items: center; margin-top: 10px; 
}
.order-total { font-weight: bold; color: var(--primary); font-size: 1.1rem;}

/* BOTÃO PIX */
.btn-pix-action {
    background-color: #2ecc71; color: white; border: none;
    padding: 8px 15px; border-radius: 20px; cursor: pointer;
    font-size: 0.9rem; font-weight: bold; display: flex; align-items: center; gap: 5px; margin-bottom: 15px;
}
.btn-pix-action:hover { background-color: #27ae60; }

.back-link {
    display: block; margin-top: 30px; color: var(--secondary); text-decoration: none;
}

/* --- MODAL DE PAGAMENTO PIX (Igual ao do site principal) --- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 3000;
    align-items: center; justify-content: center;
}
.modal-content {
    background: white; padding: 30px; border-radius: 20px;
    max-width: 400px; width: 90%; text-align: center; position: relative;
}
#qrcode-container { margin: 20px auto; display: flex; justify-content: center; }
#qrcode-container img { border: 5px solid white; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.pix-code-box {
    background: #f0f0f0; padding: 10px; word-break: break-all;
    font-family: monospace; font-size: 0.8rem; margin: 15px 0; border-radius: 5px;
    max-height: 100px; overflow-y: auto; text-align: left;
}
.btn-copy {
    background: var(--primary); color: white; border: none; padding: 10px 20px;
    border-radius: 50px; cursor: pointer; font-weight: bold; margin-bottom: 10px; width: 100%;
}
.close-modal { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; color: #aaa; }

/* Botão Voltar ao Topo */
#btnVoltarTopo {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-size: 1.5rem;
    border: none;
    outline: none;
    background-color: var(--primary);
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s;
}
#btnVoltarTopo:hover {
    background-color: var(--secondary);
    transform: scale(1.1);
}