/* PlanetEco Showroom Screen - styles
   Everything is sized in rem, and 1rem = about 1% of the screen width,
   so the layout looks the same on a 3840x2160 TV and a 1920x1080 laptop. */

:root {
  /* Palette = the live website's own design tokens (pe-redesign) */
  --accent: #f68d31;        /* website accent (orange). Change this one line to re-colour the screen. */
  --accent-ink: #b3570f;
  --accent-tint: #fdebdb;
  --green: #1fa855;         /* website WhatsApp green */
  --green-ink: #15803d;
  --green-tint: #e9f7ee;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --muted-2: #a1a1aa;
  --hair: #e4e4e7;
  --hair-2: #d4d4d8;
  --canvas: #ffffff;
  --surface: #f4f4f5;
  --surface-2: #fafafa;

  --font-head: "Archivo", "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Geist", "Segoe UI", Roboto, Arial, sans-serif;

  --tap: 2.2rem;            /* minimum touch target: ~85px on a 4K TV, 44px on a laptop */
  --r-sm: 0.5rem;
  --r-md: 0.8rem;
  --r-lg: 1.1rem;
  --topbar-h: 4.2rem;
  --crumbs-h: 2.6rem;
}

html { font-size: clamp(14px, 1.04vw, 48px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--surface-2);
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation;
  overscroll-behavior: none;
}
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 0; height: 0; }

/* ---------- top bar ---------- */
#topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--topbar-h); z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1rem;
  padding: 0 1.2rem; background: var(--canvas); border-bottom: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; gap: 0.6rem; min-height: var(--tap); padding-right: 0.6rem; }
.brand-mark {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 0.6rem;
  background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
}
.brand-mark.big { width: 4rem; height: 4rem; font-size: 2.4rem; border-radius: 1rem; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1; text-align: left; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.brand-logo { height: 2.3rem; width: auto; display: block; }
.brand-text:empty { display: none; }
.attract-logo { display: inline-flex; align-items: center; background: #fff; border-radius: 1rem; padding: 0.9rem 1.4rem; }
.attract-logo img { height: 3.2rem; width: auto; display: block; }

#search-form { position: relative; display: flex; align-items: center; max-width: 42rem; }
.search-icon { position: absolute; left: 1rem; color: var(--muted); font-size: 1.2rem; transform: rotate(-45deg); pointer-events: none; }
#search-input {
  width: 100%; height: var(--tap); padding: 0 var(--tap) 0 2.6rem; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hair-2); border-radius: 999px; outline: none;
}
#search-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 0.15rem var(--accent-tint); }
#search-input::-webkit-search-cancel-button { display: none; }
#search-clear { position: absolute; right: 0.2rem; width: calc(var(--tap) - 0.4rem); height: calc(var(--tap) - 0.4rem); border-radius: 50%; font-size: 1.5rem; color: var(--muted); background: var(--hair); }

#offline-pill { font-size: 0.8rem; font-weight: 500; color: #92400e; background: #fef3c7; border: 1px solid #fcd34d; padding: 0.35rem 0.8rem; border-radius: 999px; white-space: nowrap; }

.list-btn {
  display: flex; align-items: center; gap: 0.6rem; min-height: var(--tap); padding: 0 1.2rem;
  border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 1.05rem;
}
.list-btn .badge { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.4rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.9rem; }
.list-btn.pulse { animation: pulse 0.5s ease; }
@keyframes pulse { 50% { transform: scale(1.08); } }

/* ---------- breadcrumbs ---------- */
#crumbs {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; height: var(--crumbs-h); z-index: 19;
  display: flex; align-items: center; gap: 0.5rem; padding: 0 1.2rem;
  background: var(--surface-2); border-bottom: 1px solid var(--hair); font-size: 0.95rem; color: var(--muted);
  white-space: nowrap; overflow: hidden;
}
#crumbs:empty { display: none; }
#crumbs .crumb { min-height: 2rem; padding: 0 0.6rem; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; }
#crumbs .crumb.back { font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--hair-2); padding: 0 1rem; margin-right: 0.5rem; }
#crumbs .sep { color: var(--muted-2); }
#crumbs .current { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

