/* Estilos gerais */

/* Importar a fonte Chango do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Chango:wght@400&display=swap');


/* Reset de margens e preenchimentos e box-sizing para todos os elementos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos para o header */
header {
  background-color: black;
  display: flex;
  justify-content: space-between;
  padding: 10px 10px;
  align-items: center;
  text-shadow: 2px 2px 4px rgba(194, 174, 174, 0.5);
  font-weight: bold;
}

/* Estilos para o logo */
.logo {
  display: flex;
  align-items: center;
}

.logo h2 {
  margin-top: 10px;
  font-size: 36px;
  color: white;
  margin-left: 20px;
  font-family: 'Chango', sans-serif; 
}

.logo img {
  width: 105px;
  height: 97px;
}


/* Estilos para a interface */
.interface {
  width: 100%;
  padding: 5px 25px;
  background-color: #ba936b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


body {
    font-family: 'Chango', sans-serif;
    background-color: #f4e7ce;
    margin: 0;
    padding: 0;
}

header {
    background-color: #000;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilos do carrinho */
main {
    padding: 40px;
    font-family: 'Chango', sans-serif;
}

.carrinho {
    background-color: #fff8ec;
    border-radius: 15px;
    padding: 30px;
    max-width: 2000px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.imagem-voltar {
  display: block;
  margin-bottom: 20px;
  width: 50px;
  height: auto;
}

.imagem-voltar {
  display: block;
  margin-bottom: 20px;
  width: 50px;
  height: auto;
  transition: transform 0.3s ease; /* Transição suave */
}

.imagem-voltar:hover {
  transform: translateX(10px) scale(1.1); /* Move para a direita e aumenta o tamanho */
}



h1 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 30px;
    font-weight: bold;
    color: #000;
}

/* Item no carrinho */
.item-carrinho {
    display: grid;
    grid-template-columns: 150px 1fr 120px 120px 150px;
    align-items: center;
    background-color: #f5ebd7;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.item-titulo {
    font-weight: bold;
    font-size: 20px;
}

.imagem-item {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
}

.descricao-preco p {
    font-size: 18px;
    color: #000;
    font-weight: bold;
}

.preco, .total-item {
    font-size: 19px;
    font-weight: bold;
    color: #000;
}

.quantidade-controle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100px;
}

.quantidade-controle button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
}

.quantidade-controle span {
    font-size: 18px;
    font-weight: bold;
}

/* Seção de pagamento */
.pagamento {
    margin-top: 30px;
    margin-bottom: 20px;
    background-color: #000;
    color: #fff;
    padding: 20px;
    border-radius: 20px;
}

.pagamento h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
}

.pagamento label {
    display: inline-block;
    margin-right: 15px;
    font-size: 18px;
    color: #fff;
}

.pagamento input {
    margin-right: 5px;
}

/* Detalhes da compra */
.detalhes-compra {
    background-color: #000;
    color: #fff;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
}

.detalhes-compra p {
    font-size: 18px;
    margin: 5px 0;
}

.continuar-compra {
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
    text-align: center;
    border-radius: 20px;
    font-weight: bold;
    font-family: 'Chango', sans-serif;
}

footer {
  background-color: black;
  position: relative;
  padding: 20px 0;
  color: white;
  text-align: center;
  font-family: 'Chango', sans-serif;
  z-index: 1;
}

footer::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 80px;
  background-size: 40px 80px;
  z-index: 0;
}

footer .info {
  position: relative;
  z-index: 1;
}


/* Estilo normal do link */
h2 a {
    text-decoration: none;
    color: white;
    font-family: 'Chango', sans-serif;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  
  /* Estilo ao passar o mouse */
  h2 a:hover {
    color: #D2B48C; 
    transform: scale(1.1); /* Aumenta o tamanho do texto em 10% */
  }

  /* Contêiner para o título e a imagem */
.titulo-imagem {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Estilo do título "ITEM" acima da imagem */
.item-titulo {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 10px;
}

a {
  text-decoration: none;
  color: white;
  font-family: 'Chango', sans-serif;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Estilo ao passar o mouse */
h2 a:hover {
  color: #D2B48C; 
  transform: scale(1.1); /* Aumenta o tamanho do texto em 10% */
}

