*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background:#000;
  color:#fff;
}

.topbar{
  padding:14px 16px;
  font-size:18px;
  font-weight:700;
  background:#000;
  border-bottom:1px solid #111;
}

.section-title{
  margin:16px;
  font-size:16px;
  font-weight:700;
}

.launcher-lojas{
  padding:10px 8px 24px;
}

.search{
  width:calc(100% - 32px);
  margin:0 16px 10px;
  padding:10px 12px;
  border-radius:10px;
  border:none;
  outline:none;
  background:#1c1c1c;
  color:#fff;
  font-size:24px;
}

.curadoria{
  display:block;
  margin:0 16px 16px;
  font-size:13px;
  color:#9adfff;
  text-decoration:none;
  opacity:.9;
}

.launcher-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  row-gap:18px;
  column-gap:6px;
  padding:10px 6px 0;
}

.launcher-item{
  text-align:center;
  text-decoration:none;
  color:#fff;
  font-size:11px;
}

.launcher-item img{
  width:84px;
  height:84px;
  object-fit:cover;
  background:#1c1c1c;
  border-radius:16px;
  margin:0 auto;
  display:block;
}

.launcher-item span{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin-top:6px;
  max-width:84px;
  margin-left:auto;
  margin-right:auto;
  opacity:.92;
}

@media (max-width:360px){
  .launcher-grid{ grid-template-columns:repeat(4,1fr); }
}

.footer {
  margin-top: 40px;
  padding: 20px 16px 60px;
  font-size: 12px;
  color: #a0a0a0;
  text-align: center;
}

.footer-brand {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.7;
}

#backToTop {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #111;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.5);
  z-index: 999;
}
.footer-info {
  margin-top: 40px;
  padding: 12px 16px;
  font-size: 12px;
  color: #888;
  text-align: center;
}

.hero-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 16px 0;
  scroll-snap-type: x mandatory;
}

.hero-scroll::-webkit-scrollbar {
  display: none;
}

