/* ============================
   PETSHOP 4 PATAS - ESTILO
   ============================ */

:root {
  --cor-principal: #c4520c;
  --cor-secundaria: #f4b942;
  --cor-destaque: #ffcc33;
  --cor-fundo: #fffdf5;
  --cor-texto: #333;
  --cor-card: #ffffff;
  --sombra: rgba(0, 0, 0, 0.15);
  --raio: 16px;
  --gap: 24px;
  --max-width: 1200px;
}

/* ----------------------------
   BASE
---------------------------- */
body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  overflow-x: hidden;
}

/* ----------------------------
   HEADER FIXO
---------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(90deg, var(--cor-principal), #c4520c);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
}

.logo img {
  height: 60px;
  margin-right: 12px;
  border-radius: 12px;
  animation: flutuar 3s ease-in-out infinite;
}

@keyframes flutuar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ----------------------------
   MENU DE NAVEGAÇÃO
---------------------------- */
nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 100px;
  padding: 100px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
}

nav ul li a:hover {
  color: var(--cor-destaque);
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--cor-destaque);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* ----------------------------
   SEÇÃO DE PRODUTOS / SERVIÇOS
---------------------------- */
.products {
  margin-top: 130px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  padding: 20px 8%;
  max-width: var(--max-width);
  margin-inline: auto;
}

.card {
  background: var(--cor-card);
  border-radius: var(--raio);
  box-shadow: 0 8px 24px var(--sombra);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
}

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

.card h2 {
  margin: 16px 16px 8px;
  font-size: 20px;
  color: var(--cor-principal);
}

.card p {
  margin: 0 16px 16px;
  font-size: 15px;
  color: #555;
  flex: 1;
}

.precos {
  margin: 0 16px 12px;
}

.precos .antigo {
  text-decoration: line-through;
  color: #aaa;
  font-size: 14px;
  margin-right: 6px;
}

.precos .atual {
  color: var(--cor-secundaria);
  font-weight: 700;
  font-size: 18px;
}

/* Etiqueta de desconto */
.discount-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--cor-destaque);
  color: #222;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
}

/* Botão de agendar */
.agendar-button {
  background: linear-gradient(90deg, var(--cor-secundaria), var(--cor-destaque));
  color: #222;
  border: none;
  padding: 12px 20px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 15px;
  margin: 0 16px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.agendar-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* ----------------------------
   SIDEBAR DO CARRINHO
---------------------------- */
.sidebar {
  position: fixed;
  right: 20px;
  top: 110px;
  width: 280px;
  background: #fff;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1200;
}

.sidebar.ativo {
  transform: translateX(0);
  opacity: 1;
}

.sidebar p {
  font-size: 15px;
  text-align: center;
  color: #444;
  margin-bottom: 6px;
}

.sidebar button {
  margin-top: 8px;
  background: transparent;
  border: 2px solid var(--cor-principal);
  color: var(--cor-principal);
  border-radius: 8px;
  padding: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar button:hover {
  background: var(--cor-principal);
  color: #fff;
}



footer {
  background: linear-gradient(135deg, #c4520c, #c4520c);
  color: #fff;
  padding: 40px 0 20px;
  font-family: "Poppins", sans-serif;
  position: relative;
  overflow: hidden;
}

/* Pata decorativa */
footer::before {
  content: "🐾";
  position: absolute;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.08);
  top: 20px;
  left: 30px;
  transform: rotate(-15deg);
}

footer::after {
  content: "🐾";
  position: absolute;
  font-size: 100px;
  color: rgba(255, 255, 255, 0.08);
  bottom: 20px;
  right: 50px;
  transform: rotate(25deg);
}

/* Container principal */
.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0 40px;
}

/* Colunas */
.footer-col {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-col h4 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
}

.footer-col h4::after {
  content: "";
  width: 40px;
  height: 3px;
  background-color: #FFD54F;
  position: absolute;
  left: 0;
  bottom: -6px;
  border-radius: 2px;
}

/* Links */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: #FFD54F;
  transform: translateX(5px);
}

