/* ============================================
   Vitrine Marketplace Cururupu
   Visual alinhado às referências (app Juína / grid 3 col, hero “Negócios locais”, barra inferior azul).
   ============================================ */

:root {
  /* Referência app Juína / marketplace local */
  --bg: #eef2f7;
  --card: #ffffff;
  --txt: #0f172a;
  --muted: #64748b;

  --blue: #1a73e8;
  --blue-light: #42a5f5;
  --blue-dark: #1565c0;
  --yellow: #facc15;
  --yellow-soft: #fde047;
  --orange: #f97316;
  --red: #ef4444;
  --green: #10b981;
  --teal: #14b8a6;
  --purple: #8b5cf6;

  --border: #e2e8f0;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1);

  --radius: 18px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
}

/* ========== HEADER ========== */
.top,
.app-header {
  padding: 16px 14px;
  background: var(--blue);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(21, 101, 192, 0.35);
}

/* Home: gradiente + faixa promocional (referência print) */
.top.top--gradient {
  padding: 0;
  background: linear-gradient(180deg, #6eb4fc 0%, #3d94eb 45%, #1a73e8 100%);
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(26, 115, 232, 0.4);
}

.top.top--gradient .header-inner {
  padding: 16px 14px;
}

.header-promo-bar {
  margin: 0;
  padding: 11px 14px 12px;
  background: #1565c0;
  color: #fff;
  text-align: center;
  font-weight: 900;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-header-inner,
.header-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-back,
.header-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.header-menu {
  width: 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
}

.header-back:hover,
.header-menu:hover {
  background: rgba(255, 255, 255, 0.25);
}

.header-center {
  flex: 1;
  text-align: center;
}

.header-center .header-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.header-center .header-subtitle {
  margin: 2px 0 0;
  font-size: 11px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

.header-search:hover {
  background: rgba(255, 255, 255, 0.25);
}

.header-with-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.header-brand-text {
  min-width: 0;
  flex: 1;
}

.header-site-title {
  margin: 0;
  font-size: clamp(13px, 3.4vw, 17px) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
}

.header-site-tagline {
  margin: 4px 0 0 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  font-weight: 600;
  color: #fff !important;
}

/* Subtítulo no cabeçalho azul (home com logo) */
.top--gradient .subtitle {
  color: #fff;
}

.header-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.header-title-wrap {
  flex: 1;
  text-align: center;
}

.header-title-wrap--logo {
  text-align: left;
}

.header-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-menu-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.header-menu-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.header-title {
  font-weight: 900;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.header-subtitle {
  font-size: 11px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.header-search-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 18px;
}

.header-search-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.top--page .title-page {
  font-size: 17px;
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: -0.02em;
}

.top--page .title-page-mixed {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title {
  font-weight: 900;
  font-size: 20px;
  line-height: 1.2;
}

.subtitle {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 4px;
}

/* ========== MAIN WRAP ========== */
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 88px;
}

.wrap--login {
  padding-top: 32px;
  padding-bottom: 48px;
  min-height: 60vh;
}

/* Âncoras com cabeçalho fixo */
#pesquisar,
#categorias {
  scroll-margin-top: 96px;
}

/* ========== CARDS ========== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

/* Cadastro de loja (home): grid de CTAs */
.home-cadastro {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.home-cadastro__label {
  font-weight: 700;
  opacity: 0.85;
}

.home-cadastro__label--after {
  margin-top: 6px;
}

h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

h2 .lni {
  font-size: 20px;
  color: var(--blue);
}

@media (max-width: 640px) {
  .card--cadastro {
    padding: 12px 14px;
    margin: 10px 0;
  }

  h2.card--cadastro__title {
    font-size: 15px;
    margin: 0 0 8px;
    gap: 6px;
  }

  h2.card--cadastro__title .lni {
    font-size: 18px;
  }

  .home-cadastro {
    gap: 7px;
    margin-top: 6px;
  }

  .home-cadastro__label {
    font-size: 12px;
    line-height: 1.3;
  }

  .home-cadastro__label--after {
    margin-top: 2px;
  }

  .card--cadastro .btn {
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.25;
  }
}

p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

/* Página “Saiba mais” (conteúdo editável no painel) */
.saiba-mais-card .saiba-mais-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--txt);
}

.saiba-mais-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.saiba-mais-body p {
  margin: 0 0 14px;
}

.saiba-mais-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .saiba-mais-body {
    font-size: 14px;
  }

  .saiba-mais-card .saiba-mais-title {
    font-size: 16px;
  }
}

/* ========== SEARCH BOX ========== */
.searchbox {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  margin-top: 12px;
}

.searchbox .icon,
.searchbox .lni {
  opacity: 0.6;
  font-size: 18px;
  flex-shrink: 0;
  order: 2;
}

.searchbox input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  order: 1;
}

