/* =========================
   Variáveis de Cores
   ========================= */
:root {
  --marrom: #a67c52;
  --laranja: #f97316;
  --branco: #ffffff;
  --preto: #1a1a1a;
  --cinza-claro: #f5f5dc;
}

/* =========================
   Reset e Base
   ========================= */
html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--branco);
  color: var(--preto);
  padding-top: 140px; /* espaço para header fixa, ajuste conforme altura real da header */
}

/* =========================
   Header e Logo
   ========================= */
header {
  background: #f97316;
  color: var(--branco);
  padding: 0;
  min-height: unset;
  position: relative; /* necessário para o posicionamento absoluto funcionar */
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  background-color: #f97316;
  padding: 2px;
  margin-left: 10px; /* diminua aqui */
}

/* =========================
   Header superior com ícones (WhatsApp e Instagram)
   ========================= */
.header-buttons-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f97316;
  padding: 0 40px;
  min-height: 48px;
  z-index: 20;
  position: relative;
}
.header-icons-left,
.header-icons-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-icons-left {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  margin-left: 24px;
}
.header-icons-right {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
  position: static;
  right: unset;
  top: unset;
  z-index: 10;
  margin-left: 32px;
}
.whatsapp-header-icon img {
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.instagram-header-icon img {
  border-radius: 6px;
  background: none;
  padding: 0;
  box-shadow: none;
}

/* =========================
   Botões Header (WhatsApp)
   ========================= */
.whatsapp-header-button {
  background-color: #25d366;
  color: white;
  padding: 8px 18px 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border: 2px solid #1ebe5b;
  transition: background 0.3s, border 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
}
.whatsapp-header-button img {
  margin: 0 6px 0 0;
  background: none;
  box-shadow: none;
}

/* =========================
   Centralização da área da logo, busca e links
   ========================= */
.logo-central-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f97316;
  transition: all 0.3s cubic-bezier(.77,0,.18,1);
  padding-top: 6px;
  padding-bottom: 0;
  margin-top: 0;
  border: none;
  box-sizing: border-box;
}

.logo-search-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  position: relative;
}

.logo-search-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo-title {
  text-align: center;
  margin-bottom: 0;
}

/* =========================
   Barra de Busca (Search)
   ========================= */
.search-bar-header {
  margin: 0 auto;
  max-width: 1400px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-container {
  max-width: 1400px;
  width: 100%;
  border: 2.5px solid #000; /* Borda preta */
  border-radius: 30px;
  background: #ffffff;
  padding: 4px 18px;
  box-shadow: 0 2px 8px rgba(249,115,22,0.08);
  display: flex;
  align-items: center;
  position: relative;
}

.search-container input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.1rem;
  padding: 8px 0;
  width: 100%;
  color: var(--preto);
}

.search-container input::placeholder {
  color: #f97316;
  opacity: 0.8;
  font-style: italic;
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}

.search-icon svg {
  width: 22px;
  height: 22px;
  stroke: #111;
  fill: none;
}

/* =========================
   Navegação Principal
   ========================= */
.main-nav {
  display: flex;
  justify-content: center;
  background: linear-gradient(to right, var(--marrom), var(--laranja));
  gap: 35px;
  flex-wrap: wrap;
  height: 40px;
  align-items: center;
}

.main-nav a {
  color: var(--branco);
  text-decoration: none;
  font-weight: bold;
}
.main-nav a:hover {
  text-decoration: underline;
}

/* Ícone de casa na navegação */
.nav-icon-home {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 18px;
  height: 40px;
  width: 40px;
}
.nav-icon-home svg {
  display: block;
  transition: filter 0.2s;
}
.nav-tooltip {
  visibility: hidden;
  opacity: 0;
  background: #23235b;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 4px 12px;
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 13px;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}
.nav-icon-home:hover .nav-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Dropdown (se usar) */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  color: var(--branco);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.dropdown > a:hover, .dropdown > a:focus {
  background: #fff7f3;
  color: #f97316;
}
.dropdown-arrow {
  display: inline-block;
  margin-left: 2px;
  font-size: 1.1em;
  color: #23235b;
  transition: transform 0.2s;
}
.dropdown:hover .dropdown-arrow, .dropdown:focus-within .dropdown-arrow {
  transform: rotate(180deg);
  color: #f97316;
}

