/* ========== 메인 콘텐츠 영역 ========== */
.main {
  font-family: "SpoqaHanSansNeo-Regular", sans-serif;
}

/* ========== 메인 슬라이더 섹션 ========== */
.mySwiper {
  --swiper-navigation-size: 1.6rem;
  --swiper-theme-color: #000;
  color: #000;
  cursor: pointer;
}
.swiper {
  width: 100%;
  height: 100%;
}
.swiper-slide {
  background-position: center;
  background-size: cover;
}
.swiper-button-prev {
  left: 30px !important;
}
.swiper-button-next {
  right: 30px !important;
}
.swiper-pagination {
  bottom: 25px !important;
}
.swiper-slide img {
  display: block;
  width: 100%;
}
/* ========== 상품 목록 섹션 ========== */
.main-products {
  margin: 8rem 0 18rem 0;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
  gap: 7rem;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.product-card > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-sm);
  z-index: 50;
}
.product-card .image-wrapper {
  border-radius: 10px;
  overflow: hidden;
}
.product-card:hover img {
  transform: scale3d(1.1, 1.1, 1.1);
}
.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--border-radius-m);
  vertical-align: bottom;
  transition: all 0.3s;
}
.product-card-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.product-card-text p {
  color: #767676;
  font-size: 1.6rem;
}
.product-card-text h3 {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: break-word;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-text div[itemprop="price"] {
  font-size: 2.4rem;
  font-weight: 700;
}
.product-card-text div[itemprop="price"] span:first-child {
  font-family: "SpoqaHanSansNeo-Bold", sans-serif;
  font-size: 2.4rem;
}
.product-card-text div[itemprop="price"] span:last-child {
  font-size: 1.6rem;
}
.image-wrapper.sold-out {
  position: relative;
}
.image-wrapper.sold-out::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  border-radius: var(--border-radius-sm);
}
.image-wrapper.sold-out::before {
  content: "품절";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  padding: 0.8rem 1.6rem;
  font-family: "SpoqaHanSansNeo-Bold", sans-serif;
  font-size: 2.2rem;
  z-index: 100;
}
.price-number.sold-out,
.price-unit.sold-out {
  color: var(--gray-700);
}

@media (max-width: 992px) {
  .main-banner {
    height: 260px;
  }
  .swiper-slide img {
    height: 100%;
    object-fit: cover;
    object-position: right center;
  }
  .main-products {
    margin: 5rem 0;
  }
  .products-grid {
    grid-template-columns: repeat(3, minmax(2rem, 1fr));
    gap: 1.5rem;
    row-gap: 5rem;
  }
}
@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(2rem, 1fr));
    row-gap: 3rem;
  }
  .product-card-text {
    gap: 0.7rem;
  }
  .product-card-text h3 {
    font-size: 1.6rem;
  }
  .product-card-text div[itemprop="price"] span:first-child {
    font-size: 1.8rem;
  }
}