/* ---------- main scroll area ---------- */
#view {
  position: fixed; top: calc(var(--topbar-h) + var(--crumbs-h)); left: 0; right: 0; bottom: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 1.4rem 1.6rem 3rem;
}
#view.no-crumbs { top: var(--topbar-h); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0.4rem 0 1rem; }
.section-head h1 { font-size: 2rem; }
.section-head h2 { font-size: 1.5rem; }
.section-head .meta { color: var(--muted); font-size: 0.95rem; }

.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); font-size: 1.1rem; }
.empty strong { display: block; color: var(--ink); font-size: 1.4rem; margin-bottom: 0.5rem; font-family: var(--font-head); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--tap); padding: 0 1.4rem; border-radius: var(--r-md);
  font-weight: 600; font-size: 1.05rem; background: var(--surface); color: var(--ink); border: 1px solid var(--hair-2);
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.ghost { background: transparent; }
.btn.big { min-height: 3rem; font-size: 1.2rem; padding: 0 2rem; }
.btn.block { width: 100%; }
.btn.danger { color: #b91c1c; border-color: #fecaca; background: #fff5f5; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1rem; }
.chips-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.chips-row .label { font-weight: 600; color: var(--ink-2); font-size: 0.95rem; min-width: 5.5rem; }
.chips-row .chips { margin: 0; }
.chip {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 1.1rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--hair-2); font-weight: 500; font-size: 1rem; color: var(--ink);
}
.chip.sub { background: var(--surface); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .count { color: var(--muted-2); margin-left: 0.4rem; font-size: 0.85rem; }
.chip .count:first-child { margin-left: 0; margin-right: 0.3rem; }
.chip.on .count { color: rgba(255,255,255,0.7); }

/* ---------- home tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.tile {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; text-align: left;
  background: var(--surface); border: 1px solid var(--hair);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .tile-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.tile.noimg { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-tint), #fff); }
.tile.noimg .tile-name { position: static; padding: 1rem; background: none; color: var(--ink); text-shadow: none; text-align: center; }
.tile.more { display: grid; place-items: center; background: var(--ink); color: #fff; }
.tile.more .tile-name { position: static; background: none; text-align: center; padding: 1rem; }
.tile:active { transform: scale(0.985); }

.cat-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.cat-row {
  display: flex; align-items: center; gap: 0.8rem; min-height: 3.4rem; padding: 0.5rem 0.9rem; text-align: left;
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-md);
}
.cat-row img { width: 2.6rem; height: 2.6rem; object-fit: cover; border-radius: var(--r-sm); background: var(--surface); flex: none; }
.cat-row .ph { width: 2.6rem; height: 2.6rem; border-radius: var(--r-sm); background: var(--accent-tint); flex: none; }
.cat-row .name { font-weight: 600; font-size: 1rem; line-height: 1.2; }
.cat-row .count { color: var(--muted); font-size: 0.85rem; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.card {
  display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid var(--hair);
  border-radius: var(--r-lg); overflow: hidden;
}
.card:active { transform: scale(0.985); }
.card .pic { aspect-ratio: 1; background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card .pic .ph { color: var(--muted-2); font-size: 0.9rem; }
.card .body { padding: 0.8rem 0.9rem 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; }
.card .name { font-weight: 600; font-size: 1rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .sub { color: var(--muted); font-size: 0.85rem; }
.card .code { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.card .opts { color: var(--ink-2); font-size: 0.8rem; }
.load-more { display: flex; justify-content: center; margin: 1.6rem 0 1rem; }
.grid-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.8rem; }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: 44% 1fr; gap: 2rem; align-items: start; }
.gallery .main { aspect-ratio: 1; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-lg); display: grid; place-items: center; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 0.6rem; margin-top: 0.8rem; overflow-x: auto; }
.gallery .thumbs button { flex: none; width: 4.5rem; height: 4.5rem; border-radius: var(--r-sm); border: 2px solid var(--hair); background: #fff; overflow: hidden; }
.gallery .thumbs button.on { border-color: var(--accent); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }

.details h1 { font-size: 1.9rem; margin-bottom: 0.6rem; }
.details .brand-line { color: var(--muted); font-weight: 500; font-size: 1.05rem; margin-bottom: 0.4rem; }
.details .code-line { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0.4rem 0 1rem; padding: 0.35rem 0.8rem; border-radius: var(--r-sm); background: var(--surface); color: var(--ink-2); font-size: 0.95rem; }
.details .code-line b { font-variant-numeric: tabular-nums; color: var(--ink); }
.details .code-line.todo { color: var(--muted); }
.attr { margin: 0.6rem 0 1rem; }
.attr .attr-name { font-weight: 600; font-size: 1rem; color: var(--ink-2); margin-bottom: 0.5rem; }
.attr .attr-name span { color: var(--muted); font-weight: 500; }
.attr .chips { margin: 0; }
.chip.opt { min-width: 3.4rem; justify-content: center; }
.chip.opt.off { color: var(--muted-2); border-style: dashed; }
.actions { display: flex; gap: 0.8rem; margin: 1.2rem 0 1.4rem; flex-wrap: wrap; }
.cats-line { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }

.desc { font-size: 1rem; color: var(--ink-2); line-height: 1.5; border-top: 1px solid var(--hair); padding-top: 1rem; }
.desc h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--ink); }
.desc p { margin: 0 0 0.7rem; }
.desc ul, .desc ol { margin: 0 0 0.8rem; padding-left: 1.4rem; }
.desc li { margin-bottom: 0.25rem; }
.desc table { border-collapse: collapse; width: 100%; margin: 0.4rem 0 1rem; font-size: 0.95rem; }
.desc th, .desc td { border: 1px solid var(--hair-2); padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; }
.desc th { background: var(--surface); }
.desc img { max-height: 14rem; width: auto; border-radius: var(--r-sm); }
.desc.collapsed { max-height: 12rem; overflow: hidden; position: relative; }
.desc.collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4rem; background: linear-gradient(to bottom, rgba(250,250,250,0), var(--surface-2)); }
.desc-more { margin: 0.4rem 0 1rem; }

.related { grid-column: 1 / -1; margin-top: 1.5rem; }
.related h2 { font-size: 1.4rem; margin-bottom: 0.9rem; }

/* ---------- my list ---------- */
.list-wrap { display: grid; grid-template-columns: 1fr 30rem; gap: 2rem; align-items: start; }
.list-items { display: flex; flex-direction: column; gap: 0.7rem; }
.list-item { display: grid; grid-template-columns: 5rem 1fr auto; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-md); padding: 0.7rem 0.9rem; }
.list-item .pic { width: 5rem; height: 5rem; border-radius: var(--r-sm); background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.list-item .pic img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.list-item .name { font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.list-item .sub { color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }
.list-item .remove { min-width: var(--tap); min-height: var(--tap); border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #b91c1c; background: #fff5f5; border: 1px solid #fecaca; }
.list-side { position: sticky; top: 0; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 1.3rem; }
.list-side h2 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.list-side p { color: var(--muted); margin: 0 0 1rem; font-size: 0.95rem; }
.list-note { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 0.6rem 0.9rem; border-radius: var(--r-sm); font-size: 0.9rem; margin: 0 0 1rem; }

/* ---------- QR panel ---------- */
.qr-panel { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; }
.qr-panel.stack { grid-template-columns: 1fr; }
.qr-box { background: #fff; padding: 0.8rem; border: 1px solid var(--hair); border-radius: var(--r-md); width: 16rem; height: 16rem; display: grid; place-items: center; }
.qr-box svg { width: 100%; height: 100%; }
.qr-side h2 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.qr-side .hint { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.8rem; }
.qr-msg { white-space: pre-wrap; font-size: 0.9rem; line-height: 1.45; color: var(--ink-2); background: var(--green-tint); border: 1px solid #c6e9d3; border-radius: var(--r-sm); padding: 0.8rem 1rem; max-height: 16rem; overflow-y: auto; }
.qr-todo { margin-top: 0.8rem; background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; padding: 0.6rem 0.9rem; border-radius: var(--r-sm); font-size: 0.85rem; }
.qr-wa { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--green-ink); font-weight: 600; font-size: 1rem; margin-bottom: 0.6rem; }
.wa-dot { width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--green); display: inline-block; }

/* ---------- modal ---------- */
#modal { position: fixed; inset: 0; z-index: 40; background: rgba(24,24,27,0.55); display: grid; place-items: center; padding: 2rem; }
.modal-card { position: relative; width: min(60rem, 100%); max-height: 100%; overflow-y: auto; background: var(--surface-2); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: 0 1rem 3rem rgba(0,0,0,0.25); }
.modal-close { position: absolute; top: 0.8rem; right: 0.8rem; width: var(--tap); height: var(--tap); border-radius: 50%; background: var(--surface); border: 1px solid var(--hair-2); font-size: 1.8rem; display: grid; place-items: center; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 2.5rem; transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: #fff; padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 500; font-size: 1.05rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.25); animation: toastin 0.25s ease;
}
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 1rem); } }