/* Dropdown padrão: só aparece ao hover/focus, fundo branco, texto escuro */
.dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff !important;
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(35,35,91,0.10);
  border-radius: 10px;
  z-index: 999;
  padding: 10px 0;
  flex-direction: column;
  gap: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content {
  display: flex;
}
.dropdown-content a {
  color: #23235b !important;
  background: none !important;
  opacity: 1 !important;
  min-width: 160px;
  min-height: 36px;
  display: flex;
  align-items: center;
  color: #23235b;
  padding: 8px 18px;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  background: none;
  transition: background 0.18s, color 0.18s;
  opacity: 1;
}
.dropdown-content a:hover, .dropdown-content a:focus {
  background: #f97316 !important;
  color: #fff !important;
}
.logo-links {
  gap: 0;
}

/* =========================
   Carrossel
   ========================= */
.custom-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto 40px auto;
  overflow: visible;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-track {
  display: flex;
  gap: 32px;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
  align-items: center;
  height: 100%;
}
.carousel-slide {
  min-width: 80%;
  max-width: 80%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  opacity: 0.5;
  transform: scale(0.92);
  transition: opacity 0.4s, transform 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  color: #f97316;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.carousel-arrow.left { left: 10px; }
.carousel-arrow.right { right: 10px; }
.carousel-arrow:hover {
  background: #f97316;
  color: #fff;
  box-shadow: 0 4px 16px rgba(249,115,22,0.18);
}

/* =========================
   Seções Principais
   ========================= */
.section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}
.section h2 {
  color: var(--laranja);
  margin-bottom: 20px;
}

/* =========================
   Footer
   ========================= */
.footer {
  background-color: var(--marrom);
  color: var(--branco);
  text-align: center;
  padding: 20px;
}

/* =========================
   Floating Buttons
   ========================= */
.floating-button {
  position: fixed;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 2.5px solid #f97316;
  border-radius: 50%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(249,115,22,0.13), 0 1.5px 6px #fff7f3;
  transition: box-shadow 0.3s, border 0.3s, background 0.3s, transform 0.18s;
  font-size: 1.2rem;
  outline: none;
}
#fav-btn { top: 120px; }
#cart-btn { top: 180px; }
.floating-button svg {
  width: 22px;
  height: 22px;
  stroke: #23235b;
  filter: none;
  fill: none;
  transition: stroke 0.2s, filter 0.2s, transform 0.18s;
}
#fav-btn:hover svg, #cart-btn:hover svg {
  stroke: #f97316;
  filter: drop-shadow(0 0 8px #f97316aa);
  transform: scale(1.12);
}

/* Botões flutuantes favoritos e carrinho estilo minimalista - tamanho reduzido */
.floating-button,
#fav-btn,
#cart-btn {
  background: #fff !important;
  border: 2px solid #7b4f27 !important; /* marrom */
  box-shadow: none !important;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 0 20px 0;
  transition: border 0.2s, background 0.2s;
}

.floating-button svg,
#fav-btn svg,
#cart-btn svg {
  width: 22px;
  height: 22px;
  stroke: #7b4f27 !important; /* marrom */
  fill: none !important;
  filter: none !important;
  background: none !important;
}

/* =========================
   Sidebar Favoritos e Carrinho
   ========================= */
.sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 340px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: right 0.3s cubic-bezier(.77,0,.18,1);
  z-index: 2001;
  padding: 32px 24px 24px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar.open {
  right: 0;
}
.sidebar .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #f97316;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}
.sidebar .close-btn:hover {
  color: #a0522d;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 2000;
  display: none;
}
.overlay.show {
  display: block;
}

