/* ============================================================
   Everest — Catálogo (front-end do shortcode [everest_catalogo])
   Reproduz o protótipo aprovado: dark + verde, Bebas Neue + Inter.
   Escopo isolado em .ev-cat para não vazar para o tema.
   ============================================================ */
.ev-cat {
  --ev-bg: #00030d;
  --ev-surface: #080b16;
  --ev-surface2: #0d1120;
  --ev-green: #61bf1a;
  --ev-green-strong: #59b315;
  --ev-ink: #0a0d18;
  --ev-line: rgba(255, 255, 255, 0.1);
  --ev-steel: #8b93a3;
  --ev-steel-deep: #141a26;
  background: var(--ev-bg);
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ev-cat *,
.ev-cat *::before,
.ev-cat *::after { box-sizing: border-box; }
.ev-cat .ev-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.ev-cat .ev-display { font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: 0.02em; }
.ev-cat .ev-eyebrow {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--ev-green); margin: 0;
}

/* Faixa de título */
.ev-cat .ev-band {
  background: var(--ev-green); position: relative; overflow: hidden;
  height: 160px; display: flex; align-items: center; justify-content: center;
}
.ev-cat .ev-band h2 {
  font-family: "Bebas Neue", Impact, sans-serif; color: #fff;
  font-size: clamp(46px, 7vw, 68px); margin: 0; letter-spacing: 0.04em;
}

/* Intro */
.ev-cat .ev-intro { text-align: center; padding: 56px 0; border-bottom: 1px solid var(--ev-line); }
.ev-cat .ev-intro h3 { font-size: clamp(34px, 5vw, 48px); margin: 12px 0 0; }
.ev-cat .ev-intro p { color: rgba(255,255,255,.65); max-width: 720px; margin: 16px auto 0; line-height: 1.6; }

/* Busca */
.ev-cat .ev-search-wrap { padding: 40px 0; }
.ev-cat .ev-search-title { text-align: center; color: var(--ev-green); font-size: 30px; margin: 0 0 24px; }
.ev-cat .ev-search-input {
  display: block; width: 100%; max-width: 640px; margin: 0 auto 24px;
  height: 54px; border-radius: 12px; border: 1px solid var(--ev-line);
  background: var(--ev-surface); color: #fff; padding: 0 18px; font-size: 15px;
}
.ev-cat .ev-search-input::placeholder { color: rgba(255,255,255,.35); }
.ev-cat .ev-search-input:focus { outline: none; border-color: var(--ev-green); box-shadow: 0 0 0 2px rgba(97,191,26,.3); }

.ev-cat .ev-filters { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 32px; }
.ev-cat .ev-col h4 { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--ev-line); padding-bottom: 12px; margin: 0 0 16px; }
.ev-cat .ev-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; background: var(--ev-green); color: var(--ev-ink); font-family: "Bebas Neue", Impact, sans-serif; font-size: 18px; }
.ev-cat .ev-col h4 span.ev-lbl { font-family: "Bebas Neue", Impact, sans-serif; font-size: 22px; text-transform: uppercase; }
.ev-cat .ev-opts { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; }

