/* FigiHome bazaar price check. Gallery: black and white, the product supplies the colour.
   Phone first; the min-width query only widens. */
:root{
  --ink:#141516; --paper:#fff; --bg:#f7f7f4; --line:#e3e3de; --muted:#70726e; --red:#c8381f; --pos:#2f7d46;
  --sans:'Helvetica Neue',Helvetica,-apple-system,system-ui,sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.4}
[hidden]{display:none !important}
.eyebrow{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}

.top{display:flex;align-items:center;gap:10px;padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top));
     border-bottom:1px solid var(--line);background:var(--bg)}
.logo{width:32px;height:32px;border-radius:6px}

.wrap{max-width:560px;margin:0 auto;padding:16px 16px calc(32px + env(safe-area-inset-bottom))}

.controls{display:grid;grid-template-columns:118px 1fr;gap:10px;position:sticky;top:0;z-index:2;
          background:var(--bg);padding:4px 0 12px}
.disc{display:flex;flex-direction:column;gap:4px}
.disc-box{display:flex;align-items:center;height:56px;background:var(--paper);border:1px solid var(--line);
          border-radius:12px;padding:0 12px}
.disc-box:focus-within{border-color:var(--ink);box-shadow:0 0 0 3px rgba(20,21,22,.08)}
.disc input{width:100%;border:0;outline:0;background:transparent;font:600 24px/1 var(--sans);color:var(--ink);
            font-variant-numeric:tabular-nums;padding:0;min-width:0}
.pct{font:600 20px/1 var(--sans);color:var(--muted)}
.shoot{align-self:end;display:flex;align-items:center;justify-content:center;gap:10px;height:56px;border-radius:12px;
       background:var(--ink);color:#fff;font-weight:600;font-size:17px;cursor:pointer;user-select:none;
       transition:transform .12s var(--ease)}
.shoot:active{transform:scale(.98)}
.shoot:focus-within{outline:3px solid var(--red);outline-offset:2px}
.shoot input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.shoot svg{width:24px;height:24px}

.shot{margin:4px 0 12px}
.shot-frame{position:relative;border-radius:12px;overflow:hidden;background:var(--paper);border:1px solid var(--line);
            line-height:0;cursor:crosshair}
.shot-frame img{width:100%;max-height:26vh;object-fit:contain;background:#ecece8}
.marker{position:absolute;width:44px;height:44px;margin:-22px 0 0 -22px;border:3px solid #fff;border-radius:50%;
        box-shadow:0 0 0 2px var(--ink);pointer-events:none}
.hint{margin:6px 2px 0;font-size:14px;color:var(--muted)}

.status{min-height:22px;margin:4px 2px 8px;font-size:15px;color:var(--muted)}
.status.busy::before{content:"";display:inline-block;width:12px;height:12px;margin-right:8px;vertical-align:-1px;
  border:2px solid var(--line);border-top-color:var(--ink);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

.notice{margin:0 0 12px;padding:12px 14px;border-radius:12px;background:var(--paper);border:1px solid var(--line);
        border-left:4px solid var(--red);font-size:15px}
.notice button{margin-top:10px;min-height:44px;padding:0 18px;border-radius:10px;border:1px solid var(--ink);
               background:var(--paper);color:var(--ink);font:600 15px var(--sans);cursor:pointer}

.results{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.card{display:grid;grid-template-columns:104px 1fr;gap:12px;padding:10px;background:var(--paper);
      border:1px solid var(--line);border-radius:14px;animation:rise .35s var(--ease) both}
.card:nth-child(2){animation-delay:.05s}.card:nth-child(3){animation-delay:.1s}
@keyframes rise{from{opacity:0;transform:translateY(6px)}}
.card.first{border-color:var(--ink);border-width:2px;padding:9px}
.card.weak{opacity:.62}
.thumb{width:104px;height:104px;border-radius:10px;object-fit:cover;background:var(--bg)}
.body{min-width:0;display:flex;flex-direction:column;gap:4px}
.title{margin:0;font-size:16px;font-weight:600;line-height:1.25;overflow:hidden;display:-webkit-box;
       -webkit-line-clamp:2;-webkit-box-orient:vertical}
.meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.chip{font-size:12px;line-height:1;padding:5px 8px;border-radius:999px;border:1px solid var(--line);color:var(--muted);
      white-space:nowrap}
.chip.high{background:var(--ink);border-color:var(--ink);color:#fff}
.chip.medium{border-color:var(--ink);color:var(--ink)}
.chip.warn{border-color:var(--red);color:var(--red)}
.price{margin-top:auto;display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;font-variant-numeric:tabular-nums}
.now{font-size:26px;font-weight:700;letter-spacing:-.02em}
.was{font-size:15px;color:var(--muted);text-decoration:line-through}
.off{font-size:13px;color:var(--pos);font-weight:600}
.from{font-size:13px;color:var(--muted)}

.sale{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:14px;font-variant-numeric:tabular-nums}
.sale-chip{border-color:var(--red);color:var(--red)}
.sale-was{color:var(--muted);text-decoration:line-through}
.sale-arrow{color:var(--muted)}
.sale-now{font-weight:600}

.empty{margin:28px 8px;text-align:center;color:var(--muted);font-size:15px}

@media (min-width:600px){
  .card{grid-template-columns:132px 1fr}
  .thumb{width:132px;height:132px}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important}
}
