:root{--navy:#0f1138;--red:#ca1d23;--yellow:#f2db13;--bg:#ffffff;--ink:#0a0a0a;--muted:#6b7280;--soft:#f2f3f5;--ring:rgba(15,17,56,.15)}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:#f4f5f7;color:var(--ink);font-family:'Poppins',-apple-system,Segoe UI,Roboto,Arial,sans-serif;overflow-x:hidden}
.app{min-height:100vh;display:flex;flex-direction:column}
.app.home-splash,.home-splash .app-content{height:100vh;overflow:hidden}
.home-splash .app-content{padding:0}
.app-header{position:sticky;top:0;z-index:20;background:transparent;border-bottom:none;box-shadow:none;display:flex;align-items:center;justify-content:space-between;height:60px;padding:0 12px;border-radius:0}
.app-header .title{font-weight:800;letter-spacing:.2px;font-size:18px}
.icon-btn{background:#fff;border:1px solid #eee;border-radius:12px;padding:8px 10px;box-shadow:0 1px 2px rgba(0,0,0,.05);cursor:pointer}
.icon-btn .badge{background:var(--red);color:#fff;border-radius:999px;padding:1px 6px;margin-left:6px;font-size:12px}
.app-content{padding:18px 16px 110px}

/* Search hero */
.home-hero{background:linear-gradient(180deg,#111827, #1f2937);color:#fff;border-radius:22px;padding:16px;box-shadow:0 20px 60px rgba(0,0,0,.18);margin-bottom:18px}
.home-hero .brand{display:flex;gap:12px;align-items:center}
.home-hero .brand .logo{width:44px;height:44px}
.home-hero h1{margin:0;font-size:20px}
.home-hero p{margin:4px 0 0;color:#cbd5e1}
.home-hero .stats{display:flex;gap:8px;margin:12px 0}
.home-hero .stat{background:#0b1220;border:1px solid rgba(255,255,255,.08);padding:8px 10px;border-radius:12px;color:#cbd5e1}
.home-hero .full{width:100%;margin-top:8px}
.hero{margin:10px 0 22px}
.hero h1{font-size:28px;line-height:1.15;margin:6px 0 2px;font-weight:800}
.hero .sub{font-size:18px;color:#2b2b2b;opacity:.85;margin:2px 0 18px}
.searchwrap{display:flex;gap:12px;align-items:center;margin-bottom:6px}
.searchbar{display:flex;align-items:center;background:#fff;border:1px solid #f0f0f0;border-radius:18px;padding:14px 16px;gap:12px;box-shadow:0 14px 32px rgba(15,17,56,.10)}
.searchbar input{border:none;outline:none;flex:1;background:transparent}
.filterbtn{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:#0f1138;color:#fff;border:none;box-shadow:0 10px 20px rgba(15,17,56,.35)}
.section-title{font-weight:800;margin:22px 0 12px}
.chips{display:flex;gap:12px;overflow:auto;margin-top:10px;margin-bottom:16px}
.chip{border:1px solid #f0f0f0;background:#fff;border-radius:999px;padding:8px 14px;white-space:nowrap;box-shadow:0 6px 16px rgba(0,0,0,.06);color:#111;text-decoration:none}
.chip.active{background:#0f1138;color:#fff;border-color:#0f1138}

/* Card grid */
.grid{display:grid;gap:16px;grid-template-columns:repeat(2,1fr)}
.menu-grid{margin-bottom:24px}
.menu-grid--last{margin-bottom:160px}
.card{background:#fff;border:1px solid #f1f1f1;border-radius:22px;box-shadow:0 14px 40px rgba(15,17,56,.08);overflow:hidden}
.card .imgwrap{position:relative;display:flex;align-items:center;justify-content:center;padding:20px 14px 10px}
.card img{width:120px;height:120px;object-fit:cover;border-radius:50%;box-shadow:0 10px 22px rgba(0,0,0,.12)}
.card .fav{position:absolute;top:10px;right:10px;background:#fff;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border:1px solid #eee;box-shadow:0 8px 20px rgba(0,0,0,.08)}
.card .plus{position:absolute;bottom:-18px;left:50%;transform:translateX(-50%);background:#0f1138;color:#fff;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:none;box-shadow:0 14px 30px rgba(15,17,56,.35);cursor:pointer}
.card .body{padding:24px 16px 18px;text-align:center}
.card .name{font-weight:700;margin:0 0 2px}
.card .meta{color:#6b7280;font-size:12px}

/* Bottom Tabbar */
.tabbar{position:fixed;bottom:0;left:0;right:0;background:#111827;border-top:1px solid rgba(255,255,255,.06);display:flex;justify-content:space-around;height:64px;padding:8px 12px;z-index:30;border-radius:16px 16px 0 0}
.tabbar .tab{color:#e5e7eb;text-decoration:none;display:flex;align-items:center;justify-content:center;width:56px}
.tabbar .tab .ico{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;border:1px solid rgba(255,255,255,.25)}
.tabbar .tab.active .ico{background:#fff;color:#111827;border-color:#fff}

/* Bottom sheet (configurator) */
.sheet{position:fixed;left:0;right:0;bottom:-100%;background:#fff;border-radius:20px 20px 0 0;box-shadow:0 -12px 34px rgba(0,0,0,.25);transition:bottom .25s ease;z-index:40;padding:16px 16px 20px;max-height:92vh;display:flex;flex-direction:column}
.sheet.open{bottom:0}
.sheet header{display:flex;justify-content:space-between;align-items:center}
.sheet .group{margin:12px 0}
.sheet .opts{display:flex;flex-direction:column;gap:6px}
.sheet .qty{display:flex;align-items:center;gap:8px}
.sheet .footer{display:flex;justify-content:space-between;align-items:center;margin-top:8px}
.sheet .content{flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 14px;border-radius:12px;border:none;cursor:pointer}
.btn{text-decoration:none}
.btn-primary{background:var(--red);color:#fff}
.btn-ghost{background:#fff;border:1px solid #eee}

/* Fancy modal layout */
.sheet .topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.sheet .hero-wrap{position:relative;margin:6px 0 10px;display:flex;justify-content:center;padding:0 8px}
/* Make product image larger by removing inner card chrome and letting it scale */
.sheet .hero{background:transparent;border-radius:0;padding:0;box-shadow:none;width:100%;display:flex;justify-content:center}
.sheet .hero img{width:min(92vw, 420px);height:auto;max-height:52vh;border-radius:22px;object-fit:cover;box-shadow:0 18px 50px rgba(0,0,0,.12)}
.sheet .qty-fab{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;background:#fff;border:1px solid #eee;border-radius:16px;box-shadow:0 10px 26px rgba(0,0,0,.18)}
.sheet .qty-fab button{background:#0f1138;color:#fff;border:none;width:36px;height:28px;border-radius:8px;margin:4px 6px}
.sheet .qty-fab .val{background:#000;color:#fff;border-radius:8px;padding:6px 10px;margin:2px 0}
.sheet .meta h3{margin:8px 0 4px;font-weight:800}
.sheet .meta p{margin:0;color:#6b7280}
.sheet .pill-row{display:flex;gap:12px;margin:16px 0}
.sheet .pill{flex:1;background:#fff;border:1px solid #eee;border-radius:14px;padding:10px 12px;box-shadow:0 10px 24px rgba(0,0,0,.06)}
.sheet .pill span{display:block;color:#6b7280;font-size:12px}
.sheet .pill strong{display:block;margin-top:2px}
.sheet .add-btn{width:100%;margin-top:6px}

/* Success dialog */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:60}
.success-card{background:#fff;border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.25);padding:18px 16px;max-width:360px;width:86%;text-align:center}
.success-card .tick{width:70px;height:70px;border-radius:50%;border:3px solid #111827;margin:6px auto 10px;display:flex;align-items:center;justify-content:center}
.success-card h3{margin:6px 0 8px;font-size:18px}
.success-card p{margin:0 0 12px;color:#6b7280}
.success-card .btn{width:100%;border-radius:12px}

/* Lock page scroll when modal open */
body.no-scroll{overflow:hidden}

@media(min-width:900px){.app-content{max-width:520px;margin:0 auto} .app.admin .app-content{max-width:980px} .tabbar{left:calc(50% - 260px);right:calc(50% - 260px);border-radius:16px 16px 0 0}}

/* Cart total bar (menu screen) */
.totalbar{position:fixed;left:0;right:0;bottom:64px;background:#fff;border-top:1px solid #eee;box-shadow:0 -8px 26px var(--ring);z-index:29;padding:14px 16px;display:flex;justify-content:space-between;align-items:center}
.totalbar a{text-decoration:none}

/* Onboarding (home) */
.onboard{display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:6px}
.onboard-card{width:100%;background:#ffffff;border-radius:28px;box-shadow:0 22px 60px rgba(0,0,0,.12);padding:18px}
.onboard-card img{width:100%;height:280px;object-fit:contain;border-radius:22px;box-shadow:0 10px 26px rgba(0,0,0,.08)}
.dot{width:34px;height:6px;border-radius:999px;background:#11182733}
.tag{color:#ca1d23;font-weight:700;font-size:12px;letter-spacing:.6px;align-self:flex-start}
.onboard h1{font-weight:800;font-size:32px;line-height:1.1;margin:0;align-self:flex-start}
.onboard h2{font-weight:500;font-size:28px;color:#111827cc;margin:0 0 6px;align-self:flex-start}
.onboard .cta{display:block;width:100%;text-align:center;background:#111827;color:#fff;border-radius:14px;padding:14px 16px;text-decoration:none;font-weight:600;box-shadow:0 10px 24px rgba(0,0,0,.25)}
.onboard .cta-fixed{position:fixed;left:50%;transform:translateX(-50%);bottom:26px;max-width:480px;width:86%;z-index:31}

/* Cart screen */
.cart-list{display:flex;flex-direction:column;gap:14px;margin-bottom:280px}
.cart-line{background:#fff;border:1px solid #eee;border-radius:18px;box-shadow:0 12px 28px rgba(0,0,0,.06);padding:14px;display:flex;gap:14px;align-items:center}
.cart-line .thumb{width:56px;height:56px;border-radius:12px;object-fit:cover;box-shadow:0 8px 18px rgba(0,0,0,.08)}
.cart-line .info{flex:1;min-width:0}
.cart-line .name{font-weight:700;margin-bottom:2px}
.cart-line .price{color:#6b7280}
.cart-line .stepper{display:flex;flex-direction:column;align-items:center;gap:6px}
.cart-line .icon-btn{width:32px;height:28px;border-radius:8px}

.checkoutbar{position:fixed;left:0;right:0;bottom:0;background:#f4f5f7;border-top:1px solid #eee;z-index:30;padding:12px 12px}
.checkoutbar .box{background:#fff;border:1px solid #eee;border-radius:16px;box-shadow:0 10px 24px rgba(0,0,0,.06);padding:12px}
.checkoutbar .row{display:flex;justify-content:space-between;align-items:center;padding:6px 0}
.checkoutbar .row.total{border-top:1px dashed #d1d5db;margin-top:6px;padding-top:10px}
.checkoutbar .cta{display:block;width:100%;text-align:center;background:#111827;color:#fff;border-radius:14px;padding:14px 16px;text-decoration:none;font-weight:600;margin-top:10px}

/* Checkout screen */
.section{margin:14px 0}
.section h3{margin:0 0 10px;font-weight:800}
.address-list{display:flex;flex-direction:column;gap:12px}
.address-card{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid #eee;border-radius:18px;box-shadow:0 10px 24px rgba(0,0,0,.06);padding:12px}
.address-card .radio{margin-top:4px}
.address-card .meta{color:#6b7280;font-size:12px}
.pm-list{display:flex;flex-direction:column;gap:10px}
.pm-item{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid #eee;border-radius:12px;padding:10px 12px;box-shadow:0 6px 16px rgba(0,0,0,.05)}
.pm-item .left{display:flex;align-items:center;gap:10px}
.pm-item i{font-size:18px}

/* Auth (admin login) */
.auth{display:flex;justify-content:center}
.auth-card{background:#fff;border:1px solid #eee;border-radius:18px;box-shadow:0 14px 40px rgba(0,0,0,.08);padding:16px;max-width:520px;width:100%}
.auth-input{width:100%;border:1px solid #eee;border-radius:10px;padding:12px;margin-top:6px}

/* Admin pages general */
.admin-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.admin-card{background:#fff;border:1px solid #eee;border-radius:18px;box-shadow:0 12px 30px rgba(0,0,0,.06);padding:14px}
.splash{position:relative;display:flex;min-height:calc(100vh - 0px);flex-direction:column;align-items:center;justify-content:center;text-align:center;background:linear-gradient(180deg,#0f1138,#1f2a63);color:#fff;border-radius:24px;padding:24px;margin-top:6px;box-shadow:0 24px 60px rgba(0,0,0,.25)}
.splash .glow{position:absolute;inset:0;background:radial-gradient(60% 40% at 50% 10%, rgba(255,255,255,.15), transparent 60%)}
.splash .logo-wrap{position:relative;width:120px;height:120px;border-radius:28px;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.splash .logo{width:80px;height:80px}
.splash h1{position:relative;margin:2px 0 4px;font-size:22px;letter-spacing:.3px}
.splash .tagline{position:relative;color:#c7d2fe;margin:0 0 14px}
.splash-cta{position:fixed;left:16px;right:16px;bottom:16px;display:block;width:auto}
.splash .btn-ghost{color:#fff;background:transparent;border:1px solid rgba(255,255,255,.25)}