/* --- Filtro colapsável (acordeão) — compacta o menu --- */
.ev-cat .ev-col-head { cursor: pointer; user-select: none; }
.ev-cat .ev-col-head:focus-visible { outline: 2px solid var(--ev-green); outline-offset: 3px; }
.ev-cat .ev-chev { margin-left: auto; width: 11px; height: 11px; border-right: 2px solid rgba(255,255,255,.55); border-bottom: 2px solid rgba(255,255,255,.55); transform: rotate(45deg); transition: transform .25s ease; flex: none; margin-bottom: 3px; }
.ev-cat .ev-col-head:hover .ev-chev { border-color: var(--ev-green); }
.ev-cat .ev-col--open .ev-chev { transform: rotate(-135deg); margin-bottom: -3px; }
.ev-cat .ev-col .ev-opts { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .2s ease; }
.ev-cat .ev-col--open .ev-opts { max-height: 400px; overflow: auto; opacity: 1; }
.ev-cat .ev-opt { display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-size: 14px; color: rgba(255,255,255,.8); cursor: pointer; }
.ev-cat .ev-opt:hover { color: #fff; }
.ev-cat .ev-check { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; flex: none; }
.ev-cat .ev-opt.is-on .ev-check { background: var(--ev-green); border-color: var(--ev-green); }
.ev-cat .ev-opt.is-on .ev-check::after { content: "✓"; color: var(--ev-ink); font-size: 12px; font-weight: 700; }
.ev-cat .ev-count { margin-left: auto; font-size: 12px; color: rgba(255,255,255,.3); }
.ev-cat .ev-buscar { align-self: start; }
.ev-cat .ev-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; text-decoration: none; border-radius: 8px;
  font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: .02em;
}
.ev-cat .ev-btn-green { background: var(--ev-green); color: var(--ev-ink); padding: 12px 24px; font-size: 22px; }
.ev-cat .ev-btn-green:hover { background: var(--ev-green-strong); color: #fff; }
.ev-cat .ev-btn-ghost { border: 1px solid var(--ev-line); color: rgba(255,255,255,.6); padding: 8px 16px; font-family: "Inter"; font-size: 13px; border-radius: 6px; background: none; margin-top: 12px; }

/* Resultados */
.ev-cat .ev-results { border-top: 1px solid var(--ev-line); padding: 48px 0; }
.ev-cat .ev-results-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.ev-cat .ev-results-head h3 { font-size: 32px; margin: 4px 0 0; }
.ev-cat .ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ev-cat .ev-card {
  display: flex; flex-direction: column; text-align: left; cursor: pointer;
  border: 1px solid var(--ev-line); border-radius: 15px; background: var(--ev-surface);
  overflow: hidden; transition: .25s; color: inherit; font: inherit;
}
.ev-cat .ev-card:hover { transform: translateY(-4px); border-color: rgba(97,191,26,.7); box-shadow: 0 18px 50px -12px rgba(97,191,26,.28); }
.ev-cat .ev-card-img { position: relative; aspect-ratio: 4/3; background: #05070f; display: grid; place-items: center; overflow: hidden; }
.ev-cat .ev-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.ev-cat .ev-ph { text-align: center; padding: 12px; }
.ev-cat .ev-ph .ev-ph-name { font-family: "Bebas Neue", Impact, sans-serif; font-size: 22px; color: #fff; }
.ev-cat .ev-ph .ev-ph-tag { font-size: 10px; letter-spacing: .2em; color: var(--ev-green); }
.ev-cat .ev-ph .ev-ph-bar { height: 3px; width: 60%; margin: 8px auto; background: var(--ev-green); }
.ev-cat .ev-badge { position: absolute; top: 12px; left: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ev-green); border: 1px solid rgba(97,191,26,.5); background: rgba(0,3,13,.7); padding: 4px 12px; border-radius: 99px; }
.ev-cat .ev-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.ev-cat .ev-card-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.45); }
.ev-cat .ev-card-name { font-family: "Bebas Neue", Impact, sans-serif; font-size: 28px; margin: 4px 0 0; }
.ev-cat .ev-card-sub { font-size: 14px; color: rgba(255,255,255,.6); margin: 8px 0 0; line-height: 1.35; }
.ev-cat .ev-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ev-cat .ev-chip { font-size: 11px; color: rgba(255,255,255,.7); border: 1px solid var(--ev-line); background: var(--ev-surface2); border-radius: 6px; padding: 3px 8px; }
.ev-cat .ev-more { margin-top: 18px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ev-green); }
.ev-cat .ev-empty { text-align: center; padding: 80px 0; border: 1px dashed var(--ev-line); border-radius: 15px; color: rgba(255,255,255,.5); }

/* Modal */
.ev-cat-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; }
.ev-cat-modal.is-open { display: flex; }
.ev-cat-modal .ev-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.ev-cat-modal .ev-panel {
  position: relative; z-index: 1; width: 100%; max-width: 760px; max-height: 92vh; overflow: auto;
  background: var(--ev-surface, #080b16); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; color: #fff;
  font-family: "Inter", system-ui, sans-serif;
}
.ev-cat-modal .ev-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 99px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,3,13,.8); color: rgba(255,255,255,.7); cursor: pointer; font-size: 18px; }
.ev-cat-modal .ev-mhead { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ev-cat-modal .ev-mimg { aspect-ratio: 1; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #05070f; display: grid; place-items: center; overflow: hidden; }
.ev-cat-modal .ev-mimg img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.ev-cat-modal .ev-mtitle { font-family: "Bebas Neue", Impact, sans-serif; font-size: 42px; margin: 8px 0 0; }
.ev-cat-modal .ev-msub { color: var(--ev-green, #61bf1a); text-transform: uppercase; font-size: 14px; font-weight: 600; margin: 8px 0 0; }
.ev-cat-modal .ev-pill { display: inline-block; background: var(--ev-green, #61bf1a); color: #0a0d18; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 12px; border-radius: 99px; }
.ev-cat-modal .ev-mbody { padding: 28px; }
.ev-cat-modal .ev-mbody h5 { color: var(--ev-green, #61bf1a); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 8px; }
.ev-cat-modal .ev-mbody p { color: rgba(255,255,255,.78); line-height: 1.6; }
.ev-cat-modal .ev-mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; }
.ev-cat-modal .ev-mbody ul { list-style: none; margin: 0; padding: 0; }
.ev-cat-modal .ev-mbody li { display: flex; gap: 10px; font-size: 14px; color: rgba(255,255,255,.8); margin-bottom: 8px; }
.ev-cat-modal .ev-mbody li::before { content: "✓"; color: var(--ev-green, #61bf1a); font-weight: 700; }
.ev-cat-modal .ev-mcta { display: flex; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; margin-top: 8px; }
.ev-cat-modal .ev-mcta a { flex: 1; text-align: center; padding: 14px; border-radius: 8px; font-family: "Bebas Neue", Impact, sans-serif; font-size: 24px; text-decoration: none; }
.ev-cat-modal .ev-mcta .ev-w { background: var(--ev-green-strong, #59b315); color: #fff; }
.ev-cat-modal .ev-mcta .ev-t { border: 1px solid rgba(97,191,26,.8); color: var(--ev-green, #61bf1a); }

/* Responsivo */
@media (max-width: 900px) {
  .ev-cat .ev-filters { grid-template-columns: 1fr; }
  .ev-cat .ev-grid { grid-template-columns: 1fr; }
  .ev-cat-modal .ev-mhead { grid-template-columns: 1fr; }
  .ev-cat-modal .ev-mgrid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .ev-cat .ev-grid { grid-template-columns: 1fr 1fr; }
}
