/* ══ DEPENDS ON: site.css (tokens) — USED BY: singles.html only ══ */

/* ── Page-level ──────────────────────────────────────────── */
body { background: var(--bg); color: var(--ink); overflow-x: hidden; }

/* ── Announcement bar ────────────────────────────────────── */
.announcement {
  min-height: 30px; padding: 6px 4.5vw;
  display: flex; align-items: center; justify-content: center; gap: 24px;
  background: var(--ink); color: #eeeae1;
  font-family: var(--font-body); font-weight: 600; font-size: 0.734rem; letter-spacing: 0.11em; text-transform: uppercase;
}
.announcement b { color: var(--lime); font-weight: 600; }
.announcement span:last-child { color: #a7a4aa; }

/* The header, cart drawer and saved-cards drawer now live in site.css and are
   shared with the other four pages — see assets/js/shell.js. */

.eyebrow { margin: 0 0 16px; color: var(--blue); font-family: var(--font-body); font-weight: 600; font-size: 0.734rem; text-transform: uppercase; letter-spacing: 0.16em; }

/* ── Card art (shared: grid, cart, modal) ──────────────────── */
.card-art {
  position: relative; aspect-ratio: 488 / 680; overflow: hidden; border-radius: 4.7%; background: #24222a;
}
.card-art img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; display: block; }
.image-fallback {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px;
  background: radial-gradient(circle at 50% 38%, #34313f, #17161d 62%); color: #e8e1d2; text-align: center;
}
.image-fallback span { color: var(--lime); font-size: 32px; }
.image-fallback b { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: 14px; letter-spacing: 0.05em; }


/* ── Category tabs (same markup as the other shop pages, which get these from
   catalog.css — duplicated here because loading catalog.css whole would clash
   with this file's grid) ── */
.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); }
@media (max-width: 900px) { .cat-tabs { padding: 14px 20px 0; } }

/* ── Catalogue heading ───────────────────────────────────── */
.catalogue { padding: 26px 4.5vw 100px; }
.catalogue-heading {
  padding-bottom: 24px; border-bottom: 2px solid var(--ink);
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
}
.catalogue-heading .eyebrow { margin-bottom: 6px; }
.catalogue-heading h2 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(32px, 4.4vw, 52px); line-height: 0.95; }
.view-meta { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.06em; }
.view-meta > span:first-child { margin-right: 14px; color: var(--ink-dim); }
.view-meta i { width: 7px; height: 7px; border-radius: 50%; background: #c0bdb5; }
.view-meta i.live { background: #73c838; box-shadow: 0 0 0 4px rgba(115, 200, 56, 0.16); }

/* ── Mobile toolbar (hidden on desktop) ─────────────────────── */
.mobile-tools, .mobile-filter-head, .apply-button { display: none; }

/* ── Layout: filters + results ────────────────────────────── */
.catalogue-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 32px; margin-top: 28px; }

.filters { padding: 24px 22px 0 0; border-right: 2px solid var(--ink); }
.filter-block { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1.5px solid var(--line-soft); }
.filter-block:last-of-type { border-bottom: 0; }
.filter-block label, .filter-title { display: block; margin-bottom: 10px; font-family: var(--font-body); font-weight: 600; font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.1em; }
.filter-label { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.link-button { padding: 0; border: 0; background: transparent; color: var(--blue); font-family: var(--font-body); font-weight: 600; font-size: 0.756rem; text-transform: uppercase; cursor: pointer; }
.filters select, .mobile-tools select {
  width: 100%; min-height: 40px; border: 1.5px solid var(--ink); border-radius: 0; background: var(--surface);
  padding: 0 12px; color: var(--ink); font-family: var(--font-body); font-size: 0.78rem; cursor: pointer;
}
.filters select:focus, .mobile-tools select:focus { outline: none; border-color: var(--blue); }
.filter-block small { display: block; margin-top: 7px; color: var(--ink-dim); font-family: var(--font-body); font-weight: 600; font-size: 0.605rem; line-height: 1.45; }

.mana-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mana-grid button {
  aspect-ratio: 1; border: 1.5px solid var(--ink); border-radius: 50%; background: transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 0.67rem; cursor: pointer; transition: all 0.15s;
}
.mana-grid button:first-child { border-radius: 30px; aspect-ratio: auto; grid-column: span 2; padding: 6px 0; }
.mana-grid button.selected, .segmented button.selected { background: var(--ink); color: white; }
.mana-grid button:hover, .segmented button:hover { background: var(--ink); color: white; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); }
.segmented button {
  min-height: 34px; padding: 4px; border: 1.5px solid var(--ink); border-right: 0; background: transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 0.626rem; cursor: pointer; transition: all 0.15s;
}
.segmented button:last-child { border-right: 1.5px solid var(--ink); }

.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; letter-spacing: 0.04em; cursor: pointer;
}
.reset-button:hover { color: var(--blue); border-color: var(--blue); }

