/* 청첩장 목록 맨 위 «새로 나온 디자인» 한 줄 — common/catalog_new_arrivals_row.php (2026-11-06 대표님 카드 2525 «안 1»)
 * 숫자를 새로 적지 않는다(docs/DESIGN_GRAIN_GUIDE.md) — 정본 토큰(common/bojagi-design-system.css)과 가로 목록 한 벌(.bj-rail)만.
 *   제목 = 목록 안 «혜택 줄» 제목(.bj-care-row__title · common/catalog_list_banner.php)과 같은 단계(작은 구역 제목 크기 · control 무게)
 *   카드 사진·이름 = 목록 카드와 같은 틀·같은 이름 단계·같은 글꼴(--bj-font-family) — 이름 단계는 정본의 «목록 상품 범위»(:where(.product_list_gb, … .bj-new-arrivals))가 준다
 *   «신상품 전체 보기» = 혜택 줄 작은 글(.bj-care-row__tag)과 같은 작은 글 단계(caption · control 무게) · 흐린 글색 · 누를 자리 높이는 목록 단추 높이(--bj-catalog-cta-height-mobile)
 *   간격 = --bj-space-1·2·3 · 폰 좌우 여백 = 폰 목록 여백(--wedding-catalog-page-gutter · m/wedding_catalog_modern.css.php)
 * 한 화면에 PC 4장(최대 8장 · 끌기·Shift+휠·← →·진행선으로 넘김 · 대표님 38293) · 폰 2장과 조금(손가락으로 넘김 · 진행선). 4장 이하면 넘칠 것이 없어 조작부가 숨는다. */
.bj-new-arrivals {
  /* (2026-11-06 대표님 34549 · 카드 2639) 위 필터 줄에 붙어 보였다(7px) — 위 여백도 아래와 같은 구역 간격 토큰 */
  margin: var(--bj-space-3) 0 var(--bj-space-3);
  padding: 0;
}

.bj-new-arrivals__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bj-space-2);
  margin: 0 0 var(--bj-space-1);
}

/* 줄 머리 위 작은 회색 한 줄(선택 · 셀프 «셀프 50부 N원부터») — 11-23 대표님 71114 «작게 해 가지고 위로 올리고». 흐린 글색·작은 글 단계는 «… 전체 보기»와 같은 토큰 · 무게는 caption */
.bj-new-arrivals__kicker {
  margin: 0;
  color: var(--bj-muted);
  font-size: var(--bj-type-caption);
  font-weight: var(--bj-type-caption-weight);
  line-height: var(--bj-type-caption-line);
  word-break: keep-all;
}

/* 제목은 한 줄(꺾이지 않음 · 넘치면 말줄임) — 11-23 대표님 71114 «타이틀 열이 안 맞는 거» */
.bj-new-arrivals__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  color: var(--bj-ink);
  font-size: var(--bj-type-subsection);
  font-weight: var(--bj-type-control-weight);
  line-height: var(--bj-type-subsection-line);
  letter-spacing: var(--bj-type-page-tracking);
  word-break: keep-all;
}

.bj-new-arrivals__more {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: var(--bj-catalog-cta-height-mobile);
  color: var(--bj-muted);
  font-size: var(--bj-type-caption);
  font-weight: var(--bj-type-control-weight);
  line-height: var(--bj-type-caption-line);
  text-decoration: none;
  white-space: nowrap;
}

.bj-new-arrivals__more:hover,
.bj-new-arrivals__more:focus-visible {
  color: var(--bj-ink);
}

.bj-new-arrivals__list {
  gap: var(--bj-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bj-new-arrivals__cell {
  flex: 0 0 calc((100% - 3 * var(--bj-space-2)) / 4);
  min-width: 0;
  margin: 0;
  padding: 0;
  scroll-snap-align: start;
}

.bj-new-arrivals__item {
  display: block;
  color: var(--bj-catalog-title-color);
  text-decoration: none;
}

.bj-new-arrivals__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 7;
  object-fit: contain;
  border-radius: var(--bj-catalog-media-radius);
  background: var(--bj-template-media-surface);
}

/* (2026-11-08 대표님 카드 2973) 이름 옆 작은 NEW — 이름이 길면 이름만 줄임표로 줄고 NEW 는 남는다 */
.bj-new-arrivals__name {
  display: flex;
  align-items: baseline;
  gap: var(--bj-space-1);
  margin-top: var(--bj-space-1);
  color: var(--bj-catalog-title-color);
  font-size: var(--bj-catalog-title-size);
  font-weight: var(--bj-catalog-title-weight);
  line-height: var(--bj-catalog-supporting-line);
  font-family: var(--bj-font-family);
}

.bj-new-arrivals__label {
  /* 안쪽 span — 사이트 공통 span 글자 규칙(12px)을 받지 않게 이름 단계를 그대로 잇는다 */
  color: inherit;
  font: inherit;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bj-new-arrivals__new {
  flex: 0 0 auto;
  min-height: 0;
}

/* (2026-11-10 대표님 웍스비 41052·41054 «새로 나온 디자인 줄에서도 샘플 담기·찜») 사진 아래 한 줄 — 사진 위에는 여전히 아무것도 얹지 않는다(카드 2973).
 *   «+ 샘플 담기» = 목록 카드 샘플 글 단추와 같은 단계(card/doc/product/wedding_catalog_refined.css.php .sample_btn_wrapper .spc_add —
 *     보조 글 크기·줄높이 · 진한 글씨·단추 무게 · 더하기/체크 가면) · 누를 자리 높이 = 목록 단추 높이(--bj-catalog-cta-height-mobile)
 *   하트 = 목록 카드와 같은 하트 그림·크기(그림 칸 = 기본 간격 셋) · 누를 자리 = 목록 단추 높이 네모 */
.bj-new-arrivals__cell {
  position: relative;
}

.bj-new-arrivals__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--bj-space-1);
  margin-top: 0;   /* 누를 자리(44) 가운데 글이라 이름과 사이가 이미 목록 카드 가격 줄 간격만큼 — 위 여백을 더하면 넓어 보였다 */
}

