/* ================= RESET & BASE ================= */

* {

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;


  font-family: SF Pro Text, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Remove zoom por duplo toque no mobile */
html, body {
  touch-action: manipulation;
}

:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

main {
 main {
  background:#e5d5d5 100%;
}

}

/* ================= HEADER ================= */

.header {

  position: sticky;
    top: 0;
    z-index: 3;

  width: 100%;
  height: 100px;
  background-color: rgba(211, 51, 127, 0.5);
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;

  /* DIMINUI O ESPAÇO LATERAL */
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* LOGO */
.logo {
  margin-left: -10px; /* puxa levemente pra esquerda */
}

.logo img {
  height: 72px; /* antes 85px */
  user-select: none;
}

/* SEARCH */
.search {
  flex: 1;
  max-width: 540px; /* um pouco menor */
  position: relative;

  margin-left: -10px; /* aproxima da logo */
}

.search input {
  width: 100%;
  height: 50px;
  padding: 0 56px 0 24px;

  border-radius: 7px;
  border: none;
  outline: none;

  background-color: #fff2f7;
  font-size: 17px;
  color: #333;

  transition: box-shadow 0.3s ease;
}

.search input::placeholder {
  color: #000;
  opacity: 0.61;
}

.search input:focus {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/* LUPA */
.search .lupa {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.search .lupa:hover {
  transform: translateY(-50%) scale(1.08);
}

/* CARRINHO */
.cart-icon {
  position: relative;
}

.cart-icon img {
  width: 45px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cart-icon img:hover {
  transform: scale(1.08);
}

#cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: #d3337f;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}


/* ================= BANNER ================= */

.banner {
  width: 100%;
  background-color: transparent;
  display: flex;
  justify-content: center;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
  animation: fadeBanner 1.2s ease;
}

@keyframes fadeBanner {
  from {
    opacity: 0;
    filter: blur(6px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* ================= BENEFÍCIOS ================= */

.beneficios {
  padding: 28px 0;
   background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f7eeee 10%,
    #e5d5d5 65%,
    #e5d5d5 100%
  );
}

.beneficios-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 40px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.beneficio {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;

  opacity: 0;
  transform: translateY(20px);
  animation: surgir 0.8s ease forwards;
}

.beneficio:nth-child(1) { animation-delay: 0.1s; }
.beneficio:nth-child(3) { animation-delay: 0.3s; }
.beneficio:nth-child(5) { animation-delay: 0.5s; }

.beneficio img {
  width: 56px;
}

.beneficio .texto strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.74);
}

.beneficio .texto span {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.47);
}

.divisor {
  width: 1px;
  height: 56px;
  background-color: rgba(211, 51, 127, 0.28);
  margin: 0 32px;
}

.linha-inferior {
  max-width: 1200px;
  margin: 24px auto 0;
  height: 1px;
  background-color: rgba(211, 51, 127, 0.28);
}

@keyframes surgir {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= CHAVEIROS ================= */

.chaveiros {
  padding: 20px 20px;
  background-color: #e4d5d5;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #d3337f;
  margin: 10px auto 0;
  border-radius: 4px;
}

.chaveiro-container {
  max-width: 1100px;
  margin: 40px auto 0;
  background-color: rgba(211, 51, 127, 0.09);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
}

.tamanho {
  font-size: 20px;
  opacity: 0.7;
}

.chaveiro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.chaveiro-grid img {
  width: 100%;
  border-radius: 12px;
}

.chaveiro-grid img:hover {
    transform: translateY(-3px);
}

.preco-convite {
  margin: 22px 0 18px;
  text-align: center;
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.65);
}

.preco-convite span {
  color: rgba(211, 51, 127, 0.97); /* #d3337f com 97% */
  font-weight: 600;
  font-size: 1.2rem;
}


.btn-eu-quero {
  background-color: #d3337f;
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-eu-quero:hover {
  transform: translateY(-2px);
  font-size: 17px;
  box-shadow: 0 10px 24px rgba(211, 51, 127, 0.35);
}

/* ================= POLAROIDS ================= */

.polaroids {
  padding: 20px 20px;
  background-color: #e5d5d5;
}

.polaroid-grid {
  max-width: 1200px;
  margin: 10px auto 0;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.polaroid-card {
  background-color: rgba(211, 51, 127, 0.09);
  border-radius: 22px;
  padding: 22px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.polaroid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.polaroid-card img {
  width: 100%;
  border-radius: 12px;
}

.polaroid-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(0,0,0,0.75);
  text-align: center;
}


/* ================= CARRINHO MODAL ================= */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-modal {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  height: 100vh;
  background: #fff;
  padding: 24px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transition: right 0.35s ease;
  z-index: 999;

  display: flex;
  flex-direction: column;
}

.cart-modal.active {
  right: 0;
}

/* HEADER DO CARRINHO */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-header h3 {
  font-size: 20px;
  font-weight: 600;
}

.cart-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* ITENS */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: center;
}

.cart-item img {
  width: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.card-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-info span {
  font-size: 13px;
  opacity: 0.7;
}

/* CONTROLE DE QUANTIDADE */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

/* Botões + e - */
.quantity-control button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background-color: #d3337f;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.2s ease;
}

.quantity-control button:hover {
  background-color: #e5e5e5;
  transform: scale(1.05);
}

.quantity-control button:active {
  transform: scale(0.95);
}

/* Número */
.quantity-control span {
  min-width: 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #333;
}


/* FINALIZAR */
.btn-finalizar {
  margin-top: 20px;
  padding: 14px;
  background: #d3337f;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* PREÇO */
.item-price {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* TOTAL */
.cart-total {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.1);

  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

/* ================= SCROLL INTERNO DO CARRINHO ================= */

.cart-modal {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Área dos produtos (rolável) */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}

/* Scroll bonito */
.cart-items::-webkit-scrollbar {
  width: 6px;
}

.cart-items::-webkit-scrollbar-thumb {
  background: rgba(211, 51, 127, 0.4);
  border-radius: 10px;
}

.cart-items::-webkit-scrollbar-track {
  background: transparent;
}

/* Rodapé fixo 
.cart-footer {
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.1);
  background: #fff;
}*/

/* Botão sempre visível */
.btn-finalizar {
  width: 100%;
}


/* EXTRAS */


.extras-section {
  padding: 40px 20px;
  background: #e5d5d5;
  text-align: center;
}

.extras-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 40px;
}

/* CARROSSEL */
.extras-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 60px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.carousel-track img {
  width: 260px;
  border-radius: 29px;
  flex-shrink: 0;
}

/* SETAS */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.carousel-arrow.left {
  opacity: 75%;
  z-index: 1;
  left: 10px;
}

.carousel-arrow.right {
  opacity: 75%;
  z-index: 1;
  right: 10px;
}

/* CTA */
.extras-cta {
  margin-bottom: 70px;
}

.extras-cta h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.extras-cta p {
  margin-bottom: 28px;
  color: #555;
}

/* REGULAMENTO */
.regulamento-title {
  font-size: 26px;
  margin-bottom: 20px;
}

.regulamento-title::after{
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #d3337f;
  margin: 10px auto 0;
  border-radius: 4px;
}

.regulamento-title span {
  color: #737373;
}

.regulamento-box {
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(211, 51, 127, 0.09);
  border-radius: 22px;
  padding: 32px;
  border: 2px solid #e95c9c;
  text-align: left;
}

.regulamento-box p {
  font-weight: bold;
  line-height: 1.7;
  color: #444;
}

.btn-padrao{
  background-color: #d3337f;
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-padrao:hover{
  font-size: 18px;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(211, 51, 127, 0.35);
}

/* ================= FEEDBACKS ================= */

.feedbacks {
  padding: 1px 1px;
  background-color: #e5d5d5;
  text-align: center;
  margin-bottom: 0px;
}

.feedbacks h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
}

.feedback-stars {
  margin-bottom: 40px;
}

.feedback-stars img {
  width: 160px;

}

/* GRID */
.feedbacks-grid {
  max-width: 1200px;
  padding-bottom: 90px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* CARDS */
.feedback-card {
  width: 100%;
  transition: transform 0.35s ease;
}

.feedback-card:hover {
  transform: translateY(-6px);
}

/* ================= ANIMAÇÃO SUAVE ================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* AUTOCOMPLETE */
.autocomplete-box {
  position: absolute;
  top: 55px;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  overflow: hidden;
  z-index: 99;
}

.autocomplete-box div {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.autocomplete-box div:hover {
  background: #f6f6f6;
}

/* HIGHLIGHT */

.highlight {
  background: rgba(211, 51, 127, 0.18);
  padding: 2px 6px;
  border-radius: 6px;
}


mark {
  background: #ffd6e8;
  color: #000;
  border-radius: 4px;
  padding: 0 4px;
}

/* NOT FOUND */
.not-found {
  text-align: center;
  margin: 60px 0;
  font-size: 18px;
  color: #737373;
}


/* ANIMAÇÃO PRODUTOS */
.chaveiro-container,
.polaroid-card {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.popup-busca {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.popup-busca.active {
  opacity: 1;
  pointer-events: all;
}

.popup-content {
  background: #fff;
  padding: 32px;
  border-radius: 18px;
  text-align: center;
  max-width: 320px;
  animation: scaleIn 0.3s ease;
}

.popup-content h3 {
  margin-bottom: 8px;
}

.popup-content p {
  color: #666;
  margin-bottom: 20px;
}

.popup-content button {
  background: #d3337f;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


.search-suggestions {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  overflow: hidden;
  display: none;
  z-index: 99;
  backdrop-filter: blur(12px);
}

.search-suggestions.active {
  display: block;
}

.search-suggestions div {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.search-suggestions div:hover {
  background: rgba(214, 75, 124, 0.08);
}


/* ================= FOTOS SIMPLES ================= */

.fotos-simples {
  padding: 40px 20px;
  background: #e5d5d5;
}

.fotos-grid {
  max-width: 1200px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.foto-card {
  background: rgba(211, 51, 127, 0.09);
  border-radius: 22px;
  padding: 26px;
  text-align: center;
  align-items: center;
  flex-direction: column;
}

.foto-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* VARIAÇÕES VISUAIS DE TAMANHO */
.tamanho-10x15 img {
  aspect-ratio: 2 / 3;
  max-width: 250px;
}

.tamanho-12x18 img {
  aspect-ratio: 2 / 3;
  max-width: 290px;
}

.tamanho-a4 img {
  aspect-ratio: 201 / 287;
}


.foto-title {
  margin-top: 14px;
  font-weight: 600;
}

.foto-preco {
  margin: 12px 0 18px;
  font-size: 14px;
}

.foto-preco span {
  color: #d3337f;
  font-weight: 600;
}

/* MOBILE */
@media (max-width: 768px) {
  .fotos-grid {
    grid-template-columns: 1fr;
  }
}



/* =====================================================
   BASE (DESKTOP - mantém tudo como já está)
===================================================== */


.footer {
  background: rgba(254, 254, 254, 0.3);
  padding: 30px 5% 30px;
 /* border-top: 1px solid #e6b6c5;*/
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
  padding-top: 25px;
}

.footer.show {
  opacity: 1;
  transform: translateY(0);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.footer-brand h2{
  font-size: 1.6rem;
  text-decoration: none;
  margin-bottom: 10px;
  cursor: pointer;
}

.footer-brand h2:hover {
  color: #d64b7c;
}

.footer-brand p {
  font-size: 0.95rem;
  color: #666;
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #d64b7c;
}

.footer-signature {
  display: block;
  margin-top: 10px;
  font-size: 0.75rem;
  color: #999;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.6s ease;
}

.footer-signature a {
  text-decoration: none;
  font-weight: 500;
  color: #999;
  transition: color 0.3s ease;
}

.footer-signature a:hover {
  color: #d64b7c; /* rosa do site */
}


.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.footer-social img {
  width: 28px;
  transition: transform 0.3s ease, opacity 0.3s;
}

.footer-social a:hover img {
  transform: scale(1.15);
  opacity: 0.8;
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

/* 📱 MOBILE */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
    max-width: 260px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}




/* =====================================================
   BASE (DESKTOP - mantém tudo como já está)
===================================================== */

/* Divider dos benefícios (horizontal no desktop) */
.divisor {
  width: 1px;
  height: 40px;
  background-color: #f3a0b8;
}

/* =====================================================
   TABLET (iPad, tablets Android)
===================================================== */
@media (min-width: 769px) and (max-width: 1024px) {

  /* HEADER */
  .header {
    padding: 24px 0;
  }

  .header-container {
    padding: 0 28px;
    gap: 18px;
  }

  /* BENEFÍCIOS */
  .beneficios-container {
    flex-direction: column;
    gap: 22px;
  }

  .beneficio {
    justify-content: center;
    text-align: center;
  }

  /* Divider igual ao da imagem (linha fina horizontal) */
  .divisor {
    width: 80px;
    height: 1px;
    margin: 0 auto;
  }

  /* PRODUTOS */
  .chaveiro-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .polaroid-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CARROSSEL — NÃO QUEBRA */
  .carousel-track {
    gap: 16px;
  }

  .carousel-track img {
    width: 42%;
  }

  /* FEEDBACKS */
  .feedbacks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* CARRINHO (CORREÇÃO DO BUG) */
  .cart-modal {
    width: 420px;
  }
}

/* =====================================================
   MOBILE (CELULAR)
===================================================== */
@media (max-width: 768px) {

  /* HEADER */
  .header {
    padding: 20px 0;
  }

  .header-container {
    padding: 0 16px;
    gap: 14px;
  }

  .logo img {
    height: 44px;
  }

  /* BUSCA */
  .search input {
    height: 42px;
    font-size: 13px;
    padding: 0 46px 0 16px;
  }

  .search .lupa {
    width: 20px;
    height: 20px;
    right: 14px;
  }

  /* BENEFÍCIOS */
  .beneficios-container {
    flex-direction: column;
    gap: 22px;
    padding: 0 20px;
  }

  .beneficio {
    justify-content: center;
    text-align: center;
  }

  .beneficio img {
    width: 40px;
  }

  /* Divider igual ao print */
  .divisor {
    width: 80px;
    height: 1px;
    margin: 0 auto;
  }

  /* PRODUTOS */
  .chaveiro-grid {
    grid-template-columns: 1fr;
  }

  /* Mostra apenas a primeira imagem no mobile */
  .chaveiro-grid img:not(:first-child) {
    display: none;
  }

  .polaroid-grid {
    grid-template-columns: 1fr;
  }

  /* CARROSSEL */
  .carousel-track {
    gap: 12px;
  }

  .carousel-track img {
    width: 48%;
  }

  /* FEEDBACKS */
  .feedbacks {
    padding: 60px 16px;
  }

  .feedbacks h2 {
    font-size: 26px;
  }

  .feedback-stars img {
    width: 130px;
  }

  .feedbacks-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feedback-card {
    max-width: 360px;
    margin: 0 auto;
  }

  /* CARRINHO */
  .cart-modal {
    width: 100%;
  }
}
