/* 시술 선택 섹션 */
.inter-select-con {
  padding: 20px 0 12px;
}
.inter-select-con .tit {
  color: #222;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 40px;
  margin-top: 16px;
  text-align: center;
}

/* 시술 선택 리스트 컨테이너 */
.surgery-list-con {
  position: relative;
  padding: 0 20px;
}

/* 시술 아이콘 리스트 */
.surgery-list-con .surgery-list {
  display: grid;
  /* 
    최소 너비를 모바일 환경에 맞춰 80px 정도로 더 작게 설정하면 
    더 자연스럽게 반응합니다. 
  */
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 20px 15px; /* 세로 간격 20px, 가로 간격 15px */
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* 각 시술 아이콘 아이템 */
.surgery-list-con .surgery-list .surgery-item {
  text-align: center;
  transition: all 0.3s ease;
}

.surgery-list-con .surgery-list .surgery-item a {
  display: block;
  text-decoration: none;
}
.surgery-list-con .surgery-list .surgery-item .img-con {
  /* 고정된 px 값을 상대적인 % 값으로 변경 */
  width: 100%; 
  
  /* height를 직접 지정하는 대신, width에 맞춰 1:1 비율을 유지하도록 설정 */
  /* 이렇게 하면 항상 완벽한 정사각형(원)이 유지됩니다. */
  aspect-ratio: 1 / 1; 

  /* 기존 height 속성은 삭제하거나 주석 처리합니다. */
  /* height: 150px; */

  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  margin: 0 auto 10px;
  background: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: center;
}

.surgery-list-con .surgery-list .surgery-item .img-con img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
  transition: transform 0.3s ease;
}
.surgery-list-con .surgery-list .surgery-item:hover .img-con img {
  transform: scale(1.05);
}
.surgery-list-con .surgery-list .surgery-item .txt {
  color: #333;
  font-weight: 500;
  font-size: clamp(12px, 1rem + 0.5vw, 16px);
}
.inter-select-con .more-view {
  display: none;
  margin-top: 15px;
  color: #666;
  font-size: 1.1rem;
  cursor: pointer;
  text-align: center;
}
.inter-select-con .more-view b {
  color: #4d3dbf;
  font-weight: 500;
  margin-right: 5px;
}
.inter-select-con .more-view-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url('../img/more-view-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
}

/* 메인 배너 슬라이드 */
.main-beauty-banner-con {
  position: relative;
  /* Swiper 자체에 max-width를 줄 것이므로 여기서는 제거하거나 유지해도 괜찮습니다. */
  margin: 0 auto;
  /* 좌우 패딩으로 슬라이더와 페이지 가장자리 사이의 여백을 만듭니다. */
  padding: 12px 20px 12px;
  /* ::before, ::after 스타일은 슬라이더 라이브러리와 무관하므로 그대로 유지합니다. */
}
.main-beauty-banner-con::before,
.main-beauty-banner-con::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  z-index: -1;
}
.main-beauty-banner-con::before { top: 0; height: 100%; }
.main-beauty-banner-con::after { bottom: 0; height: 70px; }


/* 2. Swiper 컨테이너 자체 스타일 */
.main-beauty-banner-con .swiper {
  /* Swiper는 기본적으로 overflow: hidden 이므로 명시적으로 다시 설정 */
  overflow: hidden;
  position: relative; /* 페이지네이션 등 자식 absolute 요소의 기준점 */
  margin: 0 auto;
  /* ★★★ 중요: Swiper는 슬라이드에 직접 패딩을 주지 않고, 컨테이너 자체에 둥근 모서리를 적용하는 것이 가장 좋습니다. */
  border-radius: 20px;
  /* 그림자 효과 추가 */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 
   Swiper에서는 .swiper-wrapper가 .slick-track의 역할을 합니다.
   기본적으로 flex로 동작하므로 align-items만 필요시 추가할 수 있습니다.
*/
.main-beauty-banner-con .swiper-wrapper {
  align-items: flex-start; /* 기존 slick-track 스타일 유지 */
}

/* 3. 개별 슬라이드 아이템 스타일 */
.main-beauty-banner-con .swiper-slide {
  /* 
    Swiper 슬라이드는 slick과 달리 추가적인 div 래퍼가 없습니다.
    따라서 슬라이드 자체에 스타일을 직접 적용하면 됩니다.
    패딩이나 개별 border-radius는 .swiper 컨테이너에서 처리하므로 여기서는 불필요합니다.
  */
  overflow: hidden; /* 내부 이미지가 둥근 모서리를 넘지 않도록 */
  /* 2:1 비율 설정. 이미지가 로드되기 전에도 레이아웃이 깨지지 않도록 유지 */
  aspect-ratio: 2 / 1;
  background-color: #f0f0f0; /* 이미지가 로드되기 전 보일 배경색 (선택사항) */
}

.main-beauty-banner-con .swiper-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.main-beauty-banner-con .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  /* 
    border-radius는 부모인 .swiper에서 처리하므로 이미지에는 필요 없습니다.
    이렇게 해야 fade 같은 효과를 사용할 때도 깨지지 않습니다.
  */
  object-fit: cover; /* 이미지가 슬라이드 영역에 꽉 차도록 설정 */
}

