/* W? Points shop (app/shop/): reward cards like the app cards, one reward opens in the panel above the grid. */
body.app-shop .shop-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(16px, 2.4vw, 24px);
  border-radius: var(--ws-r-lg);
  background: var(--ws-surface);
  scroll-margin-top: 110px;
  animation: shopIn .28s ease both;
}
body.app-shop .shop-panel[hidden] { display: none; }
@keyframes shopIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.app-shop .shop-panel { animation: none; } }
body.ws26.app-shop .shop-panel-art { aspect-ratio: 4 / 3; height: auto !important; min-height: 0; border-radius: var(--ws-r-md, 18px); overflow: hidden; }
body.ws26.app-shop .shop-panel-art,
body.ws26.app-shop .shop-panel-art .plugin-pixel-thumb { background: var(--ws-bg) !important; }
body.app-shop .shop-panel-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 8px 8px 8px 0; }
body.app-shop .shop-panel-title { margin: 0; padding-right: 44px; font: 800 clamp(28px, 3.6vw, 42px)/1.05 Inter, system-ui, sans-serif; letter-spacing: -0.03em; color: var(--ws-text); }
body.app-shop .shop-cost { margin: 0; color: var(--ws-text-2); font-size: 15px; }
body.app-shop .shop-cost strong { font-size: 28px; color: var(--ws-text); letter-spacing: -0.02em; }
body.app-shop .shop-about { margin: 0; color: var(--ws-text-2); font-size: 16px; line-height: 1.5; }
body.app-shop .shop-facts { margin: 0; }
body.app-shop .shop-facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-top: 1px solid var(--ws-line-soft); font-size: 14px; line-height: 1.45; }
body.app-shop .shop-facts dt { color: var(--ws-text-3); font-weight: 600; }
body.app-shop .shop-facts dd { margin: 0; color: var(--ws-text); }
body.app-shop .shop-actions { margin-top: auto; padding-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
body.app-shop .shop-actions .ah-btn { text-decoration: none; }
body.app-shop .shop-actions .is-off { cursor: default; color: var(--ws-text-2); }
body.app-shop .shop-actions .is-off:active { transform: none; }
body.app-shop .shop-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--ws-surface-2); color: var(--ws-text); font: 400 24px/1 Inter, system-ui, sans-serif; cursor: pointer;
}
body.app-shop .shop-close:hover { background: var(--ws-surface-3); }
body.app-shop .ah-grid .work-card { cursor: pointer; transition: box-shadow .2s; }
body.app-shop .ah-grid .work-card.is-active .work-media { box-shadow: 0 0 0 2px var(--ws-text); }
body.app-shop .ah-grid .work-card.is-soon { cursor: pointer; }
body.app-shop .shop-empty { grid-column: 1 / -1; margin: 0; padding: 40px 0; text-align: center; color: var(--ws-text-2); }
@media (max-width: 760px) {
  body.app-shop .shop-panel { grid-template-columns: 1fr; }
  body.app-shop .shop-panel-body { padding: 0 4px 4px; }
}

/* 2026-11-19b: smooth close, broken grid, orange highlight cards. */
body.app-shop .shop-panel { box-sizing: border-box; }
body.app-shop .shop-panel.is-closing {
  overflow: hidden; opacity: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -28px; animation: none;
  transition: height .4s cubic-bezier(.4, 0, .2, 1), padding .4s cubic-bezier(.4, 0, .2, 1), margin .4s cubic-bezier(.4, 0, .2, 1), opacity .28s ease;
}
@media (prefers-reduced-motion: reduce) { body.app-shop .shop-panel.is-closing { transition: none; } }
body.ws26.app-shop .ws-main > section.designer-tools.ah-apps { padding-top: 0; }
body.ws26.app-shop .ah-grid .work-card.is-highlight .work-media,
body.ws26.app-shop .ah-grid .work-card.is-highlight .plugin-pixel-thumb { background: var(--ws-accent) !important; }
body.ws26.app-shop .ah-grid .work-card.is-highlight .plugin-pixel-glyph,
body.ws26.app-shop .ah-grid .work-card.is-highlight:hover .plugin-pixel-glyph { filter: none; }
body.ws26.app-shop .ah-grid .work-card.is-highlight .plugin-pixel-thumb::after { display: none; }

/* Last card alone in its round: full row (shop.js). */
.plugin-catalog-grid .work-card.shop-card--full { grid-column: 1 / -1; }
