/* ====== ESTILOS GERAIS ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #ffffff;
  color: #db6c6c;
}

/* ====== CABEÇALHO ====== */
.cabecalho {
  background: #A24713;
  border-bottom: 1px solid #f1e0c6;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: #b88933;
  font-weight: bold;
}
.logo_img {
    width: 30%;
    height: 5%;
}
/* ===== Separadores entre os links do menu ===== */
.menu a {
  text-decoration: none;
  color: #dfd5d5;
  margin-left: 20px;
  transition: color 0.3s;
  position: relative;
  padding-left: 20px;
}

/* Linha separadora entre links */
.menu a:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 1px;
  background: #e6d9c3; /* tom suave dourado */
}

.menu a:hover {
  color: #b88933;
}


/* ====== HERO SLIDESHOW (CSS-ONLY) ====== */
.hero {
    height: 50vh; /* antes era 75vh */
  position: relative;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeShow 50s infinite;
}

/* define tempos diferentes para cada imagem (10 imagens = 5s cada num ciclo de 50s) */
.hero-slideshow img:nth-child(1)  { animation-delay: 0s;  }
.hero-slideshow img:nth-child(2)  { animation-delay: 5s;  }
.hero-slideshow img:nth-child(3)  { animation-delay: 10s; }
.hero-slideshow img:nth-child(4)  { animation-delay: 15s; }
.hero-slideshow img:nth-child(5)  { animation-delay: 20s; }
.hero-slideshow img:nth-child(6)  { animation-delay: 25s; }
.hero-slideshow img:nth-child(7)  { animation-delay: 30s; }
.hero-slideshow img:nth-child(8)  { animation-delay: 35s; }
.hero-slideshow img:nth-child(9)  { animation-delay: 40s; }
.hero-slideshow img:nth-child(10) { animation-delay: 45s; }

@keyframes fadeShow {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}

/* mantém o conteúdo sempre sobre as imagens */
.hero-conteudo, .overlay {
  position: relative;
  z-index: 2;
}


.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(100, 96, 96, 0.4);
}

.hero-conteudo {
  position: relative;
  color: #fff;
  text-align: center;
}

.hero-conteudo h2 {
  font-size: 48px;
  font-family: "Playfair Display", serif;
  margin-bottom: 20px;
}

.hero-conteudo p {
  font-size: 18px;
  margin-bottom: 20px;
}

