:root {
    --primary: #f97316; /* Appetizing Bold Orange */
    --primary-dark: #ea580c;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    --font-main: 'Nunito', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg-main); color: var(--text-dark); font-family: var(--font-main); -webkit-font-smoothing: antialiased; padding-bottom: 140px; scroll-behavior: smooth;}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-main); border: none; cursor: pointer; outline: none; }

.app-container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* Demo Topbar Override */
.demo-topbar { background-color: #0f172a; color: #fff; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; font-family: 'Inter', sans-serif; }
.demo-topbar strong { color: var(--primary); }
.demo-topbar a { color: var(--primary); display: flex; align-items: center; gap: 6px; font-weight: 600; transition: 0.3s;}
.demo-topbar a:hover { color: #fff; }

/* Application Header Frame */
.app-header { background: var(--bg-card); padding: 32px 0 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 30px rgba(0,0,0,0.03); }
.header-flex { display: flex; flex-direction: column; gap: 20px; }
.store-info { display: flex; align-items: center; gap: 20px; }
.store-logo { width: 80px; height: 80px; border-radius: 20px; background: rgba(249, 115, 22, 0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; flex-shrink: 0;}
.store-details h1 { font-size: 2rem; font-weight: 900; color: var(--text-dark); line-height: 1.1; margin-bottom: 8px; letter-spacing: -0.5px;}
.status { font-size: 1rem; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.status.open { color: #22c55e; }
.status.open i { font-size: 0.7rem; animation: pulse 2s infinite; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

.search-bar { position: relative; width: 100%; flex: 1;}
.search-bar i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.4rem; }
.search-bar input { width: 100%; background: var(--bg-main); border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px 18px 54px; font-size: 1.1rem; color: var(--text-dark); font-weight: 700; transition: 0.3s; }
.search-bar input:focus { border-color: var(--primary); background: var(--bg-card); box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15); }
.search-bar input::placeholder { color: #94a3b8; font-weight: 600;}

@media (min-width: 768px) {
    .header-flex { flex-direction: row; align-items: center; justify-content: space-between; }
    .search-bar { max-width: 400px; }
}

.app-main { padding-top: 40px; }

/* Promo Banner Slider Simulation */
.banner-grid { display: grid; gap: 24px; margin-bottom: 48px; }
.promo-banner { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); border-radius: var(--radius-md); overflow: hidden; display: flex; align-items: center; position: relative; color: #fff; padding: 40px; box-shadow: 0 15px 40px rgba(249, 115, 22, 0.35); min-height: 280px;}
.promo-banner.secondary { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);}
.promo-text { position: relative; z-index: 2; width: 60%; }
.promo-tag { display: inline-block; background: #fff; color: var(--primary); font-size: 0.8rem; font-weight: 900; padding: 6px 12px; border-radius: 6px; margin-bottom: 16px; letter-spacing: 1px; }
.promo-banner.secondary .promo-tag { color: #0f172a; }
.promo-text h2 { font-size: 2rem; font-weight: 900; line-height: 1.1; margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0,0,0,0.2); letter-spacing: -0.5px;}
.promo-text p { font-size: 1.1rem; opacity: 0.95; font-weight: 600;}
.promo-text strong { font-size: 1.3rem; color: #fff; font-weight: 900; background: rgba(0,0,0,0.2); padding: 4px 8px; border-radius: 6px;}
.promo-banner img { position: absolute; right: -20px; top: 50%; transform: translateY(-50%); width: 320px; height: 320px; object-fit: cover; border-radius: 50%; border: 12px solid rgba(255,255,255,0.1); box-shadow: -10px 0 30px rgba(0,0,0,0.2);}

@media (min-width: 1024px) {
    .banner-grid { grid-template-columns: 2fr 1fr; }
    .promo-banner { min-height: 340px; padding: 60px; }
    .promo-text h2 { font-size: 2.8rem; }
    .promo-banner img { width: 440px; height: 440px; right: -40px; }
    .promo-banner.secondary img { width: 240px; height: 240px; right: -20px; }
}

@media (max-width: 768px) {
    .promo-text { width: 100%; }
    .promo-banner img { opacity: 0.2; right: -100px; }
    .promo-text h2 { font-size: 1.6rem; }
}

/* Categories Carousel */
.categories { margin-bottom: 50px; overflow-x: auto; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.category-list { display: flex; gap: 16px; width: max-content; padding-bottom: 12px; padding-left: 4px;}
.cat-btn { background: var(--bg-card); border: 2px solid var(--border); padding: 14px 28px; border-radius: 100px; display: flex; align-items: center; gap: 12px; font-size: 1.1rem; font-weight: 800; color: var(--text-dark); transition: 0.3s; white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,0.02);}
.cat-btn i { color: var(--text-muted); font-size: 1.4rem; transition: 0.3s;}
.cat-btn:hover { border-color: #cbd5e1; transform: translateY(-3px);}
.cat-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);}
.cat-btn.active i { color: #fff; }

/* Menu Listings */
.menu-section { margin-bottom: 60px; }
.section-title { font-size: 2rem; font-weight: 900; color: var(--text-dark); margin-bottom: 32px; position: relative; padding-left: 20px; letter-spacing: -1px;}
.section-title::before { content: ''; position: absolute; left: 0; top: 10%; height: 80%; width: 6px; background: var(--primary); border-radius: 6px; }

.product-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.product-card { background: var(--bg-card); border-radius: var(--radius-md); border: 2px solid var(--border); padding: 24px; display: flex; gap: 24px; transition: 0.4s; cursor: pointer; position: relative;}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: #cbd5e1; }
.prod-img { width: 140px; height: 140px; border-radius: var(--radius-sm); background-size: cover; background-position: center; flex-shrink: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.1); position: relative;}

/* Promotion Tag inside product */
.prod-promo { position: absolute; top: -10px; left: -10px; background: #ef4444; color: #fff; font-size: 0.75rem; font-weight: 900; padding: 4px 12px; border-radius: 20px; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4); z-index: 10;}

.prod-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between;}
.prod-info h4 { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; line-height: 1.2;}
.prod-info .desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600;}
.prod-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.prod-bottom .price { font-weight: 900; color: var(--text-dark); font-size: 1.4rem; }
.prod-bottom .old-price { font-size: 0.9rem; color: #94a3b8; text-decoration: line-through; margin-right: 8px; font-weight: 700;}

.add-btn { width: 48px; height: 48px; background: rgba(249, 115, 22, 0.1); color: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; transition: 0.3s; font-size: 1.5rem;}
.product-card:hover .add-btn { background: var(--primary); color: #fff; transform: scale(1.1);}

@media (min-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 500px) {
    .product-card { flex-direction: column; }
    .prod-img { width: 100%; height: 200px; }
}

/* Floating Cart Sticky Interface */
.floating-cart { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%); width: calc(100% - 40px); max-width: 1300px; background: var(--text-dark); color: #fff; padding: 16px 24px; border-radius: 100px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 25px 60px rgba(0,0,0,0.5); z-index: 1000; border: 1px solid rgba(255,255,255,0.1); }
.cart-info { display: flex; align-items: center; gap: 20px; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.5px;}
.cart-icon { position: relative; background: rgba(255,255,255,0.1); width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; transition: 0.3s;}
.floating-cart:hover .cart-icon { background: rgba(255,255,255,0.2); }
.cart-icon .badge { position: absolute; top: -6px; right: -6px; background: var(--primary); color: #fff; font-size: 0.9rem; font-weight: 900; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 3px solid var(--text-dark); font-family: 'Inter', sans-serif;}
.finish-btn { background: var(--primary); color: #fff; font-weight: 800; font-size: 1.1rem; padding: 16px 32px; border-radius: 100px; display: flex; align-items: center; gap: 12px; transition: 0.4s; }
.finish-btn:hover { background: var(--primary-dark); transform: scale(1.05); box-shadow: 0 10px 30px rgba(249, 115, 22, 0.5);}

@media (max-width: 600px) {
    .finish-btn { padding: 12px 20px; font-size: 1rem; }
    .cart-info { font-size: 1.1rem; gap: 12px;}
    .cart-icon { width: 44px; height: 44px; font-size: 1.4rem;}
}

/* Sidebar Cart UI */
body.cart-open { overflow: hidden; /* prevent background scrolling */ }
.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    z-index: 2000; opacity: 0; pointer-events: none; transition: 0.4s ease;
}
body.cart-open .cart-overlay { opacity: 1; pointer-events: auto; cursor: pointer;}

.cart-sidebar {
    position: fixed; top: 0; right: 0; width: 100%; max-width: 450px; height: 100vh; height: 100dvh;
    background: var(--bg-main); z-index: 2001; box-shadow: -15px 0 40px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; flex-direction: column; overflow: hidden;
}
body.cart-open .cart-sidebar { transform: translateX(0); }

.cart-header {
    background: var(--bg-card); padding: 24px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
}
.cart-header h2 { font-size: 1.4rem; font-weight: 900; color: var(--text-dark); letter-spacing: -0.5px;}
.close-cart { background: rgba(15, 23, 42, 0.05); color: var(--text-dark); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; transition: 0.3s; }
.close-cart:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; transform: rotate(90deg); }

.cart-body { flex: 1; overflow-y: auto; padding: 24px; background: var(--bg-main); }
.cart-body::-webkit-scrollbar { width: 6px; }
.cart-body::-webkit-scrollbar-track { background: transparent; }
.cart-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.cart-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.cart-item { background: var(--bg-card); padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--border); display: flex; gap: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.02);}
.cart-item img { width: 85px; height: 85px; object-fit: cover; border-radius: var(--radius-sm); }
.item-details { flex: 1; display: flex; flex-direction: column;}
.item-details h4 { font-size: 1.1rem; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; line-height: 1.2;}
.item-details p { font-size: 0.85rem; color: #94a3b8; font-weight: 600; margin-bottom: 12px; }
.item-price-actions { display: flex; justify-content: space-between; align-items: center; margin-top: auto;}
.item-price-actions .price { font-weight: 900; color: var(--text-dark); font-size: 1.25rem; }
.qty-control { display: flex; align-items: center; gap: 12px; background: var(--bg-main); padding: 4px; border-radius: 100px; border: 1px solid var(--border);}
.qty-btn { width: 32px; height: 32px; background: var(--bg-card); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-dark); box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: 0.3s; font-size: 1rem;}
.qty-btn:hover { background: var(--primary); color: #fff;}
.qty-control span { font-weight: 800; font-size: 1.05rem; width: 16px; text-align: center;}

.cart-summary { background: var(--bg-card); padding: 24px; border-radius: var(--radius-md); border: 1px solid var(--border); margin-bottom: 32px; }
.summary-line { display: flex; justify-content: space-between; font-size: 1rem; color: var(--text-muted); font-weight: 700; margin-bottom: 12px; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.4rem; color: var(--text-dark); font-weight: 900; margin-top: 16px; padding-top: 16px; border-top: 2px dashed var(--border); }

.cart-form h3 { font-size: 1.2rem; font-weight: 900; color: var(--text-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 10px;}
.cart-form h3::before { content: ''; display: block; width: 5px; height: 18px; background: var(--primary); border-radius: 5px;}
.cart-input { width: 100%; background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 18px; font-size: 1.05rem; color: var(--text-dark); font-weight: 700; font-family: var(--font-main); transition: 0.3s; margin-bottom: 12px; outline: none; appearance: none;}
.cart-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15); }
.cart-input::placeholder { color: #94a3b8; font-weight: 600;}

.cart-footer { padding: 24px; background: var(--bg-card); border-top: 1px solid var(--border); flex-shrink: 0; box-shadow: 0 -10px 30px rgba(0,0,0,0.03);}
.btn-whatsapp-finish { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; background: #22c55e; color: #fff; font-weight: 900; font-size: 1.15rem; padding: 20px; border-radius: 100px; transition: 0.4s; box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4); text-transform: uppercase; letter-spacing: -0.5px;}
.btn-whatsapp-finish i { font-size: 1.8rem; }
.btn-whatsapp-finish:hover { background: #16a34a; transform: translateY(-4px); box-shadow: 0 15px 35px rgba(34, 197, 94, 0.5); }
