/* ===========================================================================
   ilbonshopping.com 리뉴얼 CSS
   작성일: 2026-02-25
   설명: PC 메인페이지 전면 리뉴얼 스타일
   =========================================================================== */

/* ===========================================================================
   히어로 영역 (슬라이드쇼 + 로그인폼)
   =========================================================================== */

/* 히어로 컨테이너 */
.hero-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 0;
  height: 400px;
}

/* 슬라이드쇼 (70%) */
.hero-slideshow {
  flex: 0 0 70%;
  position: relative;
  overflow: hidden;
  height: 400px;
}

.hero-slideshow #slideshow {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  height: 100%;
}

.hero-slideshow #slideshow li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s;
}

.hero-slideshow #slideshow li.active {
  opacity: 1;
}

.hero-slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 슬라이드 내비게이션 */
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  font-size: 20px;
  z-index: 10;
}

#prev-slide { left: 10px; }
#next-slide { right: 10px; }

/* 슬라이드 인디케이터 */
#slide-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slide-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}

.slide-indicator.active {
  background: white;
}

/* 우측 사이드바 (30%) */
.hero-sidebar {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  height: 400px;
  background: #f9f9f9;
}

/* 로그인 폼 박스 */
.login-form-box {
  flex: 1;
  padding: 20px;
  background: white;
  border: 1px solid #ddd;
}

.login-form-box h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  font-weight: bold;
}

.login-form-box .form-group {
  margin-bottom: 10px;
}

.login-form-box .form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.login-form-box .btn-login {
  width: 100%;
  padding: 12px;
  background: #e52642;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.login-form-box .btn-login:hover {
  background: #c91e35;
}

.login-form-box .login-links {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
}

.login-form-box .login-links a {
  color: #666;
  text-decoration: none;
}

.login-form-box .login-links a:hover {
  color: #e52642;
  text-decoration: underline;
}

/* 로그인 후 버튼 */
.login-form-box .btn-mypage,
.login-form-box .btn-logout {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

.login-form-box .btn-mypage {
  background: #4a90e2;
  color: white;
}

.login-form-box .btn-mypage:hover {
  background: #357abd;
}

.login-form-box .btn-logout {
  background: #999;
  color: white;
}

.login-form-box .btn-logout:hover {
  background: #777;
}

/* 사이드 배너 */
.sidebar-banners {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
}

.sidebar-banners .banner-item {
  flex: 1;
  display: block;
  overflow: hidden;
}

.sidebar-banners .banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.sidebar-banners .banner-item:hover img {
  transform: scale(1.05);
}

/* ===========================================================================
   배송대행지 주소 모달
   =========================================================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  max-width: 900px;
  max-height: 80vh;
  overflow-y: auto;
  margin: 50px auto;
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.modal-close:hover {
  color: #333;
}

.modal-content h2 {
  margin: 0 0 20px 0;
  font-size: 24px;
  text-align: center;
}

.branch-selector {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 30px;
}

.branch-btn {
  flex: 1;
  padding: 12px;
  background: #f0f0f0;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.branch-btn .flag-emoji {
  font-size: 24px;
  margin-right: 5px;
  vertical-align: middle;
}

.branch-btn .flag-img {
  width: 18px;
  height: 14px;
  margin-right: 6px;
  vertical-align: middle;
  object-fit: cover;
  border-radius: 2px;
}

.branch-btn:hover {
  background: #e52642;
  color: white;
  border-color: #e52642;
}

.flag-img-title {
  width: 20px;
  height: 15px;
  margin-right: 6px;
  vertical-align: middle;
  object-fit: cover;
  border-radius: 2px;
}

.address-detail {
  margin-top: 20px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
}

.address-detail h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
}

.address-line {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 8px;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.address-line:hover {
  background: #e8f4ff;
  transform: translateX(5px);
}

.address-line i:first-child {
  margin-right: 10px;
  color: #4a90e2;
  font-size: 18px;
}

.address-line span {
  flex: 1;
  font-size: 14px;
}

.address-line .copy-icon {
  color: #999;
  font-size: 16px;
  transition: color 0.2s;
}

.address-line:hover .copy-icon {
  color: #4a90e2;
}

.address-line .copy-icon.copied {
  color: #27ae60;
}

.address-note {
  margin-top: 15px;
  text-align: center;
  font-size: 12px;
  color: #999;
}

/* ===========================================================================
   메인 콘텐츠 섹션 공통 스타일
   =========================================================================== */

.renewal-section {
  padding: 60px 20px;
}

.renewal-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin: 0 0 10px 0;
}

.section-desc {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin: 0 0 40px 0;
}

/* ===========================================================================
   섹션 1: 3스텝 이용방법
   =========================================================================== */

.steps-section {
  background: #f8f9fa;
}