.botao {
  background-color: #A24713;
  color: #fff;
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.botao:hover {
  background-color: #a5792b;
}

/* ====== CATEGORIAS ====== */
.categorias {
  padding: 60px 0;
  text-align: center;
}

.categorias h3 {
  color: #b88933;
  font-size: 26px;
  margin-bottom: 30px;
}

.grid-categorias {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 90%;
  margin: 18px auto 40px;
}

.grid-categorias form {
  display: inline-block;
}

.grid-categorias button {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e4d2b1;
  background: #fff;
  cursor: pointer;
}

.grid-categorias button:hover {
  background: #fdf7ee;
}

/* ====== PRODUTOS + FILTROS ====== */
.container-produtos {
  display: flex;
  gap: 28px;
  width: 90%;
  margin: 32px auto;
  align-items: flex-start;
}

.filtros {
  width: 260px;
  background: #f8f4ec;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid #e6d9c3;
  height: fit-content;
}

.filtros h4 {
  color: #b88933;
  margin-bottom: 12px;
  border-bottom: 1px solid #e6d9c3;
  padding-bottom: 6px;
}

.filtros form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filtros select, .filtros input[type="text"] {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
  width: 100%;
}

.filtros button {
  background: #b88933;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.filtros button:hover {
  background: #a6792a;
}

/* Produtos */
.lista-produtos {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.produto {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  text-align: center;
  padding-bottom: 12px;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}

.produto:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.produto img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.produto h5 {
  font-size: 16px;
  margin: 6px 0;
  color: #333;
}

.produto p.preco {
  color: #b88933;
  font-weight: 700;
  margin-bottom: 8px;
}

.produto .acoes {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.produto .acoes a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.btn-ver {
  background: #eee;
  color: #333;
  border: 1px solid #ddd;
}

.btn-comprar {
  background: #b88933;
  color: #fff;
  border: 0;
}

/* ====== PAGINAÇÃO ====== */
.paginacao {
  width: 90%;
  margin: 20px auto 60px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.paginacao a, .paginacao span {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e6d9c3;
  text-decoration: none;
  color: #333;
  background: #fff;
}

.paginacao .ativo {
  background: #b88933;
  color: #fff;
  border-color: #b88933;
}

/* ====== MENU HAMBURGER CSS-ONLY ====== */
.nav-toggle { display: none; }

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;                /* espaço entre os traços */
  width: 48px;             /* largura total do botão */
  height: 40px;            /* altura total */
  cursor: pointer;
  background: transparent;
  border: none;
}

.nav-toggle-label span {
  display: block;
  width: 32px;             /* comprimento do traço */
  height: 4px;             /* espessura do traço */
  background-color: #fff8ed;  /* cor dos traços */
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* MENU USUÁRIO - Desktop */
.menu-usuario {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Link do usuário (ícone + nome) */
.menu-usuario .usuario-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    background-color: black;
    color: white;
    transition: background 0.3s;
    height: 40px; /* força a altura igual aos outros links */
}

.menu-usuario .usuario-link:hover {
    background-color: #333;
}

/* Link Admin inline ao lado */
.menu-usuario .admin-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    background-color: #b88933;
    color: white;
    transition: background 0.3s;
    height: 40px; /* igual altura do usuário */
}

.menu-usuario .admin-link:hover {
    background-color: #a6792a;
}

/* Ícone do usuário */
.menu-usuario svg {
    fill: white;
}

/* Exibir o botão apenas em telas menores */
@media (min-width: 901px) {
  .nav-toggle-label {
    display: none;
  }
}



@media (max-width: 900px) {
  .menu {
    display: none;
    position: fixed;
    right: 0;
    top: 64px;
    background: #fff;
    width: 220px;
    padding: 18px;
    border-left: 1px solid #eee;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    height: calc(100vh - 64px);
    overflow: auto;
  }

  .nav-toggle-label {
    display: flex;
    margin-left: auto;
  }

  .container {
    gap: 12px;
  }

  /* Links com linhas separadoras */
  .menu a {
    display: block;
  padding: 14px 0; /* antes era 10px — agora mais espaço */
  margin: 6px 0;   /* dá mais respiro entre as linhas */
    color: #333;
    border-bottom: 1px solid #e6d9c3; /* linha dourada suave */
    text-decoration: none;
    transition: color 0.3s;
  }


  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .nav-toggle:checked ~ .menu {
    display: block;
  }

  /* Layout responsivo para filtros e produtos */
  .container-produtos {
    flex-direction: column;
  }

  /* ✅ Filtros agora acima dos produtos */
  .filtros {
    width: 100%;
    order: -1;
    margin-bottom: 20px;
  }

  .lista-produtos {
    order: 0;
  }
}

/* Desktop: menu inline */
@media (min-width: 901px) {
  .nav-toggle-label { display: none; }
  .menu { display: flex; gap: 18px; align-items: center; }
}

/* ============================
   CATEGORIAS NO MENU MOBILE
============================= */
.menu-categorias-mobile {
  display: none; /* aparece só no mobile */
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #fff3e0; 
}

.menu-categorias-mobile h4 {
  font-size: 16px;
  font-weight: 600;
  color: #A24713; /* dourado oficial */
  margin-bottom: 12px;
}

/* Cada formulário */
.menu-categorias-mobile form {
  margin-bottom: 10px;
}

/* Botões */
.categoria-btn-mobile {
  width: 100%;
  padding: 10px 12px;
  background: #fffdf9; /* nude bem suave */
  border: 1px solid #e6d9c3;
  border-radius: 6px;
  font-size: 15px;
  color: #5a4631; /* marrom */
  text-align: left;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.categoria-btn-mobile:hover {
  background: #f6eee3;   /* nude */
  border-color: #A24713; /* dourado */
}

/* Mostrar no mobile */
@media (max-width: 900px) {
  .menu-categorias-mobile {
    display: block;
  }

  /* esconder categorias da homepage */
  .categorias,
  .grid-categorias {
    display: none;
  }
}


/* ====== SEÇÃO DE CONTATO ====== */
.contato-sec {
  width: 100%;
  background: linear-gradient(to bottom, #fffdf9, #f8f3e9);
  padding: 80px 0;
  display: flex;
  justify-content: center;
}

.form-contato {
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
}

.form-contato fieldset {
  border: 2px solid #d5b97a;
  border-radius: 16px;
  padding: 40px 30px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.form-contato legend {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  color: #b88933;
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
}

/* ====== CAMPOS ====== */
.form-contato label {
  display: block;
  margin-bottom: 6px;
  color: #555;
  font-weight: 500;
  font-size: 15px;
}

.form-contato input,
.form-contato textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e6d9c3;
  border-radius: 8px;
  background: #fffdf9;
  font-size: 15px;
  color: #333;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.form-contato input::placeholder,
.form-contato textarea::placeholder {
  color: #a69b88;
  font-style: italic;
}

.form-contato input:focus,
.form-contato textarea:focus {
  border-color: #b88933;
  box-shadow: 0 0 8px rgba(184, 137, 51, 0.25);
  outline: none;
}

/* ====== BOTÃO ====== */
.btn-enviar {
  display: block;
  width: 100%;
  max-width: 250px;
  margin: 20px auto 0;
  padding: 14px 0;
  background: #b88933;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-enviar:hover {
  background: #a6782a;
  transform: scale(1.03);
}


/* ====== SEÇÃO SOBRE ====== */
.sobre-sec {
  width: 100%;
  background: linear-gradient(to bottom, #fffdf9, #f9f4e8);
  padding: 80px 0;
  display: flex;
  justify-content: center;
}

.sobre-container {
  width: 90%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

/* Texto */
.sobre-texto {
  flex: 1 1 500px;
}

.sobre-texto h2 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  color: #b88933;
  margin-bottom: 25px;
  text-align: left;
  position: relative;
}

.sobre-texto h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #d6b676;
  margin-top: 8px;
}

.sobre-texto p {
  color: #444;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Imagem */
.sobre-imagem {
  flex: 1 1 400px;
  text-align: center;
}

.sobre-imagem img {
  width: 100%;
  max-width: 450px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 3px solid #f0e4c8;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sobre-imagem img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Responsivo */
@media (max-width: 850px) {
  .sobre-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .sobre-texto h2 {
    text-align: center;
  }

  .sobre-texto h2::after {
    margin: 10px auto 0;
  }
}



.icones-fixos {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.icones-fixos a {
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  background: none; /* NÃO DEFINE COR AQUI */
}


.icones-fixos a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

/* WhatsApp */
.icone-whatsapp {
  background-color: #25D366;
}

/* Carrinho */
.icone-carrinho {
  background-color: #A24713;
}


.icones-fixos {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.icones-fixos a {
  background: #A24713;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
}

/* Badge (contador do carrinho) */
.badge-carrinho {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff3333;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}


/* ====== RODAPÉ ====== */
.rodape {
  background-color: #A24713;
  color: #f6eee3;
  padding: 50px 0 20px;
  font-size: 14px;
}

.rodape-conteudo {
  width: 90%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.descricao {
  flex: 1 1 250px;
  margin-bottom: 30px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.links h4 {
  color: #b88933;
  margin-bottom: 10px;
}

.links ul {
  list-style: none;
}

.links li {
  margin-bottom: 6px;
}

.copy {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #e6d9c3;
  padding-top: 15px;
  font-size: 13px;
  color: #777;
}