/* ---------- attract mode ---------- */
#attract { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; }
.attract-stage { position: absolute; inset: 0; overflow: hidden; }
.attract-stage .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.attract-stage .slide.on { opacity: 1; }
.attract-stage img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 9s ease-in-out forwards; }
.attract-stage video { width: 100%; height: 100%; object-fit: cover; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.attract-overlay { position: absolute; left: 0; right: 0; bottom: 0; top: auto; height: 55%; display: flex; flex-direction: column; justify-content: flex-end; padding: 3rem 4rem; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 82%, rgba(0,0,0,0) 100%); pointer-events: none; }
.attract-brand { display: flex; align-items: center; gap: 1rem; font-family: var(--font-head); font-weight: 700; font-size: 3rem; }
.attract-brand small { font-family: var(--font-body); font-weight: 500; font-size: 1.3rem; opacity: 0.8; margin-left: 0.5rem; }
.attract-caption { font-family: var(--font-head); font-weight: 600; font-size: 2rem; margin: 1rem 0 0; min-height: 2.4rem; opacity: 0.95; }
.attract-cta { margin-top: 1.5rem; display: inline-flex; align-self: flex-start; align-items: center; min-height: 3rem; padding: 0 2rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 1.3rem; }
@keyframes breathe { 50% { transform: scale(1.04); opacity: 0.9; } }

