
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


/* =====================
   Variáveis de cores
===================== */
:root {
  --color-primary: #ff914d;
  --color-secondary: #542020;
  --color-light: #ef9861;
  --color-light-2: #f3d8b3;
  --color-dark: #1d1b15;
  --color-bg: #fff3e0;
  --color-toast-success: #4CAF50;
  --color-toast-error: #e74c3c;
  --color-footer-bg: #0a0a0a;
  --color-footer-text: #fff;
  --color-btn-nav: #f3d8b3;
}


:root {
  --color-bg-footer: #fff3e0;
  --color-text-footer: #3a2e27;
  --color-accent-footer: #b36d0a;
  --color-link-footer: #5a3825;
  --color-divider: rgba(0, 0, 0, 0.1);
}



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

a {
  text-decoration: none;
}

body {
  font-family: "Roboto", sans-serif;
}

.container {
  min-height: 100vh;
}

.navbar {
  display: flex;
  justify-content:center;
  background: var(--color-secondary);  
  width: 100%;
  z-index: 1;
}

.navbar ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
}

.navbar ul li img{
  width: 250px;
}


/* botão do menu (mobile) */
.menu-btn {
  background: none;
  border: none;
  color: var(--color-bg);
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 15px;
}

/* menu lateral */
.side-menu {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 700px;
  height: 100vh;
  background-color: var(--color-secondary);
  color: var(--color-bg);
  padding: 60px 20px;
  transition: right 0.3s ease;
  z-index: 3000;
  overflow-y: scroll;
}

.side-menu.active {
  right: 0;
}

.side-menu h2{
  font-size: 1rem;
}

.side-menu h2, .side-menu p{
  text-align: center;
}

.side-menu p{
  font-size: 0.8rem;
}

/* botão fechar menu */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--cor-fundo);
  font-size: 1.5rem;
  cursor: pointer;
}

/* overlay */
.overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* responsividade */
@media (max-width: 768px) {
  
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .navbar-content {
    justify-content: space-between;
  }

  .nome-logo {
    order: 1;
  }

  .menu-btn {
    order: 2;
  }
}

@media (min-width: 769px) {

  .navbar-content {
    justify-content: center;
    gap: 120px;
  }
}

.menu-categorias {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 10px;
  background: var(--color-light);
  border-bottom: 2px solid #f3d8b3;
  position: sticky;
  z-index: 10;
  align-items: center;
  justify-content: center;
  top: 0;
  /* gruda no topo da tela */
  z-index: 999;
  padding: 15px;
  margin: 0 auto;
  height: 80px;
}

.menu-categorias::-webkit-scrollbar {
  height: 2px;
}

.menu-categorias::-webkit-scrollbar-thumb {
  background: var(--color-light);
  border-radius: 3px;
}

.menu-categorias button {
  background: var(--color-btn-nav);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  color: var(--color-secondary);
  transition: 0.3s;
  flex: 0 0 auto;
  width: 150px;
}

.menu-categorias button:hover {
  background: var(--color-secondary);
  color: var(--color-bg);
}



section{
  padding: 40px 5px 5px 5px;
}

section h4 {
  margin-bottom: 20px;
  color: var(--color-secondary);
  border-left: 6px solid var(--color-secondary);
  padding-left: 10px;
  background-color: var(--color-light-2);
  border-radius: 3px;
  padding: 10px;
  font-size: 14px;
  margin-top: 50px;
}

.recados-carousel {
  overflow: hidden;
  width: 100%;
  background-color: #fff3e0; /* cor de destaque, pode alterar */
  border: 1px solid #ffd699;
  padding: 10px 0;
  position: relative;
  color: var(--color-secondary);
  font-size: 0.8rem;
}

.recados-track {
  display: flex;
  gap: 50px;
  white-space: nowrap;
  animation: scrollRecados 60s linear infinite;
}

.recados-track span {
  flex-shrink: 0;
}

/* Animação infinita */
@keyframes scrollRecados {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 768px) {

  /* Animação infinita */
  @keyframes scrollRecados {
    0% { transform: translateX(0); }
    100% { transform: translateX(-250%); }
  }

  .recados-track {
    animation: scrollRecados 20s linear infinite; /* mais lento no mobile */
  }
}

.container-produto {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 100px;
  padding: 10px;
}

.container-produto .card-produto:first-child {
  margin-top: 80px;
}

.card-produto {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 1px 2px 10px 2px #000;
  margin-top: 20px;
  border-radius: 8px;
  max-width: 700px;
}

.img-produto {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 150px;
  padding: 5px;
}

.img-produto img {
  max-height: 100%;
  min-width: 100%;
  min-height: 100%;
  box-shadow: 1px 2px 10px 2px #000;
  border-radius: 8px;
}

.detalhes-produto .titulo-produto{
  color: var(--color-secondary);
}

.detalhes-produto {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 5px;
  font-size: 1rem;
}

/* ======== Campo de sabor dentro dos cards ======== */
.card-produto label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: #1d1b15;
  margin-top: 8px;
  font-weight: 700;
  color: var(--color-secondary);
}

.card-produto .sabor {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.95rem;
  color: #1d1b15;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card-produto .sabor:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 3px 8px rgba(175, 103, 10, 0.15);
}

.card-produto .sabor:focus {
  outline: none;
  border-color: var(--color-secondary);
}