/* Redes sociais */
.social-icons {
  display: block;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: white;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #FFD54F;
  color: #333;
  transform: scale(1.1) rotate(5deg);
}

/* Newsletter */
.newsletter input {
  padding: 10px 15px;
  border: none;
  border-radius: 25px;
  outline: none;
  width: 70%;
  margin-bottom: 10px;
}

.newsletter button {
  background-color: #FFD54F;
  color: #333;
  padding: 10px 25px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.newsletter button:hover {
  background-color: #FFC107;
  transform: scale(1.05);
}

/* Linha inferior */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  font-size: 14px;
  color: #eee;
}

/* Ícones de pagamento */
.payment-icons {
  display: flex;
  justify-content: center;
  margin: 10px 0;
  gap: 15px;
  font-size: 30px;
}

.payment-icons i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.payment-icons i:hover {
  transform: scale(1.2);
  color: #FFD54F;
}

/* Cores personalizadas no hover */
.social-icons a:nth-child(1):hover {
  background-color: #E4405F; /* Instagram */
  color: white;
}

.social-icons a:nth-child(2):hover {
  background-color: #1877F2; /* Facebook */
  color: white;
}

.social-icons a:nth-child(3):hover {
  background-color: #FF0000; /* YouTube */
  color: white;
}

.social-icons a:nth-child(4):hover {
  background-color: #000000; /* TikTok */
  color: white;
}


@keyframes caminhar {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ----------------------------
   RESPONSIVIDADE
---------------------------- */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 16px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
  }

  .products {
    padding-top: 160px;
  }

  .logo img {
    height: 50px;
  }
}

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

  footer {
    font-size: 13px;
    padding: 20px;
  }
}


/* ======================
   SEÇÃO DE SERVIÇOS
====================== */
.servicos-container {
  margin-top: 120px;
  padding: 40px 8%;
  background: linear-gradient(180deg, #fffef9 0%, #fffdf4 100%);
  position: relative;
  overflow: hidden;
}

/* pegadas decorativas no fundo */
.servicos-container::before {
  content: "🐾 🐾 🐾 🐾 🐾";
  position: absolute;
  font-size: 40px;
  color: rgba(200, 200, 200, 0.2);
  top: 10%;
  left: 5%;
  transform: rotate(-20deg);
}

.servicos-container::after {
  position: absolute;
  font-size: 40px;
  color: rgba(200, 200, 200, 0.2);
  bottom: 10%;
  right: 5%;
  transform: rotate(20deg);
}

/* título */
.servicos-container h1 {
  text-align: center;
  font-size: 38px;
  font-weight: 800;
  color: #5b911f;
  margin-bottom: 40px;
  position: relative;
}

.servicos-container h1 i {
  color: #f4b942;
  margin-right: 10px;
}

/* GRID DOS CARDS */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  justify-content: center;
  align-items: stretch;
}

/* CARD */
.servico-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.servico-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* imagem */
.servico-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* conteúdo interno */
.servico-card .conteudo {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.servico-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.servico-card p {
  font-size: 15px;
  color: #666;
  flex-grow: 1;
}

.servico-card .preco {
  margin: 16px 0;
  font-size: 18px;
  font-weight: 700;
  color: #5b911f;
}

/* botão */
.btn-agendar {
  background: linear-gradient(90deg, #f4b942, #ffd54f);
  color: #222;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  align-self: center;
  transition: all 0.3s ease;
  font-size: 15px;
}

.btn-agendar:hover {
  background: linear-gradient(90deg, #ffd54f, #ffca28);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* Responsivo */
@media (max-width: 768px) {
  .servicos-container {
    padding: 40px 6%;
  }

  .servicos-container h1 {
    font-size: 32px;
  }

  .servico-card img {
    height: 180px;
  }
}