/* 4. Swiper 페이지네이션(점) 스타일링 */
.main-beauty-banner-con .swiper-pagination {
  position: absolute;
  bottom: 15px !important;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
}

.main-beauty-banner-con .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: #fff;
  opacity: 0.6;
  transition: all 0.3s ease;
  margin: 0 5px !important;
}

.main-beauty-banner-con .swiper-pagination-bullet-active {
  opacity: 1;
  width: 24px;
  border-radius: 5px;
}

/* 인라인 스타일 대신 클래스 사용 */
.rounded-banner-img {
  border-radius: 20px !important;
}

/* 고정 배너 스타일 */
.fixed-banner-con {
  margin: 0 auto;
  overflow: hidden;
  padding: 0 20px; /* 좌우 여백을 padding으로 설정 */
  box-sizing: border-box; /* padding이 너비에 포함되도록 설정 */
}


.fixed-banner {
  max-width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #ff66cc, #4d3dbf);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  /* 가로 세로 비율 계산 - PC 1040:125 */
  aspect-ratio: 1040/125;
}

.fixed-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.fixed-banner .banner-text {
  color: white;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  letter-spacing: -0.5px;
}

/* 반응형 - 태블릿 */
@media screen and (max-width: 768px) {
  .fixed-banner-con {
    padding: 0 24px;
    margin: 0 auto;
  }

  .fixed-banner {
    max-width: 100%;
    height: auto;
    /* 가로 세로 비율 유지 - 태블릿은 PC 비율과 동일하게 */
    aspect-ratio: 1040/110;
  }

  .fixed-banner .banner-text {
    font-size: 18px;
  }
}

/* 반응형 - 모바일 */
@media screen and (max-width: 480px) {
  .fixed-banner-con {
    padding: 0 20px;
    margin: 0 auto;
  }

  .fixed-banner {
    height: auto;
    /* 가로 세로 비율 조정 - 모바일 370:80 */
    aspect-ratio: 370/70;
    border-radius: 15px;
  }

  .fixed-banner .banner-text {
    font-size: 15px;
    line-height: 1.3;
  }
}

@media screen and (max-width: 375px) {
  .fixed-banner {
    max-width: 100%;
    border-radius: 10px;
    aspect-ratio: 370/60;
  }

  .fixed-banner .banner-text {
    font-size: 14px;
    padding: 0 10px;
  }
}

/* 문의 배너 */
.inquiry-banner-con {
  padding: 20px 0;
}
.inquiry-banner-con a {
  display: block;
  cursor: pointer;
}
.inquiry-banner-con a img {
  width: 100%;
  border-radius: 10px;
}

/* 인기 상품 */
.best-product-con {
  padding: 12px 0;
}
.best-product-list-con .best-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0 0 20px 0;
}
.best-product-list-con .best-list .best-item {
  flex: 0 0 calc(25% - 12px);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.best-product-list-con .best-list .best-item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.best-product-list-con .best-list .best-item .img-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
  background-color: #fff;
  border-radius: 20px 20px 0 0;
}

