.catalog-page { padding-bottom: 100px; }
.catalog-intro { padding: 54px 24px 30px; }
.catalog-kicker { margin: 0 0 10px; color: #666; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.catalog-title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; border-bottom: 1px solid #2c2c2c; padding-bottom: 24px; }
.catalog-title-row h1 { margin: 0; font-size: clamp(42px, 6vw, 88px); line-height: .88; letter-spacing: -.07em; font-weight: 900; }
.catalog-title-row p { max-width: 430px; margin: 0; color: #777; text-align: right; font-size: 12px; line-height: 1.5; }
.catalog-workspace { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 38px; padding: 18px 24px 0; }
.catalog-sidebar { align-self: start; position: sticky; top: 18px; border-right: 1px solid #242424; padding: 12px 28px 20px 0; }
.filter-group { display: grid; gap: 8px; margin-bottom: 22px; }
.filter-group label { color: #777; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.filter-group input,
.filter-group select,
.catalog-toolbar select { width: 100%; min-height: 42px; border: 1px solid #303030; border-radius: 4px; background: #151515; color: #eee; padding: 0 11px; outline: none; }
.filter-group input:focus,
.filter-group select:focus,
.catalog-toolbar select:focus { border-color: #777; }
.clear-filters { width: 100%; min-height: 42px; border: 1px solid #3c3c3c; border-radius: 999px; background: transparent; color: #aaa; font-size: 10px; font-weight: 800; letter-spacing: .08em; cursor: pointer; }
.clear-filters:hover { border-color: #777; color: #fff; }
.catalog-results { min-width: 0; }
.catalog-toolbar { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #242424; margin-bottom: 22px; }
.catalog-result-count { font-size: 28px; font-weight: 850; }
.catalog-result-label { margin-left: 7px; color: #656565; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.catalog-toolbar select { width: auto; min-width: 170px; }
.plugin-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plugin-catalog-card { min-width: 0; background: #171717; border: 1px solid #202020; overflow: hidden; transition: border-color .18s ease, transform .18s ease; }
.plugin-catalog-card:hover { border-color: #3f3f3f; transform: translateY(-2px); }
.plugin-card-visual { height: 210px; display: grid; place-items: center; position: relative; overflow: hidden; background: #0d0d0d; }
.plugin-card-visual img { width: 100%; height: 100%; object-fit: contain; filter: brightness(.78); transition: transform .25s ease, filter .25s ease; }
.plugin-catalog-card:hover .plugin-card-visual img { transform: scale(1.025); filter: brightness(.93); }
.image-pending-badge { position: absolute; right: 10px; bottom: 10px; padding: 6px 8px; border-radius: 999px; background: rgba(10,10,10,.84); border: 1px solid #363636; color: #7c7c7c; font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.plugin-card-copy { padding: 17px 17px 15px; }
.plugin-card-eyebrow { color: #696969; font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.plugin-card-copy h2 { margin: 6px 0 5px; font-size: 22px; line-height: 1.05; letter-spacing: -.04em; }
.plugin-card-copy h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.plugin-card-meta { margin: 0; color: #8b8b8b; font-size: 11px; min-height: 16px; }
.plugin-card-description { margin: 14px 0 18px; color: #b0b0b0; font-size: 11px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: 68px; }
.plugin-card-footer { padding-top: 13px; border-top: 1px solid #282828; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #737373; font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.plugin-card-footer a { color: #eee; }
.catalog-empty { padding: 70px 20px; text-align: center; color: #666; }
.catalog-empty strong { color: #ddd; font-size: 18px; }
.catalog-empty p { margin: 8px 0 0; font-size: 12px; }
.main-nav a.is-current { color: #efefef; background: #1b1b1b; }

@media (max-width: 1180px) {
  .plugin-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .catalog-title-row { align-items: start; flex-direction: column; }
  .catalog-title-row p { text-align: left; }
  .catalog-workspace { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; border-right: 0; border-bottom: 1px solid #242424; padding: 0 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .filter-group { margin: 0; }
  .clear-filters { align-self: end; }
}
@media (max-width: 620px) {
  .catalog-intro { padding: 34px 16px 20px; }
  .catalog-title-row h1 { font-size: clamp(38px, 14vw, 58px); }
  .catalog-workspace { padding: 12px 16px 0; }
  .catalog-sidebar { grid-template-columns: 1fr; }
  .plugin-catalog-grid { grid-template-columns: 1fr; }
  .plugin-card-visual { height: 230px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; padding-bottom: 14px; }
  .catalog-toolbar select { width: 100%; }
}


/* ============================================================
   v1.3 — RESPONSIVE CATALOG
   ============================================================ */
.catalog-mobile-actions,
.catalog-sidebar-mobile-head,
.apply-mobile-filters { display: none; }

.plugin-catalog-card {
  border-radius: 3px;
}
.plugin-card-visual {
  border-bottom: 1px solid #202020;
}
.plugin-card-copy {
  display: flex;
  flex-direction: column;
}
.plugin-card-footer { margin-top: auto; }

.active-filter-chips {
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.active-filter-chips::-webkit-scrollbar { display: none; }
.active-filter-chip {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 0 10px;
  color: #b9b9b9;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .04em;
  background: #151515;
}
.active-filter-chip button {
  width: 20px;
  height: 20px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: #242424;
  color: #aaa;
  cursor: pointer;
}

@media (min-width: 1181px) {
  .plugin-catalog-card { min-height: 515px; }
}

@media (max-width: 900px) {
  .catalog-intro { padding-top: 40px; }
  .catalog-title-row h1 { max-width: 700px; }
  .catalog-workspace {
    display: block;
    padding-top: 0;
  }
  .catalog-mobile-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 58px;
    margin-bottom: 8px;
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(17,17,17,.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #252525;
  }
  .mobile-filter-button {
    flex: 0 0 auto;
    height: 38px;
    border: 1px solid #3b3b3b;
    border-radius: 999px;
    background: #181818;
    color: #eee;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    cursor: pointer;
  }
  .mobile-filter-button strong {
    min-width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #f0f0ed;
    color: #111;
    display: grid;
    place-items: center;
    font-size: 9px;
  }
  .catalog-sidebar {
    display: none;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 390px);
    z-index: 220;
    overflow-y: auto;
    padding: 18px 18px 28px;
    border: 0;
    border-left: 1px solid #333;
    background: #131313;
    box-shadow: -18px 0 60px rgba(0,0,0,.48);
  }
  .catalog-sidebar.is-open { display: block; }
  .catalog-sidebar::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(0,0,0,.62);
    pointer-events: none;
  }
  .catalog-sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    margin-bottom: 24px;
    border-bottom: 1px solid #2b2b2b;
  }
  .catalog-sidebar-mobile-head strong {
    font-size: 13px;
    letter-spacing: .06em;
  }
  .catalog-sidebar-mobile-head button {
    width: 40px;
    height: 40px;
    border: 1px solid #363636;
    border-radius: 50%;
    background: transparent;
    color: #eee;
    font-size: 26px;
    cursor: pointer;
  }
  .filter-group { margin-bottom: 18px; }
  .filter-group input,
  .filter-group select {
    min-height: 48px;
    font-size: 16px;
  }
  .clear-filters {
    min-height: 46px;
    margin-top: 6px;
  }
  .apply-mobile-filters {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 10px;
    border: 0;
    border-radius: 999px;
    background: #f2f2ef;
    color: #111;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    cursor: pointer;
  }
}

@media (max-width: 620px) {
  .catalog-page { padding-bottom: 70px; }
  .catalog-intro { padding: 28px 14px 18px; }
  .catalog-kicker { margin-bottom: 7px; font-size: 9px; }
  .catalog-title-row {
    gap: 12px;
    padding-bottom: 18px;
  }
  .catalog-title-row h1 {
    font-size: clamp(39px, 13.5vw, 56px);
    line-height: .9;
  }
  .catalog-title-row p {
    max-width: none;
    font-size: 10px;
    line-height: 1.45;
  }
  .catalog-workspace { padding: 0 14px; }
  .catalog-mobile-actions { margin-inline: -14px; padding: 8px 14px; }
  .catalog-toolbar {
    min-height: 62px;
    margin-bottom: 14px;
    padding: 0;
    flex-direction: row;
    align-items: center;
  }
  .catalog-toolbar select {
    width: 128px;
    min-width: 128px;
    min-height: 40px;
    font-size: 12px;
  }
  .catalog-result-count { font-size: 25px; }
  .catalog-result-label { font-size: 8px; }
  .plugin-catalog-grid { gap: 12px; }
  .plugin-catalog-card {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    min-height: 156px;
  }
  .plugin-card-visual {
    height: 100%;
    min-height: 156px;
    border-bottom: 0;
    border-right: 1px solid #202020;
  }
  .plugin-card-visual img {
    object-fit: contain;
    padding: 8px;
  }
  .image-pending-badge {
    right: 6px;
    bottom: 6px;
    max-width: calc(100% - 12px);
    font-size: 6px;
    padding: 4px 5px;
    white-space: normal;
    text-align: center;
  }
  .plugin-card-copy { padding: 13px 12px 11px; }
  .plugin-card-eyebrow { font-size: 7px; }
  .plugin-card-copy h2 {
    margin: 4px 0;
    font-size: 18px;
  }
  .plugin-card-meta { font-size: 9px; }
  .plugin-card-description {
    min-height: auto;
    margin: 9px 0 10px;
    font-size: 9.5px;
    line-height: 1.4;
    -webkit-line-clamp: 3;
  }
  .plugin-card-footer {
    padding-top: 9px;
    font-size: 7px;
  }
  .plugin-card-footer span { display: none; }
}

@media (max-width: 380px) {
  .plugin-catalog-card { grid-template-columns: 35% minmax(0, 1fr); }
  .plugin-card-copy h2 { font-size: 16px; }
  .plugin-card-description { -webkit-line-clamp: 2; }
}


@media (max-width: 900px) {
  body.catalog-filters-open { overflow: hidden; }
  body.catalog-filters-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 210;
    background: rgba(0,0,0,.62);
    backdrop-filter: blur(2px);
  }
  .catalog-sidebar { z-index: 220; }
  .catalog-sidebar::before { content: none; }
}
