/* ===== Product grid (Tiqets-style cards) ===== */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-align: left; cursor: pointer; padding: 0; display: flex; flex-direction: column;
  transition: box-shadow 0.15s var(--ease), transform 0.1s var(--ease); font-family: var(--font);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-hero {
  height: 108px; display: flex; align-items: center; justify-content: center; position: relative;
}
.card-hero-icon { font-size: 40px; }
.card-rating {
  position: absolute; bottom: 8px; right: 10px; background: rgba(255,255,255,0.92); color: var(--ink);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
}

.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.card-tagline { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; flex: 1; }
.card-footer-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.card-price { font-weight: 700; font-size: 13px; color: var(--ink); }
.card-edited-by { font-size: 10.5px; color: var(--text-faint); margin-top: 2px; }

.add-card {
  align-items: center; justify-content: center; gap: 8px; color: var(--text-muted);
  border: 1.5px dashed var(--border-strong); background: var(--card-sunken); min-height: 200px; font-weight: 600; font-size: 13px;
}
.add-card:hover { border-color: var(--primary); color: var(--primary); }
.add-icon { font-size: 26px; font-weight: 400; line-height: 1; }

/* ===== Pricing signals ===== */
.signal-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.signal-row:last-child { border-bottom: none; }

.citation-note { font-size: 11px; color: var(--text-faint); line-height: 1.5; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }

/* ===== Editor modal ===== */
#editor-modal {
  position: fixed; inset: 0; background: rgba(15,23,42,0.55); z-index: 900;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
#editor-modal.hidden { display: none; }

.editor-panel {
  background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 980px; max-height: 90vh; overflow-y: auto; padding: 0;
  animation: slideUpFade 0.25s var(--ease);
}
.editor-header {
  display: flex; justify-content: space-between; align-items: center; padding: 18px 24px;
  border-bottom: 1px solid var(--border); background: var(--card); position: sticky; top: 0; z-index: 10;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.editor-header h2 { font-size: 16px; }
.editor-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); line-height: 1; padding: 4px; }
.editor-close:hover { color: var(--ink); }

.editor-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.editor-form-col { padding: 22px 24px; border-right: 1px solid var(--border); }
.editor-preview-col { padding: 22px 24px; background: var(--card-sunken); }
@media (max-width: 800px) { .editor-body { grid-template-columns: 1fr; } .editor-form-col { border-right: none; border-bottom: 1px solid var(--border); } }

.field-group { margin-bottom: 14px; }
.field-row-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }

.editor-section { padding: 18px 24px; border-top: 1px solid var(--border); }
.editor-section h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; color: var(--text-muted); }

.suggestion-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.suggestion-price { font-weight: 700; font-size: 15px; color: var(--action); }

/* ===== Tiqets-style mini preview ===== */
.tiq-preview { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.tiq-hero { height: 140px; display: flex; align-items: center; justify-content: center; }
.tiq-hero-icon { font-size: 52px; }
.tiq-gallery-dots { display: flex; gap: 4px; justify-content: center; padding: 8px 0; background: #f1f5f9; }
.tiq-gallery-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); }
.tiq-gallery-dots span:first-child { background: var(--primary); }
.tiq-body { padding: 18px; }
.tiq-rating { font-size: 12px; font-weight: 700; color: var(--warning); margin-bottom: 6px; }
.tiq-title { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.tiq-tagline { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; margin-bottom: 14px; }
.tiq-price-box { display: flex; align-items: baseline; gap: 6px; background: var(--card-sunken); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; }
.tiq-price { font-size: 18px; font-weight: 800; color: var(--ink); }
.tiq-price-sub { font-size: 11px; color: var(--text-muted); }
.tiq-section { margin-bottom: 14px; }
.tiq-section-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 6px; }
.tiq-list { padding-left: 18px; font-size: 12.5px; color: var(--text); line-height: 1.6; }
.tiq-desc { font-size: 12.5px; color: var(--text); line-height: 1.6; }

/* ===== Activity feed ===== */
.activity-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.activity-row:last-child { border-bottom: none; }
.activity-avatar { font-size: 18px; background: var(--card-sunken); border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
