:root {
  --bg: #eef8fd;
  --surface: #ffffff;
  --surface-2: #f7fbfe;
  --line: #d7eaf6;
  --text: #16324b;
  --muted: #61829a;
  --primary: #61bde8;
  --primary-deep: #2e8fc5;
  --accent: #1f5f95;
  --danger: #d95f68;
  --danger-soft: #fdecef;
  --shadow: 0 12px 30px rgba(26, 77, 112, 0.08);
  --radius: 20px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: linear-gradient(180deg, #dff3fc 0%, var(--bg) 100%); color: var(--text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { min-height: 100vh; }
button, input, select { font: inherit; }
.app-shell { max-width: 760px; margin: 0 auto; padding: 16px 14px 100px; }
.topbar, .card, .banner-wrap { background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.6); box-shadow: var(--shadow); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-radius: 24px; }
.brand-wrap { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary-deep), var(--primary), #92dbff); }
h1 { margin: 0; font-size: 1.25rem; }
#empresaLabel { margin: 3px 0 0; color: var(--muted); font-size: 0.92rem; }
.ghost-btn, .link-btn { border: 0; background: transparent; color: var(--accent); font-weight: 700; cursor: pointer; }
.ghost-btn { width: 42px; height: 42px; border-radius: 14px; background: var(--surface-2); }
.status-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.badge { padding: 10px 12px; border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); font-size: 0.88rem; font-weight: 700; }
.badge.muted { color: var(--muted); }
.badge.alert { background: #fff4e3; color: #9a5f00; }
.banner-wrap { border-radius: 22px; overflow: hidden; margin-bottom: 14px; }
.banner-link { display: block; text-decoration: none; color: inherit; }
.banner-content { padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.banner-copy { flex: 1; }
.banner-kicker { font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-deep); font-weight: 800; margin-bottom: 4px; }
.banner-title { font-weight: 800; line-height: 1.25; }
.banner-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 18px; background: #e8f5fb; }
.main-content { display: grid; gap: 14px; }
.card { border-radius: var(--radius); padding: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card h2 { margin: 0; font-size: 1.05rem; }
.field-label { display: block; margin-bottom: 8px; font-weight: 700; }
.input, .select { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 13px 14px; color: var(--text); outline: none; }
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(97,189,232,.15); }
.filters-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.option-list, .product-list, .cart-list, .history-list { display: grid; gap: 10px; margin-top: 12px; }
.option-item, .product-item, .cart-item, .history-item { border: 1px solid var(--line); background: var(--surface-2); border-radius: 18px; padding: 12px; }
.option-item { cursor: pointer; }
.option-meta, .mini-text { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.selected-card { margin-top: 12px; padding: 14px; border-radius: 18px; background: #e8f5fb; border: 1px solid #c5e7f8; }
.product-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-copy { flex: 1; min-width: 0; }
.product-price { font-weight: 800; font-size: 1rem; white-space: nowrap; }
.add-btn, .primary-btn, .secondary-btn { border: 0; border-radius: 16px; padding: 13px 14px; font-weight: 800; cursor: pointer; }
.add-btn { background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.primary-btn { background: linear-gradient(135deg, var(--primary-deep), var(--primary)); color: white; }
.secondary-btn { background: #eaf6fc; color: var(--accent); }
.link-btn.danger { color: var(--danger); }
.cart-item { display: grid; gap: 10px; }
.cart-top { display: flex; justify-content: space-between; gap: 10px; }
.qty-row { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: white; font-weight: 900; cursor: pointer; }
.qty-value { min-width: 28px; text-align: center; font-weight: 800; }
.remove-btn { background: var(--danger-soft); color: var(--danger); border: 0; padding: 10px 12px; border-radius: 12px; font-weight: 800; cursor: pointer; }
.summary-box { margin-top: 14px; border: 1px solid var(--line); border-radius: 18px; padding: 12px; background: #fff; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.summary-row.total { font-size: 1.1rem; }
.preview-box { margin-top: 14px; border-radius: 18px; background: #0f2538; color: #dff6ff; overflow: hidden; }
.preview-head { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .84rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.preview-box pre { margin: 0; padding: 14px; white-space: pre-wrap; word-break: break-word; font-family: inherit; }
.sticky-actions { position: sticky; bottom: 12px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; margin-top: 16px; }
.empty-state { color: var(--muted); text-align: center; padding: 22px 12px; border: 1px dashed var(--line); border-radius: 18px; background: rgba(255,255,255,.55); }
.support-box a { color: var(--accent); text-decoration: none; font-weight: 700; }
.hidden { display: none !important; }
.modal { position: fixed; inset: 0; z-index: 50; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 26, 39, .4); backdrop-filter: blur(4px); }
.modal-panel { position: relative; z-index: 1; margin: 8vh auto 0; width: min(92vw, 520px); background: white; border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.modal-text { margin: 0 0 14px; color: var(--muted); }
.full-btn { width: 100%; margin-top: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0f2538; color: white; padding: 12px 14px; border-radius: 999px; z-index: 99; }
@media (max-width: 620px) { .app-shell { padding: 12px 10px 92px; } .filters-row, .sticky-actions { grid-template-columns: 1fr; } .banner-content { align-items: flex-start; } .banner-thumb { width: 72px; height: 72px; } }
