/* Shared product identity: one title row; the photograph carries no status text — one status label
   follows the sample action on the third information row (see .weddingCatalogStatus). */
.weddingCatalogCardIdentity.card_code_blocks,
.pl_cardCode_block .weddingCatalogCardIdentity.pl_cardCode {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 0;
    text-align: left;
}
.weddingCatalogCardIdentity.card_code_blocks .pl_prod_name,
.pl_cardCode_block .weddingCatalogCardIdentity .pl_pcode_text {
    float: none;
    display: block;
    flex: none;
    width: 100%;
    height: auto;
    min-height: var(--bj-catalog-title-line);
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
}
.weddingCatalogCardIdentity .wedding_catalog_product_name_link {
    display: block;
    height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--bj-catalog-title-color);
    font-family: var(--bj-font-family);
    font-size: var(--bj-catalog-title-size);
    font-weight: var(--bj-catalog-title-weight);
    line-height: var(--bj-catalog-supporting-line);
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-decoration: none;
}
/* A title occupies the same line box on self-edit and set cards. Flex prevents the
   inline arrow from adding a baseline strut below the self-edit title. */
.cardTemplateEntry[data-card-template-entry="wedding"] .cardTemplateEntry__caption strong {
    display: flex;
    align-items: center;
    height: var(--bj-catalog-title-line);
}
@media (min-width: 768px) {
    .cardTemplateEntry--pc[data-card-template-entry="wedding"] .cardTemplateEntry__caption {
        padding-bottom: 4px;
    }
}
/* Every slide uses the complete portrait viewport; no label footer. */
.weddingCatalogMedia.pl_mark_wrapper_area,
:where(.product_list_gb, .product_list_pb) .card_img_wrapper.weddingCatalogMedia {
    aspect-ratio: 6 / 7;
    display: block;
    position: relative;
    background: #f1f1f1;
}
.weddingCatalogMedia > .pl_mark_wrapper,
:where(.product_list_gb, .product_list_pb) .card_img_wrapper.weddingCatalogMedia > a {
    height: 100%;
    min-height: 0;
}
:where(.product_list_gb, .product_list_pb) .weddingCatalogMedia .product_list_card_img { object-fit: contain; }
/* 위 contain 은 #f1f1f1 무대를 구운 스튜디오 사진 전제다. 배경까지 찍은 연출 사진(프리미엄 OANNA 목록의
   /product/oanna/<코드>.jpg, 4:5)은 칸을 채운다 — contain 이면 6:7 칸 좌우에 회색 띠(PC 10.7px)가 남았다(사장님 2026-09-26).
   표시(weddingCatalogMedia--photo)는 그 사진을 싣는 분기가 단다(card/doc/product/product_list_card.php). */
:where(.product_list_gb, .product_list_pb) .weddingCatalogMedia--photo .product_list_card_img { object-fit: cover; }
/* 상태(NEW·BEST·SALE 중 하나)는 사진 위가 아니라 글자 영역 셋째 줄(샘플 담기 줄)에 — 정본 COPY.COLLECTION
   «상품명·가격·배지 순서» · Caption 역할(목록 보조 13/20). 2026-09-26 사장님 «사진 왼쪽 위 SALE·BEST 가 눈에 너무 띄고
   폰은 더 복잡하다». 정보 줄 수(이름 24 · 가격 28 · 행동 40)와 이름 폭은 그대로(09-25 «넷째 줄·큰 배지» 물림).
   2026-09-27 사장님 «BEST 가 오른쪽 카드 것인지 왼쪽 카드 것인지 구분이 안 간다» — 줄 오른쪽 끝에 밀어 두면 두 칸 목록에서
   옆 카드의 「+ 샘플 담기」와 맞붙어 어느 카드 것인지 모른다. 그래서 끝으로 밀지 않고 자기 카드의 샘플 담기 바로 뒤(PC 12px,
   폰 10px)에 붙인다 — 카드 안 글자가 모두 왼쪽에서 시작하니 상태도 자기 카드 쪽에 선다.
   줄 높이를 채우고 아래 여백 8px 를 샘플 담기 단추(목록 PC 32 · 폰 40px, 아래 여백 8px)와 같게 — 두 글자가 한 높이에 선다.
   (글자 기준선 맞춤은 단추 앞 +·✓ 아이콘이 기준선을 아래로 끌어 4px 어긋났다.) 모음 화면(BEST·NEW)은 상태를 싣지 않는다. */
