:root {
  --azul: #2563eb;
  --azul-escuro: #082460;
  --verde: #22c55e;
  --verde-escuro: #16a34a;
  --vermelho: #ef4444;

  --bg: #f4f7fb;
  --texto: #111827;
  --texto-suave: #6b7280;
  --borda: #e5e7eb;
  --branco: #ffffff;

  --sombra-card: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--texto);
}

/* =========================
   HEADER IGUAL AO INDEX
========================= */

.header {
  width: 100%;
  min-height: 96px;
  padding: 18px 6%;

  display: flex;
  align-items: center;
  gap: 24px;

  background: linear-gradient(90deg, #111827, #2563eb, #6366f1);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: 118px;
  height: 76px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  padding: 4px;
}

.search-box {
  flex: 1;
  max-width: 760px;
  position: relative;

  display: flex;
  align-items: center;

  background: white;
  border-radius: 999px;
  padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  padding: 0 20px;

  font-size: 16px;
  color: var(--texto);
  background: transparent;
}

.search-box button {
  width: 52px;
  height: 52px;
  min-width: 52px;

  border: none;
  border-radius: 50%;

  background: var(--azul-escuro);
  color: white;

  cursor: pointer;
  font-size: 18px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box button:hover {
  background: var(--azul);
}

.sugestoes-busca {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;

  background: white;
  border-radius: 18px;
  box-shadow: var(--sombra-card);
  overflow: hidden;
  z-index: 9999;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions button {
  border: none;
  background: white;
  color: #111827;

  padding: 15px 26px;
  border-radius: 999px;

  font-weight: 800;
  cursor: pointer;
}

.header-actions .btn-primary {
  background: #1d4ed8;
  color: white;
}

.header-actions button:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
}

/* =========================
   ÁREA LOGADA
========================= */

.area-logada {
  display: none;
  align-items: center;
  gap: 10px;

  background: rgba(15, 23, 42, 0.45);
  padding: 10px 14px;
  border-radius: 999px;

  backdrop-filter: blur(10px);
}

.area-logada.logado {
  display: flex;
}

.nome-logado {
  color: white;
  font-weight: 800;
  white-space: nowrap;
}

.btn-painel-topo,
.btn-sair-topo {
  border: none;
  color: white;
  padding: 11px 17px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.btn-painel-topo {
  background: var(--azul-escuro);
}

.btn-sair-topo {
  background: var(--vermelho);
}

/* =========================
   HERO / BANNER DA LOJA
========================= */

.loja-hero {
  min-height: 420px;

  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(37, 99, 235, 0.58)),
    linear-gradient(135deg, #111827, #2563eb);

  background-size: cover;
  background-position: center;
  color: white;

  display: flex;
  align-items: flex-end;
}

.loja-hero-overlay {
  width: 100%;
  padding: 70px 6% 46px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;

  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.loja-apresentacao {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 820px;
}

.logo-loja {
  width: 120px;
  height: 120px;
  min-width: 120px;

  border-radius: 28px;
  overflow: hidden;

  background: white;
  color: var(--azul);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.logo-loja img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.loja-textos h1 {
  margin: 12px 0 8px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -1.5px;
}

.selo-loja {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: rgba(255, 255, 255, 0.16);
  color: white;

  padding: 8px 14px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 800;
}

.descricao-loja {
  margin: 0 0 14px;
  color: #e5e7eb;
  font-size: 17px;
  max-width: 720px;
}

.loja-detalhes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;

  color: #f3f4f6;
  font-size: 15px;
}

.loja-detalhes span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.botoes-loja {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.botoes-loja button {
  border: none;
  background: white;
  color: var(--texto);

  padding: 14px 20px;
  border-radius: 16px;

  cursor: pointer;
  font-weight: 900;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.botoes-loja button:hover {
  transform: translateY(-2px);
}

.botoes-loja .btn-whatsapp-topo {
  background: var(--verde);
  color: white;
}

.botoes-loja .btn-secundario {
  background: rgba(255,255,255,0.92);
}

/* =========================
   CONTAINER E SEÇÕES
========================= */

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 38px 20px 10px;
}

.secao,
.menu-loja-card {
  background: white;
  padding: 32px;
  border-radius: 30px;
  box-shadow: var(--sombra-card);
  margin-bottom: 30px;
}

.secao-titulo,
.menu-loja-topo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.mini-titulo {
  display: inline-block;
  margin-bottom: 8px;

  color: var(--azul);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.secao h2,
.menu-loja-card h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.5px;
}

.descricao {
  margin: 8px 0 0;
  color: var(--texto-suave);
  line-height: 1.5;
}

/* =========================
   DESTAQUE / PROMOÇÃO
========================= */

.destaque-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;

  min-height: 330px;
  background: linear-gradient(135deg, #eef4ff, #ffffff);
  border: 1px solid var(--borda);
  border-radius: 28px;
  overflow: hidden;
}

.destaque-imagem {
  min-height: 330px;
  background: #f8fafc;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.destaque-imagem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.destaque-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 34px;

  background: white;
  color: var(--azul);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 58px;
  box-shadow: var(--sombra-card);
}

.destaque-info {
  padding: 36px 34px 36px 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.tag-destaque {
  background: #dbeafe;
  color: #1d4ed8;

  padding: 8px 13px;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 900;
}

.destaque-info h3 {
  margin: 16px 0 10px;
  font-size: 34px;
  line-height: 1.05;
}

.destaque-info p {
  color: #4b5563;
  line-height: 1.6;
}

.destaque-info strong {
  color: var(--azul);
  font-size: 28px;
  margin: 8px 0 18px;
}

.destaque-info button {
  border: none;
  background: var(--azul);
  color: white;

  padding: 14px 20px;
  border-radius: 16px;

  font-weight: 900;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* =========================
   MENU INTERNO DA LOJA
========================= */

.busca-interna {
  width: min(360px, 100%);

  display: flex;
  align-items: center;
  gap: 10px;

  background: #f9fafb;
  border: 1px solid var(--borda);
  border-radius: 999px;

  padding: 0 16px;
}

.busca-interna i {
  color: var(--texto-suave);
}

.busca-interna input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;

  padding: 15px 0;
  font-size: 15px;
}

.categorias-loja {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.categoria-loja {
  border: 1px solid var(--borda);
  background: #f9fafb;
  color: var(--texto);

  padding: 12px 20px;
  border-radius: 999px;

  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.categoria-loja:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: var(--azul);
}

.categoria-loja.ativa {
  background: var(--azul);
  color: white;
  border-color: var(--azul);
}

/* =========================
   GRID PRODUTOS
========================= */

.grid-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 24px;
}

/* CARD PRODUTO */

.produto-card {
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: 26px;
  overflow: hidden;

  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: 0.25s ease;
}

.produto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.13);
}

.produto-imagem-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #fff;
}

.carrossel-produto {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.carrossel-produto .slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.carrossel-produto .slide.ativo {
  opacity: 1;
  z-index: 2;
}

.sem-imagem {
  width: 100%;
  height: 250px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f3f4f6;
  color: var(--texto-suave);
  font-weight: 800;
}

.btn-share {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 50;

  width: 40px;
  height: 40px;

  border: none;
  border-radius: 50%;

  background: white;
  color: var(--texto);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.20);
}

.btn-share:hover {
  transform: scale(1.08);
}

.produto-info {
  padding: 20px;
}

.produto-info h3 {
  margin: 0 0 8px;

  font-size: 22px;
  line-height: 1.15;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.produto-info p {
  margin: 0;
  color: #4b5563;
  line-height: 1.45;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.produto-info strong {
  display: block;
  margin-top: 14px;

  color: var(--azul);
  font-size: 26px;
}

.btn-comprar-whatsapp {
  margin-top: 16px;
  width: 100%;

  border: none;
  border-radius: 16px;

  padding: 14px 16px;

  background: var(--verde);
  color: white;

  font-weight: 900;
  cursor: pointer;
}

.btn-comprar-whatsapp:hover {
  background: var(--verde-escuro);
}

/* =========================
   LOCALIZAÇÃO / MAPA
========================= */

.localizacao-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: stretch;
}

.localizacao-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.localizacao-acoes button {
  border: none;
  border-radius: 16px;
  padding: 14px 18px;

  font-weight: 900;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#btnComoChegarMapa {
  background: var(--azul);
  color: white;
}

.btn-whatsapp-mapa {
  background: var(--verde);
  color: white;
}

.mapa {
  width: 100%;
  min-height: 360px;

  border-radius: 24px;
  border: 1px solid #d1d5db;
  overflow: hidden;
  background: #e5e7eb;
}

/* =========================
   FOOTER
========================= */

.footer {
  background: #111827;
  color: white;

  padding: 42px 6% 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 42px;
}

.footer h2,
.footer h3 {
  margin-top: 0;
  color: white;
}

.footer p {
  color: #cbd5e1;
  line-height: 1.6;
}

.footer a {
  display: block;
  margin-top: 10px;

  color: #cbd5e1;
  text-decoration: none;
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;

  border-top: 1px solid rgba(255,255,255,.12);

  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

/* =========================
   MODAL DE IMAGEM
========================= */

.modal-imagem {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.88);

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 9999;
  padding: 20px;
}

.modal-imagem.ativo {
  display: flex;
}

.modal-imagem img {
  max-width: 95%;
  max-height: 85vh;
  object-fit: contain;

  border-radius: 16px;
  background: #fff;
}

.fechar-modal,
.seta-modal {
  position: absolute;

  border: none;
  border-radius: 50%;

  background: white;
  color: #111;

  cursor: pointer;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;
}

.fechar-modal {
  top: 20px;
  right: 25px;

  width: 48px;
  height: 48px;

  font-size: 34px;
}

.seta-modal {
  top: 50%;
  transform: translateY(-50%);

  width: 54px;
  height: 54px;

  font-size: 46px;
}

.seta-modal.esquerda {
  left: 20px;
}

.seta-modal.direita {
  right: 20px;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 1100px) {
  .header {
    flex-wrap: wrap;
  }

  .search-box {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .area-logada {
    margin-left: auto;
  }

  .loja-hero-overlay {
    flex-direction: column;
    align-items: flex-start;
  }

  .botoes-loja {
    justify-content: flex-start;
  }

  .destaque-card,
  .localizacao-grid {
    grid-template-columns: 1fr;
  }

  .destaque-info {
    padding: 0 28px 32px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 14px 18px;
    gap: 14px;
  }

  .logo img {
    width: 96px;
    height: 62px;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions button {
    padding: 12px 16px;
    font-size: 14px;
  }

  .area-logada {
    width: 100%;
    justify-content: center;
    border-radius: 18px;
  }

  .nome-logado {
    display: none;
  }

  .loja-hero {
    min-height: auto;
  }

  .loja-hero-overlay {
    padding: 42px 20px 34px;
  }

  .loja-apresentacao {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-loja {
    width: 98px;
    height: 98px;
    min-width: 98px;
    border-radius: 22px;
  }

  .loja-textos h1 {
    font-size: 36px;
  }

  .loja-detalhes {
    flex-direction: column;
  }

  .botoes-loja {
    width: 100%;
  }

  .botoes-loja button {
    width: 100%;
    justify-content: center;
  }

  .container {
    padding: 24px 14px 0;
  }

  .secao,
  .menu-loja-card {
    padding: 22px;
    border-radius: 24px;
  }

  .secao-titulo,
  .menu-loja-topo {
    flex-direction: column;
  }

  .busca-interna {
    width: 100%;
  }

  .destaque-info h3 {
    font-size: 28px;
  }

  .grid-produtos {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .header-actions button {
    padding: 10px 13px;
    font-size: 13px;
  }

  .search-box button {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .loja-textos h1 {
    font-size: 31px;
  }

  .produto-imagem-container,
  .sem-imagem {
    height: 230px;
  }

  .seta-modal {
    width: 44px;
    height: 44px;
    font-size: 34px;
  }

  .fechar-modal {
    width: 42px;
    height: 42px;
    font-size: 30px;
  }
}