.results { min-width: 0; }
.active-bar {
  min-height: 50px; padding-left: 2px; border-bottom: 1.5px solid var(--line-soft);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
}
.active-bar > span { padding: 4px 7px; background: var(--lime); font-family: var(--font-body); font-weight: 600; font-size: 0.626rem; letter-spacing: 0.08em; }
.active-bar p { margin: 0; color: var(--ink-soft); font-size: 0.72rem; }

/* ── Product grid ────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1.5px solid var(--line-soft); }
.product-card {
  min-width: 0; padding: 22px 15px 17px; border-right: 1.5px solid var(--line-soft); border-bottom: 1.5px solid var(--line-soft);
  position: relative; transition: background 0.2s;
}
.product-card:hover { background: rgba(255, 255, 255, 0.6); }
.wishlist {
  position: absolute; top: 28px; right: 20px; z-index: 5; width: 29px; height: 29px;
  display: grid; place-items: center; border: 1.5px solid rgba(21, 20, 26, 0.35); border-radius: 50%;
  background: rgba(255, 254, 249, 0.88); cursor: pointer; transition: all 0.15s;
}
.wishlist:hover { border-color: var(--ink); background: white; }
.wishlist.saved { border-color: var(--red); color: var(--red); background: #fff; }
.art-button { width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.art-button .card-art { width: 86%; margin: 0 auto 20px; box-shadow: 7px 9px 0 rgba(20, 19, 24, 0.09); transition: transform 0.22s, box-shadow 0.22s; }
.product-card:hover .card-art { transform: translateY(-5px) rotate(-0.6deg); box-shadow: 10px 14px 0 rgba(36, 81, 255, 0.12); }
.foil-badge {
  position: absolute; left: 12px; bottom: 27px; z-index: 4; padding: 7px 13px;
  background: linear-gradient(90deg, #bdf4ff, #f3c8ff, #fff2a3); color: var(--ink);
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
}
.product-meta { display: flex; justify-content: space-between; color: var(--ink-dim); font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; }
.product-title {
  max-width: 100%; margin: 8px 0 3px; padding: 0; border: 0; background: transparent; display: block;
  font-size: 1rem; font-weight: 700; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.product-title:hover { color: var(--blue); }
.product-info > p { min-height: 26px; margin: 0 0 10px; color: var(--ink-soft); font-size: 0.68rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.condition-row { display: flex; gap: 5px; flex-wrap: wrap; }
.condition-row span { padding: 3px 6px; border: 1.5px solid #c9c5bb; color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.56rem; text-transform: uppercase; }
.condition-row span:first-child { border-color: var(--blue); color: var(--blue); }
.buy-row { margin-top: 14px; 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: white;
  font-family: var(--font-body); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.03em; cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.buy-row button:hover { background: var(--blue); border-color: var(--blue); }
.buy-row button:disabled { opacity: 0.45; cursor: default; }

.empty-state {
  min-height: 480px; padding: 70px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; border-bottom: 1.5px solid var(--line-soft);
}
.empty-state > span { font-size: 42px; color: var(--ink-dim); }
.empty-state .eyebrow { margin: 18px 0 6px; }
.empty-state h3 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: 24px; text-transform: uppercase; }
.empty-state > p:not(.eyebrow) { max-width: 440px; color: var(--ink-soft); font-size: 0.8rem; line-height: 1.6; }
.empty-state button {
  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.648rem; text-transform: uppercase; cursor: pointer; transition: all 0.15s;
}
.empty-state button:hover { background: var(--ink); color: white; }

/* ── Service note ────────────────────────────────────────── */
.service-note {
  padding: 80px 4.5vw; border-top: 2px solid var(--ink); background: var(--ink); color: white;
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 8vw;
}
.service-note h2 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(32px, 4.4vw, 54px); line-height: 0.9; }
.service-points { border-top: 1.5px solid #4a4850; }
.service-points p { margin: 0; padding: 22px 0; border-bottom: 1.5px solid #4a4850; display: grid; grid-template-columns: 40px 1fr; gap: 20px; }
.service-points p > b { color: var(--lime); font-family: var(--font-body); font-weight: 600; font-size: 0.67rem; }
.service-points span { display: grid; gap: 6px; color: #a7a4ad; font-size: 0.76rem; line-height: 1.5; }
.service-points strong { color: white; font-size: 0.92rem; }

/* ── Scrims used by the card modal and the mobile filter panel ── */
.scrim { position: fixed; inset: 0; z-index: 149; border: 0; background: rgba(14, 13, 17, 0.6); backdrop-filter: blur(2px); cursor: default; }
.modal-close, .mobile-filter-head button {
  width: 36px; height: 36px; border: 1.5px solid var(--ink); background: transparent; border-radius: 50%;
  font-size: 1.15rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.modal-close:hover { background: var(--ink); color: white; }
.modal-buy button {
  width: 100%; min-height: 48px; margin-top: 10px; border: 1.5px solid var(--ink); background: var(--blue); color: white;
  font-family: var(--font-body); font-weight: 600; font-size: 0.713rem; letter-spacing: 0.08em; cursor: pointer; transition: background 0.15s;
}
.modal-buy button:hover { background: #173bd6; }

/* ── Card detail modal ───────────────────────────────────── */
.modal-wrap { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 22px; }
.modal-wrap[hidden] { display: none; }
.modal-wrap .scrim { z-index: 160; }
.card-modal {
  position: relative; z-index: 161; width: min(860px, 96vw); max-height: 92vh; overflow: auto; padding: 32px;
  background: var(--bg); display: grid; grid-template-columns: minmax(240px, .82fr) 1.18fr; gap: 38px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}
.card-modal > .card-art { width: 100%; box-shadow: 12px 14px 0 rgba(36, 81, 255, 0.12); }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 4; background: var(--bg); }
.modal-copy { display: flex; flex-direction: column; justify-content: center; padding-right: 10px; }
.modal-copy .eyebrow { margin-bottom: 8px; }
.modal-copy h2 { margin: 0; max-width: 410px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(26px, 3.8vw, 42px); line-height: 0.9; text-transform: uppercase; }
.modal-set { color: var(--ink-soft); font-size: 0.78rem; }
.spec-grid { margin: 21px 0; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; }
.spec-grid span { min-height: 64px; padding: 12px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); display: grid; gap: 6px; }
.spec-grid small, .modal-buy small { color: var(--ink-dim); font-family: var(--font-body); font-weight: 600; font-size: 0.605rem; text-transform: uppercase; }
.spec-grid b { font-size: 0.8rem; }
.seller-note { padding: 14px; border-left: 3px solid var(--lime); background: var(--ink); color: white; }
.seller-note span { color: var(--lime); font-family: var(--font-body); font-weight: 600; font-size: 0.605rem; letter-spacing: 0.08em; }
.seller-note p { margin: 6px 0 0; color: #bbb7c0; font-size: 0.72rem; line-height: 1.5; }
.modal-buy { margin-top: 22px; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 22px; }
.modal-buy > div { display: grid; gap: 4px; }
.modal-buy strong { font-family: var(--font-mono); font-size: 1.55rem; }
.modal-buy button { margin: 0; }

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

@media (max-width: 900px) {
  .announcement span:last-child { display: none; }
  .catalogue { padding: 52px 20px 76px; }
  .catalogue-heading { align-items: start; }
  .view-meta { margin-top: 8px; flex-wrap: wrap; justify-content: end; }
  .view-meta > span:first-child { width: 100%; margin: 0; text-align: right; }
  .catalogue-layout { grid-template-columns: 1fr; margin-top: 0; }

  .filters {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 155; width: min(360px, 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 { margin-bottom: 26px; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: 1.35rem; }
  .apply-button {
    width: 100%; min-height: 46px; margin-top: 22px; display: block; border: 0; background: var(--blue); color: white;
    font-family: var(--font-body); font-weight: 600; font-size: 0.713rem; text-transform: uppercase; cursor: pointer;
  }
  .desktop-sort { display: none; }
  .mobile-tools {
    padding: 12px 0; border-bottom: 2px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  }
  .mobile-tools > button { min-height: 40px; border: 1.5px solid var(--ink); background: var(--ink); color: white; font-family: var(--font-body); font-weight: 600; font-size: 0.713rem; text-transform: uppercase; cursor: pointer; }
  .filter-scrim { z-index: 154; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-note { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 600px) {
  .announcement { justify-content: flex-start; padding-left: 20px; font-size: 0.6rem; }
  .catalogue-heading { display: block; }
  .view-meta { justify-content: start; }
  .view-meta > span:first-child { width: auto; margin-right: 8px; text-align: left; }
  .active-bar { grid-template-columns: auto 1fr; }
  .active-bar .link-button { display: none; }
  .product-card { padding: 16px 8px 14px; }
  .art-button .card-art { width: 91%; margin-bottom: 16px; box-shadow: 4px 6px 0 rgba(20, 19, 24, 0.09); }
  .wishlist { top: 20px; right: 12px; width: 26px; height: 26px; }
  .product-title { font-size: 0.8rem; }
  .product-info > p { font-size: 0.62rem; }
  .condition-row span:nth-child(2) { display: none; }
  .buy-row { display: grid; grid-template-columns: 1fr; }
  .buy-row button { width: 100%; }
  .service-note { padding: 60px 20px; }
  .card-modal { width: 94vw; padding: 46px 18px 22px; grid-template-columns: 1fr; gap: 26px; }
  .card-modal > .card-art { width: 74%; margin: 0 auto; }
  .modal-copy { padding: 0; }
  .modal-buy { grid-template-columns: 1fr; }
  #toast { max-width: calc(100vw - 30px); white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