/* ---------- narrow (laptop window / portrait) safety ---------- */
@media (max-aspect-ratio: 4/3) {
  .tiles, .cat-list { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .product, .list-wrap { grid-template-columns: 1fr; }
}

/* hint under the Add / Ask buttons while options are still missing */
.choose-hint { margin: -0.8rem 0 1.2rem; color: var(--accent-ink); font-weight: 500; font-size: 1rem; }
.btn[disabled] { opacity: 0.4; pointer-events: none; filter: grayscale(0.4); }

/* ---------- round 2: neutral tiles, category tree, search suggestions ---------- */
.tile.noimg { display: grid; place-items: center; background: linear-gradient(135deg, var(--surface), #fff); border: 1px solid var(--hair-2); }
.tile.noimg .tile-name { position: static; padding: 1rem; background: none; color: var(--ink); text-shadow: none; text-align: center; font-size: 1.5rem; }
.cat-tree { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; }
.cat-group { display: flex; flex-direction: column; gap: 0.4rem; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 0.7rem; }
.cat-group .cat-row { border: 0; background: var(--surface-2); justify-content: space-between; min-height: 2.8rem; }
.cat-group .cat-row.top { background: var(--ink); color: #fff; font-family: var(--font-head); }
.cat-group .cat-row.top .name { font-size: 1.15rem; }
.cat-group .cat-row.top .count { color: rgba(255,255,255,0.7); }
#search-form { position: relative; }
#suggest {
  position: absolute; top: calc(100% + 0.4rem); left: 0; right: 0; z-index: 30; max-height: calc(100vh - var(--topbar-h) - 2rem); overflow-y: auto;
  background: #fff; border: 1px solid var(--hair-2); border-radius: var(--r-lg); box-shadow: 0 1rem 2.5rem rgba(0,0,0,0.18); padding: 0.4rem;
}
.sg-group { padding: 0.2rem 0 0.4rem; }
.sg-label { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 0.5rem 0.9rem 0.3rem; }
.sg-row { display: flex; align-items: center; gap: 0.8rem; width: 100%; min-height: var(--tap); padding: 0.4rem 0.9rem; border-radius: var(--r-md); text-align: left; }
.sg-row:active { background: var(--surface); }
.sg-ico { width: 2rem; text-align: center; color: var(--muted); font-size: 1.2rem; flex: none; }
.sg-pic { width: 2.6rem; height: 2.6rem; border-radius: var(--r-sm); background: var(--surface); flex: none; overflow: hidden; display: grid; place-items: center; }
.sg-pic img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sg-main { flex: 1; font-weight: 500; font-size: 1.05rem; line-height: 1.2; }
.sg-main small { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 400; margin-top: 0.15rem; }
.sg-count { color: var(--muted-2); font-size: 0.9rem; }
.sg-all { border-top: 1px solid var(--hair); border-radius: 0; margin-top: 0.2rem; font-weight: 600; color: var(--accent-ink); }
.sg-loading { padding: 1rem; color: var(--muted); }

/* ---------- fit-out page ---------- */
.tile.fitout.noimg { background: linear-gradient(135deg, var(--accent-tint), #fff); border-color: var(--accent); }
.fitout-contact { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0.4rem 0 1.6rem; }
.fitout-line { flex: 1 1 22rem; display: flex; flex-direction: column; gap: 0.3rem; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 1.2rem 1.6rem; }
.fitout-label { font-size: 0.95rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.fitout-big { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; line-height: 1.1; color: var(--ink); word-break: break-all; }
.fitout-qrs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.8rem; }
.fitout-qr { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 1.2rem; }
.fitout-qr .qr-box { width: 13rem; height: 13rem; grid-row: span 3; }
.fitout-qr h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 0.5rem; }
.fitout-qr p { margin: 0.3rem 0 0.6rem; color: var(--muted); font-size: 0.95rem; }
.fitout-intro { border-top: 0; padding-top: 0; margin-bottom: 1rem; }
@media (max-aspect-ratio: 4/3) { .fitout-qrs { grid-template-columns: 1fr; } }

/* ---------- round 3: see-all link + pictures in the category tree ---------- */
.see-all { display: flex; justify-content: center; margin: 1.6rem 0 0.5rem; }
.see-all .btn { color: var(--muted); font-weight: 500; }
.cat-group .cat-row { gap: 0.7rem; }
.cat-group .row-pic { width: 2.4rem; height: 2.4rem; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--surface); }
.cat-group .row-pic.ph { display: inline-block; background: var(--hair); }
.cat-group .cat-row .name { flex: 1; }

/* ---------- fit-out service labels (not tappable) ---------- */
.service-chips { margin-bottom: 1.5rem; }
.service-chips .chip { background: var(--surface); border-color: var(--hair); font-size: 1.1rem; min-height: 2.6rem; }

/* ---------- control panel: message banner + standby note ---------- */
#pe-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 300; min-height: 2.6rem; padding: 0.55rem 1.6rem; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; text-align: center; box-shadow: 0 0.2rem 0.8rem rgba(0,0,0,0.2); }
body.has-banner #topbar { top: 2.6rem; }
body.has-banner #crumbs { top: calc(var(--topbar-h) + 2.6rem); }
body.has-banner #view { top: calc(var(--topbar-h) + var(--crumbs-h) + 2.6rem); }
body.has-banner #view.no-crumbs { top: calc(var(--topbar-h) + 2.6rem); }
#standby-note { position: fixed; left: 50%; bottom: 3rem; transform: translateX(-50%) translateY(1rem); z-index: 310; background: rgba(24,24,27,0.92); color: #fff; padding: 0.9rem 1.6rem; border-radius: 999px; font-size: 1.2rem; font-weight: 500; opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
#standby-note.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- seamless two-layer advert player ---------- */
.attract-stage .layer { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; background: #000; will-change: opacity; transform: translateZ(0); }   /* 0.15 s and 0.6 s measured the same on the TV (19 Oct); 0.4 s looks calm */
.attract-stage .layer.on { opacity: 1; }
.attract-stage .layer video, .attract-stage .layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
#pe-off { position: fixed; inset: 0; z-index: 400; background: #000; }

/* ---------- TV camera QR reading ---------- */
#cam-hint { position: absolute; top: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.7rem 1.6rem; border-radius: 999px; background: rgba(0,0,0,0.55); color: #fff; text-align: center; pointer-events: none; }
#cam-hint b { font-family: var(--font-head); font-size: 1.15rem; display: inline-flex; align-items: center; gap: 0.5rem; }
#cam-hint small { font-size: 0.8rem; opacity: 0.8; }
#cam-hint .cam-dot, #cam-badge .cam-dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0.2rem rgba(34,197,94,0.3); }
#cam-hint { flex-direction: row; } #cam-hint b { margin-right: 0.6rem; }
#cam-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0 1rem; min-height: var(--tap); border-radius: 999px; background: var(--surface); border: 1px solid var(--hair-2); font-weight: 600; font-size: 0.95rem; color: var(--ink-2); }
