/* Labang Seller Home (Mobile-first) */
:root {
  --home-bg: #ffffff;
  --home-text: #111111;
  --home-muted: rgba(0, 0, 0, 0.55);
  --home-border: rgba(0, 0, 0, 0.08);
  --home-card: #ffffff;
  --home-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  --home-radius: 8px;
  --home-accent: #111111;
  --home-danger: #e53935;
}

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


html,
body {
  margin: 0;
  padding: 0;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
}

.labang-home {
  --labang-column-max: 480px;
  width: 100%;
  max-width: var(--labang-column-max);
  margin: 0 auto;
  padding-bottom: calc(84px + env(safe-area-inset-bottom)); /* 24px + bottom-nav 60px */
  overflow-x: hidden;
}

/* Top bar */
.home-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--home-border);
}
.home-topbar__inner {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
}
.home-topbar__brand {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.home-topbar__brandText {
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 20px;
  text-transform: uppercase;
}
.home-topbar__brandLink {
  text-decoration: none;
  color: inherit;
}
.home-topbar__actions {
  display: flex;
  gap: 8px;
}
.home-iconBtn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #111;
  text-decoration: none;
}
.home-iconBtn:active {
  background: rgba(0, 0, 0, 0.05);
}
.home-icon {
  display: block;
}
.home-iconImg {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

/* Sections */
.home-section {
  padding: 16px 14px 0 14px;
}
.home-section--tight {
  padding-top: 10px;
}
.home-section__head {
  margin-bottom: 12px;
}
.home-section__head--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.home-section__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.home-section__head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* 후기등록: 눈에 띄되 부드러운 코랄·피치 톤 */
.home-section__write {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(165deg, #ff9a7b 0%, #f47296 55%, #ec6b9c 100%);
  border: 1px solid rgba(236, 107, 156, 0.45);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(244, 114, 150, 0.35);
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.home-section__write:active {
  opacity: 0.9;
  box-shadow: 0 1px 6px rgba(244, 114, 150, 0.3);
}
.home-section__more {
  font-size: 13px;
  color: var(--home-muted);
  text-decoration: none;
  white-space: nowrap;
}

/* Hero */
.home-hero {
  padding: 0;
}
.home-hero__media {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}
.home-hero__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-hero__media--coverPlaceholder .home-hero__cover--placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}
.home-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.5));
}
.home-hero__intro {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  max-width: 100%;
  white-space: pre-line;
}
.home-hero__bottomRow {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.home-hero__profile {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.home-hero__follower {
  color: #fff;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.home-hero__followBtn {
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
}
.home-hero__followBtn.is-on {
  background: rgba(229, 57, 53, 0.95);
  color: #fff;
}
.home-hero__followBtn.is-off {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
}
/* 단골맺기 CTA: 카카오 단골 (아이콘 + 라벨, 누름 피드백) */
.home-hero__followBtn--cta.home-hero__followBtn.is-off {
  min-height: 46px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(165deg, #ff9a7b 0%, #f47296 55%, #ec6b9c 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(244, 114, 150, 0.45);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.home-hero__followBtn--cta.home-hero__followBtn.is-off:active {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22), 0 1px 4px rgba(244, 114, 150, 0.35);
  opacity: 0.96;
}
.home-hero__followBtn--kakao.home-hero__followBtn.is-off {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #191919;
  background: #fee500;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.home-hero__followBtn--kakao.home-hero__followBtn.is-off:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}
.home-hero__followBtn--kakao .home-hero__followText {
  color: #191919;
  font-weight: 800;
}
.home-hero__kakaoIcon {
  flex-shrink: 0;
  height: 22px;
  width: auto;
  max-height: 22px;
  object-fit: contain;
  display: block;
}
.home-hero__followBtn:disabled,
.home-hero__followBtn--static {
  cursor: default;
  opacity: 1;
}
.home-hero__followBtn--static {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
}
.home-hero__followEmoji {
  margin-right: 4px;
  font-style: normal;
  line-height: 1;
}
.home-hero__followBtn--static.is-on .home-hero__followEmoji {
  margin-right: 0;
}

.home-section__head--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.home-liveNow__caption {
  margin: 0;
  font-size: 13px;
  color: var(--home-muted);
  font-weight: 400;
}
.home-gbEnded {
  margin: 0 14px 16px;
  font-size: 14px;
  color: var(--home-muted);
}

/* 공동구매: 진행 상품 없음 */
.home-gbEmpty {
  margin: 0 14px 20px;
}
.home-gbEmpty__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px 26px;
  border-radius: var(--home-radius);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.04) 100%);
  border: 1px solid var(--home-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.home-gbEmpty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.35);
}
.home-gbEmpty__icon svg {
  display: block;
}
.home-gbEmpty__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--home-text);
  line-height: 1.35;
}
.home-gbEmpty__desc {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--home-muted);
  max-width: 280px;
}
/* 카운트다운: 섹션 헤더 안 작게 표시 */
.home-gbCountdown {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0;
}
.home-gbCountdown__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--home-muted);
  white-space: nowrap;
}
.home-gbCountdown__digits {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.25);
}
.home-gbCountdown__unit {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.home-gbCountdown__unit small {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  margin-left: 2px;
}

/* Notice */
.home-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.home-notice__left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-notice__label {
  font-weight: 800;
  color: var(--home-danger);
  font-size: 13px;
  white-space: nowrap;
}
.home-notice__badges {
  display: inline-flex;
  gap: 6px;
  flex-wrap: nowrap;
}
.home-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}
.home-notice__title {
  font-size: 13px;
  color: #111;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-notice__more {
  color: var(--home-muted);
  font-size: 12px;
  white-space: nowrap;
}

/* Live Now (모바일 기준, 가로 넘침 방지) */
.home-liveNow {
  max-width: 100%;
  overflow-x: hidden;
}
.home-liveNow__content {
  margin-bottom: 4px;
  max-width: 100%;
}
/* 유튜브 ID 없을 때: 라방명·캡션·기간 텍스트 카드 */
.home-liveNow__infoPanel {
  padding: 16px 14px;
  border-radius: var(--home-radius);
  background: var(--home-card);
  border: 1px solid var(--home-border);
  box-shadow: var(--home-shadow);
}
.home-liveNow__infoThumbWrap {
  width: 100%;
  max-height: 160px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #f3f4f6;
}
.home-liveNow__infoThumb {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  display: block;
}
.home-liveNow__infoTitle {
  font-size: 16px;
  font-weight: 900;
  color: var(--home-text);
  line-height: 1.35;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}
