.detalhe-topo {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
}

.detalhe-topo .marca {
  justify-self: center;
}

.detalhe-topo .logo {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
}

.detalhe-container {
  width: min(100%, 1120px) !important;
  max-width: 1120px !important;
  margin: 0 auto;
  padding: 16px 18px 40px;
}

.btn-voltar {
  width: fit-content;
  min-width: 108px;
  height: 40px;
  margin-bottom: 18px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
  border: 1px solid rgba(15,23,42,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.92);
  transition: transform .22s ease, box-shadow .22s ease;
}

.btn-voltar:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15,23,42,.09), inset 0 1px 0 rgba(255,255,255,.96);
}

.detalhe {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr) !important;
  gap: 30px;
  align-items: start;
}

.galeria {
  position: sticky;
  top: 18px;
  min-width: 0;
}

.painel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.foto-principal-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #dfe5ee;
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 18px 46px rgba(15,23,42,.08);
}

.foto-principal {
  width: 100%;
  height: 520px;
  display: block;
  object-fit: cover;
}

.marca-agua-detalhe {
  position: absolute;
  left: 14px;
  bottom: 12px;
  width: 170px;
  height: auto;
  opacity: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
  z-index: 9;
  pointer-events: none;
  user-select: none;
}

.contador-fotos {
  display: none;
}

.tipo-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .4px;
  z-index: 9;
}

.seta-foto {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 10;
  color: #0f172a;
  font-size: 28px;
  font-weight: 300;
  box-shadow: 0 10px 24px rgba(15,23,42,.12);
}

.seta-foto-esquerda {
  left: 16px;
}

.seta-foto-direita {
  right: 16px;
}

.miniaturas {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-top: 14px;
  padding-bottom: 6px;
}

.miniatura {
  width: 90px;
  height: 68px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}

.miniatura:hover {
  transform: translateY(-1px);
}

.miniatura.ativa {
  border-color: #1e3a8a;
}

.titulo {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 40px;
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -1.4px;
}

.meta {
  color: #64748b;
  font-size: 15px;
  font-weight: 650;
}

.preco {
  margin-top: 18px;
  color: #0f172a;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -1px;
}

.descricao {
  margin-top: 28px;
}

.descricao h3 {
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
}

.descricao p {
  color: #334155;
  font-size: 15px;
  line-height: 1.75;
}

.cta-app {
  margin-top: 32px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(248,250,252,.98), rgba(229,235,246,.94));
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 18px 40px rgba(15,23,42,.06);
}

.app-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(30,58,138,.12), rgba(22,48,122,.08));
  color: #16307a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .5px;
  margin-bottom: 12px;
  border: 1px solid rgba(30,58,138,.10);
}

.detalhe-lojas-info h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -1px;
}

.detalhe-lojas-info p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.app-store-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.app-store-btn {
  min-height: 60px;
  padding: 0 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
  transition: transform .22s ease, box-shadow .22s ease;
}

.app-store-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15,23,42,.08);
}

.store-logo {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  object-fit: contain !important;
  flex: 0 0 26px;
}

.store-textos {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
}

.store-textos small {
  font-size: 9px;
  color: #64748b;
  font-weight: 700;
}

.store-textos strong {
  font-size: 15px;
  font-weight: 900;
}

.btn-share-premium {
  margin-top: 16px;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #16307a, #1e3a8a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(30,58,138,.18);
  transition: transform .22s ease, box-shadow .22s ease;
  font-size: 15px;
  font-weight: 850;
}

.btn-share-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(30,58,138,.24);
}

.btn-share-premium svg {
  width: 18px;
  height: 18px;
}

.footer {
  width: 100%;
  max-width: none;
  margin: 46px 0 0;
  padding: 42px 18px 30px;
  background: #0f172a;
}

.footer-baloes {
  width: min(100%, 1120px);
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 18px;
}

.footer-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.footer-card h3,
.footer-card h4 {
  margin: 0 0 8px;
  color: #ffffff;
  font-weight: 950;
}

.footer-card p {
  margin: 0 0 6px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.55;
}

.footer-card a {
  display: block;
  margin-top: 7px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.footer-card a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(100%, 1120px);
  max-width: 1120px;
  margin: 22px auto 0;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  border-radius: 12px;
}

@media (max-width: 980px) {
  .detalhe {
    grid-template-columns: 1fr !important;
  }

  .galeria {
    position: relative;
    top: auto;
  }

  .foto-principal {
    height: 500px;
  }

  .footer-baloes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .detalhe-topo {
    grid-template-columns: 44px 1fr 44px;
  }

  .detalhe-topo .logo {
    width: 36px !important;
    height: 36px !important;
  }

  .detalhe-container {
    padding: 10px 12px 28px;
  }

  .btn-voltar {
    min-width: 96px;
    height: 36px;
    font-size: 11px;
    margin-bottom: 12px;
  }

  .foto-principal {
    height: 320px;
  }

  .foto-principal-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 78px;
    background: linear-gradient(to top, rgba(15,23,42,.42), rgba(15,23,42,0));
    z-index: 6;
    pointer-events: none;
  }

  .marca-agua-detalhe {
    left: 10px;
    bottom: 10px;
    width: 110px;
    opacity: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
  }

  .contador-fotos {
    position: absolute;
    right: 18px;
    bottom: 22px;
    min-width: 58px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(15,23,42,.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    z-index: 9;
  }

  .titulo {
    font-size: 30px;
    letter-spacing: -1px;
  }

  .preco {
    font-size: 28px;
  }

  .descricao h3 {
    font-size: 20px;
  }

  .cta-app {
    padding: 18px;
    border-radius: 24px;
  }

  .detalhe-lojas-info h3 {
    font-size: 22px;
    letter-spacing: -.8px;
  }

  .app-store-box {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .app-store-btn {
    min-height: 54px;
    border-radius: 16px;
  }

  .store-logo {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
  }

  .store-textos strong {
    font-size: 14px;
  }

  .btn-share-premium {
    min-height: 52px;
    border-radius: 16px;
    font-size: 14px;
  }

  .footer {
    padding: 34px 12px 28px;
    margin-top: 34px;
  }

  .footer-card {
    padding: 18px;
    border-radius: 20px;
  }
}
