/*
  Arquivo: carrinho.css
  Descrição: Arquivo de estilo para layout, cores e responsividade do site.
  Classes comentadas por bloco visual.
*/

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #222;
}


.desktop-menu a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
}

main.conteudo-carrinho {
  max-width: 800px;
  margin: auto;
  padding: 20px;
}

h1 {
  margin-bottom: 30px;
  text-align: center;
}

ul#carrinho {
  list-style: none;
  padding: 0;
  margin: 0;
}

.item-carrinho {
  display: flex;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}

.item-carrinho .imagem img {
  width: 120px;
  height: auto;
  object-fit: cover;
}

.item-carrinho .detalhes {
  padding: 15px;
  flex: 1;
}

.item-carrinho .detalhes h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.item-carrinho .detalhes p {
  margin: 5px 0;
}

.item-carrinho .preco {
  font-weight: bold;
  color: #111;
  margin-top: 10px;
}

.item-carrinho .remover {
  margin-top: 10px;
  background: #eee;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 5px;
}

.finalizar {
  text-align: right;
  margin-top: 30px;
}

.btn-finalizar {
  padding: 10px 20px;
  background: linear-gradient(to right, #00f, #a0f);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}


.item-carrinho {
  background: #1a1a1a;
  height: 100%;
  width: 588px;
  display: flex;
  margin-bottom: 29px;
  overflow: hidden;
  min-height: 160px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  border: 1px solid #2c2c2c;
  margin-left: 122px;
}

.item-carrinho .imagem {
  flex-shrink: 0;
}

.item-carrinho .imagem img {
  height: 100%;
  width: 196px;
  object-fit: cover;
  display: block;
  border-right: 1px solid #333;
}


.item-carrinho .detalhes {
padding: 30px;
    display: flex
;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    align-items: center;
}


.item-carrinho .detalhes h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #fff;
}

.item-carrinho .detalhes p {
  margin: 3px 0;
  color: #ccc;
}

.item-carrinho .preco {
  font-weight: bold;
  color: #8ff;
  margin-top: 5px;
}



.item-carrinho .remover:hover {
  opacity: 0.9;
}

.finalizar {
  text-align: center;
    margin-top: 40px;
    color: white;
}

.btn-finalizar {
  padding: 12px 24px;
  background: linear-gradient(to right, #00f, #a0f);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}


body {
  background: radial-gradient(circle at top left, #0f0f0f 0%, #000000 100%);
  background-attachment: fixed;
}



.item-carrinho .remover {
  padding: 4px 16px;
  height: 100%;
  width: 163px;
  letter-spacing: 0.6px;
  border-radius: 49px;
  background: linear-gradient(90deg, #4f00ff, #b400ff);
  color: white;
  border: none;
  margin-top: 8px;
  font-weight: 600;
 
}

h1 {
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
      margin-top: 9vh;
}

#total {
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
  text-align: right;
}

#total {
  text-align: center;
  margin-right: 10px;
  margin-bottom: 25px;
  color: #fff;
}






/* Estilos de cálculo de frete */

.frete-box {
  margin: 20px auto;
  text-align: center;
  max-width: 400px;
}
.frete-campo {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.frete-campo input {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #aaa;
  width: 160px;
}
.frete-campo button {
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  background-color: #4f00ff;
  color: #fff;
  cursor: pointer;
}
#frete-resultado {
  margin-top: 10px;
  color: #0f0;
  font-weight: bold;
}
