/* ── Carrinho Page ── */
main {
  padding: 52px 24px;
}

.carrinho-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.carrinho-wrapper h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2em;
  color: var(--text);
  margin-bottom: 8px;
  text-align: center;
}

.carrinho-wrapper .divider {
  margin-bottom: 36px;
}

/* ── Lista de Itens ── */
#lista-carrinho {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

#lista-carrinho .vazio {
  text-align: center;
  color: var(--text-mid);
  font-size: 1.05em;
  padding: 40px 0;
  font-style: italic;
}

/* ── Item do Carrinho ── */
.item-carrinho {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 10px var(--shadow-sm);
  transition: box-shadow 0.25s;
}

.item-carrinho:hover {
  box-shadow: 0 6px 18px var(--shadow);
}

.info-produto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1;
}

.info-produto h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1em;
  color: var(--text);
  font-weight: 600;
}

.info-produto .subtotal {
  font-size: 0.88em;
  color: var(--text-mid);
  font-weight: 300;
}

/* ── Controles de Quantidade ── */
.acoes {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.acoes .quantidade {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acoes .quantidade button {
  width: 30px;
  height: 30px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acoes .quantidade button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

.acoes .quantidade .valor {
  font-weight: 700;
  color: var(--text);
  min-width: 22px;
  text-align: center;
}

.acoes .preco-item {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 1em;
  min-width: 64px;
  text-align: right;
}

/* ── Botão Remover ── */
.btn-remover {
  background: transparent;
  color: var(--pink-dark);
  border: 1px solid var(--pink-dark);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95em;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-remover:hover {
  background: var(--pink-dark);
  color: white;
}

/* ── Resumo Total ── */
.carrinho-resumo {
  background-color: var(--dark);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.total-label {
  font-family: 'Playfair Display', serif;
  color: var(--text-light);
  font-size: 1.1em;
}

#total {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.5em;
  font-weight: 700;
}

#finalizar {
  background-color: var(--gold);
  color: var(--dark);
  padding: 13px 30px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.85em;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: all 0.25s;
  white-space: nowrap;
}

#finalizar:hover {
  background-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--shadow-md);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  main { padding: 36px 16px; }

  .item-carrinho {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .acoes { width: 100%; justify-content: space-between; }

  .carrinho-resumo { flex-direction: column; text-align: center; }

  #finalizar { width: 100%; }
}
