.footer {
  position: fixed; /* 푸터를 화면 하단에 고정 */
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #333; /* 푸터 배경색 */
  color: #fff; /* 푸터 텍스트 색상 */
  text-align: center; /* 푸터 텍스트 중앙 정렬 */
  padding: 10px 0; /* 푸터 안쪽 여백 */
}


/* 팝업 */
.board-info {
  display: flex;
  justify-content: space-between; /* 양 끝으로 배치 */
  align-items: center; /* 수직 정렬 */
}

.popup-layer {
    position: absolute;
    z-index: 999999;
    text-align: center;
    background: #ccc;
}

.popup-content {
    font-size: 14px;
}

.popup-footer {

    display: flex;
      background: #fff;
    justify-content: space-between;
    align-items: center;
}

.popup-footer .onedayclose {
    font-size: 14px;
    cursor: pointer;
    margin-left: 5px;
    color: #333;
}

.popup-footer button {
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}



.popup-layer p{margin: 0px;}
@media screen and (max-width: 550px) {
  .popup-layer{ left: 0px !important; width: 100%; top: 0px !important;}
  .popup-content {        width: 100% !important;}
  .popup-content img{width:100% !important; padding: 0px 20px;;}
  .popup-footer {    margin: 0px 20px;}
}

.top-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.top-category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 88px;
  padding: 10px 8px;
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  background: #f7f8fb;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.top-category-btn img {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  object-fit: contain;
}

.top-category-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: #e5e7eb;
  color: #111;
  font-size: 16px;
  font-weight: 700;
}

.top-category-btn.active {
  border-color: #337ab7;
  background: #eef5fb;
  color: #245580;
}

.sub-category-area {
  margin-bottom: 16px;
}

.sub-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.sub-category-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  background: #f7f8fb;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.sub-category-item.active {
  border-color: #337ab7;
  background: #337ab7;
  color: #fff;
}

.sub-category-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #777;
  font-size: 14px;
}

@media screen and (max-width: 480px) {
  .top-category-btn {
    min-width: 72px;
    min-height: 72px;
    font-size: 12px;
  }
}
