/* ========================================
   공통 상품 리스트 스타일
   용도: 모든 국가/카테고리 상품 페이지에서 사용
   ======================================== */

/* 유럽 네비게이션 위치 조정 */
.eu-navigation {
  position: absolute !important;
  top: 70px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999 !important;
  margin-top: 0 !important;
}

/* ========================================
   히어로 섹션
   ======================================== */

.hero-section {
  position: relative;
  width: 100%;
  height: 400px;
  margin-top: 0;
  overflow: hidden;
  background: #000;
}

.hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 60px;
}

.hero-content {
  text-align: center;
  color: #fff;
  padding: 0 30px;
  max-width: 1000px;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  /*margin-bottom: 24px;
  text-shadow: 
    0 2px 4px rgba(0,0,0,0.8),
    0 4px 8px rgba(0,0,0,0.6),
    0 8px 16px rgba(0,0,0,0.4);*/
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-content p {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0;
  /*text-shadow: 
    0 2px 4px rgba(0,0,0,0.8),
    0 4px 8px rgba(0,0,0,0.5);*/
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
}

/* 국가별 서브 네비게이션 위치 조정 */
.country-sub-navigation {
  position: absolute !important;
  top: 150px !important;
  z-index: 998 !important;
}

/* 본문 시작 위치 */
.product-wrap {
  margin-top: 0;
  padding: 0;
}

/* 히어로 섹션이 없는 페이지용 */
.product-wrap.no-hero {
  margin-top: 230px;
}

/* 상품 카테고리 섹션 */
.product-category {
  margin: 40px 0;
}

.product-category h3 {
  text-align: center;
  font-size: 1.5rem;
  color: #667eea;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

/* ========================================
   상품 카드 디자인
   ======================================== */

/* 상품 카드 wrapper */
.tgv8_wrap {
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid #f0f0f0 !important;
  background: #fff !important;
  
  /* 스크롤 애니메이션 초기 상태 */
  opacity: 0;
  transform: translateY(40px);
}

/* 애니메이션 활성화 상태 */
.tgv8_wrap.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.4s ease, border-color 0.4s ease !important;
}

/* 순차적 딜레이 */
.tgv8_wrap:nth-child(1).animate-in { transition-delay: 0.1s; }
.tgv8_wrap:nth-child(2).animate-in { transition-delay: 0.2s; }
.tgv8_wrap:nth-child(3).animate-in { transition-delay: 0.3s; }
.tgv8_wrap:nth-child(4).animate-in { transition-delay: 0.1s; }
.tgv8_wrap:nth-child(5).animate-in { transition-delay: 0.2s; }
.tgv8_wrap:nth-child(6).animate-in { transition-delay: 0.3s; }
.tgv8_wrap:nth-child(7).animate-in { transition-delay: 0.1s; }
.tgv8_wrap:nth-child(8).animate-in { transition-delay: 0.2s; }
.tgv8_wrap:nth-child(9).animate-in { transition-delay: 0.3s; }

.tgv8_wrap.animate-in:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
  border-color: #e0e0e0 !important;
}

/* 이미지 영역 */
.tgv8_img {
  position: relative !important;
  overflow: hidden !important;
  height: 200px !important;
}

.tgv8_img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.6s ease !important;
}

.tgv8_wrap:hover .tgv8_img img {
  transform: scale(1.08) !important;
}

/* BEST SELLER 배지 */
.tgl_ele_best {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  background: linear-gradient(135deg, #FF5C3A 0%, #E84A27 100%) !important;
  color: #fff !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 12px rgba(255, 92, 58, 0.4) !important;
  z-index: 2 !important;
}

.tgl_ele_best::before {
  content: 'BEST SELLER' !important;
}

/* 카드 컨텐츠 */
.tgv8_ctns {
  padding: 24px !important;
}

/* 상품명 */
.tgv8_name {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #2c3e50 !important;
  margin-bottom: 12px !important;
  line-height: 1.4 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* 여행 일정 */
.tgv8_ln1 {
  font-size: 13px !important;
  color: #7f8c8d !important;
  margin-bottom: 10px !important;
  font-weight: 500 !important;
}

/* 상품 설명 */
.tgv8_ln2 {
  font-size: 13px !important;
  color: #95a5a6 !important;
  line-height: 1.6 !important;
  margin-bottom: 16px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* 가격 */
.tgv8_price {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #667eea !important;
  border-top: 1px solid #f0f0f0 !important;
  padding-top: 16px !important;
  margin-top: 12px !important;
}

.tgv8_price .pr_begin_str {
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-right: 2px !important;
}

/* 그리드 간격 조정 */
.tgs_container .row {
  margin-left: -12px !important;
  margin-right: -12px !important;
}

.tgs_container .row > div {
  padding-left: 12px !important;
  padding-right: 12px !important;
  margin-bottom: 24px !important;
}

/* 한 줄에 3개 표시 */
.tgs_container .row > div {
  flex: 0 0 33.333333% !important;
  max-width: 33.333333% !important;
}

/* ========================================
   반응형
   ======================================== */

/* 태블릿 - 2개 */
@media (max-width: 991px) {
  .hero-section {
    height: 350px;
  }
  
  .hero-overlay {
    padding-bottom: 50px;
  }
  
  .hero-content {
    padding: 0 25px;
  }
  
  .hero-content h1 {
    font-size: 3.2rem;
  }
  
  .hero-content p {
    font-size: 1.3rem;
  }
  
  .tgs_container .row > div {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
}

/* 모바일 */
@media (max-width: 767px) {
  .hero-section {
    height: 157px; /* 2단 메뉴 하단과 정확히 맞춤 */
    margin-top: 0;
  }
  
  .hero-overlay {
    display: none; /* 모바일에서 오버레이 완전 제거 */
  }
  
  .hero-content {
    display: none; /* 모바일에서 컨텐츠 완전 제거 */
  }
  
  .hero-content h1 {
    display: none; /* 모바일에서 제목 완전 숨김 */
  }
  
  .hero-content p {
    display: none; /* 모바일에서 부제목 숨김 */
  }
  
  .eu-navigation {
    top: 60px !important;
  }
  
  .country-sub-navigation {
    top: 119px !important;
  }
  
  .product-wrap {
    margin-top: 0;
  }
  
  /* 모바일에서 상품 카드 1개씩 */
  .tgs_container .row > div {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  .tgv8_img {
    height: 180px !important;
  }
  
  .tgv8_ctns {
    padding: 20px !important;
  }
  
  .tgv8_name {
    font-size: 15px !important;
  }
  
  .tgv8_price {
    font-size: 20px !important;
  }
}

/* ========================================
   스크롤 애니메이션 JavaScript
   ======================================== */

