/* ======== BASE ======== */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #f6f7f8;
  color: #333;
  scroll-behavior: smooth;
}

/* ======== HEADER ======== */
.top-header {
  position: relative;
  background: rgba(225, 127, 74, 0.3);
  text-align: center;
  padding: 25px 0 10px 0;
  overflow: visible;
}

.header-content {
  position: relative;
  z-index: 2;
}

/* ======== LOGO EM COLUNA ======== */
.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
  margin-bottom: 15px;
}

.logo-wrapper img.logo-symbol {
  width: 110px;
  height: auto;
  border-radius: 50%;
}

.logo-wrapper img.logo-text {
  width: 180px;
  height: auto;
}

/* ======== SOCIAL ICONS ======== */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-bottom: 32px;
}

.social-icons img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.social-icons img:hover {
  transform: scale(1.15);
}

/* ======== SEARCH ======== */
.search-row {
  position: absolute;
  bottom: -65px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.search-row input {
  width: 90%;
  max-width: 650px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 15px;
  outline: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: all 0.3s ease;
}

.search-row input:focus {
  border-color: #e17f4a;
  box-shadow: 0 4px 12px rgba(225, 127, 74, 0.25);
}

/* ======== BOTÃO DE COMPARTILHAR ======== */
.share-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 10;
}

.share-btn img {
  width: 22px;
  height: 22px;
}

.share-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

/* ======== MODAL DE COMPARTILHAMENTO ======== */
.share-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 🔹 animação de entrada */
.share-modal.show {
  display: flex;
  opacity: 1;
  animation: zoomIn 0.25s ease forwards;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ======== CONTEÚDO ======== */
.share-content {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 8px 20px 18px; /* 🔹 margem superior menor */
  text-align: center;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

/* ======== BOTÃO X (VISUAL) ======== */
.close-share {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 22px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}

.close-share:hover {
  color: #e17f4a;
}

/* ======== ÍCONES DA MODAL ======== */
.share-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.share-icons a {
  background: #f7f7f7;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.share-icons a:hover {
  transform: scale(1.08);
  background: #fbe3d2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.share-icons img {
  width: 22px;
  height: 22px;
}

/* Campo de link */
.share-link {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.share-link input {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.share-link button {
  background: #e17f4a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600;
}

.share-link button:hover {
  background: #cf713f;
}

/* ======== PRODUCT GRID ======== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  justify-items: center;
  padding: 45px 25px 0;
}

/* ======== ANIMAÇÃO DOS CARDS ======== */
.product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: all 0.35s ease;
  cursor: pointer;
  width: 100%;
  max-width: 230px;
  opacity: 0;
  transform: translateY(30px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* ======== FADE-IN SUAVE NAS IMAGENS ======== */
.product-card img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.4s ease, filter 0.3s ease;
}

.product-card img.loaded {
  opacity: 1;
}

.product-card:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.product-card p {
  font-size: 15px;
  margin: 12px 0 16px;
  padding: 0 8px;
  color: #222;
  font-weight: 400 !important;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3em;
}

/* ======== PAGINATION ======== */
.pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px 0;
}

.page-btn {
  background: #e17f4a;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.page-btn:hover {
  background: #cf713f;
}

/* ======== FOOTER ======== */
.footer {
  background: rgba(225, 127, 74, 0.15);
  color: #333;
  text-align: center;
  padding: 15px 10px;
  font-size: 13px;
  margin-top: 30px;
  border-top: 1px solid rgba(225, 127, 74, 0.2);
}

/* ======== MOBILE RESPONSIVO ======== */
@media (max-width: 768px) {

  .top-header { padding: 18px 0 8px; }

  .logo-wrapper img.logo-symbol { width: 85px; }
  .logo-wrapper img.logo-text { width: 140px; }

  .social-icons { gap: 16px; margin-bottom: 20px; }
  .social-icons img { width: 26px; height: 26px; }

  .search-row { bottom: -48px; } /* 🔹 Barra de busca mais próxima dos produtos */
  .search-row input {
    font-size: 14px;
    padding: 11px 14px;
    border-radius: 10px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 42px 10px 0;
  }

  .product-card {
    max-width: 110px;
    border-radius: 10px;
    transition: transform 0.25s ease;
  }

  .product-card p {
    font-size: 12.5px;
    margin: 6px 0 8px;
    padding: 4px;
    color: #222;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 32px;
  }

  .share-btn {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
  }

  .share-btn img,
  .share-icons img {
    width: 20px;
    height: 20px;
  }

  .share-icons a {
    width: 38px;
    height: 38px;
  }
}
