/* ==================== 전체 box-sizing 적용 ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==================== 공통 컨테이너 ==================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  max-width: 100%;
}

/* ==================== body 가로 스크롤 방지 ==================== */
body {
  overflow-x: hidden;
  font-family: 'Pretendard', sans-serif;
  background-color: #fefefe;
}

/* ==================== 헤더 스타일 ==================== */
.site-header {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
}

.logo a {
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #333;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

.logo a:hover {
  color: #007bff;
  cursor: pointer;
}

/* ==================== 메인 콘텐츠 패딩 ==================== */
main.main-content {
  padding-top: 90px;
}

/* ==================== 히어로 슬라이더 ==================== */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 60px auto;
  width: 90%;
  max-width: 1100px;
}

.hero-slider .slides {
  display: flex;
  transition: transform 0.5s ease;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.hero-slider .slide.active {
  opacity: 1;
  position: relative;
  pointer-events: all;
}

.hero-slider img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

/* ==================== 내비게이션 버튼 ==================== */
.hero-slider .nav {
  position: absolute;
  top: 50%;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.2);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s, border-color 0.3s;
}

.hero-slider .nav:hover {
  background: rgba(255,255,255,1);
  border-color: rgba(0,0,0,0.4);
}

.hero-slider .prev { left: 10px; transform: translateY(-50%); }
.hero-slider .next { right: 10px; transform: translateY(-50%); }

/* ==================== 진행바 + 슬라이드 카운터 ==================== */
.hero-slider .slider-navigation {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.hero-slider .progress-nav {
  display: flex;
  gap: 8px;
  width: 60%;
}

.hero-slider .progress-bar {
  flex: 1;
  height: 4px;
  background-color: rgba(200,200,200,0.5);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.hero-slider .progress-bar .fill {
  width: 0%;
  height: 100%;
  background-color: #007bff;
  transition: width 0.5s ease;
}

.hero-slider .slide-counter {
  background: rgba(51, 51, 51, 0.6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ==================== 상품 목록 ==================== */
.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  width: 100%;
}

.product-card {
  width: 180px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.product-card img {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px auto;
}

.product-card p {
  font-size: 16px;
  color: #333;
}

.product-card:hover { transform: translateY(-5px); }

/* ==================== 정보/신뢰 섹션 ==================== */
.info-trust {
  margin: 60px auto;
  padding: 50px 20px;
  text-align: center;
  background: linear-gradient(to bottom, #fefefe, #f9f9fb);
  border-radius: 16px;
}

.info-trust h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #333;
}

.trust-cards {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 25px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  width: 220px;
  transition: none;
}

.trust-card img {
  width: 60px;
  height: 60px;
  padding: 12px;
  border-radius: 50%;
  background-color: #eee;
}

.trust-card p {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.trust-card span {
  font-size: 14px;
  color: #555;
  text-align: center;
}

/* 카드별 색상 강조 */
.trust-card:nth-child(1) img { background-color: #28a745; }
.trust-card:nth-child(2) img { background-color: #007bff; }
.trust-card:nth-child(3) img { background-color: #fd7e14; }

/* ==================== 실시간 구매 / 누적 판매 금액 ==================== */
.sales-info {
  margin: 60px auto;
  padding: 40px 20px;
  background-color: #f9f9fb;
  border-radius: 16px;
}

.sales-info h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #333;
}

.sales-cards {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.live-purchase, .total-sales {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  width: 280px;
}

.live-purchase h3, .total-sales h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.live-purchase ul {
  list-style: none;
  max-height: 150px;
  overflow-y: auto;
}

.live-purchase ul li {
  font-size: 16px;
  color: #555;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.total-sales p {
  font-size: 22px;
  font-weight: 700;
  color: #007bff;
  text-align: center;
}

/* ==================== 고객 이용후기 ==================== */
.customer-reviews {
  margin: 60px auto;
  padding: 40px 20px;
  text-align: center;
}

.customer-reviews h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #333;
}

.review-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.review-card {
  background-color: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  width: 250px;
  text-align: center;
}

.review-card p {
  font-size: 16px;
  color: #555;
  margin-bottom: 12px;
}

.review-card span {
  font-size: 14px;
  color: #888;
}

/* ==================== FAQ & 공지사항 ==================== */
.faq-notice {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 60px auto;
  padding: 40px 20px;
}

.faq, .notice {
  background-color: #f9f9fb;
  padding: 20px;
  border-radius: 16px;
  width: 48%;
}

.faq h3, .notice h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.faq-item {
  margin-bottom: 15px;
}

.faq-item p {
  font-size: 15px;
  color: #555;
}

.notice ul {
  list-style: disc inside;
}

.notice ul li {
  font-size: 15px;
  color: #555;
  margin-bottom: 8px;
}

/* ==================== 고객센터 ==================== */
.customer-service {
  text-align: center;
  margin: 60px auto;
  padding: 30px 20px;
  background-color: #ffffff;
  border-radius: 12px;
  width: 100%;
}

.customer-service h3 { font-size: 22px; margin-bottom: 15px; color: #333; }
.customer-service .contact-info p { font-size: 18px; margin-bottom: 15px; }
.customer-service .chat-boxes {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.customer-service .chat-boxes a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: background 0.3s;
}

.customer-service .kakao-box { background-color: #F7E600; color: #3c1e1e; }
.customer-service .kakao-box:hover { background-color: #ffd600; }
.customer-service .telegram-box { background-color: #0088cc; }
.customer-service .telegram-box:hover { background-color: #00aaff; }

/* ==================== 푸터 ==================== */
.site-footer {
  background-color: #f8f9fa;
  padding: 30px 0;
  font-size: 14px;
  color: #555;
  border-top: 1px solid #e0e0e0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left p { margin: 4px 0; }
.footer-right a { color: #555; text-decoration: none; margin: 0 5px; transition: color 0.2s ease; }
.footer-right a:hover { color: #007bff; cursor: pointer; }
.footer-right span { color: #aaa; }

/* ==================== 반응형 ==================== */
@media (max-width: 768px) {
  .hero-slider { border-radius: 12px; }
  .hero-slider .nav { width: 30px; height: 30px; }
  .hero-slider .slide-counter { font-size: 13px; padding: 5px 12px; }
  .product-card { width: 45%; }
  .trust-cards { gap: 30px; }
  .trust-card { width: 200px; padding: 22px; gap: 12px; }
  .sales-cards { flex-direction: column; align-items: center; gap: 20px; }
  .live-purchase, .total-sales { width: 90%; }
  .review-cards { flex-direction: column; align-items: center; gap: 20px; }
  .faq-notice { flex-direction: column; gap: 20px; }
  .faq, .notice { width: 100%; }
}

@media (max-width: 480px) {
  .product-card { width: 80%; }
  .trust-card img { width: 50px; height: 50px; }
  .trust-card { width: 100%; padding: 20px; gap: 10px; }
}