.best-product-list-con .best-list .best-item .img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.best-product-list-con .best-txt-con {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.best-product-list-con .best-txt-con .location {
  font-size: 1.2rem;
  color: #4d3dbf;
  margin-bottom: 5px;
}
.best-product-list-con .best-txt-con .tit {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.best-product-list-con .best-txt-con .txt {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.5;
  height: 32px;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.best-product-list-con .rating-price-con {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}
.best-product-list-con .price-info {
  text-align: right;
}
.best-product-list-con .discount-rate {
  font-size: 16px;
  font-weight: 600;
  color: #ff3e3e;
  margin-right: 5px;
}
.best-product-list-con .money {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  text-align: right;
  margin-top: 15px;
}
.best-product-list-con .money span {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  margin-right: 5px;
}

/* 인사이트 섹션 */
.insight-con {
  padding: 12px 0;
}
.insight-list-con {
  margin-top: 20px;
}
.insight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.insight-list .insight-item {
  flex: 0 0 calc(33.33% - 16px);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.insight-list .insight-item .img-con {
  width: 100%;
  height: 200px;
  overflow: visible;
  background-color: transparent;
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: -30px;
  z-index: 1;
}
.insight-list .insight-item .img-con img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.insight-list .insight-item .des-con {
  padding: 20px 20px 20px;
  position: relative;
  background-color: #fff;
  border-radius: 0 0 20px 20px;
  z-index: 0;
}
.insight-list .insight-item .des-con .tit {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 15px;
}
.insight-list .insight-item .des-con .des {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  height: 68px;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 15px;
}
.insight-list .insight-item .more-view {
  display: inline-flex;
  align-items: center;
  color: #4d3dbf;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  float: right;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

/* 병원 광고 배너 */
.business-partner-con {
  position: relative;
  /* 부모 컨테이너에 직접 max-width를 주어 전체 너비를 제어할 수 있습니다. */
  max-width: 1080px; /* 예시: 상단 배너와 동일한 최대 너비 */
  margin: 0 auto;
  /* 좌우 패딩으로 페이지 가장자리와의 여백을 확보합니다. */
  padding: 12px 20px 48px; /* 기존 margin-bottom: 48px을 padding-bottom으로 통합 */
  box-sizing: border-box;
}

/* 2. Swiper 컨테이너 자체 스타일 */
/* HTML에서는 <div id="banner-bottom-slider" class="swiper"></div> 입니다. */
.business-partner-con .swiper {
  /* Swiper는 기본적으로 overflow: hidden 입니다. */
  overflow: hidden;
  margin: 0 auto; /* 부모 패딩이 있으므로 내부 마진은 0으로 설정 */

  /* ★★★ 중요: .ad-container의 스타일을 여기에 적용합니다. */
  border-radius: 20px;
  transition: all 0.3s ease;
}

/* 3. 개별 슬라이드 아이템 스타일 */
.business-partner-con .swiper-slide {
  /* 특별한 스타일이 필요하지 않지만, 이미지 하단 여백 제거를 위해 추가 */
  font-size: 0;
  background-color: #f0f0f0; /* 이미지가 로드되기 전 배경색 */
}

.business-partner-con .swiper-slide a {
  display: block;
  width: 100%;
}

.business-partner-con .swiper-slide img {
  width: 100%;
  height: auto; /* 이미지 비율을 유지하도록 auto로 설정 */
  display: block;
}

/* 
   만약 하단 배너에도 페이지네이션(점)이 필요하다면, 
   상단 배너의 .swiper-pagination 스타일을 여기에 추가할 수 있습니다.
   HTML에도 <div class="swiper-pagination"></div>를 추가해야 합니다.
*/
.business-partner-con .swiper-pagination-bullet {
  background-color: #888; /* 예시: 하단 배너는 어두운 색 점으로 */
}
.business-partner-con .swiper-pagination-bullet-active {
  background-color: #333;
}

/* 인기 상품 상세 스타일 */
.product-rating-info {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.product-rating-info .stars {
  color: #ffca00;
  font-size: 16px;
  margin-right: 5px;
}

.product-rating-info .score {
  font-size: 1.05rem;
  color: #666;
}

.product-loan-text {
  font-size: 14px;
  color: #4d3dbf;
  margin-bottom: 10px;
  font-weight: 500;
}

.product-price {
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.product-price .discount-rate {
  color: #ff3e3e;
  font-size: 16px;
  font-weight: 600;
  margin-right: 8px;
}

.product-price .price {
  color: #222;
  font-size: 1.3rem;
  font-weight: 600;
}

/* 인기 대출 섹션 스타일 */
.loan-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.loan-item {
  flex: 0 0 calc(33.33% - 16px);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 340px; /* 높이 증가 */
}

.loan-item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.loan-img {
  width: 100%;
  height: 50%; /* Half of the card height for image */
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.loan-img-content {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.loan-img-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

/* 대출 카드 텍스트 영역 스타일 */
.loan-text {
  height: 50%; /* Half of the card height for text */
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  color: #333;
  font-size: 1.4rem;
  background-color: #f7f6ff; /* 사이트 메인 컬러와 어울리는 연한 배경색 */
  border-radius: 0 0 12px 12px;
  transition: background-color 0.3s ease;
  flex: 1;
}

.loan-text p {
  margin: 0;
  width: 100%;
  color: #4d3dbf; /* 사이트 메인 컬러와 동일한 색상 */
  transition: color 0.3s ease;
  line-height: 1.4;
}

.loan-text span {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 1.25rem;
  color: rgb(70, 68, 80);
  line-height: 1.3;
}

/* 반응형 스타일 조정 */
@media screen and (max-width: 768px) {
  .loan-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .loan-item {
    flex: 0 0 100%;
    width: 100%;
    height: 200px;
    margin-bottom: 0;
  }

  .loan-img {
    width: 100%;
    height: 50%;
    position: relative;
  }

  .loan-img-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
  }

  .loan-img-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .loan-text {
    font-size: 17px;
    padding: 15px;
    height: 50%;
  }

  .loan-text span {
    font-size: 14px;
    margin-top: 8px;
  }
}

@media screen and (max-width: 480px) {
  .loan-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .loan-item {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
  }

  .loan-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .loan-img {
    width: 100%;
    position: relative;
    flex: none;
    padding-top: 50%; /* 2:1 비율 유지 */
    overflow: hidden;
  }

  .loan-img-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
  }

  .loan-img-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .loan-text {
    font-size: 15px;
    padding: 12px;
    flex: none;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media screen and (max-width: 390px) {
  .inter-select-con {
    padding: 10px 0 6px;
  }

  .inter-select-con .tit {
    font-size: 18px;
    margin-bottom: 16px;
    margin-top: 8px;
  }

  .main-beauty-banner-con {
    padding: 6px 16px;
  }
  .main-beauty-banner-con .slick-list {
    padding: 5px 0;
  }
  .main-beauty-banner-con .banner-item {
    padding: 0 4px;
    aspect-ratio: 2 / 1; /* 작은 화면에서도 2:1 비율 유지 */
  }
  .main-beauty-banner-con .banner-item img {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 작은 화면에서도 인기 상품 카드의 위쪽이 직각 유지 */
  .best-product-list-con .best-list .best-item {
    border-radius: 0 0 20px 20px;
  }

  .best-product-list-con .best-list .best-item img {
    border-radius: 0;
  }

  /* 고정 배너 스타일 */
  .fixed-banner-con {
    padding: 0 16px;
  }

  .loan-items-list {
    gap: 10px;
  }

  .loan-item {
    height: auto;
    margin-bottom: 10px;
  }

  .loan-img {
    padding-top: 50%; /* 2:1 비율 유지 */
  }

  .loan-text {
    padding: 10px;
    font-size: 14px;
    min-height: 70px;
  }

  .loan-text span {
    font-size: 12px;
    margin-top: 3px;
    display: block;
  }
}

/* 공통 타이틀 스타일 */
.cm-title-con {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.cm-title-con .tit {
  color: #222;
  font-size: 24px;
  font-weight: 600;
}
.cm-title-con a {
  color: #666;
  font-size: 1rem;
}

@media screen and (max-width: 767px) {
  .cm-title-con .tit {
    font-size: 20px;
  }
}

@media screen and (max-width: 380px) {
  .cm-title-con .tit {
    font-size: 18px;
  }

  /* 모든 화면에서 인기 상품 카드 라운드 유지 */
  .best-product-list-con .best-list .best-item {
    border-radius: 12px;
  }

  .best-product-list-con .best-list .best-item .img-container {
    border-radius: 12px 12px 0 0;
    padding-bottom: 100%; /* 정사각형 비율 작은 화면에서도 유지 */
  }

  .best-product-list-con .best-list .best-item img {
    border-radius: 0;
  }
}

/* Slick 슬라이더 dots 스타일링 */
.main-beauty-banner-con .slick-dots {
  position: absolute;
  bottom: -15px;
  display: flex !important;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.main-beauty-banner-con .slick-dots li {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  padding: 0;
  cursor: pointer;
}

.main-beauty-banner-con .slick-dots li button {
  font-size: 0;
  line-height: 0;
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  cursor: pointer;
  color: transparent;
  border: 0;
  outline: none;
  background: transparent;
}

.main-beauty-banner-con .slick-dots li button:before {
  font-family: 'slick';
  font-size: 0;
  line-height: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  content: '';
  text-align: center;
  opacity: 0.5;
  background-color: #ccc;
  border-radius: 50%;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.main-beauty-banner-con .slick-dots li.slick-active button:before {
  opacity: 1;
  background-color: #4d3dbf;
  width: 20px;
  border-radius: 10px;
}

/* 병원 입점 광고 배너 */
.business-partner-con .ad-container > a {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1; /* 2:1 비율 유지 (800x400) */
  overflow: hidden;
  border-radius: 10px;
}

.business-partner-con .ad-container > a > div {
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.business-partner-con .ad-container > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 비율을 유지하면서 컨테이너를 채움 */
  display: block;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .business-partner-con .ad-container > a {
    aspect-ratio: 2 / 1; /* 모바일에서도 2:1 비율 유지 */
  }
}

/* 반응형 - 메인 컨텐츠 */
@media screen and (max-width: 1199px) {
  .best-product-list-con .best-list .best-item {
    flex: 0 0 calc(25% - 12px);
  }

  .best-product-con .container {
    padding: 0 20px;
  }
  .insight-con .container {
    padding: 0 20px;
  }

  .insight-list .insight-item {
    flex: 0 0 calc(33.33% - 16px);
  }
  
  .main-beauty-banner-con {
    padding: 12px 20px;
  }
  .main-beauty-banner-con .banner-item img {
    border-radius: 15px;
  }
  .loan-items-list {
    gap: 20px;
  }
  .loan-item {
    flex: 0 0 calc(33.33% - 14px);
  }
}

@media screen and (max-width: 990px) {
  .loan-items-list {
    gap: 16px;
  }

  #header .header-inner {
    padding: 0 14px;
  }

  .loan-item {
    flex: 0 0 calc(33.33% - 12px);
  }
}

@media screen and (max-width: 768px) {
  .inter-select-con {
    padding: 16px 0 10px;
  }

  #header .header-inner {
    padding: 0 14px;
  }

  .inter-select-con .tit {
    font-size: 24px;
    margin-top: 12px;
    margin-bottom: 24px;
  }

  .inter-select-con .more-view {
    display: block;
  }

  .main-beauty-banner-con {
    padding: 10px 24px;
  }
  .main-beauty-banner-con .banner-slide {
    max-width: 100%;
  }
  .main-beauty-banner-con .slick-list {
    margin: 0;
    padding: 10px 0;
  }
  .main-beauty-banner-con .banner-item {
    padding: 0 8px;
    aspect-ratio: 2 / 1; /* 모바일에서도 2:1 비율 유지 */
  }
  .main-beauty-banner-con .banner-item img {
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .best-product-list-con .best-list {
    gap: 12px;
    padding: 0;
    margin: 0 0 20px 0;
    width: 100%;
  }
  .best-product-list-con .best-list .best-item {
    flex: 0 0 calc(50% - 6px);
    border-radius: 16px;
  }
  .best-product-list-con .best-list .best-item .img-container {
    border-radius: 16px 16px 0 0;
  }
  .best-product-list-con .best-txt-con {
    padding: 15px;
  }
  .best-product-list-con .best-txt-con .tit {
    font-size: 1.1rem;
  }
  .best-product-list-con .best-txt-con .txt {
    font-size: 0.95rem;
  }
  .best-product-list-con .money {
    font-size: 16px;
  }

  .insight-list {
    gap: 15px;
  }
  .insight-list .insight-item {
    flex: 0 0 calc(50% - 8px);
  }
  .insight-list .insight-item .img-con {
    height: 150px;
  }
  .insight-list .insight-item .des-con {
    padding: 15px;
  }
  .insight-list .insight-item .des-con .tit {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .insight-list .insight-item .des-con .des {
    font-size: 13px;
    height: 60px;
  }
  .insight-list .insight-item .more-view {
    font-size: 13px;
  }

  .best-product-list-con .best-list .best-item img {
    height: auto;
    object-fit: cover;
  }

  .insight-list .insight-item .img-con {
    height: 150px;
  }

  .insight-list .insight-item .img-con img {
    object-fit: contain;
  }

  .product-rating-info .stars {
    font-size: 14px;
  }

  .product-rating-info .score {
    font-size: 13px;
  }

  .product-loan-text {
    font-size: 13px;
  }

  .product-price .discount-rate {
    font-size: 14px;
  }

  .product-price .price {
    font-size: 16px;
  }

  .business-partner-con {
    padding: 8px 16px;
  }

  .ad-container {
    border-radius: 15px;
  }

  .best-product-con {
    padding: 10px 0;
  }
  .best-product-con .container {
    /* padding: 0 15px; */
    width: 100%;
    max-width: 100%;
  }

  .insight-con {
    padding: 10px 0;
  }

  .loan-items-list {
    gap: 15px;
  }
}

@media screen and (max-width: 480px) {
  .inter-select-con {
    padding: 12px 0 8px;
  }

  .inter-select-con .tit {
    font-size: 20px;
    margin-bottom: 20px;
    margin-top: 10px;
  }

  #header .header-inner {
    padding: 0 6px;
  }

  .best-product-list-con .best-list .best-item {
    flex: 0 0 calc(50% - 6px);
    margin-bottom: 15px;
  }
  .best-product-list-con .best-list .best-item .img-container {
    padding-bottom: 100%;
  }

  .insight-list .insight-item {
    flex: 0 0 100%;
  }

  .insight-list .insight-item .img-con {
    height: 200px;
  }

  .product-rating-info .stars,
  .product-rating-info .score {
    font-size: 1rem;
  }

  .product-loan-text {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .product-price .discount-rate {
    font-size: 13px;
  }

  .product-price .price {
    font-size: 1.2rem;
  }

  .business-partner-con {
    padding: 8px 16px;
  }

  .ad-container {
    border-radius: 12px;
  }

  .main-beauty-banner-con {
    padding: 8px 16px;
  }

  .main-beauty-banner-con .banner-item {
    padding: 0 6px;
  }

  .insight-con {
    padding: 8px 0;
  }

  .loan-items-list {
    gap: 12px;
  }
}

@media screen and (max-width: 390px) {
  .inter-select-con {
    padding: 10px 0 6px;
  }

  .inter-select-con .tit {
    font-size: 18px;
    margin-bottom: 16px;
    margin-top: 8px;
  }

  .main-beauty-banner-con {
    padding: 6px 16px;
  }
  .main-beauty-banner-con .slick-list {
    padding: 5px 0;
  }
  .main-beauty-banner-con .banner-item {
    padding: 0 4px;
    aspect-ratio: 2 / 1; /* 작은 화면에서도 2:1 비율 유지 */
  }
  .main-beauty-banner-con .banner-item img {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 작은 화면에서도 인기 상품 카드의 위쪽이 직각 유지 */
  .best-product-list-con .best-list .best-item {
    border-radius: 0 0 20px 20px;
  }

  .best-product-list-con .best-list .best-item img {
    border-radius: 0;
  }

  /* 고정 배너 스타일 */
  .fixed-banner-con {
    padding: 0 16px;
  }

  .loan-items-list {
    gap: 10px;
  }

  .loan-item {
    height: auto;
    margin-bottom: 10px;
  }

  .loan-img {
    padding-top: 50%; /* 2:1 비율 유지 */
  }

  .loan-text {
    padding: 10px;
    font-size: 14px;
    min-height: 70px;
  }

  .loan-text span {
    font-size: 12px;
    margin-top: 3px;
    display: block;
  }
}
.best-product-con .container,
.insight-con .container {
  padding-left: 20px;
  padding-right: 20px;
}