/* 오늘 방송 상품 (Home2) 전용 */
.home { background: var(--grey-900); }
/* 하단 바에 가려지지 않도록 여백은 푸터 안에 둔다 (푸터 배경이 바 뒤까지 이어지게) */
.home .site-footer { padding-bottom: calc(120 * var(--u)); }

/* 방송 헤더 */
.live-header { background: var(--grey-900); color: var(--white); }
.live-header__top { display: flex; justify-content: space-between; align-items: center; gap: calc(12 * var(--u)); padding: calc(8 * var(--u)) calc(8 * var(--u)) calc(8 * var(--u)) calc(20 * var(--u)); }
.live-header__icon { position: relative; }
/* 어두운 헤더 위 장바구니 개수 배지는 흰색 */
.live-header .icon-btn__badge { background: var(--white); color: var(--grey-900); }
.live-header__body { display: flex; flex-direction: column; gap: calc(16 * var(--u)); padding: calc(8 * var(--u)) calc(20 * var(--u)) calc(32 * var(--u)); }
.live-banner {}
.live-banner__viewport { position: relative; overflow: hidden; border-radius: 4px; }
.live-banner__video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--grey-900); }
.live-banner img { display: block; width: 100%; height: auto; }

/* 배너 슬라이드: 가로 스크롤 스냅(손가락으로 넘김) + 자동 넘김은 slider.js */
.live-banner__track { display: flex; margin: 0; padding: 0; overflow-x: auto; aspect-ratio: var(--ratio); list-style: none; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.live-banner__track::-webkit-scrollbar { display: none; }
.live-banner__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.live-banner__slide a { display: block; height: 100%; }
.live-banner__slide img { height: 100%; object-fit: cover; }
.live-banner__ui { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 2px; padding: 0 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.45); }
.live-banner__toggle { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 0; background: none; color: var(--white); cursor: pointer; }
.live-banner__toggle .is-play { display: none; }
.live-banner__toggle[aria-pressed="true"] .is-pause { display: none; }
.live-banner__toggle[aria-pressed="true"] .is-play { display: inline; }
.live-banner__dots { display: flex; }
.live-banner__dot { box-sizing: content-box; width: 6px; height: 6px; padding: 9px 4px; border: 0; background: var(--white) content-box; background-clip: content-box; border-radius: 50%; opacity: 0.5; cursor: pointer; }
.live-banner__dot[aria-current="true"] { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .live-banner__track { scroll-behavior: auto; } }
.live-header__meta { display: flex; align-items: center; gap: 8px; min-height: 24px; font-size: var(--fs-caption2); }
.live-header__time { font-weight: 400; color: var(--grey-300); }
.live-header__title { margin-top: 2px; font-size: var(--fs-title3); font-weight: 600; line-height: 1.4; }
/* 헤더 왼쪽 상단(브랜드/방송 제목): 모바일에서도 브랜드 노출, 긴 제목은 두 줄까지 */
.live-header__top .live-header__title, .live-header__brand { margin: 0; min-width: 0; font-size: var(--fs-body1); line-height: 1.3; }
.live-header__top .live-header__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-header .web-header__brand { display: block; font-size: inherit; }
.live-header__channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.live-header__channels a {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  height: calc(42 * var(--u)); padding-left: 10px;
  border-radius: 4px;
  background: var(--grey-800); color: var(--white);
  font-size: var(--fs-body2); font-weight: 600;
}
.live-header__channels span { font-weight: 500; opacity: 0.9; }
.live-header__channels .icon { color: var(--grey-300); }

/* 흰 영역 */
.home__main { overflow: hidden; border-radius: 12px 12px 0 0; background: var(--white); }

/* 지금 소개 중 */
.featured__thumb { position: relative; display: block; height: calc(180 * var(--u)); overflow: hidden; border-radius: 8px; background: var(--grey-100); }
.featured__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.featured__caption { position: absolute; left: 12px; bottom: 12px; }

/* 방송 중 영상 옆 '지금 소개 중' (어두운 헤더 안): 모바일은 영상 아래에 글만 */
/* 방송 중 영상+소개 묶음: 아래 여백 48 (헤더의 방송 상태 줄이 "지금 소개 중" 쪽으로 옮겨 가서 이 여백이 헤더 끝 여백이 된다) */
.live-stage { padding-bottom: calc(48 * var(--u)); }
.featured--stage { padding: calc(16 * var(--u)) calc(20 * var(--u)) 0; gap: calc(8 * var(--u)); color: var(--white); }
.featured--stage .section-title { font-size: var(--fs-caption1); color: var(--purple-50); }
/* 방송 중: "지금 소개 중" 왼쪽에 ON AIR 배지 */
.featured__head { display: flex; align-items: center; gap: 8px; }
.featured--stage .featured__name { display: block; font-size: var(--fs-title3); font-weight: 600; }
.featured--stage .price-line__discount { color: var(--purple-50); }
.featured--stage .price-line__original { color: var(--grey-300); }

/* 오늘 방송 상품 목록 */
.product-list { display: flex; flex-direction: column; gap: calc(16 * var(--u)); padding: calc(24 * var(--u)) 0 calc(32 * var(--u)); }
.product-list .section-title { margin: 0 calc(20 * var(--u)); }
.product-list__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(24 * var(--u)) calc(12 * var(--u)); padding: 0 calc(20 * var(--u)); }

