/* Shop shell v2 - phone first (phase 2 of the UI plan, see docs/ENGINEERING.md section 22).
   Flat: 1px borders, 6-8px radius, no shadows, no gradients. Loaded after header.css, so these rules win.
   Scope: phone promo strip, top bar, search, bottom bar, and the type scale of every shop page. The desktop header is header-desktop.css; the product card is card.css. */

:root {
  --sh-line: #E5E7EB;
  --sh-ink: #111827;
  --sh-mute: #6B7280;
  --sh-soft: #F6F7F9;
}

@media (max-width: 991px) {

  /* ---- promo strip: one slim line, can be dismissed ---- */
  #mobileTopPromo { background: #111827; }
  #mobileTopPromo .promo-banner { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
  #mobileTopPromo .promo-text { flex: 1; min-width: 0; margin: 0; font-size: 12px; font-weight: 500; color: #E5E7EB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #mobileTopPromo .promo-download-btn { flex: none; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #fff; font-size: 12px; font-weight: 700; text-decoration: underline; }
  #mobileTopPromo .promo-x { flex: none; width: 32px; height: 32px; margin-right: -6px; border: 0; background: none; color: #9CA3AF; font-size: 13px; display: grid; place-items: center; }

  /* ---- top bar ---- */
  .mobile-header { background: #fff; border-bottom: 1px solid var(--sh-line); box-shadow: none !important; }
  .mobile-top-bar { min-height: 52px; padding: 6px 0 2px; }
  .mobile-header .m-menu-btn { flex: none; width: 40px; height: 40px; margin: 0 2px 0 -8px; padding: 0; border: 0; border-radius: 6px; background: none; display: grid; place-items: center; }
  .mobile-header .m-menu-btn i { color: var(--sh-ink); font-size: 18px; }
  .mobile-logo-wrapper { display: flex; align-items: center; flex: 1; min-width: 0; overflow: hidden; text-decoration: none; }
  .mobile-logo { height: 28px; max-width: 132px; }
  .mobile-logo-text { font-size: 19px; font-weight: 800; color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-top-actions { gap: 0; }
  .mobile-top-icon-btn { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 6px; background: none; box-shadow: none; }
  .mobile-top-icon-btn i { color: var(--sh-ink); font-size: 18px; }
  .mobile-top-icon-btn:hover { background: var(--sh-soft); transform: none; }

  /* ---- search: a plain field that opens the search screen ---- */
  .mobile-search-trigger { height: 44px; padding: 0 4px 0 12px; margin: 4px 0 10px; gap: 10px; border: 1px solid #D1D5DB; border-radius: 8px; background: #fff; }
  .mobile-search-trigger:hover { border-color: #9CA3AF; }
  .mobile-search-trigger > i { color: var(--sh-mute); font-size: 15px; }
  .mobile-search-trigger .mst-text { flex: 1; min-width: 0; color: var(--sh-mute); font-size: 14px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-search-trigger .voice-wave { flex: none; width: 36px; height: 36px; display: grid; place-items: center; }
  .mobile-search-trigger .voice-icon { color: var(--sh-ink); font-size: 15px; }
}

/* ================= type and icon scale (all shop pages) =================
   One family (Inter, self-hosted), smaller and lighter than before: body 14px, headings 600-700 (not 800),
   icons 14-18px. Page stylesheets that still say Poppins also render Inter (see fonts.css). */
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 14px; line-height: 1.5; font-weight: 400; color: var(--sh-ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.01em; color: var(--sh-ink); }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 16px; } h4, h5 { font-size: 15px; } h6 { font-size: 14px; }
.section-header h2 { font-size: 17px; font-weight: 600; }
.btn { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.form-control, .form-select { font-size: 14px; }
.fa, .fas, .far, .fab, .bi { font-size: inherit; }
.nav-item .nav-icon, .mobile-top-icon-btn i { font-size: 17px; }
@media (max-width: 991px) {
  body { font-size: 13.5px; }
  h1 { font-size: 20px; } h2 { font-size: 16px; } h3 { font-size: 15px; }
  .section-header h2 { font-size: 15px; }
}

.container { max-width: 1280px; }

/* ---- Bootstrap buttons, flat and in the shop colours ---- */
.btn { --bs-btn-border-radius: 6px; box-shadow: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:focus-visible { box-shadow: none; outline: 2px solid var(--k-brand, #E97C43); outline-offset: 2px; }
.btn-primary { --bs-btn-bg: #E97C43; --bs-btn-border-color: #E97C43; --bs-btn-color: #fff; --bs-btn-hover-bg: #C45A2A; --bs-btn-hover-border-color: #C45A2A; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #973B14; --bs-btn-active-border-color: #973B14; --bs-btn-active-color: #fff; --bs-btn-disabled-bg: #E97C43; --bs-btn-disabled-border-color: #E97C43; --bs-btn-disabled-color: #fff; }
.btn-outline-secondary { --bs-btn-color: #0F172A; --bs-btn-border-color: #CBD5E1; --bs-btn-hover-bg: #F8FAFC; --bs-btn-hover-border-color: #0F172A; --bs-btn-hover-color: #0F172A; --bs-btn-active-bg: #F1F5F9; --bs-btn-active-border-color: #0F172A; --bs-btn-active-color: #0F172A; }