.home-liveNow__infoSub {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--home-muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.home-liveNow__infoPeriod {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--home-text);
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.home-liveNow__player {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: var(--home-radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--home-shadow);
}
.home-liveNow__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 16px 14px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  pointer-events: none;
}
.home-liveNow__overlay-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  pointer-events: auto;
}
.home-liveNow__infoActions.home-liveNow__overlay-row {
  margin-top: 16px;
  pointer-events: auto;
}
.home-liveNow__overlay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 12px 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--home-danger);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}
.home-liveNow__overlay-btnIcon {
  flex-shrink: 0;
  font-size: 1.05em;
  line-height: 1;
  opacity: 0.95;
}
.home-liveNow__overlay-btn--secondary {
  background: #1d4ed8;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 2px 10px rgba(29, 78, 216, 0.45);
}
.home-liveNow__overlay-btn--secondary:active {
  background: #1e40af;
}
.home-liveNow__overlay-btn:active {
  opacity: 0.9;
}
@media (max-width: 360px) {
  .home-liveNow__overlay-row {
    flex-direction: column;
  }
  .home-liveNow__overlay-btn {
    width: 100%;
  }
}
.home-liveNow__player-inner {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-top: 177.78%; /* 9:16 모바일 세로 */
}
.home-liveNow__player--youtube {
  position: relative;
  height: 0;
  padding-top: 177.78%; /* 9:16 모바일 세로 */
}
.home-liveNow__iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}
.home-liveNow__player--ivs {
  height: 0;
  padding-top: 177.78%; /* 9:16 모바일 세로 */
}
.home-liveNow__player--ivs video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-liveNow__fallback {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 177.78%; /* 9:16 모바일 세로 */
  background: #111;
}
.home-liveNow__fallback-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-liveNow__fallback-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--home-danger);
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
}
.home-liveNow__info {
  padding: 12px 0 0 0;
}
.home-liveNow__title {
  font-size: 14px;
  font-weight: 900;
  color: #111;
  line-height: 1.25;
  margin-bottom: 10px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-liveNow__cta {
  display: inline-flex;
}
.home-liveNow__empty {
  padding: 24px 14px;
  text-align: center;
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--home-radius);
}
.home-liveNow__empty-text {
  margin: 0;
  font-size: 14px;
  color: var(--home-muted);
}

/* Tabs — 날짜가 많을 때 가로 스크롤 */
.home-tabs {
  display: flex;
  gap: 10px;
  padding: 0 14px 4px 14px;
  margin-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}
.home-tabs::-webkit-scrollbar {
  height: 6px;
}
.home-tabs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 999px;
}
.home-tab {
  flex-shrink: 0;
  border: 1px solid var(--home-border);
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 900;
  font-size: 13px;
  color: #111;
}
.home-tab.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.home-tab__date {
  font-variant-numeric: tabular-nums;
}

.home-liveGroups {
  padding: 10px 14px 0 14px;
}
.home-liveGroup.is-hidden {
  display: none;
}

/* Live card */
.home-liveCard {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: var(--home-radius);
  background: var(--home-card);
  box-shadow: var(--home-shadow);
  margin-bottom: 12px;
}
.home-liveThumb {
  position: relative;
  display: block;
  width: 100%;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  cursor: default;
}
.home-liveThumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.home-liveThumb__live {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--home-danger);
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
}
.home-liveThumb__time {
  position: absolute;
  left: 10px;
  top: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.home-liveMeta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.home-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}
.home-pill--danger {
  background: rgba(229, 57, 53, 0.1);
  color: var(--home-danger);
}
.home-liveMeta__remain {
  font-size: 12px;
  color: var(--home-muted);
}
.home-liveEpisode {
  font-size: 12px;
  font-weight: 900;
  color: #111;
  margin-bottom: 4px;
}
.home-liveTitle {
  font-size: 14px;
  font-weight: 900;
  color: #111;
  line-height: 1.25;
  margin-bottom: 6px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-liveDesc {
  font-size: 12px;
  color: var(--home-muted);
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.home-liveCta {
  display: flex;
  justify-content: flex-end;
}
.home-ctaBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  min-width: 120px;
  border: 1px solid transparent;
}
.home-ctaBtn.is-disabled {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.home-ctaBtn.is-active {
  background: #111;
  color: #fff;
}

/* Carousel */
.home-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 14px 0 14px;
  scrollbar-width: none;
}
.home-carousel__track::-webkit-scrollbar {
  display: none;
}
.home-shortCard {
  position: relative;
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  height: 360px;
  box-shadow: var(--home-shadow);
  text-decoration: none;
  color: #fff;
}
.home-shortCard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-shortCard__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -55%);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}
.home-shortCard__play::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 18px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}
.home-shortCard__text {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.home-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 0 0;
}
.home-dot {
  width: 6px;
  height: 6px;
  border-radius: 8px;
  border: none;
  background: rgba(0,0,0,0.18);
}
.home-dot.is-active {
  width: 22px;
  background: rgba(0,0,0,0.65);
}

/* Reviews hscroll */
.home-hscroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 12px;
  overflow-x: auto;
  padding: 0 14px 0 14px;
  scrollbar-width: none;
}
.home-hscroll::-webkit-scrollbar {
  display: none;
}

.home-reviews__footer {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  padding: 0 14px 4px;
}
.home-reviews__moreBtn {
  min-width: 200px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--home-text);
  background: var(--home-card);
  border: 1px solid var(--home-border);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.home-reviews__moreBtn:active {
  background: rgba(0, 0, 0, 0.04);
  transform: scale(0.98);
}

.home-reviewCard {
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--home-shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.home-gbGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  padding: 0 14px 0 14px;
}
.home-gbCard {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--home-shadow);
  -webkit-tap-highlight-color: transparent;
}
.home-gbCard__main {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.home-gbCard__main:active {
  opacity: 0.92;
}
.home-gbCard__imgWrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(0, 0, 0, 0.04);
}
.home-gbCard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-gbCard__name {
  padding: 10px 12px 0 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}
