/*
 * FormVault Popular Categories — [fv_pop_cats]
 * Horizontal scrollable category card row with arrows.
 */

*, *::before, *::after { box-sizing: border-box; }

.fv-pop-cats {
  margin-bottom: 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.fv-pop-cats__header {
  text-align: center;
  margin-bottom: 24px;
}

.fv-pop-cats__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #2563eb;
  margin-bottom: 8px;
}

.fv-pop-cats__title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.fv-pop-cats__desc {
  font-size: 14px;
  color: #64748b;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Row: arrows + track ──────────────────────────────────────────────────── */
.fv-pop-cats__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Scrollable track ─────────────────────────────────────────────────────── */
.fv-pop-cats__track {
  flex: 1;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 2px 10px;
  -webkit-overflow-scrolling: touch;
}

.fv-pop-cats__track::-webkit-scrollbar { display: none; }

/* ── Category card ────────────────────────────────────────────────────────── */
.fv-pop-cats__card {
  flex: 0 0 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px 14px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none !important;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  gap: 10px;
  cursor: pointer;
}

.fv-pop-cats__card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12);
  transform: translateY(-3px);
}

/* ── Icon ─────────────────────────────────────────────────────────────────── */
.fv-pop-cats__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fv-pop-cats__icon svg { width: 26px; height: 26px; }

.fv-pop-cats__icon--blue   { background: #eff6ff; color: #2563eb; }
.fv-pop-cats__icon--green  { background: #f0fdf4; color: #16a34a; }
.fv-pop-cats__icon--purple { background: #f5f3ff; color: #7c3aed; }
.fv-pop-cats__icon--orange { background: #fff7ed; color: #ea580c; }
.fv-pop-cats__icon--teal   { background: #f0fdfa; color: #0d9488; }
.fv-pop-cats__icon--rose   { background: #fff1f2; color: #e11d48; }
.fv-pop-cats__icon--slate  { background: #f1f5f9; color: #475569; }

/* ── Name ─────────────────────────────────────────────────────────────────── */
.fv-pop-cats__name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
}

.fv-pop-cats__card--more .fv-pop-cats__name {
  color: #2563eb;
}

/* ── Arrow buttons ────────────────────────────────────────────────────────── */
.fv-pop-cats__arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
  padding: 0;
  line-height: 1;
  font-size: 0;
}

.fv-pop-cats__arrow svg { width: 18px; height: 18px; }

.fv-pop-cats__arrow:hover {
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(37,99,235,0.15);
}

.fv-pop-cats__arrow:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .fv-pop-cats__arrow { display: none; }

  .fv-pop-cats__title { font-size: 22px; }

  .fv-pop-cats__card { flex: 0 0 120px; }
}
