:root {
    --primary: #ff4757;
    --background: #f1f2f6;
    --surface: #ffffff;
    --text: #2f3542;
    --text-light: #747d8c;
    --border: #dfe4ea;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 100px; /* Espaço para o carrinho flutuante não tampar os itens */
}

header {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header h1 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-light);
}

.category {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.category-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 4px;
}

.product-card {
    background: var(--surface);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease;
}

.product-card:active {
    transform: scale(0.98);
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.product-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

.btn:active {
    background: #ff2a3d;
}

.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--surface);
    padding: 1rem;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    text-align: center;
    display: none;
    z-index: 100;
}


/* ========================================= */
/* PUBLIC MENU STYLES (EXTRACTED) */
/* ========================================= */
body.body-public { background-color: #fcfcfc; }
        
        .store-header {
            text-align: center;
            padding: 3rem 1rem 2rem;
            background-color: var(--primary);
            background-size: cover;
            background-position: center;
            position: relative;
            color: white;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        
        .store-header::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.5); /* Overlay escuro */
            z-index: 1;
        }

        .store-header-content {
            position: relative;
            z-index: 2;
        }

        .store-header img.logo {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            margin-bottom: 0.5rem;
            object-fit: cover;
            border: 3px solid white;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        .category-title {
            border-left: 5px solid var(--primary);
            padding-left: 10px;
            margin-bottom: 1rem;
            color: var(--text);
            font-size: 1.5rem;
        }

        .product-card {
            background: white;
            padding: 1rem;
            border-radius: 12px;
            margin-bottom: 1rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            border: 1px solid transparent;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }
        
        /* Borda temática ao passar o mouse */
        .product-card:hover {
            border-color: var(--primary);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .product-card::before {
            content: '';
            position: absolute;
            top: 0; bottom: 0; left: 0;
            width: 4px;
            background-color: var(--primary);
            opacity: 0.8;
        }

        .product-item {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .product-info {
            flex: 1;
        }

        .product-image {
            width: 90px;
            height: 90px;
            border-radius: 8px;
            object-fit: cover;
            margin-left: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .closed-badge {
            background: #e74c3c;
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            margin-top: 1rem;
            font-weight: bold;
            display: inline-block;
            font-size: 0.9rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.2);
        }
        
        .add-btn {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1.2rem;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
            margin-top: 1rem;
            transition: opacity 0.2s;
        }
        .add-btn:hover { opacity: 0.9; }

        .cart-bar button {
            background-color: var(--primary) !important; /* Cor principal no botão flutuante */
        }
        
        #cart-modal .btn {
            background-color: var(--primary);
        }
        
        /* Modifica o input focus */
        input:focus, select:focus, textarea:focus {
            border-color: var(--primary);
            outline: none;
        }
    
        /* CSS FIX PARA OS MODAIS */
.modal {
    display: none; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.7); 
    z-index: 1000; 
    align-items: center; 
    justify-content: center;
    backdrop-filter: blur(4px);
}
        .modal {
            display: none; 
            position: fixed; 
            top: 0; left: 0; 
            width: 100%; height: 100%; 
            background: rgba(0,0,0,0.7); 
            z-index: 1000; 
            align-items: center; 
            justify-content: center;
            backdrop-filter: blur(4px);
        }
        
        .modal-content {
            background: white; 
            padding: 2rem; 
            border-radius: 12px; 
            max-width: 500px; 
            width: 90%; 
            max-height: 90vh; 
            overflow-y: auto; 
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            position: relative;
        }

        /* Isso garante que quando .modal ganhar display: flex pelo JS, ele centralize */
        .modal[style*="display: block"] {
            display: flex !important;
        }

        .close {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 1.5rem;
            cursor: pointer;
            color: #888;
        }

        .input-field {
            width: 100%;
            padding: 0.8rem;
            border: 2px solid #dfe4ea;
            border-radius: 8px;
            font-size: 1rem;
            margin-bottom: 0.8rem;
            transition: border-color 0.2s;
        }
        
        label {
            display: block;
            font-weight: bold;
            margin-bottom: 0.3rem;
            color: var(--text);
            font-size: 0.9rem;
        }
/* --- UTILITY & REFACTORED CLASSES --- */
.pb-5 { padding-bottom: 5rem !important; }
.btn-cart-float { width: 100%; max-width: 600px; padding: 1rem; font-size: 1.1rem; box-shadow: 0 -4px 10px rgba(0,0,0,0.2); }
.text-primary { color: var(--primary); }
.modal-total-box { margin-top: 1rem; text-align: right; color: var(--text); }
.mt-1-5 { margin-top: 1.5rem; }
.mt-1 { margin-top: 1rem; }
.mt-0-5 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-0-5 { margin-bottom: 0.5rem; }
.flex-gap { display: flex; gap: 0.5rem; }
.w-auto { width: auto !important; }
.text-small { font-size: 0.9rem; }
.btn-small { padding: 0.5rem 1rem; }
.btn-large { width: 100%; font-size: 1.1rem; padding: 1rem; }
.text-center { text-align: center; }
.success-title { color: #27ae60; }
.qrcode-box { margin: 2rem auto; display: flex; justify-content: center; background: white; padding: 1rem; border-radius: 12px; width: max-content; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.pix-instructions { background: #f8f9fa; padding: 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid var(--primary); }
.pix-title { font-weight: bold; margin-bottom: 0.5rem; color: var(--primary); }
.pix-textarea { width: 100%; height: 80px; font-size: 0.8rem; padding: 0.5rem; border: 1px solid #ced6e0; border-radius: 4px; }
.text-muted-small { font-size: 0.9rem; color: #7f8fa6; }

/* Dynamic components */
.store-title { margin-bottom: 0.2rem; font-size: 2.5rem; text-shadow: 0 3px 6px rgba(0,0,0,0.6); }
.store-desc { margin-bottom: 0.5rem; font-size: 1.1rem; opacity: 1; text-shadow: 0 2px 4px rgba(0,0,0,0.6); }
.store-address-text { font-size: 0.85rem; opacity: 0.9; max-width: 80%; margin: 0 auto; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.product-name { font-size: 1.1rem; color: var(--text); }
.product-desc { color: #7f8fa6; display: block; margin-top: 0.3rem; margin-bottom: 0.5rem; line-height: 1.3; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; border-bottom: 1px solid #eee; padding-bottom: 0.8rem; }
.text-dark { color: var(--text); }
.btn-remove-item { background: #ffeaa7; border: 1px solid #fdcb6e; color: #d63031; cursor: pointer; font-size: 1.1rem; padding: 0.3rem 0.6rem; border-radius: 4px; font-weight: bold; }


/* ========================================= */
/* ADMIN & SYSTEM EXTRACTED STYLES */
/* ========================================= */
body.body-admin { background-color: #f4f6f8; }
        .admin-container { max-width: 1400px; margin: 0 auto; padding: 2rem 1rem; }
        
        .login-box { max-width: 400px; margin: 15vh auto; background: white; padding: 2.5rem; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); text-align: center; }
        .input-field { width: 100%; padding: 1rem; margin-bottom: 1rem; border: 2px solid var(--border); border-radius: 8px; font-size: 1rem; transition: border-color 0.3s; }
        .input-field:focus { border-color: var(--primary); outline: none; }
        
        .admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
        
        /* Abas (Tabs) */
        .tabs-nav { margin-bottom: 2rem; border-bottom: 2px solid var(--border); padding-bottom: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
        .tab-btn { background: transparent; color: var(--text-light); box-shadow: none; border-radius: 20px; padding: 0.6rem 1.2rem; border: none; font-weight: bold; cursor: pointer; font-size: 1rem; transition: all 0.2s; }
        .tab-btn:hover { background: #e0e6ed; }
        .tab-btn.active { background: var(--primary); color: white; box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3); }
        
        /* KANBAN BOARD */
        .kanban-board { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; }
        .kanban-col { background: #e9ecef; border-radius: 12px; min-width: 320px; flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
        .kanban-col-title { font-size: 1.1rem; font-weight: bold; color: var(--text); display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.5rem; border-bottom: 2px solid #dee2e6; margin-bottom: 0.5rem; }
        .kanban-badge { background: var(--text-light); color: white; border-radius: 12px; padding: 0.1rem 0.6rem; font-size: 0.8rem; }
        
        /* Card Kanban */
        .kanban-cards-container { display: flex; flex-direction: column; gap: 1.25rem; }
        .order-card { background: white; border-radius: 10px; padding: 1.25rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04); border-left: 6px solid var(--primary); display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
        .order-card:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
        .status-DELIVERED { border-left-color: #10b981 !important; }
        .status-CANCELLED { border-left-color: #ef4444 !important; background: #fffdfd; }
        .order-card:hover { transform: translateY(-2px); }
        
        .status-PENDING { border-left-color: #ff4757; }      
        .status-PREPARING { border-left-color: #ffa502; }    
        .status-OUT_FOR_DELIVERY { border-left-color: #1e90ff; } 
        .status-DELIVERED, .status-CANCELLED { border-left-color: #747d8c; opacity: 0.7; }
        
        .order-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
        .order-items { list-style: none; margin-bottom: 1rem; flex-grow: 1; font-size: 0.9rem; }
        .order-items li { margin-bottom: 0.3rem; background: #f8f9fa; padding: 0.4rem; border-radius: 4px; }
        .order-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px dashed var(--border); }
        
        .btn-action { margin-top: 0.8rem; padding: 0.6rem; border-radius: 6px; width: 100%; font-size: 0.95rem; cursor: pointer; border: none; font-weight: bold; transition: opacity 0.2s; color: white; }
        .btn-action:hover { opacity: 0.9; }
        .btn-accept { background: #ffa502; }
        .btn-ready { background: #1e90ff; }
        .btn-deliver { background: #2ed573; }
        .btn-cancel { background: transparent; color: #ff4757; text-decoration: underline; font-weight: normal; font-size: 0.85rem; padding: 0.2rem; margin-top: 0.5rem; }

        .admin-form { background: white; padding: 1.5rem; border-radius: 12px; margin-bottom: 2rem; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
        .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
        @media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

        .dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
        .metric-card { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-align: center; border-bottom: 4px solid var(--primary); }
        .metric-value { font-size: 2rem; font-weight: bold; color: var(--text); margin-top: 0.5rem; }
.sys-style-c0fa91a8 { color: var(--primary); margin-bottom: 0.5rem; }
.sys-style-c3508152 { color: var(--text-light); margin-bottom: 2rem; }
.sys-style-47bba2a5 { width: 100%; font-size: 1.1rem; padding: 1rem; }
.sys-style-495da587 { color: var(--text); }
.sys-style-b32654dc { color: var(--text-light); }
.sys-style-eadae2f8 { background: #a4b0be; }
.sys-style-6e8528d8 { margin-bottom: 1rem; color: var(--text); }
.sys-style-7e7ff148 { display: flex; gap: 1rem; flex-wrap: wrap; }
.sys-style-86fa4508 { margin: 0; flex-grow: 1; }
.sys-style-e2b74ba6 { margin: 0; }
.sys-style-94e7b49e { display: flex; gap: 0.5rem; align-items: center; grid-column: 1 / -1; }
.sys-style-e0667446 { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; display: none; }
.sys-style-4e4faf30 { margin: 0; flex: 1; }
.sys-style-4671278d { color: #888; }
.sys-style-e86cdd0b { grid-column: 1 / -1; }
.sys-style-fcb10f9b { margin-bottom: 1.5rem; color: var(--text); }
.sys-style-a69ef39d { max-width: 600px; margin: 0 auto; text-align: center; }
.sys-style-157eeb30 { color: var(--text-light); margin-bottom: 1.5rem; }
.sys-style-3f5035a0 { background: #f8f9fa; padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; }
.sys-style-424cce00 { font-weight: bold; }
.sys-style-93979df7 { background: #e9ecef; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.9rem; }
.sys-style-3f4b6c0e { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.sys-style-723357aa { background: var(--primary); }
.sys-style-8487fd6e { display: none; padding: 1.5rem; background: white; border: 2px dashed #a4b0be; border-radius: 8px; }
.sys-style-f0a9f034 { margin-bottom: 1rem; font-weight: bold; color: var(--text); }
.sys-style-27c39869 { max-width: 100%; height: auto; border-radius: 8px; }
.sys-style-685eb7ba { display: flex; flex-direction: column; gap: 0.5rem; }
.sys-style-772440ee { max-width: 600px; margin: 0 auto; }
.sys-style-d3297f95 { margin-bottom: 1.5rem; }
.sys-style-8ceea15a { display: block; font-weight: bold; margin-bottom: 0.5rem; }
.sys-style-0dd05134 { display: flex; gap: 1rem; align-items: center; }
.sys-style-675c3119 { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: #eee; display: none; }
.sys-style-f48bc238 { display: flex; flex-direction: column; gap: 1rem; }
.sys-style-b0a9c4e3 { width: 100%; height: 120px; border-radius: 8px; object-fit: cover; background: #eee; display: none; }
.sys-style-e08c3393 { margin-bottom: 1.5rem; display: flex; gap: 1rem; }
.sys-style-49cdf874 { flex: 1; }
.sys-style-3e90a169 { height: 50px; padding: 0.2rem; cursor: pointer; }
.sys-style-f2f2327f { width: 100px; height: 40px; cursor: pointer; }
.sys-style-cbef21e3 { margin-top: 2rem; margin-bottom: 1rem; color: var(--text); }
.sys-style-e79f651e { font-size: 0.85rem; color: #666; margin-bottom: 1rem; }
.sys-style-e7beb268 { width: 100%; margin-top: 2rem; }
.sys-style-4986ecf7 { margin-bottom: 1rem; }
.sys-style-199b6f0e { width: 100%; }
.sys-style-74de57f7 { color:var(--text-light); }
.sys-style-c6e737ef { display: flex; justify-content: space-between; padding: 0.8rem; background: #f8f9fa; border-radius: 8px; }
.sys-style-d3547ac9 { color:var(--text-light); margin-left:10px; }
.sys-style-d9906f86 { color: var(--primary); font-weight: bold; }
.sys-style-009cc8c1 { color: var(--primary); }
.sys-style-53c30a79 { font-size: 0.9rem; margin-bottom: 0.5rem; }
.sys-style-76976182 { margin-bottom: 0; font-size: 1.1rem; }
.sys-style-34d51ac0 { color: var(--text-light); font-size: 0.85rem; }
.sys-style-e9b3c49a { font-size: 1.1rem; font-weight: bold; color: var(--primary); }
.sys-style-2579959f { margin-bottom: 2rem; }
.sys-style-a152db7f { border-bottom: 2px solid var(--primary); display: inline-block; }
.sys-style-41057119 { list-style:none; margin-top: 1rem; }
.sys-style-c4bda59f { background: white; padding: 1.2rem; border-radius: 8px; margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.sys-style-7de85cef { font-weight: bold; color: var(--primary); }
.sys-style-e21fe472 { width: 100px; font-weight: bold; }
.sys-style-33dd45cd { font-size: 0.9rem; }
.sys-style-fd256d2c { width: 120px; padding: 0.3rem; }
body.body-master { background-color: #1e272e; color: white; padding: 2rem; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
        .master-container { max-width: 1000px; margin: 0 auto; }
        .card { background: #2f3640; padding: 1.5rem; border-radius: 8px; margin-bottom: 1rem; box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
        .btn-approve { background: #44bd32; color: white; padding: 0.5rem 1rem; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
        .btn-approve:hover { background: #4cd137; }
        table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
        th, td { padding: 1rem; text-align: left; border-bottom: 1px solid #353b48; }
        th { color: #fbc531; }
        .badge { background: #fbc531; color: #2f3640; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.8rem; font-weight: bold; }
.sys-style-4e2febe2 { max-width: 400px; margin: 5rem auto; text-align: center; }
.sys-style-e7e9a23f { color: #fbc531; margin-bottom: 1.5rem; }
.sys-style-ba1bdef7 { background: #353b48; color: white; border: 1px solid #718093; margin-bottom: 1rem; width: 100%; padding: 0.8rem; border-radius: 4px; }
.sys-style-b6249582 { width: 100%; padding: 1rem; }
.sys-style-216866cf { color: #fbc531; margin-bottom: 0.5rem; }
.sys-style-7aea25a2 { color: #dcdde1; margin-bottom: 2rem; }
body.body-landing { background-color: #f8f9fa; }
        .hero { background: var(--primary); color: white; padding: 4rem 2rem; text-align: center; }
        .hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
        .hero p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto; }
        
        .features { display: flex; gap: 2rem; padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
        .feature-card { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); flex: 1; min-width: 300px; text-align: center; }
        .feature-card h3 { color: var(--primary); margin-bottom: 1rem; }
        
        .signup-section { background: white; padding: 4rem 2rem; text-align: center; }
        .signup-form { max-width: 500px; margin: 0 auto; background: #f8f9fa; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-align: left; }
        .input-field { width: 100%; padding: 0.8rem; margin-bottom: 1rem; border: 2px solid var(--border); border-radius: 8px; font-size: 1rem; }
        
        footer { background: var(--text); color: white; padding: 2rem; text-align: center; }
.sys-style-b591f466 { background: white; color: var(--primary); font-size: 1.2rem; padding: 1rem 2rem; text-decoration: none; display: inline-block; }
.sys-style-c9f632da { background: transparent; border: 2px solid white; color: white; font-size: 1.2rem; padding: 1rem 2rem; margin-left: 1rem; text-decoration: none; display: inline-block; }
.sys-style-9aa1019a { font-size: 3rem; margin-bottom: 1rem; }
.sys-style-b933099f { margin-bottom: 1.5rem; color: var(--primary); text-align: center; }
.sys-style-0379c6a4 { font-weight: bold; display: block; margin-bottom: 0.5rem; }
.sys-style-2ba6065d { width: 100%; font-size: 1.1rem; padding: 1rem; margin-top: 1rem; }
.sys-style-b2c0962d { font-size: 0.8rem; color: #666; text-align: center; margin-top: 1rem; }
