/* Página de Carrinho de Compras */
.cart-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 120px 50px 50px;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.cart-header {
  text-align: center;
  margin-bottom: 50px;
}

.cart-header h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: #08e0ef;
  text-shadow: 0 0 20px rgba(8, 224, 239, 0.5);
  margin-bottom: 15px;
}

.cart-header .subtitle {
  font-size: 1.2rem;
  color: #a0a0a0;
}

.cart-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
}

/* Seção de Itens do Carrinho */
.cart-items-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(8, 224, 239, 0.2);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.cart-items-section h2 {
  font-size: 1.8rem;
  color: #08e0ef;
  margin-bottom: 25px;
  font-weight: 700;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(8, 224, 239, 0.2);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
}

.cart-item:hover {
  border-color: rgba(8, 224, 239, 0.4);
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.cart-item-image {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 224, 239, 0.05);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(8, 224, 239, 0.3));
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.cart-item-price {
  font-size: 1.2rem;
  color: #08e0ef;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: auto;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(8, 224, 239, 0.3);
  border-radius: 10px;
  padding: 5px 10px;
}

.quantity-btn {
  background: transparent;
  border: none;
  color: #08e0ef;
  font-size: 1.2rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: rgba(8, 224, 239, 0.2);
}

.quantity-input {
  width: 50px;
  text-align: center;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.remove-btn {
  background: linear-gradient(135deg, #ff4757 0%, #c44569 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.remove-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
}

/* Resumo do Pedido */
.cart-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(8, 224, 239, 0.2);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  height: fit-content;
  position: sticky;
  top: 120px;
}

.cart-summary h2 {
  font-size: 1.8rem;
  color: #08e0ef;
  margin-bottom: 25px;
  font-weight: 700;
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: #fff;
}

.summary-row.total {
  font-size: 1.5rem;
  font-weight: 900;
  color: #08e0ef;
  font-family: "Orbitron", sans-serif;
  margin-top: 10px;
}

.summary-divider {
  height: 1px;
  background: rgba(8, 224, 239, 0.3);
  margin: 10px 0;
}

.btn-checkout {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #08e0ef 0%, #0a9fb8 100%);
  border: none;
  border-radius: 50px;
  color: #0f0f1e;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(8, 224, 239, 0.3);
  margin-top: 10px;
}

.btn-checkout:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 224, 239, 0.5);
}

.btn-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(8, 224, 239, 0.3);
  border-radius: 50px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(8, 224, 239, 0.5);
}

/* Carrinho Vazio */
.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: #a0a0a0;
}

.empty-cart p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

/* Badge do Carrinho no Header */
.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff4757 0%, #c44569 100%);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(255, 71, 87, 0.5);
}

/* Responsividade */
@media (max-width: 1024px) {
  .cart-content {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-container {
    padding: 100px 20px 30px;
  }

  .cart-header h1 {
    font-size: 2rem;
  }

  .cart-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cart-summary {
    position: static;
  }

  .cart-item {
    flex-direction: column;
    padding: 15px;
  }

  .cart-item-image {
    width: 100%;
    height: 200px;
  }

  .cart-item-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .quantity-control {
    justify-content: center;
  }

  .remove-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cart-container {
    padding: 80px 15px 20px;
  }

  .cart-header h1 {
    font-size: 1.5rem;
  }

  .cart-header .subtitle {
    font-size: 0.9rem;
  }

  .cart-items-section,
  .cart-summary {
    padding: 20px 15px;
  }

  .cart-items-section h2,
  .cart-summary h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .cart-item {
    padding: 15px;
    gap: 15px;
  }

  .cart-item-image {
    height: 150px;
  }

  .cart-item-name {
    font-size: 1.1rem;
  }

  .cart-item-price {
    font-size: 1rem;
  }

  .quantity-control {
    padding: 5px 8px;
  }

  .quantity-btn {
    width: 25px;
    height: 25px;
    font-size: 1rem;
  }

  .quantity-input {
    width: 40px;
    font-size: 0.9rem;
  }

  .remove-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  .summary-row {
    font-size: 0.9rem;
  }

  .summary-row.total {
    font-size: 1.2rem;
  }

  .btn-checkout,
  .btn-secondary {
    padding: 12px;
    font-size: 1rem;
  }
}
