/* ---------- Seções e cards ---------- */
.m-content { padding-top: 4px; padding-bottom: 32px; }

.m-content section { scroll-margin-top: 130px; }
.m-sec-title {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink-strong); margin: 32px 0 14px;
}
.m-sec-count { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--txt2); }
.m-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .m-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; } }

.m-item {
  display: flex; gap: 16px; width: 100%; text-align: left; color: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.m-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line2); }
.m-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-item strong { font-weight: 700; font-size: 15px; letter-spacing: -.01em; line-height: 1.35; color: var(--ink-strong); }
.m-item .d {
  color: var(--txt2); font-size: 13.5px; line-height: 1.5; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.m-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.m-item .p { font-size: 15px; font-weight: 700; color: var(--ink-strong); }
.m-item .p small { font-size: 12px; font-weight: 500; color: var(--txt2); margin-right: 3px; }
.m-add {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--brand-soft); color: var(--brand); font-size: 20px; font-weight: 500; line-height: 1;
  transition: background .15s, color .15s;
}
.m-item:hover .m-add { background: var(--brand); color: #fff; }
.m-item img { width: 104px; height: 104px; border-radius: 12px; object-fit: cover; flex: none; background: var(--soft-2); align-self: center; }
@media (min-width: 768px) { .m-item img { width: 116px; height: 116px; } }

/* Destaques */
.m-feat { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.m-feat::-webkit-scrollbar { display: none; }
.m-feat-card {
  flex: none; width: 210px; scroll-snap-align: start; text-align: left; padding: 0; color: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.m-feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.m-feat-card img, .m-feat-card .noimg { width: 100%; height: 150px; object-fit: cover; display: block; background: var(--soft-2); }
.m-feat-info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; color: var(--ink-strong); }
.m-feat-info strong { font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.m-feat-info .d { display: none; color: var(--txt2); font-size: 13.5px; line-height: 1.5; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.m-feat-info .m-item-foot { width: 100%; margin-top: auto; padding-top: 8px; }
.m-feat-card .p { font-weight: 700; font-size: 15px; }
.m-feat-card:hover .m-add { background: var(--brand); color: #fff; }
.m-feat-card .m-tag { margin-bottom: 2px; }

/* Poucos destaques: cards horizontais largos (foto + descrição), preenchendo a linha */
.m-feat.few { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; overflow: visible; padding: 0; }
.m-feat.few .m-feat-card { width: auto; display: flex; align-items: stretch; }
.m-feat.few .m-feat-card img, .m-feat.few .m-feat-card .noimg { width: 42%; max-width: 260px; height: auto; min-height: 170px; flex: none; }
.m-feat.few .m-feat-info { flex: 1; min-width: 0; padding: 18px 20px; gap: 6px; }
.m-feat.few .m-feat-info strong { font-size: 17px; }
.m-feat.few .m-feat-info .d { display: -webkit-box; }
@media (max-width: 560px) {
  .m-feat.few .m-feat-card img, .m-feat.few .m-feat-card .noimg { width: 38%; min-height: 150px; }
  .m-feat.few .m-feat-info { padding: 14px; }
  .m-feat.few .m-feat-info strong { font-size: 15px; }
}
.m-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 3px 9px; margin-bottom: 8px;
}
.m-empty { color: var(--txt2); padding: 56px 0; text-align: center; }