.product-card { display: flex; flex-direction: column; gap: calc(12 * var(--u)); }
.product-card__thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; }
.product-card__name { font-size: var(--fs-body3); line-height: 1.45; }
.product-card__price { margin-top: 2px; font-size: var(--fs-body2); font-weight: 600; }
.product-card.is-soldout { color: var(--grey-400); }
.product-card.is-soldout img { opacity: 0.4; }
.product-card__soldout { position: relative; padding: 6px 12px; border-radius: 2px; background: var(--white); color: var(--grey-900); font-size: var(--fs-caption1); font-weight: 600; }

/* 오늘 방송 상품이 없을 때 안내 */
.product-list__empty { margin: 0 calc(20 * var(--u)); font-size: var(--fs-body3); font-weight: 400; color: var(--grey-500); }

/* 웹용 요소: 모바일에서는 숨기거나 영향이 없게 둔다 */
.featured__name, .product-list__cart { display: none; }
.product-list__head { display: contents; }

/* ===== 웹 (600px 이상): 시안 최대 폭 1200, 값은 고정 px (--u 고정 1px) ===== */
@media (min-width: 600px) {
  .home { background: var(--white); }
  .home .bottom-bar { display: none; }

  /* 헤더 */
  .live-header__top {
    justify-content: space-between; align-items: center; height: 72px;
    padding: 0 max(clamp(12px, 3vw, 40px), calc((100% - 1200px) / 2 + clamp(12px, 3vw, 40px))) 0 var(--gutter);
  }
  .live-header .web-header__badge { background: var(--white); color: var(--grey-900); }
  .live-banner { padding: 0 var(--gutter); }
  .live-banner--video .live-banner__viewport { max-width: 720px; margin: 0 auto; }

  /* 방송 정보: 제목 왼쪽, 방송 보러 가기 오른쪽 */
  .live-header__body { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 24px var(--gutter) 48px; }
  .live-header__body > div { flex: 1 1 480px; min-width: 0; }
  .live-header__meta { gap: 12px; }
  .live-header__time { font-size: 14px; }
  .live-header__top .live-header__title { font-size: 20px; }
  .live-header .web-header__brand { font-size: 20px; }
  .live-header__channels { flex: 0 1 420px; min-width: 260px; }
  .live-header__channels a { height: 48px; padding-left: 0; font-weight: 500; }
  .live-header__channels span { opacity: 1; }

  /* 흰 영역 */
  .home__main { padding-top: 48px; border-radius: 0; }
  .home .band { display: none; }

  /* 지금 소개 중: 좁은 폭은 이미지 위, 정보 아래로 쌓고 */
  .home .featured:not(.featured--stage) { padding: 0 var(--gutter); row-gap: 16px; }
  .featured__thumb { height: auto; aspect-ratio: 16 / 10; margin-bottom: 24px; }
  .featured__caption { left: 16px; bottom: 16px; }
  .featured:not(.featured--stage) .section-title { font-size: 15px; color: var(--purple-500); }
  .featured__name { display: block; margin-bottom: -8px; font-size: 24px; line-height: 1.4; }
  .featured:not(.featured--stage) .price-line { align-items: baseline; font-size: 28px; }
  .featured:not(.featured--stage) .price-line__original { font-size: 15px; }
  .featured:not(.featured--stage) .btn { max-width: 360px; margin-top: 8px; height: 50px; background: var(--grey-900); color: var(--white); box-shadow: none; font-size: var(--fs-body1); }

  /* 오늘 방송 상품 목록 */
  .home .product-list { gap: 20px; padding: 0 var(--gutter) 80px; }
  .home .featured ~ .product-list { padding-top: 64px; }
  .product-list__head { display: flex; justify-content: space-between; align-items: baseline; }
  .product-list .section-title { margin: 0; font-size: 22px; }
  .product-list__cart { display: block; font-size: 14px; font-weight: 400; color: var(--grey-500); }
  .product-list__grid { grid-template-columns: repeat(auto-fill, minmax(min(200px, 40vw), 1fr)); gap: 32px 16px; padding: 0; }
  .product-list__empty { margin: 0; }

  /* 푸터: 시안은 1200 안쪽 정렬 */
  .home .site-footer { padding: 24px max(20px, calc((100% - 1200px) / 2 + clamp(0px, 2vw, 20px) + 20px)) 32px; }
}

/* 768px 이하는 모바일 배치(영상 아래에 글), 769px부터 영상 왼쪽 + 지금 소개 중 오른쪽 */
@media (min-width: 769px) {
  /* 영상(왼쪽) + 지금 소개 중(오른쪽) */
  .live-stage { display: flex; align-items: center; gap: 40px; padding: 0 var(--gutter) 48px; }
  .live-stage .live-banner { flex: 1 1 0; min-width: 0; padding: 0; }
  .live-stage .live-banner--video .live-banner__viewport { max-width: none; }
  .home .live-stage .featured { display: flex; flex-direction: column; flex: 0 0 340px; padding: 0; row-gap: 16px; }
  .home .featured--stage .section-title { font-size: 15px; color: var(--purple-50); }
  .home .featured--stage .featured__name { margin-bottom: -8px; font-size: 24px; }
  .home .featured--stage .price-line__discount { color: var(--purple-50); }
  .home .featured--stage .btn { background: var(--white); color: var(--grey-900); }
}

@media (min-width: 936px) {
  .home .featured { display: grid; grid-template-columns: calc((100% - 40px) / 2 + 100px) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: 40px; }
  .featured__thumb { grid-column: 1; grid-row: 1 / -1; margin-bottom: 0; }
  .featured .section-title, .featured__head { grid-column: 2; grid-row: 2; }
  .featured__name { grid-column: 2; grid-row: 3; }
  .featured .price-line { grid-column: 2; grid-row: 4; }
  .featured .btn { grid-column: 2; grid-row: 5; }
}
