/* ========================================
   VARIÁVEIS CSS - Cores e Valores Globais
   ======================================== */
:root {
  --gradient-navbar: linear-gradient(135deg, #d3c1c3 0%, #f1dfe0 100%);
  --preco-original: #999;
  --preco-promocional: #dc3545;
  --footer-bg: #212529;
  --shadow-hover: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   ESTILOS GLOBAIS
   ======================================== */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar-brand {
  font-weight: bold;
  font-size: 2rem;
}

.navbar-brand .logo-img {
  max-height: 100px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-brand .logo-img:hover {
  transform: scale(1.05);
}

.navbar-gradient {
  background: var(--gradient-navbar);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background-color: var(--footer-bg);
  color: white;
  margin-top: 50px;
}

footer.footer-gradient {
  background: var(--gradient-navbar);
  color: black;
}

footer .footer-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

/* Centralização de todos os elementos do footer */
footer .list-unstyled {
  padding-left: 0;
}

footer h5 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

footer p {
  margin-bottom: 0.5rem;
}


/* ========================================
   PREÇOS
   ======================================== */
.preco-original {
  text-decoration: line-through;
  color: var(--preco-original);
}

.preco-promocional {
  color: var(--preco-promocional);
  font-weight: bold;
}

/* ========================================
   CARDS 
   ======================================== */

.category-card_icon {
  font-size: 3rem;
  color: #ffc107;
}

.product-card_placeholder-icon {
  font-size: 5rem;
  color: white;
}

/* ========================================
   FONTES
   ======================================== */

.font-icon-custom {

  color: #2b4ad2;
  filter: drop-shadow(0 10px 20px rgba(11, 24, 82, 0.4));

}

/* ========================================
   TIMELINE DE STATUS DO PEDIDO
   ======================================== */

.order-timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10px;
  position: relative;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.timeline-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 3px solid #dee2e6;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.timeline-step.active .timeline-icon {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
  box-shadow: 0 0 15px rgba(13, 110, 253, 0.4);
}

.timeline-step.cancelled .timeline-icon {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}

.timeline-label {
  font-size: 0.85rem;
  color: #6c757d;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
}

.timeline-step.active .timeline-label {
  color: #0d6efd;
  font-weight: 600;
}

.timeline-step.cancelled .timeline-label {
  color: #dc3545;
  font-weight: 600;
}

.timeline-line {
  flex: 1;
  height: 3px;
  background-color: #dee2e6;
  margin: 0 10px;
  position: relative;
  top: -25px;
  transition: background-color 0.3s ease;
}

.timeline-line.active {
  background-color: #0d6efd;
}

/* Responsividade da timeline */
@media (max-width: 768px) {
  .order-timeline {
    flex-direction: column;
    padding: 10px;
  }

  .timeline-step {
    margin: 10px 0;
  }

  .timeline-line {
    display: none;
  }

  .timeline-label {
    white-space: normal;
  }
}

/* ========================================
   TABELA DE ITENS DO PEDIDO - RESPONSIVIDADE
   ======================================== */

/* Estilos gerais da tabela de itens */
.order-items-table {
  width: 100%;
  margin-bottom: 1rem;
}

/* Responsividade mobile para tabela de itens do pedido */
@media (max-width: 768px) {
  /* Esconder o cabeçalho da tabela no mobile */
  .order-items-table thead {
    display: none;
  }

  .order-items-table,
  .order-items-table tbody,
  .order-items-table tr,
  .order-items-table td {
    display: block;
    width: 100%;
  }

  .order-items-table tr {
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .order-items-table td {
    text-align: left !important;
    padding: 0.5rem 0;
    border: none;
    position: relative;
  }

  /* Adicionar labels antes de cada campo (exceto o primeiro que é o produto) */
  .order-items-table td:nth-child(2)::before {
    content: "Quantidade:";
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
    color: #6c757d;
    font-size: 0.875rem;
  }

  .order-items-table td:nth-child(3)::before {
    content: "Preço Unitário:";
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
    color: #6c757d;
    font-size: 0.875rem;
  }

  .order-items-table td:nth-child(4)::before {
    content: "Subtotal:";
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
    color: #6c757d;
    font-size: 0.875rem;
  }

  /* Produto - primeira coluna */
  .order-items-table td:first-child {
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
  }

  /* Ajustar imagem do produto */
  .order-items-table td:first-child img,
  .order-items-table td:first-child .bg-secondary {
    width: 80px !important;
    height: 80px !important;
  }

  /* Espaçamento entre os campos */
  .order-items-table td {
    margin-bottom: 0.5rem;
  }

  /* Centralizar badges */
  .order-items-table td .badge {
    display: inline-block;
  }

  /* Rodapé da tabela (total) */
  .order-items-table tfoot {
    display: block;
    margin-top: 1rem;
  }

  .order-items-table tfoot tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border: none;
    border-radius: 8px;
    margin-bottom: 0;
  }

  .order-items-table tfoot td {
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
  }

  .order-items-table tfoot td:first-child {
    border: none;
    padding: 0;
    margin: 0;
  }
}

/* Tablets em portrait */
@media (max-width: 991px) and (min-width: 769px) {
  .order-items-table th,
  .order-items-table td {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .order-items-table img,
  .order-items-table .bg-secondary {
    width: 50px !important;
    height: 50px !important;
  }
}