@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Pacifico&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --roxo:        #6B21A8;
  --roxo-escuro: #4A0080;
  --roxo-medio:  #7E22CE;
  --dourado:     #C9A020;
  --dourado-clr: #F5C518;
  --rosa:        #C2185B;
  --verde:       #388E3C;
  --branco:      #FFFFFF;
  --texto:       #2D1B4E;
  --cinza-leve:  #F5F0FF;
  --borda:       #E9D8FD;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--branco);
  color: var(--texto);
  min-height: 100vh;
}

/* ===== HEADER ===== */
header {
  background: var(--branco);
  border-bottom: 3px solid var(--dourado);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(107, 33, 168, 0.1);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo img {
  max-height: 70px;
  object-fit: contain;
}

.header-logo-texto h1 {
  font-family: 'Pacifico', cursive;
  font-size: 1.6rem;
  color: var(--roxo);
  line-height: 1;
}

.header-logo-texto span {
  font-size: 0.8rem;
  color: var(--dourado);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--roxo-escuro) 0%, var(--roxo) 50%, var(--roxo-medio) 100%);
  text-align: center;
  padding: 4rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(245, 197, 24, 0.15) 0%, transparent 70%);
}

.hero h2 {
  font-family: 'Pacifico', cursive;
  font-size: 2.4rem;
  color: var(--dourado-clr);
  text-shadow: 2px 2px 12px rgba(0,0,0,0.4);
  position: relative;
  margin-bottom: 0.8rem;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  position: relative;
  max-width: 500px;
  margin: 0 auto 1.8rem;
}

.btn-hero {
  background: var(--dourado);
  color: var(--branco);
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201, 160, 32, 0.4);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 160, 32, 0.5);
}

/* ===== MAIN / CARDAPIO ===== */
main {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  min-height: 400px;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('bg_barca.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15; /* 85% de transparência para ficar bem leve */
  z-index: -1;
  pointer-events: none;
}

/* ===== FILTROS DE CATEGORIA ===== */
#categorias {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.btn-categoria {
  background: var(--branco);
  border: 2px solid var(--roxo);
  color: var(--roxo);
  padding: 0.45rem 1.3rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  transition: all 0.2s;
}

.btn-categoria:hover,
.btn-categoria.ativo {
  background: var(--roxo);
  color: var(--branco);
}

/* ===== SEÇÃO CATEGORIA ===== */
.secao-categoria {
  margin-bottom: 3rem;
}

.secao-categoria h2 {
  font-size: 1.3rem;
  color: var(--roxo-escuro);
  border-left: 5px solid var(--dourado);
  padding-left: 0.8rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 900;
}

/* ===== GRID DE PRODUTOS ===== */
.grid-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ===== CARD PRODUTO ===== */
.card-produto {
  background: var(--branco);
  border: 1.5px solid var(--borda);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(107, 33, 168, 0.07);
}

.card-produto:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(107, 33, 168, 0.15);
  border-color: var(--roxo-medio);
}

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

.card-info {
  padding: 1.1rem;
}

.card-info h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 0.3rem;
}

.card-info .descricao {
  font-size: 0.83rem;
  color: #888;
  margin-bottom: 0.8rem;
  min-height: 2.2em;
  line-height: 1.4;
}

.card-info .preco {
  font-size: 1.4rem;
  color: var(--roxo);
  font-weight: 900;
}

.complementos-lista {
  margin-top: 0.8rem;
  border-top: 1px solid var(--borda);
  padding-top: 0.7rem;
}

.complementos-lista .titulo-compl {
  color: var(--dourado);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.3rem;
}

.complementos-lista span {
  font-size: 0.78rem;
  color: #777;
  display: block;
  margin-bottom: 0.15rem;
}

/* ===== VAZIO ===== */
.vazio-msg {
  text-align: center;
  color: #aaa;
  font-size: 1.1rem;
  margin-top: 3rem;
}

