/* ============================================
   MABIÊ FESTAS · CSS Redesign
   Tipografia: Playfair Display + Poppins
   Paleta: rosa #e8547a · claro #fff0f4 · cinza #f7f5f5
============================================ */

:root {
  --rosa:        #e8547a;
  --rosa-hover:  #d4456b;
  --rosa-claro:  #fff0f4;
  --rosa-medio:  #fad5e0;
  --rosa-borda:  #f5c2d1;
  --texto:       #2a2228;
  --texto-sec:   #6b5e65;
  --cinza-bg:    #f9f7f7;
  --branco:      #ffffff;
  --sombra-leve: 0 4px 20px rgba(232, 84, 122, .10);
  --sombra-card: 0 6px 30px rgba(0, 0, 0, .07);
  --raio:        16px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--rosa) transparent;
  -webkit-overflow-scrolling: touch;
}

body {
  background: #fefcfd;
}

/* WebKit scrollbar (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--rosa);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--rosa-hover);
}

/* Scrollbar interna dos modais e elementos com overflow */
.modal-conteudo-produto,
#listaCarrinho,
.carrinho {
  scrollbar-width: thin;
  scrollbar-color: var(--rosa-borda) transparent;
}

.modal-conteudo-produto::-webkit-scrollbar,
#listaCarrinho::-webkit-scrollbar,
.carrinho::-webkit-scrollbar {
  width: 5px;
}

.modal-conteudo-produto::-webkit-scrollbar-thumb,
#listaCarrinho::-webkit-scrollbar-thumb,
.carrinho::-webkit-scrollbar-thumb {
  background: var(--rosa-borda);
  border-radius: 10px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--texto);
  background: var(--branco);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ocultar spinners em inputs numéricos */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ============================================
   NAVEGAÇÃO
============================================ */
.navegacao {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232, 84, 122, .12);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .05);
}

.logo-menu {
  position: absolute;
  left: clamp(40px, 6vw, 100px);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-nav-img {
  height: 52px;
  width: auto;
  border-radius: 50%;
  object-fit: cover;
  transition: transform .3s ease;
  box-shadow: 0 2px 10px rgba(232,84,122,.2);
}

.logo-nav-img:hover {
  transform: scale(1.06);
}

.menu {
  display: flex;
  gap: 44px;
  list-style: none;
}

.menu-link {
  position: relative;
  text-decoration: none;
  color: var(--texto);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: color .25s;
}

.menu-link:hover {
  color: var(--rosa);
}

.menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--rosa);
  border-radius: 10px;
  transition: width .3s ease;
}

.menu-link:hover::after {
  width: 100%;
}

.btn-menu {
  position: absolute;
  right: clamp(40px, 6vw, 100px);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--rosa);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  transition: background .25s, transform .2s;
  box-shadow: 0 4px 14px rgba(232,84,122,.3);
}

.btn-menu:hover {
  background: var(--rosa-hover);
  transform: translateY(-1px);
}

/* ============================================
   HERO
============================================ */
.hero-mabie {
  height: 100vh;
  min-height: 600px;
  display: flex;
  overflow: hidden;
  padding-top: 72px;
}

.hero-left {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6% 0 clamp(30px, 6vw, 100px);
  background: var(--branco);
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rosa);
  background: var(--rosa-claro);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 22px;
  width: fit-content;
}

.hero-left h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--texto);
  margin-bottom: 22px;
}

.hero-left h1 em {
  font-style: italic;
  color: var(--rosa);
}

.hero-left p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--texto-sec);
  max-width: 480px;
  margin-bottom: 44px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--rosa);
  color: #fff;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  transition: background .25s, transform .2s;
  box-shadow: 0 6px 20px rgba(232,84,122,.3);
}

.btn-primary:hover {
  background: var(--rosa-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--rosa);
  color: var(--rosa);
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  transition: background .25s, color .25s, transform .2s;
}

.btn-secondary:hover {
  background: var(--rosa);
  color: #fff;
  transform: translateY(-2px);
}