.search-hint {
  margin: 10px 0 0;
  opacity: 0.75;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .searchbox {
    padding: 8px 12px;
    gap: 8px;
    margin-top: 8px;
    border-radius: 999px;
  }

  .searchbox .icon,
  .searchbox .lni {
    font-size: 16px;
  }

  .searchbox input {
    font-size: 14px;
    padding: 4px 0;
  }

  .search-hint {
    display: none;
  }
}

/* ========== GRIDS ========== */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Grade estilo app: 3 colunas (categorias); lojas em 2 no mobile estreito */
.grid--categorias {
  grid-template-columns: repeat(3, 1fr);
}

.grid--lojas {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 480px) {
  .grid--lojas {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .grid--lojas {
    gap: 8px;
  }

  .chip.shop {
    padding: 10px 8px 12px;
    gap: 6px;
  }

  .chip.shop .shop-logo-wrap {
    width: clamp(48px, 19vw, 60px);
    height: clamp(48px, 19vw, 60px);
  }

  .chip.shop .shop-logo-inner {
    left: 5px;
    top: 5px;
    right: 5px;
    bottom: 5px;
  }

  .shop-card-title {
    font-size: 11px;
  }

  .shop-card-desc {
    font-size: 10px;
    -webkit-line-clamp: 2;
  }
}

/* Referência: grade sempre 3 colunas (como no app) */

/* ========== CHIPS / CATEGORIAS ========== */
.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  color: var(--txt);
  transition: all 0.2s ease;
  text-align: center;
  min-height: 104px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Hover “quente” como vitrineapp (exceto destaque, GuaraIA e lojas em lista) */
.chip:not(.chip-destaque):not(.chip-guara):not(.shop):hover {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-soft));
  border-color: transparent;
}

.chip.shop:hover {
  background: #fff;
  border-color: var(--border);
}

.chip-destaque {
  background: linear-gradient(135deg, var(--blue), var(--blue-light)) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(26, 115, 232, 0.38);
}

.chip-destaque:hover {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue)) !important;
}

.chip-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 10px;
}

/* Categorias: ícone em “bolha” grande, preenchendo o círculo */
.grid--categorias .chip-icon {
  width: clamp(56px, 22vw, 72px);
  height: clamp(56px, 22vw, 72px);
  border-radius: 50%;
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 6.5vw, 1.85rem);
  line-height: 1;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.grid--categorias .chip-icon.lni::before {
  line-height: 1;
}

/* Crochê: SVG sólido no mesmo tamanho dos LineIcons da grade (1em = font-size do .chip-icon) */
.grid--categorias .chip-icon--crochet svg {
  width: 1em;
  height: 1em;
  display: block;
  margin: 0 auto;
  flex-shrink: 0;
}

.chip:not(.chip-destaque) .chip-icon {
  color: var(--blue);
}

