/* =====================================================
   LA MIA GELATERIA — LP PEDIDOS — STYLES v2
   Mobile-first, compact, delivery-app feel
   ===================================================== */

:root {
  --cream:   #f6efe6;
  --white:   #ffffff;
  --accent:  #c84b31;
  --accent2: #a33a22;
  --text:    #1a1a1a;
  --muted:   #777;
  --border:  #e8ddd3;
  --radius:  12px;
  --shadow:  0 2px 12px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--cream);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 100px;
}

/* ── HEADER ───────────────────────────────────────── */
.site-header {
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .mark {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.site-header .brand { font-weight: 700; font-size: 15px; }
.site-header .tagline { font-size: 12px; color: var(--muted); }

/* ── ENTRY SCREEN ─────────────────────────────────── */
.entry-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  margin-top: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.entry-card h1 { font-size: 22px; margin-bottom: 6px; }
.entry-card p  { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background .15s;
  text-decoration: none;
}
.btn:hover { background: var(--accent2); }
.btn.secondary {
  background: #f0e8e0;
  color: var(--text);
}
.btn.secondary:hover { background: #e4d8cc; }
.btn.small { padding: 10px 16px; font-size: 14px; }

/* ── SECTION TITLE ────────────────────────────────── */
.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 10px;
}

/* ── CATEGORY BLOCK ───────────────────────────────── */
.cat-block { margin-bottom: 8px; }

.cat-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--border);
}
.cat-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.cat-header .cat-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

/* ── PRODUCT ROWS (list style, not grid) ─────────── */
.cat-items { background: var(--white); border-radius: 0 0 var(--radius) var(--radius); }

.prod-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.prod-row:last-child { border-bottom: none; }

.prod-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--cream);
}
.prod-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.prod-info { flex: 1; min-width: 0; }
.prod-info .prod-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── QTY CONTROLS ─────────────────────────────────── */
.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.qty-btn {
  width: 34px; height: 34px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background .1s;
  -webkit-tap-highlight-color: transparent;
}
.qty-btn:active { background: var(--cream); }
.qty-num {
  min-width: 32px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* ── FLOATING CART ────────────────────────────────── */
.cart-float {
  position: fixed;
  bottom: 16px;
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(200,75,49,.4);
  z-index: 100;
  cursor: pointer;
}
.cart-float .cf-count {
  font-size: 13px;
  opacity: .85;
}
.cart-float .cf-label {
  font-size: 16px;
  font-weight: 700;
}
.cart-float .cf-arrow {
  font-size: 20px;
}

/* ── FORM ─────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.form-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
label span { display: block; margin-bottom: 4px; }
input, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
}
input:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: none; height: 72px; }

.type-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.type-btn {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: var(--white);
  cursor: pointer;
  text-align: center;
  color: var(--muted);
  transition: all .15s;
}
.type-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: #fdf3f0;
}

.info-box {
  background: var(--cream);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ── REVIEW ───────────────────────────────────────── */
.review-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.review-item:last-child { border-bottom: none; }
.review-total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  padding-top: 12px;
  margin-top: 4px;
}

/* ── CONFIRM ──────────────────────────────────────── */
.confirm-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.confirm-card .emoji { font-size: 48px; margin-bottom: 12px; }
.confirm-card h2 { font-size: 20px; margin-bottom: 8px; }
.confirm-card p  { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

/* ── FOOTER LINKS ─────────────────────────────────── */
.footer-links {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 20px 0 8px;
}
.footer-links a { color: var(--muted); text-decoration: underline; }

/* ── UTILS ────────────────────────────────────────── */
.mt8  { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.gap8 { display: flex; flex-direction: column; gap: 8px; }