/* Hero lado direito */
.hero-right {
  width: 50%;
  position: relative;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.88) saturate(1.05);
}

/* Gradiente de transição esquerda→direita */
.hero-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,.5) 25%, transparent 55%);
  z-index: 1;
}

/* Logo flutuante sobre a foto */
.hero-logo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(255,255,255,.35), 0 12px 50px rgba(232,84,122,.25);
  animation: float 5s ease-in-out infinite;
}

.hero-logo {
  width: 178px;
  height: 178px;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50%       { transform: translate(-50%, -50%) translateY(-10px); }
}

/* ============================================
   SECTION HEADER (label + título + desc)
============================================ */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rosa);
  margin-bottom: 10px;
}

.foto-titulo,
.produtos-titulo,
.sobre-titulo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--texto-sec);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   GALERIA
============================================ */
.fotos-card {
  padding: 90px 5%;
  background: var(--branco);
}

.galeria-caixa {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.galeria-caixa-foto {
  position: relative;
  border-radius: var(--raio);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--sombra-card);
  aspect-ratio: 1/1;
  border: 2px solid var(--rosa-claro);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
  background: linear-gradient(90deg, #c2b9ca 25%, #d4cade 50%, #c2b9ca 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.galeria-caixa-foto:hover {
  border-color: var(--rosa);
  box-shadow: 0 4px 20px rgba(232,84,122,.2);
  transform: translateY(-4px);
}

.galeria-caixa-foto .foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease, filter .35s ease;
}

/* Dark overlay no hover */
.galeria-caixa-foto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 2;
}

.galeria-caixa-foto:hover::before {
  opacity: 1;
}

/* Texto central no hover */
.galeria-caixa-foto::after {
  content: "Ver fotos";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.8);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .04em;
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
  z-index: 3;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.galeria-caixa-foto:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Blur apenas na imagem */
.galeria-caixa-foto:hover .foto {
  transform: scale(1.08);
  filter: blur(2px);
}

/* Badge de fotos */
.galeria-caixa-foto .foto-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease;
}

.galeria-caixa-foto:hover .foto-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Overlay com texto ao hover */
.foto-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 22px 20px;
  background: linear-gradient(transparent 10%, rgba(42,34,40,.8) 60%);
  color: #fff;
  transform: translateY(6px);
  opacity: .95;
  transition: transform .35s ease, opacity .35s ease;
  z-index: 4;
}

.galeria-caixa-foto:hover .foto-overlay {
  transform: translateY(0);
  opacity: 1;
}

.foto-sub-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.paragrafo-descricao {
  font-size: .82rem;
  opacity: .9;
  line-height: 1.5;
}

/* ============================================
   PRODUTOS
============================================ */
.produtos {
  padding: 90px 5%;
  background: var(--cinza-bg);
}

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.produto {
  background: var(--branco);
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra-card);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid var(--rosa-borda);
}

.produto:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(232,84,122,.18);
}

.produto-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(90deg, #c2b9ca 25%, #d4cade 50%, #c2b9ca 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.produto-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.produto:hover .produto-img-wrap img {
  transform: scale(1.05);
}

.produto-hover-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232,84,122,.55);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  opacity: 0;
  transition: opacity .3s ease;
}

.produto:hover .produto-hover-label {
  opacity: 1;
}

.produto-texto-container {
  padding: 18px 20px 20px;
  background: var(--rosa-claro);
}

.produto-sub-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--rosa);
  margin-bottom: 4px;
}

.produto-paragrafo {
  font-size: .9rem;
  color: var(--texto-sec);
  font-weight: 500;
}

/* ============================================
   SOBRE
============================================ */
.sobre {
  padding: 80px 5%;
  background: var(--branco);
  text-align: center;
}

.sobre-caixa {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--rosa-claro);
  border: 1px solid var(--rosa-borda);
  border-radius: 20px;
  padding: 48px 60px;
  box-shadow: var(--sombra-leve);
}

.sobre-icone {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
}

