/* BASIC css start */
/* =====================================================================
   NAILMALL RENEWAL · PC 기본 기획전  (상품 목록과 같은 시안 스타일)
   이 파일만으로 화면이 그려지도록 색 변수·상품 카드를 [공용:…] 블록으로 함께 담았다.
   ===================================================================== */

/* ===== [공용:토큰] 시작 =====
   색·글꼴·폭 변수 (--nr-*).
   같은 블록이 여러 화면 CSS 에 똑같이 들어 있다. 고칠 때는 한 곳을 고친 뒤
   dev-server 에서 npm run shared -- --sync "<고친 파일>" 로 나머지에 복사한다. */
:root {
    --nr-ink: #111111;          /* 제목, 강조 글씨, 검정 버튼 */
    --nr-text: #222222;         /* 본문 */
    --nr-sub: #666666;          /* 보조 글씨 */
    --nr-muted: #999999;        /* 설명, 비활성 */
    --nr-line: #e5e5e5;         /* 기본 구분선 */
    --nr-line-dark: #111111;    /* 헤더 아래 선, 강조 선 */
    --nr-bg-soft: #f5f5f5;      /* 회색 바탕 (푸터 링크 줄, 합계 바) */
    --nr-accent: #ff6b2c;       /* 할인율, 리뷰 수 */
    --nr-pink: #ff8e95;         /* 브랜드 핑크 */
    --nr-grad: linear-gradient(90deg, #ff6a00 0%, #e4007f 100%);  /* 주문하기 */
    --nr-container: 1280px;
    --nr-font: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    --nr-font-en: 'Montserrat', 'Pretendard', sans-serif;
}
/* ===== [공용:토큰] 끝 ===== */

/* ===== [공용:상품카드] 시작 =====
   상품 그리드(.nm-grid-*)와 상품 카드(.nm-card-*).
   같은 블록이 여러 화면 CSS 에 똑같이 들어 있다. 고칠 때는 한 곳을 고친 뒤
   dev-server 에서 npm run shared -- --sync "<고친 파일>" 로 나머지에 복사한다. */
.nm-grid { display: grid; gap: 44px 16px; }
.nm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 20px; }
.nm-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nm-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 12px; }

