/* Refrescos — estilos compartidos, mobile-first */
:root {
  --bg: #FAFAF8;
  --fg: #1A1A1A;
  --muted: #6B6B6B;
  --line: #E5E5E0;
  --accent: #FF4B3E;
  --accent-dark: #D93A2E;
  --ok: #2E8B57;
  --warn: #E5A100;
  --err: #C43D2E;
  --card: #FFFFFF;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
header.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
header.top h1 { font-size: 18px; margin: 0; font-weight: 600; }
main { padding: 16px; padding-bottom: 100px; max-width: 720px; margin: 0 auto; }
h2 { font-size: 16px; margin: 24px 0 8px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 100px; background: #EEE; font-size: 12px; color: var(--muted); }
.tag.ok { background: #E1F0E4; color: var(--ok); }
.tag.warn { background: #FFF3D6; color: var(--warn); }
.tag.err { background: #FCE1DD; color: var(--err); }
.tag.accent { background: #FFE1DD; color: var(--accent-dark); }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  background: var(--card);
  color: var(--fg);
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
label { display: block; margin: 10px 0 6px; font-size: 14px; color: var(--muted); }

button, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: var(--fg);
  color: white;
  min-height: 48px;
}
button.primary, .btn.primary { background: var(--accent); }
button.primary:active, .btn.primary:active { background: var(--accent-dark); }
button.ghost, .btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
button.danger, .btn.danger { background: var(--err); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.block { width: 100%; }

.qty { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { background: var(--card); color: var(--fg); border-radius: 0; padding: 8px 14px; min-height: 44px; font-size: 18px; font-weight: 700; }
.qty input { width: 60px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; padding: 8px 4px; }

.list > * + * { margin-top: 8px; }

.floating-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  display: flex; gap: 10px; align-items: center;
  z-index: 20;
}
.notice { padding: 10px 12px; border-radius: 10px; margin-bottom: 10px; font-size: 14px; }
.notice.ok { background: #E1F0E4; color: var(--ok); }
.notice.err { background: #FCE1DD; color: var(--err); }
.notice.warn { background: #FFF3D6; color: var(--warn); }

.hidden { display: none !important; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.searchbar { position: sticky; top: 55px; background: var(--bg); padding: 8px 0 12px; z-index: 5; }
