/* Página do Carrinho */
.cart-page {
  padding: 4rem 0;
  min-height: 100vh;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(210, 40%, 98%);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-title i {
  color: #EA4B71;
}

.cart-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

/* Itens do Carrinho */
.cart-items-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  background-color: hsl(217, 33%, 17%);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 2rem;
  align-items: center;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-item-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(210, 40%, 98%);
  margin: 0;
}

.cart-item-period {
  color: hsl(215, 20%, 65%);
  font-size: 0.875rem;
}

.cart-item-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #EA4B71;
  margin-top: 0.5rem;
}

.cart-item-discount {
  background-color: rgba(234, 75, 113, 0.2);
  color: #EA4B71;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  width: fit-content;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: hsl(222, 20%, 14%);
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.quantity-btn {
  background-color: #EA4B71;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.quantity-btn:hover {
  background-color: #d43d5f;
}

.quantity-input {
  width: 50px;
  text-align: center;
  background-color: transparent;
  border: none;
  color: hsl(210, 40%, 98%);
  font-size: 1rem;
  font-weight: 600;
}

.btn-remove {
  background-color: transparent;
  color: #ff4444;
  border: 1px solid #ff4444;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-remove:hover {
  background-color: #ff4444;
  color: white;
}

/* Carrinho Vazio */
.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
  background-color: hsl(217, 33%, 17%);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-cart i {
  font-size: 5rem;
  color: hsl(215, 20%, 65%);
  margin-bottom: 1.5rem;
}

.empty-cart h2 {
  font-size: 2rem;
  color: hsl(210, 40%, 98%);
  margin-bottom: 1rem;
}

.empty-cart p {
  color: hsl(215, 20%, 65%);
  margin-bottom: 2rem;
}

/* Resumo do Pedido */
.cart-summary-section {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.cart-summary {
  background-color: hsl(217, 33%, 17%);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-summary h2 {
  font-size: 1.5rem;
  color: hsl(210, 40%, 98%);
  margin-bottom: 1.5rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: hsl(215, 20%, 65%);
}

.discount-line {
  color: #EA4B71;
}

.discount-value {
  font-weight: 600;
}

.summary-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
}

.total-line {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(210, 40%, 98%);
  margin-bottom: 2rem;
}

.total-line span:last-child {
  color: #EA4B71;
}

.btn-checkout {
  width: 100%;
  padding: 1rem;
  background-color: #EA4B71;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.btn-checkout:hover {
  background-color: #d43d5f;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(234, 75, 113, 0.3);
}

.btn-continue-shopping,
.btn-continue-shopping-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: hsl(215, 20%, 65%);
  text-decoration: none;
  padding: 0.75rem;
  transition: color 0.3s ease;
  font-size: 0.875rem;
}

.btn-continue-shopping:hover,
.btn-continue-shopping-link:hover {
  color: #EA4B71;
}

.btn-continue-shopping {
  background-color: hsl(222, 20%, 14%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

.trust-seals {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust-seal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: hsl(215, 20%, 65%);
  font-size: 0.875rem;
}

.trust-seal i {
  color: #EA4B71;
  font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 968px) {
  .cart-container {
    grid-template-columns: 1fr;
  }

  .cart-summary-section {
    position: static;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .page-title {
    font-size: 2rem;
  }

  .cart-item {
    padding: 1.5rem;
  }

  .cart-item-image {
    width: 80px;
    height: 80px;
  }
}
