/* W528/W535 · Вид веб-витрины. Только витрина: админка — в admin.css.

   W535: раскладка как в магазине — витрина (полка за полкой, первая
   вещь крупно) и страница вещи в две колонки. До этого страница была
   одной сеткой квадратиков: «пустовато» — и это правда, живых лотов на
   бете единицы, а пустое место ничем не занято. Теперь пустая полка не
   показывается вовсе, а витрина всегда открывается чем-то крупным. */

.win{max-width:1100px}
.find{width:190px}
.foot{max-width:1100px;margin:14px auto 0;text-align:center;font-size:12px;
  color:rgba(255,255,255,.62)}
.note{padding:26px;text-align:center;color:var(--ink2);font-size:13px}
.note.bad{color:#a3170e}

/* ---- витрина: крупная вещь сверху ------------------------------------- */
.hero{display:grid;grid-template-columns:340px minmax(0,1fr);gap:18px;
  padding:16px;margin-bottom:18px;border-radius:10px;background:#fff;
  box-shadow:var(--card);cursor:pointer}
.hero .shot{height:260px;border-radius:8px;overflow:hidden;background:#ececef;
  box-shadow:0 0 0 1px rgba(0,0,0,.1) inset}
.hero .shot img{width:100%;height:100%;object-fit:cover;display:block}
.hero .brand{font-size:12px;color:var(--ink2);text-transform:uppercase;letter-spacing:.6px}
.hero h2{font-size:24px;line-height:1.15;margin:4px 0 6px}
.hero .sub{font-size:13px;color:var(--ink2);margin-bottom:10px}
.hero .pr{font-size:20px;font-weight:700;font-variant-numeric:tabular-nums;margin:10px 0}
.hero .row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}

/* ---- полки ------------------------------------------------------------- */
.shelf{margin-bottom:20px}
.shelf .head{display:flex;align-items:baseline;justify-content:space-between;
  padding:0 2px 7px;border-bottom:1px solid var(--line)}
.shelf .head b{font-size:15px}
.shelf .head i{font-style:normal;font-size:12px;color:var(--ink2)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(164px,1fr));
  gap:16px;padding-top:12px}
.card{background:#fff;border-radius:8px;overflow:hidden;cursor:pointer;
  box-shadow:var(--card);transition:box-shadow .15s,transform .15s}
.card:hover{transform:translateY(-1px);
  box-shadow:0 0 0 1px rgba(0,0,0,.18),0 6px 16px rgba(0,0,0,.2)}
.ph{height:164px;display:flex;align-items:center;justify-content:center;
  color:var(--ink2);font-size:11px;
  background:repeating-linear-gradient(135deg,#ececef 0 10px,#e4e4e8 10px 20px)}
img.ph{width:100%;object-fit:cover;display:block;background:#ececef}
.card .t{padding:9px 11px 11px}
.card .t b{display:block;font-size:13px;line-height:1.3;height:34px;overflow:hidden}
.card .t .pr{margin-top:5px;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.card .t .sub{font-size:11px;color:var(--ink2);margin-top:2px;height:14px;overflow:hidden}

/* метки: те же цвета, что в маркете мини-аппа */
.tag{display:inline-block;margin-top:6px;padding:2px 8px;border-radius:9px;
  font-size:11px;font-weight:600;background:#ececef;color:#3a3a3e;white-space:nowrap}
.tag.hot{background:#fde2df;color:#a3170e}
.tag.ok{background:#dff3e2;color:#16652a}
.tag.collab{background:#3a3a3e;color:#fff}
.tag.time{background:#3a3a3e;color:#fff;font-variant-numeric:tabular-nums}

/* ---- страница вещи ----------------------------------------------------- */
.lot{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:22px}
.lot .back{grid-column:1/-1;color:#2459b3;cursor:pointer;font-size:13px}
.big{height:420px;border-radius:10px;overflow:hidden;background:#ececef;
  box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.big img{width:100%;height:100%;object-fit:cover;display:block}
.thumbs{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.thumbs img{width:56px;height:56px;border-radius:6px;object-fit:cover;cursor:pointer;
  box-shadow:0 0 0 1px rgba(0,0,0,.15)}
.thumbs img.on{box-shadow:0 0 0 2px #3f6fb6}
.lot .brand{font-size:12px;color:var(--ink2);text-transform:uppercase;letter-spacing:.6px}
.lot h2{font-size:22px;line-height:1.2;margin:4px 0 8px}
.lot .tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.facts{border-radius:8px;background:#fff;box-shadow:var(--card);overflow:hidden}
.facts div{display:flex;justify-content:space-between;gap:12px;padding:9px 12px;
  font-size:13px;border-top:1px solid var(--line2)}
.facts div:first-child{border-top:0}
.facts i{font-style:normal;color:var(--ink2)}
.facts b{font-variant-numeric:tabular-nums}
.desc{margin:14px 0;white-space:pre-wrap;font-size:13px;line-height:1.5}
.acts{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 8px}
.acts .btn{display:inline-flex;align-items:center;text-decoration:none}
.rules{font-size:12px;color:var(--ink2);line-height:1.5}
img.broken{visibility:hidden}

@media (max-width:820px){
  .hero{grid-template-columns:1fr}
  .hero .shot{height:200px}
  .lot{grid-template-columns:1fr}
  .big{height:280px}
  .find{width:120px}
  .toolbar{flex-wrap:wrap}
}
/* W538 · нажатие: только transform (правило 2в), без движения — для тех, кто просил */
.card:active,.hero:active,.btn:active{transform:scale(.98)}
.btn{transition:transform .12s}
.lot+.shelf{margin-top:28px}
@media (prefers-reduced-motion:reduce){.card,.btn{transition:none}.card:hover,.card:active,.hero:active,.btn:active{transform:none}}
