  :root {
  --branco: #ffffff;
  --vinho: #651616;
  --dourado: #f5c144;
  --cinza: #f4f4f4;
  --texto: #333;
  --sombra: rgba(0,0,0,0.12);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

body {
  background: var(--cinza);
  color: var(--texto);
  padding-bottom: 120px;
}

/* ================= HEADER ================= */
header {
  background: linear-gradient(135deg, var(--vinho), #4d0f0f);
  color: var(--branco);
  padding: 16px 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 10px var(--sombra);
}

header h1 {
  font-size: 1.4rem;
  color: var(--branco);
}

.logo img {
  width: 50px;
  background-color: white;
  height: 50px;
  border-radius: 10px;
}

/* STATUS LOJA */
.status-loja {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.luz {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ================= PRODUTOS ================= */
main {
  padding: 20px;
}

.produtos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.produto {
  background: var(--branco);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 6px 15px var(--sombra);
  transition: transform 0.2s, box-shadow 0.2s;
}

.produto:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px var(--sombra);
}

.produto img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.produto p {
  margin: 4px 0;
  font-weight: 500;
}

.produto button {
  margin-top: 8px;
  background: var(--vinho);
  color: var(--branco);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.2s;
}

.produto button:hover {
  background: var(--dourado);
  color: var(--vinho);
}

/* ================= ALERTAS ================= */
.alerta,
.alert-produto {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--vinho);
  color: var(--branco);
  padding: 12px 20px;
  border-radius: 30px;
  display: none;
  z-index: 1000;
  box-shadow: 0 6px 15px var(--sombra);
}

/* ================= CARRINHO FIXO ================= */
.carrinho-fixo {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--branco);
  border-top: 4px solid var(--dourado);
  padding: 14px 18px;
  box-shadow: 0 -4px 12px var(--sombra);
}

.carrinho-fixo h3 {
  color: var(--vinho);
  margin-bottom: 8px;
}

.carrinho-fixo p {
  font-weight: 600;
  margin: 6px 0;
}

.carrinho-fixo button {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

#verCarrinho {
  background: var(--vinho);
  color: var(--branco);
}

#finalizarPedido {
  background: var(--dourado);
  color: var(--vinho);
}

/* ================= CARRINHO LATERAL ================= */
#carrinholateral {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: var(--branco);
  box-shadow: -6px 0 20px var(--sombra);
  display: none;
  flex-direction: column;
  z-index: 2000;
}

.topo-carrinho {
  background: var(--vinho);
  color: var(--branco);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topo-carrinho h2 {
  color: var(--dourado);
}

.fechar-carrinho {
  background: none;
  border: none;
  color: var(--branco);
  font-size: 1.2rem;
  cursor: pointer;
}

.produtos-carrinho {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}

.item-carrinho {
  background: var(--cinza);
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.item-carrinho p {
  font-size: 0.9rem;
}

.qtd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qtd button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--vinho);
  color: var(--branco);
  cursor: pointer;
}

/* ================= TOTAL ================= */
.total-carrinho {
  padding: 14px;
  border-top: 1px solid #ddd;
}

.total-carrinho button {
  width: 100%;
  padding: 12px;
  background: var(--dourado);
  color: var(--vinho);
  border: none;
  border-radius: 14px;
  font-weight: bold;
  cursor: pointer;
}

/* ================= POPUP ================= */
.popup {
  position: fixed;
  top: 50%;
  left: 56%;
  transform: translate(-50%, -50%);
  width: 400px;
  z-index: 99999999;
  background-color: #333;
  display: none;
  align-items: center;
  justify-content: center;

}

.popup.show {
  display: flex;
}

.popup-content {
  background: var(--branco);
  padding: 24px;
  border-radius: 20px;
  width: 90%;
  max-width: 380px;
}

.popup-content h2 {
  color: var(--vinho);
  margin-bottom: 14px;
}

.popup-content input,
.popup-content select,
.popup-content textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.popup-content button {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border-radius: 12px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

#confirmarPedido {
  background: var(--vinho);
  color: var(--branco);
}

