/* ===== HEADER HOME ===== */
.header{
  background:#fff;
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:64px;
  gap:16px;
}

/* logo */
.brand{ flex-shrink:0; font-weight:800; letter-spacing:.3px; }

.brand-logo{
  display:flex;
  align-items:center;
}

.brand-logo img{
  height:36px;
  max-width:140px;
  object-fit:contain;
}

/* busca no meio */
.search{
  flex:1;
  display:flex;
  justify-content:center;
  padding:0 16px;
}

.search input{
  width:min(680px,100%);
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:999px;
  outline:none;
}

/* carrinho SEMPRE no canto direito */
.cart-pill{
  flex-shrink:0;
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--border);
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  background:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.06);
}

.cart-pill .badge{
  min-width:20px;
  height:20px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--orange);
  color:#fff;
  font-weight:800;
  font-size:12px;
}

.cart-pill .total{
  font-weight:800;
  color:var(--green);
}

/* ===== BANNER TOP - VERSÃO 2B (SEPARADO DO HEADER) ===== */
.banner-top {
  background: white;
  border-bottom: 2px solid #e2e8f0;
  padding: 14px 0;
  position: sticky;
  top: 65px; /* Fica abaixo do header */
  z-index: 49;
}

.banner-top .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

/* Seção esquerda */
.left-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Badge ABERTO */
.open-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d1fae5;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #065f46;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.open-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Divisor */
.divider {
  width: 1px;
  height: 24px;
  background: #e2e8f0;
}

/* Mensagem */
.info-message {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

/* Tempo estimado */
.delivery-time {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  font-size: 12px;
  font-weight: 700;
  background: #f0fdf4;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

/* mobile header */
@media (max-width: 820px){
  .search{ display:none; }
  .cart-pill{ padding:6px 10px; }
  .cart-pill .total{ font-size:14px; }

  /* Banner mobile - UMA LINHA SÓ */
  .banner-top {
    padding: 10px 0;
    top: 64px; /* Abaixo do header mobile */
  }

  .banner-top .inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 11px;
  }

  .left-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .divider {
    display: block;
    width: 1px;
    height: 14px;
  }

  .open-chip {
    padding: 5px 10px;
    font-size: 10px;
    gap: 6px;
  }

  .open-dot {
    width: 4px;
    height: 4px;
  }

  .info-message {
    font-size: 11px;
    gap: 4px;
  }

  .info-message span:first-child {
    font-size: 12px; /* emoji maior */
  }

  .delivery-time {
    font-size: 10px;
    padding: 4px 8px;
    gap: 4px;
  }

  .delivery-time span:first-child {
    font-size: 11px; /* emoji maior */
  }
}