.sobre-paragrafo {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--texto-sec);
}

.sobre-paragrafo p {
  margin-bottom: 16px;
}

.sobre-paragrafo p:last-child {
  margin-bottom: 0;
}

.sobre-paragrafo strong {
  color: var(--rosa);
  font-weight: 600;
}

/* ============================================
   COMO FUNCIONA
============================================ */
.como-funciona {
  padding: 80px 5%;
  background: var(--cinza-bg);
  text-align: center;
}

.como-funciona h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--texto);
  margin-bottom: 48px;
}

.passos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  max-width: 600px;
  margin: 0 auto;
}

.passo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.numero {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--rosa);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(232,84,122,.3);
}

.texto-produto {
  font-size: .95rem;
  font-weight: 500;
  color: var(--texto);
  white-space: nowrap;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--rosa);
  color: #fff;
  padding: 36px 5% 20px;
  border-radius: 20px 20px 0 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-logo {
  text-align: center;
}

.footer-logo-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 2px solid rgba(255,255,255,.4);
}

.footer-logo p {
  font-size: .8rem;
  opacity: .8;
}

.footer-links h3,
.footer-contato h3 {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  margin-bottom: 10px;
  opacity: .9;
}

.footer-links a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: .85rem;
  margin-bottom: 4px;
  opacity: .8;
  transition: opacity .2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-contato {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-contato {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
}

.item-contato svg {
  width: 16px;
  height: 16px;
  opacity: .8;
  flex-shrink: 0;
}

.item-contato a {
  color: #fff;
  text-decoration: none;
  opacity: .8;
  transition: opacity .2s;
}

.item-contato a:hover {
  opacity: 1;
}

.footer-credito {
  text-align: center;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: .75rem;
  opacity: .7;
}

/* ============================================
   BOTÕES FLUTUANTES
============================================ */
.botoes-flutuantes {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9998;
}

.botoes-flutuantes .icone-carrinho,
.botoes-flutuantes .whatsapp {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: transform .25s ease;
}

.icone-carrinho {
  background: var(--rosa);
  color: #fff;
  cursor: pointer;
  position: relative;
}

#badgeCarrinho {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff3366;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.whatsapp {
  background: #25D366;
  color: #fff;
  text-decoration: none;
}

.botoes-flutuantes .icone-carrinho:hover,
.botoes-flutuantes .whatsapp:hover {
  transform: scale(1.1);
}

/* ============================================
   MODAIS (preservando lógica existente)
============================================ */
/* =========================
   GALLERY LIGHTBOX
   ========================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10001;
  justify-content: center;
  align-items: center;
}

#modalProdutos.modal {
  z-index: 9999;
}

.modal.ativo {
  display: flex;
  animation: fadeInModal .3s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Blur background layer */
.modal-blur-bg {
  position: absolute;
  inset: -80px;
  background-size: cover;
  background-position: center;
  filter: blur(60px);
  opacity: .9;
  transition: background-image .35s ease;
  pointer-events: none;
  z-index: 0;
}

/* Container for the square box */
.modal-container {
  position: relative;
  width: 80vmin;
  max-width: 700px;
  height: 80vmin;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  background: rgba(20,20,30,.3);
  transition: all .4s cubic-bezier(.22,1,.36,1);
}

/* Image wrapper for centering */
.modal-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  cursor: zoom-in;
  transition: cursor .2s;
  user-select: none;
  -webkit-user-drag: none;
  position: relative;
  z-index: 1;
}

.modal-img-wrapper.zoomed {
  cursor: zoom-out;
}

