/* ═══════════════════════════════════════
   오~기찬 쇼핑몰 커스텀 CSS
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans KR', sans-serif; }

/* ─── 배너 슬라이더 ─── */
.banner-slider {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.banner-slide {
  display: none;
  animation: fadeIn 0.6s ease-in-out;
}
.banner-slide.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── 슬라이더 점 ─── */
.slider-dot.active-dot {
  background-color: white !important;
  width: 24px;
  border-radius: 4px;
}

/* ─── 상품 카드 ─── */
.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
}

/* ─── 숏폼 카드 ─── */
.shortform-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shortform-card:hover {
  transform: translateY(-3px);
}

/* ─── 토스트 알림 ─── */
#toast {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#toast.show {
  display: flex !important;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ─── 비디오 모달 ─── */
#videoModal.open {
  display: flex !important;
  animation: fadeInModal 0.2s ease;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── 장바구니 뱃지 ─── */
.cart-count-badge {
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  border-radius: 9999px;
  background: #ef4444;
  color: #fff;
  position: absolute;
  top: -4px;
  right: -4px;
}

/* ─── 네비 링크 ─── */
.nav-link { text-decoration: none; border-radius: 8px; }
.nav-link:hover { background: rgba(46,125,50,0.05); }

/* ─── 스크롤바 커스텀 ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #2E7D32; border-radius: 3px; }

/* ─── 모바일 최적화 ─── */
@media (max-width: 640px) {
  .banner-slide h1 { font-size: 2rem; }
}
