/* ============================================================
   SINCROTEL — Loja: estilos específicos
   Complementa ../assets/css/style.css
   Tokens herdados: --brand, --accent, --bg, --surface, --text-*,
   --radius, --shadow, fontes Syne (headings) + DM Sans (body)
   ============================================================ */

/* ── Variáveis locais da loja ─────────────────────────────── */
:root {
  --loja-sidebar-w: 260px;
  --header-h: 68px;
  --card-radius: 12px;
  --badge-bg: #e8efff;
  --badge-color: #0057FF;
  --badge-unavail-bg: #f1f3f5;
  --badge-unavail-color: #868e96;
  --status-pago: #2f9e44;
  --status-aguardando: #e67700;
  --status-cancelado: #868e96;
  --status-enviado: #1971c2;
  --status-entregue: #2b8a3e;
  --transition: 0.18s ease;
}

/* ── Reset mínimo ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ════════════════════════════════════════════════════════════
   HEADER DA LOJA
   ════════════════════════════════════════════════════════════ */
.loja-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.loja-header .logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #0057FF;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Busca */
.loja-header .busca {
  flex: 1;
  display: flex;
  max-width: 480px;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.loja-header .busca:focus-within { border-color: #0057FF; }

.loja-header .busca input {
  flex: 1;
  border: none;
  outline: none;
  padding: .5rem .75rem;
  font-size: .9375rem;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
}
.loja-header .busca button {
  padding: .5rem .9rem;
  background: #0057FF;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: .875rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  transition: background var(--transition);
}
.loja-header .busca button:hover { background: #0046cc; }

/* Nav ações */
.loja-header .header-nav {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.btn-carrinho {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .45rem .85rem;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: #343a40;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.btn-carrinho:hover { border-color: #0057FF; color: #0057FF; }

#badge-carrinho {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0057FF;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 4px;
}

#btn-conta {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .45rem .85rem;
  background: #0057FF;
  color: #fff;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
#btn-conta:hover { background: #0046cc; }

/* Mobile header */
@media (max-width: 600px) {
  .loja-header { padding: 0 1rem; gap: .5rem; }
  .loja-header .logo { font-size: 1rem; }
  .loja-header .busca { display: none; }
}

/* ════════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL DA LOJA
   ════════════════════════════════════════════════════════════ */
.loja-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.loja-page-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1.5rem;
}

/* ════════════════════════════════════════════════════════════
   FILTROS POR CATEGORIA
   ════════════════════════════════════════════════════════════ */
.filtros-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}

.filtro-btn {
  padding: .4rem .9rem;
  border: 1.5px solid #dee2e6;
  border-radius: 999px;
  background: #fff;
  font-size: .875rem;
  font-weight: 500;
  color: #495057;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
}
.filtro-btn:hover { border-color: #0057FF; color: #0057FF; }
.filtro-btn.ativo {
  background: #0057FF;
  border-color: #0057FF;
  color: #fff;
}

/* ════════════════════════════════════════════════════════════
   GRADE DE PRODUTOS
   ════════════════════════════════════════════════════════════ */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 500px) {
  .produtos-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
}

/* ── Card de produto ──────────────────────────────────────── */
.produto-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
}
.produto-card:hover {
  box-shadow: 0 6px 24px rgba(0,87,255,.1);
  transform: translateY(-2px);
}

.produto-card__img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: #f8f9fb;
  padding: .75rem;
}
.produto-card__img-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 2.5rem;
}

.produto-card__body {
  padding: .875rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .25rem;
}

.produto-card__badge {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--badge-color);
  background: var(--badge-bg);
  border-radius: 4px;
  padding: 2px 6px;
  align-self: flex-start;
}
.produto-card__badge--indisponivel {
  color: var(--badge-unavail-color);
  background: var(--badge-unavail-bg);
}