.modal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .3s ease;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.modal-img.fade-in {
  animation: fadeInImg .4s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes fadeInImg {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-img-wrapper.zoomed .modal-img {
  max-width: 95vw;
  max-height: 90vh;
  transform: scale(1);
}

/* Zoom: container expands to full viewport */
.modal-container.zoomed {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none;
}

.modal-container.zoomed .modal-blur-bg {
  display: block;
  opacity: .5;
}

.modal-container.zoomed .modal-img-wrapper {
  padding: 20px;
}

.modal-container.zoomed .modal-img {
  max-width: 100%;
  max-height: 100%;
  box-shadow: none;
}

.modal-container.zoomed .modal-contador {
  z-index: 20;
  bottom: 24px;
}

/* Close button */
.fechar {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  line-height: 1;
  transition: background .2s, transform .2s;
  z-index: 10;
}

.fechar:hover {
  background: rgba(232,84,122,.7);
  transform: scale(1.12);
}

#modalProdutos .fechar {
  position: static;
  background: var(--rosa);
  color: #fff;
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(232,84,122,.3);
  flex-shrink: 0;
}

#modalProdutos .fechar:hover {
  background: var(--rosa-hover);
  transform: scale(1.1);
}

/* Navigation arrows */
.seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  transition: background .2s, transform .2s, box-shadow .2s;
  z-index: 10;
  border: 1px solid rgba(255,255,255,.08);
}

.seta:hover {
  background: rgba(232,84,122,.6);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(232,84,122,.2);
}

.direita { right: 12px; }
.esquerda { left: 12px; }

/* Counter badge */
.modal-contador {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: .8rem;
  font-family: Poppins, sans-serif;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: .5px;
  white-space: nowrap;
  z-index: 5;
}

/* Modal Produtos */
.modal-conteudo-produto {
  position: relative;
  background: var(--branco);
  border-radius: 20px;
  padding: 32px;
  max-width: 1000px;
  width: 94%;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-header-produto {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--rosa-medio);
  padding-bottom: 12px;
}

.modal-header-produto h2 {
  flex: 1;
  text-align: center;
}

#tituloProduto {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--rosa);
  margin: 0;
}

.titulo-carrinho {
  font-size: 1.1rem;
  color: var(--texto-sec);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

#gridProdutos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-content: start;
}

/* ITEM DO GRID DE PRODUTOS */
.item-produto {
  background: var(--branco);
  border: 1px solid var(--rosa-borda);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}

.item-produto:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra-leve);
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-img {
  aspect-ratio: 1/1;
  background: linear-gradient(90deg, #c2b9ca 25%, #d4cade 50%, #c2b9ca 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  width: 100%;
}

.skeleton-text {
  display: block;
  border-radius: 4px;
  background: linear-gradient(90deg, #c2b9ca 25%, #d4cade 50%, #c2b9ca 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.skeleton-text--name {
  height: 16px;
  width: 70%;
  margin: 8px 0;
}

.skeleton-text--desc {
  height: 12px;
  width: 90%;
}

.skeleton-text--price {
  height: 14px;
  width: 50px;
}

.skeleton-text--btn {
  height: 32px;
  width: 110px;
  border-radius: 6px;
}

.item-produto .img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.item-produto .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .25s ease, transform .3s ease;
}

.item-produto .img-wrap:hover img {
  transform: scale(1.05);
}

.item-produto .img-wrap::after {
  content: "🔍";
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255,255,255,.85);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}

.item-produto .img-wrap:hover::after {
  opacity: 1;
}

.card-seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  color: #fff;
  border-radius: 50%;
  font-size: .75rem;
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s, background .2s;
  z-index: 2;
  user-select: none;
}

@media (hover: hover) {
  .card-seta { opacity: 0; }
  .item-produto .img-wrap:hover .card-seta { opacity: .7; }
  .card-seta:hover { background: rgba(232,84,122,.7); }
}

.card-seta--esq { left: 6px; }
.card-seta--dir { right: 6px; }

.card-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}

.card-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .2s, transform .2s;
}

.card-dot.ativo {
  background: var(--rosa);
  transform: scale(1.2);
}

.conteudo {
  padding: 10px 12px 4px;
  flex: 1;
}

.nome {
  font-weight: 600;
  font-size: .85rem;
  color: var(--texto);
  margin-bottom: 2px;
}

.descricao {
  font-size: .78rem;
  color: var(--texto-sec);
  line-height: 1.4;
  margin-bottom: 4px;
}

