/* ==========================================================================
   paddle-fit.css
   --------------------------------------------------------------------------
   This tool links the shared toolbox.css (https://toolbox.thepicklelodge.com/
   toolbox.css) for all tokens and shell components — --navy, --green, --ink,
   --muted, --line, --bg, --card, --amber, --teal, --red, --radius, --shadow,
   plus .sidebar / .nav-item / .nav-label / .sidebar-foot / .topbar / .content
   / .banner / .kpi / .panel / .chip. Nothing here re-declares those.

   If toolbox.css fails to load, this page will look visibly broken (undefined
   --navy, etc.) rather than silently drifting onto some other palette —
   that's intentional, same convention as Member Pulse and Lodge Locker.

   Only Paddle Fit-specific pieces live here: the fitting quiz, paddle cards,
   Allie's tip callouts, and the inventory table.
   ========================================================================== */

.mono {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.85em;
  letter-spacing: 0.02em;
}

.page-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}

.page-lede {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 8px;
}

/* ---------------- Buttons (paddle-fit specific variants) ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--green); color: #0d2410; }
.btn-primary:hover { background: var(--green-d); }

.btn-secondary { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }

.btn-ghost { background: transparent; color: var(--muted); border: 2px solid var(--line); }

.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ---------------- Allie tip / ambassador callouts ---------------- */

.allie-strip {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.allie-strip img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--green);
  flex-shrink: 0;
}

.allie-strip .who {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 3px;
}

.allie-strip p { margin: 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.92); }

/* ---------------- Paddle cards ---------------- */

.paddle-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.paddle-card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.paddle-card .thumb img,
.paddle-card .thumb svg { width: 100%; height: 100%; }

.paddle-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }

.paddle-card .cat-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  margin-bottom: 10px;
}

.paddle-card .brand {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.paddle-card h3 { font-size: 1.1rem; margin: 2px 0 6px; color: var(--ink); }

.paddle-card .tagline { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; }

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  padding: 4px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.spec-row span:last-child { font-family: "IBM Plex Mono", monospace; color: var(--ink); text-align: right; }

.paddle-card .allie-note {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg);
  border-left: 3px solid var(--green-d);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--ink);
}
.paddle-card .allie-note .label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green-d);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.paddle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* ---------------- Fitting quiz ---------------- */

.quiz-shell { max-width: 640px; margin: 0 auto; }

.quiz-progress { display: flex; gap: 6px; margin-bottom: 24px; }
.quiz-progress .dot { flex: 1; height: 6px; border-radius: 999px; background: var(--line); }
.quiz-progress .dot.done { background: var(--green-d); }
.quiz-progress .dot.current { background: var(--amber); }

.quiz-step-label { font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: var(--muted); margin-bottom: 6px; }

.quiz-question { font-size: 1.4rem; margin-bottom: 18px; color: var(--ink); }

.option-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }

.option-btn {
  text-align: left;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.option-btn:hover { border-color: var(--green-d); background: #f4faee; }
.option-btn .opt-title { font-weight: 600; display: block; }
.option-btn .opt-sub { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 3px; }

.quiz-nav { display: flex; justify-content: space-between; margin-top: 22px; }

.result-heading { text-align: center; margin-bottom: 8px; color: var(--ink); }
.result-sub { text-align: center; color: var(--muted); max-width: 52ch; margin: 0 auto 20px; }

.category-pill {
  display: table;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  color: #fff;
  margin: 0 auto 18px;
}

.closing-line {
  font-style: italic;
  border-left: 3px solid var(--green-d);
  padding-left: 16px;
  margin: 28px 0;
  color: var(--muted);
}

/* ---------------- Inventory ---------------- */

.inventory-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.select-input {
  padding: 10px 14px;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: var(--card);
  font-size: 0.9rem;
  color: var(--ink);
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.inventory-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  padding: 12px 14px;
}

.inventory-table td { padding: 14px; border-top: 1px solid var(--line); font-size: 0.9rem; vertical-align: middle; }
.inventory-table td.num { font-family: "IBM Plex Mono", monospace; }

.stock-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
}
.stock-pill.in { background: #e7f4d9; color: var(--green-d); }
.stock-pill.low { background: #fdeecb; color: #a9660c; }
.stock-pill.out { background: #fbe3df; color: var(--red); }

.thumb-sm { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; background: var(--bg); }
.thumb-sm img, .thumb-sm svg { width: 100%; height: 100%; }

.status-banner { border-radius: var(--radius); padding: 12px 16px; font-size: 0.85rem; margin-bottom: 16px; display: none; }
.status-banner.show { display: block; }
.status-banner.loading { background: #eef3fc; color: #2f4d8a; }
.status-banner.error { background: #fbe3df; color: #8a2914; }

/* ---------------- Custom order embed ---------------- */

.embed-frame {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--card);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  text-align: center;
}

.hidden { display: none !important; }

.coming-soon-panel {
  text-align: center;
  padding: 48px 32px;
  margin-top: 12px;
}

.coming-soon-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--amber);
  padding: 5px 14px;
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
