/* OWW Parts PWA — same palette as the website (css/site.css), stripped down for phones. */
:root {
  --navy: #0e1620; --navy-mid: #162232; --steel: #cbd9e4; --steel-deep: #8aa0b2;
  --teal: #2bb8a3; --bg: #e7eef3; --card: #fff; --ink: #121417; --muted: #4d5b66; --line: #c3d0da;
  --ok: #0f6b3c; --ok-bg: #d8f3e4; --out: #8f2430; --out-bg: #f8d7db; --low: #6a4b00; --low-bg: #f4e4b2;
  --r: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.45;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: var(--navy); color: #fff;
  border-bottom: 3px solid var(--steel);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 8px; }
.brand strong { display: block; font-size: 1.05rem; }
.brand small { display: block; color: var(--steel); font-size: .75rem; }
.cart-btn {
  text-decoration: none; background: var(--steel); color: var(--navy); font-weight: 700;
  border-radius: 999px; padding: 8px 14px; white-space: nowrap;
}
.cart-btn span { display: inline-block; min-width: 1.4em; text-align: center; background: var(--navy); color: #fff; border-radius: 999px; margin-left: 4px; padding: 0 6px; font-size: .85rem; }
.sample { background: var(--low-bg); color: var(--low); font-size: .8rem; font-weight: 700; text-align: center; padding: 6px 10px; }
main { padding: 14px; max-width: 640px; margin: 0 auto; outline: none; }
.pad { padding: 14px; }
h1 { font-size: 1.45rem; margin: 6px 0 6px; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: 1.1rem; margin: 20px 0 8px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); font-size: .92rem; }
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 70%, #1d3a44 100%); color: #fff; border-radius: var(--r); padding: 18px 16px; }
.hero .kick { color: var(--teal); font-weight: 900; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.hero p { color: #dbe6ee; }
.tagline { font-family: "Lusitana", Georgia, serif; font-style: italic; color: var(--steel) !important; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; text-decoration: none; }
.stat strong { display: block; font-size: 1.6rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .85rem; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tile { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; text-decoration: none; }
.tile strong { display: block; }
.tile span { color: var(--muted); font-size: .88rem; }
.tile.custom { border-left: 5px solid var(--teal); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin: 8px 0; }
.chip { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: .88rem; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
input[type=search], input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; font-size: 16px;
}
.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.item-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.item h3 { margin: 0; font-size: 1rem; }
.sku { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; color: var(--muted); }
.qty { text-align: right; flex: none; }
.qty strong { display: block; font-size: 1.35rem; color: var(--navy); line-height: 1; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; margin-top: 4px; }
.ok { background: var(--ok-bg); color: var(--ok); } .low { background: var(--low-bg); color: var(--low); } .out { background: var(--out-bg); color: var(--out); }
.item-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.stepper { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: var(--bg); font-size: 1.2rem; }
.stepper output { min-width: 40px; display: grid; place-items: center; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; }
.btn.steel { background: var(--steel); color: var(--navy); }
.btn.outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 10px 0; }
.card ul { margin: 6px 0 0; padding-left: 20px; }
label { display: block; font-weight: 700; font-size: .9rem; margin: 10px 0 4px; }
.radio { display: flex; gap: 6px; flex-wrap: wrap; }
.radio label { font-weight: 400; margin: 0; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; }
.error { background: var(--out-bg); color: var(--out); border-radius: 10px; padding: 10px; font-weight: 700; }
.summary { white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; background: #fff; border: 1px dashed var(--steel-deep); border-radius: 10px; padding: 10px; }
.line { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.price { color: var(--ok); font-weight: 700; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--navy); border-top: 3px solid var(--steel); padding-bottom: env(safe-area-inset-bottom);
}
.tabs a { color: var(--steel); text-decoration: none; text-align: center; font-size: .8rem; font-weight: 700; padding: 14px 2px; }
.tabs a[aria-current="page"] { color: #fff; box-shadow: inset 0 3px 0 var(--teal); }
.foot { text-align: center; color: var(--muted); font-size: .8rem; margin: 24px 0 8px; }