.rodape-card {
  padding: 4px 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.preco {
  font-size: .9rem;
  color: var(--rosa);
  font-weight: 700;
  white-space: nowrap;
}

.item-produto .btn-add {
  background: var(--rosa);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}

.item-produto .btn-add:hover {
  background: var(--rosa-hover);
}

/* CARRINHO */
.carrinho {
  background: var(--cinza-bg);
  border-radius: 16px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 0;
}

.carrinho h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--rosa);
  margin-bottom: 14px;
}

#listaCarrinho {
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 12px;
}

.carrinho-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rosa-borda);
}

.img-carrinho {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.quantidade {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.quantidade button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--rosa-borda);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--rosa);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.quantidade button:hover {
  background: var(--rosa-claro);
}

#totalCarrinho {
  font-weight: 700;
  color: var(--rosa);
  font-size: 1rem;
  margin-bottom: 14px;
}

.cliente-form {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--rosa-borda);
  margin-bottom: 12px;
}

.campo {
  margin-bottom: 10px;
}

.campo label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--texto-sec);
  margin-bottom: 4px;
}

.campo input {
  width: 100%;
  border: 1px solid var(--rosa-borda);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: 'Poppins', sans-serif;
  font-size: .88rem;
  outline: none;
  transition: border-color .2s;
}

.campo input:focus {
  border-color: var(--rosa);
}

.telefone-grupo {
  display: flex;
  gap: 10px;
}

.ddd { flex: 0 0 80px; }
.telefone { flex: 1; }

.btn-orcamento {
  width: 100%;
  background: var(--rosa);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
  transition: background .2s;
}

.btn-orcamento:hover {
  background: var(--rosa-hover);
}

#btnWhats {
  width: 100%;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
  transition: background .2s;
}

#btnWhats:hover {
  background: #1ebd5a;
}

.carrinho button[onclick="limparCarrinho()"] {
  width: 100%;
  background: transparent;
  color: var(--texto-sec);
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 9px;
  font-size: .82rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: border-color .2s, color .2s;
}

.carrinho button[onclick="limparCarrinho()"]:hover {
  border-color: var(--rosa);
  color: var(--rosa);
}

/* Botão remover (X) do carrinho */
.remover {
  background: none;
  border: none;
  color: #cc3355;
  font-size: 1.1rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s, color .2s, transform .2s;
  flex-shrink: 0;
  margin-left: auto;
}

.remover:hover {
  background: #fce4ec;
  color: #b71c3e;
  transform: scale(1.15);
}

.info-item {
  flex: 1;
  min-width: 0;
}

.info-item .nome {
  font-weight: 600;
  font-size: .85rem;
  color: var(--texto);
  margin-bottom: 2px;
}

.info-item .preco {
  font-size: .8rem;
  color: var(--rosa);
  font-weight: 600;
  margin-bottom: 4px;
}

/* ============================================
   HAMBURGER (mobile)
============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--texto);
  border-radius: 3px;
  transition: transform .3s ease, opacity .3s ease;
}

.hamburger.ativo span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.ativo span:nth-child(2) {
  opacity: 0;
}

.hamburger.ativo span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.menu-btn-mobile {
  display: none;
}

.menu-overlay {
  display: none;
}

body.menu-aberto {
  overflow: hidden;
}

body.modal-aberto {
  overflow: hidden;
}
html.modal-aberto {
  overflow: hidden;
  height: 100%;
}

/* ============================================
   RESPONSIVO
============================================ */
@media (max-width: 992px) {
  .hero-mabie {
    flex-direction: column;
    height: auto;
  }

  .hero-left {
    width: 100%;
    padding: 60px 6% 40px;
    text-align: center;
    order: 2;
  }

  .hero-left p {
    max-width: 100%;
  }

  .hero-eyebrow {
    margin: 0 auto 22px;
  }

  .hero-right {
    width: 100%;
    height: 380px;
    order: 1;
  }

  .hero-buttons {
    justify-content: center;
  }

  .galeria-caixa {
    grid-template-columns: 1fr 1fr;
  }

  .produtos-grid {
    grid-template-columns: 1fr 1fr;
  }
}