.bj-new-arrivals .bj-new-arrivals__sample {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--bj-space-1) / 2);
  width: auto;
  min-width: 0;
  height: var(--bj-catalog-cta-height-mobile);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--bj-catalog-selected-action-color);
  background: transparent;
  box-shadow: none;
  font-family: var(--bj-font-family);
  font-size: var(--bj-catalog-supporting-size);
  font-weight: var(--bj-catalog-cta-weight);
  line-height: var(--bj-catalog-supporting-line);
  white-space: nowrap;
  cursor: pointer;
}

.bj-new-arrivals .bj-new-arrivals__sample::before {
  display: block;
  flex: 0 0 var(--bj-space-2);
  width: var(--bj-space-2);
  height: var(--bj-space-2);
  margin: 0;
  background-color: currentColor;
  content: "";
  -webkit-mask: var(--bj-catalog-sample-plus-mask) center / var(--bj-space-2) var(--bj-space-2) no-repeat;
  mask: var(--bj-catalog-sample-plus-mask) center / var(--bj-space-2) var(--bj-space-2) no-repeat;
}

.bj-new-arrivals .bj-new-arrivals__sample::after {
  display: none;
  content: none;
}

.bj-new-arrivals .bj-new-arrivals__sample:hover,
.bj-new-arrivals .bj-new-arrivals__sample:focus-visible {
  color: var(--bj-text);
}

.bj-new-arrivals .bj-new-arrivals__sample.on_add_sample,
.bj-new-arrivals .bj-new-arrivals__sample.sample_btn_on {
  color: var(--bj-catalog-selected-action-color);
  font-weight: var(--bj-catalog-cta-weight);
}

.bj-new-arrivals .bj-new-arrivals__sample.on_add_sample::before,
.bj-new-arrivals .bj-new-arrivals__sample.sample_btn_on::before {
  -webkit-mask-image: var(--bj-catalog-sample-check-mask);
  mask-image: var(--bj-catalog-sample-check-mask);
}

.bj-new-arrivals .bj-new-arrivals__sample[data-sample-state="loading"]::before,
.bj-new-arrivals .bj-new-arrivals__sample[data-sample-state="error"]::before {
  opacity: 0;
}

/* 하트 = 아래 목록 카드 하트와 같은 자리·크기 — 사진 오른쪽 위(반 간격 안쪽) · 누를 자리 = 기본 간격 다섯 네모 · 그림 = 간격 셋 */
.bj-new-arrivals .bj-new-arrivals__wish {
  position: absolute;
  top: calc(var(--bj-space-1) / 2);
  right: calc(var(--bj-space-1) / 2);
  z-index: 1;
  width: calc(var(--bj-space-1) * 5);
  height: calc(var(--bj-space-1) * 5);
  margin: 0;
  padding: 0;
  border: 0;
  background: url('/card/img/product_list_heart_off.png') center / calc(var(--bj-space-1) * 3) no-repeat;
  cursor: pointer;
}

.bj-new-arrivals .bj-new-arrivals__wish.active {
  background-image: url('/card/img/product_list_heart_on.png');
}

/* 진행선은 1px 이라 누를 자리를 위아래로 넓힌다(data-rail-seek · PC) */
.bj-new-arrivals__rail[data-rail-seek] .bj-rail__progress {
  position: relative;
  overflow: visible;   /* 넓힌 누를 자리(::before)가 잘리지 않게 */
  cursor: pointer;
  touch-action: none;
}

.bj-new-arrivals__rail[data-rail-seek] .bj-rail__progress::before {
  content: "";
  position: absolute;
  inset: calc(var(--bj-space-1) * -1) 0;
}