.produto-card__nome {
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.4;
  color: #212529;
  margin: .25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.produto-card__preco {
  font-family: 'Syne', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0057FF;
  margin-top: auto;
}

.produto-card__btn {
  margin-top: .75rem;
  padding: .5rem;
  background: #0057FF;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background var(--transition);
  width: 100%;
}
.produto-card__btn:hover { background: #0046cc; }
.produto-card__btn:disabled {
  background: #adb5bd;
  cursor: not-allowed;
}

/* ── Paginação ────────────────────────────────────────────── */
.paginacao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
}

.paginacao button {
  padding: .45rem .75rem;
  border: 1.5px solid #dee2e6;
  border-radius: 6px;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  cursor: pointer;
  color: #343a40;
  transition: all var(--transition);
}
.paginacao button.ativo {
  background: #0057FF;
  border-color: #0057FF;
  color: #fff;
}
.paginacao button:hover:not(.ativo):not(:disabled) {
  border-color: #0057FF;
  color: #0057FF;
}
.paginacao button:disabled { opacity: .4; cursor: not-allowed; }

/* ── Estado vazio/carregando ──────────────────────────────── */
.estado-vazio {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem 1rem;
  color: #868e96;
}
.estado-vazio svg { width: 48px; height: 48px; margin-bottom: 1rem; opacity: .4; }
.estado-vazio p { font-size: 1rem; }

.skeleton {
  background: linear-gradient(90deg, #f1f3f5 25%, #e9ecef 50%, #f1f3f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ════════════════════════════════════════════════════════════
   PÁGINA DE PRODUTO INDIVIDUAL
   ════════════════════════════════════════════════════════════ */
.produto-detalhe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .produto-detalhe { grid-template-columns: 1fr; gap: 1.5rem; }
}

.produto-detalhe__galeria {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.produto-detalhe__img-principal {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: #f8f9fb;
  border-radius: var(--card-radius);
  padding: 1.5rem;
  border: 1px solid #e9ecef;
}
.produto-detalhe__thumbs {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}
.produto-detalhe__thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #f8f9fb;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 4px;
  transition: border-color var(--transition);
}
.produto-detalhe__thumb.ativo { border-color: #0057FF; }

.produto-detalhe__info { display: flex; flex-direction: column; gap: 1rem; }

.produto-detalhe__categoria {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #0057FF;
}
.produto-detalhe__nome {
  font-family: 'Syne', sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.25;
  color: #212529;
}
.produto-detalhe__sku {
  font-size: .8125rem;
  color: #868e96;
}
.produto-detalhe__preco {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #0057FF;
}
.produto-detalhe__descricao {
  font-size: .9375rem;
  line-height: 1.65;
  color: #495057;
}
.produto-detalhe__specs {
  background: #f8f9fb;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: .875rem;
  color: #495057;
  line-height: 1.7;
}
.produto-detalhe__specs strong {
  display: block;
  font-weight: 700;
  margin-bottom: .5rem;
  color: #343a40;
}

.btn-add-carrinho {
  padding: .875rem 1.5rem;
  background: #0057FF;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background var(--transition);
  width: 100%;
  max-width: 340px;
}
.btn-add-carrinho:hover { background: #0046cc; }
.btn-add-carrinho:disabled { background: #adb5bd; cursor: not-allowed; }

.badge-indisponivel {
  display: inline-block;
  padding: .35rem .75rem;
  background: #fff3cd;
  color: #856404;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 600;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  color: #868e96;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: #0057FF; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { opacity: .5; }

/* ════════════════════════════════════════════════════════════
   CARRINHO
   ════════════════════════════════════════════════════════════ */
.carrinho-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .carrinho-layout { grid-template-columns: 1fr; }
}

.carrinho-lista { display: flex; flex-direction: column; gap: 1rem; }

.carrinho-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: var(--card-radius);
  padding: 1rem;
}
@media (max-width: 500px) {
  .carrinho-item { grid-template-columns: 64px 1fr; }
  .carrinho-item__acoes { grid-column: 1/-1; display: flex; justify-content: flex-end; }
}

.carrinho-item__img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #f8f9fb;
  border-radius: 8px;
  padding: 4px;
}
.carrinho-item__img-placeholder {
  width: 80px;
  height: 80px;
  background: #f1f3f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #adb5bd;
}

.carrinho-item__nome {
  font-weight: 600;
  font-size: .9375rem;
  color: #212529;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.carrinho-item__preco-unit {
  font-size: .8125rem;
  color: #868e96;
  margin-top: .25rem;
}

.carrinho-item__acoes {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
}
.carrinho-item__subtotal {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #0057FF;
}

.qty-ctrl {
  display: flex;
  align-items: center;
  border: 1.5px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
}
.qty-ctrl button {
  padding: .25rem .55rem;
  border: none;
  background: #f8f9fb;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  color: #495057;
  transition: background var(--transition);
}
.qty-ctrl button:hover { background: #e9ecef; }
.qty-ctrl input {
  width: 40px;
  text-align: center;
  border: none;
  border-left: 1.5px solid #dee2e6;
  border-right: 1.5px solid #dee2e6;
  outline: none;
  font-size: .9375rem;
  font-weight: 600;
  padding: .25rem 0;
  -moz-appearance: textfield;
}
.qty-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; }

.btn-remover {
  background: none;
  border: none;
  color: #868e96;
  cursor: pointer;
  font-size: .8rem;
  text-decoration: underline;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  transition: color var(--transition);
}
.btn-remover:hover { color: #dc3545; }

/* Resumo do carrinho */
.carrinho-resumo {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: var(--card-radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.carrinho-resumo h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  color: #212529;
}
.carrinho-resumo__linha {
  display: flex;
  justify-content: space-between;
  font-size: .9375rem;
  padding: .5rem 0;
  border-bottom: 1px solid #f1f3f5;
  color: #495057;
}
.carrinho-resumo__total {
  display: flex;
  justify-content: space-between;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  padding-top: 1rem;
  color: #212529;
}
.btn-finalizar {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  padding: .875rem;
  background: #00D4AA;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background var(--transition);
}
.btn-finalizar:hover { background: #00b894; }
.btn-finalizar:disabled { background: #adb5bd; cursor: not-allowed; }

.btn-continuar {
  display: block;
  text-align: center;
  margin-top: .75rem;
  font-size: .875rem;
  color: #0057FF;
  text-decoration: none;
}
.btn-continuar:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   CHECKOUT
   ════════════════════════════════════════════════════════════ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

.checkout-section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: var(--card-radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.checkout-section h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #212529;
  padding-bottom: .75rem;
  border-bottom: 1px solid #f1f3f5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem;
}
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  margin-bottom: .875rem;
}
.form-group label {
  font-size: .8125rem;
  font-weight: 600;
  color: #495057;
}
.form-group input,
.form-group select {
  padding: .625rem .75rem;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  font-size: .9375rem;
  font-family: 'DM Sans', sans-serif;
  color: #212529;
  background: #fff;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus { border-color: #0057FF; }
.form-group input:disabled,
.form-group input[readonly] { background: #f8f9fb; color: #868e96; }
.form-group .field-error {
  font-size: .75rem;
  color: #dc3545;
  display: none;
}
.form-group.has-error input { border-color: #dc3545; }
.form-group.has-error .field-error { display: block; }

/* Resumo do pedido no checkout */
.checkout-resumo {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: var(--card-radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.checkout-resumo h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #f1f3f5;
}
.checkout-item {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  padding: .375rem 0;
  color: #495057;
  gap: .5rem;
}
.checkout-item__nome { flex: 1; }
.checkout-item__valor { font-weight: 600; white-space: nowrap; }

.checkout-linha {
  display: flex;
  justify-content: space-between;
  font-size: .9375rem;
  padding: .5rem 0;
  border-top: 1px solid #f1f3f5;
  margin-top: .5rem;
  color: #495057;
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  padding-top: .75rem;
  border-top: 2px solid #e9ecef;
  margin-top: .5rem;
  color: #212529;
}
.frete-info {
  font-size: .8125rem;
  color: #00D4AA;
  font-weight: 600;
  margin-top: .25rem;
}

.btn-pagar {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  padding: .9rem;
  background: #0057FF;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background var(--transition);
}
.btn-pagar:hover { background: #0046cc; }
.btn-pagar:disabled { background: #adb5bd; cursor: not-allowed; }

/* ════════════════════════════════════════════════════════════
   LOGIN / AUTH
   ════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem;
  background: #F8F9FB;
}

.auth-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 4px 32px rgba(0,0,0,.07);
}

.auth-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: #0057FF;
  text-align: center;
  display: block;
  text-decoration: none;
  margin-bottom: .5rem;
}

.auth-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  text-align: center;
  color: #212529;
  margin-bottom: .375rem;
}
.auth-subtitle {
  text-align: center;
  font-size: .9rem;
  color: #868e96;
  margin-bottom: 1.75rem;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.5rem 0;
  color: #adb5bd;
  font-size: .8125rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e9ecef;
}

/* Google btn */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  width: 100%;
  padding: .75rem;
  border: 1.5px solid #dee2e6;
  border-radius: 10px;
  background: #fff;
  font-size: .9375rem;
  font-weight: 600;
  color: #343a40;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.btn-google:hover {
  border-color: #0057FF;
  box-shadow: 0 2px 12px rgba(0,87,255,.12);
}
.btn-google svg { flex-shrink: 0; }

/* Form fields (auth) */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  margin-bottom: 1rem;
}
.auth-field label {
  font-size: .8125rem;
  font-weight: 600;
  color: #495057;
}
.auth-field input {
  padding: .7rem .875rem;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  font-size: .9375rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color var(--transition);
}
.auth-field input:focus { border-color: #0057FF; }
.auth-field .field-error { font-size: .75rem; color: #dc3545; display: none; }
.auth-field.has-error input { border-color: #dc3545; }
.auth-field.has-error .field-error { display: block; }

.btn-auth {
  width: 100%;
  padding: .8rem;
  background: #0057FF;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  margin-top: .5rem;
  transition: background var(--transition);
}
.btn-auth:hover { background: #0046cc; }
.btn-auth:disabled { background: #adb5bd; cursor: not-allowed; }

.auth-link {
  text-align: center;
  font-size: .8125rem;
  margin-top: 1rem;
  color: #868e96;
}
.auth-link a { color: #0057FF; text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }

/* OTP input */
.otp-wrap {
  display: flex;
  justify-content: center;
  gap: .625rem;
  margin: 1.25rem 0;
}
.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.375rem;
  font-weight: 700;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  outline: none;
  font-family: 'Syne', sans-serif;
  transition: border-color var(--transition);
}
.otp-input:focus { border-color: #0057FF; }
.otp-input.filled { border-color: #00D4AA; background: #f0fdf9; }

.countdown {
  text-align: center;
  font-size: .875rem;
  color: #868e96;
  margin-bottom: .5rem;
}
.countdown strong { color: #dc3545; }

.email-mascarado {
  text-align: center;
  font-size: .9375rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: .5rem;
  background: #f8f9fb;
  padding: .625rem;
  border-radius: 8px;
}

/* Aviso imutabilidade */
.aviso-imutavel {
  background: #fff3cd;
  border: 1px solid #ffd43b;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .875rem;
  color: #664d03;
  margin-bottom: 1rem;
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}

/* ════════════════════════════════════════════════════════════
   PÁGINAS DE RETORNO DO MERCADO PAGO
   ════════════════════════════════════════════════════════════ */
.retorno-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: #F8F9FB;
}

.retorno-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 32px rgba(0,0,0,.07);
}

.retorno-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.retorno-icon--sucesso { color: #2f9e44; }
.retorno-icon--falha   { color: #dc3545; }
.retorno-icon--pendente { color: #e67700; }

.retorno-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.625rem;
  font-weight: 800;
  margin-bottom: .5rem;
  color: #212529;
}
.retorno-subtitle {
  font-size: .9375rem;
  color: #868e96;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.retorno-pedido {
  background: #f8f9fb;
  border-radius: 10px;
  padding: .875rem 1.25rem;
  font-size: .9375rem;
  color: #495057;
  margin-bottom: 1.5rem;
  text-align: left;
}
.retorno-pedido strong { color: #212529; }

.retorno-btns {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.btn-retorno-primary {
  padding: .8rem;
  background: #0057FF;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
  display: block;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background var(--transition);
}
.btn-retorno-primary:hover { background: #0046cc; }

.btn-retorno-secondary {
  padding: .8rem;
  background: transparent;
  color: #0057FF;
  border: 1.5px solid #0057FF;
  border-radius: 10px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  display: block;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
}
.btn-retorno-secondary:hover { background: #e8efff; }

/* ════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS (complemento ao global)
   ════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  background: #212529;
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 10px;
  font-size: .9375rem;
  font-weight: 500;
  max-width: 340px;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.toast-success { background: #2f9e44; }
.toast.toast-error   { background: #dc3545; }
.toast.toast-info    { background: #1971c2; }

/* ════════════════════════════════════════════════════════════
   COMPLETAR CADASTRO (fields extras)
   ════════════════════════════════════════════════════════════ */
.endereco-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem;
}
.endereco-grid .full { grid-column: 1/-1; }
@media (max-width: 500px) {
  .endereco-grid { grid-template-columns: 1fr; }
  .endereco-grid .full { grid-column: auto; }
}

/* Loading spinner inline */
.spinner-inline {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: middle;
  margin-right: .375rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Mensagem de carrinho vazio */
.carrinho-vazio {
  text-align: center;
  padding: 4rem 1rem;
}
.carrinho-vazio__icon { font-size: 3.5rem; margin-bottom: 1rem; }
.carrinho-vazio h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: #212529;
}
.carrinho-vazio p { color: #868e96; margin-bottom: 1.5rem; }
