.grid-container {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 16px 1fr 16px 1fr 16px 1fr;
  grid-template-columns: repeat(4, 1fr);
  -ms-grid-rows: auto 24px auto 24px auto 24px auto;
  grid-template-rows: auto auto auto auto;
  grid-column-gap: 24px;
  grid-row-gap: 40px;
  margin: 32px 0 48px 0;
}
.grid-container > *:nth-child(1) {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
}
.grid-container > *:nth-child(2) {
  -ms-grid-row: 1;
  -ms-grid-column: 3;
}
.grid-container > *:nth-child(3) {
  -ms-grid-row: 1;
  -ms-grid-column: 5;
}
.grid-container > *:nth-child(4) {
  -ms-grid-row: 1;
  -ms-grid-column: 7;
}
.grid-container > *:nth-child(5) {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
}
.grid-container > *:nth-child(6) {
  -ms-grid-row: 3;
  -ms-grid-column: 3;
}
.grid-container > *:nth-child(7) {
  -ms-grid-row: 3;
  -ms-grid-column: 5;
}
.grid-container > *:nth-child(8) {
  -ms-grid-row: 3;
  -ms-grid-column: 7;
}
.grid-container > *:nth-child(9) {
  -ms-grid-row: 5;
  -ms-grid-column: 1;
}
.grid-container > *:nth-child(10) {
  -ms-grid-row: 5;
  -ms-grid-column: 3;
}
.grid-container > *:nth-child(11) {
  -ms-grid-row: 5;
  -ms-grid-column: 5;
}
.grid-container > *:nth-child(12) {
  -ms-grid-row: 5;
  -ms-grid-column: 7;
}
.grid-container > *:nth-child(13) {
  -ms-grid-row: 7;
  -ms-grid-column: 1;
}
.grid-container > *:nth-child(14) {
  -ms-grid-row: 7;
  -ms-grid-column: 3;
}
.grid-container > *:nth-child(15) {
  -ms-grid-row: 7;
  -ms-grid-column: 5;
}
.grid-container > *:nth-child(16) {
  -ms-grid-row: 7;
  -ms-grid-column: 7;
}

.grid-item {
  text-align: center;
}

.max-width {
  margin: 0 auto;
  min-height: -webkit-calc(100vh - 153px - 56px - 312px);
  min-height: calc(100vh - 153px - 56px - 312px);
  width: -webkit-calc(100% - 96px);
  width: calc(100% - 96px);
  max-width: 1176px;
  padding: 0 48px;
}

.brand-bar {
  width: -webkit-calc(100% - 96px);
  width: calc(100% - 96px);
  max-width: 1176px;
  margin: 0 auto;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* Hide scrollbar */
.brand-bar::-webkit-scrollbar {
  display: none;
}

.nav-brand {
  display: inline-block;
}

.brand-nav {
  background-color: #f8f8f8;
  width: 100%;
}

.brand-nav-div {
  padding-top: 12px;
}

.brand-nav-div span,
.brand-nav-div a {
  font-size: 16px;
  margin-right: 8px;
}

.brand-nav-div a {
  -webkit-border-radius: 24px;
  border-radius: 24px;
  background-color: #ffffff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.43;
  color: #333;
  margin-bottom: 12px;
}

.brand-nav-div span {
  -webkit-border-radius: 24px;
  border-radius: 24px;
  -webkit-box-shadow: inset 0 2px 8px 0 rgba(46, 17, 120, 0.08);
  box-shadow: inset 0 2px 8px 0 rgba(46, 17, 120, 0.08);
  background-color: #6b45cb;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.43;
  color: #fff;
  padding: 10px 16px;
  margin-bottom: 12px;
}

.brand-name-count-div {
  margin: 40px 0 32px 0;
}

.merch-h1 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.33;
  color: #222;
  display: inline-block;
  margin: 0 20px 4px 0;
}

.brand-name-count {
  font-size: 14px;
  color: #444444;
  word-break: break-all;
}

.brand-name-bold {
  font-weight: 500;
}

.search-keyword {
  margin-top: 40px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.33;
  color: #6b45cb;
}

