/* ============================================================
   BRICKENCY — mobile-specific styles
   ============================================================ */

body.mobile {
  width: 390px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 844px;
  font-size: 14px;
}

/* mobile header */
.m-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px 10px;
  position: sticky; top: 0; z-index: 10;
}
.m-header-top {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center;
  margin-bottom: 10px;
}
.m-header .brk-mark img { height: 30px; width: auto; }
.m-header .menu-btn, .m-header .cart-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); border-radius: var(--r-sm);
  position: relative;
}
.m-header .cart-btn .badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--orange); color: #fff;
  font-size: 9px; font-weight: 600;
  padding: 1px 4px; border-radius: var(--r-pill);
  min-width: 16px; text-align: center;
}
.m-header .search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--ink-mute);
}
.m-header .search input {
  border: 0; outline: none; background: transparent; flex: 1;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink);
}
.m-header .search input::placeholder { color: var(--ink-faint); }

.m-cats {
  display: flex; gap: 6px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.m-cats::-webkit-scrollbar { display: none; }
.m-cat {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px;
  min-width: 64px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: 9px;
  color: var(--ink-2);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.m-cat .ic { height: 28px; display: flex; align-items: center; justify-content: center; }
.m-cat.is-on { background: var(--surface-dark); color: #fff; }

/* mobile tab bar */
.m-tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 390px; max-width: 100%;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  z-index: 10;
  box-shadow: 0 -8px 24px rgba(0,0,0,.04);
}
.m-tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 4px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em;
  color: var(--ink-3);
  text-transform: uppercase;
  text-align: center;
}
.m-tab .ic { color: var(--ink-3); }
.m-tab.is-on .ic, .m-tab.is-on { color: var(--orange); }

/* mobile content wrapper */
.m-body {
  padding-bottom: 100px; /* tabbar space */
}

/* mobile sections */
.m-section { padding: 20px 16px; border-bottom: 1px solid var(--line); }
.m-section-h {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 16px;
}
.m-section-h h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; letter-spacing: -.005em;
}
.m-section-h a {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange);
}

/* common buttons */
.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 500;
  cursor: pointer;
}
.m-btn-primary { background: var(--orange); color: #fff; }
.m-btn-dark { background: var(--surface-dark); color: #fff; }
.m-btn-ghost { background: transparent; border: 1px solid var(--line-2); color: var(--ink); }
.m-btn.full { width: 100%; }
