/* ═══ Loja: catálogo e destaques mais compactos ═══════════════════════════
   Carregado depois de store-refined.css. Cartões com metade da altura, 4 por
   linha em ecrã largo e preço em evidência. */

/* Grelha */
body.store-kow .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 14px; }
@media (max-width: 1180px) { body.store-kow .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { body.store-kow .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; } }

/* Cartão */
body.store-kow #featured-grid .item, body.store-kow .catalog-grid .item {
  display: flex; flex-direction: column; border-radius: 12px; border: 1px solid #ffffff10; background: #17191c;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .2s; cursor: pointer; }
body.store-kow #featured-grid .item:hover, body.store-kow .catalog-grid .item:hover {
  transform: translateY(-4px); border-color: #ffffff2e; box-shadow: 0 18px 36px #0006; }

/* Palco da pré-visualização */
body.store-kow #featured-grid .stage, body.store-kow .catalog-grid .stage {
  height: auto; aspect-ratio: 1.2; padding: 8%; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #30363a, #1b1f22 80%); }
body.store-kow #featured-grid .item:hover .stage, body.store-kow .catalog-grid .item:hover .stage {
  background: radial-gradient(ellipse at 50% 40%, #3b4347, #1f2427 80%); }
body.store-kow .catalog-grid .stage img.flat, body.store-kow #featured-grid .stage img.flat { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
body.store-kow .catalog-grid .item:hover .stage img.flat, body.store-kow #featured-grid .item:hover .stage img.flat { transform: scale(1.06); }
/* "Ver" aparece por cima da imagem ao passar o rato */
body.store-kow .catalog-grid .stage::after, body.store-kow #featured-grid .stage::after {
  content: 'Ver detalhes ↗'; position: absolute; right: 10px; bottom: 10px; z-index: 3; padding: 5px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: #111; background: #f1f2ee; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
body.store-kow .catalog-grid .item:hover .stage::after, body.store-kow #featured-grid .item:hover .stage::after { opacity: 1; transform: none; }

/* Etiquetas numa linha só */
body.store-kow .stage-tags { flex-direction: row; flex-wrap: wrap; top: 10px; left: 10px; }
body.store-kow .stage-tags .tag { padding: 3px 7px; border-radius: 5px; font-size: 9.5px; letter-spacing: .06em; background: #0b0d0fcc; color: #e6e8e4; backdrop-filter: blur(4px); }
body.store-kow .stage-tags .tag.is-new { background: #F2B544; color: #17120a; }

/* Texto */
body.store-kow #featured-grid .item-body, body.store-kow .catalog-grid .item-body { display: flex; flex-direction: column; flex: 1; padding: 13px 14px 14px; }
body.store-kow #featured-grid .item-kind, body.store-kow .catalog-grid .item-kind { margin-bottom: 4px; color: #8d9693; font-size: 9.5px; letter-spacing: .12em; }
body.store-kow #featured-grid .item-title-row, body.store-kow .catalog-grid .item-title-row { margin-bottom: 8px; }
body.store-kow #featured-grid .item-name, body.store-kow .catalog-grid .item-name {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; font-weight: 600; color: #f3f5f2; text-decoration: none; }
body.store-kow #featured-grid .item-desc, body.store-kow .catalog-grid .item-desc { min-height: 0; margin: -2px 0 10px; -webkit-line-clamp: 1; font-size: 11.5px; }
body.store-kow .item-promise, body.store-kow .catalog-grid .store-product-link, body.store-kow #featured-grid .store-product-link { display: none !important; }

/* Preço */
body.store-kow .item-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 12px; }
body.store-kow .item-price-row .card-money-price { font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
body.store-kow .item-price-row .card-coin-price { font-size: 12px; color: #dfbf72; }

/* Botões de compra */
body.store-kow .item-foot { display: grid; gap: 6px; align-items: stretch; margin-top: auto; padding: 0; border-top: 0; }
body.store-kow #featured-grid .item-foot .btn-buy, body.store-kow #featured-grid .item-foot .btn-view,
body.store-kow .catalog-grid .item-foot .btn-buy, body.store-kow .catalog-grid .item-foot .btn-view {
  min-height: 36px; padding: 8px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* Destaques: mesma linguagem, 6 por linha em ecrã largo */
body.store-kow #featured-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }

@media (max-width: 760px) {
  body.store-kow #featured-grid .item-body, body.store-kow .catalog-grid .item-body { padding: 11px; }
  body.store-kow .item-price-row .card-money-price { font-size: 16px; }
  body.store-kow .catalog-grid .stage::after, body.store-kow #featured-grid .stage::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.store-kow #featured-grid .item, body.store-kow .catalog-grid .item, body.store-kow .catalog-grid .stage img.flat { transition: none; }
}

/* Raridade (painel → Raridades): fundo do cartão com a cor e a imagem da raridade */
body.store-kow .catalog-grid .stage.has-rarity[data-cat], body.store-kow #featured-grid .stage.has-rarity[data-cat] {
  background: linear-gradient(0deg, color-mix(in srgb, var(--rar) 55%, transparent), transparent 75%), var(--rar-img, none) center / cover no-repeat,
    radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--rar) 70%, #1b1f22), #15181b 85%); }
.stage .rar-badge { position: absolute; right: 10px; top: 10px; z-index: 2; padding: 3px 8px; border-radius: 5px; font-size: 9.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--rar); text-shadow: 0 1px 2px #0006; box-shadow: 0 4px 12px color-mix(in srgb, var(--rar) 45%, transparent); }

/* Raridade com imagem "sem filtro": só a imagem, sem a cor por cima */
body.store-kow .catalog-grid .stage.has-rarity[data-cat][data-rar-plain], body.store-kow #featured-grid .stage.has-rarity[data-cat][data-rar-plain] {
  background: var(--rar-img) center / cover no-repeat; }
