/* ========================================
   Grazi Mimos - Página de Pedidos
   ======================================== */

.pedido-page {
  min-height: 100vh;
  background: var(--color-bg, #fdf8f9);
}

/* --- Tela de autenticação --- */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(145deg, #fdf8f9 0%, #f3e8f0 100%);
}

.auth-card {
  width: min(100%, 380px);
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 12px 40px rgba(61, 44, 58, 0.1);
  text-align: center;
}

.auth-logo {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #3d2c3a;
}

.auth-card h1 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: #3d2c3a;
}

.auth-hint {
  font-size: 0.9rem;
  color: #6b5a66;
  margin-bottom: 1.5rem;
}

.auth-card input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #f0e4e8;
  border-radius: 0.75rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.auth-card input:focus {
  border-color: #d46a8c;
}

.btn-full {
  width: 100%;
  padding: 0.85rem;
}

.auth-error {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #c0392b;
}

.auth-back {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: #6b5a66;
  text-decoration: underline;
}

.auth-back:hover {
  color: #d46a8c;
}

/* --- App de pedidos --- */
.orders-app {
  min-height: 100vh;
}

.orders-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 248, 249, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0e4e8;
}

.orders-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
}

.orders-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.orders-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: #d46a8c;
  background: #f8eef2;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.orders-main {
  padding-block: 2rem 3rem;
}

.orders-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.orders-toolbar h1 {
  font-size: 1.5rem;
}

.toolbar-actions {
  display: flex;
  gap: 0.5rem;
}

/* Painéis */
.panel {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(61, 44, 58, 0.06);
  border: 1px solid #f0e4e8;
}

.panel h2 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.panel-desc {
  font-size: 0.875rem;
  color: #6b5a66;
  margin-bottom: 1.25rem;
}

.panel-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0e4e8;
  text-align: right;
  color: #3d2c3a;
}

.empty-msg {
  font-size: 0.9rem;
  color: #6b5a66;
  text-align: center;
  padding: 1.5rem 0;
}

/* Itens do pedido / carrinho */
.order-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.order-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  background: #fdf8f9;
  border-radius: 0.75rem;
}

.order-item img {
  width: 56px;
  height: 56px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.order-item-info h3 {
  font-size: 0.9rem;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  margin-bottom: 2px;
}

.order-item-info p {
  font-size: 0.8rem;
  color: #6b5a66;
}

.order-item-total {
  font-weight: 600;
  font-size: 0.9rem;
  color: #d46a8c;
  white-space: nowrap;
}

/* Cards de pedido */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-card {
  border: 1px solid #f0e4e8;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #fdf8f9;
}

.order-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-bottom: 1px solid #f0e4e8;
}

.order-id {
  font-weight: 700;
  font-size: 0.9rem;
  color: #3d2c3a;
}

.order-date {
  font-size: 0.8rem;
  color: #6b5a66;
}

.order-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.order-status.pending {
  background: #fff3cd;
  color: #856404;
}

.order-status.done {
  background: #d4edda;
  color: #155724;
}

.order-card-body {
  padding: 1rem;
}

.order-customer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.order-customer strong {
  color: #3d2c3a;
}

.order-customer a {
  color: #d46a8c;
  font-weight: 600;
  text-decoration: underline;
}

.order-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-top: 1px solid #f0e4e8;
}

.order-total-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #3d2c3a;
}

.order-actions {
  display: flex;
  gap: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .order-item {
    grid-template-columns: 48px 1fr;
  }

  .order-item-total {
    grid-column: 2;
  }

  .orders-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.is-hidden { display: none !important; }

