/* BENIS BURGUER - Gourmet Visual Engine v4.1
   Design: Dark Mode Premium & Glassmorphism
   Local: Porto Velho - RO
*/

:root {
    --primary: #ff8c00;
    --primary-hover: #ffa733;
    --bg-dark: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.7);
    --gradient-glow: linear-gradient(135deg, #ff8c00, #ff5e00);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animado de Partículas */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 200%;
    background-image: 
        radial-gradient(circle, var(--primary) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.2) 0.5px, transparent 0.5px);
    background-size: 70px 70px, 35px 35px;
    animation: particlesMove 120s linear infinite;
    opacity: 0.15;
    z-index: -1;
}

@keyframes particlesMove {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

/* --- LOADER --- */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
}

.loader-logo {
    height: 80px;
    animation: pulseGlow 1.5s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255,140,0,0.2)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 25px rgba(255,140,0,0.6)); transform: scale(1.05); }
}

/* --- HEADER --- */
.glass-header {
    background: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 6%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.glow-effect {
    height: 55px;
    filter: drop-shadow(0 0 12px rgba(255, 140, 0, 0.45));
}

.glass-icon {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: white;
    width: 42px; height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    text-decoration: none;
    transition: 0.3s ease;
}

.glass-icon:hover { 
    background: var(--primary); 
    transform: translateY(-4px);
}

/* --- HERO SECTION --- */
.hero-elite {
    text-align: center;
    padding: 60px 6% 30px;
}

.hero-badge {
    background: rgba(255, 140, 0, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 140, 0, 0.2);
    margin-bottom: 20px;
    display: inline-block;
}

.hero-elite h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; }
.text-gradient { background: linear-gradient(to right, #ff8c00, #ffb347); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.status-pill {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.status-dot.online { background: #25d366; box-shadow: 0 0 10px #25d366; }
.status-dot.offline { background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; }

/* --- NAVBAR CATEGORIAS --- */
.nav-container-glass {
    position: sticky;
    top: 85px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 6%;
    z-index: 999;
}

.categorias-elite {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.categorias-elite::-webkit-scrollbar { display: none; }

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
    display: flex; align-items: center; gap: 8px;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
}

/* --- MENU GRID --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 40px 6%;
    max-width: 1400px;
    margin: 0 auto;
}

.card-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 25px;
    transition: 0.4s;
    display: flex; flex-direction: column; justify-content: space-between;
}

.card-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.price { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin: 15px 0; }

.add-btn {
    width: 100%;
    background: var(--gradient-glow);
    color: white; border: none;
    padding: 14px; border-radius: 15px;
    font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* --- CARRINHO PANEL (MODO DRAWER) --- */
.cart-panel-elite {
    position: fixed;
    top: 0;
    right: -100%;
    width: 450px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 2500;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--glass-border);
    box-shadow: -15px 0 50px rgba(0,0,0,0.8);
}

.cart-panel-elite.open { right: 0; }

.cart-inner { display: flex; flex-direction: column; height: 100%; padding: 30px; }

.cart-header-elite {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid var(--glass-border);
}

.close-btn {
    background: var(--card-bg); border: 1px solid var(--glass-border); color: white;
    width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
}

.cart-content-scroll { flex: 1; overflow-y: auto; padding-right: 5px; }

/* Cards de itens no carrinho */
.cart-item-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex; justify-content: space-between; align-items: center;
}

.cart-item-row .name { font-weight: 600; font-size: 14px; }
.cart-item-row .price-sm { color: var(--primary); font-size: 13px; font-weight: 700; }

/* Rodapé do Carrinho */
.cart-summary { padding-top: 20px; border-top: 1px solid var(--glass-border); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.summary-row.total { font-size: 1.4rem; font-weight: 700; margin: 15px 0; color: white; }

.promo { display: flex; gap: 8px; margin-bottom: 15px; }
.promo input {
    flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    padding: 10px; border-radius: 10px; color: white; outline: none;
}
.apply-btn { background: var(--card-bg); border: 1px solid var(--glass-border); color: white; padding: 0 15px; border-radius: 10px; cursor: pointer; }

.checkout-btn {
    width: 100%; background: #25d366; color: white; border: none;
    padding: 18px; border-radius: 18px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.2);
}

/* --- CARRINHO FAB --- */
.cart-fab {
    position: fixed;
    bottom: 30px; right: 30px;
    background: var(--gradient-glow);
    padding: 12px 25px;
    border-radius: 50px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.4);
    cursor: pointer; z-index: 1100;
    transition: 0.3s;
}

.count-badge {
    position: absolute; top: -5px; left: 10px;
    background: white; color: black; font-size: 11px; font-weight: 800;
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* --- MAPA & LOCALIZAÇÃO --- */
.location-section { padding: 50px 6%; max-width: 1400px; margin: 0 auto; }
.map-card { background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: 25px; overflow: hidden; }
#mapaEntrega { height: 300px; width: 100%; filter: grayscale(1) invert(1) contrast(1.2); }
.map-info { padding: 20px; text-align: center; }

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .cart-panel-elite { width: 100%; }
    .cart-fab-label { display: none; }
    .cart-fab { width: 60px; height: 60px; border-radius: 50%; padding: 0; justify-content: center; }
    .hero-elite h1 { font-size: 1.8rem; }
}