.home-gbCard__priceRow {
  padding: 6px 12px 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.home-gbCard__price {
  font-size: 13px;
  font-weight: 900;
  color: #111;
}
.home-gbCard__actions {
  margin: auto 0 0 0;
  /* padding: 0 0 12px 0; */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.home-gbCard__actions--withYoutube {
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
}
.home-gbCard__actions .home-gbBuy.btn_buy {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  margin: 0;
  border-radius: 0;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 10px;
  background-color: #333 !important;
  border-color: #333 !important;
}
.home-gbCard__actions--withYoutube .home-gbBuy.btn_buy {
  width: auto;
  flex: 1 1 0;
}
.home-gbCard__actions .home-gbBuy.btn_buy:not(:disabled):hover,
.home-gbCard__actions .home-gbBuy.btn_buy:not(:disabled):focus {
  background-color: #222 !important;
  border-color: #222 !important;
}
.home-gbCard__actions .home-gbBuy.btn-secondary.btn_buy {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}
.home-gbYoutube {
  border-radius: 0;
  margin: 0;
  padding: 8px 12px;
  min-height: 100%;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.home-gbCard__actions--withYoutube .home-gbYoutube {
  align-self: stretch;
}
.home-gbYoutube .fab {
  font-size: 18px;
}
.home-reviewCard__media {
  width: 100%;
  height: 180px;
  background: rgba(0,0,0,0.04);
}
.home-reviewCard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-reviewCard__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 0 12px;
  font-size: 12px;
  color: var(--home-muted);
}
.home-reviewCard__user {
  font-weight: 900;
  color: #111;
}
.home-reviewCard__body {
  padding: 8px 12px 12px 12px;
  font-size: 13px;
  color: #111;
  line-height: 1.35;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SNS */
.home-sns {
  display: flex;
  gap: 14px;
  padding: 0 14px 0 14px;
}
.home-sns__item {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  border: 1px solid var(--home-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  text-decoration: none;
}
.home-sns__icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* Footer */
.home-footer {
  padding: 28px 14px 30px 14px;
  color: var(--home-muted);
}
.home-footer__brand {
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #111;
  margin-bottom: 14px;
}
.home-footer__grid {
  margin: 0;
  display: grid;
  gap: 8px;
}
.home-footer__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}
.home-footer__label {
  margin: 0;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
}
.home-footer__value {
  margin: 0;
  font-size: 12px;
  color: rgba(0,0,0,0.75);
}
.home-footer__notice {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  white-space: pre-line;
}

/* FAB - bottom-nav 위에 배치 */
.home-fab {
  position: fixed;
  right: 14px;
  bottom: calc(78px + env(safe-area-inset-bottom)); /* bottom-nav(60px) 위 */
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
}
.home-fab__btn {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 1px solid var(--home-border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--home-shadow);
  font-weight: 900;
  color: #111;
}
.home-fab__btn:active {
  transform: translateY(1px);
}

/* Bottom Navigation (labang home) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 480px;
  width: 100%;
  height: 60px;
  background: #333333;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s ease;
}

.bottom-nav-item:active {
  color: #E91E63;
}

.bottom-nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
}

.bottom-nav-item span {
  font-size: 11px;
}

/* 셀러홈: 내정보 슬라이드 패널·배경을 #labangHome / 하단 네비와 동일 컬럼 너비로 */
body.labang-seller-home {
  --labang-column-max: 480px;
}

body.labang-seller-home .myinfo-panel,
body.labang-seller-home .myinfo-backdrop {
  max-width: var(--labang-column-max);
}

/* 공지사항 모달 (하단 슬라이드 업) */
.home-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.home-notice-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-notice-modal.is-open .home-notice-modal__panel {
  transform: translateY(0);
}

.home-notice-modal__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  background: var(--home-bg);
  border-radius: 8px 8px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.home-notice-modal__nav {
  flex-shrink: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--home-border);
  background: #fff;
}

.home-notice-modal__back,
.home-notice-modal__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  font-size: 20px;
  color: var(--home-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-notice-modal__back:active,
.home-notice-modal__close:active {
  opacity: 0.7;
}

.home-notice-modal__title {
  font-weight: 700;
  font-size: 16px;
}

.home-notice-modal__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.home-notice-modal__list {
  padding: 0;
}

.home-notice-modal__list.is-hidden {
  display: none;
}

.home-notice-modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 14px;
  border-bottom: 1px solid var(--home-border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
}

.home-notice-modal__row:active {
  background: rgba(0, 0, 0, 0.04);
}

.home-notice-modal__row-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--home-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-notice-modal__row-date {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--home-muted);
}

.home-notice-modal__list-placeholder {
  padding: 24px 14px;
  font-size: 14px;
  color: var(--home-muted);
  text-align: center;
}

.home-notice-modal__loadMore {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--home-text);
  background: transparent;
  border: none;
  border-top: 1px solid var(--home-border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-notice-modal__loadMore:disabled {
  opacity: 0.5;
}

.home-notice-modal__loadMore:active:not(:disabled) {
  background: rgba(0, 0, 0, 0.04);
}

.home-notice-modal__detail {
  padding: 16px 14px;
  display: none;
}

.home-notice-modal__detail.is-visible {
  display: block;
}

.home-notice-modal__detail-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.35;
  color: var(--home-text);
}

.home-notice-modal__detail-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--home-text);
  word-break: break-word;
}

.home-notice-modal__detail-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 0 14px;
  border-radius: 8px;
  vertical-align: top;
}

.home-notice-modal__detail-body {
  white-space: pre-wrap;
  word-break: break-word;
}

/* 셀러홈 메인(#labangHome) 안: 공지·리뷰 모달을 뷰포트 전체가 아닌 컬럼 너비에 맞춤 */
#labangHome .home-notice-modal {
  inset: auto;
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: min(100vw, var(--labang-column-max));
  transform: translateX(-50%);
}

/* 리뷰 모달 열림 시 페이지 스크롤 잠금 (home.js가 html/body에 클래스 부여) */
html.labang-review-modal-open,
body.labang-review-modal-open {
  overflow: hidden;
  height: 100%;
}
body.labang-review-modal-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* 로그인·정보변경 팝업 열림 시 배경 스크롤 잠금 (home.js initLabangLoginPopupScrollLock) */
html.labang-login-popup-open,
body.labang-login-popup-open {
  overflow: hidden;
  height: 100%;
}
body.labang-login-popup-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* 리뷰 더보기 모달 (하단 슬라이드 업) */
.home-review-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  overscroll-behavior: contain;
}

#labangHome .home-review-modal {
  inset: auto;
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: min(100vw, var(--labang-column-max));
  transform: translateX(-50%);
}

.home-review-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-review-modal.is-open .home-review-modal__panel {
  transform: translateY(0);
}

.home-review-modal__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  background: var(--home-bg);
  border-radius: 8px 8px 0 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.home-review-modal__nav {
  flex-shrink: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--home-border);
  background: #fff;
}

.home-review-modal__nav .home-review-modal__title {
  flex: 1;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}

.home-review-modal__back,
.home-review-modal__close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  font-size: 20px;
  color: var(--home-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-review-modal__back:active,
.home-review-modal__close:active {
  opacity: 0.7;
}

.home-review-modal__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.home-review-modal__list.is-hidden {
  display: none;
}

.home-review-modal__detail {
  display: none;
  padding: 0;
}

.home-review-modal__detail.is-visible {
  display: block;
}

.home-review-modal__detail .home-review-modal__card {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 20px;
}

.home-review-modal__card {
  padding-bottom: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--home-border);
  cursor: pointer;
}

