/* Style ekranu sklepu (P5). Wspólne klocki (.rtile, .btn-back, .info-btn) są w ../gra.css; tu tylko własne klasy ekranu. */

/* „Najpierw za darmo”: pierwsza karta, jedna dominująca akcja (odbiór) */
.shop-free { display: flex; flex-direction: column; gap: var(--space-3); }
.shop-free p, .shop-free h3, .shop-free h4 { margin: 0; }
.shop-claim { display: flex; align-items: center; gap: var(--space-3); }
.shop-claim[hidden] { display: none; }
.shop-claim > .ic { flex: none; }
.shop-claim-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shop-claim-text .t-heading { font-size: var(--fs-body); line-height: 1.25; }
.shop-free .shop-claim-btn { flex: none; width: auto; min-width: 104px; max-width: 44%; padding: 0 var(--space-3); font-size: var(--fs-small); line-height: 1.2; text-align: center; }
.shop-claim-btn[data-state="ready"] { font-size: var(--fs-heading); }
.shop-glory { display: flex; flex-direction: column; gap: var(--space-1); padding-top: var(--space-3); border-top: var(--stroke-thin) solid var(--color-line); }
.shop-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.shop-link { gap: var(--space-2); }
.shop-link-n { min-width: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-on-accent); font-size: var(--fs-label); font-weight: 700; line-height: 20px; text-align: center; }

/* nagłówek sekcji z przełącznikiem */
.shop-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.shop-head .t-label { margin: 0; }
.shop-head .btn-link { font-size: var(--fs-small); }
.shop-head .btn-link.is-on { color: var(--color-text-1); }

/* siatka kafelków: 3 kolumny (2 przy wąskim ekranie) */
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.shop-empty { grid-column: 1 / -1; }
@media (max-width: 380px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* jeden kafelek: góra (ilość / slot), ilustracja, podpis, przycisk z ceną */
.shop-tile {
  display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; padding: var(--space-1);
  background: var(--color-bg-1); border: var(--stroke-thin) solid var(--rc, var(--color-line)); border-radius: var(--radius-l);
}
.shop-tile.is-blocked { opacity: .65; }
.shop-top { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 22px; color: var(--color-text-1); }
.shop-top .ic { flex: none; }
.shop-qty { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-heading); font-variant-numeric: tabular-nums; }
.shop-qty--slot { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-3); }
.shop-art {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--color-bg-2); border-radius: var(--radius-m);
}
.shop-art .item-img { width: 44px; height: 44px; object-fit: contain; }
.shop-art .shop-pack-img { width: 56px; height: 56px; object-fit: contain; }
.shop-pack--m .shop-art .shop-pack-img, .shop-pack--l .shop-art .shop-pack-img { width: 64px; height: 64px; }
.shop-art .ic { width: 28px; height: 28px; margin: 0 -3px; }
.shop-pack--m .shop-art .ic { width: 34px; height: 34px; }
.shop-pack--l .shop-art .ic { width: 40px; height: 40px; }
.shop-sub { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 36px; text-align: center; color: var(--color-text-2); }
.shop-sub .t-small { font-size: var(--fs-label); line-height: 1.25; }
.shop-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--fs-small); line-height: 1.25; font-weight: 600; color: var(--color-text-1); overflow-wrap: anywhere; }
.shop-pips { display: flex; gap: 2px; }
.shop-pips i { width: 4px; height: 9px; border-radius: 1px; background: var(--rc); transform: skewX(-14deg); }
.shop-tile .shop-buy { width: 100%; min-width: 0; gap: 4px; padding: 0 var(--space-1); margin-top: auto; font-size: var(--fs-small); white-space: nowrap; }
.shop-tile .shop-buy .ic { flex: none; width: 16px; height: 16px; }
.shop-tile.is-short .shop-buy { --btn-ink: var(--color-text-2); opacity: .7; }
.shop-miss { min-height: 16px; margin: 0; text-align: center; font-size: var(--fs-label); line-height: 1.3; color: var(--color-text-3); }
.shop-miss:empty { display: none; }
.shop-calm { margin: 0; padding: var(--space-3); background: var(--color-bg-2); border-radius: var(--radius-m); font-size: var(--fs-small); color: var(--color-text-2); }

/* stany klawiatury */
.shop-buy:focus-visible, .shop-claim-btn:focus-visible { outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .shop-tile { transition: border-color var(--dur-fast) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
}

/* cecha główna przedmiotu na kafelku (W3) */
.shop-stat { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-label); line-height: 1.25; font-weight: 600; color: var(--color-accent); }

/* „najlepsza wartość”: spokojna plakietka nad najlepszym przelicznikiem (informacja, nie nacisk) */
.shop-tile.is-best { border-color: var(--color-gold); }
.shop-best { align-self: center; padding: 0 var(--space-2); font-size: var(--fs-label); font-weight: 700; line-height: 18px; color: var(--color-gold); border: 1px solid var(--color-gold); border-radius: var(--radius-s); }
