body {
  background: #f6f8fc;
  color: #1f2937;
}

.home-learning {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 0 16px 24px;
}

.hero {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid #d9e1ec;
}

.hero h1 {
  font-size: 1.6rem;
  margin: 0 0 8px;
  color: #0f172a;
}

.hero p {
  margin: 0;
  color: #475569;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.button_secondary {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #ffffff;
  color: #334155;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

.button_link {
  color: #4f9cff;
  text-decoration: none;
  font-weight: 600;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: #0f172a;
}

.section-header p {
  margin: 0;
  color: #64748b;
}

.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mini-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  background: #ffffff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  border: 1px solid #d9e1ec;
}

.mini-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  font-weight: 600;
  color: #334155;
}

.mini-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(79, 156, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.info-card,
.material-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #dde5ef;
}

.info-card a,
.material-card button {
  color: #4f9cff;
  text-decoration: none;
  font-weight: 600;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.material-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.material-card ul {
  margin: 0;
  padding-left: 18px;
  color: #475569;
}

.level {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(79, 156, 255, 0.15);
  color: #8abaff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: #334155;
}

.chip.is-active {
  border-color: rgba(94, 165, 255, 0.9);
  background: rgba(59, 130, 246, 0.18);
  color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(47, 126, 247, 0.2);
}

.filter-button.is-selected {
  box-shadow: 0 0 0 3px rgba(47, 126, 247, 0.25);
}

.catalog-context {
  margin-top: 8px;
  color: #1d4ed8;
  font-weight: 600;
}

.catalog-cta {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #64748b;
}

.catalog-cta a {
  color: #8abaff;
  font-weight: 600;
  text-decoration: none;
}

.catalog-cta a:hover {
  text-decoration: underline;
}

.subtle-label {
  margin: 8px 0 12px;
  color: #64748b;
  font-size: 0.85rem;
}

.filter-form .material-buttons,
.filter-form .rolos-buttons {
  margin-top: 6px;
  gap: 12px;
}

.filter-form .button_add {
  background-color: #366fc2;
  box-shadow: none;
}

.catalog-list h3 {
  margin: 0 0 12px;
  color: #0f172a;
}

.catalog-cards {
  display: grid;
  gap: 16px;
}

.catalog-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  border: 1px solid #dde5ef;
}

.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  color: #64748b;
  font-size: 0.9rem;
}

.catalog-material {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.catalog-weight {
  color: #64748b;
  font-size: 0.85rem;
}

.catalog-color {
  margin: 6px 0 8px;
  color: #475569;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 10px;
}

.badge {
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(79, 156, 255, 0.25), rgba(79, 156, 255, 0.08));
  color: #1d4ed8;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px rgba(148, 197, 255, 0.35);
}

.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.catalog-price {
  font-weight: 700;
  color: #0f172a;
}

.empty-state {
  color: #64748b;
}

@media (min-width: 1024px) {
  .catalog-cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
  }

  .catalog-card {
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 12px;
    align-items: start;
  }

  .catalog-media img {
    width: 72px;
    height: 72px;
  }

  .badge-row {
    margin: 0 0 8px;
  }

  .catalog-color {
    margin: 4px 0 6px;
    line-height: 1.2;
  }

  .catalog-actions {
    gap: 8px;
  }

  .catalog-actions .button_add {
    padding: 8px 14px;
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .catalog-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .catalog-media img {
    width: 100%;
    height: auto;
    max-width: 160px;
  }
}


.guide-callout p {
  margin: 0 0 10px;
  color: #475569;
}

.guide-callout a {
  color: #2f7ef7;
  text-decoration: none;
  font-weight: 600;
}