/* seta personalizada */
.card-produto .sabor {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%231d1b15' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

.card-produto .preco{
  font-weight: 600;
  color: #542020;
}

.card-produto button.add-cart {
  margin-top: 10px;
}

.add-cart {
  width: 150px;
  height: 40px;
  background-color: var(--color-toast-success);
  color: white;
  cursor: pointer;
  border: none;
  outline: none;
  border-radius: 8px;
}


/*== estilo do modal imagem **/
/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Imagem ampliada */
.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Botão fechar */
.modal .fechar {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: 0.2s;
}

/* = footer */
footer {
  display: flex;
  justify-content: center;
  background-color: var(--color-btn-nav);
  width: 100%;
  height: auto;
}

/*** copyright Start ***/


footer .dev {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.dev p {
  color: white;
  font-size: 0.6rem;
  margin-bottom: 6px;
  color: var(--color-footer-bg) ;
}


.dev a{
  font-style: italic;
  color: purple;
  font-size: 0.7rem;
  margin-bottom: 10px;
  font-family:'Times New Roman', Times, serif
}

/*** copyright end ***/

.politicas {
  color: var(--color-secondary);
  font-size: 0.7rem;
  margin-top: 5px;
  text-align: center;
  background-color: var(--color-btn-nav);
  padding: 15px;
}

.politicas .nome {
  color: var(--color-secondary);
  margin-bottom: 10px;
  font-size: 0.7rem;
}

.politicas a {
  color: var(--color-secondary);
  text-decoration: underline;
  font-weight: 800;
  font-style: italic;
}

.politicas .div-footer{
  width: 80%;
  margin: 10px auto;
  height: 1px;
  background-color:var(--color-secondary);
}


@media screen and (max-width: 600px) {

  .navbar {
    padding-top: 30px;
  }

  .header {
    height: 200px;
  }

  ul {
    justify-content: space-between;
    gap: 30px;
  }

  .card-produto {
    flex-direction: column;
    padding: 10px;
    align-items: start;
  }

  .img-produto {
    display: flex;
    max-width: 90px;
    max-height: 70px;
  }

  .img-produto img {
    max-width: 90px;
    max-height: 70px;
    border-radius: 8px;
  }

  footer p {
    font-size: 0.6rem;
  }

}

/* 🔹 Mobile: menu começa à esquerda */
@media (max-width: 768px) {

    .menu-categorias {
      justify-content: flex-start; /* deixa o início visível */
    }
}


/* ----- Carrinho ----- */
.open-cart {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  padding: 12px 14px;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.open-cart span {
  margin-left: 8px;
  font-weight: 700;
}

.cart {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 500px;
  max-width: 100%;
  background: #fff;
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 30px 12px;
  overflow-y: auto;
  /* rolagem para todo o carrinho */
}

.cart.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

.cart-header h3 {
  color: #1d1b15;
}

.comprar {
  color: white;
  background-color: var(--color-secondary);
  padding: 5px;
  border-radius: 8px;
  height: 30px;
}

.continue-btn {
  display: block;
  width: 100%;
  margin: 0 0 10px 0;
  padding: 10px;
  background: var(--color-secondary);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s ease;
}

.continue-btn:hover {
  background: var(--color-primary);
}


.close-cart {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.cart-items {
  padding: 10px 0;
}

.cart-item {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px dashed #eee;
  padding: 8px 0;
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item .info {
  flex: 1;
}

.cart-item .info h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #1d1b15;
}

.cart-item .actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cart-item button {
  padding: 4px 6px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.cart-footer {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #ccc;
}

.cart-footer .total{
  font-weight: 700;
  color: var(--color-secondary);
}

.cart-footer input, .cart-footer textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
}

.cart-footer button#checkout {
  background: var(--color-toast-success);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.cart-footer .secondary {
  background: #f0f0f0;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

/* responsivo: width menor do cart em telas pequenas */
@media (max-width:600px) {


  .cart {
    width: 100%;
  }

  .open-cart {
    right: 14px;
    bottom: 20px;
  }

}


/*= Modal de mensagens para o cliente */
.modal-msg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-msg-content {
  background: #fff;
  padding: 70px 25px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-msg-content p {
  font-size: 1.2rem;
  color: #1d1b15;
  margin-bottom: 20px;
}

.modal-msg-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
}

#modalMsgBtn {
  background-color: var(--color-secondary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#modalObsInput {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: "Merienda", cursive;
  margin-top: 10px;
  resize: none;
}

.modalObsBtn, .modalObsNoneBtn {
  background-color: var(--color-secondary);
  height: 50px;
  border: none;
  outline: none;
  padding: 10px;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}


#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--color-secondary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

#scrollTopBtn:hover {
  background-color: var(--color-primary);
  transform: scale(1.1);
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}



/* = estilo do toast mensagem */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background-color: #4CAF50; /* verde padrão */
  color: #fff;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-size: 0.7rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  min-width: 250px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  background-color: #e74c3c; /* vermelho */
}

/*-= whatsapp link */
.whatsapp-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #25D366;
  color: white;
  padding: 10px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.whatsapp-link:hover {
  background-color: #1ebe5d;
  transform: translateY(-2px);
}

/* = btn pix copy */
.copy-pix-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgb(237, 190, 103); /* tom de pix/verde diferente do whatsapp */
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  justify-content: center;
  transition: transform .12s ease, box-shadow .12s ease;
}

.copy-pix-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.nome-pix, .chave-pix{
  color: var(--color-secondary);
  font-weight: 800;
}

.copy-pix-btn.copied {
  background-color: #15c47e; /* verde mais claro ao copiar */
  box-shadow: 0 0 10px rgba(21, 196, 126, 0.5);
}

.copy-pix-btn i {
  font-size: 1rem;
}