/* =========================
   Responsividade
   ========================= */
@media (max-width: 800px) {
  .custom-carousel { height: 180px; }
  .carousel-slide {
    min-width: 90%;
    max-width: 90%;
    border-radius: 18px;
  }
  .carousel-slide img { border-radius: 18px; }
}
@media (max-width: 600px) {
  .logo { width: 60px; height: 60px; }
  .carousel { height: 45vw; min-height: 120px; max-height: 220px; }
  .section { padding: 20px 5px; }
  .main-nav {
    gap: 15px;
    height: auto;
    flex-direction: column;
    padding: 10px 0;
  }
  .dropdown-content {
    flex-direction: column;
    min-width: 120px;
    gap: 10px;
  }
  .user-actions {
    position: static;
    justify-content: center;
    margin: 10px 0 0 0;
    gap: 8px;
  }
  .user-action-btn {
    padding: 6px 10px;
    font-size: 0.95rem;
  }
}
@media (max-width: 900px) {
  .logo-search-row {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .header-icons-right {
    margin-left: 0;
    margin-top: 10px;
  }
  .user-actions.user-actions-top {
    position: static;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 0 0;
  }
  .user-actions.user-actions-top .header-icons-right {
    justify-content: center;
    margin-bottom: 2px;
  }
  .user-actions.user-actions-top .user-actions-row {
    flex-direction: row;
    gap: 8px;
  }
}

/* =========================
   Trilha de Patas no Header
   ========================= */
.paw-trail-bg {
  display: none !important;
}

/* MANTENHA APENAS UMA DESSA: */
.logo-links {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.logo-links a {
  color: var(--branco);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: text-decoration 0.2s, color 0.2s;
}
.logo-links a:hover {
  text-decoration: underline;
  color: var(--laranja);
}

.logo-container,
.custom-carousel {
  max-width: 100vw;
  box-sizing: border-box;
}

/* =========================
   Slogan
   ========================= */
.slogan {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.slogan-destaque {
  background: #fff;
  color: #fa7a13;
  border-radius: 10px;
  padding: 4px 14px;
  font-weight: 700;
  margin-left: 8px;
  display: inline-block;
}

.header-btn {
  background: transparent;
  border: none;
  box-shadow: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  z-index: 1;
}

.header-btn svg {
  width: 28px;
  height: 28px;
  background: none;
  stroke: #7b4f27 !important;
  fill: #fff7f3;
  filter: drop-shadow(0 0 4px #7b4f2733);
  transition: stroke 0.2s, filter 0.2s;
}

#fav-btn:hover svg,
#cart-btn:hover svg {
  stroke: #a0522d !important;
  filter: drop-shadow(0 0 8px #a0522daa);
}

/* Top bar sempre fixa no topo */
/* .header-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 200;
  background: #f97316;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 40px 0 0;
  min-height: 48px;
  box-sizing: border-box;
  border: none;
} */

/* Espaço para não cobrir o conteúdo abaixo */
.logo-central-area {
  position: fixed;
  top: 0; /* igual à altura da top bar */
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f97316;
  transition: all 0.3s cubic-bezier(.77,0,.18,1);
  padding-top: 6px;
  padding-bottom: 0;
  margin-top: 0;
}

/* Estado minimizado */
.logo-central-area.minimized {
  padding-top: 2px;
  padding-bottom: 2px;
  gap: 0;
}
.logo-central-area.minimized .logo {
  width: 120px;
  height: 120px;
  transition: none;
}
.logo-central-area.minimized .slogan {
  font-size: 1.1rem;
  transition: font-size 0.3s;
}
.logo-central-area.minimized .search-bar-header {
  max-width: 400px;
  transition: none;
}

/* Remove duplicidade de #logo-header */
/* #logo-header ruleset removed because it was empty */

/* Restante do seu CSS permanece igual */

/* Botão flutuante WhatsApp pequeno */
#whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#whatsapp-float img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* =========================
   Novos Botões de Ação (Cadastro e Entrar)
   ========================= */
.user-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  position: absolute;
  top: 18px;
  right: 38px;
  z-index: 200;
}
.user-actions.user-actions-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  position: fixed;
  top: 18px;
  right: 38px;
  z-index: 2002;
  background: none;
}
.user-action-btn {
  background: #fff;
  color: #f97316;
  border: 2px solid #f97316;
  border-radius: 8px;
  padding: 6px 18px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, border 0.2s;
  box-shadow: 0 2px 8px rgba(249,115,22,0.08);
  cursor: pointer;
}
.user-action-btn:hover, .user-action-btn:focus {
  background: #f97316;
  color: #fff;
  border-color: #a0522d;
}
@media (max-width: 600px) {
  .user-actions {
    position: static;
    justify-content: center;
    margin: 10px 0 0 0;
    gap: 8px;
  }
  .user-action-btn {
    padding: 6px 10px;
    font-size: 0.95rem;
  }
}

/* =========================
   Modais de Cadastro e Entrar
   ========================= */
.modal-user {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.35);
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.modal-user-content {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px 28px 28px;
  box-shadow: 0 8px 32px rgba(35,35,91,0.13);
  min-width: 320px;
  max-width: 90vw;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.modal-user-content h2 {
  margin: 0 0 12px 0;
  color: #f97316;
  font-size: 1.5rem;
}
.modal-user-content form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.modal-user-content form button.user-action-btn {
  margin-top: 8px;
  width: 100%;
  font-size: 1.08rem;
  padding: 10px 0;
}
.modal-user-content form button.user-action-btn:active {
  background: #a0522d;
  color: #fff;
}
.modal-user-content input {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid #e0e0e0;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}
.modal-user-content input:focus {
  border: 1.5px solid #f97316;
}
.modal-user-content input[type="password"]::-ms-reveal {
  filter: invert(60%) sepia(80%) saturate(400%) hue-rotate(-20deg);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #f97316;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #a0522d;
}
@media (max-width: 600px) {
  .modal-user-content {
    min-width: 90vw;
    padding: 18px 6vw 18px 6vw;
  }
}

/* =========================
   Novas Estilizações para Alinhamento de Botões
   ========================= */
.user-actions.user-actions-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  position: fixed;
  top: 18px;
  right: 38px;
  z-index: 2002;
  background: none;
}
.user-actions.user-actions-top .header-icons-right {
  display: flex;
  gap: 12px;
  margin: 0 0 2px 0;
}
.user-actions.user-actions-top .user-actions-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 0;
}
.user-actions.user-actions-top .user-action-btn {
  margin-top: 0;
}
@media (max-width: 900px) {
  .user-actions.user-actions-top {
    position: static;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 0 0;
    right: 0;
    top: 0;
  }
  .user-actions.user-actions-top .header-icons-right {
    justify-content: center;
    margin-bottom: 2px;
  }
  .user-actions.user-actions-top .user-actions-row {
    flex-direction: row;
    gap: 8px;
  }
}
@media (max-width: 600px) {
  .user-actions.user-actions-top {
    position: static;
    justify-content: center;
    margin: 10px 0 0 0;
    gap: 8px;
    right: 0;
    top: 0;
  }
  .user-action-btn {
    padding: 6px 10px;
    font-size: 0.95rem;
  }
}

/* Remove regras conflitantes e duplicadas para dropdown e user-actions */
.user-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  position: absolute;
  top: 18px;
  right: 38px;
  z-index: 200;
}
.user-actions.user-actions-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  position: fixed;
  top: 18px;
  right: 38px;
  z-index: 2002;
  background: none;
}

/* Faz os botões do topo ficarem atrás da sidebar aberta */
.sidebar.open ~ .user-actions.user-actions-top,
.sidebar.open ~ .user-actions {
  z-index: 100 !important;
  pointer-events: none;
  opacity: 0.2;
}
