/* ─────────────────────────────────────────────
   히어로
───────────────────────────────────────────── */
.hero {
  height: 400vh;
  position: relative;
  background: #0a0a0a;
}
.hero__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__img--day   { opacity: 1; }
.hero__img--night { opacity: 0; }

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.hero__text {
  position: absolute;
  font-size: var(--text-4xl);
  font-weight: var(--fw-regular);
  color: #fff;
  text-align: center;
  letter-spacing: var(--ls-wide);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  padding: 0 3.2rem;
}
.hero__word-wrap {
  display: inline-grid;
}
.hero__word--day,
.hero__word--night {
  grid-area: 1 / 1;
  justify-self: start;
  white-space: nowrap;
}
.hero__word--day   { opacity: 1; }
.hero__word--night { opacity: 0; }


/* ─────────────────────────────────────────────
   CTA
───────────────────────────────────────────── */
.hero__cta {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
  padding: 6rem 2rem;
  background: radial-gradient(circle at center, rgba(15, 15, 15, 0.4) 0%, rgba(0, 0, 0, 0.9) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(2px);
  transform: translateY(100%);
  text-align: center;
}
.hero__cta__sub {
  font-size: var(--text-xs);
  letter-spacing: var(--ls-widest);
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}
.hero__cta__title {
  font-size: var(--text-4xl);
  font-weight: var(--fw-semibold);
  color: #fff;
  letter-spacing: var(--ls-wide);
  line-height: 1;
}
.hero__cta__desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  font-weight: var(--fw-light);
  line-height: 1.8;
  padding: 3.2rem 0;
  max-width: 70.4rem;
}

