/* Wikiclash — Boutique (README §5.3). */
.bt-main {
  display: grid; grid-template-columns: clamp(220px, 25vw, 330px) minmax(0, 1fr) clamp(240px, 26vw, 340px);
  gap: clamp(24px, 3vw, 48px); padding: clamp(18px, 3.5vh, 36px) var(--pad-x); min-height: 0;
}

/* liste des boosters */
.bt-side { display: flex; flex-direction: column; gap: clamp(12px, 2.6vh, 24px); min-height: 0; }
.bt-h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 4.6vh, 42px); line-height: 1; }
.bt-free { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--ln); background: var(--bg2); padding: 10px 12px; }
.bt-free > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bt-free b { font-size: 13px; font-weight: 600; color: var(--ink); }
.bt-free span { font-size: 12px; color: var(--mut); white-space: nowrap; }
.bt-free button { border: 0; background: none; font-family: var(--serif); font-size: 18px; color: var(--link); cursor: pointer; white-space: nowrap; padding: 0; }
.bt-free.off button { color: var(--ln); cursor: not-allowed; }
.bt-free button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.bt-list { display: flex; flex-direction: column; border-top: 1px solid var(--bg3); }
.bt-pk {
  display: grid; grid-template-columns: 14px 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: clamp(6px, 1.3vh, 11px) 0;
  border: 0; border-bottom: 1px solid var(--bg3); background: none; cursor: pointer; text-align: left; color: var(--ink);
}
.bt-pk .mk { font-family: var(--serif); font-size: 22px; color: var(--link); opacity: 0; transform: translateX(-8px); transition: opacity 160ms ease, transform 220ms ease; }
.bt-pk .mini { width: 22px; height: 32px; background: var(--bg); border: 1px solid var(--ln); border-top: 4px solid var(--rc); border-bottom: 4px solid var(--rc); }
.bt-pk .tx { display: flex; flex-direction: column; min-width: 0; }
.bt-pk .nm { font-family: var(--serif); font-size: clamp(16px, 2.6vh, 20px); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bt-pk .sb { font-size: 12px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-pk .pr { font-size: 13px; color: var(--ink); white-space: nowrap; }
.bt-pk .pr.off { color: var(--ln); }
.bt-pk.on .mk { opacity: 1; transform: none; }
.bt-pk.on .nm { color: var(--link); text-decoration: underline; }
.bt-pk.on .pr:not(.off) { color: var(--link); }
.bt-pk:hover .nm { color: var(--link); }
.bt-pk:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* vitrine */
.bt-show { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 3vh, 28px); min-height: 0; min-width: 0; }
.bt-stage { perspective: 1200px; opacity: 0; transform: translateY(14px); transition: opacity 240ms ease, transform 420ms var(--ease-soft); }
.bt-pack { width: clamp(120px, 30vh, 230px); will-change: transform; }
.bt-info { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-width: 440px; opacity: 0; transition: opacity 240ms ease 60ms; }
.bt-show.in .bt-stage { opacity: 1; transform: none; }
.bt-show.in .bt-info { opacity: 1; }
.bt-info .nm { font-family: var(--serif); font-size: clamp(26px, 5vh, 44px); line-height: 1.05; color: var(--ink); }
.bt-info p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--sub); text-wrap: pretty; }
.bt-info .tags { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.bt-info .tg { font-size: 12px; color: var(--tc); border: 1px solid var(--tc); padding: 2px 8px; }

/* achat */
.bt-buy { display: flex; flex-direction: column; gap: clamp(12px, 2.4vh, 22px); min-height: 0; }
.bt-rates { display: flex; flex-direction: column; border: 1px solid var(--ln); }
.bt-rates .hd { display: flex; justify-content: space-between; background: var(--bg3); padding: 6px 10px; font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--ln); }
.bt-rates .hd span + span { font-weight: 400; color: var(--sub); }
.bt-rates .rt { display: grid; grid-template-columns: 96px minmax(0, 1fr) 40px; align-items: center; gap: 10px; padding: clamp(3px, .8vh, 6px) 10px; border-top: 1px solid var(--bg3); font-size: 13px; }
.bt-rates .rt:first-child { border-top: 0; }
.bt-rates .n { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.bt-rates .n i { width: 8px; height: 8px; flex: none; }
.bt-rates .b { height: 4px; background: var(--bg2); }
.bt-rates .b i { display: block; height: 100%; transition: width 500ms var(--ease-soft); }
.bt-rates .p { text-align: right; color: var(--ink); }
.bt-themes { display: flex; flex-direction: column; gap: 6px; }
.bt-themes[hidden] { display: none; }
.bt-themes .tl { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.bt-themes button { border: 0; background: none; padding: 0; font-family: var(--serif); font-size: 17px; color: var(--ink); cursor: pointer; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bt-themes button:hover, .bt-themes button.on { color: var(--link); }
.bt-themes button.on { text-decoration: underline; }
.bt-themes button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.bt-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bt-qty .seg button { padding: 5px 14px; transition: background 140ms ease; }
.bt-total { display: flex; flex-direction: column; gap: 8px; }
.bt-total .row { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ln); padding-top: 10px; font-size: 13px; color: var(--sub); }
.bt-total .v b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--ink); }
.bt-total .v i { font-style: normal; font-size: 12px; color: var(--mut); }
.bt-go { width: 100%; padding: 9px 14px; }
.bt-note { min-height: 18px; font-size: 12px; text-align: center; color: var(--mut); }
.bt-note.ok { color: var(--ok); }
.bt-note.err { color: var(--err); }
.bt-note a { font-weight: 700; }

/* petites hauteurs : la colonne d'achat tient sans défiler, même avec le choix du thème */
@media (max-height: 620px) {
  .bt-buy { gap: 10px; }
  .bt-rates .hd { padding: 4px 10px; }
  .bt-rates .rt { padding: 1px 10px; font-size: 12px; }
  .bt-themes { gap: 2px; }
  .bt-themes button { font-size: 15px; }
  .bt-qty .seg button { padding: 3px 12px; }
  .bt-total { gap: 6px; }
  .bt-total .row { padding-top: 6px; }
  .bt-total .v b { font-size: 22px; }
  .bt-go { padding: 6px 14px; }
  .bt-free { padding: 7px 10px; }
}