@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    gap: 0;
    background: var(--branco);
    box-shadow: -8px 0 30px rgba(0,0,0,.1);
    padding: 88px 24px 32px;
    transition: right .35s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .menu.ativo {
    right: 0;
  }

  .menu li {
    width: 100%;
  }

  .menu-link {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--rosa-claro);
  }

  .btn-menu {
    display: none;
  }

  .menu-btn-mobile {
    display: block;
    margin-top: 8px;
  }

  .menu-btn-mobile .menu-link {
    color: var(--rosa);
    font-weight: 600;
  }

  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 998;
  }

  .menu-overlay.ativo {
    display: block;
  }

  .logo-menu {
    left: 16px;
  }

  .galeria-caixa {
    grid-template-columns: 1fr;
  }

  .produtos-grid {
    grid-template-columns: 1fr;
  }

  .sobre-caixa {
    padding: 28px 22px;
  }

  .passos {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 280px;
  }

  .passo {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .passo:not(:last-child)::after {
    content: "↓";
    font-size: 1.2rem;
    color: var(--rosa-borda);
    margin-top: 12px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .modal-conteudo-produto {
    padding: 20px;
    width: 96%;
    max-height: 92vh;
  }

  #gridProdutos {
    grid-template-columns: 1fr 1fr;
  }

  .carrinho {
    position: static;
  }

  /* Gallery modal tablet */
  .modal-container {
    width: 88vw;
    height: 88vw;
  }
}

@media (max-width: 480px) {
  .menu-link {
    font-size: .82rem;
  }

  .hero-left {
    padding: 44px 5% 32px;
  }

  .hero-left h1 {
    font-size: 1.8rem;
  }

  .hero-left p {
    font-size: .92rem;
  }

  .hero-right {
    height: 280px;
  }

  .hero-logo-wrap {
    width: 150px;
    height: 150px;
  }

  .hero-logo {
    width: 126px;
    height: 126px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 22px;
    font-size: .85rem;
    width: 100%;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .fotos-card,
  .produtos,
  .sobre {
    padding: 56px 5%;
  }

  .como-funciona {
    padding: 56px 5%;
  }

  .telefone-grupo {
    flex-direction: column;
  }

  .ddd {
    flex: unset;
  }

  .botoes-flutuantes {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }

  .botoes-flutuantes .icone-carrinho,
  .botoes-flutuantes .whatsapp {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  .modal-conteudo-produto {
    padding: 14px;
    width: 100%;
    border-radius: 12px;
    max-height: 94vh;
  }

  #gridProdutos {
    grid-template-columns: 1fr;
  }

  .rodape-card {
    flex-direction: column;
    align-items: stretch;
  }

  .item-produto .btn-add {
    width: 100%;
    text-align: center;
  }

  .carrinho {
    padding: 14px;
  }

  .quantidade button {
    width: 26px;
    height: 26px;
    font-size: .78rem;
  }

  .footer {
    padding: 36px 5% 20px;
  }

  /* Gallery modal mobile */
  .modal-container {
    width: 94vw;
    height: 94vw;
    border-radius: 14px;
  }

  .seta {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .direita { right: 6px; }
  .esquerda { left: 6px; }

  .fechar {
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  .modal-img-wrapper {
    padding: 6px;
  }
}

/* ============================================
   TOAST (notificações)
============================================ */
.toast-notificacao {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .88rem;
  z-index: 99999;
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  pointer-events: none;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: min(90vw, 500px);
}

.toast-notificacao.ativo {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-notificacao.sucesso {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.toast-notificacao.erro {
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.toast-notificacao.remover {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
}

/* ============================================
   Acessibilidade: respeitar preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .hero-logo-wrap {
    animation: none;
  }

  * {
    transition-duration: .01ms !important;
  }
}
