/* Item shop and wardrobe (js/ui/panels/itemshop.js, wardrobe.js) */
.shop-top { display: flex; gap: 12px; align-items: stretch; margin-bottom: 10px; }
.shop-hero { position: relative; flex: 0 0 132px; height: 150px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 85%, rgba(111,212,139,.35), rgba(0,0,0,0) 60%), linear-gradient(180deg, #1c3a2b, #0f2219);
  border: 1px solid var(--panel-line); }
.shop-hero-cv { width: 100%; height: 100%; display: block; }
.shop-hero small { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: .66rem; color: var(--gold);
  text-shadow: 0 1px 2px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.shop-intro { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.shop-intro b { font-size: 1.02rem; }
.shop-intro p { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.shop-locked, .shop-where { display: flex; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 9px; }
.shop-locked { background: rgba(255,120,100,.14); color: #ffc2b8 !important; }
.shop-where { background: rgba(255,215,106,.12); color: #ffe6a8 !important; }
.shop-locked .ico, .shop-where .ico { width: 16px; height: 16px; flex: 0 0 auto; }

.shop-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.shop-feature { position: relative; padding: 14px 12px 12px; border-radius: 16px; display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(140deg, rgba(255,215,106,.22), rgba(111,212,139,.12) 55%, rgba(80,140,255,.14));
  border: 1px solid rgba(255,215,106,.45); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.shop-feature.owned { border-color: var(--panel-line); filter: saturate(.7); }
.shop-tag { position: absolute; top: -9px; right: 12px; background: linear-gradient(90deg, #ff9f43, #ffd76a); color: #3a2300;
  font-weight: 800; font-size: .66rem; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.shop-fname { font-size: 1.08rem; color: #fff3c4; }
.shop-fdesc { margin: 0; font-size: .78rem; color: var(--text); opacity: .85; line-height: 1.35; }
.shop-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-chip { appearance: none; border: 1px solid var(--panel-line); background: rgba(0,0,0,.28); color: var(--text); border-radius: 10px;
  padding: 3px 7px 3px 3px; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.shop-chip small { font-size: .68rem; }
.shop-chip .shop-aura { width: 30px; height: 30px; }
.shop-chip .shop-swatch, .shop-chip .shop-badge { width: 22px; height: 22px; }
.shop-fbuy { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: auto; }
.shop-worth { color: var(--muted); font-size: .82rem; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.shop-item { padding: 8px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--panel-line);
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.shop-item b { font-size: .86rem; }
.shop-item small { font-size: .68rem; color: var(--muted); line-height: 1.3; min-height: 2.6em; }
.shop-item.owned { opacity: .8; }
.shop-look { appearance: none; border: 0; background: radial-gradient(circle at 50% 70%, rgba(255,255,255,.08), rgba(0,0,0,0) 70%);
  width: 86px; height: 86px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.shop-aura { width: 82px; height: 82px; }
.shop-swatch { display: inline-block; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255,255,255,.65);
  box-shadow: 0 2px 8px rgba(0,0,0,.4), inset 0 -6px 10px rgba(0,0,0,.25), inset 0 6px 10px rgba(255,255,255,.18); }
.shop-swatch.palette { background: conic-gradient(#ff6464, #ffc832, #ffff00, #32c832, #32c8ff, #3264ff, #c864ff, #ff96ff, #ff6464); }
.shop-badge { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle, #ffe9a6, #e2a72e); color: #5a3500; }
.shop-badge .ico { width: 60%; height: 60%; }
.shop-buy, .shop-owned { min-width: 92px; justify-content: center; }
.shop-buy span { font-weight: 800; }
.shop-owned { color: var(--accent); }
.shop-foot { font-size: .7rem; margin-top: 10px; text-align: center; }
.shop-tabs { margin-top: 2px; }

/* wardrobe */
.wd-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 10px 0 6px; }
.wd-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.wd-opt { appearance: none; border: 2px solid transparent; background: var(--panel-2); color: var(--text); border-radius: 12px; padding: 6px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; width: 82px; cursor: pointer; }
.wd-opt small { font-size: .66rem; }
.wd-opt.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,215,106,.18); }
.wd-opt .shop-swatch, .wd-opt .shop-badge { width: 36px; height: 36px; }
.wd-none { display: grid; place-items: center; width: 36px; height: 36px; font-size: .66rem; color: var(--muted); }
.wd-aura { display: grid; place-items: center; width: 36px; height: 36px; color: var(--gold); }
.wd-aura .ico { width: 24px; height: 24px; }
.wd-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(24px, 1fr)); gap: 4px; width: 100%; margin-top: 4px; }
.wd-pal { appearance: none; border: 2px solid rgba(0,0,0,.35); height: 24px; border-radius: 6px; cursor: pointer; padding: 0; }
.wd-pal.on { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }

@media (max-width: 520px) {
  .shop-hero { flex-basis: 104px; height: 128px; }
  .shop-features { grid-template-columns: 1fr; }
}