.weddingCatalogStatus {
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    /* (2026-11-05 대표님 글 33236) «샘플 담기 · 풀케어 · BEST» — 샘플 뒤 칸과 표시 사이 칸을 같게, 칸 가운데 점 */
    --bj-catalog-status-gap: 12px;
    column-gap: var(--bj-catalog-status-gap);
    margin: 0 0 0 var(--bj-catalog-status-gap);
    padding: 0 0 8px;
    pointer-events: none;
    /* 왼쪽 밖은 첫 줄 높이만 보인다 — 첫 표시의 점은 남고, 좁은 폰에서 둘째 줄 맨 앞에 온 표시의 점은 잘린다. */
    clip-path: polygon(
        -20px -20px,
        calc(100% + 20px) -20px,
        calc(100% + 20px) 200%,
        0 200%,
        0 calc(var(--bj-catalog-supporting-line, 20px) + var(--bj-space-1, 8px)),
        -20px calc(var(--bj-catalog-supporting-line, 20px) + var(--bj-space-1, 8px))
    );
}
.weddingCatalogStatus .wedding_catalog_badge::before {
    content: "·";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--bj-catalog-status-gap) / -2);
    display: flex;
    align-items: center;
    transform: translateX(-50%);
}
/* (2026-11-16 대표님 56161 «베스트만 앞에 점 찍히고 베스트만 떨렁») 꼬리표가 줄 첫 칸이면(앞에 샘플 단추가 없는 화면 —
   서버가 bj_sample_available 로 단추를 싣지 않는다) 앞 칸·앞 점이 없다. 점은 «항목 사이» 표시라 앞 항목이 있을 때만. */
.weddingCatalogStatus:first-child {
    margin-left: 0;
}
.weddingCatalogStatus:first-child > .wedding_catalog_badge:first-child::before {
    content: none;
}
/* (2026-11-16 디자인 팀장 판정 · #40010) 샘플 단추 없이 꼬리표만 남은 줄은 회색 글 한 줄이 아니라 «상태 배지» — 자리는 그대로(값 줄 아래 · 간격 8),
   돌색 바탕 알약 · 잉크 글 12px/600 · 자간 0.04em · 안 여백 2px 8px · 높이 22 · 테두리·그림자 없음 · 둘이면 6 간격 나란히(점 없음).
   조건은 구조 하나(꼬리표 묶음이 줄 첫 칸 = 앞에 샘플·주문 단추가 없음) — 한국어 «+ 샘플 담기 · BEST» 줄은 단추가 앞에 있어 그대로다.
   공용 목록 글 규칙(bojagi-design-system.css · ID 가 든 !important)보다 앞서도록 :not(#…) 로 무게를 맞춘다. */
