/* ============================================================
   Equipment catalogue — extends modern.css (same tokens/theme)
   ============================================================ */

.cat-head { padding: 9rem 0 2.5rem; }
.cat-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.cat-head .lead { color: var(--muted); max-width: 62ch; font-size: 1.05rem; }

/* ---------- price notice ---------- */
.price-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem;
  margin-top: 2.2rem; padding: 1.2rem 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 14px;
}
.price-note p { margin: 0; font-size: .95rem; color: #d8d8d8; flex: 1 1 320px; }
.price-note p b { color: #fff; }
.price-note .pn-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.price-note .btn { padding: .7rem 1.2rem; font-size: .9rem; }

/* ---------- toolbar ---------- */
.cat-tools { position: sticky; top: 68px; z-index: 40; padding: 1rem 0 1.2rem; background: rgba(10,10,10,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.cat-search { position: relative; margin-bottom: .9rem; }
.cat-search svg { position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); pointer-events: none; }
.cat-search input {
  width: 100%; padding: .85rem 1rem .85rem 3rem; font: inherit; font-size: .98rem;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; outline: none; transition: border-color .25s, background .25s;
}
.cat-search input::placeholder { color: #7a7a7a; }
.cat-search input:focus { border-color: rgba(255,255,255,.34); background: var(--surface-2); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: .25rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
  font-size: .86rem; font-weight: 500; white-space: nowrap;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  transition: color .2s, background .2s, border-color .2s;
}
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.28); }
.chip.on { color: #0b0b0d; background: #fff; border-color: #fff; font-weight: 600; }
.chip .n { opacity: .55; margin-left: .4rem; font-variant-numeric: tabular-nums; }

/* ---------- grid ---------- */
.cat-count { padding: 1.4rem 0 .2rem; font-size: .88rem; color: var(--muted); }
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.2rem; padding: 1rem 0 5rem;
}
.eq-card {
  display: flex; flex-direction: column; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; color: inherit; font: inherit; padding: 0;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s var(--ease);
}
.eq-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.28); box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.eq-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.eq-shot { position: relative; aspect-ratio: 1/1; background: #fff; }
.eq-shot img { width: 100%; height: 100%; object-fit: contain; padding: .9rem; }
.eq-shot .noimg {
  position: absolute; inset: 0; display: grid; place-items: center; gap: .5rem;
  background: var(--bg-2); color: #4d4d4d; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
.eq-shot .noimg svg { width: 34px; }
.eq-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.eq-body h3 { font-size: 1rem; line-height: 1.3; font-weight: 600; }
.eq-cat { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eq-ask { margin-top: auto; padding-top: .6rem; font-size: .85rem; font-weight: 600; color: var(--accent); }

.cat-empty { padding: 4rem 0 6rem; text-align: center; color: var(--muted); }
.cat-empty b { display: block; color: var(--text); font-size: 1.15rem; margin-bottom: .5rem; }

/* ---------- detail modal ---------- */
.eq-modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  place-items: center; padding: 1.5rem;
  background: rgba(4,4,4,.86); backdrop-filter: blur(8px);
}
.eq-modal.open { display: grid; }
.eq-modal .box {
  width: min(880px, 100%); max-height: 88vh; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px;
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
}
.eq-modal .shot { background: #fff; display: grid; place-items: center; padding: 1.5rem; }
.eq-modal .shot img { max-height: 340px; object-fit: contain; }
.eq-modal .shot .noimg { color: #bbb; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.eq-modal .info { padding: 2rem 2rem 2.2rem; display: flex; flex-direction: column; gap: .9rem; }
.eq-modal .info h2 { font-size: 1.5rem; line-height: 1.2; }
.eq-modal .info .desc { color: #c9c9c9; font-size: .93rem; white-space: pre-line; }
.eq-modal .info .ask-line { color: var(--muted); font-size: .88rem; padding-top: .3rem; border-top: 1px solid var(--border); margin-top: .4rem; }
.eq-modal .info .acts { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }
.eq-modal .close {
  position: absolute; top: 1.4rem; right: 1.6rem; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 1.6rem; line-height: 1;
  color: #fff; background: rgba(0,0,0,.55); border: 1px solid var(--border);
}
.eq-modal .close:hover { background: rgba(0,0,0,.8); }

@media (max-width: 720px) {
  .cat-head { padding: 7.5rem 0 1.5rem; }
  .chips { flex-wrap: nowrap; overflow-x: auto; }
  .cat-tools { top: 60px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
  .eq-body { padding: .85rem .9rem 1rem; }
  .eq-body h3 { font-size: .9rem; }
  .eq-modal { padding: 0; }
  .eq-modal .box { grid-template-columns: 1fr; max-height: 100vh; border-radius: 0; border: 0; }
  .eq-modal .shot img { max-height: 220px; }
  .eq-modal .info { padding: 1.5rem 1.3rem 2.5rem; }
}