.steps-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.step-card {
  flex: 1;
  max-width: 300px;
  background: white;
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.step-number {
  font-size: 48px;
  margin-bottom: 15px;
}

.step-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 20px;
  margin: 0 0 15px 0;
  color: #333;
}

.step-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.step-arrow {
  font-size: 48px;
  color: #e52642;
}

/* ===========================================================================
   섹션 2: 핵심 차별점 4카드
   =========================================================================== */

.benefits-section {
  background: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.benefit-card-new {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.benefit-card-new:hover {
  background: white;
  border-color: #e52642;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(229, 38, 66, 0.15);
}

.benefit-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.benefit-card-new h3 {
  font-size: 18px;
  margin: 0 0 15px 0;
  color: #333;
  line-height: 1.4;
}

.benefit-card-new p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.benefit-card-new strong {
  color: #e52642;
}

/* ===========================================================================
   섹션 3: 해외지사 안내
   =========================================================================== */

.branches-section {
  background: #f8f9fa;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.branch-card {
  background: white;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.branch-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.branch-flag {
  font-size: 64px;
  margin-bottom: 15px;
}

.branch-card h3 {
  font-size: 20px;
  margin: 0 0 5px 0;
  color: #333;
}

.branch-card p {
  font-size: 13px;
  color: #999;
  margin: 0 0 20px 0;
}

.branch-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
}

.branch-features li {
  padding: 8px 0;
  font-size: 14px;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
}

.branch-features li:last-child {
  border-bottom: none;
}

.branch-address-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #4a90e2;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.3s;
}

.branch-address-btn:hover {
  background: #357abd;
}

/* ===========================================================================
   섹션 4: 고객 후기 (캐러셀)
   =========================================================================== */

.reviews-section {
  background: white;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.review-card {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.review-stars {
  font-size: 20px;
  margin-bottom: 15px;
}

.review-text {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin: 0 0 20px 0;
  min-height: 100px;
}

.review-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.author-name {
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

.author-location {
  color: #999;
  font-size: 13px;
}


/* ===========================================================================
   섹션 5: FAQ 아코디언
   =========================================================================== */

.faq-section {
  background: #f8f9fa;
}

.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #f8f9fa;
}

.faq-question span {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.faq-question i {
  font-size: 20px;
  color: #999;
  transition: transform 0.3s;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 25px;
  background: #f8f9fa;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 20px 25px;
}

.faq-answer p {
  margin: 0 0 12px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 10px 0;
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

.faq-answer strong {
  color: #e52642;
}

/* ===========================================================================
   섹션 6: 최종 CTA
   =========================================================================== */

.final-cta-section {
  background: linear-gradient(135deg, #e52642 0%, #ff6b6b 100%);
  color: white;
}

.final-cta-box {
  text-align: center;
  padding: 40px 20px;
}

.cta-emoji {
  font-size: 64px;
  margin-bottom: 20px;
}

.final-cta-box h2 {
  font-size: 32px;
  margin: 0 0 15px 0;
  color: white;
}

.final-cta-box p {
  font-size: 18px;
  margin: 0 0 30px 0;
  color: #333;
}

.cta-buttons-row {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-kakao-large,
.btn-contact-large {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-kakao-large {
  background: #FEE500;
  color: #3c1e1e;
}

.btn-kakao-large:hover {
  background: #f5dc00;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(254, 229, 0, 0.4);
}

.btn-contact-large {
  background: white;
  color: #667eea;
}

.btn-contact-large:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

/* ===========================================================================
   반응형: 태블릿 (768px ~ 1199px)
   =========================================================================== */

@media (max-width: 1199px) {
  .hero-container {
    height: 350px;
  }

  .hero-slideshow,
  .hero-sidebar {
    height: 350px;
  }

  .benefits-grid,
  .branches-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .steps-container {
    flex-direction: column;
    gap: 20px;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .review-card {
    flex: 0 0 50%;
  }
}

/* ===========================================================================
   반응형: 모바일 (767px 이하)
   =========================================================================== */

@media (max-width: 767px) {
  .hero-container {
    flex-direction: column;
    height: auto;
  }

  .hero-slideshow {
    flex: 0 0 300px;
    height: 300px;
  }

  .hero-sidebar {
    display: none; /* 모바일에서 로그인폼 숨김 */
  }

  .section-title {
    font-size: 24px;
  }

  .section-desc {
    font-size: 14px;
  }

  .benefits-grid,
  .branches-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .steps-container {
    flex-direction: column;
    gap: 15px;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .review-card {
    flex: 0 0 100%;
  }

  .reviews-carousel {
    padding: 0;
  }

  .carousel-nav {
    display: none;
  }

  .cta-buttons-row {
    flex-direction: column;
    gap: 15px;
  }

  .btn-kakao-large,
  .btn-contact-large {
    width: 100%;
    padding: 15px 20px;
  }

  .modal-content {
    margin: 50px 20px;
    padding: 30px 20px;
  }

  .branch-selector {
    flex-direction: column;
  }
}
