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

[hidden] { display: none !important; }

:root {
  --accent: #ea580c;
  --teal: #0f766e;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #ece7de;
  --sand: #f5f4f1;
}

body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.demo-banner {
  background: #fef3c7;
  color: #92400e;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
}

.hero { position: relative; }
.hero-img { width: 100%; height: 180px; object-fit: cover; display: block; }
@media (min-width: 768px) { .hero-img { height: 260px; } }
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
  color: #fff;
}
.hero-name { font-size: 34px; font-weight: 800; }
.hero-tag { font-size: 15px; opacity: 0.95; }

.bar { display: flex; gap: 10px; margin: 14px auto 12px; }
.search {
  flex: 1; min-width: 0;
  border: 1px solid #e2ddd4; border-radius: 999px;
  padding: 10px 18px; font-size: 15px; background: #fff; font-family: inherit;
}
.cartbtn {
  border: none; border-radius: 999px; padding: 10px 20px;
  font-size: 15px; font-weight: 700; background: var(--accent); color: #fff;
  cursor: pointer; min-height: 44px; font-family: inherit;
}

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.chip {
  flex: 0 0 auto; border: 1px solid #e2ddd4; background: #fff;
  border-radius: 999px; padding: 8px 16px; font-size: 14px;
  cursor: pointer; min-height: 40px; color: inherit; font-family: inherit;
}
.chip-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.card {
  border: 1px solid var(--line); border-radius: 16px; padding: 10px;
  display: flex; flex-direction: column; gap: 6px; background: #fff;
}
.imgwrap { position: relative; border-radius: 12px; overflow: hidden; background: var(--sand); }
.imgwrap img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.off {
  position: absolute; top: 8px; inset-inline-start: 8px;
  background: #dc2626; color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 3px 10px;
}
.name { font-size: 14px; font-weight: 600; line-height: 1.4; }
.cat { font-size: 12px; color: var(--muted); }
.prices { display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 16px; font-weight: 800; color: var(--teal); }
.old { font-size: 13px; color: #a8a29e; text-decoration: line-through; }
.add {
  border: none; border-radius: 12px; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700; padding: 10px; cursor: pointer;
  min-height: 44px; font-family: inherit;
}
.wide { width: 100%; }
.confirm { margin-top: 12px; font-size: 16px; }
.qty {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid #e2ddd4; border-radius: 12px; min-height: 44px;
}
.qty button {
  border: none; background: none; font-size: 20px; font-weight: 700;
  width: 44px; height: 44px; cursor: pointer; color: var(--accent); font-family: inherit;
}
.qty span { font-weight: 700; font-size: 15px; }

.trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.trust-item {
  flex: 1 1 140px; text-align: center; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px;
  font-size: 13px; font-weight: 600;
}

.checkout { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.checkout h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.empty { color: var(--muted); font-size: 14px; text-align: center; padding: 18px 0; }
.lines { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.line {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fff;
}
.line-name { flex: 1; font-size: 14px; font-weight: 600; }
.line-total { font-weight: 700; font-size: 14px; }
.qty-sm { min-height: 36px; }
.qty-sm button { width: 36px; height: 36px; font-size: 16px; }

.totals {
  margin-top: 12px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.trow { display: flex; justify-content: space-between; font-size: 14px; }
.grand { font-size: 17px; font-weight: 800; border-top: 1px solid #e2ddd4; padding-top: 8px; }
.muted { color: var(--muted); }
.free { color: var(--teal); font-weight: 700; }
.note { font-size: 12px; color: var(--muted); }

.form { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.input {
  border: 1px solid #e2ddd4; border-radius: 12px; padding: 12px 14px;
  font-size: 15px; font-family: inherit; background: #fff; min-height: 44px;
}
.zones { display: flex; gap: 8px; flex-wrap: wrap; }
.errors {
  padding: 12px 16px; padding-inline-start: 32px;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px;
  color: #b91c1c; font-size: 13px; display: flex; flex-direction: column; gap: 4px;
}

.success {
  border: 1px solid #99f6e4; background: #f0fdfa; border-radius: 16px;
  padding: 18px; display: flex; flex-direction: column; gap: 6px;
}
.success-title { font-size: 18px; font-weight: 800; color: var(--teal); }
.success p { font-size: 14px; }
.success-note { color: #57534e; font-size: 13px; }

.footer {
  text-align: center; color: var(--muted); font-size: 13px;
  padding: 24px 16px; margin-top: 24px; border-top: 1px solid var(--line);
}