.hero__cta__sub,
.hero__cta__title,
.hero__cta__desc {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero__cta.is-visible .hero__cta__sub,
.hero__cta.is-visible .hero__cta__title,
.hero__cta.is-visible .hero__cta__desc {
  opacity: 1;
  transform: translateY(0);
}

.hero__cta.is-visible .hero__cta__sub   { transition-delay: 0.1s; }
.hero__cta.is-visible .hero__cta__title { transition-delay: 0.3s; }
.hero__cta.is-visible .hero__cta__desc  { transition-delay: 0.5s; }



/* ─────────────────────────────────────────────
    클립 리빌
───────────────────────────────────────────── */
.shop-scene {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.shop-scene.is-revealed {
  clip-path: inset(0 0 0% 0);
}

.nav {
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav.visible {
  transform: translateY(0);
}


/* ─────────────────────────────────────────────
   스크롤 리빌 애니메이션
───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ─────────────────────────────────────────────
   페이지 기본
───────────────────────────────────────────── */
body {
  transition: background-color 1.2s ease-in-out;
}
body.dark-bg {
  background-color: #1e1e1e70;
}
.page-wrap {
  padding: 22rem 0;
  margin: 3.2rem 6rem;
  min-height: 100vh;
}


/* ─────────────────────────────────────────────
   조명 On/Off 토글
───────────────────────────────────────────── */
.badge {
  position: fixed;
  top: 16rem;
  right: 6.4rem;
  z-index: 100;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.9rem 2.9rem;
  border-radius: 2rem;
  background: transparent;
  border: 1px solid var(--color-red-dim);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}
.badge__top {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.badge.visible {
  opacity: 1;
  pointer-events: auto;
}
.badge:hover {
  box-shadow: 0 4px 24px rgba(74, 10, 5, 0.15);
}
.badge__icon {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.badge__toggle {
  width: 7rem;
  height: 3.5rem;
  border-radius: 16rem;
  background: #ddd;
  position: relative;
  transition: background 0.3s ease;
  flex-shrink: 0;
}
.badge__thumb {
  position: absolute;
  top: 50%;
  left: 0.5rem;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--color-bg-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: left 0.3s ease;
}
.badge__label {
  font-size: var(--text-xs);
  letter-spacing: var(--ls-wide);
  color: var(--color-text-muted);
  transition: color 0.3s ease;
  white-space: nowrap;
}
.badge.is-on .badge__toggle { background: var(--color-red); }
.badge.is-on .badge__thumb  { left: calc(100% - 3.4rem); }
.badge.is-on .badge__icon   { color: var(--color-red); }
.badge.is-on .badge__label  { color: var(--color-red); }


/* ─────────────────────────────────────────────
   메인
───────────────────────────────────────────── */
.main {
  display: flex;
  gap: 1.6rem;
}

/* 모바일 필터 토글 버튼 — 데스크탑에서 숨김 */
.filter-toggle {
  display: none;
}

/* 드로어 오버레이 */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 599;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* 리스트 헤더 — 데스크탑: 투명 래퍼 */
.light-list__header {
  display: contents;
}


/* ─────────────────────────────────────────────
   사이드 배너
───────────────────────────────────────────── */
.banner {
  flex: 1;
  align-self: flex-start;
  padding: 3.2rem 0.8rem;
  border-top: 1px solid var(--color-red);
  color: var(--color-red);
}
.banner p {
  font-size: var(--text-md);
  font-weight: var(--fw-medium);
  margin-bottom: 1.3rem;
  cursor: pointer;
}
.banner p:hover {
  color: var(--color-red-dark);
}

.banner__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.3rem;
}

.banner__sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 0.8rem;
  border-left: 2px solid var(--color-red-dim);
}
.banner__item.open .banner__sub {
  max-height: 64rem;
}
.banner li {
  font-size: var(--text-sm);
  margin: 1.3rem 0;
  cursor: pointer;
  color: var(--color-red);
}
.banner li:hover {
  color: var(--color-red-dark);
}
.banner li.active {
  font-weight: var(--fw-semibold);
  color: var(--color-red-dark);
  padding-left: 0.6rem;
  border-left: 2px solid var(--color-red);
}


/* ─────────────────────────────────────────────
   상품 목록
───────────────────────────────────────────── */
.light-list {
  flex: 4;
  padding: 0 3.2rem;
  color: var(--color-red);
}
.light-list h1 {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  margin-bottom: 3.2rem;
}

/* 반응형 그리드 */
.lights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.2rem;
}
@media (min-width: 360px) {
  .lights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .lights { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ─────────────────────────────────────────────
   조명 카드 — On/Off 이미지 전환
───────────────────────────────────────────── */
.light-container {
  width: 100%;
}
.light {
  width: 100%;
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
}
.light img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.2s ease-in-out, transform 0.5s ease;
}
.light:hover img {
  transform: scale(1.05);
}
.light img.off { opacity: 1; }
.light img.on  { opacity: 0; }

.lights.light-on .light img.off { opacity: 0; }
.lights.light-on .light img.on  { opacity: 1; }

.light-container .price {
  margin: 1.3rem 0 0;
  font-size: var(--text-md);
  font-weight: var(--fw-medium);
  color: var(--color-red);
}


/* ─────────────────────────────────────────────
   Coming Soon 메시지
───────────────────────────────────────────── */
.list-message {
  display: none;
  padding: 9.6rem 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-normal);
  line-height: 1.8;
}


/* ─────────────────────────────────────────────
   Laptop 1024px
───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__text {
    font-size: var(--text-3xl);
  }

  .hero__cta__sub {
  font-size: var(--text-xs);
  }
  .hero__cta__title {
    font-size: var(--text-3xl);
  }
  .hero__cta__desc {
    font-size: var(--text-sm);
  }


  .page-wrap{
    margin: 2rem;
  }  
  .main {
    margin: 1.6rem 2.4rem;
  }
  .badge {
    right: 3.2rem;
  }
  .banner{
    padding: 3.2rem 0.6rem;
  }
  .banner p{
    font-size: var(--text-sm);
  }
  .light-list {
    padding: 0 1.6rem;
  }
  .lights {
    gap: 1.6rem;
  }
}


/* ─────────────────────────────────────────────
   Tablet 768px
───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero__text {
    font-size: var(--text-2xl);
  }

  .hero__cta__sub {
  font-size: var(--text-xs);
  }
  .hero__cta__title {
    font-size: var(--text-3xl);
  }
  .hero__cta__desc {
    font-size: var(--text-xs);
  }

  .page-wrap {
    padding: 12rem 0;
    margin: 1.6rem;
  }
  .main {
    margin: 0 1.6rem;
  }

  .light-list {
    padding: 0;
  }
  .light-list h1 {
    font-size: var(--text-base);
    margin-bottom: 1.9rem;
  }
  .light-container .price{
    font-size: var(--text-xs);  
  }
  .badge {
    top: 14rem;
    right: 2.4rem;
    padding: 1.3rem 2.4rem;
  }
}


/* ─────────────────────────────────────────────
   Mobile L 430px
───────────────────────────────────────────── */
@media (max-width: 430px) {
  .hero__text {
    font-size: var(--text-lg);
  }

  .hero__cta__sub {
    font-size: var(--text-2xs);
  }
  .hero__cta__title {
    font-size: var(--text-2xl);
  }
  .hero__cta__desc {
    font-size: var(--text-2xs);
  }

  /* 필터 토글 */
  .filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: 1px solid var(--color-border);
    cursor: pointer;
    font-size: 1rem;
    font-weight: var(--fw-semibold);
    color: var(--color-red);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    font-family: var(--font-body);
    padding: 0.8rem 1.2rem;
    transition: var(--transition);
  }
  .filter-toggle:hover {
    border-color: var(--color-red);
    background: var(--color-red-dim);
  }

  .light-list__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.6rem;
  }
  .light-list h1 {
    margin-bottom: 0;
  }
  /* 배너 → 왼쪽 드로어 */
  .banner {
    position: fixed;
    top: 0;
    left: -100%;
    width: 50vw;
    height: fit-content;
    bottom: 0;
    z-index: 600;
    background: var(--color-bg-primary);
    padding: 2.4rem 3rem 1.4rem;
    border-right: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border-subtle);
    overflow-y: auto;
    opacity: 0;
    box-shadow: 4px 0 24px rgba(74, 10, 5, 0.08);
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  }
  .banner.is-open {
    left: 0;
    opacity: 1;
  }

  .page-wrap {
    padding: 9.6rem 0;
    margin: 1.3rem;
  }
  .main {
    flex-direction: column;
    margin: 0 1.3rem;
    gap: 0;
  }
  .badge {
    right: 1.6rem;
    padding: 1.1rem 1.9rem;
    gap: 0.6rem;
  }
  .badge__icon {
    font-size: var(--text-lg);
  }  
  .badge__label {
    font-size: var(--text-2xs);
  }
  .badge__toggle {
    width: 5rem;
    height: 2.5rem;
  }
  .badge__thumb {
    width: 2rem;
    height: 2rem;
  }
  .badge.is-on .badge__thumb {
    left: calc(100% - 2.5rem);
  }
  .banner p {
    font-size: var(--text-xs);
  }
  .banner li {
    font-size: var(--text-2xs);
  }
}


/* ─────────────────────────────────────────────
   Mobile S 360px
───────────────────────────────────────────── */
@media (max-width: 360px) {
  .hero__text {
    font-size: var(--text-sm);
  }
  
  .hero__cta__sub {
    font-size: var(--text-2xs);
  }
  .hero__cta__title {
    font-size: var(--text-xl);
  }
  .hero__cta__desc {
    font-size: 1rem;
  }

  .page-wrap {
    padding: 8rem 0;
    margin: 0.8rem;
  }
  .main {
    margin: 0 0.8rem;
  }
  .badge {
    right: 1.3rem;
    padding: 1rem 1.6rem;
  }
}