.home-review-modal__card:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.home-review-modal__carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: min(55vh, 100vw);
  background: rgba(0, 0, 0, 0.06);
}

.home-review-modal__carousel-scroll {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* pan-x만 두면 리스트 세로 스크롤이 캐러셀에서 시작할 때 막힘 */
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

.home-review-modal__carousel-track {
  display: contents;
}

.home-review-modal__carousel-item {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-review-modal__carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: auto;
}

.home-review-modal__carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.home-review-modal__carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transition: background 0.2s ease;
}

.home-review-modal__carousel-dot.is-active {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.home-review-modal__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 4px 14px;
  font-size: 12px;
  color: var(--home-muted);
}

.home-review-modal__user {
  font-weight: 700;
  color: var(--home-text);
}

.home-review-modal__text {
  padding: 0 14px max(24px, env(safe-area-inset-bottom));
  font-size: 14px;
  line-height: 1.5;
  color: var(--home-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.home-review-modal__list {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.home-review-modal__sentinel {
  height: 1px;
  margin: 0;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-review-modal__list-loading,
.home-review-modal__list-error {
  padding: 24px 14px;
  text-align: center;
  font-size: 14px;
  color: var(--home-muted);
}

/* 리뷰 이미지 전체 보기 라이트박스 */
.home-review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.92);
}

.home-review-lightbox.is-open {
  display: flex;
}

.home-review-lightbox__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-review-lightbox__shell {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: env(safe-area-inset-top);
  pointer-events: none;
}

.home-review-lightbox__close,
.home-review-lightbox__scroll,
.home-review-lightbox__dots {
  pointer-events: auto;
}

.home-review-lightbox__close {
  align-self: flex-end;
  margin: 8px 12px 4px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.home-review-lightbox__close:active {
  opacity: 0.85;
}

.home-review-lightbox__scroll {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

.home-review-lightbox__track {
  display: contents;
}

.home-review-lightbox__item {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  box-sizing: border-box;
}

.home-review-lightbox__item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.home-review-lightbox__dots {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px max(16px, env(safe-area-inset-bottom));
}

.home-review-lightbox__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.2s ease;
}

.home-review-lightbox__dot.is-active {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

/* 후기 등록 모달 (리뷰 모달과 동일 컬럼·슬라이드 패턴) */
.home-reviewWrite-modal {
  position: fixed;
  inset: 0;
  z-index: 520;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  overscroll-behavior: contain;
}

#labangHome .home-reviewWrite-modal {
  inset: auto;
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: min(100vw, var(--labang-column-max));
  transform: translateX(-50%);
}

.home-reviewWrite-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-reviewWrite-modal.is-open .home-reviewWrite-modal__panel {
  transform: translateY(0);
}

.home-reviewWrite-modal__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  background: var(--home-bg);
  border-radius: 8px 8px 0 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  overscroll-behavior: contain;
}

.home-reviewWrite-modal__nav {
  flex-shrink: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--home-border);
  background: #fff;
}

.home-reviewWrite-modal__title {
  flex: 1;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}

.home-reviewWrite-modal__close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--home-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-reviewWrite-modal__close:active {
  opacity: 0.7;
}

.home-reviewWrite-modal__form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.home-reviewWrite-modal__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 14px max(16px, env(safe-area-inset-bottom));
  min-height: 0;
}

.home-reviewWrite-modal__field {
  margin-bottom: 16px;
}

.home-reviewWrite-modal__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--home-text);
  margin-bottom: 8px;
}

.home-reviewWrite-modal__req {
  color: var(--home-danger);
  font-weight: 700;
}

.home-reviewWrite-modal__opt {
  font-weight: 400;
  color: var(--home-muted);
  font-size: 12px;
}

.home-reviewWrite-modal__hint {
  margin: 6px 0 0 0;
  font-size: 12px;
  color: var(--home-muted);
}

/* 커스텀 파일 선택: 네이티브 버튼 대신 모달 톤에 맞는 업로드 영역 */
.home-reviewWrite-modal__file-wrap {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--home-radius);
  overflow: hidden;
}

.home-reviewWrite-modal__file-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 100px;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.home-reviewWrite-modal__file-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 100px;
  padding: 16px 14px;
  border: 1px dashed var(--home-border);
  border-radius: var(--home-radius);
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  color: var(--home-text);
  pointer-events: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-reviewWrite-modal__file-input:focus {
  outline: none;
}

.home-reviewWrite-modal__file-wrap:focus-within .home-reviewWrite-modal__file-face {
  border-color: var(--home-accent);
  border-style: solid;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.06);
}

.home-reviewWrite-modal__file-face .fa-regular {
  font-size: 24px;
  color: var(--home-muted);
  line-height: 1;
}

.home-reviewWrite-modal__file-faceText {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-reviewWrite-modal__file-faceSub {
  font-size: 12px;
  color: var(--home-muted);
  font-weight: 400;
  text-align: center;
  line-height: 1.35;
  max-width: 260px;
}

.home-reviewWrite-modal__input,
.home-reviewWrite-modal__textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: #fff;
  color: var(--home-text);
  box-sizing: border-box;
}

.home-reviewWrite-modal__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.home-reviewWrite-modal__previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.home-reviewWrite-modal__preview {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.home-reviewWrite-modal__preview-imgWrap {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--home-border);
  background: #f3f4f6;
}

.home-reviewWrite-modal__preview-imgWrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-reviewWrite-modal__preview-remove {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0 8px 0 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.home-reviewWrite-modal__preview-remove:active {
  background: rgba(0, 0, 0, 0.72);
}

.home-reviewWrite-modal__actions {
  margin-top: 0;
  padding: 0;
  border-top: none;
  background: transparent;
}

.home-reviewWrite-modal__submit {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--home-accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-reviewWrite-modal__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.home-reviewWrite-modal__submit:active:not(:disabled) {
  opacity: 0.92;
}

/* 공동구매 → 상품 상세 iframe 모달 */
.home-productDetail-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
}
.home-productDetail-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}
.home-productDetail-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.home-productDetail-modal.is-open .home-productDetail-modal__backdrop {
  opacity: 1;
}
.home-productDetail-modal__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  height: min(92vh, 100dvh);
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.28s ease;
}
.home-productDetail-modal.is-open .home-productDetail-modal__panel {
  transform: translateY(0);
}
.home-productDetail-modal__iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

