/* Tijara Design Lab — the review bar. Lab chrome only: never part of a theme
   (hikmastream-commerce spec/theme-collection-plan.md §4). Namespaced .hslab, fixed colours
   independent of the theme's light/dark so it always reads. */
.hslab {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 9999;
  display: flex; align-items: center; gap: 18px;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  background: rgba(16, 15, 14, 0.92); color: #d8d4cc;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 12px/1.3 "Archivo", system-ui, sans-serif;
  overflow-x: auto; white-space: nowrap; direction: ltr;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hslab::-webkit-scrollbar { display: none; }
.hslab b { font-weight: 600; color: #f3f0ea; margin-inline-end: 2px; }
.hslab .grp { display: flex; align-items: center; gap: 2px; }
.hslab .lbl { color: #8d887f; margin-inline-end: 4px; }
.hslab a, .hslab button {
  color: #d8d4cc; text-decoration: none; background: none; border: 0;
  font: inherit; padding: 4px 8px; border-radius: 4px; cursor: pointer;
}
.hslab a:hover, .hslab button:hover { background: rgba(255,255,255,0.09); }
.hslab .on { background: #e9e5dc; color: #16140f; font-weight: 600; }
.hslab .on:hover { background: #e9e5dc; }
.hslab .sep { width: 1px; height: 16px; background: rgba(255,255,255,0.14); flex: none; }
.hslab a:focus-visible, .hslab button:focus-visible { outline: 2px solid #c9a89a; outline-offset: 1px; }
body { padding-bottom: 44px; } /* room for the bar */

/* the phone viewer (MB-D16): a phone page on a wide screen, at a phone's width in a phone's shell — a modern phone's
   corners, nothing over the screen, the review bar below */
.hslab-stage { position: fixed; inset: 0 0 46px; z-index: 99990; display: grid; place-items: center; overflow: auto;
  background: radial-gradient(90% 80% at 50% 10%, #2A2723 0%, #141311 70%); }
.hslab-phone { position: relative; width: 406px; height: min(860px, calc(100vh - 86px)); padding: 8px; border-radius: 52px;
  background: linear-gradient(145deg, #3B3834, #141311 45%, #2B2926);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1px #0A0A09, 0 40px 80px rgba(0,0,0,.6); }
.hslab-keys { position: absolute; inset-block: 0; inset-inline: -3px; pointer-events: none; }
.hslab-keys::before, .hslab-keys::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2B2926; }
.hslab-keys::before { left: 0; top: 170px; height: 60px; box-shadow: 0 80px 0 #2B2926; }
.hslab-keys::after { right: 0; top: 220px; height: 96px; }
.hslab-screen { width: 390px; height: 100%; overflow: hidden; border-radius: 44px; background: #fff; }
.hslab-screen iframe { display: block; width: 390px; height: 100%; border: 0; }

/* a phone page on a phone (or a narrow window): the store's own tab bar owns the foot, so the review bar goes to the top
   — at the foot it covered the bar and took its taps */
@media (max-width: 640px) {
  html:has(.tab-bar) .hslab { bottom: auto; top: 0; padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
    border-top: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  html:has(.tab-bar) body { padding-bottom: 0; }
}
