/* [99-zstore-list] Boutique et Inventaire en catalogue (refonte du 22/11/2026) :
   onglets en colonne à gauche comme les autres fenêtres, une ligne par objet (vignette, nom et description,
   prix et achat), la liste défile ; plus de grille 4 x 2, de flèches sur les côtés ni de pages. */
#shop-modal .game-store-window {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  grid-template-rows: 44px auto minmax(0, 1fr) 46px;
}
#shop-modal .store-head-crown,
#shop-modal .store-footer-bar { grid-column: 1 / -1; }
#shop-modal .store-head-crown { grid-row: 1; }
#shop-modal .store-footer-bar { grid-row: 4; padding: 0 22px; }

/* Onglets en colonne */
#shop-modal .store-top-tabs {
  grid-column: 1;
  grid-row: 2 / span 2;
  flex-direction: column;
  height: auto;
  gap: 4px;
  padding: 12px 0 12px 14px;
  background: transparent;
  border-bottom: none;
  border-right: 1px solid rgba(185, 139, 78, 0.35);
}
#shop-modal .store-tab-btn {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 4px 8px;
  text-align: left;
  border: 1px solid #443b30;
  border-right: none;
  border-radius: 0;
}
#shop-modal .store-tab-btn.active {
  border: 1px solid var(--deco-brass);
  border-right: none;
  background: var(--deco-bottle);
  text-shadow: none;
  box-shadow: inset 3px 0 0 var(--deco-brass);
}

#shop-modal .store-subtext-bar { grid-column: 2; grid-row: 2; padding: 10px 18px 6px; }

/* Liste qui défile */
#shop-modal .store-carousel-wrapper { grid-column: 2; grid-row: 3; display: block; padding: 0 10px 8px 14px; overflow: hidden; }
#shop-modal .store-nav-chevron,
#shop-modal .store-page-indicator { display: none; }
#shop-modal .store-grid-viewport { display: block; height: 100%; padding: 0 6px 0 0; overflow-y: auto; scrollbar-color: var(--deco-brass) transparent; }
#shop-modal .store-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: auto;
  max-height: none;
}

/* Une ligne : vignette | nom et description | prix et achat */
#shop-modal .store-item-card {
  width: 100%;
  height: 92px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 214px;
  grid-template-rows: 26px minmax(0, 1fr);
  border: 1px solid rgba(185, 139, 78, 0.55);
  background: linear-gradient(90deg, rgba(31, 90, 72, 0.22), rgba(21, 23, 26, 0.9) 45%);
  box-shadow: none;
  flex-shrink: 0;
}
#shop-modal .store-item-card:not(.empty-slot):hover {
  transform: none;
  border-color: var(--deco-brass-hi);
  box-shadow: inset 3px 0 0 var(--deco-brass);
}
#shop-modal .card-artwork-box {
  grid-column: 1;
  grid-row: 1 / span 2;
  border-bottom: none;
  border-right: 1px solid rgba(185, 139, 78, 0.55);
  background: radial-gradient(ellipse at 50% 45%, #f1ebde 0%, #d9d0bd 55%, #a99f8a 100%);
}
#shop-modal .artwork-inner .art-svg { max-width: 96px; max-height: 78px; }
#shop-modal .artwork-inner .art-troop,
#shop-modal .artwork-inner .art-img,
#shop-modal .artwork-inner img { max-width: 96px; max-height: 80px; }
#shop-modal .card-sale-group { top: 3px; left: 3px; }
#shop-modal .card-sale-ribbon { width: 44px; height: 17px; }
#shop-modal .card-btn-contents { left: 3px; bottom: 3px; }
#shop-modal .card-qty-badge { right: 3px; bottom: 3px; }

#shop-modal .card-title-bar {
  grid-column: 2;
  grid-row: 1;
  height: auto;
  justify-content: flex-start;
  padding: 0 12px;
  background: none;
  border-bottom: none;
  box-shadow: none;
  color: var(--deco-brass-hi);
  font-family: 'Limelight', serif;
  font-weight: 400;
  letter-spacing: 0.6px;
}
#shop-modal .card-desc {
  grid-column: 2;
  grid-row: 2;
  padding: 0 12px 6px;
  color: #cfc6b4;
  font-size: 11.5px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
#shop-modal .card-bottom-bar {
  grid-column: 3;
  grid-row: 1 / span 2;
  height: auto;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.28);
  border-left: 1px solid rgba(185, 139, 78, 0.3);
  box-shadow: none;
}
#shop-modal .card-store-row-price { justify-content: flex-end; gap: 10px; }
#shop-modal .card-bottom-bar .card-btn-use { align-self: flex-end; }

/* Pied : diamants à gauche, bascule Boutique / Inventaire à droite */
#shop-modal .store-footer-center { margin-left: auto; }
#shop-modal .store-btn-main { padding: 5px 26px; font-size: 12px; }

/* Menu de quantité : comme avant (colonne au-dessus du champ), mais la ligne ouverte passe par-dessus les autres au lieu de le rogner */
#shop-modal .store-item-card:has(.card-qty-stepper.is-open) { overflow: visible; z-index: 6; }
/* première ligne : pas de place au-dessus (la liste défile), le menu s'ouvre vers le bas */
#shop-modal .store-item-card:first-child .qty-menu { bottom: auto; top: 100%; box-shadow: 0 4px 10px #000; }