.search-count {
  margin-top: 40px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.33;
  color: #222;
}

.brand-count-ordering {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  position: relative;
}

.brand-count-ordering span:nth-child(2) {
  padding: 0 4px;
}

.result-key-count {
  margin-top: 40px;
}

/* Style The Dropdown Button */
.dropbtn {
  background-color: white;
  padding: 16px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #444444;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.dropbtn-down {
  background-color: #f8f8f8;
}

.ic-drop {
  width: 16px;
  height: 16px;
  -o-object-fit: contain;
  object-fit: contain;
  margin-left: 12px;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: absolute;
  right: 0;
  margin-top: 28px;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  -webkit-box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  right: 0;
  z-index: 1;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}

/* Links inside the dropdown */
.dropdown-content a {
  padding: 12px 16px;
  text-decoration: none;
  display: block;

  font-size: 16px;
  font-weight: 500;
  color: #444444;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #f0ecf9;
}

.drop-space {
  height: 8px;
  width: 100%;
}

.merch-brand {
  color: #777;
  font-size: 14px;
}

.merch-img {
  height: auto;
  margin-bottom: 8px;
  width: 100%;
  height: auto;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}

.merch-name {
  color: #222;
  font-size: 16px;
  margin: 2px 0 4px 0;
}

/* 상품 목록 리뷰 점수 */
.merch-review {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1;
}

.merch-review .star-full {
  color: #ffc107;
}

.merch-review .star-empty {
  color: #ddd;
}

.merch-review .star-half {
  position: relative;
  display: inline-block;
}

.merch-review .star-half .star-bg {
  color: #ddd;
}

.merch-review .star-half .star-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  color: #ffc107;
  overflow: hidden;
}

.merch-review .review-count {
  color: #777;
  font-size: 12px;
  margin-left: 4px;
}

.merch-orig-price {
  color: #777;
  font-size: 14px;
  line-height: 1.43;
}

.merch-price {
  color: #222;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  padding: 0 8px;
}

.merch-disc {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  color: #de3a58;
  -webkit-border-radius: 2px;
  border-radius: 2px;
  background-color: #fbe5ea;
  padding: 0 4px;
}

/* Categories for no results found */
.flex-container {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 18px 1fr 18px 1fr 18px 1fr 18px 1fr;
  grid-template-columns: repeat(5, 1fr);
  -ms-grid-rows: 1fr 12px 1fr;
  grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 18px;
  grid-row-gap: 12px;
  max-width: 100%;
}

/* Hide scrollbar */
.flex-container::-webkit-scrollbar {
  display: none;
}

.flex-container > *:nth-child(1) {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
}
.flex-container > *:nth-child(2) {
  -ms-grid-row: 1;
  -ms-grid-column: 3;
}
.flex-container > *:nth-child(3) {
  -ms-grid-row: 1;
  -ms-grid-column: 5;
}
.flex-container > *:nth-child(4) {
  -ms-grid-row: 1;
  -ms-grid-column: 7;
}
.flex-container > *:nth-child(5) {
  -ms-grid-row: 1;
  -ms-grid-column: 9;
}
.flex-container > *:nth-child(6) {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
}
.flex-container > *:nth-child(7) {
  -ms-grid-row: 3;
  -ms-grid-column: 3;
}
.flex-container > *:nth-child(8) {
  -ms-grid-row: 3;
  -ms-grid-column: 5;
}
.flex-container > *:nth-child(9) {
  -ms-grid-row: 3;
  -ms-grid-column: 7;
}
.flex-container > *:nth-child(10) {
  -ms-grid-row: 3;
  -ms-grid-column: 9;
}

.cat-item {
  background-color: #ffffff;
  border: solid 1px #ebebeb;
  -webkit-border-radius: 12px;
  border-radius: 12px;
  -webkit-box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.12);
  height: 134px;
}

.cat-img {
  display: block;
  height: 56px;
  -o-object-fit: contain;
  object-fit: contain;
  margin: 24px auto 12px auto;
  width: 56px;
}

