/* ============================================================================
   LAYOUT (header.php + footer.php)
============================================================================ */

:root{
  --tabH: 73px;
  --tabbarH:73px;  
  --bg:#fff;
  --branco:#ffffff;
  --card:#f2f2f2;
  --text:#111827;
  --muted:#666666;

  --brand:#7535af;     /* cor padrão */
  --wa:#25D366;        /* WhatsApp */
  --border:#e5e7eb;

  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --radius:18px;

  
  --brandHover: #6e29ad;
  --waHover: #1fb457;  
}

*{ box-sizing:border-box; }
html,body{
  margin:0;
  padding:0;
 /* font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;*/
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  cursor: default;
}
a{ color:inherit; text-decoration:none; }


/* =========================================
   CONTAINER
========================================= */
.site{
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--tabH) + env(safe-area-inset-bottom));
}

/* =========================================
   HEADER
========================================= */
.head{
  position: relative;
  padding: 14px 10px 0 10px;
}

.head--edge{
  padding: 0;
}

.head-cover{
  height: 70px;
  border-radius: var(--radius);
  background: linear-gradient(135deg,
    rgba(117,53,175,.98) 0%,
    rgba(145,74,210,.92) 45%,
    rgba(83,63,195,.88) 100%
  );
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.head--edge .head-cover{
  border-radius: 0;
}

.head-card{
  margin-top: -34px;
  background: var(--branco);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.head--edge .head-card{
  margin: -34px 10px 0;
}

.head-logo{
  width: 74px;
  height: 74px;
  border-radius: 999px;
  border: 4px solid var(--card);
  margin-top: -24px;
  background: var(--card);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  overflow: hidden;
  flex: 0 0 auto;
}

.head-logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.head-title{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .2px;
}

.head-sub{
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.head-sub i{ color: var(--brand); }

.head-links{
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}

/* Chips */
.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.chip i{ font-size: 14px; }

.chip--wa{ background: var(--wa); color:#fff; }

.chip--ig{
  color:#fff;
  background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4);
}

@media (max-width: 420px){
  .chip{ padding: 8px 10px; font-size: 11px; gap: 6px; }
  .chip i{ font-size: 13px; }
}

/* =========================================
   PAGE (main)
========================================= */
.page{
  padding: 12px 10px 18px;
}

/* =========================================
   NAV (tabbar)
========================================= */
.nav{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--tabH);
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item{
  width: min(120px, 25%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
  text-decoration: none;
}

.nav-item.is-active{
  color: var(--brand);
}

.nav-icon{
  font-size: 20px;
  line-height: 1;
}

.nav-text{
  font-size: 11px;
  line-height: 1;
}

/* Cart badge */
.nav-cart{ position: relative; }

.badge{
  position: absolute;
  top: -10px;
  right: -24px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
}




/* =========================================
   CONTEÚDO
========================================= */
.conteudo{
  padding: 12px 14px 18px;
}

.section-initial{ margin-top: 2px; }

.section{
  margin-top: 14px;
}

.section__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}

.section__head--center{
  justify-content:center;
}

.section__head--products{
  justify-content: space-between;
}

.section__title{
  margin:0;
  font-size: 16px;
  font-weight: 900;
  text-align:center;
}


/* mãozinha em tudo que é clicável */
a, button, [role="button"], input[type="submit"], input[type="button"],
label, summary, select{
  cursor: pointer;
}

/* inputs de texto continuam com cursor de texto */
input[type="text"], input[type="search"], input[type="email"],
input[type="tel"], input[type="number"], textarea{
  cursor: text;
}

/* evita algum estilo externo aplicar cursor custom por pseudo-elementos */
*::before, *::after{
  cursor: inherit;
}