/* =============================================
   WELLSHOWER - index.css (홈페이지 전용)
   ============================================= */

/* === 히어로 슬라이더 === */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 340px;
}
.slider-track { position: relative; width: 100%; height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}
.slide-content {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #fff;
}
.slide-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 10px;
  opacity: 0.9;
}
.slide-content h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.slide-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.slide-content p {
  font-size: 15px;
  opacity: 0.92;
}
.hero-slider .slider-dots { z-index: 10; }

/* === 미디어 섹션 === */
.media-section {
  padding: 48px 0;
  background: var(--bg-light);
}
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.media-item { border-radius: 4px; overflow: hidden; }

/* YouTube */
.youtube-wrap {
  background: #000;
  position: relative;
}
.youtube-wrap iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}
.yt-link {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--text-gray);
  padding: 6px 8px;
  background: #f0f0f0;
}
.yt-link:hover { color: var(--primary); }

/* 홍보 배너 */
.promo-banner {
  background: linear-gradient(135deg, #e8f4fd 0%, #d0e9f9 100%);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}
.promo-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.promo-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(255,255,255,0.8);
  padding: 2px 6px;
  border-radius: 2px;
}
.promo-sub { font-size: 10px; color: var(--text-gray); flex: 1; }
.best-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #c8860d, #f5c842);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.promo-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--primary-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.promo-title strong { font-size: 26px; font-weight: 800; }
.promo-desc { font-size: 12px; color: var(--text-gray); line-height: 1.8; margin-bottom: 12px; }
.promo-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.naver-n {
  background: #03C75A;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 3px;
  letter-spacing: 1px;
}
.naver-search {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
.naver-search input {
  border: none;
  outline: none;
  padding: 4px 8px;
  font-size: 13px;
  width: 90px;
}
.naver-search button {
  background: #03C75A;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
}
.promo-logos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.promo-logos span { font-size: 10px; color: var(--text-gray); }

/* 피처 아이템 */
.feature-item {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}
.feature-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.feature-caption {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.7;
  text-align: center;
}
.feature-caption strong { color: var(--text-dark); }

/* === 상품 섹션 === */
.product-section {
  padding: 64px 0 48px;
  background: var(--bg-white);
}
.sort-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.sort-bar select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  color: var(--text-gray);
  outline: none;
  cursor: pointer;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
}

/* === 비치 배너 === */
.beach-banner {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.beach-slides { width: 100%; height: 100%; }
.beach-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s;
}
.beach-slide.active { opacity: 1; z-index: 1; }
.beach-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.beach-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}
.beach-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.beach-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.beach-content p {
  font-size: 15px;
  opacity: 0.9;
}
.beach-dots { bottom: 20px; }

/* === 하단 추천 상품 === */
.recommend-section {
  padding: 40px 0 48px;
  background: var(--bg-light);
}
.recommend-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f5f5f5;
}
.recommend-scroll::-webkit-scrollbar { height: 4px; }
.recommend-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.recommend-scroll .product-card {
  flex: 0 0 180px;
  min-width: 180px;
}
.recommend-scroll .product-card .prod-name { font-size: 12px; }
.recommend-scroll .product-card .sale-price { font-size: 13px; }

/* === 리뷰 섹션 === */
.review-section {
  padding: 64px 0 48px;
  background: var(--bg-white);
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
}

/* === 반응형 === */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .media-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { height: 240px; }
  .slide-content h1 { font-size: 20px; }
  .slide-en { font-size: 18px; }
  .beach-banner { height: 200px; }
  .beach-content h2 { font-size: 20px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .review-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
