/* Havara Catalog feature: standalone public catalog and admin surface. */
:root {
  --hc-ink: #172033;
  --hc-muted: #667085;
  --hc-line: #e6eaf0;
  --hc-bg: #f7f9fc;
  --hc-orange: #f97316;
  --hc-orange-dark: #c2410c;
  --hc-navy: #0f172a;
}
.hc-catalog-fab {
  position: fixed; z-index: 50; right: 18px; bottom: 86px;
  display: inline-flex; align-items: center; gap: 8px; border: 0;
  border-radius: 999px; padding: 12px 17px; background: var(--hc-orange);
  color: #fff; font: 700 13px/1.1 Arial, sans-serif; text-decoration: none;
  box-shadow: 0 12px 28px rgba(15,23,42,.22); transition: transform .18s ease, background .18s ease;
}
.hc-catalog-fab:hover { transform: translateY(-2px); background: var(--hc-orange-dark); }
.hc-catalog-page { min-height: 100vh; background: var(--hc-bg); color: var(--hc-ink); font-family: Arial, sans-serif; }
.hc-catalog-shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; }
.hc-catalog-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.hc-brand { color: var(--hc-navy); font-weight: 900; letter-spacing: -.04em; font-size: 22px; text-decoration: none; }
.hc-back { color: var(--hc-muted); text-decoration: none; font-size: 14px; }
.hc-hero { border-radius: 28px; padding: clamp(26px, 5vw, 58px); background: linear-gradient(130deg, #0f172a 0%, #172554 52%, #f97316 160%); color: #fff; overflow: hidden; position: relative; }
.hc-hero:after { content: ''; position: absolute; width: 220px; height: 220px; right: -70px; top: -70px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.05), 0 0 0 56px rgba(255,255,255,.035); }
.hc-eyebrow { color: #fdba74; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 800; }
.hc-hero h1 { font-size: clamp(30px, 5vw, 56px); line-height: .98; max-width: 650px; margin: 14px 0; letter-spacing: -.06em; }
.hc-hero p { max-width: 620px; color: #dbeafe; line-height: 1.7; margin: 0; }
.hc-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 18px; }
.hc-tools input, .hc-tools select { min-height: 46px; border: 1px solid var(--hc-line); border-radius: 12px; padding: 0 14px; background: #fff; color: var(--hc-ink); font: 500 14px Arial, sans-serif; }
.hc-tools input { flex: 1 1 260px; }
.hc-tools select { flex: 0 1 180px; }
.hc-status { min-height: 22px; color: var(--hc-muted); font-size: 13px; }
.hc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hc-card { background: #fff; border: 1px solid var(--hc-line); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 28px rgba(15,23,42,.05); display: flex; flex-direction: column; }
.hc-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #e5e7eb; }
.hc-card-body { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.hc-badge { align-self: flex-start; border-radius: 999px; background: #fff7ed; color: #c2410c; padding: 5px 9px; font-size: 11px; font-weight: 800; }
.hc-card h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.hc-card p { margin: 0; color: var(--hc-muted); line-height: 1.6; font-size: 14px; }
.hc-card .hc-cta { margin-top: auto; padding-top: 9px; color: var(--hc-orange-dark); font-weight: 800; text-decoration: none; font-size: 13px; }
.hc-empty { border: 1px dashed #cbd5e1; background: #fff; border-radius: 18px; padding: 34px; text-align: center; color: var(--hc-muted); }
.hc-admin-page { background: var(--hc-bg); min-height: 100vh; color: var(--hc-ink); font-family: Arial, sans-serif; }
.hc-admin-shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 60px; }
.hc-admin-panel { background: #fff; border: 1px solid var(--hc-line); border-radius: 18px; padding: 22px; margin-top: 18px; box-shadow: 0 10px 26px rgba(15,23,42,.05); }
.hc-admin-form { display: grid; gap: 12px; }
.hc-admin-form[hidden], #itemsPanel[hidden] { display: none !important; }
.hc-admin-form label { font-size: 13px; font-weight: 700; color: var(--hc-muted); }
.hc-admin-form input, .hc-admin-form textarea, .hc-admin-form select { width: 100%; box-sizing: border-box; border: 1px solid #d8dee8; border-radius: 10px; padding: 11px 12px; font: inherit; }
.hc-admin-form textarea { min-height: 100px; resize: vertical; }
.hc-admin-btn { border: 0; border-radius: 10px; padding: 11px 15px; background: var(--hc-navy); color: #fff; cursor: pointer; font-weight: 800; }
.hc-admin-btn.orange { background: var(--hc-orange); }
.hc-admin-btn.danger { background: #b42318; }
.hc-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hc-admin-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: center; border-top: 1px solid var(--hc-line); padding: 12px 0; }
.hc-admin-item img { width: 90px; height: 68px; object-fit: cover; border-radius: 8px; background: #e5e7eb; }
.hc-admin-item strong { display: block; margin-bottom: 4px; }
.hc-admin-item small { color: var(--hc-muted); }
@media (max-width: 760px) { .hc-grid { grid-template-columns: 1fr; } .hc-admin-grid { grid-template-columns: 1fr; } .hc-admin-item { grid-template-columns: 68px 1fr; } .hc-admin-item .danger { grid-column: 2; justify-self: start; } .hc-admin-item img { width: 68px; height: 54px; } }
