/* =========================================================
   E-Rider Mobile Site — app-style shell
   ========================================================= */

:root {
  --bg: #03080f;
  --bg-elev: #0a1524;
  --bg-card: #0d1a2b;
  --line: rgba(0, 240, 255, 0.14);
  --cyan: #00f0ff;
  --yellow: #fecb00;
  --text: #e8f4ff;
  --muted: #8ba3b8;
  --radius: 16px;
  --top-h: 56px;
  --bottom-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font-d: "Orbitron", system-ui, sans-serif;
  --font-b: "Rajdhani", system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.m-body {
  font-family: var(--font-b);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-top: calc(var(--top-h) + var(--safe-t));
  padding-bottom: calc(var(--bottom-h) + var(--safe-b) + 12px);
}

/* Electric Adrenaline Fix banner under the app top bar */
.m-site-banner.logo-header,
.m-site-banner.page-banner {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 1.1rem 0.75rem 1.2rem;
  border-bottom: 3px solid var(--yellow, #fecb00);
}

.m-site-banner .logo-header-title,
.m-site-banner .page-banner-title {
  font-size: clamp(1.15rem, 5.5vw, 1.55rem);
}

.m-site-banner .accent-with-rider {
  --rider-w: min(120px, 32vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
}

.m-site-banner .rider-stack {
  position: relative;
  width: var(--rider-w);
  margin: 0;
  order: -1;
  justify-self: center;
}

.m-site-banner .logo-header-charge,
.m-site-banner .page-banner-charge {
  max-height: min(130px, 34vw);
  width: 100%;
  height: auto;
}

.m-site-banner .logo-header-accent,
.m-site-banner .page-banner-accent {
  font-size: 0.95em;
  line-height: 1.08;
  text-align: center;
}

.m-site-banner .logo-header-eyebrow,
.m-site-banner .page-banner-eyebrow {
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
  padding: 0.28rem 0.65rem;
}

.m-site-banner .logo-header-bar,
.m-site-banner .page-banner-bar {
  width: min(140px, 40%);
  height: 3px;
  margin-top: 0.75rem;
}

/* Don’t let global mobile img rules squash the rider */
.m-site-banner img {
  max-width: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

/* ----- Top bar ----- */
.m-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: calc(var(--top-h) + var(--safe-t));
  padding-top: var(--safe-t);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  background: rgba(3, 8, 15, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.m-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.m-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.m-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.m-brand-text strong {
  font-family: var(--font-d);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-brand-text span {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.m-top-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.m-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(254, 203, 0, 0.35);
  background: rgba(254, 203, 0, 0.08);
  color: var(--yellow);
  cursor: pointer;
  touch-action: manipulation;
}

.m-icon-btn .m-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #021018;
  font-size: 0.62rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
}

.m-icon-btn .m-badge.show {
  display: inline-flex;
}

.m-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(254, 203, 0, 0.4);
  color: var(--yellow);
  font-family: var(--font-d);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ----- Page shell ----- */
.m-page {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 0.85rem 0.85rem 1.25rem;
}

.m-hero {
  background:
    radial-gradient(ellipse 80% 80% at 20% 0%, rgba(0, 240, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 70% at 90% 20%, rgba(254, 203, 0, 0.1), transparent 50%),
    linear-gradient(160deg, #07111d, #040a12 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1rem 1.2rem;
  margin-bottom: 1rem;
}

.m-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-d);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.55rem;
}

.m-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39ff14;
  box-shadow: 0 0 10px #39ff14;
}

.m-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(1.35rem, 6.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.m-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--cyan), #39ff14);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.m-hero p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
}

.m-actions {
  display: grid;
  gap: 0.55rem;
}

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-d);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  width: 100%;
}

.m-btn-primary {
  background: linear-gradient(135deg, var(--yellow), #e6b800);
  color: #0a0a0a;
}

.m-btn-ghost {
  background: transparent;
  border-color: rgba(0, 240, 255, 0.35);
  color: var(--cyan);
}

.m-btn-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

/* ----- Section ----- */
.m-section {
  margin-bottom: 1.25rem;
}

.m-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.m-section-head h2 {
  font-family: var(--font-d);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.m-section-head a {
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ----- Product cards ----- */
.m-card-grid {
  display: grid;
  gap: 0.75rem;
}

.m-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0.7rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-height: 108px;
}

.m-card-media {
  height: 108px;
  background: linear-gradient(160deg, #061525, #041018);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
}

.m-card-media.bonnell {
  background: linear-gradient(160deg, #1a1206, #0d0a04);
}

.m-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.m-card-body {
  padding: 0.55rem 0.7rem 0.55rem 0;
  min-width: 0;
}

.m-card-body h3 {
  font-family: var(--font-d);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.m-card-body p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.3;
}

.m-price {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Full product row (Onewheel list) */
.m-product {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.m-product-media {
  height: 170px;
  background: linear-gradient(160deg, #061525, #041018);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  position: relative;
}

.m-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.m-badge-pill {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  background: var(--yellow);
  color: #0a0a0a;
  font-family: var(--font-d);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
}

.m-product-body {
  padding: 0.85rem 0.9rem 1rem;
}

.m-product-body h3 {
  font-family: var(--font-d);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.m-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.m-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 0.6rem;
  margin: 0.55rem 0 0.75rem;
  font-size: 0.84rem;
}

.m-specs span {
  color: var(--muted);
}

.m-specs strong {
  color: var(--text);
  font-weight: 700;
}

/* Bonnell form */
.m-form-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem;
  margin-bottom: 0.85rem;
}

.m-form-card label {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.m-form-card label strong {
  color: var(--text);
}

.m-form-card select,
.m-form-card input,
.m-form-card textarea {
  width: 100%;
  margin-top: 0.3rem;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #07101a;
  padding: 0.65rem 0.75rem;
  font-size: 16px;
}

.m-form-card textarea {
  min-height: 90px;
  resize: vertical;
}

.m-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.m-chip {
  min-height: 42px;
  min-width: 48px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.m-chip.active {
  border-color: var(--yellow);
  background: rgba(254, 203, 0, 0.15);
  color: var(--yellow);
}

.m-chip.m-chip-oos,
.m-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
  border-style: dashed;
  pointer-events: none;
}

.m-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0.55rem 0;
}

.m-note strong {
  color: var(--yellow);
}

/* Shop lines */
.m-shop-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.65rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.m-shop-line img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #07101a;
  border-radius: 8px;
}

.m-shop-meta strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.m-shop-meta span {
  color: var(--muted);
  font-size: 0.84rem;
}

.m-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: 0.95rem;
}

.m-row.total {
  font-family: var(--font-d);
  font-size: 0.95rem;
  color: var(--yellow);
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.m-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
}

.m-empty a {
  color: var(--cyan);
}

/* Bottom tab bar */
.m-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  height: calc(var(--bottom-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(5, 12, 20, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.m-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: var(--bottom-h);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  touch-action: manipulation;
}

.m-tab svg {
  width: 22px;
  height: 22px;
}

.m-tab.active {
  color: var(--yellow);
}

.m-tab .m-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  min-width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #021018;
  font-size: 0.58rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
}

.m-tab .m-badge.show {
  display: inline-flex;
}

.m-switch {
  text-align: center;
  margin: 1.25rem 0 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.m-switch a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.m-footer-mini {
  text-align: center;
  color: rgba(139, 163, 184, 0.65);
  font-size: 0.78rem;
  margin-top: 0.75rem;
}

/* Desktop visitors to mobile site: keep usable width */
@media (min-width: 700px) {
  body.m-body {
    background: #02060c;
  }

  .m-page {
    padding-top: 0.5rem;
  }

  .m-topbar,
  .m-tabbar {
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, 100%);
  }

  .m-site-banner {
    width: min(560px, 100%);
    margin-inline: auto;
  }
}