/* ===== FOOTER ===== */
.footer-container {
  background: var(--roxo-escuro);
  color: rgba(255,255,255,0.8);
  border-top: 4px solid var(--dourado);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-info h3 {
  font-family: 'Pacifico', cursive;
  font-size: 1.5rem;
  color: var(--dourado-clr);
  margin-bottom: 0.2rem;
}

.footer-info p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-endereco h4 {
  color: white;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.footer-endereco p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social span {
  font-weight: bold;
  font-size: 1rem;
  color: white;
}

.footer-social a {
  color: white;
  display: flex;
  align-items: center;
  transition: transform 0.2s, color 0.2s;
}

.footer-social a:hover {
  color: var(--dourado-clr);
  transform: scale(1.1);
}

.footer-bottom {
  background: rgba(0,0,0,0.2);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0.3rem 0;
}

.dsw-link {
  color: var(--dourado-clr);
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.2s;
}

.dsw-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 600px) {
  .hero h2 { font-size: 1.7rem; }
  .grid-produtos { grid-template-columns: 1fr 1fr; }
  .card-produto img { height: 150px; }
}

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

/* ===== BOTÕES FLUTUANTES ===== */
.botoes-flutuantes {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.btn-flutuante {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
  position: relative;
  text-decoration: none;
}

.btn-flutuante:hover {
  transform: scale(1.1);
}

.btn-flutuante-wpp {
  background: #25D366;
}

.btn-flutuante-carrinho {
  background: var(--roxo);
}

.contador-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--rosa);
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* ===== BOTÃO ADICIONAR CARD ===== */
.btn-adicionar {
  width: 100%;
  padding: 0.8rem;
  margin-top: 1rem;
  background: var(--dourado);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
}

.btn-adicionar:hover {
  background: var(--dourado-clr);
  color: var(--roxo-escuro);
}

/* ===== MODAL CARRINHO / COMPLEMENTOS ===== */
.modal-carrinho {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}

.modal-box-carrinho {
  background: white;
  width: 90%;
  max-width: 450px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--roxo-escuro);
  color: white;
  border-radius: 12px 12px 0 0;
}

.btn-fechar {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #eee;
  background: #fafafa;
  border-radius: 0 0 12px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== ITENS DO CARRINHO ===== */
.item-carrinho {
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.item-carrinho:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.item-carrinho-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  color: var(--roxo-escuro);
  margin-bottom: 0.5rem;
}

.item-carrinho-compl {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.btn-remover-item {
  background: none;
  border: none;
  color: var(--rosa);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== CHECKBOX COMPLEMENTOS ===== */
.secao-modal-compl {
  margin-bottom: 1.2rem;
}

.secao-modal-compl h4 {
  font-size: 0.95rem;
  color: var(--roxo-escuro);
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--borda);
  padding-bottom: 0.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-limite {
  font-size: 0.75rem;
  color: #888;
  font-weight: normal;
}

.opcoes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.opcoes-grid-linha {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compl-opcao, .compl-opcao-linha {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fdfdfd;
  border: 1px solid #eee;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.compl-opcao-linha {
  justify-content: space-between;
}

.compl-opcao:hover, .compl-opcao-linha:hover {
  background: #f5f0ff;
}

.compl-opcao label, .compl-opcao-linha label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: 1;
  font-size: 0.85rem;
  color: #444;
}

.compl-opcao input[type="checkbox"], .compl-opcao-linha input[type="checkbox"] {
  accent-color: var(--roxo);
  cursor: pointer;
}

.compl-opcao input[type="checkbox"]:disabled + span,
.compl-opcao-linha input[type="checkbox"]:disabled + span {
  opacity: 0.5;
}

.compl-preco {
  color: var(--roxo);
  font-weight: bold;
  font-size: 0.85rem;
}


/* ===== CONTROLES ===== */
.quantidade-controle {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #eee;
  border-radius: 20px;
  padding: 0.3rem 1rem;
}

.quantidade-controle button {
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--roxo-escuro);
}

.btn-salvar {
  background: var(--roxo);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.btn-wpp {
  background: #25D366;
  width: 100%;
}

.input-cliente {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
}

.total-carrinho {
  font-size: 1.2rem;
  color: var(--roxo-escuro);
}
