.companionCatalog,
.companionCatalog *,
.companionCatalogIdentity,
.companionCatalogNav,
.companionCatalogNav * {
    box-sizing: border-box;
    font-family: var(--bj-font-family, "Pretendard", sans-serif);
}

.companionCatalogIdentity.weddingCatalogIdentity--pc {
    width: 100%;
    margin: 0 auto;
    padding-top: 48px;
}

.companionCatalogIdentity.weddingCatalogIdentity--mobile {
    padding: 28px 0 2px;
}

.companionCatalogIdentity.weddingCatalogIdentity--mobile .weddingCatalogIdentity__title {
    font-size: 24px;
    line-height: 34px;
}

.companionCatalogIdentity.weddingCatalogIdentity--mobile .weddingCatalogIdentity__description {
    margin-top: 7px;
    color: var(--bj-muted, #66635e);
    font-size: 14px;
    line-height: 22px;
}

.companionCatalogNav .weddingCatalogContextNav__rail {
    display: block !important;
    width: max-content !important;
    min-width: 100%;
}

.companionCatalogNav .weddingCatalogContextNav__group--styles,
.companionCatalogNav .weddingCatalogContextNav__styles {
    width: max-content !important;
    min-width: 100%;
}

.companionCatalogNav .weddingCatalogContextNav__styles {
    display: grid !important;
    grid-template-columns: repeat(var(--companion-nav-count), minmax(82px, 1fr)) !important;
}

.companionCatalogNav__icon {
    display: block;
    width: var(--bj-catalog-category-icon, 24px);
    height: var(--bj-catalog-category-icon, 24px);
    object-fit: contain;
    opacity: 1;
}

.companionFinishingNav {
    width: 100%;
    padding: 0;
    border-bottom: 1px solid var(--bj-line, #d9dfe1);
}

.weddingCatalogContextNavShell--pc.weddingCatalogContextNavShell--with-submenu {
    height: 152px;
}

.companionFinishingNav__tabs {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 34px;
}

.companionFinishingNav__item {
    position: relative;
    display: inline-flex;
    height: 48px;
    align-items: center;
    padding: 0 2px;
    color: var(--bj-muted, #66635e);
    font-size: var(--bj-catalog-category-label-pc, 15px);
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
    text-decoration: none;
    transition: color 160ms ease;
}

.companionFinishingNav__item:hover,
.companionFinishingNav__item:focus-visible {
    color: var(--bj-brand-navy, #132b34);
}

.companionFinishingNav__item:focus-visible {
    outline: 2px solid var(--bj-brand-navy, #132b34);
    outline-offset: -2px;
}

.companionFinishingNav__item.is-current {
    color: var(--bj-brand-navy, #132b34);
    font-weight: 650;
}

.companionFinishingNav__item.is-current::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--bj-brand-navy, #132b34);
    content: "";
}

/* QA2909: PC 텍스트 하위만 본문 시작선·기존 space-2 묶음으로. 항목/선택·M·고정 clone은 그대로. */
@media (min-width: 768px) {
    .catalogShell__category .companionFinishingNav--pc:not(.ui-fixed):not(.is-stuck) > .companionFinishingNav__tabs,
    .dgal--selflist.pdl--subtext .companionFinishingNav--pc:not(.ui-fixed):not(.is-stuck) > .companionFinishingNav__tabs,
    .dgal--selflist.pdl--ncw .companionFinishingNav--pc:not(.ui-fixed):not(.is-stuck) > .companionFinishingNav__tabs {
        justify-content: flex-start;
        gap: var(--bj-space-2);
        overflow-x: auto;
        scrollbar-width: none;
        /* 기존 하위 border-bottom 1px에 걸친 선택선 여유. 행 높이 53px는 상쇄해 유지한다. */
        padding-bottom: 1px;
        margin-bottom: -1px;
        /* scrollWidth의 정수 반올림으로 마지막 항목의 소수 픽셀을 잃지 않을 최소 끝 여유. */
        padding-inline-end: 1px;
    }
    /* (2026-11-20 명함 팀장 ② 닫음 실측) 줄이 실제로 넘칠 때(공용 가운데 판정 common/catalog_context_nav_center.php 가 단 is-rail-overflow ·
       PC 명함 업종 en·ja 1280) 끝까지 민 마지막 칩이 줄 끝 자르는 선에 1px 로 붙었다 — 넘칠 때만 줄 끝 여백 = 공용 변수(청첩장 탭 줄과 같은 값).
       안 넘치는 줄(ko)은 위 1px 그대로라 모양이 바뀌지 않는다. */
    .catalogShell__category .companionFinishingNav--pc:not(.ui-fixed):not(.is-stuck) > .companionFinishingNav__tabs.is-rail-overflow,
    .dgal--selflist.pdl--subtext .companionFinishingNav--pc:not(.ui-fixed):not(.is-stuck) > .companionFinishingNav__tabs.is-rail-overflow,
    .dgal--selflist.pdl--ncw .companionFinishingNav--pc:not(.ui-fixed):not(.is-stuck) > .companionFinishingNav__tabs.is-rail-overflow {
        padding-inline-end: var(--bj-rail-end-gap, 16px);
    }
}

.companionCatalog {
    --catalog-shell-width: 1064px;
    --catalog-shell-margin: 0 auto;
    --catalog-shell-padding: 0 0 84px;
    --catalog-shell-grid-gap: 42px 20px;
    color: var(--bj-text, #17232b);
    background: #fff;
}

.companionCatalog__toolbar {
    margin: 0 0 20px;
}

.companionCatalog__toolbar > .catalogControls { width: 100%; }
.companionCatalogCard { position: relative; }
.companionCatalogCard__media > .companionCatalogCard__wishlist {
    /* (2026-11-24) 자리·크기는 토큰 — 목록 갈래가 토큰만 바꾼다(연하장 = 청첩장 자리 · 아래 .companionCatalog--new_year). 값 없으면 종전 값 그대로. */
    z-index: 3;
    top: var(--catalog-wish-top, auto) !important;
    right: var(--catalog-wish-right, 15px) !important;
    bottom: var(--catalog-wish-bottom, 10px) !important;
    width: var(--catalog-wish-size, 30px) !important;
    height: var(--catalog-wish-size, 30px) !important;
    border-radius: 0;
    background-color: transparent !important;
    background-position: center !important;
    background-size: var(--catalog-wish-icon, cover) !important;
    box-shadow: none;
}

.companionCatalog[data-catalog-density="large"] .companionCatalog__grid {
    --catalog-shell-grid-columns: 3;
}

.companionCatalog[data-catalog-density="small"] .companionCatalog__grid {
    --catalog-shell-grid-columns: 4;
}

.companionCatalog--video[data-catalog-density="large"] .companionCatalog__grid {
    --catalog-shell-grid-columns: 2;
}

.companionCatalog--video[data-catalog-density="small"] .companionCatalog__grid {
    --catalog-shell-grid-columns: 3;
}

.catalogShell--print.companionCatalog[data-catalog-mode="overall"]
> .catalogShell__results {
    padding-top: 42px;
}

.catalogShell--print.companionCatalog[data-catalog-mode="overall"]
> .catalogShell__toolbar + .catalogShell__results {
    padding-top: 0;
}

.catalogShell--print.companionCatalog[data-catalog-mode="category"]
> .catalogShell__results {
    padding-top: 24px;
}

.catalogShell--print.companionCatalog[data-catalog-mode="category"]
> .catalogShell__toolbar + .catalogShell__results {
    padding-top: 0;
}

.companionCatalog__count {
    margin: 0;
    color: var(--bj-muted, #66635e);
    font-size: 13px;
    line-height: 20px;
}

.companionCatalog__count strong {
    color: var(--bj-text, #17232b);
    font: inherit;
    font-weight: 600;
}

.companionCatalog__count span {
    margin-left: 5px;
}

.companionCatalog__sort:not(.catalogControls__sort) {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bj-muted, #66635e);
    font-size: 13px;
}

.companionCatalog__sort:not(.catalogControls__sort) select {
    min-width: 126px;
    height: 38px;
    padding: 0 30px 0 12px;
    border: 1px solid #d8dde1;
    border-radius: 5px;
    color: var(--bj-text, #17232b);
    background: #fff;
    font-size: 14px;
}

.companionCatalog__section + .companionCatalog__section {
    margin-top: 64px;
}

/* (2026-11-11 고르기 3419) 나란히 묶음 — 작은 구역 둘 이상이 한 줄(PC 4칸)에 제목 단 채 나란히(companion_catalog_renderer.php).
   칸 너비·사이는 보통 줄(4칸 · 사이 20px)과 같아 위아래 줄과 칸이 맞는다. 768px 아래에서는 그냥 위아래로 쌓인다. */
.companionCatalog__section + .companionCatalog__sectionRow,
.companionCatalog__sectionRow + .companionCatalog__section,
.companionCatalog__sectionRow + .companionCatalog__sectionRow {
    margin-top: 64px;
}

@media (min-width: 768px) {
    .companionCatalog__sectionRow {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 20px;
        align-items: start;
    }

    .companionCatalog__sectionRow > .companionCatalog__section + .companionCatalog__section {
        margin-top: 0;
    }

    .companionCatalog__sectionRow > .companionCatalog__section--span-1 { grid-column: span 1; }
    .companionCatalog__sectionRow > .companionCatalog__section--span-2 { grid-column: span 2; }
    .companionCatalog__sectionRow > .companionCatalog__section--span-3 { grid-column: span 3; }
    .companionCatalog__sectionRow > .companionCatalog__section--span-4 { grid-column: span 4; }

    .catalogShell--print.companionCatalog[data-catalog-mode="overall"]
    .companionCatalog__sectionRow > .companionCatalog__section--span-1 > .companionCatalog__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .catalogShell--print.companionCatalog[data-catalog-mode="overall"]
    .companionCatalog__sectionRow > .companionCatalog__section--span-2 > .companionCatalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalogShell--print.companionCatalog[data-catalog-mode="overall"]
    .companionCatalog__sectionRow > .companionCatalog__section--span-3 > .companionCatalog__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .catalogShell--print.companionCatalog[data-catalog-mode="overall"]
    .companionCatalog__sectionRow > .companionCatalog__section--span-4 > .companionCatalog__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.companionCatalog__section,
.companionCatalogCard {
    scroll-margin-top: 132px;
}

.companionCatalog__sectionHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.companionCatalog__sectionHeader h2 {
    margin: 0;
    color: var(--bj-ink, #181817);
    font-size: var(--bj-type-subsection);
    font-weight: var(--bj-type-subsection-weight);
    line-height: var(--bj-type-subsection-line);
    letter-spacing: -.025em;
}

.companionCatalog__sectionHeader a {
    padding: 5px 0;
    color: var(--bj-muted, #66635e);
    font-size: 14px;
    text-decoration: none;
}

.companionCatalog__sectionHeader a::after {
    margin-left: 5px;
    content: "›";
}

.companionCatalog__sectionMore {
    box-sizing: border-box;
    display: inline-flex;
    min-width: 112px;
    min-height: 40px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 14px !important;
    border: 1px solid var(--bj-line, #d9dfe1);
    border-radius: var(--bj-catalog-media-radius, 8px);
    color: var(--bj-brand-navy, #132b34) !important;
    background: #fff;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.companionCatalog__sectionMore::after {
    content: none !important;
}

.companionCatalog__sectionMore strong {
    font: inherit;
}

.companionCatalog__sectionMore span {
    font-size: 14px;
    line-height: 1;
}

@media (min-width: 768px) {
    .catalogShell--print.companionCatalog[data-catalog-mode="overall"]
    .companionCatalog__grid--count-1 {
        grid-template-columns: minmax(0, 235px);
        justify-content: start;
    }

    .catalogShell--print.companionCatalog[data-catalog-mode="overall"]
    .companionCatalog__grid--count-2 {
        grid-template-columns: repeat(2, minmax(0, 235px));
        justify-content: start;
    }

    .catalogShell--print.companionCatalog[data-catalog-mode="overall"]
    .companionCatalog__grid--count-3 {
        grid-template-columns: repeat(3, minmax(0, 235px));
        justify-content: start;
    }

    .catalogShell--print.companionCatalog[data-catalog-mode="overall"][data-catalog-density="large"]
    .companionCatalog__grid--count-1 {
        grid-template-columns: minmax(0, 320px);
    }

    .catalogShell--print.companionCatalog[data-catalog-mode="overall"][data-catalog-density="large"]
    .companionCatalog__grid--count-2 {
        grid-template-columns: repeat(2, minmax(0, 320px));
    }

    .catalogShell--print.companionCatalog[data-catalog-mode="overall"][data-catalog-density="large"]
    .companionCatalog__grid--count-3 {
        grid-template-columns: repeat(3, minmax(0, 320px));
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .catalogShell--print.companionCatalog[data-catalog-mode="overall"][data-catalog-density="small"]
    .companionCatalog__grid--count-1 {
        grid-template-columns: minmax(0, calc((100% - 60px) / 4));
    }

    .catalogShell--print.companionCatalog[data-catalog-mode="overall"][data-catalog-density="small"]
    .companionCatalog__grid--count-2 {
        grid-template-columns: repeat(2, minmax(0, calc((100% - 60px) / 4)));
    }

    .catalogShell--print.companionCatalog[data-catalog-mode="overall"][data-catalog-density="small"]
    .companionCatalog__grid--count-3 {
        grid-template-columns: repeat(3, minmax(0, calc((100% - 60px) / 4)));
    }

    .catalogShell--print.companionCatalog[data-catalog-mode="overall"][data-catalog-density="large"]
    .companionCatalog__grid--count-1 {
        grid-template-columns: minmax(0, calc((100% - 40px) / 3));
    }

    .catalogShell--print.companionCatalog[data-catalog-mode="overall"][data-catalog-density="large"]
    .companionCatalog__grid--count-2 {
        grid-template-columns: repeat(2, minmax(0, calc((100% - 40px) / 3)));
    }

    .catalogShell--print.companionCatalog[data-catalog-mode="overall"][data-catalog-density="large"]
    .companionCatalog__grid--count-3 {
        grid-template-columns: repeat(3, minmax(0, calc((100% - 40px) / 3)));
    }
}

@media (hover: hover) {
    .companionCatalog__sectionMore:hover {
        border-color: #88949a;
        background: #fafafa;
    }
}

.companionCatalog__grid {
    --catalog-shell-grid-gap: 42px 20px;
}

.companionCatalog__gridItem {
    min-width: 0;
}

.companionCatalogCard {
    display: flex;
    width: 100%;
    min-height: 100%;
    flex-direction: column;
    margin: 0 !important;
}

.companionCatalogCard > *,
.companionCatalogCard__body,
.companionCatalogCard__body > * {
    width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.companionCatalogCard__media {
    position: relative;
    display: grid;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 247 / 275;
    margin: 0 !important;
    place-items: center;
    border-radius: 8px;
    background: var(--bj-template-media-surface); /* (2026-11-24 대표님 #F1F1F1) 종전 #f4f4f3 */
    text-decoration: none;
}

/* 연하장 낱장(2026-10-25 대표님 14605)도 오려 낸 투명 판(_a_2.png)을 같은 #f1f1f1 무대에 얹는다 — 셀프 연하장 칸·청첩장과 같은 바탕. 촬영형 세트(--photo)는 빼고. */
.companionCatalog--new_year .companionCatalogCard--print .companionCatalogCard__media,
.companionCatalog--invitation .companionCatalogCard__media,
.companionCatalog--thanks .companionCatalogCard__media {
    background: #f1f1f1;
    box-shadow: inset 0 0 0 1px rgba(24, 39, 47, 0.035);
}

/*
 * The wedding background compositor places the 460x520 transparent product
 * layer at roughly 430x488 inside its 470x523 #F1F1F1 stage. Preserve that
 * exact visible breathing room when companion lists composite the PNG layer
 * in the browser.
 */
.companionCatalog--new_year .companionCatalogCard--print .companionCatalogCard__image,
.companionCatalog--invitation .companionCatalogCard__image,
.companionCatalog--thanks .companionCatalogCard__image {
    width: 91.5%;
    height: 93.3%;
}

/* (2026-11-10) 셀프 전용 카드 — 바탕 없는 카드 그림을 회색 칸 가운데 카드 모양으로(셀프 목록 card/css/self-catalog.css .slf-media img 와 같은 값) */
/* (2026-11-17 박지현 «가로 초대장 목록 흰 띠») 높이를 69% 로 못박으면 가로 카드는 너비가 86% 에 먼저 걸려
   흰 종이 칸이 그림보다 위아래로 커진다 — 높이는 «최대» 69% 로 두어 칸이 그림 비율대로 준다(세로 카드는 그대로 69%). */
/* (2026-11-24 박지현 1092 «연하장 크리스마스에 붙은 카드·엽서 그림이 너무 큼» · 카드 5133) 연하장 목록의 셀프 전용 칸도 같은 꼴 —
   위 «연하장 낱장 판»(91.5%·93.3% · 세 클래스)이 두 클래스인 이 규칙을 이겨 바탕 없는 카드 그림이 칸을 꽉 채웠다. 같은 세기·뒤 자리로 이 값을 쓴다. */
/* (main 짝) 셀프 합치기(b2f6f570)는 main 에 없어 그림 꼴 두 덩어리만 테스트와 같은 글자로 — main 에서 이 클래스는 image_form 'bare_card' 칸에만 붙는다. */
.companionCatalogCard--selfOnly .companionCatalogCard__image,
.companionCatalog--new_year .companionCatalogCard--selfOnly .companionCatalogCard__image {
    width: auto;
    height: auto;
    max-height: 69%;
    max-width: 86%;
    object-fit: contain;
    background: #fff;
    box-shadow: 2px 3px 8px rgba(0, 0, 0, .16), 8px 12px 24px rgba(0, 0, 0, .16);
}

/* (2026-11-11 박지현 1:1 227) 위 69% 는 회색 칸 높이 기준이어야 한다 — 칸(그리드)의 줄 높이가 그림 원래 크기로 잡혀
   칸보다 커지면(PC 262 칸에 줄 301) 69% 가 그 큰 줄 기준이 되고 줄 가운데에 놓여 칸 아래로 처졌다(위 47·아래 7).
   두 겹 그리드의 줄을 칸 높이로 묶어 셀프 목록(.slf-media)처럼 칸 가운데·칸 높이의 69% 가 되게 한다. */
.companionCatalogCard--selfOnly .companionCatalogCard__media,
.companionCatalogCard--selfOnly .companionCatalogCard__mediaLink {
    grid-template-rows: minmax(0, 1fr);
}

/* 촬영형 이미지는 다른 사진형 목록과 같이 공통 미디어 칸을 채웁니다. */
/* 상품 전체가 담긴 가로 촬영 원본(998 x 626)의 비율을 유지합니다. */
.companionCatalogCard--photo .companionCatalogCard__media {
    aspect-ratio: 499 / 313;
}

.companionCatalogCard--photo .companionCatalogCard__image {
    object-fit: cover;
}

.companionCatalogCard__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 220ms ease;
}

/* (2026-11-18 김 부장 · PC 폭 1064 점검) 그림 칸의 줄 높이 = 칸 높이 — 셀프 전용 카드(11-11 박지현 227)와 같은 묶음을 모든 칸에.
   안 묶으면 그리드 줄이 그림 원래 높이로 잡혀 height:100% 가 안 먹고, 칸(247:275)과 비율이 다른 사진이 칸 아래로 넘쳐 잘렸다
   (답례품 460×520 은 아래 5px · 1000×1200 은 아래 22px · 폰 봉투 일부). */
.companionCatalogCard__media,
.companionCatalogCard__mediaLink {
    grid-template-rows: minmax(0, 1fr);
}
/* 답례품은 배경까지 찍은 사진(오려 낸 판이 아님) — 칸을 채우고 넘치는 만큼은 위아래 고르게(종전: 아래만 잘림 · contain 이면 옆에 띠) */
.companionCatalog--gift .companionCatalogCard__image {
    object-fit: cover;
}

/* (11-11 대표님 42954 «코딱지 글씨» · 반장A 45044) 식권 목록 작은 글 셋 — 크기만 손님 글자 기준으로(PC 15 · 폰 14 · 다른 것은 그대로):
   «맞춤 가능/맞춤 전용» 표(11px) · «맞춤 식권 5,000원» 줄(13px · 다른 규칙에 12px 로 눌림) · 쪽 번호(13px) */
.companionCatalog .companionCatalogCard__customBadge,
.companionCatalog .companionCatalogCard__customPrice,
.companionCatalog .companionCatalogCard__customPrice *,
.companionCatalog .companionCatalogPager a { font-size: var(--bj-type-control); }
@media (max-width: 767px) {
    .companionCatalog .companionCatalogCard__customBadge,
    .companionCatalog .companionCatalogCard__customPrice,
    .companionCatalog .companionCatalogCard__customPrice *,
    .companionCatalog .companionCatalogPager a { font-size: var(--bj-type-caption); }
}
.companionCatalog .companionCatalogCard__customBadge { line-height: 1.4; }

/* (11-11 대표님 45044) 맞춤 전용 식권 —다른 식권 칸 사진(식권 두 장이 칸 가운데 작게)과 같은 크기·모양: 칸 높이의 약 절반 · 두 장 나란히 · 옅은 그림자 */
.companionCatalogCard__ticketPair {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3%;
    width: 100%;
    height: 100%;
    transition: transform 220ms ease;
}
.companionCatalogCard__ticket {
    display: block;
    width: auto;
    height: 48%;
    max-width: 40%;
    object-fit: contain;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
/* (11-11 대표님 45688) 가로 디자인 식권 — 다른 가로 식권 칸 사진(꼬마요리사 등)처럼 위아래 두 장 · 칸 폭의 약 절반 · 높이는 그림 비율 그대로 */
.companionCatalogCard__ticketPair--landscape {
    flex-direction: column;
}
.companionCatalogCard__ticketPair--landscape .companionCatalogCard__ticket {
    width: 52%;
    height: auto;
    max-width: none;
}

/* The shared set stage follows the audited artwork bounds. Colored-envelope
   product images stay on the single-image path. */
.companionCatalog--invitation .companionCatalogCard__mediaLink > .weddingCatalogSetThumbnail,
.companionCatalog--thanks .companionCatalogCard__mediaLink > .weddingCatalogSetThumbnail {
    width: 100%;
    height: 100%;
}
.companionCatalog--invitation .weddingCatalogSetThumbnail--landscape[data-default-envelope="bp002"] .weddingCatalogSetThumbnail__envelope {
    /* Keep the seal behind the card; the envelope only frames the set. */
    transform: translate(-4%, 2%) scale(1.02);
}
/* The 200x100 mm envelope is about 7% longer than the unfolded 186–187 mm
   thank-you card. Match the visible artwork bounds instead of scaling its
   entire transparent PNG canvas as if it were the envelope itself. */
.companionCatalog--thanks .weddingCatalogSetThumbnail--portrait[data-default-envelope="bp002"] .weddingCatalogSetThumbnail__envelope {
    transform: translate(-8%, 6%) rotate(90deg) scale(1.12);
}
.companionCatalog--thanks .weddingCatalogSetThumbnail--landscape[data-default-envelope="bp002"] .weddingCatalogSetThumbnail__envelope {
    transform: translate(-4%, -2%) scale(1.08);
}
.companionCatalog--invitation .weddingCatalogSetThumbnail > .companionCatalogCard__image,
.companionCatalog--thanks .weddingCatalogSetThumbnail > .companionCatalogCard__image {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
}
.weddingCatalogSetThumbnail:has(.companionCatalogCard__image[data-fallback-used="1"]) .weddingCatalogSetThumbnail__envelope {
    display: none;
}
.weddingCatalogSetThumbnail:has(.companionCatalogCard__image[data-fallback-used="1"]) .weddingCatalogSetThumbnail__composite {
    transform: none;
    filter: none;
}

.companionCatalogCard__hoverImage {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f1f1f1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}
.companionCatalogCard__mediaLink:focus-visible .companionCatalogCard__hoverImage.is-ready {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .companionCatalogCard__media:hover .companionCatalogCard__image:not(.weddingCatalogSetThumbnail__composite) {
        transform: scale(1.015);
    }
    .companionCatalogCard__media:hover .companionCatalogCard__hoverImage.is-ready {
        opacity: 1;
    }
}

.companionCatalogCard__image.is-missing {
    display: none;
}

.companionCatalogCard__imageFallback {
    position: absolute;
    z-index: 0;
    display: none;
    color: #92918d;
    font-size: 12px;
}

.companionCatalogCard__image.is-missing ~ .companionCatalogCard__imageFallback {
    display: block;
}
.companionCatalogCard__mediaLink:has(.weddingCatalogSetThumbnail__composite.is-missing) .companionCatalogCard__imageFallback {
    z-index: 2;
    display: block;
}

.companionCatalogCard__body {
    display: flex;
    width: 100%;
    flex: 1;
    flex-direction: column;
    margin: 0 !important;
    padding-top: 12px;
}

.companionCatalogCard__titleRow,
.companionCatalogCard__purchase {
    flex: 0 0 auto;
}

.companionCatalogCard__name {
    margin: 0 !important;
}

.companionCatalogCard__name a {
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.companionCatalogCard__nameSuffix {
    color: inherit;
    font: inherit;
}

.companionCatalogCard__badges .companionCatalogCard__badge--soldOut {
    color: #9b6040;
    background: #faeee7;
}

.companionCatalogCard__badges .companionCatalogCard__badge--benefit {
    color: #856435;
    background: #f4f0e8;
}

.companionCatalogCard__quantity select {
    cursor: pointer;
}

.companionCatalogCard__quantity {
    position: relative;
}

.companionCatalogCard__quantityTrigger {
    box-sizing: border-box;
    display: none;
    overflow: hidden;
    width: auto;
    min-width: 62px;
    max-width: 100%;
    height: 24px;
    min-height: 24px;
    align-items: center;
    margin: 0;
    padding: 0 17px 0 0;
    border: 0;
    border-radius: 3px;
    color: var(--bj-catalog-supporting-color, #556168);
    background: transparent;
    font: inherit;
    line-height: 24px;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.companionCatalog.is-qty-enhanced .companionCatalogCard__quantity select {
    position: absolute !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    clip: rect(0 0 0 0) !important;
    pointer-events: none !important;
}

.companionCatalog.is-qty-enhanced .companionCatalogCard__quantityTrigger {
    display: inline-flex;
}

.companionCatalogCard__quantityTrigger[hidden] {
    display: none !important;
}

.companionCatalogCard__quantityDisplay {
    display: block;
    overflow: hidden;
    min-width: 0;
    font: inherit;
    letter-spacing: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.companionCatalogCard__quantityChevron {
    position: absolute;
    top: 7px;
    right: 2px;
    width: 7px;
    height: 7px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    pointer-events: none;
    transform: rotate(45deg);
    transition: transform 140ms ease, top 140ms ease;
}

.companionCatalogCard__quantity.is-open .companionCatalogCard__quantityChevron {
    top: 10px;
    transform: rotate(225deg);
}

.companionCatalogCard__quantityTrigger:hover {
    color: var(--bj-brand-navy, #132b34);
}

.companionCatalogCard__quantityTrigger:disabled {
    cursor: wait;
    opacity: .55;
}

.companionCatalogCard__quantity select:focus-visible,
.companionCatalogCard__quantityTrigger:focus-visible,
.companionCatalogCard__cta:focus-visible,
.companionCatalogPager a:focus-visible {
    outline: 2px solid var(--bj-brand-navy, #132b34);
    outline-offset: 2px;
}

.companionCatalogCard__price {
    flex: 0 0 auto !important;
}

.companionCatalogCard__price del {
    display: none;
}

.companionCatalogCard__price strong {
    color: inherit;
    font-size: var(--bj-catalog-price-size, 14px);
    font-weight: var(--bj-catalog-price-weight, 500);
    line-height: var(--bj-catalog-price-line, 20px);
}

.companionCatalogCard__mediaLink {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    text-decoration: none;
}
/* Block surface focus: the image link zooms like hover and the card name is underlined; no box. */
.companionCatalogCard__mediaLink:focus-visible {
    outline: none;
}
.companionCatalogCard__mediaLink:focus-visible .companionCatalogCard__image:not(.weddingCatalogSetThumbnail__composite) {
    transform: scale(1.015);
}
.companionCatalogCard:has(.companionCatalogCard__mediaLink:focus-visible) .companionCatalogCard__name a,
.companionCatalogCard__name a:focus-visible {
    outline: none;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
/* 맞춤 실링 스티커 «스티커 + 각인» 나눔 — 값 아래 작은 줄(common/companion_catalog_renderer.php). 사이트 설명 글씨 단계 · 폰 두 칸 카드에선 두 줄로 고르게(금액이 줄 끝에 홀로 남지 않게). */
.companionCatalogCard__priceNote {
    margin: 2px 0 0;
    color: var(--bj-muted, #66635e);
    font-size: var(--bj-type-caption, 14px);
    line-height: var(--bj-type-caption-line, 1.5);
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
/* (2026-10-19 맞춤 식권 A안) 같은 디자인의 맞춤 식권 — 사진 위 «맞춤 가능 / 맞춤 전용» 표지와 값 아래 맞춤 값 한 줄. */
.companionCatalogCard__customBadge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 3px 7px;
    border-radius: 3px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    pointer-events: none;
}
.companionCatalogCard__customBadge--only {
    background: #8a5a2b;
}
/* 맞춤 전용 카드의 그림은 템플릿 미리보기(식권 한 장)라 다른 식권 사진처럼 회색 바탕 안에 통째로 보인다. */
.companionCatalogCard[data-catalog-card-custom-ticket="only"] .companionCatalogCard__image {
    width: 100%;
    height: 100%;
    padding: 14% 22%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .18));
}
.companionCatalogCard__customPrice {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 2px 0 0;
    color: #8a5a2b;
    font-size: 13px;
    line-height: 20px;
}
.companionCatalogCard__customPrice strong {
    font-weight: 700;
}
.companionCatalogCard__pricePending {
    overflow: hidden;
    text-overflow: ellipsis;
}

.companionCatalogCard__srOnly {
    position: absolute;
    overflow: hidden;
    width: 1px !important;
    height: 1px;
    margin: -1px !important;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.companionCatalogCard.is-price-loading .companionCatalogCard__price {
    opacity: .5;
}

.companionCatalogCard__priceError {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px !important;
    gap: 8px;
    color: #a04f45;
    font-size: 11px;
    line-height: 16px;
}

.companionCatalogCard__priceError[hidden] {
    display: none;
}

.companionCatalogCard__priceError button {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    color: #763d36;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.companionCatalogCard__cta {
    text-decoration: none;
}

.companionCatalogCard__actions {
    --bj-catalog-status-gap: 10px;
    display: flex;
    flex-wrap: wrap;
    column-gap: var(--bj-catalog-status-gap);
    justify-content: flex-start;
    /* 줄바꿈으로 줄 맨 앞에 온 표시의 구분 점은 왼쪽 밖으로 나가 잘린다(단추 포커스 테두리 자리 2px 만 남김). */
    clip-path: inset(-20px -20px -20px -2px);
    /* Same rhythm as the wedding list: the sample row sits directly under the price row and its
       text uses the top 24px of the tap box (padding-bottom 8px), not 8px + a centred 32px box. */
    margin-top: 0;
}

.companionCatalogCard__actions > [data-catalog-card-action] {
    margin-top: 0;
}

/* (2026-11-19 대표님 63941) 폰 좁은 칸(카드 폭 160~175px)에서 «샘플 담기 · 풀케어 · BEST» 의 BEST 만 아랫줄로 떨어졌다(360 폭 · 아이폰 글꼴).
   폰에선 사이 칸 10 → 6px — 셋 합이 72 + 36 + 34 + 12 = 154px 라 360 폭(칸 160px)에서도 한 줄. 줄바꿈 규칙(wrap)은 그대로 둔다:
   더 긴 꼬리표가 붙는 화면에서 글을 자르거나 옆 칸으로 넘치게 하지 않으려고. */
@media (max-width: 767px) {
    .companionCatalogCard__actions {
        --bj-catalog-status-gap: 6px;
    }
}

.companionCatalogCard__best {
    position: relative;
    align-self: stretch;
    padding-bottom: 8px;
}

/* (2026-11-05 대표님 글 33236) «샘플 담기 · 풀케어 · BEST» — 항목 사이 칸 가운데 점 */
.companionCatalogCard__best::before {
    content: "·";
    position: absolute;
    top: 0;
    bottom: 8px;
    left: calc(var(--bj-catalog-status-gap) / -2);
    display: flex;
    align-items: center;
    transform: translateX(-50%);
}

/* (2026-11-16 대표님 56161) 줄 첫 칸인 꼬리표(샘플 단추가 없는 화면)는 앞 점이 없다 — 점은 앞 항목이 있을 때만. */
.companionCatalogCard__best:first-child::before {
    content: none;
}
/* (2026-11-16 디자인 팀장 판정 · #40010) 샘플 단추가 없는 행동 줄의 꼬리표는 «상태 배지» — 청첩장 목록과 같은 모양
   (common/wedding-catalog-identity.css «샘플 단추 없이 꼬리표만 남은 줄»). 조건은 구조 하나(줄에 샘플 단추가 없음). */
html body:not(#bj-status-chip) .companionCatalogCard__actions:not(:has(> .companionCatalogCard__sample)) {
    align-items: center !important;
    column-gap: 6px !important;
    row-gap: 6px !important;
    margin-top: 8px !important;
    clip-path: none !important;
}
html body:not(#bj-status-chip) .companionCatalogCard__actions:not(:has(> .companionCatalogCard__sample)) > .companionCatalogCard__best {
    align-self: auto !important;
    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: 12px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    letter-spacing: 0.04em !important;
}
html body:not(#bj-status-chip) .companionCatalogCard__actions:not(:has(> .companionCatalogCard__sample)) > .companionCatalogCard__best::before {
    content: none !important;
}

.companionCatalogCard__sample[data-catalog-card-action] {
    appearance: none;
    box-sizing: border-box;
    display: flex;
    flex: none;
    width: auto;
    height: 32px;
    min-height: 32px;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    gap: 5px;
    padding: 0 0 8px;
    border: 0;
    border-radius: 0;
    color: #667078;
    background: transparent;
    font-family: var(--bj-font-family, "Pretendard", sans-serif);
    font-size: 14px;
    font-weight: var(--bj-catalog-cta-weight, 500);
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: color 160ms ease;
}

.companionCatalogCard__sample::before {
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0;
    background-color: currentColor;
    content: "";
    /* (2026-11-10 대표님 41989 «+»로 통일) */
    -webkit-mask: var(--bj-catalog-sample-plus-mask) center / 16px 16px no-repeat;
    mask: var(--bj-catalog-sample-plus-mask) center / 16px 16px no-repeat;
}

.companionCatalogCard__sample:hover,
.companionCatalogCard__sample:focus-visible {
    color: var(--bj-text, #303c45);
    background: transparent;
}

.companionCatalogCard__sample.sample_btn_on,
.companionCatalogCard__sample.on_add_sample {
    padding: 0 0 8px;
    border: 0;
    border-radius: 0;
    color: var(--bj-catalog-selected-action-color, var(--bj-text, #303c45));
    background: transparent;
}

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

.companionCatalogCard__sample[data-sample-state="loading"]::before,
.companionCatalogCard__sample[data-sample-state="error"]::before {
    opacity: 0;
}

.companionCatalogCard__sample::after {
    display: none;
}

.companionCatalogCard__cta:hover {
    border-color: #88949a;
    color: #1f2d35;
}

.companionCatalogCard__cta.is-disabled {
    color: #8e8d89;
    background: #f5f5f4;
}

@media (max-width: 767px) {
    .companionFinishingNav {
        overflow: hidden;
    }

    .companionFinishingNav__tabs {
        overflow-x: auto;
        /* (2026-11-19 대표님 63687 «옆으로 스와이프하면 막 날아다닌다») 옆으로만 밀리는 줄 — 세로는 숨김(overflow-x:auto 만 두면 세로도 auto 가 되어 줄이 위아래로 1px 밀리는 두 방향 줄이 된다 · 아이폰에서 출렁임)
           · 끝에서 튕김이 페이지로 넘어가지 않게(윗 아이콘 탭 줄 .weddingCatalogContextNav__railViewport 과 같은 설정). 모양은 그대로. */
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        justify-content: flex-start;
        gap: var(--bj-space-3, 24px);
        padding: 0 14px;
        scrollbar-width: none;
    }

    .companionFinishingNav__tabs::-webkit-scrollbar {
        display: none;
    }

    .companionFinishingNav__item {
        font-size: var(--bj-catalog-category-label-pc, 15px);
    }

    .companionCatalogCard__quantityTrigger {
        min-width: 50px;
    }

    /* 모바일 카드의 수량 조작 영역을 넓힐 때 가격이 다음 줄로 내려가도 겹치지 않게 한다. */
    .companionCatalog--mobile [data-catalog-card-layout="invitation"] [data-catalog-card-commerce] {
        height: auto;
        min-height: var(--catalog-card-commerce-min-height, 24px);
        margin-top: 6px;   /* = 청첩장 목록 이름~수량 글자 사이(이름 줄 높이가 4 커서 8 - 2) */
    }

    /* (2026-11-04 대표님 29160 «청첩장하고 비교») 줄 간격은 청첩장 목록과 같게 — 수량 칸은 글자 줄 높이만 차지하고 44 누름 칸은 위아래로 넘친다 */
    .companionCatalog--mobile [data-catalog-card-layout="invitation"] [data-catalog-card-quantity] {
        margin-block: calc((var(--catalog-card-commerce-min-height, 24px) - 44px) / 2);
    }

    .companionCatalog--mobile [data-catalog-card-layout="invitation"] [data-catalog-card-quantity],
    .companionCatalog--mobile [data-catalog-card-layout="invitation"] [data-catalog-card-quantity] > select,
    .companionCatalog--mobile .companionCatalogCard__quantityTrigger {
        height: 44px;
        min-height: 44px;
    }

    .companionCatalog--mobile .companionCatalogCard__quantityChevron {
        top: 17px;
    }

    .companionCatalog--mobile .companionCatalogCard__quantity.is-open .companionCatalogCard__quantityChevron {
        top: 20px;
    }

    .companionCatalog--mobile .companionCatalogCard__purchase {
        overflow: visible;
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .catalogShell--print .companionCatalogCard__price strong {
        font-size: var(--bj-catalog-price-size);
        font-weight: var(--bj-catalog-price-weight);
        line-height: 20px;
    }

    .catalogShell--print [data-catalog-card-price] .companionCatalogCard__priceUnit {
        color: #556168;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
    }

    .companionCatalogCard__actions {
        margin-top: 0;
    }

    .companionCatalogCard__sample[data-catalog-card-action] {
        position: relative;
        height: 40px;
        min-height: 40px;
        padding: 0 0 8px;
        font-size: 14px;
        line-height: 20px;
    }

    /* 연하장도 청첩장 목록의 모바일 샘플 글자·자간을 사용합니다. */
    [data-catalog-state^="new_year/"] .companionCatalogCard__sample[data-catalog-card-action] {
        font-size: 14px;
        letter-spacing: -.02em;
    }

    .companionCatalogCard__sample.sample_btn_on {
        padding: 0 0 8px;
    }
}

.companionCatalogEmpty {
    --catalog-shell-empty-min-height: 280px;
    --catalog-shell-empty-padding: 48px 20px;
    border: 1px solid var(--bj-line, #e3e6e7);
    border-radius: 8px;
}

.companionCatalogEmpty h1,
.companionCatalogEmpty h2,
.companionCatalogEmpty p {
    margin: 0;
}

.companionCatalogEmpty h1,
.companionCatalogEmpty h2 {
    font-size: 21px;
    line-height: 30px;
}

.companionCatalogEmpty p {
    margin-top: 8px;
    color: var(--bj-muted, #66635e);
    font-size: 14px;
}

.companionCatalogEmpty a {
    margin-top: 22px;
    padding: 10px 18px;
    border-radius: 4px;
    color: #fff;
    background: var(--bj-brand-navy, #132b34);
    font-size: 14px;
    text-decoration: none;
}

.companionCatalogPager {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 58px;
    gap: 22px;
}

.companionCatalogPager__pages {
    display: flex;
    gap: 8px;
}

.companionCatalogPager a {
    display: inline-flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dde0e1;
    border-radius: 50%;
    color: #526066;
    background: #fff;
    font-size: 13px;
    text-decoration: none;
}

.companionCatalogPager a.is-current {
    border-color: var(--bj-brand-navy, #132b34);
    color: #fff;
    background: var(--bj-brand-navy, #132b34);
}

.companionCatalogPager a.is-disabled {
    pointer-events: none;
    opacity: .35;
}

.companionCatalogPager__move {
    width: auto;
    padding: 0 13px;
    border-radius: 17px !important;
}

.companionQtyLayer,
.companionQtyLayer * {
    box-sizing: border-box;
    font-family: var(--bj-font-family, "Pretendard", sans-serif);
}

.companionQtyLayer {
    position: fixed;
    z-index: 10020;
    inset: 0;
    pointer-events: none;
}

.companionQtyMenu {
    position: fixed;
    display: flex;
    overflow: hidden;
    width: var(--companion-qty-menu-width, 176px);
    min-width: 112px;
    max-width: calc(100vw - 24px);
    max-height: min(332px, calc(100vh - 24px));
    flex-direction: column;
    padding: 6px;
    border: 1px solid #dadee0;
    border-radius: 10px;
    background: #fff;
    box-shadow:
        0 16px 36px rgba(18, 34, 42, .14),
        0 3px 10px rgba(18, 34, 42, .08);
    pointer-events: auto;
}

.companionQtyMenu__header {
    display: flex;
    height: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0 10px;
}

.companionQtyMenu__title {
    color: #737c81;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

.companionQtyMenu__close {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #56636a;
    background: transparent;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.companionQtyMenu__list {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 280px;
    width: 100%;
    margin: 0;
    overscroll-behavior: contain;
    scrollbar-color: #c7cdd0 transparent;
    scrollbar-width: thin;
}

.companionQtyMenu__list::-webkit-scrollbar {
    width: 6px;
}

.companionQtyMenu__list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c7cdd0;
}

.companionQtyMenu__list::-webkit-scrollbar-track {
    background: transparent;
}

.companionQtyMenu__option {
    display: flex;
    width: 100%;
    height: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    color: #48555c;
    background: transparent;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
    cursor: pointer;
}

.companionQtyMenu__option:hover,
.companionQtyMenu__option.is-active {
    color: var(--bj-brand-navy, #132b34);
    background: #f6f7f7;
}

.companionQtyMenu__option.is-selected {
    color: var(--bj-brand-navy, #132b34);
    background: #f0f3f3;
    font-weight: 600;
}

.companionQtyMenu__option:focus-visible,
.companionQtyMenu__close:focus-visible {
    outline: 2px solid var(--bj-brand-navy, #132b34);
}

.companionQtyMenu__option:focus-visible,
.companionQtyMenu__close:focus-visible,
.companionCatalog--pc.companionCatalog--invitation [data-companion-qty-trigger]:focus-visible {
    outline-offset: -2px;
}

.companionQtyMenu__optionLabel {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.companionQtyMenu__check {
    flex: 0 0 auto;
    color: var(--bj-brand-navy, #132b34);
    font-size: 14px;
    opacity: 0;
}

.companionQtyMenu__option.is-selected .companionQtyMenu__check {
    opacity: 1;
}

@media (max-width: 1023px) {
    #content_wrapper,
    #content_wrapper > tbody,
    #content_wrapper > tbody > tr,
    #content_wrapper > tbody > tr > td {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
    }

    #content_wrapper > tbody > tr > td {
        padding-right: 0;
        padding-left: 0;
    }

    .companionCatalog {
        --catalog-shell-width: calc(100% - 32px);
    }

    .companionCatalogNav .weddingCatalogContextNav__railViewport {
        width: 100% !important;
        overflow-x: auto;
        overflow-y: hidden;
    }
}

@media (max-width: 767px) {
    .companionCatalog > .catalogShell__category {
        width: calc(100% + 28px) !important;
        max-width: none !important;
        margin-left: -14px;
    }

    .weddingCatalogContextNav--mobile-shortcuts,
    .companionCatalogNav.weddingCatalogContextNav--mobile {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: 92px;
        min-height: 92px;
        margin-left: 0;
        padding-top: 16px;
    }

    .weddingCatalogContextNav--mobile-shortcuts::before,
    .weddingCatalogContextNav--mobile-shortcuts::after,
    .companionCatalogNav.weddingCatalogContextNav--mobile::before,
    .companionCatalogNav.weddingCatalogContextNav--mobile::after {
        position: absolute;
        z-index: 2;
        top: 16px;
        bottom: 1px;
        width: 18px;
        pointer-events: none;
        opacity: 0;
        content: "";
        transition: opacity 120ms ease;
    }

    .weddingCatalogContextNav--mobile-shortcuts::before,
    .companionCatalogNav.weddingCatalogContextNav--mobile::before {
        left: 0;
        background: linear-gradient(90deg, #fff 10%, rgba(255, 255, 255, 0));
    }

    .weddingCatalogContextNav--mobile-shortcuts::after,
    .companionCatalogNav.weddingCatalogContextNav--mobile::after {
        right: 0;
        background: linear-gradient(270deg, #fff 10%, rgba(255, 255, 255, 0));
    }

    .weddingCatalogContextNav--mobile-shortcuts.has-left-overflow::before,
    .weddingCatalogContextNav--mobile-shortcuts.has-right-overflow::after,
    .companionCatalogNav.weddingCatalogContextNav--mobile.has-left-overflow::before,
    .companionCatalogNav.weddingCatalogContextNav--mobile.has-right-overflow::after {
        opacity: 1;
    }

    .companionCatalogNav .weddingCatalogContextNav__styles {
        grid-template-columns: repeat(var(--companion-nav-count), max-content) !important;
    }

    .companionCatalogNav .weddingCatalogContextNav__link {
        width: auto !important;
        min-width: 72px;
    }

    body[data-wedding-catalog-scroll-state="COMPACT_DOWN"] .companionCatalogNav.weddingCatalogContextNav--mobile,
    body[data-wedding-catalog-scroll-state="REVEAL_UP"] .companionCatalogNav.weddingCatalogContextNav--mobile,
    body[data-wedding-catalog-scroll-state="MODAL"] .companionCatalogNav.weddingCatalogContextNav--mobile {
        position: sticky;
        z-index: 99;
        top: var(--wedding-catalog-banner-offset, 0px);
        height: 52px;
        min-height: 52px;
        padding-top: 0;
    }

    body[data-wedding-catalog-scroll-state="COMPACT_DOWN"] .companionCatalogNav.weddingCatalogContextNav--mobile::before,
    body[data-wedding-catalog-scroll-state="COMPACT_DOWN"] .companionCatalogNav.weddingCatalogContextNav--mobile::after,
    body[data-wedding-catalog-scroll-state="REVEAL_UP"] .companionCatalogNav.weddingCatalogContextNav--mobile::before,
    body[data-wedding-catalog-scroll-state="REVEAL_UP"] .companionCatalogNav.weddingCatalogContextNav--mobile::after,
    body[data-wedding-catalog-scroll-state="MODAL"] .companionCatalogNav.weddingCatalogContextNav--mobile::before,
    body[data-wedding-catalog-scroll-state="MODAL"] .companionCatalogNav.weddingCatalogContextNav--mobile::after {
        top: 0;
    }

    /* 붙은 줄 아래 경계 1px — 청첩장 목록 붙은 줄과 같음(m/wedding_catalog_modern.css.php · (2026-11-22 대표님 «이 걸리는 메뉴 하단에 … 선 하나 … 그어줘야 금방 인지할 것 같은데»)) */
    body[data-wedding-catalog-scroll-state="COMPACT_DOWN"] .companionCatalogNav.weddingCatalogContextNav--mobile {
        box-shadow: 0 1px 0 var(--catalog-nav-group-line, #cfd6d9), 0 5px 16px rgba(23, 35, 43, 0.08);
    }
    body[data-wedding-catalog-scroll-state="REVEAL_UP"] .companionCatalogNav.weddingCatalogContextNav--mobile,
    body[data-wedding-catalog-scroll-state="MODAL"] .companionCatalogNav.weddingCatalogContextNav--mobile {
        box-shadow: 0 1px 0 var(--catalog-nav-group-line, #cfd6d9);
    }

    .companionCatalog {
        --catalog-shell-width: 100%;
        --catalog-shell-margin: 0 auto;
        --catalog-shell-padding: 0 14px 64px;
        --catalog-shell-grid-gap: 24px 12px;
    }

    .companionCatalog__grid {
        --catalog-shell-grid-gap: 24px 12px;
    }

    .companionCatalog.catalogShell--mobile.catalogShell--without-identity {
        margin-top: 0;
    }

    .companionCatalog[data-catalog-mode="overall"] .companionCatalog__grid--odd
    > [data-catalog-card]:last-child {
        width: calc((100% - 12px) / 2);
        grid-column: 1 / -1;
        justify-self: start;
    }

    .catalogShell--print.companionCatalog[data-catalog-mode="overall"]
    > .catalogShell__results {
        padding-top: 32px;
    }

    .companionCatalog__toolbar {
        margin: 0 0 8px;
    }

    .companionCatalog__toolbar .companionCatalog__count {
        display: none;
    }

    .companionCatalog[data-catalog-density] .companionCatalog__grid {
        --catalog-shell-grid-columns: 2;
    }

    .companionCatalog--video[data-catalog-density] .companionCatalog__grid {
        --catalog-shell-grid-columns: 1;
    }

    .companionCatalogCard__media > .companionCatalogCard__wishlist {
        top: var(--catalog-wish-top, auto) !important;
        right: var(--catalog-wish-right, 8px) !important;
        bottom: var(--catalog-wish-bottom, 4px) !important;
        width: var(--catalog-wish-size, 44px) !important;
        height: var(--catalog-wish-size, 44px) !important;
        background-size: var(--catalog-wish-icon, 30px auto) !important;
    }

    .catalogShell--print.companionCatalog[data-catalog-mode="category"]
    > .catalogShell__results {
        padding-top: 20px;
    }

    .catalogShell--print.companionCatalog[data-catalog-mode="category"]
    > .catalogShell__toolbar + .catalogShell__results {
        padding-top: 0;
    }

    .companionCatalog__sort:not(.catalogControls__sort) span {
        position: absolute;
        overflow: hidden;
        width: 1px;
        height: 1px;
        clip: rect(0 0 0 0);
    }

    .companionCatalog__sort:not(.catalogControls__sort) select {
        min-width: 112px;
        height: 36px;
    }

    .companionCatalog__section + .companionCatalog__section {
        margin-top: 46px;
    }

    .catalogShell--print.companionCatalog--mobile
    > .catalogShell__results
    > .companionCatalog__section {
        padding: 0;
    }

    .companionCatalog__sectionHeader {
        margin-bottom: 14px;
    }

    .companionCatalog__sectionMore {
        min-width: 108px;
        min-height: 44px;
        padding: 0 12px !important;
    }

    .companionCatalogCard__media {
        border-radius: 6px;
    }

    html.is-companion-qty-open {
        overflow: hidden;
    }

    .companionQtyLayer {
        display: flex;
        align-items: flex-end;
        background: rgba(19, 43, 52, .28);
        pointer-events: auto;
    }

    .companionQtyMenu {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100%;
        max-width: none;
        max-height: min(62vh, 520px);
        max-height: min(62dvh, 520px);
        padding: 0 8px calc(10px + env(safe-area-inset-bottom));
        border: 0;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -12px 34px rgba(18, 34, 42, .16);
        visibility: visible !important;
    }

    .companionQtyMenu__header {
        height: 56px;
        min-height: 56px;
        padding: 0 8px 0 12px;
        border-bottom: 1px solid #eceeef;
    }

    .companionQtyMenu__title {
        color: var(--bj-text, #303c45);
        font-size: 16px;
        font-weight: 650;
        line-height: 24px;
    }

    .companionQtyMenu__close {
        display: inline-flex;
    }

    .companionQtyMenu__list {
        max-height: min(55vh, 432px) !important;
        max-height: min(55dvh, 432px) !important;
        padding-top: 6px;
    }

    .companionQtyMenu__option {
        height: 48px;
        min-height: 48px;
        padding: 0 12px;
        border-radius: 8px;
        font-size: 14px;
        line-height: 22px;
    }

    .companionCatalogPager {
        margin-top: 44px;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .companionCatalogCard__image,
    .companionCatalogCard__hoverImage {
        transition: none;
    }
}

/* 세트 목록은 비교 밀도만 조정하고 공통 카드/도구줄을 사용합니다. */
/* (2026-11-24 대표님 «청첩장과 동일하게» · 김 부장) 연하장 목록 사진 칸: 찜 = 우측 상단 · 후가공 딱지 = 우측 하단 — 청첩장 목록과 같은 자리·크기
   (찜: wedding-catalog-identity.css .weddingCatalogMedia .zzim_btn 4·4·40·하트 24 · 누름 44 / 딱지: catalog-finish-badges.css 기본 flex-end). PC·폰 같은 값. */
.companionCatalog--new_year { --catalog-wish-top: 4px; --catalog-wish-right: 4px; --catalog-wish-bottom: auto; --catalog-wish-size: 40px; --catalog-wish-icon: 24px auto; }
.companionCatalog--new_year .companionCatalogCard__media > .companionCatalogCard__wishlist::after { content: ''; position: absolute; inset: -2px; }
.companionCatalog--new_year .companionCatalogCard__media > .weddingFinishBadges { justify-content: flex-end; }
.companionCatalog--new_year .catalogControls { min-height: 40px; }
.companionCatalog--new_year .catalogControls__count,
.companionCatalog--new_year .catalogControls__count strong { font-size: var(--bj-type-control, 15px); }
.companionCatalog--new_year .catalogControls__count { font-weight: var(--bj-type-control-weight, 500); }
.companionCatalog--sets[data-catalog-density="small"] .companionCatalog__grid { --catalog-shell-grid-columns: 3; }
.companionCatalog--sets[data-catalog-density="large"] .companionCatalog__grid { --catalog-shell-grid-columns: 2; }
.companionCatalogCard__composition { margin: 4px 0 0; color: var(--bj-text-muted); font-size: var(--bj-catalog-supporting-size, 14px); line-height: 1.5; }
@media (max-width: 767px) {
    .companionCatalog--sets[data-catalog-density="small"] .companionCatalog__grid { --catalog-shell-grid-columns: 2; }
    .companionCatalog--new_year[data-purchase-mode="piece"][data-catalog-density="large"] .companionCatalog__grid,
    .companionCatalog--sets[data-catalog-density="large"] .companionCatalog__grid { --catalog-shell-grid-columns: 1; }
}

[data-catalog-state^="new_year/"] .companionCatalogCard__sample > [data-newyear-sample-label] {
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
}
@media (min-width: 768px) {
    [data-catalog-state^="new_year/"] .companionCatalogCard__sample[data-catalog-card-action] {
        min-height: auto;
    }
    [data-catalog-state^="new_year/"] .companionCatalogCard__actions {
        --bj-catalog-status-gap: 12px;
    }
}
