/* ══ DEPENDS ON: site.css (tokens, header, drawers) — USED BY: sealed.html, sleeves.html, playmats.html ══
   Deliberately NOT loaded together with singles.css. Both describe a shop grid,
   but singles shows real card art from Scryfall and filters on card properties,
   so they stay separate rather than one bending to fit the other. */

body { background: var(--bg); color: var(--ink); overflow-x: hidden; }

/* ── Category tabs (also used by singles.html) ─────────────── */
.cat-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  padding: 18px 4.5vw 0;
}
.cat-tabs a {
  padding: 9px 15px;
  border: 1.5px solid var(--line-soft); border-radius: 30px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.734rem; letter-spacing: 0.04em;
  color: var(--ink-soft); white-space: nowrap; transition: all 0.15s;
}
.cat-tabs a:hover { border-color: var(--ink); color: var(--ink); }
.cat-tabs a.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ── Heading ──────────────────────────────────────────────── */
.catalogue { padding: 26px 4.5vw 90px; }
.catalogue-heading {
  padding-bottom: 22px; border-bottom: 2px solid var(--ink);
  display: flex; align-items: end; justify-content: space-between; gap: 22px;
}
.catalogue-heading .eyebrow { margin-bottom: 6px; color: var(--blue); }
.catalogue-heading h2 {
  margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(40px, 6vw, 68px); line-height: 0.95;
}
.catalogue-heading p.blurb { max-width: 460px; margin-top: 10px; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.55; }
.view-meta {
  font-family: var(--font-body); font-weight: 600; font-size: 0.691rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-dim); white-space: nowrap;
}

/* ── Layout ───────────────────────────────────────────────── */
.mobile-tools, .mobile-filter-head, .apply-button { display: none; }
.catalogue-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 32px; margin-top: 26px; }