.hero-card {
  flex: 0 0 auto;
  width: min(88vw, 360px);
  height: 180px;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* FASE 1 — categorias vindas da própria planilha */
.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 26px}
.category-card{min-height:92px;padding:16px 12px;border:1px solid #2b2b2b;border-radius:18px;background:#151515;color:#fff;text-align:left;cursor:pointer;transition:.18s ease;box-shadow:0 7px 18px rgba(0,0,0,.22)}
.category-card strong{display:block;font-size:15px;line-height:1.2;margin-bottom:8px}
.category-card span{font-size:12px;color:#999}
.category-card:hover,.category-card.active{transform:translateY(-2px);border-color:#777;background:#202020}
.stores-title{font-size:16px;margin:4px 0 16px;color:#fff;scroll-margin-top:72px}
@media(min-width:700px){.category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.category-card{min-height:105px}}


/* UTILIDADES — reúne os atalhos antigos sem mexer na planilha */
.utility-category{border-color:#3a3a3a}
.utility-groups{grid-column:1/-1;display:grid;grid-template-columns:1fr;gap:12px;width:100%;padding:2px 8px 10px}
.utility-group-card{display:flex;align-items:center;gap:12px;width:100%;min-height:78px;padding:14px;border:1px solid #2b2b2b;border-radius:18px;background:#151515;color:#fff;text-decoration:none;box-shadow:0 7px 18px rgba(0,0,0,.22)}
.utility-group-card:hover{background:#202020;border-color:#777}
.utility-icon{font-size:28px;line-height:1;flex:0 0 38px;text-align:center}
.utility-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.utility-copy strong{font-size:15px}
.utility-copy small{font-size:12px;color:#999;line-height:1.3}
.utility-arrow{font-size:30px;color:#777;line-height:1}
@media(min-width:700px){.utility-groups{grid-template-columns:repeat(2,minmax(0,1fr));padding:2px 6px 10px}}

/* FASE 1.2 — ícones nas categorias */
.category-card strong{display:flex;align-items:center;gap:8px}
.category-icon{font-size:22px;line-height:1;flex:0 0 auto}


/* FASE 1.3 — identidade VivaBem + integração com Shopping */
html{min-height:100%;background:#0b6686}
body{
  min-height:100vh;
  background:
    linear-gradient(rgba(4,47,67,.18),rgba(4,47,67,.34)),
    url("assets/igreja.png") center top / cover fixed no-repeat;
  color:#08344a;
}
.topbar{
  background:rgba(7,54,78,.92);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(8px);
}
.launcher-lojas{
  margin:16px auto 0;
  width:min(1500px,calc(100% - 20px));
  background:rgba(255,255,255,.88);
  border:1px solid rgba(255,255,255,.65);
  border-radius:24px;
  box-shadow:0 18px 42px rgba(2,48,68,.20);
  backdrop-filter:blur(10px);
}
.section-title,.stores-title{color:#07344b}
.search{
  background:rgba(255,255,255,.94);
  color:#07344b;
  border:1px solid rgba(8,82,112,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.search::placeholder{color:#648393}
.curadoria{color:#086e95;font-weight:650}
.category-card{
  border:1px solid rgba(8,82,112,.16);
  background:rgba(255,255,255,.92);
  color:#07344b;
  box-shadow:0 8px 20px rgba(5,62,87,.10);
}
.category-card span{color:#68808d}
.category-card:hover,.category-card.active{
  transform:translateY(-2px);
  border-color:rgba(8,118,156,.42);
  background:#fff;
  box-shadow:0 12px 24px rgba(5,62,87,.16);
}
.offers-category{
  text-decoration:none;
  border:1px solid rgba(232,126,20,.42);
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(255,244,226,.98));
}
.offers-category strong{color:#9d4b00}
.offers-category:hover{border-color:#f28b22}
.utility-category{border-color:rgba(8,82,112,.18)}
.launcher-item{color:#07344b}
.launcher-item img{background:#fff;border:1px solid rgba(8,82,112,.12);box-shadow:0 6px 16px rgba(5,62,87,.12)}
.utility-group-card{
  border:1px solid rgba(8,82,112,.16);
  background:rgba(255,255,255,.94);
  color:#07344b;
  box-shadow:0 8px 20px rgba(5,62,87,.10);
}
.utility-group-card:hover{background:#fff;border-color:rgba(8,118,156,.42)}
.utility-copy small{color:#68808d}
.utility-arrow{color:#3f7086}
.footer-info,.footer-brand{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.28)}
#backToTop{background:#0a607f;color:#fff;box-shadow:0 5px 16px rgba(3,49,68,.35)}
@media(max-width:680px){
  .launcher-lojas{width:calc(100% - 12px);border-radius:18px;margin-top:8px}
}


/* ===== V7 — BUSCA COMPACTA IGUAL AO SHOPPING ===== */
.vitrine-smart-search{
  margin:0 16px 14px;
  padding:14px;
  border:1px solid rgba(8,82,112,.16);
  border-radius:18px;
  background:rgba(255,255,255,.95);
  box-shadow:0 8px 20px rgba(5,62,87,.10);
}

.vitrine-search-title{
  margin:0 0 10px;
  color:#07344b;
  font-size:20px;
  text-align:center;
}

.multi-store-search{
  display:grid;
  gap:10px;
}

.multi-store-search>input{
  width:100%;
  min-height:48px;
  padding:0 14px;
  border:1px solid #d9dce1;
  border-radius:14px;
  background:#fff;
  color:#07344b;
  font-size:15px;
  outline:none;
}

.multi-store-search>input:focus{
  border-color:#0a7dad;
  box-shadow:0 0 0 3px rgba(10,125,173,.08);
}

.compact-store-row{
  display:grid;
  grid-template-columns:56px 56px 56px 1fr;
  gap:9px;
  align-items:center;
}

.compact-store{
  position:relative;
  width:56px;
  height:48px;
  padding:5px;
  border:1px solid #d9dce1;
  border-radius:13px;
  background:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
}

.compact-store img{
  max-width:40px;
  max-height:36px;
  object-fit:contain;
}

.compact-store.active{
  border:2px solid #f0c400;
  background:#fff8d9;
  box-shadow:0 3px 10px rgba(240,196,0,.18);
}

.store-selected{
  position:absolute;
  top:-7px;
  right:-7px;
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#14b88a;
  color:#fff;
  font-size:12px;
  font-weight:900;
  border:2px solid #fff;
}

.multi-store-submit{
  min-height:48px;
  width:100%;
  border:0;
  border-radius:13px;
  background:linear-gradient(90deg,#ff9a18,#ff7600);
  color:#fff;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(241,119,0,.20);
}

.multi-store-submit:hover{
  filter:brightness(1.06);
}

@media(max-width:420px){
  .vitrine-smart-search{
    margin:0 8px 12px;
    padding:12px;
  }

  .vitrine-search-title{
    font-size:19px;
  }

  .compact-store-row{
    grid-template-columns:50px 50px 50px 1fr;
    gap:7px;
  }

  .compact-store{
    width:50px;
    height:46px;
  }

  .compact-store img{
    max-width:36px;
    max-height:32px;
  }

  .multi-store-submit{
    min-height:46px;
    font-size:15px;
  }
}