.bj-new-arrivals--m {
  padding: 0 var(--wedding-catalog-page-gutter, var(--bj-page-gutter-mobile));
}

/* (2026-11-14 대표님 52752) 폰 목록 중간 배너 칸(common/catalog_list_banner.php 가 놓음) — 격자 한 줄 전체 · 좌우 여백은 격자 것 · 위아래 = 줄 사이 배너 간격 */
.bj-new-arrivals[data-catalog-strip] {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0;
  margin: var(--bj-space-1) 0 var(--bj-space-3);
}

@media (max-width: 767px) {
  .bj-new-arrivals {
    margin-top: var(--bj-space-2);
    margin-bottom: var(--bj-space-2);
  }

  .bj-new-arrivals__list {
    gap: var(--bj-space-1);
  }

  .bj-new-arrivals__cell {
    flex-basis: calc((100% - 2 * var(--bj-space-1)) / 2.4);
  }
}

/* (2026-11-22 대표님 «새로 나온 디자인에도 부수 가격 넣자» · 11f000c3) 사진 칸 = 배지 기준(목록 카드 .weddingCatalogMedia 와 같은 배지 자리) ·
 *   이름 아래 값 줄 = 목록 카드 값 칸과 같은 토큰(값 글 크기 --bj-catalog-price-size: PC 15 · 폰 14 · 보조 글 색 · 값 굵기 · 줄 높이 · 이름과 사이 = 기본 간격의 1/4).
 *   공용 bojagi-design-system.css 의 이름 글 규칙(굵기 500 !important)을 이겨야 해 !important. */
.bj-new-arrivals__media {
  display: block;
  position: relative;
}
html body .bj-new-arrivals .bj-new-arrivals__item span.bj-new-arrivals__price {
  display: block;
  margin-top: calc(var(--bj-space-1) / 4) !important;
  color: var(--bj-catalog-supporting-color) !important;
  font-size: var(--bj-catalog-price-size) !important;
  font-weight: var(--bj-catalog-price-weight) !important;
  line-height: var(--bj-catalog-supporting-line) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html body .bj-new-arrivals .bj-new-arrivals__item span.bj-new-arrivals__price span {
  display: inline;
  margin: 0 !important;
  font: inherit !important;
  color: inherit !important;
  letter-spacing: inherit;
}
/* (2026-11-23 대표님 «새로 나온 디자인하고 밑에 가격이 왜 달라 · 부수까지 진해지잖아» 네 번째) 부수 = 목록 카드 부수 고르기(.product_list_qty_select)와 같은 꼴:
 *   보통 굵기 · 회색(--bj-muted). 값(원~)만 진하게 남는다. 위 «span 은 줄 글꼴을 그대로 받음» 규칙이 부수까지 진하게 만들었다. */
html body .bj-new-arrivals .bj-new-arrivals__item span.bj-new-arrivals__price span.product_list_qty_state {
  font-weight: 400 !important;
  color: var(--bj-muted, #66635e) !important;
  margin-right: 8px !important; /* 띄어쓰기 4 + 8 = 목록 카드 부수→값 사이 12 */
}
/* (2026-11-23 대표님 «셀프 줄이랑 답례품 부수도 회색으로») 목록 사이 줄(셀프·함께·답례품 · common/catalog_list_modules.php)의 값 줄은 글 한 줄이라
 *   «50부»·«· 1개부터»까지 값처럼 진했다. 그리기가 값 숫자+단위만 .bj-new-arrivals__amount 로 싸고 줄에 --split 을 붙인다 —
 *   줄 = 보조 회색 보통 굵기(목록 카드 부수와 같음) · 값만 목록 카드 값과 같은 색·굵기 토큰. */
html body .bj-new-arrivals .bj-new-arrivals__item span.bj-new-arrivals__price.bj-new-arrivals__price--split {
  font-weight: 400 !important;
  color: var(--bj-muted, #66635e) !important;
}
html body .bj-new-arrivals .bj-new-arrivals__item span.bj-new-arrivals__price.bj-new-arrivals__price--split span.bj-new-arrivals__amount {
  font-weight: var(--bj-catalog-price-weight) !important;
  color: var(--bj-catalog-supporting-color) !important;
}
/* (2026-11-23 같은 부품 값 쪽) 값 = 검정 500(#47218 목록 카드 값 = --bj-type-control-weight · :root --bj-catalog-price-weight 는 400·#556168 이라 식권 줄에선 안 씀 · 실화면 15번 그림으로 확인한 값) — 청첩장 목록은 이미 그렇고(줄 색이 검정), 식권 «후가공 식권» 줄처럼 줄 색이 보조 회색인 목록에서도 값만은 같게 */
html body .bj-new-arrivals .bj-new-arrivals__item span.bj-new-arrivals__price span.wedding_catalog_price_value {
  font-weight: var(--bj-type-control-weight, 500) !important;
  color: var(--bj-ink, #181817) !important;
}