.popup-content button:last-child {
  background: #ccc;
}
/* ===== SEÇÃO DE INFORMAÇÕES ===== */
.secao-informacoes {
  display: none; /* começa oculta */
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Cabeçalho */
.secao-informacoes .header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.secao-informacoes .header i {
  color: #ff7a00;
  font-size: 18px;
}

.secao-informacoes .header h4 {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

/* Tabela */
.secao-informacoes table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.secao-informacoes th {
  background: #f0f0f0;
  font-weight: 600;
  padding: 8px;
  text-align: left;
}

.secao-informacoes td {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.secao-informacoes tr:last-child td {
  border-bottom: none;
}
/* ===== BOTÕES DE CONTROLE ===== */
.btns {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btns button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.btns button:first-child {
  background: #f5c144;
  color: #4d0f0f;
}

.btns .btn-info {
  background: #4d0f0f;
  color: #f5c144;
}

.btns button:hover {
  opacity: 0.9;
}
.mostrar {
  display: block;
}
.carrinho-fixo {
  display: none;
}
@media (min-width: 481px) and (max-width: 768px) {

  .produtos {
    grid-template-columns: repeat(3, 1fr);
  }

  header h1 {
    font-size: 1.3rem;
  }

  .produto img {
    height: 110px;
  }

  #carrinholateral {
    width: 360px;
  }
}
@media (min-width: 481px) and (max-width: 768px) {

  .produtos {
    grid-template-columns: repeat(3, 1fr);
  }
  .produto div{
    width: 400px;
  }
  header h1 {
    font-size: 1.3rem;
  }

  .produto img {
    height: 110px;
  }

  #carrinholateral {
    width: 360px;
  }
}
@media (min-width: 1200px) {

  main {
    max-width: 1200px;
    margin: auto;
  }

  .produtos {
    grid-template-columns: repeat(4, 1fr);
  }

  .produto img {
    height: 140px;
  }

  header {
    padding: 20px 40px;
  }
}
/* Tablets / Celulares maiores */
@media (min-width: 481px) and (max-width: 768px) {
  .produtos {
    grid-template-columns: repeat(2, 1fr); /* 2 produtos por linha */
    gap: 16px; /* opcional, define espaço entre cards */
  }

  .produto div {
    width: 100%; /* garante que o conteúdo ocupe a coluna */
  }

  header h1 {
    font-size: 1.3rem;
  }

  .produto img {
    height: 110px;
    width: 100%;
    object-fit: cover; /* mantém a proporção da imagem */
  }

  #carrinholateral {
    width: 360px;
  }
}

/* Desktop grande */
@media (min-width: 1200px) {
  main {
    max-width: 1200px;
    margin: auto;
  }

  .produtos {
    grid-template-columns: repeat(4, 1fr); /* 4 produtos por linha */
    gap: 20px;
  }

  .produto img {
    height: 140px;
    width: 100%;
    object-fit: cover;
  }

  header {
    padding: 20px 40px;
  }
}
@media (max-width: 600px) {

  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 14px 12px;
  }

  .logo img {
    width: 48px;
    height: 48px;
  }

  header h1 {
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .status-loja {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  header p {
    font-size: 0.75rem;
    color: #bbb;
    max-width: 90%;
  }

  /* BOTÕES NO HEADER */
  header .btns {
    width: 100%;
    flex-direction: row;
    gap: 8px;
    margin-top: 6px;
  }

  header .btns button {
    flex: 1;
    font-size: 0.85rem;
    padding: 8px;
    border-radius: 10px;
  }
}
.produtos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 20px;
}

.produto-card {
    width: 180px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.produto-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.produto-card h3 {
    font-size: 1rem;
    margin: 10px 0 5px;
}

.produto-card p {
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.produto-card button.btn-add {
    padding: 6px 10px;
    border: none;
    background-color: #651616;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.produto-card button.btn-add:hover {
    background-color: #f5c144;
}
/* Container de produtos */
.produtos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

/* Card do produto */
.produto-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Efeito hover do card */
.produto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Imagem do produto */
.produto-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* Nome do produto */
.produto-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #333;
}

/* Preço */
.produto-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 12px;
}

/* Controles de quantidade e botão */
.produto-card .qtd {
  font-weight: bold;
  margin: 0 8px;
}

/* Botão de adicionar */
.produto-card button.btn-add {
  background-color: #651616;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s, color 0.2s;
}

.produto-card button.btn-add:hover {
  background-color: #f5c144;
  color: #000;
}

/* ===== Responsivo ===== */
@media (max-width: 768px) {
  .produtos {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .produto-card img {
    height: 120px;
  }
  .produto-card {
    width: 300px;
  }
}

@media (max-width: 480px) {
  .produtos {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .produto-card img {
    height: 110px;
  }
}
/* Container de produtos */
.produtos {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colunas no desktop */
  gap: 20px;
  padding: 20px;
}

/* Card do produto */
.produto-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 280px; /* aumenta o tamanho do card */
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Efeito hover do card */
.produto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Imagem do produto */
.produto-card img {
  width: 100%;
  height: 180px; /* maior imagem */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

/* Nome do produto */
.produto-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #333;
}

/* Preço */
.produto-card p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 12px;
}

/* Controles de quantidade */
.produto-card .qtd {
  font-weight: bold;
  margin: 0 8px;
}

/* Botão de adicionar */
.produto-card button.btn-add {
  background-color: #651616;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.produto-card button.btn-add:hover {
  background-color: #f5c144;
  color: #000;
}

/* ===== Responsivo ===== */
@media (max-width: 1200px) {
  .produtos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .produtos {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .produto-card img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .produtos {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .produto-card img {
    height: 130px;
  }
}
/* Container do carrinho lateral */
#carrinholateral {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.15);
  padding: 20px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
}

/* Topo do carrinho */
#carrinholateral .topo-carrinho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

#carrinholateral .topo-carrinho h2 {
  font-size: 1.5rem;
  color: #651616;
}

#carrinholateral .topo-carrinho button.fechar-carrinho {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #651616;
  transition: color 0.2s;
}

#carrinholateral .topo-carrinho button.fechar-carrinho:hover {
  color: #f5c144;
}