.filters { padding: 22px 22px 0 0; border-right: 2px solid var(--ink); }
.filter-block { padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1.5px solid var(--line-soft); }
.filter-block:last-of-type { border-bottom: 0; }
.filter-title, .filter-block label {
  display: block; margin-bottom: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.67rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.chip-col { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.chip {
  padding: 6px 12px; border: 1.5px solid var(--line-soft); border-radius: 30px;
  background: transparent; color: var(--ink-soft);
  font-family: var(--font-body); font-weight: 600; font-size: 0.691rem; text-align: left;
  cursor: pointer; transition: all 0.14s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.filters select, .mobile-tools select {
  width: 100%; min-height: 40px; padding: 0 12px;
  border: 1.5px solid var(--ink); border-radius: 0; background: var(--surface);
  color: var(--ink); font-family: var(--font-body); font-size: 0.78rem; cursor: pointer;
}
.reset-button {
  border: 0; border-bottom: 1.5px solid var(--ink); padding: 0 0 2px; background: transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 0.626rem; text-transform: uppercase; cursor: pointer;
}
.reset-button:hover { color: var(--blue); border-color: var(--blue); }

/* ── Product grid ─────────────────────────────────────────── */
.prod-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1.5px solid var(--line-soft); border-top: 1.5px solid var(--line-soft);
}
.prod-card {
  position: relative; min-width: 0; padding: 20px 16px 16px;
  border-right: 1.5px solid var(--line-soft); border-bottom: 1.5px solid var(--line-soft);
  display: flex; flex-direction: column; transition: background 0.2s;
}
.prod-card:hover { background: rgba(255, 255, 255, 0.6); }

/* Placeholder tile. Saying "photo coming soon" is more honest than a stock
   image of a product that may not look like what actually ships. */
.prod-art {
  aspect-ratio: 4 / 3; margin-bottom: 16px;
  display: grid; place-items: center;
  border: 1.5px dashed #c4c0b6; border-radius: 8px;
  background: repeating-linear-gradient(45deg, #eceae3 0 10px, #e6e3db 10px 20px);
  color: var(--ink-dim); text-align: center;
  font-family: var(--font-body); font-weight: 600; font-size: 0.67rem; letter-spacing: 0.08em;
  text-transform: uppercase; line-height: 1.6;
}

.wishlist {
  position: absolute; top: 26px; right: 24px; z-index: 5;
  width: 29px; height: 29px; display: grid; place-items: center;
  border: 1.5px solid rgba(21, 20, 26, 0.3); border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); cursor: pointer; transition: all 0.15s;
}
.wishlist:hover { border-color: var(--ink); background: #fff; }
.wishlist.saved { border-color: var(--red); color: var(--red); }

.prod-info { display: flex; flex-direction: column; flex: 1; }
.prod-meta {
  display: flex; justify-content: space-between; gap: 8px;
  color: var(--ink-dim); font-family: var(--font-body); font-weight: 600; font-size: 0.605rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.prod-card h3 { margin: 8px 0 3px; font-size: 0.95rem; font-weight: 700; line-height: 1.25; }
.prod-card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 0.74rem; line-height: 1.45; }
.buy-row {
  margin-top: auto; padding-top: 12px; border-top: 1.5px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.buy-row strong { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 600; }
.buy-row button {
  min-height: 38px; padding: 0 15px;
  border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
  font-family: var(--font-body); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.03em;
  cursor: pointer; transition: all 0.15s;
}
.buy-row button:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); }
.buy-row button:disabled { opacity: 0.4; cursor: default; }

.empty-state {
  min-height: 360px; padding: 60px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1.5px dashed var(--line-soft); border-radius: var(--radius);
}
.empty-state h3 { margin: 6px 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: 23px; text-transform: uppercase; }
.empty-state p { max-width: 420px; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.6; }
.empty-state button {
  margin-top: 14px; min-height: 40px; padding: 0 18px;
  border: 1.5px solid var(--ink); background: transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 0.67rem; text-transform: uppercase; cursor: pointer;
}
.empty-state button:hover { background: var(--ink); color: var(--bg); }

/* ── Notice strip ─────────────────────────────────────────── */
.stock-note {
  margin: 0 4.5vw; padding: 13px 16px;
  border: 1.5px solid var(--line-soft); border-left: 3px solid var(--blue);
  background: var(--blue-dim); color: var(--ink-soft);
  font-size: 0.78rem; line-height: 1.55;
}
.stock-note b { color: var(--ink); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 900px) {
  .cat-tabs { padding: 14px 20px 0; }
  .catalogue { padding: 22px 20px 70px; }
  .stock-note { margin: 0 20px; }
  .catalogue-heading { display: block; }
  .view-meta { display: block; margin-top: 8px; }
  .catalogue-layout { grid-template-columns: 1fr; margin-top: 0; }

  .filters {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 155;
    width: min(340px, 92vw); padding: 22px; border: 0;
    background: var(--bg); overflow: auto;
    transform: translateX(-105%); transition: transform 0.25s;
  }
  .filters.open { transform: translateX(0); }
  .mobile-filter-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: 1.35rem;
  }
  .mobile-filter-head button {
    width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 50%;
    background: transparent; font-size: 1.1rem; cursor: pointer;
  }
  .apply-button {
    display: block; width: 100%; min-height: 46px; margin-top: 20px;
    border: 0; background: var(--blue); color: #fff;
    font-family: var(--font-body); font-weight: 600; font-size: 0.713rem; text-transform: uppercase; cursor: pointer;
  }
  .desktop-sort { display: none; }
  .mobile-tools {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 12px 0; border-bottom: 2px solid var(--ink);
  }
  .mobile-tools > button {
    min-height: 40px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
    font-family: var(--font-body); font-weight: 600; font-size: 0.713rem; text-transform: uppercase; cursor: pointer;
  }
}

@media (max-width: 560px) {
  .prod-grid { grid-template-columns: 1fr; }
}
