:root {
  --teal: #0b8f94;
  --cyan: #15DFE4;
  --orange: #FF5702;
  --ink: #141414;
  --paper: #ffffff;
  --bg: #e9eaec;
  --line: #e2e2e2;
  --muted: #666;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'League Spartan', sans-serif;
  line-height: 1.35;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
  padding: 24px 20px 140px;
}

/* header */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.masthead img { height: 72px; width: auto; display: block; }
.masthead .tag {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--muted);
  margin-top: 6px;
}
.masthead .contact {
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  color: #444;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

h1 {
  font-size: 22px;
  letter-spacing: 1px;
  margin: 0 0 4px;
}
.subtitle { color: var(--muted); font-size: 14px; margin: 0 0 20px; }

/* sections */
.section-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 3px solid var(--cyan);
  padding-bottom: 6px;
  margin: 28px 0 14px;
}
.section-note { font-size: 12px; color: #888; letter-spacing: 0.3px; margin: -8px 0 12px; }

/* form fields */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #333;
  text-transform: uppercase;
}
.field input, .field select {
  font-family: inherit;
  font-size: 15px;
  padding: 10px;
  border: 1px solid #c7c7c7;
  border-radius: 6px;
  background: #fafafa;
  width: 100%;
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--cyan);
  border-color: var(--cyan);
}
.req::after { content: " *"; color: var(--orange); }

/* product cards */
.products { display: grid; gap: 12px; }
.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
}
.card.featured { border: 2px solid var(--cyan); }
.card .thumb {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
  background: #f5f6f7;
}
.card .info { flex: 1; min-width: 0; }
.card .name { font-weight: 700; font-size: 15px; }
.card .desc { font-size: 12px; color: #777; margin-top: 2px; line-height: 1.5; }
.card .price { font-weight: 700; font-size: 18px; color: var(--teal); margin-top: 2px; }
.badge {
  position: absolute;
  top: -10px;
  left: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 4px;
}

/* qty stepper */
.stepper { display: flex; align-items: center; gap: 0; flex: none; }
.stepper button {
  width: 36px;
  height: 36px;
  border: 1px solid #c7c7c7;
  background: #fafafa;
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
  cursor: pointer;
  font-family: inherit;
}
.stepper button:first-child { border-radius: 6px 0 0 6px; }
.stepper button:last-child { border-radius: 0 6px 6px 0; }
.stepper .qty {
  width: 40px;
  height: 36px;
  border-top: 1px solid #c7c7c7;
  border-bottom: 1px solid #c7c7c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  background: #fff;
}
.card.selected { background: #f0fbfc; }

/* sticky total bar */
.totalbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 10;
}
.totalbar .amount { font-size: 22px; font-weight: 700; color: var(--cyan); }
.totalbar .label { font-size: 11px; letter-spacing: 2px; color: #aaa; }
.checkout-btn {
  background: var(--teal);
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 14px 22px;
  border-radius: 8px;
  cursor: pointer;
}
.checkout-btn:hover { background: #0a7d81; }
.checkout-btn:disabled { background: #555; cursor: not-allowed; }

.error-box {
  background: #fff3f0;
  border: 1px solid var(--orange);
  color: #b23c00;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 14px 0;
  display: none;
}

.fineprint {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 10px;
  line-height: 1.7;
  color: #999;
  letter-spacing: 0.2px;
}

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* thanks page */
.thanks-card { text-align: center; padding: 60px 20px; }
.thanks-card .check { font-size: 56px; }

/* admin */
table.orders { width: 100%; border-collapse: collapse; font-size: 13px; }
table.orders th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a8a8a;
  border-bottom: 2px solid var(--ink);
  padding: 6px 8px;
}
table.orders td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.orders tr.detail td { background: #f5f6f7; font-size: 12px; }
.pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}
.pill.pending { background: #eee; color: #666; }
.pill.paid { background: #d9f7f8; color: var(--teal); }
.pill.fulfilled { background: #e3f6e3; color: #2c7a2c; }
.pill.canceled { background: #ffe8df; color: #b23c00; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; align-items: end; }
.toolbar .field { min-width: 130px; }
button.small {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #c7c7c7;
  background: #fafafa;
  cursor: pointer;
}
button.small:hover { border-color: var(--teal); color: var(--teal); }
