/* Shared catalog styles. All selectors stay inside user catalog pages. */
.catalog-page {
  padding: 52px 0 64px;
  background: var(--bg-primary);
}
.catalog-page .catalog-shell { max-width: 1120px; margin: 0 auto; }
.catalog-page .catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.catalog-page .catalog-heading h1 { margin: 0; color: var(--text-primary); font-size: clamp(1.8rem, 3vw, 2.35rem); font-weight: 800; }
.catalog-page .catalog-heading p { margin: 6px 0 0; color: var(--text-secondary); }
.catalog-page .catalog-filter { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.catalog-page .catalog-input, .catalog-page .catalog-select { min-height: 42px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 12px; color: #0f172a; background: #fff; }
.catalog-page .catalog-input { min-width: 190px; }
.catalog-page .catalog-button, .catalog-page .catalog-action { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border-radius: 10px; padding: 9px 13px; text-decoration: none; font-weight: 700; }
.catalog-page .catalog-button { color: #0f172a; background: #f8fbff; border: 1px solid #3b82f6; }
.catalog-page .catalog-action-download { color: #065f46; background: #ecfdf5; border: 1px solid #10b981; }
.catalog-page .catalog-action-detail { color: #1e293b; background: #fff; border: 1px solid #cbd5e1; }
.catalog-page .catalog-action-buy { color: #1d4ed8; background: #eff6ff; border: 1px solid #3b82f6; }
.catalog-page .catalog-button:hover, .catalog-page .catalog-action:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1); }
.catalog-page .catalog-category-panel { padding: 17px; margin: 0 0 22px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04); }
.catalog-page .catalog-category-title { margin: 0 0 12px; color: var(--text-primary); font-weight: 800; }
.catalog-page .catalog-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.catalog-page .catalog-chip { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 7px 10px; border: 1px solid #bae6fd; border-radius: 14px; color: #0f172a; background: #fff; font-size: 0.9rem; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; }
.catalog-page .catalog-chip:hover, .catalog-page .catalog-chip.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, #22d3ee, #3b82f6); text-decoration: none; }
.catalog-page .catalog-category-toggle { display: none; }
.catalog-page .catalog-category-toggle[hidden] { display: none !important; }
.catalog-page .catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.catalog-page .catalog-card { position: relative; display: flex; flex-direction: column; min-height: 232px; padding: 18px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: 0 4px 18px rgba(15, 23, 42, 0.045); }
.catalog-page .catalog-no { position: absolute; top: 15px; right: 16px; color: #94a3b8; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; }
.catalog-page .catalog-card h2 { height: 25.5px; margin: 1px 58px 9px 0; color: #0f172a; font-size: 1.04rem; font-weight: 800; line-height: 1; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catalog-page .catalog-card h2.title-long { font-size: 0.94rem; }
.catalog-page .catalog-card h2.title-very-long { font-size: 0.84rem; }
.catalog-page .catalog-description { flex: 1; margin: 0; color: #64748b; font-size: 0.91rem; line-height: 1.65; overflow-wrap: anywhere; }
.catalog-page .catalog-description:empty { display: none; }
.catalog-page .catalog-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; color: #64748b; font-size: 0.82rem; }
.catalog-page .catalog-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.catalog-page .catalog-actions .catalog-action { flex: 1 1 90px; }
.catalog-page .catalog-empty { padding: 46px 20px; border: 1px dashed #cbd5e1; border-radius: 16px; color: #64748b; background: #fff; text-align: center; }
.catalog-page .catalog-unavailable { margin-top: 10px; color: #b45309; font-size: .8rem; font-weight: 700; }
.catalog-page .catalog-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.catalog-page .catalog-pagination a, .catalog-page .catalog-pagination span { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 10px; color: #334155; background: #fff; font-weight: 700; text-decoration: none; }
.catalog-page .catalog-pagination a.active { color: #fff; border-color: #2563eb; background: #2563eb; }
.catalog-page .catalog-pagination a.disabled { pointer-events: none; color: #94a3b8; background: #f8fafc; }
.catalog-page .catalog-pagination .catalog-ellipsis { border-color: transparent; background: transparent; }
.catalog-page .catalog-summary { margin-top: 13px; color: #64748b; text-align: center; }
.catalog-page .catalog-jump { display: inline-flex; align-items: center; gap: 7px; margin-left: 8px; }
.catalog-page .catalog-jump input { width: 68px; min-height: 38px; border: 1px solid #cbd5e1; border-radius: 9px; text-align: center; }
@media (max-width: 991px) { .catalog-page .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .catalog-page .catalog-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) { .catalog-page { padding: 32px 0 45px; } .catalog-page .catalog-heading { display: block; } .catalog-page .catalog-filter { justify-content: flex-start; margin-top: 16px; } .catalog-page .catalog-input { width: 100%; } .catalog-page .catalog-grid { grid-template-columns: 1fr; } .catalog-page .catalog-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } .catalog-page .catalog-chips.catalog-collapsible.catalog-collapsed .catalog-chip:nth-child(n + 5) { display: none; } .catalog-page .catalog-category-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; margin-top: 12px; padding: 7px 14px; border: 1px solid #bae6fd; border-radius: 10px; color: #0369a1; background: #f0f9ff; font-weight: 700; cursor: pointer; } .catalog-page .catalog-card { min-height: 214px; } .catalog-page .catalog-card h2 { height: 22.8px; font-size: 1rem; } }
