/* ==========================================================================
   ÁREA DO FORNECEDOR — login, cadastro, perfil da empresa, senha
   ========================================================================== */

/* Cartão central (login/cadastro/senha) */
.hub-auth-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 2rem 1.75rem;
}

/* Theme My Login (.tml) no padrão do HUB */
.hub-auth-card .tml-alerts { margin-bottom: 1rem; }
.hub-auth-card .tml-alerts ul { list-style: none; margin: 0; padding: 0; }
.hub-auth-card .tml-error,
.hub-auth-card .tml-message {
  border-radius: 12px;
  padding: .75rem 1rem;
  font-size: .9rem;
  margin-bottom: .5rem;
}
.hub-auth-card .tml-error { background: #fdecec; color: #b42318; border: 1px solid #f9c6c6; }
.hub-auth-card .tml-message { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #b9e2ff; }

.hub-auth-card .tml-field-wrap { margin-bottom: 1rem; }
.hub-auth-card .tml-label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .35rem;
}
.hub-auth-card .tml-field {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: .7rem .9rem;
  font-size: .95rem;
  color: var(--text-dark);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.hub-auth-card .tml-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(0, 153, 255, .18);
}
.hub-auth-card .tml-pwd { position: relative; }
.hub-auth-card .tml-pwd .tml-field { padding-right: 2.8rem; }
.hub-auth-card .tml-toggle-pwd {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--text-muted); padding: .3rem; cursor: pointer;
}
.hub-auth-card .tml-rememberme-wrap { display: flex; align-items: center; gap: .5rem; }
.hub-auth-card .tml-rememberme-wrap .tml-label { margin: 0; font-weight: 600; }
.hub-auth-card .tml-checkbox { width: 1rem; height: 1rem; accent-color: var(--primary); }
.hub-auth-card .tml-button {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 20px;
  font-weight: 700;
  padding: .75rem 1rem;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .2s;
}
.hub-auth-card .tml-button:hover { background: var(--primary-hover); }
.hub-auth-card .tml-links {
  list-style: none; margin: 1.25rem 0 0; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-size: .88rem;
}
.hub-auth-card .tml-links a { color: var(--primary-dark); font-weight: 600; text-decoration: none; }
.hub-auth-card .tml-links a:hover { text-decoration: underline; }
.hub-auth-card .tml-indicator-hint,
.hub-auth-card .tml-description { font-size: .8rem; color: var(--text-muted); }
.hub-auth-card .tml-field-wrap .dashicons { font-family: dashicons; }

/* Campo-isca anti-spam (fora da tela) */
.hub-hp,
.hub-auth-card .tml-hub_website-wrap { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; opacity: 0; }

/* Formulários (perfil / senha) */
.hub-form .form-label { font-size: .85rem; font-weight: 700; color: var(--text-dark); margin-bottom: .35rem; }
.hub-form .form-control,
.hub-form .form-select {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: .7rem .9rem;
  font-size: .95rem;
  color: var(--text-dark);
}
.hub-form .form-control:focus,
.hub-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(0, 153, 255, .18);
}
.hub-form textarea.form-control { resize: vertical; }
.hub-form input[type="file"].form-control { padding: .55rem .75rem; }

.hub-form-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.hub-form-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.hub-form-card__title i { color: var(--primary); }

/* Categorias */
.hub-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: .5rem;
  max-height: 340px;
  overflow: auto;
  padding: .25rem;
}
.hub-cat-check { display: flex; align-items: center; gap: .55rem; cursor: pointer; }
.hub-cat-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--primary); flex: 0 0 auto; }
.hub-cat-check span {
  font-size: .88rem; font-weight: 600; color: var(--text-dark);
  background: var(--bg-subtle); border: 1px solid var(--border-color);
  border-radius: 999px; padding: .3rem .75rem; width: 100%;
  transition: all .15s;
}
.hub-cat-check input:checked + span { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }

/* Imagens */
.hub-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .75rem; }
.hub-img-tile { position: relative; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; background: var(--bg-subtle); }
.hub-img-tile img { display: block; width: 100%; height: 110px; object-fit: cover; }
.hub-img-tile__remove {
  display: flex; align-items: center; gap: .35rem; justify-content: center;
  font-size: .75rem; font-weight: 700; color: #b42318; padding: .35rem; background: #fff; cursor: pointer;
}
.hub-img-tile:has(input:checked) img { opacity: .35; filter: grayscale(1); }
.hub-img-tile:has(input:checked) { border-color: #b42318; }

/* Seja fornecedor: passos */
.hub-steps li { display: flex; align-items: center; gap: .75rem; font-weight: 600; color: var(--text-dark); }
.hub-steps li span {
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}

/* Cabeçalho: acesso do usuário */
.hub-account { position: relative; }
.hub-account__btn { display: inline-flex; align-items: center; gap: .4rem; }
.hub-account .dropdown-menu { border-radius: 14px; border: 1px solid var(--border-color); box-shadow: var(--shadow-md); padding: .5rem; min-width: 210px; }
.hub-account .dropdown-item { border-radius: 10px; font-weight: 600; font-size: .88rem; padding: .5rem .75rem; }
.hub-account .dropdown-item i { color: var(--primary); margin-right: .5rem; }
.hub-login-link { font-weight: 700; font-size: .88rem; color: var(--text-dark); text-decoration: none; white-space: nowrap; }
.hub-login-link:hover { color: var(--primary); }

/* Contact Form 7 (Fale conosco) */
.hub-cf7 label { font-size: .85rem; font-weight: 700; color: var(--text-dark); margin-bottom: .35rem; display: block; }
.hub-cf7 .wpcf7-form-control-wrap { display: block; }
.hub-cf7 .form-control, .hub-cf7 .form-select {
  width: 100%; border: 1px solid var(--border-color); border-radius: 12px; padding: .7rem .9rem; font-size: .95rem; color: var(--text-dark); background: #fff;
}
.hub-cf7 .form-control:focus, .hub-cf7 .form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(0,153,255,.18); }
.hub-cf7 .wpcf7-not-valid-tip { color: #b42318; font-size: .8rem; margin-top: .25rem; }
.hub-cf7 .wpcf7-acceptance label { font-weight: 500; display: flex; gap: .5rem; align-items: flex-start; }
.hub-cf7 .wpcf7-acceptance input { margin-top: .25rem; accent-color: var(--primary); }
.hub-cf7-card .wpcf7-response-output { border-radius: 12px; padding: .75rem 1rem; font-size: .9rem; margin: 1rem 0 0; }
.hub-cf7-card .wpcf7 form.sent .wpcf7-response-output { border-color: #1a7f37; background: #eaf7ee; color: #1a7f37; }
.hub-cf7-card .wpcf7 form.invalid .wpcf7-response-output,
.hub-cf7-card .wpcf7 form.failed .wpcf7-response-output { border-color: #b42318; background: #fdecec; color: #b42318; }
.hub-cf7-card .wpcf7-spinner { margin: 0 0 0 .75rem; }

/* Índice de tags */
.hub-tag-cloud { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.hub-tag-pill--count { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.hub-tag-pill--count small { background: var(--primary-light); color: var(--primary-dark); border-radius: 999px; padding: .05rem .5rem; font-weight: 700; font-size: .72rem; }