.chip-destaque .chip-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.grid--categorias .chip-destaque .chip-icon {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.grid--categorias .chip-guara .chip-icon {
  background: linear-gradient(180deg, #ccfbf1 0%, #99f6e4 100%);
  color: #0f766e;
}

.grid--categorias .chip {
  min-height: 128px;
  padding-top: 14px;
}

.chip-title {
  font-weight: 800;
  font-size: 12px;
  line-height: 1.3;
}

.grid--categorias .chip:not(.chip-guara) .chip-title {
  text-transform: none;
  font-weight: 700;
}

.chip-guara .chip-icon {
  color: #0d9488;
}

.chip-guara .chip-title {
  text-transform: none;
  font-weight: 800;
}

.chip-sub {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

/* Card de loja (destaque + categoria): logo → nome → descrição */
.chip.shop {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 0;
  background: #fff;
  padding: 12px 10px 14px;
  gap: 8px;
}

/* Mesma “bolha” cinza das categorias + anel interno para a foto */
.chip.shop .shop-logo-wrap {
  position: relative;
  width: clamp(56px, 22vw, 72px);
  height: clamp(56px, 22vw, 72px);
  flex-shrink: 0;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 3px 12px rgba(15, 23, 42, 0.1);
}

.chip.shop .shop-logo-inner {
  position: absolute;
  left: 6px;
  top: 6px;
  right: 6px;
  bottom: 6px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.98);
}

.chip.shop .shop-logo {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.shop-card-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.shop-card-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.shop-card-title {
  font-weight: 800;
  font-size: 12px;
  line-height: 1.3;
  color: var(--txt);
  display: block;
}

.shop-card-desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  width: 100%;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chip.shop .premium-badge {
  flex-shrink: 0;
}

.premium-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  font-weight: 900;
  font-size: 11px;
  line-height: 1.2;
}

.chip-destaque .premium-badge {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* ========== BOTÕES ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-weight: 900;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn.toggle {
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--txt);
}

.btn.toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn.toggle.active {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-color: transparent;
  color: #fff;
}

/* Botão WhatsApp (home): verde marca (#25D366 / #128C7E) */
.btn.outline {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border: none;
}

.btn.outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  filter: brightness(1.06);
}

.btn.outline .lni {
  color: #fff;
}

.btn.btn-instagram-home {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(188, 24, 136, 0.22);
}

.btn.btn-instagram-home:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(188, 24, 136, 0.32);
}

.btn.btn-instagram-home .lni {
  color: #fff;
}

/* Crédito discreto acima do menu fixo */
.site-credit {
  text-align: center;
  font-size: 10px;
  line-height: 1.45;
  color: rgba(71, 85, 105, 0.5);
  margin: 0 auto 78px;
  padding: 0 16px;
  max-width: 980px;
}

.site-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-credit a:hover {
  color: var(--blue);
}

/* ========== NAV BOTTOM (branco como vitrineapp / primeira versão) ========== */
.bottom,
.app-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0));
  z-index: 80;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

.bottom a,
.app-bottom a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bottom a .lni,
.app-bottom a .lni {
  font-size: 22px;
}

.bottom a:hover,
.app-bottom a:hover {
  color: var(--blue);
}

.bottom a.active,
.app-bottom a.active {
  color: var(--blue);
}

/* Barra inferior azul (referência fotos) */
.bottom.bottom--blue,
.app-bottom.bottom--blue {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-top: none;
  box-shadow: 0 -8px 28px rgba(21, 101, 192, 0.35);
}

.bottom.bottom--blue a,
.app-bottom.bottom--blue a {
  color: rgba(255, 255, 255, 0.82);
}

.bottom.bottom--blue a .lni,
.app-bottom.bottom--blue a .lni {
  color: rgba(255, 255, 255, 0.95);
}

.bottom.bottom--blue a:hover,
.bottom.bottom--blue a.active,
.app-bottom.bottom--blue a:hover,
.app-bottom.bottom--blue a.active {
  color: #fff;
}

.bottom.bottom--three {
  justify-content: space-evenly;
  gap: 4px;
}

.bottom.bottom--three a {
  flex: 1;
  max-width: 120px;
  min-width: 0;
}

@media (max-width: 640px) {
  .bottom,
  .app-bottom {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0));
  }

  .bottom a .lni,
  .app-bottom a .lni {
    font-size: 20px;
  }

  .bottom a,
  .app-bottom a {
    font-size: 10px;
    gap: 2px;
  }
}

.link {
  color: var(--blue);
  font-weight: 800;
}

/* ========== LOJA PAGE ========== */
.loja-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.loja-meta {
  min-width: 0;
  flex: 1;
}

.loja-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}