/* Lista de itens do carrinho */
#listaCarrinho {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

/* Item do carrinho */
.item-carrinho {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.item-carrinho:hover {
  transform: translateY(-2px);
}

/* Nome e preço do item */
.item-carrinho p {
  margin: 0;
  font-weight: bold;
  color: #333;
}

/* Controle de quantidade */
.item-carrinho .controle-quantidade {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-carrinho .controle-quantidade button {
  background-color: #651616;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.item-carrinho .controle-quantidade button:hover {
  background-color: #f5c144;
  color: #000;
}

/* Quantidade */
.item-carrinho .controle-quantidade span {
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

/* Botão remover */
.item-carrinho .controle-quantidade .remover {
  margin-left: auto;
  background-color: #e63946;
  color: #fff;
  padding: 4px 8px;
}

.item-carrinho .controle-quantidade .remover:hover {
  background-color: #ff6b6b;
  color: #000;
}

/* Total do carrinho */
.total-carrinho {
  font-size: 1.2rem;
  font-weight: bold;
  color: #651616;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Botão finalizar */
.total-carrinho button {
  background-color: #651616;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.total-carrinho button:hover {
  background-color: #f5c144;
  color: #000;
}

/* Responsividade */
@media (max-width: 768px) {
  #carrinholateral {
    width: 300px;
    padding: 16px;
  }

  .item-carrinho .controle-quantidade button {
    padding: 4px 6px;
  }
}

@media (max-width: 480px) {
  #carrinholateral {
    width: 100%;
  }
}
/* ================= Carrinho Lateral ================= */
#carrinholateral {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 90%;
  height: 100vh;
  background-color: #fff;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 1000;
  overflow-y: auto;
  border-left: 4px solid #651616;
  transition: transform 0.3s ease-in-out;
}

/* Topo do carrinho */
#carrinholateral .topo-carrinho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#carrinholateral .topo-carrinho h2 {
  font-size: 1.6rem;
  color: #651616;
  margin: 0;
}

#carrinholateral .topo-carrinho .fechar-carrinho {
  background: none;
  border: none;
  font-size: 1.4rem;
  font-weight: bold;
  color: #651616;
  cursor: pointer;
  transition: color 0.2s;
}

#carrinholateral .topo-carrinho .fechar-carrinho:hover {
  color: #f5c144;
}

/* Lista de produtos */
#listaCarrinho {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

/* Cada item do carrinho */
.item-carrinho {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.item-carrinho p {
  margin: 0;
  font-weight: 500;
  color: #333;
  font-size: 1rem;
}

/* Controle de quantidade */
.controle-quantidade {
  display: flex;
  align-items: center;
  gap: 6px;
}

.controle-quantidade button {
  background-color: #651616;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.controle-quantidade button:hover {
  background-color: #f5c144;
  color: #000;
}

/* Quantidade do item */
.controle-quantidade span {
  font-weight: bold;
  min-width: 24px;
  text-align: center;
}

/* Botão remover item */
.controle-quantidade .remover {
  margin-left: auto;
  background-color: #e63946;
}

.controle-quantidade .remover:hover {
  background-color: #ff6b6b;
  color: #000;
}

/* Total e finalizar pedido */
.total-carrinho {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.total-carrinho p {
  font-size: 1.2rem;
  font-weight: bold;
  color: #651616;
  margin: 0;
}

.total-carrinho button {
  background-color: #651616;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.total-carrinho button:hover {
  background-color: #f5c144;
  color: #000;
}

/* Scroll suave e escondendo barra no Chrome/Safari */
#carrinholateral::-webkit-scrollbar {
  width: 6px;
}

#carrinholateral::-webkit-scrollbar-thumb {
  background-color: #651616;
  border-radius: 3px;
}

