/* Estilos específicos do carrinho */

.carrinho-container {
  margin-top: 120px;
  min-height: 60vh;
}

.carrinho-title {
  color: #2c3e50 !important;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f8f9fa;
}

.carrinho-item {
  background: white !important;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.carrinho-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.produto-imagem {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.quantidade-controller {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-quantidade {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-quantidade:hover {
  background: #2c3e50;
  color: white;
  border-color: #2c3e50;
}

.quantidade-input {
  width: 60px;
  text-align: center;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 0.375rem;
}

.btn-remover {
  color: #dc3545;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-remover:hover {
  color: #c82333;
  transform: scale(1.1);
}

.resumo-carrinho {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  position: sticky;
  top: 140px;
}

.resumo-title {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f8f9fa;
}

.resumo-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #e9ecef;
}

.resumo-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #f8f9fa;
}

.carrinho-vazio {
  text-align: center;
  padding: 4rem 1rem;
}

.carrinho-vazio-icon {
  font-size: 4rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.produto-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.produto-detalhes h6 {
  margin-bottom: 0.25rem;
}

.produto-detalhes p {
  margin-bottom: 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.produto-codigo {
  font-size: 0.8rem;
  color: #adb5bd;
  margin-top: 0.25rem;
}

/* Estilos do formulário de pedido */
.form-pedido {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  margin-top: 2rem;
}

.form-pedido h4 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.form-control:focus {
  border-color: #2c3e50;
  box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

/* Botões de ação */
.btn-continuar-comprando {
  background: #f8f9fa;
  color: #2c3e50;
  border: 1px solid #dee2e6;
}

.btn-continuar-comprando:hover {
  background: #e9ecef;
  border-color: #2c3e50;
}

.btn-enviar-pedido {
  background: #28a745;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
}

.btn-enviar-pedido:hover {
  background: #218838;
}

.btn-enviar-whatsapp {
  background: #25d366;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-enviar-whatsapp:hover {
  background: #1da851;
}

/* Responsividade */
@media (max-width: 768px) {
  .carrinho-container {
    margin-top: 140px;
  }

  .produto-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .produto-imagem {
    width: 80px;
    height: 80px;
  }

  .resumo-carrinho {
    position: static;
    margin-top: 2rem;
  }
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Estilo para itens sendo removidos */
.removing {
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.3s ease;
}

/* Badge de quantidade no carrinho */
.badge-carrinho {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
