/* ============================================================
   로그인 전 공개 화면 — 메인(/) · 공개 카테고리 목록
   Figma Page 2: pc-home 208:2460 / 공개카테고리 212:4193
   시안은 PC(1920)만 있다. 모바일은 리뉴얼 모바일 규격(15px 여백)에 맞춰 줄였다.
   ============================================================ */

/* ── 빨간 19세 안내 띠 (212:3340) ─────────────────────────── */
.pub-topbar {
    /* 요청서 '19세 미만 이용 불가 표시 유지' — 스크롤해도 맨 위에 남긴다 (대행사 2026-11-07) */
    position: sticky;
    top: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 60px;
    background: #d40000;
}

.pub-topbar__text {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 19.5px;
    text-align: center;
}

/* ── 비로그인 분류 메뉴 — 공개 분류 몇 개만 남아 양 끝으로 벌어지지 않게 가운데로 모은다 ── */
/* PC 는 renewal.css 가 항목 수만큼 1fr 칸을 나눠 두 개면 화면 양 끝으로 갈라진다.
   칸 폭을 고정하고 가운데로 모은다. 메가메뉴 칸도 같은 폭이라야 이름 아래로 떨어진다 */
.header-nav-wrap--guest .header-nav__list {
    justify-content: center;
    gap: 40px;
}

@media (min-width: 1280px) {
    .header-nav-wrap--guest .header-nav__list,
    .header-nav-wrap--guest .mega-menu__cols {
        grid-auto-columns: 200px;
        justify-content: center;
        gap: 0;
    }
}

/* ── 메인 소개 (211:3275) ─────────────────────────────────── */
.pub-home__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 0;
}

.pub-home__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pub-home__lead {
    margin: 0;
    color: #555;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
}

.pub-home__title {
    margin: 0;
    color: #333;
    font-size: 32px;
    font-weight: 700;
    line-height: 41.6px;
    text-align: center;
}

/* ── 19세 안내 박스 (212:3293 / 212:4948) ─────────────────── */
.pub-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    padding: 50px 30px;
    background: #f5f5f5;
    box-sizing: border-box;
}

.pub-notice__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 6.25px solid #e0261f;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
}

.pub-notice__text {
    margin: 0;
    color: #333;
    font-size: 20px;
    line-height: 27px;
    text-align: center;
}

.pub-notice__text u {
    text-underline-position: from-font;
}

.pub-notice__text strong {
    font-weight: 700;
}

.pub-notice__login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    min-height: 56px;
    padding: 10px 12px;
    border: 1px solid #999;
    border-radius: 30px;
    background: #fff;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    line-height: 25.2px;
    text-decoration: none;
    box-sizing: border-box;
}

.pub-notice__join {
    margin: -24px 0 0;
    color: #777;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.pub-notice__join a {
    color: #333;
    font-weight: 700;
    text-decoration: underline;
    text-underline-position: from-font;
}

.pub-notice__rule {
    width: 100%;
    height: 0;
    margin: 0;
    border: 0;
    border-top: 1px solid #ddd;
}

.pub-notice__cat {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.pub-notice__title {
    margin: 0;
    color: #1a1a1a;
    font-size: 27px;
    font-weight: 700;
    line-height: normal;
    text-align: center;
}

.pub-notice__desc {
    margin: 0;
    color: #333;
    font-size: 20px;
    line-height: 27px;
    text-align: center;
}

.pub-notice__more {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    border: 1px solid #bbb;
    color: #333;
    font-size: 20px;
    line-height: 27px;
    text-decoration: none;
}

.pub-notice__more img {
    display: block;
    flex-shrink: 0;
}

/* ── 공개 카테고리 목록 (212:4206) ────────────────────────── */
.pub-plist-intro {
    /* 아래 상품 그리드가 이미 36px 를 띄우고 시작한다. 시안 간격(40)은 그 위에 4 만 더한다 */
    margin: 0 0 4px;
    color: #333;
    font-size: 20px;
    line-height: 27px;
}

.pub-plist-notice {
    padding: 40px 0 80px;
}

@media (max-width: 1279px) {
    .pub-topbar {
        min-height: 40px;
        padding: 10px 15px;
    }

    .pub-topbar__text {
        font-size: 12px;
        line-height: 1.4;
        word-break: keep-all;
    }

    .pub-home__intro {
        gap: 24px;
        padding: 24px 15px;
        box-sizing: border-box;
    }

    .pub-home__head {
        gap: 10px;
    }

    .pub-home__lead {
        font-size: 14px;
        line-height: 1.6;
        word-break: keep-all;
    }

    .pub-home__title {
        font-size: 20px;
        line-height: 1.4;
        word-break: keep-all;
    }

    .pub-notice {
        gap: 24px;
        padding: 30px 15px;
    }

    .pub-notice__mark {
        width: 60px;
        height: 60px;
        border-width: 5px;
        font-size: 30px;
    }

    .pub-notice__text,
    .pub-notice__desc {
        font-size: 14px;
        line-height: 1.6;
        word-break: keep-all;
    }

    /* 좁은 폭에서는 시안의 줄바꿈이 오히려 한두 글자짜리 줄을 만든다 */
    .pub-notice__text br,
    .pub-notice__desc br {
        display: none;
    }

    .pub-notice__login {
        width: 100%;
        max-width: 260px;
        min-height: 48px;
        font-size: 15px;
    }

    .pub-notice__join {
        margin-top: -12px;
        font-size: 13px;
    }

    .pub-notice__cat {
        gap: 12px;
    }

    .pub-notice__title {
        font-size: 20px;
    }

    .pub-notice__more {
        gap: 12px;
        padding: 10px 16px;
        font-size: 15px;
        line-height: 1.4;
    }

    .pub-notice__more img {
        width: 9px;
        height: 19px;
    }

    .pub-plist-intro {
        margin: 0;
        padding: 16px 15px 0;
        font-size: 14px;
        line-height: 1.5;
        word-break: keep-all;
    }

    .pub-plist-notice {
        padding: 30px 15px 40px;
    }
}

/* ── 공개 목록 이미지 숨김 카드 (categories.public_image = 0) ── */
.rnw-card__blank {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #999;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}
