
/* 전역 스타일 */
body {
  background-color: #f5f5f5;
}
#main {
    width: 600px;
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
}
.sec .inner {
    padding: 40px 20px;
}
.font-p {
    font-family: 'Paperlogy', "Malgun Gothic", "Noto Sans KR", sans-serif;
}
.font-s {
    font-family: 'SUIT', "Malgun Gothic", "Noto Sans KR", sans-serif;
}

@media screen and (max-width: 600px) {
  #main {
    width: 100%;
    max-width: 100%;
  }
}


/* 스크롤바 */
*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
* {
  scrollbar-width: thin; 
  scrollbar-color: #bdbdbd transparent;
}

*::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: #a6a6a6;
}

*::-webkit-scrollbar-thumb:active {
  background: #8f8f8f;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}


/* section */
.bg-gray {
  background-color: #E6E6E6;
}
.product-title {
    margin-bottom: 20px;
    padding: 14px 0;
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    background-color: #333;
}
.product-area~.product-title {
    margin-top: 20px;
}
.product-title span {
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  color: #b3b3b3;
}

/* 제품 area */
.product-area {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 30px;
}
.product-box {
    overflow: hidden;
    position: relative;
    width: calc((100% - 30px) / 2);
    border-radius: 10px;
    border: 1px solid #E6E6E6;
}
.product-txt-wrap {
    padding: 16px;
}
.product-box figure {
  display: flex;
  max-width: 265px;
  background-color: #f9f9f9;
}
.product-box figure img {
    object-fit: contain;
    width: 100%;
}

.product-txt-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
}
.p-name {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}
.p-desc {
    display: block;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 800;
    color: #999;
}
.none-sale-price {
    position: relative;
    display: inline-block;
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 600;
    color: #999;
}
.none-sale-price:after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(0, -50%);
  width: 87px;
  height: 8px;
  background: url(../assets/images/none-sale-price.png);
}
.sale-price {
  margin-bottom: 16px;
}
.sale-price span:first-child {
    font-size: 22px;
    font-weight: 800;
}
.sale-price span:last-child {
    font-size: 40px;
    font-weight: 900;
    color: #E80051;
}
.price-desc {
    font-size: 14px;
    font-weight: 400;
    color: #999;
}
.price-desc span {
    font-size: 6px;
}
.sale-price span:last-child b {
    font-size: 23px;
    font-weight: 400;
}

@media screen and (max-width: 600px) {
  .product-area {
    gap: 20px 16px;
  }
  .product-box {
    width: calc((100% - 16px) / 2);
  }
  .product-txt-wrap {
    height: calc(100% - var(--figure-h, 0px));
    padding: 10px;
  }
  .p-desc,
  .p-name {
    font-size: 14px;
  }
  .sale-price span:first-child {
    font-size: 18px;
  }
  .sale-price span:last-child {
    font-size: 30px;
  }
  .price-desc {
    font-size: 12px;
    word-break: keep-all;
  }
}