.ip-header {
  display: block;
  position: relative;
  width: 100%;
  background-color: #000;
  overflow: hidden;
  padding-top: 0.5rem;
  border-top: 1px solid #262626;
}

.ip-header-container {
  display: block;
  position: relative;
  margin: 0 auto 0.5rem auto;
  max-width: 57.5rem;
}
.ip-header h1 {
  margin: 1rem 0;
  font-size: 2rem;
  line-height: 2rem;
}
.ip-header h1 .cbc {
  color: #fff;
}
.ip-header h1 .title {
  color: #fff;
}
.ip-header-logo {
  display: inline-block;
  position: relative;
  line-height: 2rem;
  height: 1.5rem;
  margin-right: 0.125rem;
}

.ip-navigation {
  display: flex;
  flex-wrap: nowrap;
  position: relative;
  width: 100%;
  justify-content: space-between;
}

.ip-navigation a {
  display: inline-block;
  position: relative;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  line-height: 1rem;
  color: #fafafa;
  border-bottom: 2px solid rgba(0,0,0,0);
  text-align: center;
}
.ip-navigation a:hover {
  color: #D8232A;
}
.ip-navigation a.selected {
  color: #fafafa;
  border-bottom: 2px solid #D8232A;
}

.category-header {
  display: flex;
  position: absolute;
  z-index: 2;
  top: 0.5rem;
  right: 0.5rem;
  justify-content: left;
  align-items: center;
  padding: 0.25rem 0.5rem;
  box-sizing: border-box;
  /* background-color: #cccccc; 
  color: #fff;*/
  border-radius: 0.25rem;
  font-weight: 100;
  text-transform: uppercase;
}
.category-header a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.category-header a:hover {
  color: #fff;
  text-decoration: underline;
  font-weight: 800;
}
.category-header.listing-header {
  position: relative;
  top: unset;
  right: unset;
  width: 100%;
  align-items: flex-end;
 /* text-align: right; */
  margin: 1rem 0;
  /* padding: 0.25rem 1rem; */
  border-radius: 0;
  padding: 0;
}
.category-header.listing-header a {
  width: 100%;
}

@media screen and (max-width: 640px) {
  .ip-header h1 {
    font-size: 1.5rem;
    line-height: 1.5rem;
  }

  .ip-navigation {
    flex-wrap: wrap;
    justify-content: space-around;
  }
  
  .ip-navigation a {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    padding-bottom: 0.125rem;
  }
  
  .ip-header {
  	padding: 0 1rem;
  }

}

@media screen and (min-width: 60rem) {
  .category-header {
    right: calc(50vw - 30rem);
  }
}

@media screen and (min-width: 641px) and (max-width: 1000px) {
	.ip-header {
    	padding: 0 2rem;
    }
}