/* 공동구매 상품 영상 모달 (livePage youtube-time-modal 과 동일 구조) */
.labang-home-youtube-modal.youtube-time-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.labang-home .youtube-time-modal {
  position: relative;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  height: 80vh;
  width: calc(80vh * 9 / 16);
  max-width: 90%;
  max-height: 90vh;
}
.labang-home .youtube-time-modal-close {
  position: fixed;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 12001;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.labang-home .youtube-time-modal-close:hover {
  background: rgba(255, 68, 68, 0.8);
}
.labang-home #youtubeTimePlayer {
  width: 100%;
  height: 100%;
}
.labang-home #youtubeTimePlayer iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.labang-home .youtube-unmute-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(51, 51, 51, 0.9);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 15px 30px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 12002;
  transition: all 0.3s ease;
}
.labang-home .youtube-unmute-btn:hover {
  background: rgba(51, 51, 51, 1);
  transform: translate(-50%, -50%) scale(1.05);
}
.labang-home .youtube-unmute-btn i {
  font-size: 24px;
}
.labang-home .youtube-unmute-btn.hidden {
  display: none;
}
@media (max-width: 480px) {
  .labang-home .youtube-time-modal {
    width: min(92vw, calc(90vh * 9 / 16));
    height: min(80vh, calc(92vw * 16 / 9));
  }
}

/* SweetAlert2 z-index — public/css/swal2-zindex-override.css 에서 전역 처리 */

/* 주문내역 팝업 (공통) */
.order-history-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.order-history-popup .popup-content {
  background: var(--home-card);
  width: 90%;
  max-width: 500px;
  height: 80vh;
  border-radius: var(--home-radius);
  display: flex;
  flex-direction: column;
  box-shadow: var(--home-shadow);
}
.order-history-popup .popup-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--home-border);
}

/* 주문내역: 승인/취소 뱃지(라이브 livePage 등). 장바구니(.cart-list-popup)는 아래 별도 톤 */
.order-history-popup .product-name .status-approved {
  display: inline-block;
  background: green !important;
  color: #fff !important;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
  vertical-align: middle;
}
/* 주문승인 전용 — 진한 노란색 배경 */
.order-history-popup .product-name .status-approved.status-approved--order {
  background: #c9a017 !important;
  color: #1a1a1a !important;
}
.order-history-popup .product-name .status-canceled {
  display: inline-block;
  background: crimson !important;
  color: #fff !important;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
  vertical-align: middle;
}

/* 주문내역 팝업 — 셀러홈(labang-home) 전용, 장바구니 팝업과 동일 톤 */
.labang-home .order-history-popup {
  z-index: 1100;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}
.labang-home .order-history-popup .popup-content {
  width: 100%;
  max-width: 480px;
  height: min(88vh, 100dvh);
  max-height: calc(100dvh - env(safe-area-inset-bottom));
  margin: 0;
  border-radius: var(--home-radius) var(--home-radius) 0 0;
  border: 1px solid var(--home-border);
  border-bottom: none;
  overflow: hidden;
  background: var(--home-bg);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
}
.labang-home .order-history-popup .popup-header {
  flex-shrink: 0;
  padding: 0;
  border-bottom: 1px solid var(--home-border);
  background: var(--home-card);
}
.labang-home .order-history-popup .popup-header .header-content {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 12px 10px;
  align-items: center;
  padding: 16px 18px 14px;
}
.labang-home .order-history-popup .popup-header h3 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--home-text);
}
.labang-home .order-history-popup .popup-header .close-btn {
  grid-column: 2;
  grid-row: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--home-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
}
.labang-home .order-history-popup .popup-header .close-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--home-text);
}
.labang-home .order-history-popup .labang-select {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  margin: 0;
}
.labang-home .order-history-popup .labang-select .form-select {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--home-text);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--home-border);
  border-radius: 8px;
  cursor: pointer;
  appearance: auto;
}
.labang-home .order-history-popup .order-section {
  flex-shrink: 0;
  padding: 0 18px;
  background: var(--home-bg);
}
.labang-home .order-history-popup .order-address-info {
  margin-top: 4px;
}
.labang-home .order-history-popup .address-card {
  border: 1px solid var(--home-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--home-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#address-card {
  margin-top: 10px;
}
.labang-home .order-history-popup .address-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, #eef2f7 0%, #e6ebf2 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.labang-home .order-history-popup .address-header:hover {
  background: linear-gradient(180deg, #e8edf4 0%, #dfe6ef 100%);
}
.labang-home .order-history-popup .address-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.labang-home .order-history-popup .address-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a2332;
}
.labang-home .order-history-popup .address-toggle-btn {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3d4f66;
}
.labang-home .order-history-popup .address-toggle-btn:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.14);
  color: var(--home-text);
}
/* style.css .toggle-icon { color: #fff } — 밝은 배송지 헤더에서 화살표가 안 보이는 문제 */
.labang-home .order-history-popup .address-toggle-btn .toggle-icon {
  color: #1a2332;
  font-size: 13px;
  font-weight: 700;
}
.labang-home .order-history-popup .address-toggle-btn:hover .toggle-icon {
  color: var(--home-text);
}
.labang-home .order-history-popup .address-content {
  padding: 0 16px 16px;
  border-top: 1px solid var(--home-border);
  background: rgba(0, 0, 0, 0.02);
}
.labang-home .order-history-popup .address-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  padding: 8px 0;
  font-size: 13px;
}
.labang-home .order-history-popup .address-label {
  color: var(--home-muted);
  font-weight: 600;
  min-width: 56px;
}
.labang-home .order-history-popup .address-value {
  color: var(--home-text);
}
.labang-home .order-history-popup .address-action .address-edit-btn {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #1a1a1a;
  background: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.labang-home .order-history-popup .address-action .address-edit-btn:hover {
  background: #333;
  border-color: #333;
}
.labang-home .order-history-popup .address-action .address-edit-btn:active {
  transform: translateY(1px);
}
.labang-home .order-history-popup .address-action span[style*="940000"] {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(229, 57, 53, 0.08);
  color: var(--home-danger) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}
.labang-home .order-history-popup .order-list-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 18px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--home-bg);
}
.labang-home .order-history-popup .cancel_available {
  flex-shrink: 0;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--home-muted);
  margin: 12px 0 14px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  border: 1px solid var(--home-border);
}
.labang-home .order-history-popup .cancel_available #cancel_available_count {
  color: var(--home-danger) !important;
}
.labang-home .order-history-popup .order-items {
  margin-bottom: 0;
}
.labang-home .order-history-popup .order-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--home-border);
  border-radius: 0;
  gap: 14px;
}
.labang-home .order-history-popup .order-item:last-child {
  border-bottom: none;
}
.labang-home .order-history-popup .order-item.order-item--cancelled {
  position: relative;
  opacity: 0.78;
  filter: grayscale(0.4);
  background: rgba(0, 0, 0, 0.045);
  border-radius: 8px;
  padding-left: 10px;
  padding-right: 10px;
  margin-left: -4px;
  margin-right: -4px;
}
.labang-home .order-history-popup .order-item.order-item--cancelled .order-item-thumb {
  position: relative;
}
.labang-home .order-history-popup .order-item.order-item--cancelled .order-item-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 8px;
  pointer-events: none;
}
.labang-home .order-history-popup .order-item-cancelled-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}
.labang-home .order-history-popup .order-item-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
}
.labang-home .order-history-popup .product-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--home-text);
}
.labang-home .order-history-popup .price-qty {
  font-size: 13px;
}
.labang-home .order-history-popup .order-status {
  font-size: 13px;
}
.labang-home .order-history-popup .total-amount,
.labang-home .order-history-popup .coupon-total-amount {
  margin-top: 16px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  border: 1px solid var(--home-border);
}
.labang-home .order-history-popup .amount-row {
  font-size: 14px;
}
.labang-home .order-history-popup .amount-row.total {
  font-size: 15px;
}