.nm-card { position: relative; min-width: 0; }
.nm-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f4f4f4;
}
.nm-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.nm-card:hover .nm-card-thumb img { transform: scale(1.04); }
.nm-grid.is-round .nm-card-thumb { border-radius: 16px; }
.nm-card-rank {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    background: var(--nr-ink);
    color: #fff;
    font-family: var(--nr-font-en);
    font-size: 13px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
    box-sizing: border-box;
}
.nm-card-soldout {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-family: var(--nr-font-en);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .04em;
}
.nm-card-wish {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    color: rgba(0, 0, 0, .45);
    pointer-events: none;
}
.nm-card-wish svg { width: 100%; height: 100%; }
.is-round .nm-card-wish { display: none; }
.nm-card-info { padding-top: 14px; }
.nm-card-review { margin-bottom: 6px !important; font-size: 12px; font-weight: 600; color: var(--nr-accent); }
.nm-card-sub {
    margin-bottom: 4px !important;
    font-size: 12px;
    line-height: 1.45;
    color: var(--nr-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nm-card-name {
    font-size: 14px;
    line-height: 1.45;
    color: var(--nr-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
}
.nm-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 10px !important; }
.nm-card-price strong { font-size: 15px; font-weight: 700; color: var(--nr-ink); }
.nm-card-price del { font-size: 12px; color: #aaa; }
.nm-price-pct { font-style: normal; font-size: 15px; font-weight: 700; color: var(--nr-accent); }
.nm-price-replace { color: var(--nr-sub) !important; font-weight: 500 !important; font-size: 13px !important; }
.is-soldout .nm-card-name a { color: var(--nr-muted); }

.nm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
.nm-grid { margin: 0; padding: 0; list-style: none; }
.nm-card a { color: inherit; text-decoration: none; }
.nm-card p { margin: 0; }
.nm-card-icons { margin-top: 8px !important; line-height: 0; }
.nm-card-icons img { margin-right: 3px; vertical-align: middle; }
/* ===== [공용:상품카드] 끝 ===== */

/* ---------- 화면 기본 ----------
   공통 CSS 의 리셋(목록 요소 margin:-1px, 글꼴 Noto Sans KR)을 이 화면 영역(.nm-plan)에서만 되돌린다. */
:where(.nm-plan) { font-family: var(--nr-font); }
:where(.nm-plan) :is(h1, h2, h3, h4, h5, h6, table, input, select, textarea, button, a) { font-family: var(--nr-font); }
.nm-plan :where(ul, ol, li, dl, dt, dd) { margin: 0; }
.nm-plan section { margin-left: 0; margin-right: 0; }

.nm-plan { max-width: var(--nr-container); margin: 0 auto; padding: 28px 0 40px; color: var(--nr-text); }
.nm-plan a { text-decoration: none; }
.nm-plan ul { margin: 0; padding: 0; list-style: none; }

/* 현재 위치 */
.nm-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--nr-muted); }
.nm-breadcrumb a { color: var(--nr-muted); }
.nm-breadcrumb a:last-child { color: var(--nr-ink); }
.nm-breadcrumb span { color: #ccc; }

/* 제목 */
.nm-plan-head { margin-top: 36px; padding-bottom: 20px; border-bottom: 2px solid var(--nr-ink); }
.nm-plan-eyebrow {
    margin: 0 0 8px !important;
    font-family: var(--nr-font-en);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--nr-accent);
}
.nm-plan-head h2 { margin: 0; font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; color: var(--nr-ink); }

/* 기획전 배너 */
.nm-plan-hero { margin-top: 28px; background: var(--nr-bg-soft); }
.nm-plan-hero img { display: block; width: 100%; height: auto; }
.nm-plan-hero--html { background: transparent; }
.nm-plan-hero--html img { max-width: 100%; height: auto; }
.nm-plan-hero + .nm-plan-hero { margin-top: 0; }

/* 분류 탭: 스크롤하면 화면 위에 붙는다 */
.nm-plan-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-top: 40px;
    background: #fff;
    border-top: 1px solid var(--nr-ink);
    border-bottom: 1px solid var(--nr-line);
}
.nm-plan-tabs ul { display: flex; flex-wrap: wrap; }
.nm-plan-tabs li { flex: 1 1 0; min-width: 140px; }
.nm-plan-tabs li + li { border-left: 1px solid var(--nr-line); }
.nm-plan-tabs a {
    display: block;
    padding: 18px 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: var(--nr-sub);
    word-break: keep-all;
}
.nm-plan-tabs a:hover { color: var(--nr-ink); }
.nm-plan-tabs a.on { background: var(--nr-ink); color: #fff; }

/* 분류별 상품 */
.nm-plan-sec { margin-top: 72px; scroll-margin-top: 80px; }
.nm-plan-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--nr-ink);
}
.nm-plan-sec-head[hidden] { display: none; }
.nm-plan-sec-head h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--nr-ink); }
.nm-plan-top {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: var(--nr-font-en);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--nr-muted) !important;
}
.nm-plan-top:hover { color: var(--nr-ink) !important; }
.nm-plan-top svg { width: 14px; height: 14px; }

/* 카드: 라벨 아이콘, 회원가 표시 */
.nm-plan-label { position: absolute; left: 0; bottom: 0; line-height: 0; }
.nm-plan-label img { max-height: 24px; }
/* 가격: 윗줄 취소선 원래 가격, 아랫줄 할인율 + 판매(회원)가 + 회원가 표시 */
.nm-plan .nm-card-price { align-items: center; align-content: flex-end; gap: 0 8px; min-height: 44px; margin-top: 12px !important; }
.nm-plan .nm-card-price del { order: -1; flex-basis: 100%; margin-bottom: 3px; font-size: 13px; line-height: 1.3; color: #b0b0b0; }
.nm-plan .nm-card-price strong { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.nm-plan .nm-price-pct { font-family: var(--nr-font-en); font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--nr-accent); }
.nm-price-member {
    order: 1;
    padding: 0 6px;
    background: var(--nr-ink);
    font-size: 11px;
    font-weight: 700;
    line-height: 19px;
    color: #fff;
}

.nm-plan .nm-card-price [hidden] { display: none !important; }
.nm-plan .nm-card-icons:empty { display: none; }

.nm-plan-empty { padding: 120px 0; text-align: center; font-size: 15px; color: var(--nr-muted); }

/* BASIC css end */

