/* Shared layout repairs for the restored StoneAge shop pages. */

/* Render shop navigation text at browser resolution instead of scaling 25px GIF lettering. */
.storeTab .sa-shop-tab {
  display: block;
  box-sizing: border-box;
  height: 25px;
  border: 1px solid #cea743;
  border-bottom-color: #c7952f;
  border-radius: 6px 6px 0 0;
  background: #fff;
  box-shadow: inset 0 1px 0 #fff;
  color: #7b5526;
  font: 400 11px/22px "SA Dotum Original", dotum, "돋움", sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.storeTab .sa-shop-tab:hover,
.storeTab .sa-shop-tab:focus {
  color: #6f4513;
  text-decoration: none;
}

.storeTab .sa-shop-tab.is-active {
  border-color: #70450f;
  background: linear-gradient(#a17d3a, #70450f);
  box-shadow: inset 0 1px 0 #b99963;
  color: #fff;
  text-shadow: 0 1px 0 #57330b;
}

.storeTab .sa-shop-tab.is-active:hover,
.storeTab .sa-shop-tab.is-active:focus {
  color: #fff;
}

.storeTab .sa-shop-process-button {
  display: block;
  box-sizing: border-box;
  width: 82px;
  height: 20px;
  border: 1px solid #854e0d;
  border-radius: 4px;
  background: linear-gradient(#bc8749, #a3651d);
  box-shadow: inset 0 1px 0 #d3af80;
  color: #fff;
  font: 400 10px/18px "SA Dotum Original", dotum, "돋움", sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 0 #78450c;
  white-space: nowrap;
}

.storeTab .sa-shop-process-button:hover,
.storeTab .sa-shop-process-button:focus {
  background: linear-gradient(#c38d4c, #aa6a1f);
  color: #fff;
  text-decoration: none;
}

/* Keep every category heading identical before and after switching tabs. */
.sst .sa-shop-category-title {
  display: inline-block;
  height: 17px;
  color: #745a3c;
  font: 400 14px/13px "SA Dotum Original", dotum, "돋움", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  vertical-align: top;
  white-space: nowrap;
}

.sst .sa-shop-filter-select {
  letter-spacing: 0;
}

.sa-shop-filter-empty {
  box-sizing: border-box;
  min-height: 208px;
  padding-top: 92px;
  color: #8a704e;
  font: 400 12px/18px "SA Dotum Original", dotum, "돋움", sans-serif;
  text-align: center;
}

/* Keep the featured product media and details in two stable columns. */
#store_02 {
  box-sizing: content-box;
  height: 153px;
}

#store_02 .t2 {
  vertical-align: top;
}

#store_02 dl {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  width: 225px;
  margin-left: 23px;
}

#store_02 dt,
#store_02 dd {
  float: none;
  min-width: 0;
  margin: 0;
}

#store_02 dd {
  line-height: 1.35;
}

#store_02 .h {
  min-height: 28px;
  margin: 0 0 4px;
  line-height: 14px;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

#store_02 .cash {
  margin-top: 0;
}

#store_02 p {
  margin-top: 7px;
}

#store_02 .dsc {
  height: 92px;
}

/* The original table-cell image box ignored its bottom margin in modern browsers. */
.itembx .i {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  margin: 0 auto 8px !important;
}

#newRow .itembx .i {
  margin-bottom: 13px !important;
}

.itembx > strong {
  min-height: 13px;
  line-height: 13px !important;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.rowbx ul {
  display: grid;
  grid-template-columns: repeat(4, 145px);
}

.rowbx li {
  float: none;
  height: auto;
  min-height: 190px;
}