/* 주문내역 — 정산 요약·무통장 입금(RESERVE), live.js totalAmountHtml */
.order-history-popup .order-amountSummary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
  width: 100%;
  box-sizing: border-box;
}
.order-history-popup .order-amountSummary__title {
  align-self: stretch;
  text-align: right;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--home-text);
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--home-border);
}
.order-history-popup .order-amountSummary__line {
  font-size: 14px;
  color: var(--home-muted);
}
.order-history-popup .order-amountSummary__line--reserveDeliveryWaived {
  color: var(--home-muted);
}
.order-history-popup .order-amountSummary__deliveryStrike {
  text-decoration: line-through;
  color: var(--home-muted);
  font-weight: 500;
}
.order-history-popup .order-amountSummary__deliveryEffective {
  font-weight: 700;
  color: var(--home-text);
}
.order-history-popup .order-amountSummary__deliveryNote {
  font-size: 12px;
  color: var(--home-muted);
}
.order-history-popup .order-amountSummary__grand {
  font-size: 15px;
  font-weight: 800;
  color: var(--home-danger);
  margin-top: 4px;
}
.order-history-popup .order-amountSummary__grand--reservePaid {
  color: #15803d;
}
.order-history-popup .order-amountSummary__grand--reserveUnpaid {
  color: var(--home-danger);
}
.order-history-popup .order-amountSummary__line--reserveTotal {
  font-weight: 700;
  color: var(--home-text);
}
.order-history-popup .order-amountSummary__line--reserveUnpaid {
  color: var(--home-danger);
}
.order-history-popup .order-amountSummary__line--reserveSplitFirst {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--home-border);
}

.order-history-popup .order-reserveBlock {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 32%);
  border: 1px solid rgba(180, 83, 9, 0.2);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.order-history-popup .order-reserveBlock__realnameAlert {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px 0;
  padding: 13px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 55%, #fcd34d 100%);
  border: 1px solid rgba(217, 119, 6, 0.55);
  box-shadow:
    0 2px 8px rgba(180, 83, 9, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  text-align: center;
}
.order-history-popup .order-reserveBlock__realnameText {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #92400e;
  line-height: 1.35;
}
.order-history-popup .order-reserveBlock__title {
  margin: 0 0 14px 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--home-text);
}
.order-history-popup .order-reserveBlock__dl {
  margin: 0;
  padding: 0;
}
.order-history-popup .order-reserveRow {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--home-border);
  font-size: 14px;
}
.order-history-popup .order-reserveRow:last-of-type {
  border-bottom: none;
}
.order-history-popup .order-reserveRow--amount {
  padding-top: 12px;
  margin-top: 4px;
  /* border-top: 1px dashed rgba(0, 0, 0, 0.1); */
  border-bottom: none;
}
.order-history-popup .order-reserveRow__label {
  margin: 0;
  font-weight: 700;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.4;
}
.order-history-popup .order-reserveRow__value {
  margin: 0;
  font-weight: 600;
  color: var(--home-text);
  line-height: 1.45;
  word-break: break-word;
}
.order-history-popup .order-reserveRow__value .order-reserveRow__bank {
  display: inline-block;
  margin-right: 6px;
}
.order-history-popup .order-reserveRow__value .order-reserveRow__acct {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.order-history-popup .order-reserveRow__copyBtn {
  display: inline-block;
  margin-top: 8px;
  margin-left: 0;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--home-text);
  background: var(--home-card);
  border: 1px solid var(--home-border);
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.order-history-popup .order-reserveRow__copyBtn:active {
  background: rgba(0, 0, 0, 0.05);
}
.order-history-popup .order-reserveRow--amount .order-reserveRow__value--amount {
  font-size: 17px;
  font-weight: 800;
  color: var(--home-danger);
}
.order-history-popup .order-reserveBlock__hint {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  border: 1px solid var(--home-border);
}
.order-history-popup .order-reserveBlock__hintLine {
  margin: 0 0 6px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--home-text);
}
.order-history-popup .order-reserveBlock__hintLine:last-of-type {
  margin-bottom: 0;
}
.order-history-popup .order-reserveBlock__hintEx {
  margin: 10px 0 0 0;
  font-size: 12px;
  color: var(--home-muted);
  font-weight: 400;
}
.order-history-popup .order-reserveBlock__cs {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--home-border);
  text-align: center;
}
.order-history-popup .order-reserveBlock__csLabel {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--home-muted);
  letter-spacing: 0.02em;
}
.order-history-popup .order-reserveBlock__csInner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.order-history-popup .order-reserveBlock__csInner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  transition: transform 0.15s ease;
}
.order-history-popup .order-reserveBlock__csInner a:active {
  transform: scale(0.96);
}
.order-history-popup .order-reserveBlock__csInner img {
  display: block;
  width: 70px;
  height: auto;
  vertical-align: middle;
}

.labang-home .order-history-popup .no-orders {
  text-align: center;
  padding: 40px 16px;
  color: var(--home-muted);
  font-size: 14px;
  font-weight: 500;
}
.labang-home .coupon-list-popup .no-coupons {
  text-align: center;
  padding: 40px 16px;
  color: var(--home-muted);
  font-size: 14px;
  font-weight: 500;
}

