:root {
  --green: #1f5132;
  --green-dark: #163a24;
  --sand: #f4f1ea;
  --ink: #1d2421;
  --muted: #6b7670;
  --line: #e0ddd4;
  --amber: #b9770a;
  --blue: #1d6fa5;
  --red: #a32a2a;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--sand);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--green); }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: var(--green);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: #fff; }
.brand-mark { font-size: 1.3rem; color: #cfe3d3; }
.brand-name { font-size: 1.25rem; font-weight: 600; letter-spacing: 0.3px; }
.brand-name em { font-style: normal; font-weight: 300; }
.site-header nav { display: flex; align-items: center; gap: 1rem; }
.nav-user { font-weight: 600; }
.nav-tag { color: #cfe3d3; font-size: 0.9rem; }
.inline { display: inline; margin: 0; }

/* Layout */
.container { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 2rem 1.5rem; }
.site-footer { padding: 1rem 1.5rem; text-align: center; color: var(--muted); font-size: 0.85rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* Buttons */
.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-small { padding: 0.35rem 0.7rem; font-size: 0.85rem; }

/* Hero / landing */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 { font-size: 2.4rem; margin: 0 0 0.8rem; line-height: 1.1; }
.lead { font-size: 1.1rem; color: #36433b; }
.hero-points { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.hero-points li { padding: 0.3rem 0 0.3rem 1.6rem; position: relative; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 8px 24px rgba(22, 58, 36, 0.08);
}
.hero-card h2 { margin-top: 0; }

/* Login form */
.login-form { display: flex; flex-direction: column; gap: 0.9rem; }
.login-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; }
.login-form input {
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
}
.form-error { background: #fbe9e9; color: var(--red); padding: 0.5rem 0.7rem; border-radius: 8px; margin: 0; }

/* Dashboard */
.dash-head h1 { margin-bottom: 0.2rem; }
.orders { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.5rem; }
.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.order-top { display: flex; justify-content: space-between; align-items: flex-start; }
.order-top h3 { margin: 0; }
.order-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1rem; }
.ship-to h4, .order-items h4 { margin: 0 0 0.4rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
address { font-style: normal; line-height: 1.5; }
.lock-note { color: var(--amber); font-weight: 600; font-size: 0.85rem; margin-top: 0.6rem; }
.items-slot { margin-top: 0.7rem; }

.item-list { list-style: none; padding: 0; margin: 0; }
.item-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 0.8rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.item-list li:last-child { border-bottom: none; }
.item-qty { color: var(--muted); }
.item-price { font-weight: 600; }

/* Status badges */
.badge { padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.badge-pending { background: #eee7d6; color: #8a6d18; }
.badge-processing { background: #e7f0f7; color: var(--blue); }
.badge-shipped { background: #e3eef9; color: #155a86; }
.badge-out_for_delivery { background: #fdf0dd; color: var(--amber); }
.badge-delivered { background: #e2f1e6; color: var(--green); }
.badge-cancelled { background: #f3e3e3; color: var(--red); }

@media (max-width: 720px) {
  .hero, .order-body { grid-template-columns: 1fr; }
}