html body:not(#bj-status-chip) .weddingCatalogStatus:first-child {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    column-gap: 6px !important;
    row-gap: 6px !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clip-path: none !important;
}
html body:not(#bj-status-chip) :is(#slide_pl, .product_list_gb, .product_list_pb, .weddingCatalogPage, .pl_cardinfo_wrapper_inner, .sample_btn_wrapper) .weddingCatalogStatus:first-child > .wedding_catalog_badge {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    margin: 0 !important;
    padding: 2px 8px !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    background: var(--bj-stone, #f1efe9) !important;
    color: var(--bj-ink, #181817) !important;
    font-size: var(--bj-t4-size) !important;
    font-weight: var(--bj-w-body) !important;
    line-height: var(--bj-t4-line) !important;
    letter-spacing: 0.04em !important;
}
html body:not(#bj-status-chip) .weddingCatalogStatus:first-child > .wedding_catalog_badge::before {
    content: none !important;
}
/* PC: 배지 줄(li)은 고정 높이 24 대신 배지 높이 · 값 줄과 8 */
html body:not(#bj-status-chip) :is(#slide_pl, .product_list_gb, .product_list_pb, .weddingCatalogPage) .sample_btn_wrapper:has(> .weddingCatalogStatus:first-child) {
    height: auto !important;
    min-height: 0 !important;
    margin-top: 7px !important;   /* 값 줄 바닥 → 배지 윗변 8(값 줄 글 상자 아래 1 포함) */
    padding: 0 !important;
}
/* 폰: 셋째 줄 칸이 배지 높이만큼 · 값 줄과 8 */
html body:not(#bj-status-chip) #slide_pl .pl_cardinfo_wrapper_inner:has(> .weddingCatalogLanguageActions > .weddingCatalogStatus:first-child),
html body:not(#bj-status-chip) .pl_cardinfo_wrapper_inner:has(> .weddingCatalogLanguageActions > .weddingCatalogStatus:first-child) {
    grid-template-rows: 20px minmax(22px, auto) auto !important;
}
html body:not(#bj-status-chip) .weddingCatalogLanguageActions:has(> .weddingCatalogStatus:first-child) {
    align-items: flex-start !important;
    padding-top: 8px !important;
}
/* 폰: 상태가 있는 카드만 셋째 줄을 [샘플][상태] 두 칸으로 나눈다(이름·가격 줄은 두 칸을 다 써서 폭 그대로).
   첫 칸은 단추 폭만큼(fit-content), 상태는 그 뒤 10px — 320px 화면 카드(146px)에서도 «✓ 담김 · 신청하기»(102px)+BEST 가 한 줄. */
.pl_cardinfo_wrapper_inner:has(> .weddingCatalogStatus) {
    grid-template-columns: fit-content(100%) minmax(0, 1fr);
    grid-template-areas:
        "name name"
        "price price"
        "sample status";
}
.pl_cardinfo_wrapper_inner > .weddingCatalogStatus {
    --bj-catalog-status-gap: 10px;
    grid-area: status;
    justify-self: start;
    align-self: stretch;
    align-content: flex-start;
    /* (2026-11-04 대표님 29138) 좁은 폰(320 · 360 에서 샘플을 담은 뒤)은 상태 둘이 칸을 넘는다 — 옆 카드로 번지지 않게 칸 안에서 줄을 바꾼다 */
    flex-wrap: wrap;
    max-width: calc(100% - 10px);
}
/* (2026-11-05) 상태가 두 줄로 내려가도(320 · 360 에서 샘플을 담은 뒤) 첫 줄은 샘플 글과 같은 높이 — 첫 표시가 단추 글 칸(셋째 줄에서 아래 여백을 뺀 높이)을 채우고, 다음 줄은 그 바로 아래.
   종전엔 두 줄이 그 칸에 눌려 첫 줄이 6.5px 위로 떴다. */
.pl_cardinfo_wrapper_inner > .weddingCatalogStatus > .wedding_catalog_badge:first-child {
    min-height: 100%;
}
/* ★ (2026-11-12 대표님 46763 «베스트 때문에 배열이 깨져» · 폰 목록) 샘플을 담으면 셋째 줄 글이 «✓ 담김 · 신청하기»(약 102px)로 길어져
   [샘플][풀케어 · BEST] 가 한 줄(카드 168~175px)에 안 들어간다 — 상태 칸 안에서 BEST 만 둘째 줄로 꺾여 셋째 줄(40px 고정) 밖, 카드 아래 빈 곳에
   홀로 떨어졌다(다음 카드 것처럼 보임). 담긴 카드와 좁은 폰(카드가 «+ 샘플 담기 · 풀케어 · BEST» 를 못 담는 375px 미만)은 상태를 넷째 줄 맨 앞에
   한 덩어리로 둔다 — 카드 글이 모두 왼쪽에서 시작하는 규칙(09-27) 그대로 · 자기 카드 안. 담기 전 넓은 폰은 종전 그대로(한 줄).
   (11-12 11:1x 대표님 46904 사진 «우리의 시작») 표시가 하나(«풀케어»만)인 담긴 카드는 한 줄에 들어간다(102+10+36 < 168) — 넷째 줄로 내리지 않는다.
   넷째 줄은 표시가 둘 이상일 때만(«풀케어 · BEST» 가 안 들어갈 때).
   끄개: <html data-bj-status-row="off"> */
html:not([data-bj-status-row="off"]) .pl_cardinfo_wrapper_inner:has(> .weddingCatalogStatus > .wedding_catalog_badge + .wedding_catalog_badge):has(.sample_pick_btn.sample_btn_on) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 24px minmax(28px, auto) 40px auto;
    grid-template-areas:
        "name"
        "price"
        "sample"
        "status";
}
html:not([data-bj-status-row="off"]) .pl_cardinfo_wrapper_inner:has(> .weddingCatalogStatus > .wedding_catalog_badge + .wedding_catalog_badge):has(.sample_pick_btn.sample_btn_on) > .weddingCatalogStatus {
    margin-left: 0;
    max-width: 100%;
    margin-top: -4px;
}
html:not([data-bj-status-row="off"]) .pl_cardinfo_wrapper_inner:has(> .weddingCatalogStatus > .wedding_catalog_badge + .wedding_catalog_badge):has(.sample_pick_btn.sample_btn_on) > .weddingCatalogStatus > .wedding_catalog_badge:first-child::before {
    content: none;
}
@media (max-width: 374px) {
    html:not([data-bj-status-row="off"]) .pl_cardinfo_wrapper_inner:has(> .weddingCatalogStatus > .wedding_catalog_badge + .wedding_catalog_badge) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 24px minmax(28px, auto) 40px auto;
        grid-template-areas:
            "name"
            "price"
            "sample"
            "status";
    }
    html:not([data-bj-status-row="off"]) .pl_cardinfo_wrapper_inner:has(> .weddingCatalogStatus > .wedding_catalog_badge + .wedding_catalog_badge) > .weddingCatalogStatus {
        margin-left: 0;
        max-width: 100%;
        margin-top: -4px;
    }
    html:not([data-bj-status-row="off"]) .pl_cardinfo_wrapper_inner:has(> .weddingCatalogStatus > .wedding_catalog_badge + .wedding_catalog_badge) > .weddingCatalogStatus > .wedding_catalog_badge:first-child::before {
        content: none;
    }
}
.weddingCatalogMedia .zzim_btn {
    top: 4px;
    bottom: auto;
    right: 4px;
    width: 40px;
    height: 40px;
    background-size: 24px auto;
    transform: none;
}
/* (2026-11-19 반장A · 김 부장 사용성 전수 U4~U6 · 51190308) 폰 누름 칸 최소 44 — 보이는 크기는 그대로 두고 누름 영역만 넓힌다.
   목록 사진 위 찜 40(하트 24 가운데) → 둘레 2px 투명 누름 영역으로 44. 찜은 사진 칸 안 absolute 라 ::after 가 그 둘레에 붙는다. */
.pl_mark_wrapper_area > .zzim_btn::after, .weddingCatalogMedia .zzim_btn::after { content: ''; position: absolute; inset: -2px; }
.weddingCatalogStatus .wedding_catalog_badge {
    position: relative;
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    width: auto;
    min-height: 20px;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--bj-muted);
    background: none;
    font-family: var(--bj-font-family);
    font-size: var(--bj-catalog-supporting-size);
    font-weight: var(--bj-w-body);   /* 글자가 카드보다 물러나게(대표님 카드 3093) */
    line-height: var(--bj-catalog-supporting-line);
    letter-spacing: 0;
    white-space: nowrap;
}

/* The invitation template entry shares the catalog media frame. */
.cardTemplateEntry[data-card-template-entry="wedding"] .cardTemplateEntry__link {
    aspect-ratio: 6 / 7;
}

.weddingCatalogMedia .weddingCatalogThumbnailGallery__progress {
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
}