.cat-name {
  color: #222;
  font-size: 14px;
  text-align: center;
}

.cat-title {
  color: #222;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 32px;
  text-align: center;
}

.no-results {
  border: solid 1px #dddddd;
  -webkit-border-radius: 8px;
  border-radius: 8px;
  padding: 48px;
  text-align: center;
  margin: 32px 0 48px 0;
  word-break: break-all;
}

.no-results img {
  display: block;
  width: 142px;
  height: 136px;
  -o-object-fit: contain;
  object-fit: contain;
  margin: 0 auto 16px auto;
}
.no-results-txt {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.17;
  text-align: center;
  color: #222;
}

.no-keyword-txt {
  color: #6b45cb;
}

.no-hits-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: normal;
  color: #222;
  margin: 48px 0 24px 0;
}

/* Smaller than desktop */
@media screen and (max-width: 1079px) {
  .merch-disc {
    display: block;
    margin: 4px auto 0 auto;
    padding: 2px 4px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
  }

  .merch-price {
    padding-right: 0;
  }
}

/* Mobile */
@media screen and (max-width: 767px) {
  .max-width {
    width: -webkit-calc(100% - 48px);
    width: calc(100% - 48px);
    padding: 0 24px;
  }

  .mob-search-width {
    padding: 0;
    width: 100%;
  }

  body {
    padding-top: 174px;
  }

  .big-pad-body {
    padding-top: 251px;
  }

  .search-top {
    padding-top: 104px;
  }

  .dropbtn {
    border: 1px solid #ebebeb;
    padding: 12px 16px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 8px;
  }

  .brand-bar {
    margin: 0;
    width: 100%;
    padding-right: 16px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    padding-left: 24px;
  }

  .brand-nav {
    height: 64px;
    line-height: 64px;
  }

  .brand-nav-div {
    line-height: 64px;
    padding-top: 0;
  }

  .brand-nav-div a {
    margin-bottom: 0;
  }

  #nav-space {
    width: 20px;
    display: none;
  }

  .brand-nav-div span,
  .brand-nav-div a {
    margin-right: 8px;
  }

  .brand-name-count-div {
    margin: 0;
  }

  .grid-container {
    -ms-grid-columns: 1fr;
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-nav-div .max-width {
    min-height: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    overflow-x: scroll;
  }

  .brand-nav-div .max-width > * {
    white-space: nowrap;
  }

  /* Hide scrollbar */
  .brand-nav-div .max-width::-webkit-scrollbar {
    display: none;
  }

  .grid-container {
    margin-top: 20px;
  }

  .dropdown {
    position: initial;
    right: initial;
    margin-top: 0;
  }

  .search-count,
  .search-keyword {
    font-size: 18px;
  }

  .search-keyword {
    word-wrap: break-word;
  }

  .result-key-count {
    max-width: 50vw;
    width: 200px;
  }

  .search-count {
    white-space: nowrap;
  }

  .brand-count-ordering {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    margin-top: 24px;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    margin: 24px 0 20px;
    align-items: center;
  }

  .brand-count-ordering span:nth-child(2) {
    padding: 0;
  }

  .result-key-count {
    margin-top: 0;
  }

  .merch-h1 {
    font-size: 18px;
    display: block;
  }

  /* No results */
  .no-results {
    border: none;
    padding: 32px 24px 40px 24px;
    margin: 0;
  }

  .no-results-txt {
    font-size: 16px;
  }

  .no-results img {
    width: 126px;
    height: 120px;
    -o-object-fit: contain;
    object-fit: contain;
  }

  .no-hits-title {
    font-size: 18px;
    margin: 16px 24px;
  }

  .popular-merch .merch-grid-cont {
    margin: 0 24px;
  }

  .flex-container {
    display: block;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 0 0 24px 24px;
  }

  .cat-item {
    display: inline-block;
    height: initial;
    padding: 24px 22px 28px 22px;
    margin-right: 8px;
  }

  .cat-img {
    margin: 0 auto 12px auto;
  }

  .cat-item:last-of-type {
    margin-right: 24px;
  }
}
