/* Steam deals catalogue on the deals page (inc/steam-deals.php). Kit tokens and deal-row design only. */

.vgnw-sd-filters { gap: 10px; }
.vgnw-sd-search { flex: 1 1 220px; min-width: 0; }
.vgnw-sd-search input { width: 100%; min-width: 0; }
.vgnw-sd-search input::-webkit-search-cancel-button { cursor: pointer; }
.vgnw-sd-filters .vgnw-dl-sortwrap { box-sizing: border-box; height: 36px; max-width: 100%; }
.vgnw-sd-price .vgnw-dl-sort-l { white-space: nowrap; }
.vgnw-sd-price { box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); color: var(--fg-muted); }
.vgnw-sd-num { width: 64px; min-width: 0; border: 0; background: none; outline: none; font-family: var(--font-text); font-size: 13.5px; color: var(--fg-default); -moz-appearance: textfield; }
.vgnw-sd-num::-webkit-outer-spin-button, .vgnw-sd-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vgnw-sd-go { height: 36px; }
.vgnw-sd-filters .vgnw-dl-clearall { margin-left: 0; }
.vgnw-sd-price:focus-within, .vgnw-sd-search:focus-within, .vgnw-sd-filters .vgnw-dl-sortwrap:focus-within { border-color: var(--border-strong); }

.vgnw-sd-genres { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 18px; }
.vgnw-sd-genres .vgnw-tag { text-decoration: none; white-space: nowrap; transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast); }
.vgnw-sd-genres .vgnw-tag:active { transform: scale(.97); }

.vgnw-sd-results .vgnw-dl-listhead { flex-wrap: wrap; }
.vgnw-sd-source { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-micro); font-size: 11px; letter-spacing: .02em; color: var(--fg-subtle); }

.vgnw-sd-item { grid-template-columns: 52px minmax(0, 1fr) 156px 124px; }
.vgnw-sd-item .vgnw-dl-item-thumb { position: relative; display: block; width: 52px; height: 69px; overflow: hidden; background: var(--bg-inset); }
.vgnw-sd-item .vgnw-dl-item-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vgnw-sd-item .vgnw-dl-item-t a { color: inherit; text-decoration: none; }
.vgnw-sd-item .vgnw-dl-item-meta { gap: 6px; }
.vgnw-sd-sep { color: var(--fg-subtle); font-size: 11px; }
.vgnw-sd-dim { color: var(--fg-subtle); }
.vgnw-sd-game { text-decoration: none; }
.vgnw-sd-game:hover { color: var(--fg-default); border-color: var(--border-strong); }
.vgnw-sd-try { font-family: var(--font-micro); font-size: 11px; color: var(--fg-muted); white-space: nowrap; }
.vgnw-sd-low { font-family: var(--font-micro); font-size: 10.5px; color: var(--fg-subtle); white-space: nowrap; }
.vgnw-sd-item .vgnw-dl-shop { height: 44px; }

.vgnw-sd-pager { justify-content: center; }
.vgnw-sd-pager .page-numbers { text-decoration: none; color: var(--fg-default); transition: background var(--dur-fast), border-color var(--dur-fast); }
.vgnw-sd-pager a.page-numbers:hover { border-color: var(--border-strong); background: var(--bg-raised); }
.vgnw-sd-note { margin: 22px 0 0; font-family: var(--font-text); font-size: 12.5px; line-height: 1.5; color: var(--fg-subtle); max-width: 760px; }
.vgnw-sd-other { margin-top: 40px; }

.vgnw-sd-fan-art { position: absolute; inset: 0; background: var(--bg-inset) center / cover no-repeat; }

/* Motion: rows arrive in a short cascade; nothing moves for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .vgnw-sd-list .vgnw-sd-item { animation: vgnw-sd-in .42s cubic-bezier(.2, .7, .3, 1) both; }
  .vgnw-sd-list .vgnw-sd-item:nth-child(2) { animation-delay: .03s; }
  .vgnw-sd-list .vgnw-sd-item:nth-child(3) { animation-delay: .06s; }
  .vgnw-sd-list .vgnw-sd-item:nth-child(4) { animation-delay: .09s; }
  .vgnw-sd-list .vgnw-sd-item:nth-child(5) { animation-delay: .12s; }
  .vgnw-sd-list .vgnw-sd-item:nth-child(6) { animation-delay: .15s; }
  .vgnw-sd-list .vgnw-sd-item:nth-child(n+7) { animation-delay: .18s; }
  .vgnw-sd-item .vgnw-dl-item-thumb img { transition: transform .35s cubic-bezier(.2, .7, .3, 1); }
  .vgnw-sd-item:hover .vgnw-dl-item-thumb img { transform: scale(1.06); }
  .vgnw-ph-fan-c:hover .vgnw-sd-fan-art { transform: scale(1.04); transition: transform .3s; }
}
@keyframes vgnw-sd-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .vgnw-sd-item { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "thumb main main" "thumb price shop"; row-gap: 10px; column-gap: 12px; align-items: start; }
  .vgnw-sd-item .vgnw-dl-item-thumb { grid-area: thumb; }
  .vgnw-sd-item .vgnw-dl-item-main { grid-area: main; }
  .vgnw-sd-item .vgnw-dl-item-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .vgnw-sd-item .vgnw-dl-price { grid-area: price; align-items: flex-start; align-self: center; }
  .vgnw-sd-item .vgnw-dl-shop { grid-area: shop; min-width: 0; width: auto; align-self: center; }
  .vgnw-sd-price { flex: 1 1 100%; }
  .vgnw-sd-num { flex: 1 1 0; width: auto; }
}
@media (max-width: 640px) {
  .vgnw-sd-filters { gap: 8px; }
  .vgnw-sd-filters .vgnw-dl-sortwrap { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .vgnw-sd-filters .vgnw-dl-sort-sel { min-width: 0; width: 100%; }
  .vgnw-sd-go { flex: 1 1 auto; }
  .vgnw-sd-genres { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .vgnw-sd-genres::-webkit-scrollbar { display: none; }
  .vgnw-sd-item .vgnw-dl-price-top { flex-wrap: wrap; }
  .vgnw-sd-item .vgnw-dl-shop { padding: 0 10px; height: 40px; }
}