.loja-meta .t {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.loja-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.loja-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.btns {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

@media (min-width: 640px) {
  .btns {
    grid-template-columns: 1fr 1fr;
  }
}

.btn-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.page-loja .btn-main .lni {
  font-size: 1.15em;
  line-height: 1;
}

.btn-main.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  border-color: transparent;
}

.btn-main.gray {
  background: #f8fafc;
  color: var(--txt);
}

.btn-main:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.info {
  margin-top: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

/* Página da loja: mais compacta no mobile */
@media (max-width: 640px) {
  .page-loja .wrap {
    padding: 12px 12px 88px;
  }

  .page-loja .card {
    padding: 14px 14px 16px;
    margin: 8px 0;
  }

  .page-loja .loja-head {
    gap: 10px;
    align-items: flex-start;
  }

  .page-loja .loja-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .page-loja .loja-meta .t {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
  }

  .page-loja .loja-tags {
    margin-top: 6px;
    gap: 5px;
  }

  .page-loja .loja-tags-row {
    gap: 5px;
  }

  .page-loja .tag {
    padding: 3px 8px;
    font-size: 10px;
  }

  .page-loja .btns {
    gap: 6px;
    margin-top: 10px;
    justify-items: center;
  }

  .page-loja .btn-main {
    width: fit-content;
    max-width: min(100%, 260px);
    padding: 8px 16px;
    font-size: 12px;
    gap: 6px;
    border-radius: 12px;
  }

  .page-loja .btn-main.primary {
    padding: 8px 14px;
    font-size: 11px;
    max-width: min(100%, 220px);
  }

  .page-loja .info {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
  }

  .page-loja .loja-card-foot {
    margin-top: 10px;
    gap: 8px;
    font-size: 13px;
  }
}

.loja-card-foot {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 12px;
}

.tag.premium-badge {
  border-color: rgba(251, 191, 36, 0.5);
  background: #fef3c7;
  color: #92400e;
}

/* ========== PÁGINA VOLTAR ========== */
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 16px;
}

.page-back:hover {
  text-decoration: underline;
}

/* ========== PÁGINA GuaraIA (assistente) ========== */
.wrap--guaraia {
  padding-top: 12px;
}

.guaraia-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 22px 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
  border: 1px solid var(--border);
}

.guaraia-avatar {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  margin: 0 auto 18px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.guaraia-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guaraia-avatar .lni {
  font-size: 52px;
  color: #fff;
}

.guaraia-title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 900;
  color: var(--txt);
}

.guaraia-desc {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.btn-wa-guaraia {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-wa-guaraia:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.btn-wa-guaraia .lni {
  font-size: 22px;
}

body.page-guaraia {
  background: var(--bg);
}

body.page-guaraia .wrap--guaraia {
  min-height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.page-guaraia .guaraia-card {
  text-align: left;
}

body.page-guaraia .guaraia-avatar {
  margin: 0 0 18px;
}

/* ========== PAINEL ADMIN (alinhado à vitrine) ========== */
body.admin-page {
  background: var(--bg);
}

.admin-head {
  padding: 0;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
}

.admin-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-head-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.admin-head-brand .header-logo-img {
  flex-shrink: 0;
  display: block;
  align-self: center;
}

.admin-head-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-head-site {
  font-weight: 900;
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.admin-head-sub {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.92;
}

.admin-head-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-head-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.15s ease;
}

.admin-head-link:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.admin-head-link .lni {
  font-size: 18px;
}

.admin-head-link--logout {
  background: rgba(15, 23, 42, 0.2);
}

.admin-main {
  padding-top: 24px;
  padding-bottom: 48px;
}

/* Painel admin mais largo que a vitrine (980px) */
body.admin-page .wrap {
  max-width: 1400px;
  padding-left: 20px;
  padding-right: 20px;
}

.admin-card {
  margin-bottom: 0;
}

.admin-card + .admin-card {
  margin-top: 16px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.admin-toolbar h2 {
  margin: 0;
}

.admin-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.admin-table--lojas {
  min-width: 1080px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.admin-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #f8fafc;
  font-weight: 800;
}

.admin-table tbody tr:hover td {
  background: rgba(26, 115, 232, 0.04);
}

.admin-cat-cell .admin-cat-slug-note {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--txt);
  opacity: 0.88;
}

.admin-th-actions {
  min-width: 520px;
  white-space: nowrap;
}

.admin-cell-loja {
  min-width: 160px;
  max-width: 360px;
  word-break: break-word;
}

.admin-actions-cell {
  vertical-align: middle;
}

/* Uma linha: edição | plano | destaque | excluir — rolagem horizontal em telas estreitas */
.admin-row-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px 8px;
  min-width: min-content;
  max-width: none;
}

.admin-row-actions--inline {
  padding: 4px 0;
}

.admin-row-actions__sep {
  color: var(--muted);
  font-weight: 700;
  user-select: none;
  flex-shrink: 0;
}

.admin-row-actions__vsep {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 2px;
  flex-shrink: 0;
  align-self: center;
}

.admin-row-actions__hint {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  flex-shrink: 0;
  margin-right: -2px;
}

.admin-act-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
  font-size: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}

.admin-act-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-inline-form {
  display: inline;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.admin-table .actbtn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-table .actbtn--pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--txt);
  line-height: 1.2;
}

