/* =====================================================
   HEADER.CSS - MIPRA
   Topo principal do sistema
===================================================== */

.topo {
  position: sticky;
  top: 0;
  z-index: 999;
  overflow: hidden;
  background: linear-gradient(135deg, var(--verde-escuro), var(--verde), var(--laranja));
  box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
}

.topo-inner {
  width: 100%;
  max-width: 1320px;
  min-height: 92px;
  margin: 0 auto;
  padding: 12px 18px;

  display: flex;
  align-items: center;
  gap: 16px;
}

/* ========================= */
/* LOGO */
/* ========================= */

.logo-area {
  min-width: 178px;
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-weight: 900;
  color: #fff;
}

.logo-area strong {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -2px;
  color: #fff;
}

.logo-area span {
  color: #ffe082;
}

.logo-area small {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, .92);
}

/* ========================= */
/* BUSCA */
/* ========================= */

.busca {
  flex: 1;
  max-width: 560px;
  min-width: 260px;
  height: 48px;

  display: flex;
  overflow: hidden;

  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .15);
}

.busca select {
  width: 110px;
  min-width: 110px;
  height: 100%;

  border: 0;
  border-radius: 0;

  background: rgba(255, 255, 255, .18);
  color: #fff;

  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  outline: none;
}

.busca select option {
  color: #111;
}

.busca input {
  flex: 1;
  min-width: 0;
  height: 100%;

  border: 0;
  border-radius: 0;

  background: rgba(255, 255, 255, .96);
  color: var(--texto);

  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

.busca input::placeholder {
  color: #777;
}

.busca button {
  width: 82px;
  min-width: 82px;
  height: 100%;

  border: 0;
  border-radius: 0;

  background: linear-gradient(135deg, #ff7b00, #ff9800);
  color: #fff;

  font-size: 13px;
  font-weight: 900;
  cursor: pointer;

  transition: .2s ease;
}

.busca button:hover {
  filter: brightness(.95);
}

/* ========================= */
/* AÇÕES DO TOPO */
/* ========================= */

.topo-acoes {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-shrink: 0;
}

.topo-acoes a {
  position: relative;
  min-width: 58px;

  text-align: center;
  color: #fff;

  font-size: 13px;
  font-weight: 700;

  transition: .2s ease;
}

.topo-acoes a:hover {
  transform: translateY(-1px);
}

.topo-acoes span {
  display: block;
  font-size: 25px;
  line-height: 1;
}

.topo-acoes small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .96);
  font-size: 12px;
}

/* ========================= */
/* CARRINHO */
/* ========================= */

.carrinho-link em {
  position: absolute;
  top: -9px;
  right: 11px;

  width: 18px;
  height: 18px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: #fff;
  color: var(--verde);

  font-size: 11px;
  font-style: normal;
  font-weight: 900;

  box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}

/* ========================= */
/* RESPONSIVO */
/* ========================= */

@media (max-width: 980px) {

  .topo-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .busca {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .logo-area {
    min-width: 120px;
  }

}

@media (max-width: 620px) {

  .topo-inner {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 10px 12px;
  }

  .logo-area {
    min-width: 0;
  }

  .logo-area strong {
    font-size: 32px;
  }

  .logo-area small {
    font-size: 10px;
  }

  .topo-acoes {
    gap: 10px;
  }

  .topo-acoes a {
    min-width: auto;
  }

  .topo-acoes span {
    font-size: 20px;
  }

  .topo-acoes small {
    display: none;
  }

  .carrinho-link em {
    top: -8px;
    right: -5px;
  }

  .busca {
    height: 40px;
    border-radius: 9px;
  }

  .busca select {
    width: 78px;
    min-width: 78px;
    font-size: 10px;
    padding: 0 6px;
  }

  .busca input {
    font-size: 12px;
    padding: 0 8px;
  }

  .busca button {
    width: 64px;
    min-width: 64px;
    font-size: 10px;
  }

}

