@charset "utf-8";
/* ==========================================================================
   GSBLOC 홈페이지 전용 리디자인 (Naver Shopping 참고)
   파일: theme/basic/css/home.custom.css
   작성: 2026-07-26 — 기존 index.php 로직/쿼리는 건드리지 않고
         마크업(.nvr-* 클래스)에만 적용되는 신규 스타일시트.
   ========================================================================== */

/* ── Font ─────────────────────────────────────────────── */
/* 'Noto Sans SC'(중국어 간체)를 'Noto Sans KR'보다 앞에 둬서 — 한자(CJK 통합 한자) 글자는
   중국어 자형으로, 한글/영문은 자동으로 뒤의 Noto Sans KR로 폴백되어 렌더링됨 */
.nvr-home {
    font-family: 'Noto Sans SC', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
    color: #191919;
    letter-spacing: -0.2px;
    background: #ffffff;
}

/* ── Section container ────────────────────────────────── */
.nvr-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 640px) {
    .nvr-section { padding: 0 14px; }
    /* 그누보드 기본 #container 상단 여백(20px, default.css)이 모바일 메뉴바-배너 사이를
       너무 벌려 보이게 해서 홈 화면에서만 좁힘 */
    #container { margin-top: 0; }
}

/* ── 4-1. Latest (카테고리 칩 리본) ───────────────────── */
.nvr-latest-wrap {
    padding: 24px 0 8px;
    overflow: hidden;
}
.nvr-latest-wrap .latest_wr {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
    white-space: nowrap;
}
.nvr-latest-wrap .latest_wr::-webkit-scrollbar { display: none; }

/* latest_multi()가 생성하는 li/a를 칩 스타일로 */
.nvr-latest-wrap .latest_wr li {
    display: inline-flex;
    flex-shrink: 0;
}
.nvr-latest-wrap .latest_wr a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: #767676;
    background: #f5f5f5;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
}
.nvr-latest-wrap .latest_wr a:hover {
    color: #191919;
    background: #ececec;
}
.nvr-latest-wrap .latest_wr a:active {
    background: #ff6b01;
    color: #fff;
}

@media (max-width: 640px) {
    .nvr-latest-wrap { padding: 16px 0 4px; }
    .nvr-latest-wrap .latest_wr a { padding: 7px 13px; font-size: 12px; }
}

/* ── 4-2. 배너 슬라이드 ──────────────────────────────── */
/* 브라우저 전체 너비(100%)로 꽉 차게 — 부모(max-width) 컨테이너를 뚫고 나가는 풀블리드 기법 */
.nvr-banner-wrap {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 28px;
    padding: 0;
    overflow: hidden;
}
/* 배너 내부 이미지 풀와이드 */
.nvr-banner-wrap img {
    width: 100%;
    display: block;
}
.nvr-banner-wrap .banner_slider {
    border-radius: 16px;
    overflow: hidden;
}
/* 페이지 인디케이터 dot 커스터마이징 */
.nvr-banner-wrap .slick-dots {
    bottom: 14px !important;
}
.nvr-banner-wrap .slick-dots li button:before {
    font-size: 10px !important;
    color: #fff !important;
    opacity: .5 !important;
}
.nvr-banner-wrap .slick-dots li.slick-active button:before {
    opacity: 1 !important;
    color: #fff !important;
}

@media (max-width: 640px) {
    .nvr-banner-wrap { margin-bottom: 20px; }
}

/* ── 4-3. 섹션 헤더 ───────────────────────────────────── */
.nvr-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}
.nvr-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #191919;
    letter-spacing: -0.3px;
}
.nvr-section-title .nvr-accent {
    color: #ff6b01;
    font-weight: 900;
}
.nvr-section-more {
    font-size: 13px;
    color: #767676;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s ease;
}
.nvr-section-more:hover { color: #191919; }

@media (max-width: 640px) {
    .nvr-section-title { font-size: 17px; }
    .nvr-section-header { margin-bottom: 14px; }
}

/* ── 4-3. 상품 그리드 ────────────────────────────────────
     네이버쇼핑 스타일 정사각 썸네일 + 하단 정보 카드       */
.nvr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
@media (min-width: 641px) {
    .nvr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .nvr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .nvr-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .nvr-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 640px) {
    /* 모바일: 2행 고정 + 가로 스와이프(네이버쇼핑 스타일). 3열씩 보이고 옆으로 밀면 나머지 노출 */
    .nvr-grid {
        grid-template-columns: none;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 2 * 12px) / 3);
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nvr-grid::-webkit-scrollbar { display: none; }
    .nvr-grid > .nvr-item { scroll-snap-align: start; }
}

/* ── 상품 카드 ────────────────────────────────────────── */
.nvr-item {
    display: block;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .25s ease, transform .25s ease;
}
.nvr-item:hover {
    box-shadow: 0 8px 28px rgba(25,25,25,.08);
    transform: translateY(-3px);
}

/* 1:1 정사각 썸네일 */
.nvr-item-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f7f7;
}
.nvr-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.nvr-item:hover .nvr-item-thumb img {
    transform: scale(1.06);
}

/* 관심상품(찜) 버튼 — 썸네일 우상단 */
.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; }

/* 썸네일 상단 게시판명 배지 (overlay) */
.nvr-item-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(25,25,25,.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.1px;
    line-height: 1.4;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 하단 정보 영역 */
.nvr-item-body {
    padding: 12px 12px 14px;
}
@media (max-width: 640px) {
    .nvr-item-body { padding: 10px 10px 12px; }
}

/* 상품명 (2줄 말줄임) */
.nvr-item-title {
    font-size: 13.5px;
    font-weight: 500;
    color: #191919;
    line-height: 1.45;
    letter-spacing: -0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
@media (max-width: 640px) {
    .nvr-item-title { font-size: 12.5px; }
}

/* 게시판명 pill (하단 정보 영역 상단) */
.nvr-item-badge-bottom {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    background: #f2f2f2;
    color: #999;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: -0.1px;
    margin-bottom: 6px;
}

/* 날짜 */
.nvr-item-date {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    color: #b0b0b0;
    font-weight: 400;
}

/* 가격 슬롯 (미래 대비, 현재는 빈 영역) */
.nvr-price {
    display: none;
}

/* ── 빈 상태 ──────────────────────────────────────────── */
.nvr-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #b0b0b0;
    padding: 80px 0;
    font-size: 14px;
    font-weight: 400;
}

/* ── 로딩 스피너 ──────────────────────────────────────── */
.nvr-loading {
    text-align: center;
    padding: 28px 0;
}
.nvr-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #ececec;
    border-top-color: #ff6b01;
    border-radius: 50%;
    animation: nvr-spin .7s linear infinite;
}
@keyframes nvr-spin {
    to { transform: rotate(360deg); }
}
.nvr-loading-text {
    margin-top: 8px;
    font-size: 13px;
    color: #b0b0b0;
}

/* ── 종료 메시지 ──────────────────────────────────────── */
.nvr-end-msg {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #ccc;
}

/* ── 센티넬 ───────────────────────────────────────────── */
.nvr-sentinel {
    height: 2px;
}

/* ── 페이지 배경 (기존 #wrapper 덮어쓰기) ─────────────── */
body { background: #ffffff; }
