/* ── Páginas de loja: carrinho, login, cadastro, conta, checkout ── */

/* Header/footer bem enxutos, só logo + carrinho/conta — sem nav do site institucional,
   pra não distrair o cliente no meio de um checkout. */
.shop-header {
  position: static; /* sobrescreve o header{position:fixed} global do style.css, feito pro nav flutuante do site institucional */
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.shop-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.shop-logo img { display: block; }

.shop-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-header-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #374151;
  font-size: 1rem;
  transition: background .2s, color .2s;
}

.shop-header-actions a:hover {
  background: #f9fafb;
  color: #BA29A6;
}

.shop-footer {
  min-height: 0; /* sobrescreve o min-height:280px do footer{} global do style.css, feito pro rodapé grande do site institucional */
  background: #1d1d1d;
  padding: 16px 0;
}

.shop-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.shop-footer-inner a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.shop-footer-inner a:hover {
  color: #fff;
}

/* ── Painel admin: barra bem simples, só identificação + sair ── */
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f1c2e;
  color: rgba(255,255,255,0.85);
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-topbar a {
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.admin-topbar a:hover { color: #fff; }

.shop-sec {
  padding: 48px 0 80px;
  min-height: 60vh;
  background: #f9fafb;
}

.shop-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 36px 32px;
  max-width: 480px;
  margin: 0 auto;
}

.shop-card.wide {
  max-width: 760px;
}

.shop-card h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f1c2e;
  margin-bottom: 8px;
}

.shop-card .shop-sub {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: #0f1c2e;
  transition: border-color .2s;
}

.form-group input:focus {
  outline: none;
  border-color: #BA29A6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.form-error {
  background: rgba(220,38,38,0.06);
  border: 1px solid rgba(220,38,38,0.18);
  color: #b91c1c;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 20px;
}

.form-note a {
  color: #BA29A6;
  font-weight: 600;
}

/* ── Carrinho ── */
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
}

.cart-item:last-child { border-bottom: none; }

.cart-item-name { font-weight: 700; color: #0f1c2e; font-size: 0.95rem; }
.cart-item-price { font-size: 0.82rem; color: #6b7280; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.cart-item-qty input {
  width: 48px;
  text-align: center;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.cart-item-remove {
  color: #9ca3af;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1rem;
}

.cart-item-remove:hover { color: #dc2626; }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  margin-top: 12px;
  border-top: 2px solid #0f1c2e;
  font-weight: 800;
  color: #0f1c2e;
  font-size: 1.1rem;
}

.cart-empty {
  text-align: center;
  padding: 40px 0;
  color: #6b7280;
}

/* ── Conta / pedidos ── */
.account-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}

.account-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.account-nav a:hover, .account-nav a.active {
  background: #f9fafb;
  color: #BA29A6;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.order-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 20px;
}

.order-status.pending_payment { background: rgba(217,119,6,0.1); color: #d97706; }
.order-status.paid { background: rgba(37,99,235,0.1); color: #2563eb; }
.order-status.shipped { background: rgba(22,163,74,0.1); color: #16a34a; }
.order-status.canceled, .order-status.refunded { background: rgba(107,114,128,0.1); color: #6b7280; }

@media (max-width: 700px) {
  .account-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