/* 쿠폰 목록 — 카드등록과 동일 화면 중앙 모달 */
.labang-home .coupon-list-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
  backdrop-filter: blur(4px);
}
.labang-home .coupon-list-popup .popup-content {
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  min-height: auto;
  height: auto;
  margin: 0;
  border-radius: 15px;
  border: 1px solid var(--home-border);
  overflow: hidden;
  overflow-y: auto;
  background: var(--home-bg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  -webkit-overflow-scrolling: touch;
}

/* 카드등록 — livePage(.order-history 등과 동일) 화면 중앙 모달 */
.labang-home .card-register-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
  backdrop-filter: blur(4px);
}
.labang-home .card-register-popup .popup-content {
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  min-height: auto;
  height: auto;
  margin: 0;
  border-radius: 15px;
  border: 1px solid var(--home-border);
  overflow: hidden;
  overflow-y: auto;
  background: var(--home-bg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  -webkit-overflow-scrolling: touch;
}

/* 카드등록 본문·폼 — 셀러홈 타이포·간격 */
.labang-home .card-register-popup .popup-body {
  padding: 4px 18px 0;
}
.labang-home .card-register-popup .card-register-popup__leadWrap {
  text-align: center;
  font-weight: 600;
  padding: 8px 0 4px;
}
.labang-home .card-register-popup .card-register-popup__lead {
  font-size: 15px !important;
  line-height: 1.45;
  color: var(--home-text);
  display: inline-block;
}
.labang-home .card-register-popup .form-group.reg_card_group {
  padding: 16px 18px 0;
  margin-bottom: 0;
}
.labang-home .card-register-popup .form-group.card_list {
  padding: 8px 18px 16px;
  margin-bottom: 0;
}
.labang-home .card-register-popup .card-type-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--home-muted);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.labang-home .card-register-popup #billingkeys {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--home-text);
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--home-radius);
  border: 1px solid var(--home-border);
  word-break: break-word;
}
.labang-home .card-register-popup #billingkeys .fa-trash-alt {
  cursor: pointer;
  padding: 4px;
  vertical-align: middle;
}
.labang-home .card-register-popup .card-register-popup__cta {
  padding: 0 18px 18px;
  text-align: center;
}
.labang-home .card-register-popup .card-register-popup__primaryBtn {
  width: 100%;
  max-width: 100%;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--home-radius);
  background: var(--home-accent) !important;
  border-color: var(--home-accent) !important;
}
.labang-home .card-register-popup #card_byv_form {
  padding: 8px 18px 18px;
  border-top: 1px solid var(--home-border);
  margin-top: 4px;
  background: rgba(0, 0, 0, 0.02);
}
.labang-home .card-register-popup #card_byv_form .form-group {
  margin-bottom: 14px;
}
.labang-home .card-register-popup #card_byv_form .card-type-label {
  margin-bottom: 6px;
}
.labang-home .card-register-popup #card_byv_form .form-control {
  font-size: 15px;
  padding: 10px 12px;
  border-radius: var(--home-radius);
  border: 1px solid var(--home-border);
}
.labang-home .card-register-popup #card_byv_form .form-group.card-type-group > div[style*='display: flex'] {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--home-muted);
}
.labang-home .card-register-popup #card_byv_form .popup-footer {
  margin-top: 8px;
  padding-top: 4px;
}
.labang-home .card-register-popup #card_byv_form .popup-footer .btn-primary {
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--home-radius);
  background: var(--home-accent) !important;
  border-color: var(--home-accent) !important;
}

.labang-home .card-register-popup .popup-header,
.labang-home .coupon-list-popup .popup-header {
  flex-shrink: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--home-border);
  background: var(--home-card);
}
.labang-home .card-register-popup .popup-header .header-content,
.labang-home .coupon-list-popup .popup-header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.labang-home .card-register-popup .popup-header h3,
.labang-home .coupon-list-popup .popup-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--home-text);
}
.labang-home .card-register-popup .popup-header .close-btn,
.labang-home .coupon-list-popup .popup-header .close-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--home-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.labang-home .coupon-list-popup .coupon-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 0 14px 14px;
  min-height: 0;
  padding:10px;
}
.labang-home .coupon-list-popup .coupon-list-container .coupon-items {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 쿠폰 행 — home-hero 타이포·필·그라데이션 톤 */
.labang-home .coupon-list-popup .coupon-item {
  padding: 14px 14px 16px;
  border-radius: var(--home-radius);
  border: 1px solid var(--home-border);
  background: var(--home-card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.labang-home .coupon-list-popup .coupon-item-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.labang-home .coupon-list-popup .coupon-item-header .coupon-name {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--home-text);
}
.labang-home .coupon-list-popup .coupon-item-header .coupon-status {
  flex-shrink: 0;
  margin: 0;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  border-radius: 999px;
  white-space: nowrap;
}
.labang-home .coupon-list-popup .coupon-item-header .coupon-status.available {
  color: #fff;
  background: linear-gradient(165deg, #ff9a7b 0%, #f47296 55%, #ec6b9c 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(244, 114, 150, 0.35);
}
.labang-home .coupon-list-popup .coupon-item-header .coupon-status.issued {
  color: var(--home-muted);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--home-border);
}
.labang-home .coupon-list-popup .coupon-item-header .coupon-status.used {
  color: var(--home-muted);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--home-border);
}
.labang-home .coupon-list-popup .coupon-item-header.used .coupon-name {
  text-decoration: line-through;
  color: var(--home-muted);
  font-weight: 700;
}
.labang-home .coupon-list-popup .coupon-item-details {
  padding-top: 2px;
}
.labang-home .coupon-list-popup .coupon-item-details .detail-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--home-muted);
}
.labang-home .coupon-list-popup .coupon-item-details .coupon-info {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--home-text);
  font-weight: 500;
}
.labang-home .coupon-list-popup .coupon-item-details .label,
.labang-home .coupon-list-popup .coupon-item-details .value {
  display: block;
  font-size: 12px;
  color: var(--home-muted);
  font-weight: 400;
}