#carrinholateral::-webkit-scrollbar-track {
  background: transparent;
}

/* Responsividade */
@media (max-width: 768px) {
  #carrinholateral {
    width: 300px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  #carrinholateral {
    width: 100%;
  }
}
/* ================= CARRINHO LATERAL ================= */
#carrinholateral {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 90%;
  height: 100vh;
  background: #fff;
  box-shadow: -5px 0 15px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 1000;
  overflow-y: auto;
  border-left: 4px solid #651616;
}

/* ================= TOPO ================= */
.topo-carrinho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.topo-carrinho h2 {
  margin: 0;
  color: #651616;
}

.fechar-carrinho {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #651616;
}

.fechar-carrinho:hover {
  color: #f5c144;
}

/* ================= LISTA ================= */
#listaCarrinho {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ================= ITEM ================= */
#listaCarrinho div {
  background: #f8f8f8;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Nome e preço */
#listaCarrinho p {
  margin: 0;
  font-weight: bold;
  color: #333;
}

/* ================= CONTROLES ================= */
#listaCarrinho button {
  background-color: #651616;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

#listaCarrinho button:hover {
  background-color: #f5c144;
  color: #000;
}

/* Layout dos botões */
#listaCarrinho span {
  font-weight: bold;
  margin: 0 5px;
}

/* Botão remover separado */
#listaCarrinho .remover {
  margin-top: 6px;
  background-color: #e63946;
}

#listaCarrinho .remover:hover {
  background-color: #ff6b6b;
  color: #000;
}

/* ================= TOTAL ================= */
.total-carrinho {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.total-carrinho p {
  font-size: 18px;
  font-weight: bold;
  color: #651616;
}

/* Botão finalizar */
.total-carrinho button {
  background-color: #651616;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.total-carrinho button:hover {
  background-color: #f5c144;
  color: #000;
}

/* ================= SCROLL ================= */
#carrinholateral::-webkit-scrollbar {
  width: 6px;
}

#carrinholateral::-webkit-scrollbar-thumb {
  background: #651616;
  border-radius: 3px;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 768px) {
  #carrinholateral {
    width: 300px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  #carrinholateral {
    width: 100%;
  }
}
:root {
  --branco: #ffffff;
  --vinho: #651616;
  --dourado: #f5c144;
  --cinza: #f4f4f4;
  --texto: #333;
  --sombra: rgba(0,0,0,0.12);
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--cinza);
}

/* GRID PRODUTOS */
.produtos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 16px;
}

/* CARD */
.card {
  background: var(--branco);
  border-radius: 16px;
  box-shadow: 0 4px 12px var(--sombra);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

/* IMAGEM */
.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* CONTEÚDO */
.card-body {
  padding: 10px;
  text-align: center;
}

.card h3 {
  font-size: 15px;
  color: var(--vinho);
  margin: 5px 0;
}

.card p {
  color: var(--dourado);
  font-weight: bold;
  margin: 5px 0 10px;
}

/* CONTROLE DE QUANTIDADE */
.controle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.controle button {
  background: var(--vinho);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}

.controle span {
  font-weight: bold;
  font-size: 16px;
  min-width: 20px;
  text-align: center;
}

/* BOTÃO ADICIONAR */
.card button.add {
  background: var(--dourado);
  color: var(--vinho);
  border: none;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
}

.card button.add:hover {
  opacity: 0.9;
}

/* MOBILE */
@media (max-width: 500px) {
  .produtos {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* GRID */
.produtos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 15px;
  padding: 15px;
}

/* CARD */
.produto-card {
  background: var(--branco);
  border-radius: 16px;
  box-shadow: 0 4px 12px var(--sombra);
  padding: 10px;
  text-align: center;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.produto-card:hover {
  transform: translateY(-4px);
}

/* IMAGEM */
.produto-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
}

/* NOME */
.produto-card h3 {
  font-size: 14px;
  color: var(--vinho);
  margin: 8px 0 4px;
}

/* PREÇO */
.produto-card p {
  color: var(--dourado);
  font-weight: bold;
  margin-bottom: 8px;
}

/* QUANTIDADE */
.produto-card div {
  font-size: 13px;
  color: var(--texto);
  margin-bottom: 8px;
}

.produto-card .qtd {
  font-weight: bold;
  font-size: 15px;
  margin-left: 5px;
}

/* BOTÃO */
.produto-card button {
  background: var(--vinho);
  color: var(--branco);
  border: none;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.produto-card button:hover {
  background: var(--dourado);
  color: var(--vinho);
}

/* MOBILE */
@media (max-width: 500px) {
  .produtos {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .produto-card {
    padding: 8px;
  }
}
