/* 공통 요소 */

/* 버튼 */
.bottomBtns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.boardBtn {
  font-size: 14px;
  font-family: 'Pretendard';
  border-radius: 5px;
  cursor: pointer;
}

/* 텍스트 색상 */
.redTxt {
  color: var(--redColor);
}
.orangTxt {
  color: var(--orangeColor);
}
.blueTxt {
  color: var(--blueColor);
}

/* 팝업 영역 */
.popupArt {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 9;
  display: none;
  /* display: flex; */
  align-items: center;
  justify-content: center;
}

/* 팝업 */
.popupBox {
  width: 40%;
  background-color: var(--whiteColor);
  max-width: 500px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* 팝업 헤더 */
.popupHeader {
  background-color: var(--anColor);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
}

.popupTit {
  color: var(--whiteColor);
  font-size: 14px;
  font-weight: 600;
  cursor: default;
}

.popupClose {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 팝업 내용 */
.popupContents {
  background-color: var(--whiteColor);
}

.popTit {
  font-size: 14px;
  color: var(--titColor);
  font-weight: 500;
  display: inline-block;
  width: 95px;
  text-align: center;
}

/* 페이지네이션 */
.pageNation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0;
}
.pageMoves {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arrows > div {
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--whiteColor);
}
.arrows > div:hover > svg {
  fill: var(--mainColor);
}

.nums {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nums > div {
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--whiteColor);
  font-size: 15px;
  color: var(--txt6Color);
  font-weight: 500;
  border-radius: 30px;
}
.nums > div:hover {
  color: var(--subColor);
  font-weight: 600;
}
.nums > div.on {
  background-color: var(--subColor);
  color: var(--whiteColor);
}
.nums > div.on:hover {
  color: var(--whiteColor);
}

/* 테이블 */
.boardTable > table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: center;
}

.boardTable > table thead th {
  background-color: var(--tableBack);
  height: 45px;
  font-weight: 500;
  border: 1px solid var(--borderLine);
}

.boardTable > table tbody td {
  height: 45px;
  border: 1px solid var(--borderLine);
  color: var(--txtColor);
}
.boardTable > table tbody tr:hover {
  background-color: var(--backColor3);
}

/* 서브 타이틀 */
.subTitArt {
  width: 100%;
  height: 300px;
  background-image: url(/img/subBack.png);
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: end;
}