.admin-table .actbtn--pill:hover {
  filter: brightness(0.97);
}

.admin-row-actions--inline .actbtn--pill {
  padding: 5px 9px;
  font-size: 11px;
  border-radius: 9px;
}

.admin-table .actions .actbtn.blue {
  white-space: nowrap;
}

.admin-table .actbtn--pill.dark {
  border-color: #cbd5e1;
  color: #0f172a;
}

.admin-table .actbtn--destaque {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}

.admin-table .actbtn--warn {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.admin-table .actbtn--pill.red {
  border-color: #fecaca;
  background: #fff;
  color: #b91c1c;
}

.admin-table .blue {
  color: var(--blue);
}

.admin-table .red {
  color: #b91c1c;
}

.admin-table .dark {
  color: var(--txt);
}

.admin-msg-ok {
  color: #166534;
  font-weight: 800;
  margin: 10px 0 0;
}

.admin-msg-err {
  color: #b91c1c;
  font-weight: 800;
  margin: 10px 0 0;
}

.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
}

.admin-form > div,
.admin-form .row2 > div {
  min-width: 0;
}

.admin-form label {
  font-weight: 700;
  font-size: 14px;
  color: var(--txt);
}

/* Sem atributo type, o input é texto mas NÃO casa com [type="text"] — ficava com largura padrão do browser */
.admin-form input:not([type]),
.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form input[type="tel"],
.admin-form input[type="search"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form input[type="date"],
.admin-form input[type="file"],
.admin-form select,
.admin-form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
  background: #fff;
}

.admin-form textarea {
  min-height: 100px;
  resize: vertical;
}

.admin-form .row2 {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .admin-form .row2 {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.admin-links-row {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .admin-links-row {
    grid-template-columns: 1fr 2fr auto;
    align-items: end;
  }
}

.admin-links-row hr {
  grid-column: 1 / -1;
  border: 0;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

.admin-kpi {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.admin-kpi-box {
  flex: 1;
  min-width: 180px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: var(--shadow);
}

.admin-kpi-box .big {
  font-size: 28px;
  font-weight: 900;
  color: var(--blue-dark);
  line-height: 1.1;
}

.admin-filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-top: 12px;
}

.admin-filter-row input[type="date"] {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.admin-shortcuts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}

@media (min-width: 520px) {
  .admin-shortcuts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--txt);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.admin-tile .lni {
  font-size: 26px;
  color: var(--blue);
}

.admin-tile--primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: #fff;
  border-color: transparent;
}

.admin-tile--primary .lni {
  color: #fff;
}

.admin-card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.admin-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.admin-thumb {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* Preview da logo no formulário da loja (mesma bolha cinza da vitrine) */
.admin-logo-preview {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f8fafc;
  max-width: 100%;
}

.admin-logo-bubble {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 3px 12px rgba(15, 23, 42, 0.1);
}

.admin-logo-bubble-inner {
  position: absolute;
  left: 6px;
  top: 6px;
  right: 6px;
  bottom: 6px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.98);
}

.admin-logo-bubble-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.admin-logo-path {
  display: block;
  width: 100%;
  word-break: break-all;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.admin-head-brand--static {
  pointer-events: none;
}

.admin-login-page .wrap--login {
  max-width: 440px;
}

.admin-login-password-wrap {
  position: relative;
}

.admin-login-password-wrap input {
  width: 100%;
  padding-right: 48px;
}

.admin-login-password-wrap .toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.75;
  line-height: 1;
}

.admin-card-title {
  margin: 0;
}

@media (max-width: 640px) {
  .admin-head-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-head-nav {
    justify-content: center;
  }
}

/* Banner “Instalar app” (PWA) */
.pwa-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 76px;
  z-index: 95;
  max-width: 480px;
  margin: 0 auto;
}

.pwa-install-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.2);
  border: 1px solid var(--border);
}

.pwa-install-icon {
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
}

.pwa-install-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pwa-install-text strong {
  font-size: 15px;
}

.pwa-install-text span {
  color: var(--muted);
  font-size: 12px;
}

.pwa-install-close {
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.45;
  padding: 4px 8px;
  margin: -4px -8px -4px 0;
}

.pwa-install-close:hover {
  opacity: 0.85;
}

.pwa-install-inner .btn {
  flex-shrink: 0;
  white-space: nowrap;
}
