/* SHOP-MOBILE (Deb 2026-11-28): tighter top section and smaller tiles on phones.
   Only applies at phone width; the desktop layout is unchanged.
   Undo: remove the <link> to this file from index.html and shop.html. */
@media (max-width:600px){
  /* ---- home: top section (hero) ---- */
  html body .promobar{font-size:.62rem;padding:4px 8px;line-height:1.3}
  html body .vh-grid{padding-top:10px;padding-bottom:12px}
  html body .vh-eyebrow{display:none}
  html body .vh h1{font-size:1.6rem;line-height:1.02;margin:0 0 6px}
  html body .vh h1 em{display:inline}
  html body .vh-lead{font-size:.82rem;line-height:1.4;margin:0 0 10px;color:#cfd6df}
  html body .vf{border-radius:12px;border-top-width:3px}
  html body .vf-tabs button{padding:8px 6px;font-size:.78rem;line-height:1.2}
  html body .vf-panel{padding:10px 10px 8px}
  html body .vf-row{gap:7px}
  html body .vf-row2{margin-top:7px}
  html body .vf label span{font-size:.6rem;margin-bottom:2px}
  html body .vf select,html body .vf input{padding:8px 10px;font-size:16px;border-radius:7px;height:40px}
  html body .vf button[type=submit]{padding:0 16px;height:40px;font-size:.92rem;border-radius:7px}
  html body .vf-note{display:none}
  html body .vh-alt{margin-top:8px;font-size:.76rem;gap:4px 10px}
  html body .vh-alt span{display:none}
  html body .vh-stats .container{grid-template-columns:repeat(4,1fr);gap:4px;padding-top:8px;padding-bottom:8px}
  html body .vh-stats b{font-size:1.15rem}
  html body .vh-stats span{font-size:.5rem;letter-spacing:.06em;display:block;line-height:1.2}
  html body .hero-banner{font-size:.66rem;padding:7px 10px}
  /* trust strip: one row you can swipe, not five stacked lines */
  html body .strip{padding:8px 0}
  html body .strip .row{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;gap:8px;font-size:.68rem;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  html body .strip .row::-webkit-scrollbar{display:none}
  html body .strip .row .pill{flex:0 0 auto;background:rgba(255,255,255,.08);border-radius:999px;padding:5px 10px;gap:5px;white-space:nowrap}
  html body .strip .row .pill .ic{font-size:.8rem}
  /* section headings */
  html body section{padding-top:28px;padding-bottom:28px}
  html body .section-head{margin-bottom:16px}
  html body .section-head .eyebrow{font-size:.62rem;margin-bottom:4px}
  html body .section-head h2{font-size:1.5rem;margin-bottom:6px}
  html body .section-head p{font-size:.82rem;line-height:1.45}
  /* ---- home: category tiles, 4 small tiles per row ---- */
  html body .cats2{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  html body .cat2{display:flex;flex-direction:column;align-items:stretch;border-radius:10px;min-height:0;padding:0;overflow:hidden}
  html body .cat2-art{height:58px;min-height:0;padding:6px;display:flex;align-items:center;justify-content:center}
  html body .cat2-art svg{width:44px;height:44px;max-height:44px}
  html body .cat2-body{padding:5px 4px 7px;text-align:center}
  html body .cat2-body b{font-size:.66rem;line-height:1.15;letter-spacing:0;display:block;word-break:break-word}
  html body .cat2-body small{font-size:.52rem;letter-spacing:.02em;display:block;margin-top:2px}
  html body .cat2-body i{display:none}
  html body .mkt-section{padding-top:28px;padding-bottom:28px}
  html body .mkt-section .section-head .eyebrow{font-size:.62rem;padding:3px 8px}
  html body .mkt-section .section-head h2{font-size:1.6rem;margin-bottom:6px}
  html body .mkt-section .section-head p{font-size:.82rem}
  /* marketplace cards: shorter */
  html body .mkt-grid{gap:10px}
  html body .mkt-card{padding:14px 16px;border-radius:14px;min-height:0}
  html body .mkt-card .em{font-size:1.4rem;margin-bottom:2px}
  html body .mkt-card h3{font-size:1.2rem;margin:2px 0 4px}
  html body .mkt-card p{font-size:.78rem;line-height:1.4;margin-bottom:8px}
  html body .mkt-card .cta{font-size:.74rem;padding:6px 12px}
  html body .mkt-card .badge{font-size:.55rem;padding:2px 7px}

  /* ---- shop page (Deb 2026-11-29: "tiles at the top make much smaller or remove") ---- */
  /* header band: one slim line, the three stat tiles are gone on phones */
  html body .shop-banner{padding-top:6px;padding-bottom:8px}
  html body .shop-banner .inner{display:block}
  html body .shop-banner .bc{font-size:.68rem;margin:0}
  html body .shop-banner h2{font-size:1.1rem;margin:2px 0 0}
  html body .shop-banner p{display:none}
  html body .shop-hero-stats{display:none!important}
  /* toolbar: search + filters + view buttons on one row that fits the screen */
  html body #parts{padding-top:10px}
  html body .parts-toolbar{padding:8px;margin-bottom:8px}
  html body .ptb-top{display:flex;flex-wrap:nowrap;gap:6px;align-items:center;flex:1 1 100%;width:100%;min-width:0}
  html body .parts-search-wrap{flex:1 1 0!important;min-width:0;max-width:none!important;width:auto!important}
  html body .parts-search-wrap{display:flex}
  html body .parts-search-wrap input{flex:1 1 0;width:0;min-width:0;font-size:16px}
  html body .parts-search-wrap .filter-btn{padding:9px 10px;flex:0 0 auto}
  html body .view-toggles{flex:0 0 auto;gap:3px}
  html body .view-toggles .view-btn{width:32px;height:32px}
  html body .view-toggles .view-btn[title="Compact table"]{display:none}
  html body .veh-bar:empty{display:none}
  html body .res-head{font-size:.8rem;margin:0 0 6px}
  /* page numbers: only at the bottom, in one short row */
  html body .pagination-top{display:none}
  html body .pagination{gap:4px;justify-content:center}
  html body .pagination .pg-btn{min-width:32px;height:32px;padding:0 8px;font-size:.8rem}
  html body .pagination .pg-btn[title="First page"],html body .pagination .pg-btn[title="Last page"]{display:none}
  html body .pagination .pg-info{font-size:.75rem;width:100%;text-align:center}
  /* product cards: two per row, small picture */
  html body .parts:not(.list):not(.table){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
  html body .parts:not(.list):not(.table) .part{border-radius:10px;min-width:0}
  html body .parts:not(.list):not(.table) .part .img{height:120px!important;min-height:0;padding:6px;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);overflow:hidden}
  html body .parts:not(.list):not(.table) .part .img img{width:100%!important;height:100%!important;max-height:100%;object-fit:contain}
  html body .parts:not(.list):not(.table) .part .badge{font-size:.5rem;padding:2px 5px}
  html body .parts:not(.list):not(.table) .part .stock{font-size:.5rem;padding:2px 5px;top:auto!important;right:auto!important;bottom:6px!important;left:6px!important}
  html body .parts:not(.list):not(.table) .part .cmp-check{display:none}
  html body .parts:not(.list):not(.table) .part .wish-btn{width:26px;height:26px}
  html body .parts:not(.list):not(.table) .part .body{padding:7px 8px 8px;gap:2px}
  html body .parts:not(.list):not(.table) .part .make{font-size:.55rem}
  html body .parts:not(.list):not(.table) .part h5{font-size:.78rem;line-height:1.2;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  html body .parts:not(.list):not(.table) .part .desc{display:none}
  html body .parts:not(.list):not(.table) .part .foot{gap:4px;flex-wrap:wrap;margin-top:4px}
  html body .parts:not(.list):not(.table) .part .price{font-size:.85rem}
  html body .parts:not(.list):not(.table) .part .add{font-size:.7rem;padding:5px 8px}
}
/* the "Install app" button added by shop-install.js */
.vi-install{position:fixed;left:12px;bottom:calc(76px + env(safe-area-inset-bottom));z-index:9998;display:flex;align-items:center;gap:8px;background:#0f1115;color:#fff;border:0;border-radius:999px;padding:9px 14px 9px 10px;font:700 13px/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;box-shadow:0 8px 22px rgba(0,0,0,.35);cursor:pointer}
.vi-install img{width:24px;height:24px;border-radius:6px}
.vi-install .x{margin-left:4px;opacity:.6;font-weight:400;padding:0 2px}
.vi-tip{position:fixed;left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));z-index:9999;background:#fff;color:#0f1115;border-radius:14px;padding:14px 16px;font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;box-shadow:0 12px 30px rgba(0,0,0,.35)}
.vi-tip b{display:block;margin-bottom:4px}
.vi-tip button{float:right;border:0;background:none;font-size:18px;cursor:pointer;color:#6b7280}
@media (min-width:900px){ .vi-install,.vi-tip{display:none!important} }