.subMenuTitArt {
  width: 100%;
  height: 300px;
  background-image: url(/img/subBack.png);
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.subTxtBox {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 50px 0 0 0;
}
.subTxtBox > p:first-child {
  font-size: 26px;
  color: var(--whiteColor);
  font-weight: 700;
}

.subPageNow {
  display: flex;
  align-items: center;
  gap: 5px;
}
.homeIcon {
  width: 24px;
  height: 24px;
}
.subPageNow span {
  font-size: 14px;
  color: var(--whiteColor);
  font-weight: 500;
}


.subTitArt > p {
  font-size: 26px;
  color: var(--whiteColor);
  font-weight: 700;
  margin: 0 0 100px 0;
}

.subMenuArt {
  width: 100%;
  margin: 220px auto 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.subMenuInner {
  width: 100%;
  border-bottom: 1px solid var(--borderLine);
}
.subMenuUl {
  width: 65%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
}
.subMenuUl > li {
  width: fit-content;
  padding: 0 15px;
  font-weight: 500;
}
.subMenuUl > li a {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txtGColor);
  font-size: 15px;
}

.subMenuUl > li.on a {
  border-bottom: 2px solid var(--txtColor);
  color: var(--txtColor);
  font-weight: 700;
}

/* 서브하위 메뉴 */
.subMenuBottom {
  width: 100%;
  background-color: var(--backColor2);
}
.subMBottomUl {
  width: 65%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  padding: 10px 15px;
  gap: 15px;
}
.subMBottomUl > li {
  border: 1px solid var(--txtBDColor);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  font-size: 14px;
  border-radius: 5px;
  color: var(--txtBDColor);
  font-weight: 500;
  cursor: pointer;
}
.subMBottomUl > li.on {
  background-color: var(--txtBDColor);
  color: var(--whiteColor);
}


.contentArt {
  flex: 1;
}

/* 이미지 모달창 */
.imgModalArt {
  width: 100%;
  height: 100%;
  /* display: flex; */
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

.imgModal {
  width: 60%;
  height: 70%;
  max-width: 1000px;
  max-height: 650px;
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 10px;
}

.imgModalImg {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imgModalImg > img {
  width: 100%;
}

.imgModalClose {
  width: 35px;
  height: 35px;
  cursor: pointer;
}

/* 상품 */
.itemBox {
  width: 250px;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--borderLine);
  background-color: var(--backColor2);
}
.itemBox:hover {
  border: 1px solid var(--blueHover);
}

.itemImgs {
  width: 230px;
  height: 230px;
  background-color: var(--whiteColor);
}
.itemImgs > img {
  width: 100%;
  height: 100%;
}

/* 버튼 */
.itemBtns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin: 5px 0 0 0;
}

.itemBtns > div {
  display: flex;
  gap: 5px;
}

/* 좋아요 */
.itemLikeBtn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.itemLikeH {
  display: none;
}
.itemLikeOn {
  display: none;
}

.itemLikeBtn:hover .itemLikeH {
  display: block;
}
.itemLikeBtn:hover .itemLikeOff {
  display: none;
}

.itemLikeBtn.on .itemLikeOff {
  display: none;
}
.itemLikeBtn.on .itemLikeOn {
  display: block;
}

.itemLikeBtn.on:hover .itemLikeH {
  display: none;
}

/* 장바구니 담기 */
.cartBtn {
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.cartBtn:hover > svg {
  fill: var(--blueColor);
}

/* 아이템 정보 */
.itemBoxInfo {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* 업체명 */
.itemStoreName {
  font-size: 14px;
  color: var(--txt6Color);
  max-height: 20px;
  font-weight: 400;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

/* 제품명 */
.itemName {
  font-size: 15px;
  color: var(--txtColor);
  font-weight: 600;
  max-height: 20px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

/* 금액 */
.itemPay {
  font-size: 18px;
  color: var(--subColor);
  font-weight: 700;
}

/* 테이블 모양 */
.tableBoxList .tableBox:first-of-type {
  border-top: 1px solid var(--borderLine);
}

.tableBox {
  width: 100%;
  display: flex;
  border-bottom: 1px solid var(--borderLine);
}
.tableTitBox {
  width: 150px;
  min-height: 40px;
  background-color: var(--backColor2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  gap: 3px;
  color: var(--titColor);
  font-weight: 600;
}
.tableTxtBox {
  flex: 1;
  padding: 5px;
  min-height: 40px;
}
.tableReadBox {
  height: 100%;
  font-size: 14px;
  color: var(--txtColor);
  font-weight: 500;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 10px;
}

.tableTitBox > p {
  display: flex;
  align-items: center;
  gap: 3px;
}

.tableTBox {
  display: flex;
}

/* 파일 등록 */
.photoListBox {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 파일 등록 박스 */
.photoAddFile input[type=file] {
  display: none;
}

.photoAddFile input[type=file] + label {
  display: flex;
  width: 180px;
  height: 180px;
  background-color: var(--txtBrColor);
  color: var(--whiteColor);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.photoIcon {
  width: 40px;
  height: 40px;
}

/* 등록된 파일 */
.photoFile {
  width: 180px;
  height: 180px;
  position: relative;
}

.photoFile > img {
  width: 100%;
  height: 100%;
}

.itemDeleteBtn {
  width: 24px;
  height: 24px;
  position: absolute;
  right: 5px;
  top: 5px;
  cursor: pointer;
  z-index: 1;
}

/* 더보기 버튼 */
.allMoreBtn {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--subColor);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.arrowIcon {
  width: 24px;
  height: 24px;
}
.allMoreBtn:hover span {
  text-decoration: underline;
}

/* 할인가일 경우 */
.moreItemPaySale {
  display: flex;
  align-items: center;
  gap: 5px;
}

.payCost {
  font-size: 14px;
  color: var(--txt9Color);
  text-decoration: line-through;
  font-weight: 500;
  margin: 0 3px 0 0;
}

.payRate {
  color: var(--redColor);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -1px;
}

.paySale {
  color: var(--redColor);
  font-weight: 600;
  font-size: 18px;
}

/* 반응형 */
@media screen and (max-width: 1600px) { 
  .subMenuUl {
    width: 80%;
  }
  .subMBottomUl {
    width: 80%;
  }
}

@media screen and (max-width: 1400px) {
  .itemImgs {
    width: 200px;
    height: 200px;
  }

  .itemName {
    font-size: 14px;
  }
  .itemPay {
    font-size: 16px;
  }

  .payRate {
    font-size: 17px;
  }
  .paySale {
    font-size: 15px;
  }
}

@media screen and (max-width: 1200px) { 
  .subMenuArt {
    margin: 225px auto 0;
  }

  .subMenuUl {
    width: 90%;
  }
  .subMBottomUl {
    width: 90%;
  }

  .subMenuUl > li a {
    height: 40px;
    font-size: 14px;
  }
  .subMBottomUl > li {
    height: 30px;
    padding: 0 10px;
  }

  .itemPay {
    font-size: 16px;
  }
  .itemImgs {
    width: 100%;
    height: 70%;
    max-height: 175px;
  }

  .itemBox {
    width: 200px;
    flex-shrink: 0;
  }

}

@media screen and (max-width: 1000px) { 
  .itemStoreName {
    font-size: 13px;
  }

  .photoIcon {
    width: 32px;
    height: 32px;
  }
}

@media screen and (max-width: 800px) {
  
  .tableTitBox {
    font-size: 13px;
  }

  .tableReadBox {
    font-size: 13px;
  }

  .boardTable > table {
    font-size: 13px;
  }

}

@media screen and (max-width: 600px) { 

  .subMenuTitArt {
    height: 200px;
  }
  .subTitArt {
    height: 200px;
  }
  .subTitArt > p {
    font-size: 20px;
    margin: 0 0 60px 0;
  }

  .subTxtBox {
    margin: 70px 0 0 0;
    gap: 10px;
  }
  .subMenuArt {
    margin: 125px auto 0;
  }

  .subMenuUl {
    width: 95%;
  }
  .subMBottomUl {
    width: 95%;
    gap: 10px;
  }
  .subMenuUl > li {
    padding: 0 10px;
  }

  .subTxtBox > p:first-child {
    font-size: 20px;
  }

  .boardBtn {
    font-size: 13px;
  }

  .popupBox {
    min-width: 250px;
    width: 80%;
  }

  .boardTable > table {
    font-size: 13px;
  }

  .pageNation {
    margin: 20px 0;
  }

  .arrows > div {
    width: 24px;
    height: 24px;
  }

  .nums {
    gap: 6px
  }

  .nums > div {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .boardTable > table tbody td {
    height: 40px;
  }

  .itemName {
    font-size: 14px;
  }
  .itemPay {
    font-size: 15px;
  }



  .payRate {
    font-size: 16px;
  }
  .paySale {
    font-size: 15px;
  }

  .tableTitBox {
    width: 90px;
  } 
}

/* 견적 추가 */
.controlTableDiv {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 40px 0;
}

.controlTable > table thead th:first-child {
  width: 35%;
}
.controlTable > table thead th:nth-child(2) {
  width: 10%;
}
.controlTable > table thead th:nth-child(3) {
  width: 15%;
}
.controlTable > table thead th:nth-child(4) {
  width: 40%;
}

.controlTable > table tbody tr:hover {
  background-color: white;
}

.controlTablePs {
  font-size: 14px;
  color: var(--txt9Color);
  font-weight: 500;
}

@media screen and (max-width: 800px) { 
  .controlTablePs {
    font-size: 13px;
    word-break: keep-all;
    line-height: 130%;
  }

  .controlTable > table thead th:first-child {
    width: 30%;
  }
  .controlTable > table thead th:nth-child(3) {
    width: 20%;
  }

  .controlTable > table tbody td {
    padding: 5px;
    word-break: keep-all;
  }
}
