@charset "utf-8";
/* ==========================================================================
   Cboard 상품목록(카테고리별) — 왼쪽 아이템분류 사이드바 + 심플 카드 그리드
   파일: skin/board/board_gallery/list.custom.css
   ========================================================================== */

#bo_gall.nvr-pd-wrap { width: 100% !important; max-width: 1280px; margin: 0 auto; padding: 24px 16px 60px; }

.nvr-pd-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

/* ── 왼쪽 아이템분류 사이드바 ─────────────────────────────── */
.nvr-pd-side {
    width: 210px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 14px;
    padding: 20px 16px;
    position: sticky;
    top: 90px;
}
.nvr-pd-side-title { font-size: 15px; font-weight: 800; color: #222; margin: 0 0 12px; }

.nvr-ic-all {
    display: block; padding: 8px 10px; margin-bottom: 6px; border-radius: 8px;
    color: #666; font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.nvr-ic-all:hover { background: #f7f7f7; color: #ff6b01; text-decoration: none; }
.nvr-ic-all.active { background: #fff3ea; color: #ff6b01; }

.nvr-ic-list { list-style: none; margin: 0; padding: 0; }
.nvr-ic-list:not(.nvr-ic-root) { padding-left: 12px; margin: 2px 0 6px 10px; border-left: 1px solid #f0f0f0; }

.nvr-ic-row { display: flex; align-items: center; }
.nvr-ic-link {
    flex: 1; min-width: 0; display: block; padding: 7px 10px; border-radius: 8px; color: #555;
    font-size: 13.5px; text-decoration: none; transition: background .12s ease, color .12s ease;
}
.nvr-ic-link:hover { background: #f7f7f7; color: #ff6b01; text-decoration: none; }
.nvr-ic-item.active > .nvr-ic-row .nvr-ic-link { background: #fff3ea; color: #ff6b01; font-weight: 700; }

.nvr-ic-toggle {
    flex-shrink: 0; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; color: #bbb; cursor: pointer; border-radius: 6px;
}
.nvr-ic-toggle:hover { background: #f7f7f7; color: #ff6b01; }
.nvr-ic-toggle i { font-size: 11px; transition: transform .15s ease; display: inline-block; }
.nvr-ic-item.open > .nvr-ic-row .nvr-ic-toggle i { transform: rotate(90deg); }

.nvr-ic-children { display: none; }
.nvr-ic-item.open > .nvr-ic-children { display: block; }

/* ── 메인 영역 ────────────────────────────────────────────── */
.nvr-pd-main { flex: 1; min-width: 0; }

.nvr-pd-toolbar {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.nvr-pd-total { font-size: 13px; color: #767676; }
.nvr-pd-total strong { color: #191919; font-weight: 700; }
.nvr-pd-tools { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nvr-pd-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 9px;
    background: #f5f5f5; color: #767676; border: none; cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.nvr-pd-btn:hover { background: #ececec; color: #191919; }
.nvr-pd-write-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0 16px; height: 34px; border-radius: 9px;
    background: #ff6b01; color: #fff; font-size: 13px; font-weight: 700;
    text-decoration: none; transition: background .15s ease;
}
.nvr-pd-write-btn:hover { background: #e56000; color: #fff; text-decoration: none; }

/* ── 상품 카드 그리드 ─────────────────────────────────────── */
#bo_gall #gall_ul.nvr-pd-grid {
    display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px;
    list-style: none; margin: 0; padding: 0;
}
#bo_gall #gall_ul.nvr-pd-grid:after { display: none; }
.nvr-pd-card { position: relative; display: flex; flex-direction: column; }
.nvr-pd-card.nvr-pd-now .nvr-pd-tit { color: #ff6b01; }
.nvr-pd-chk { position: absolute; top: 8px; left: 8px; z-index: 2; }

.nvr-pd-wish {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 30px; height: 30px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.9); color: #bbb; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.12);
    transition: color .15s ease, transform .1s ease;
}
.nvr-pd-wish:hover { color: #ff6b01; transform: scale(1.08); }
.nvr-pd-wish.active { color: #ff3061; }
.nvr-pd-wish:disabled { opacity: .6; cursor: default; }

.nvr-pd-img {
    display: block; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden;
    background: #f5f5f5; margin-bottom: 10px;
}
.nvr-pd-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.nvr-pd-card:hover .nvr-pd-img img { transform: scale(1.04); }
.nvr-pd-noimg, .nvr-pd-notice {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    color: #bbb; font-size: 12px;
}
.nvr-pd-notice { background: #fff3ea; color: #ff6b01; font-weight: 700; }

.nvr-pd-info { flex: 1; display: flex; flex-direction: column; }
.nvr-pd-cate {
    align-self: flex-start; font-size: 11px; font-weight: 600; color: #3a8afd;
    background: #e2eaf6; padding: 2px 8px; border-radius: 10px; margin-bottom: 6px; text-decoration: none;
}
.nvr-pd-tit {
    font-size: 13.5px; color: #222; line-height: 1.4; text-decoration: none; font-weight: 500;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 6px;
}
.nvr-pd-tit:hover { color: #ff6b01; text-decoration: none; }
.nvr-pd-tit .new_icon {
    display: inline-block; width: 14px; line-height: 14px; font-size: 10px; color: #23db79;
    background: #b9ffda; text-align: center; border-radius: 2px; margin-left: 3px; font-weight: bold;
}

.nvr-pd-price { margin-top: auto; padding-top: 4px; font-size: 13px; color: #1a1a1a; }
.nvr-pd-price strong { font-weight: 700; color: #ff6b01; font-size: 14px; }
.nvr-pd-price-sub { font-size: 12px; color: #bbb; text-decoration: line-through; margin-right: 6px; }
.nvr-pd-price-ask { font-size: 13px; color: #999; font-weight: 600; }

.nvr-pd-meta { display: flex; gap: 10px; margin-top: 6px; font-size: 11.5px; color: #aaa; }

.nvr-pd-empty { grid-column: 1 / -1; text-align: center; color: #aaa; padding: 80px 0; font-size: 14px; }

.nvr-pd-pages { margin: 30px 0 10px; text-align: center; }

@media (min-width: 768px) {
    /* PC에서만 제품명 굵기를 낮춤(모바일은 기존 500 유지) */
    .nvr-pd-tit { font-weight: 400; }
}

@media (max-width: 1200px) {
    #bo_gall #gall_ul.nvr-pd-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 1024px) {
    #bo_gall #gall_ul.nvr-pd-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 767px) {
    /* flex-direction:column일 때는 align-items:flex-start가 교차축(가로)에서 "내용만큼만 좁게+왼쪽정렬"로
       동작해서 목록 영역이 화면 오른쪽까지 안 늘어나는 원인이 됨 — stretch로 강제 전체폭 채움 */
    .nvr-pd-layout { flex-direction: column; align-items: stretch; }
    /* 모바일: 하단 고정메뉴의 "카테고리" 전용 페이지가 있으므로 목록 내 아이템분류 사이드바는 숨김 */
    .nvr-pd-side { display: none; }
    #bo_gall #gall_ul.nvr-pd-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
    .nvr-pd-toolbar { flex-wrap: wrap; gap: 10px; }

    /* 3열로 좁아진 카드에 맞춰 폰트/여백 축소 — 깔끔하게 */
    .nvr-pd-img { margin-bottom: 6px; border-radius: 8px; }
    .nvr-pd-wish { width: 24px; height: 24px; top: 6px; right: 6px; font-size: 11px; }
    .nvr-pd-cate { font-size: 9.5px; padding: 1px 6px; margin-bottom: 4px; }
    .nvr-pd-tit {
        font-size: 11.5px; line-height: 1.35; margin-bottom: 4px;
        -webkit-line-clamp: 1;
    }
    .nvr-pd-tit .new_icon { width: 12px; line-height: 12px; font-size: 8.5px; }
    .nvr-pd-price { font-size: 11px; padding-top: 2px; }
    .nvr-pd-price strong { font-size: 12.5px; }
    .nvr-pd-price-sub { font-size: 9.5px; margin-right: 4px; }
    .nvr-pd-price-ask { font-size: 10.5px; }
    .nvr-pd-meta { font-size: 9.5px; gap: 6px; margin-top: 4px; }
}