/* 장바구니 팝업 — 홈 디자인 톤 */
.cart-list-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cart-list-popup .popup-content {
  background: var(--home-bg);
  width: 92%;
  max-width: 440px;
  height: 85vh;
  max-height: 720px;
  border-radius: var(--home-radius);
  display: flex;
  flex-direction: column;
  box-shadow: var(--home-shadow);
  border: 1px solid var(--home-border);
  overflow: hidden;
}
.cart-list-popup .popup-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--home-border);
  background: var(--home-card);
}
.cart-list-popup .popup-header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.cart-list-popup .popup-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--home-text);
  letter-spacing: -0.02em;
}
.cart-list-popup .popup-header .close-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--home-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.cart-list-popup .popup-header .close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--home-text);
}
.cart-list-popup .cart-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 18px;
  -webkit-overflow-scrolling: touch;
}
.cart-list-popup .cancel_cart_available {
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--home-muted);
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
}
.cart-list-popup .cancel_cart_available span[style*="crimson"] {
  color: var(--home-danger) !important;
}
.cart-list-popup .btn_cart_payment_top {
  margin-bottom: 12px;
}
.cart-list-popup .btn_cart_payment_top .btn {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--home-accent);
  color: #fff;
  cursor: pointer;
}
.cart-list-popup .cart-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--home-border);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.cart-list-popup .cart-item:last-of-type {
  border-bottom: none;
}
.cart-list-popup .cart-item-body {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.cart-list-popup .cart-item-body .product-info {
  min-width: 0;
}
.cart-list-popup .cart-item-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
}
.cart-list-popup .cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-list-popup .product-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--home-text);
  line-height: 1.35;
}
.cart-list-popup .product-name .status-approved,
.cart-list-popup .product-name .status-canceled {
  font-size: 11px;
  font-weight: 500;
  margin-right: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--home-muted);
}
.cart-list-popup .product-name .status-canceled {
  background: rgba(229, 57, 53, 0.1);
  color: var(--home-danger);
}
.cart-list-popup .price-qty {
  color: var(--home-muted);
  font-size: 13px;
  margin-bottom: 4px;
}
.cart-list-popup .price-qty .price {
  margin-right: 4px;
  font-weight: 600;
  color: var(--home-text);
}
.cart-list-popup .total-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--home-text);
}
.cart-list-popup .cart-item > .btn-cancel-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: var(--home-muted);
  border-radius: 50%;
  cursor: pointer;
}
.cart-list-popup .cart-item > .btn-cancel-icon:hover {
  background: rgba(229, 57, 53, 0.1);
  color: var(--home-danger);
}
.cart-list-popup .cart-item > .btn-cancel-icon svg {
  display: block;
}
/* 배송비 행 (data-product-type="DELIVERY") */
.cart-list-popup .cart-item[data-product-type="DELIVERY"] .product-info {
  width: 100%;
}
.cart-list-popup .cart-item[data-product-type="DELIVERY"] .total-price {
  color: var(--home-danger);
}
/* 정산 영역 */
.cart-list-popup .total-amount {
  margin-top: 20px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  border: 1px solid var(--home-border);
}
.cart-list-popup .shipping-fee.delivery-pay-history {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--home-muted);
}
.cart-list-popup .shipping-fee.delivery-pay-history small {
  font-size: 12px;
  color: var(--home-muted);
}
/* 무료배송 기준 강조 — 위 .shipping-fee.delivery-pay-history(flex)보다 구체적으로 덮어 중앙 정렬 */
.cart-list-popup .shipping-fee.delivery-pay-history.delivery-pay-history--labang-freeShipMsg {
  display: block;
  margin: 4px 0 16px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(180, 83, 9, 0.22);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(180, 83, 9, 0.1);
  text-align: center;
}
.cart-list-popup .shipping-fee.delivery-pay-history.delivery-pay-history--labang-freeShipMsg .delivery-pay-history__freeShipCue {
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: #b45309;
  letter-spacing: -0.03em;
  line-height: 1.45;
}
.cart-list-popup .amount-row.total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--home-border);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 14px;
  color: var(--home-muted);
}
.cart-list-popup .amount-row.total span:first-child {
  font-size: 15px;
  font-weight: 700;
  color: var(--home-text);
  border-bottom: 1px solid var(--home-border);
  padding-bottom: 10px;
  margin-bottom: 4px;
}
.cart-list-popup .amount-row.total span[style*="crimson"] {
  font-size: 17px;
  font-weight: 700;
  color: var(--home-danger) !important;
}
.cart-list-popup .btn_cart_payment {
  margin-top: 16px;
}
.cart-list-popup .btn_cart_payment .btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--home-accent);
  color: #fff;
  cursor: pointer;
}
.cart-list-popup .btn_cart_payment .btn:hover {
  background: #000;
}

.order-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.order-items {
  margin-bottom: 20px;
}
.order-item {
  padding: 15px;
  border-bottom: 1px solid var(--home-border);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}
.order-item-body {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 15px;
  min-width: 0;
  flex: 1;
}
.order-item-body .product-info {
  min-width: 0;
}
.order-item-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}
.order-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.order-item > .btn-cancel-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  min-width: 36px;
  height: 36px;
}
.product-name {
  font-size: 1rem;
  margin: 0 0 8px 0;
}
.price-qty {
  color: var(--home-muted);
  font-size: 0.9rem;
}
.price-qty .price {
  margin-right: 10px;
  font-weight: bold;
}
.order-status {
  font-size: 0.9rem;
}
.total-amount,
.coupon-total-amount {
  margin-top: 20px;
  padding-top: 20px;
}
.amount-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--home-muted);
}
.amount-row.total {
  margin-top: 10px;
  padding-top: 10px;
  font-weight: bold;
  color: var(--home-text);
  font-size: 1.1rem;
}
.shipping-fee.delivery-pay-history {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--home-muted);
}
.btn_cart_payment {
  margin-top: 16px;
}
.btn_cart_payment .btn {
  width: 100%;
}

.labang-select {
  width: 50%;
}
@media (max-width: 768px) {
  .order-history-popup .popup-content {
    width: 95%;
    height: 90vh;
  }
  .cart-list-popup .popup-content {
    width: 94%;
    height: 88vh;
  }
  .product-name {
    font-size: 0.9rem;
    line-height: 1.7;
  }
  .price-qty,
  .order-status {
    font-size: 0.8rem;
  }
}

/* 셀러홈 장바구니 아이콘 (왼쪽 하단, CART_LIGHTPAY일 때만) */
/* 하단 네비 (livePage와 동일, 셀러홈 max-width 정합) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 480px;
  width: 100%;
  height: 60px;
  background: #333333;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item:active {
  color: #e91e63;
}
.bottom-nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
}
.bottom-nav-item span {
  font-size: 11px;
}

.cart-hamburger-menu.home-cart-icon {
  position: fixed;
  bottom: calc(70px + env(safe-area-inset-bottom));
  left: 15px;
  z-index: 1001;
}

/* 셀러홈 컬럼(#labangHome)과 동일 가로 기준 — fixed는 뷰포트 기준이라 left 보정 */
#labangHome .cart-hamburger-menu.home-cart-icon {
  left: calc((100vw - min(100vw, var(--labang-column-max))) / 2 + 15px);
}
.cart-hamburger-menu .cart-icon-container {
  position: relative;
  width: 50px;
  height: 50px;
  background-color: #333333;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.cart-hamburger-menu .cart-icon-container:hover {
  background-color: #222222;
  transform: scale(1.05);
}
.cart-hamburger-menu .cart-icon {
  width: 24px;
  height: 24px;
  color: white;
}
.cart-hamburger-menu .cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  min-width: 20px;
  padding: 2px;
}
.cart-hamburger-menu .cart-badge:empty {
  display: none;
}

