/* 青虹灵物：以五行属性组织商品入口，参考命理盘的分格秩序。 */
.shop-head {
  align-items: flex-start;
}

.shop-control {
  width: min(100%, 680px);
  max-width: 680px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(116, 88, 66, .7);
  border-radius: 13px;
  background: #efe4d0;
  box-shadow: none;
}

.shop-control button {
  position: relative;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px 12px;
  color: #554735;
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
}

.shop-control button::after {
  content: attr(data-element);
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: rgba(116, 88, 66, .13);
  font: 36px/1 var(--serif);
  transition: color .22s ease;
}

.shop-control button small,
.shop-control button > span {
  position: relative;
  z-index: 1;
}

.shop-control button small {
  color: #927e63;
  font: 9px/1.3 var(--mono);
  letter-spacing: .08em;
}

.shop-control button > span {
  max-width: calc(100% - 20px);
}

.shop-control button.active {
  background: #8c392e !important;
  color: #fff8eb !important;
}

.shop-control button.active small {
  color: rgba(255, 245, 229, .76);
}

.shop-control button.active::after {
  color: rgba(255, 245, 229, .16);
}

.shop-control button:not(.active):hover {
  background: #e5d3b9;
  color: #5f3128;
}

.shop-attribute-note {
  max-width: 610px;
  margin: -26px 0 31px;
  padding: 11px 14px;
  border-left: 2px solid rgba(140, 57, 46, .55);
  color: #766552;
  font-size: 12px;
  line-height: 1.75;
}

@media (max-width: 840px) {
  .shop-control {
    margin-top: 17px;
    border-radius: 12px;
  }

  .shop-control button {
    min-height: 76px;
    gap: 9px;
    padding: 12px 10px 10px;
    font-size: 11px;
  }

  .shop-control button small {
    font-size: 8px;
    letter-spacing: .04em;
  }

  .shop-control button::after {
    right: 8px;
    bottom: 7px;
    font-size: 28px;
  }

  .shop-attribute-note {
    margin: -12px 0 25px;
    padding: 9px 11px;
    font-size: 11px;
  }
}
