/*
 * it-hp NETGEAR 판매 페이지 전용 스타일 (/sub/netgear 목록, /sub/netgear-product 상세)
 * - style.css(Vite 번들)에 섞지 않고 $additional_css 훅으로만 로드한다.
 * - 테마 변수(--blue-*, --border-*, --text-*, --bg-*)를 우선 쓰고 단색만 쓴다(그라데이션 없음).
 * - 접두사: 페이지 공통 .ngp-*, 쇼핑 화면 .ngs-* (다른 상점 CSS 와 겹치지 않게)
 * - 바로구매(결제)가 없으므로 결제·배송지 스타일은 두지 않는다.
 */

.ngp-page {
    word-break: keep-all;
    overflow-wrap: break-word;
}

.ngp-page *,
.ngp-page *::before,
.ngp-page *::after {
    box-sizing: border-box;
}

.ngp-page .section-header p,
.ngp-page .page-header p {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.ngp-page h1,
.ngp-page h2,
.ngp-page h3 {
    text-wrap: balance;
}

.ngp-page .breadcrumb {
    flex-wrap: wrap;
    row-gap: 4px;
}

.ngp-page .breadcrumb li {
    min-width: 0;
    max-width: 100%;
}

.ngp-page .breadcrumb-item.active {
    white-space: normal;
    overflow-wrap: anywhere;
}

.ngp-page .page-header {
    padding: calc(var(--header-h, 76px) + 18px) 0 22px;
}

.ngp-nw {
    white-space: nowrap;
}

.ngp-fineprint {
    margin: 10px 0 0;
    color: var(--text-light, #667085);
    font-size: 0.8125rem;
    line-height: 1.6;
}

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

.ngp-page a:focus-visible,
.ngp-page button:focus-visible,
.ngp-page summary:focus-visible {
    outline: 2px solid var(--blue-600, #0b4dd8);
    outline-offset: 2px;
}

/* ── 판매 안내 띠 ─────────────────────────────────── */
.ngs-brand {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color, #e3e8ef);
    background: #fff;
}

.ngs-brand-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}

.ngs-brand-logo {
    display: block;
    width: 140px;
    height: auto;
}

.ngs-brand-text {
    flex: 1 1 300px;
    margin: 0;
    color: var(--text-secondary, #344054);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.ngs-brand-text strong {
    color: var(--text-primary, #101828);
}

.ngs-brand-link {
    padding: 8px 18px;
    border: 1px solid var(--blue-600, #0b4dd8);
    border-radius: 999px;
    color: var(--blue-600, #0b4dd8);
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.ngs-brand-link:hover,
.ngs-brand-link:focus-visible {
    background: var(--blue-600, #0b4dd8);
    color: #fff;
}

/* ── 쇼핑 영역 ───────────────────────────────────── */
.ngs-shop {
    padding: 8px 0 48px;
}

.ngs-shop-title {
    margin: 24px 0 8px;
    text-align: center;
}

.ngs-version {
    margin: 8px 0 14px;
    color: var(--text-muted, #475467);
    font-size: 0.875rem;
    line-height: 1.6;
}

.ngs-filterbox {
    border: 1px solid var(--border-color, #e3e8ef);
    border-radius: var(--radius-lg, 12px);
    background: #fff;
    overflow: hidden;
}

.ngs-row {
    display: flex;
    gap: 12px 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light, #eef1f5);
}

.ngs-row:last-child {
    border-bottom: 0;
}

.ngs-row-label {
    flex: 0 0 64px;
    padding-top: 7px;
    color: var(--blue-700, #0a3fb0);
    font-size: 0.875rem;
    font-weight: 800;
}

.ngs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

/* 카테고리·특징은 이름 전체가 보이게 세로로 쌓는다. */
.ngs-row-cat,
.ngs-row-sub {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.ngs-row-cat .ngs-row-label,
.ngs-row-sub .ngs-row-label {
    flex: none;
    padding-top: 0;
}

.ngs-row-cat .ngs-chips,
.ngs-row-sub .ngs-chips {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
}

.ngs-row-cat .ngs-chip,
.ngs-row-sub .ngs-chip {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    border-radius: 8px;
    white-space: normal;
    line-height: 1.35;
}

.ngs-chip {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border-color, #e3e8ef);
    border-radius: 999px;
    background: #fff;
    color: var(--text-secondary, #344054);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.ngs-chip-name {
    min-width: 0;
    font-weight: 600;
}

.ngs-chip-n {
    flex: 0 0 auto;
    margin-left: 8px;
    color: var(--text-light, #667085);
    font-weight: 500;
}

.ngs-chip:hover,
.ngs-chip:focus-visible {
    border-color: var(--blue-500, #1e63f0);
    color: var(--blue-600, #0b4dd8);
}

.ngs-chip.active {
    border-color: var(--blue-600, #0b4dd8);
    background: var(--blue-600, #0b4dd8);
    color: #fff;
}

.ngs-chip.active .ngs-chip-n {
    color: #dbe6ff;
}

.ngs-chip-sub {
    padding: 4px 12px;
    font-size: 0.8125rem;
}

.ngs-row-sub,
.ngs-search {
    background: var(--bg-light, #f5f7fa);
}

.ngs-search {
    flex-wrap: wrap;
    align-items: flex-end;
}

.ngs-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin: 0;
    color: var(--text-muted, #475467);
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: left;
}

.ngs-field input,
.ngs-field select {
    padding: 8px 10px;
    border: 1px solid var(--border-color, #d0d5dd);
    border-radius: 6px;
    background: #fff;
    color: var(--text-primary, #101828);
    font-size: 0.9375rem;
}

.ngs-field-q {
    flex: 1 1 260px;
}

.ngs-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ngs-range input {
    width: 112px;
    min-width: 0;
}

.ngs-range i {
    font-style: normal;
    color: var(--text-light, #667085);
}

.ngs-search-btns {
    display: flex;
    gap: 8px;
}

.ngs-count {
    margin: 10px 0 8px;
    color: var(--text-secondary, #344054);
    font-size: 0.9375rem;
}

.ngs-count strong {
    color: var(--blue-600, #0b4dd8);
}

.ngs-count-page {
    margin-left: 6px;
    color: var(--text-light, #667085);
    font-size: 0.8125rem;
}

.ngs-shop-main {
    min-width: 0;
}

@media (min-width: 900px) {
    .ngs-shop-layout {
        display: grid;
        grid-template-columns: 248px minmax(0, 1fr);
        gap: 16px 20px;
        align-items: start;
    }

    .ngs-shop-layout .ngs-filterbox {
        position: sticky;
        top: calc(var(--header-h, 76px) + 8px);
        z-index: 20;
        max-height: calc(100vh - var(--header-h, 76px) - 20px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .ngs-shop-layout .ngs-search {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .ngs-shop-layout .ngs-field,
    .ngs-shop-layout .ngs-field-q {
        flex: 0 0 auto;
        width: 100%;
    }

    .ngs-shop-layout .ngs-field input,
    .ngs-shop-layout .ngs-field select,
    .ngs-shop-layout .ngs-range {
        width: 100%;
        min-width: 0;
    }

    .ngs-shop-layout .ngs-range input {
        flex: 1 1 0;
        width: auto;
    }

    .ngs-shop-layout .ngs-search-btns {
        width: 100%;
    }

    .ngs-shop-layout .ngs-search-btns .btn {
        flex: 1 1 0;
    }
}

/* 헤더(1320)보다 넓게. 노트북은 양옆 20px, 큰 화면은 1840에서 멈춘다. */
.container.mall-bleed {
    width: 100%;
    max-width: 1840px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 900px) {
    .container.mall-bleed {
        width: min(1840px, calc(100% - 40px));
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ── 제품 카드: 오픈마켓형, 사진이 칸의 대부분 ───── */
.ngs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ngs-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #ededed;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.ngs-card:hover {
    border-color: var(--blue-500, #1e63f0);
    box-shadow: var(--shadow-md, 0 4px 10px -2px rgba(16, 24, 40, 0.08));
}

.ngs-card-img {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: #fff;
}

.ngs-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 4px;
    box-sizing: border-box;
    object-fit: contain;
    background: #fff;
}

.ngs-card-img.is-placeholder,
.ngs-detail-img.is-placeholder {
    background: var(--bg-light, #f5f7fa);
}

.ngs-card-img.is-placeholder img {
    padding: 18%;
    opacity: 0.85;
}

.ngs-badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #067647;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.ngs-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 8px 10px 10px;
    border-top: 1px solid #f2f4f7;
}

.ngs-card-group {
    margin: 0 0 4px;
    color: var(--text-light, #667085);
    font-size: 0.75rem;
}

.ngs-card-name {
    display: -webkit-box;
    margin: 0 0 4px;
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ngs-card-name a {
    color: var(--text-primary, #101828);
    text-decoration: none;
}

.ngs-card-name a:hover,
.ngs-card-name a:focus-visible {
    color: var(--blue-600, #0b4dd8);
}

.ngs-card-spec {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--text-secondary, #344054);
    font-size: 0.8125rem;
    line-height: 1.45;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.ngs-card-price {
    margin: auto 0 10px;
    color: var(--text-primary, #101828);
}

.ngs-price-label {
    color: var(--text-light, #667085);
    font-size: 0.75rem;
    font-weight: 500;
}

.ngs-filter-more > summary {
    display: none;
}

@media (min-width: 821px) {
    .ngs-filter-more > .ngs-search {
        display: flex !important;
    }
}

.ngs-parts-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 16px 0 8px;
    overflow-x: auto;
}

.ngs-parts {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.ngs-parts th,
.ngs-parts td {
    padding: 10px 8px;
    border-bottom: 1px solid #e4e7ec;
    text-align: left;
    vertical-align: top;
}

.ngs-parts th {
    color: #667085;
    font-size: 0.75rem;
    font-weight: 600;
}

.ngs-parts .num {
    text-align: right;
    white-space: nowrap;
}

.ngs-card-price strong {
    color: #e11d2e;
    font-size: 1.25rem;
    font-weight: 800;
}

.ngs-detail-price strong {
    color: #e11d2e;
    font-size: 1.75rem;
    font-weight: 800;
}

.ngs-card-price .ngs-price-service,
.ngs-detail-price .ngs-price-service {
    font-size: 0.9375rem;
}

.ngs-add {
    width: auto;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--blue-600, #0b4dd8);
    border-radius: 8px;
    background: #fff;
    color: var(--blue-600, #0b4dd8);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.ngs-add:hover,
.ngs-add:focus-visible {
    background: var(--blue-600, #0b4dd8);
    color: #fff;
}

.ngs-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
}

.ngs-actions .ngs-add,
.ngs-actions .ngs-buy-now {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 44px;
}

.ngs-buy-now {
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--blue-600, #0b4dd8);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.ngs-buy-now:hover,
.ngs-buy-now:focus-visible {
    background: var(--blue-700, #0a3fb0);
}

.ngs-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary, #344054);
}

.ngs-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 28px 0 8px;
}

/* 페이지 번호 버튼만. main.ngs-page 처럼 본문에 붙이면 목록 문장이 가운데로 정렬된다. */
.ngs-pager .ngs-page {
    min-width: 38px;
    padding: 8px 12px;
    border: 1px solid var(--border-color, #e3e8ef);
    border-radius: 8px;
    background: #fff;
    color: var(--text-secondary, #344054);
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.ngs-pager .ngs-page:hover,
.ngs-pager .ngs-page:focus-visible {
    border-color: var(--blue-500, #1e63f0);
    color: var(--blue-600, #0b4dd8);
}

.ngs-pager .ngs-page.active {
    border-color: var(--blue-600, #0b4dd8);
    background: var(--blue-600, #0b4dd8);
    color: #fff;
}

.ngs-page-gap {
    padding: 8px 4px;
    color: var(--text-light, #667085);
}

/* ── 베이 수별 표 ────────────────────────────────── */
.ngp-table-wrap {
    position: relative; /* 표 안 링크의 절대 위치 요소가 문서 가로 폭을 넓히지 않게 이 상자를 기준으로 가둔다 */
    width: 100%;
    max-width: 880px;
    min-width: 0;
    margin: 24px auto 0;
    overflow-x: auto;
}

.ngp-bay-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.ngp-bay-table th,
.ngp-bay-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light, #eef1f5);
    font-size: 0.9375rem;
    text-align: left;
}

.ngp-bay-table thead th {
    border-bottom: 2px solid var(--text-primary, #101828);
    color: var(--text-muted, #475467);
    font-size: 0.8125rem;
}

.ngp-bay-table a {
    color: var(--blue-600, #0b4dd8);
    font-weight: 700;
    white-space: nowrap;
}

.ngp-num {
    text-align: right !important;
    white-space: nowrap;
}

/* ── 견적 요청 ───────────────────────────────────── */
.ngp-kind {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.ngp-kind-opt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border-color, #d0d5dd);
    border-radius: var(--radius-md, 8px);
    background: #fff;
    cursor: pointer;
}

.ngp-kind-opt:has(input:checked) {
    border-color: var(--blue-600, #0b4dd8);
    background: var(--blue-50, #eaf1ff);
}

.ngp-kind-opt input {
    margin-top: 4px;
}

.ngp-kind-opt strong {
    display: block;
    color: var(--text-primary, #101828);
    font-size: 0.9375rem;
}

.ngp-kind-opt small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted, #475467);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.ngp-cart-empty {
    padding: 20px;
    border: 1px dashed var(--border-color, #e3e8ef);
    border-radius: var(--radius-md, 8px);
    background: var(--bg-light, #f5f7fa);
    color: var(--text-muted, #475467);
    text-align: center;
}

.ngp-table-wrap.ngp-cart-wrap {
    max-width: none;
    margin: 0;
}

.ngp-cart-table {
    width: 100%;
    min-width: 340px;
    border-collapse: collapse;
}

.ngp-cart-table th,
.ngp-cart-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-light, #eef1f5);
    font-size: 0.9375rem;
    text-align: left;
    word-break: break-all;
}

.ngp-cart-table th {
    color: var(--text-muted, #475467);
    font-size: 0.8125rem;
}

.ngp-qty-input {
    width: 72px;
    padding: 4px 6px;
    border: 1px solid var(--border-color, #d0d5dd);
    border-radius: 6px;
}

.ngp-del {
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: #b42318;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.ngp-cart-sum {
    margin: 12px 0 4px;
    text-align: right;
    font-size: 1rem;
}

.ngp-cart-sum strong {
    margin-left: 8px;
    color: var(--blue-600, #0b4dd8);
    font-size: 1.25rem;
}

.ngp-config,
.ngp-project {
    margin: 14px 0 16px;
    padding: 16px 16px 4px;
    border-radius: var(--radius-md, 8px);
}

.ngp-config {
    border: 1px solid var(--border-color, #d0d5dd);
    background: #fff;
}

.ngp-project {
    border: 1px solid var(--blue-500, #1e63f0);
    background: var(--blue-50, #eaf1ff);
}

.ngp-project[hidden] {
    display: none;
}

.ngp-buy {
    margin: 4px 0 16px;
    padding: 16px 16px 4px;
    border: 1px solid var(--border-color, #d0d5dd);
    border-radius: var(--radius-md, 8px);
    background: #fff;
}

.ngp-buy[hidden] {
    display: none;
}

.ngp-buy legend {
    float: none;
    width: auto;
    margin: 0 0 6px;
    padding: 0 8px;
    color: var(--text-primary, #101828);
    font-size: 0.9375rem;
    font-weight: 800;
}

.ngp-addr-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ngp-addr-row .form-control {
    max-width: 140px;
}

.ngp-config legend,
.ngp-project legend {
    float: none;
    width: auto;
    margin: 0 0 6px;
    padding: 0 8px;
    font-size: 0.9375rem;
    font-weight: 800;
}

.ngp-config legend {
    color: var(--text-primary, #101828);
}

.ngp-config legend small {
    color: var(--text-light, #667085);
    font-weight: 500;
}

.ngp-project legend {
    color: var(--blue-700, #0a3fb0);
}

.ngp-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    margin: 0 0 12px;
    font-size: 0.9375rem;
}

.ngp-consent {
    margin: 4px 0 16px;
    font-size: 0.875rem;
    color: var(--text-secondary, #344054);
}

.ngp-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ngp-result {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md, 8px);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.ngp-result-ok {
    border: 1px solid #abefc6;
    background: #ecfdf3;
    color: #067647;
}

.ngp-result-error {
    border: 1px solid #fecdca;
    background: #fef3f2;
    color: #b42318;
}

/* ── 구매 안내 / 활용 분야 / 절차 / FAQ ───────────── */
.ngp-notices {
    max-width: 880px;
    margin: 8px auto 0;
    padding: 18px 22px 18px 2.5em;
    border: 1px solid var(--border-color, #e3e8ef);
    border-radius: var(--radius-lg, 12px);
    background: #fff;
    color: var(--text-secondary, #344054);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.7;
    text-align: left;
    list-style-position: outside;
}

.ngp-notices li {
    text-align: left;
    word-break: keep-all;
    overflow-wrap: break-word;
    padding-left: 0.35em;
}

.ngp-notices li + li {
    margin-top: 10px;
}

.ngp-cases {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.ngp-case {
    padding: 22px 18px;
    border: 1px solid var(--border-color, #e3e8ef);
    border-radius: var(--radius-lg, 12px);
    background: #fff;
}

.ngp-case > i {
    margin-bottom: 12px;
    color: var(--blue-600, #0b4dd8);
    font-size: 1.5rem;
}

.ngp-case h3 {
    margin: 0 0 8px;
    font-size: 1.0625rem;
}

.ngp-case p {
    margin: 0 0 8px;
    color: var(--text-secondary, #344054);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.ngp-case a {
    color: var(--blue-600, #0b4dd8);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.ngp-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.ngp-steps li {
    padding: 20px 16px;
    border: 1px solid var(--border-color, #e3e8ef);
    border-radius: var(--radius-lg, 12px);
    background: #fff;
}

.ngp-step-no {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--blue-600, #0b4dd8);
    font-size: 1.25rem;
    font-weight: 800;
}

.ngp-steps h3 {
    margin: 0 0 6px;
    font-size: 1.0625rem;
}

.ngp-steps p {
    margin: 0;
    color: var(--text-secondary, #344054);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.ngp-faq {
    max-width: 880px;
    margin: 24px auto 0;
}

.ngp-faq details {
    margin-bottom: 10px;
    border: 1px solid var(--border-color, #e3e8ef);
    border-radius: var(--radius-md, 8px);
    background: #fff;
}

.ngp-faq summary {
    padding: 16px 18px;
    cursor: pointer;
    font-size: 1.0625rem;
    font-weight: 700;
}

.ngp-faq details p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--text-secondary, #344054);
    line-height: 1.8;
}

/* ── 상세 ────────────────────────────────────────── */
.ngs-product-header {
    padding-bottom: 24px;
}

.ngs-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 24px;
    align-items: start;
}

.ngs-detail-visual {
    min-width: 0;
}

.ngs-detail-img {
    position: relative;
    border: 1px solid var(--border-color, #e3e8ef);
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.ngs-detail-img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.ngs-detail-img.is-placeholder img {
    padding: 22%;
}

.ngs-img-note {
    margin: 0;
    padding: 10px 14px;
    border-top: 1px solid var(--border-light, #eef1f5);
    color: var(--text-muted, #475467);
    font-size: 0.8125rem;
    text-align: center;
}

.ngs-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* 목록 썸네일 줄은 대표 사진과 겹치고 구매 버튼을 화면 밖으로 민다. 상세 썸네일은 .ngs-thumbs 만 쓴다. */
.ngs-thumbs-card {
    display: none;
}

.ngs-thumbs-card::-webkit-scrollbar {
    display: none;
}

.ngs-thumbs-card .ngs-thumb {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    border-radius: 2px;
}

.ngs-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    padding: 2px;
    border: 1px solid var(--border-color, #d0d5dd);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.ngs-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ngs-thumb.is-on {
    border-color: var(--blue-600, #0b4dd8);
    box-shadow: inset 0 0 0 1px var(--blue-600, #0b4dd8);
}

.ngs-detail-group {
    margin: 0 0 6px;
    color: var(--text-muted, #475467);
    font-size: 0.875rem;
}

.ngs-detail-group a {
    color: var(--blue-600, #0b4dd8);
    font-weight: 700;
    text-decoration: none;
}

.ngs-detail-title {
    margin: 0 0 8px;
    font-size: 1.75rem;
    line-height: 1.3;
    word-break: break-all;
}

.ngs-detail-spec {
    margin: 0 0 18px;
    color: var(--text-secondary, #344054);
    line-height: 1.7;
}

.ngs-detail-price {
    margin: 0;
    padding: 14px 16px;
    border-top: 2px solid var(--text-primary, #101828);
    background: var(--bg-light, #f5f7fa);
}

.ngs-detail-price strong {
    margin-left: 8px;
    font-size: 1.625rem;
}

.ngs-detail-note {
    margin: 8px 0 14px;
    color: var(--text-muted, #475467);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.ngs-meta {
    margin: 0 0 18px;
    border-top: 1px solid var(--border-color, #e3e8ef);
}

.ngs-meta > div {
    display: flex;
    gap: 16px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--border-light, #eef1f5);
    font-size: 0.9375rem;
}

.ngs-meta dt {
    flex: 0 0 72px;
    color: var(--text-muted, #475467);
    font-weight: 600;
}

.ngs-meta dd {
    margin: 0;
    color: var(--text-primary, #101828);
}

.ngs-buy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ngs-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color, #d0d5dd);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.ngs-qty button {
    width: 40px;
    height: 46px;
    border: 0;
    background: #fff;
    color: var(--text-primary, #101828);
    font-size: 1.125rem;
    cursor: pointer;
}

.ngs-qty button:hover {
    background: var(--bg-light, #f5f7fa);
}

.ngs-qty input {
    width: 56px;
    height: 46px;
    border: 0;
    border-right: 1px solid var(--border-light, #eef1f5);
    border-left: 1px solid var(--border-light, #eef1f5);
    text-align: center;
    font-size: 1rem;
    -moz-appearance: textfield;
}

.ngs-qty input::-webkit-outer-spin-button,
.ngs-qty input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.ngs-detail-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 14px 0 0;
}

.ngs-detail-links a {
    color: var(--blue-600, #0b4dd8);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}

.ngs-detail-links a:hover {
    text-decoration: underline;
}

/* 탭 */
.ngs-tabbar {
    display: flex;
    position: sticky;
    top: var(--header-h, 72px);
    z-index: 30;
    margin: 36px 0 18px;
    border-top: 1px solid var(--border-color, #e3e8ef);
    border-bottom: 1px solid var(--border-color, #e3e8ef);
    background: var(--bg-light, #f5f7fa);
    overflow-x: auto;
    scrollbar-width: none;
}

.ngs-tabbar::-webkit-scrollbar {
    display: none;
}

.ngs-tab {
    flex: 1 0 auto;
    min-width: 110px;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: var(--text-secondary, #344054);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
}

.ngs-tab.is-on {
    background: var(--blue-600, #0b4dd8);
    color: #fff;
}

.ngs-tab:focus-visible {
    outline: 2px solid var(--blue-700, #0a3fb0);
    outline-offset: -2px;
}

.ngs-block {
    margin-top: 44px;
}

.ngs-tabbar[hidden] {
    display: none;
}

/* JS 가 탭을 켜기 전(또는 JS 없음)에는 패널이 차례로 모두 보인다 */
.ngs-tabs .ngs-block {
    margin-top: 36px;
}

.ngs-tabs.is-ready .ngs-block {
    margin-top: 0;
}

.ngs-block > h2 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--text-primary, #101828);
    font-size: 1.25rem;
}

/* 상세 정보 긴 이미지: 조각을 틈 없이 세로로 잇는다(자연 크기, 최대 860px) */
.ngs-sheets {
    max-width: 860px;
    margin: 0 auto;
}

.ngs-sheet {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.ngs-spec-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--border-color, #e3e8ef);
}

.ngs-spec-table th,
.ngs-spec-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-light, #eef1f5);
    color: var(--text-primary, #101828);
    font-size: 0.9375rem;
    text-align: left;
    vertical-align: top;
}

.ngs-spec-table th {
    width: 150px;
    background: var(--bg-light, #f5f7fa);
    color: var(--text-muted, #475467);
    font-weight: 700;
}

.ngs-support {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}

.ngs-support article {
    padding: 16px;
    border: 1px solid var(--border-color, #e3e8ef);
    border-radius: var(--radius-md, 8px);
    background: #fff;
}

.ngs-support h3 {
    margin: 0 0 8px;
    font-size: 1.0625rem;
}

.ngs-support p {
    margin: 0 0 6px;
    color: var(--text-secondary, #344054);
    line-height: 1.55;
}

.ngs-support a,
.ngs-guide a {
    color: var(--blue-600, #0b4dd8);
    font-weight: 700;
}

.ngs-guide {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary, #344054);
    line-height: 1.85;
}

.ngs-grid-related {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ── 하단 바 / 토스트 ────────────────────────────── */
.ngs-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    padding: 10px 16px;
    background: #0d1b2e;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
}

.ngs-bar[hidden],
.ngs-toast[hidden] {
    display: none;
}

.ngs-toast {
    position: fixed;
    left: 50%;
    bottom: 72px;
    z-index: 950;
    max-width: calc(100vw - 32px);
    padding: 10px 18px;
    border-radius: 999px;
    background: #101828;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    transform: translateX(-50%);
}

/* ── 반응형 ──────────────────────────────────────── */
@media (min-width: 821px) {
    body:has(.ngp-page) .cta-buttons {
        right: 16px;
        bottom: 16px;
        flex-direction: row;
        gap: 8px;
    }

    body:has(.ngp-page) .btn-back-to-top {
        right: auto;
        left: 16px;
        bottom: 16px;
    }
}

@media (max-width: 1100px) {
    .ngs-grid,
    .ngs-grid-related {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ngp-cases {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ngp-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .ngs-shop-layout .ngs-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) and (max-width: 1040px) {
    .ngs-shop-layout .ngs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .ngs-shop {
        padding-bottom: 108px;
    }

    .ngs-grid,
    .ngs-grid-related {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .ngs-card:has(.ngs-card-img) {
        flex-direction: row;
        align-items: stretch;
    }

    .ngs-card-img {
        flex: 0 0 112px;
        width: 112px;
        min-height: 112px;
        aspect-ratio: auto;
        border-right: 1px solid #f2f4f7;
    }

    .ngs-card-img img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 6px;
    }

    .ngs-card-body {
        min-width: 0;
        padding: 8px 10px 10px;
        border-top: 0;
    }

    .ngs-card-spec {
        display: -webkit-box;
        margin-bottom: 6px;
        font-size: 0.8125rem;
        -webkit-line-clamp: 3;
    }

    .ngs-card:not(:has(.ngs-card-img)) .ngs-card-spec {
        display: -webkit-box;
    }

    .ngs-card-group {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .ngs-card-name {
        font-size: 0.9375rem;
        -webkit-line-clamp: 2;
    }

    .ngs-card-price {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 6px;
        margin: 2px 0 8px;
    }

    .ngs-card-price strong {
        font-size: 1.125rem;
    }

    .ngs-actions .ngs-add,
    .ngs-actions .ngs-buy-now {
        flex: 1 1 0;
        min-height: 44px;
        padding: 8px 8px;
        font-size: 0.8125rem;
        white-space: nowrap;
    }

    .ngs-filter-more > summary {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 14px;
        background: var(--bg-light, #f5f7fa);
        color: var(--blue-700, #0a3fb0);
        font-size: 0.875rem;
        font-weight: 800;
        cursor: pointer;
        list-style: none;
    }

    .ngs-filter-more > summary::-webkit-details-marker {
        display: none;
    }

    .ngs-filter-more > summary::before {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-top: -4px;
    }

    .ngs-filter-more[open] > summary::before {
        transform: rotate(225deg);
        margin-top: 3px;
    }

    .ngs-row-label {
        flex: 0 0 auto;
        padding-top: 0;
        white-space: nowrap;
    }

    .ngs-search {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }

    .ngs-field-q {
        flex-basis: auto;
    }

    .ngs-field,
    .ngs-field input,
    .ngs-field select {
        width: 100%;
    }

    .ngs-chips {
        gap: 6px;
    }

    .ngs-chip {
        padding: 5px 11px;
        font-size: 0.8125rem;
    }

    .ngs-range input {
        flex: 1 1 0;
        width: auto;
    }

    .ngs-search-btns {
        width: 100%;
    }

    .ngs-search-btns .btn {
        flex: 1;
    }

    .ngs-brand-text {
        flex: 1 1 100%;
        min-width: 0;
    }

    .ngp-page .page-header h1 {
        font-size: 1.625rem !important;
        line-height: 1.3 !important;
        text-wrap: wrap;
        overflow-wrap: anywhere;
    }

    .ngp-page .page-header p {
        font-size: 0.9375rem !important;
        text-wrap: wrap;
        overflow-wrap: anywhere;
    }

    .ngp-table-wrap {
        max-width: 100%;
    }

    .ngs-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .ngs-detail > * {
        min-width: 0;
    }

    .ngs-detail-title {
        font-size: 1.5rem;
    }

    .ngs-buy .btn {
        flex: 1 1 140px;
    }

    .ngs-support,
    .ngp-kind,
    .ngp-cases,
    .ngp-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .ngs-parts {
        min-width: 480px;
    }

    .ngs-spec-table th {
        width: 96px;
    }

    

    

    

    

    .ngp-notices {
        padding: 14px 14px 14px 2.2em;
    }

    .ngp-page .page-header {
        padding: calc(var(--header-h, 64px) + 10px) 0 12px;
    }

    .ngp-page .ngs-brand {
        display: none;
    }

    .ngs-version {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    body:has(.ngp-page) .cta-buttons {
        left: 10px;
        right: auto;
        bottom: 12px;
        flex-direction: row;
    }

    body:has(.ngp-page) .btn-back-to-top {
        left: 10px;
        right: auto;
        bottom: 70px;
    }
}

@media (max-width: 520px) {
    .ngs-card-img {
        flex-basis: 96px;
        width: 96px;
    }

    .ngs-card-name {
        -webkit-line-clamp: 2;
    }

    .ngs-actions {
        flex-direction: row;
    }

    .ngs-actions .ngs-add,
    .ngs-actions .ngs-buy-now {
        flex: 1 1 0;
        width: auto;
    }

    .ngs-parts {
        min-width: 0;
    }

    .ngs-parts th,
    .ngs-parts td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .ngs-meta > div {
        gap: 10px;
    }

    .ngs-meta dt {
        flex-basis: 64px;
    }

    .ngp-bay-table th,
    .ngp-bay-table td {
        padding: 8px 6px;
        font-size: 0.875rem;
    }
}

/* 목록은 한 줄(사진 · 설명 · 가격·배송·버튼). 관련 상품 격자는 .ngs-grid 그대로. */
.ngs-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color, #e3e8ef);
    border-radius: 8px;
    background: #fff;
    min-width: 0;
    max-width: 100%;
}

.ngs-toolbar-search {
    display: flex;
    flex: 1 1 280px;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ngs-toolbar-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color, #d0d5dd);
    border-radius: 6px;
    background: #fff;
    color: var(--text-primary, #101828);
    font-size: 0.9375rem;
}

.ngs-toolbar-search .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ngs-sorts {
    display: flex;
    flex: 1 1 280px;
    gap: 2px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
}

.ngs-sort {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary, #344054);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.ngs-sort:hover,
.ngs-sort:focus-visible {
    color: #e11d2e;
}

.ngs-sort.active {
    border-bottom-color: #e11d2e;
    color: #e11d2e;
}

.ngs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.ngs-list > .ngs-card {
    flex-direction: row;
    align-items: stretch;
}

.ngs-list > .ngs-card > .ngs-card-img {
    flex: 0 0 168px;
    width: 168px;
    min-height: 148px;
    aspect-ratio: auto;
    align-self: stretch;
    border-right: 1px solid #f2f4f7;
}

.ngs-list > .ngs-card > .ngs-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 8px;
}

.ngs-list .ngs-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 8px 18px;
    align-items: center;
    border-top: 0;
    padding: 14px 16px;
}

.ngs-list .ngs-card-copy {
    min-width: 0;
}

.ngs-list .ngs-card-name {
    font-size: 1.0625rem;
    -webkit-line-clamp: 2;
}

.ngs-list .ngs-card-spec {
    -webkit-line-clamp: 2;
    margin-bottom: 0;
}

.ngs-list .ngs-card-buy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-width: 0;
}

.ngs-list .ngs-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px 6px;
    margin: 0;
    text-align: right;
}

.ngs-list .ngs-card-price strong {
    font-size: 1.5rem;
}

.ngs-list .ngs-card-price .ngs-price-service {
    font-size: 1.0625rem;
}

.ngs-card-ship {
    margin: 0;
    color: #067647;
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: right;
}

.ngs-card-ship.is-fee {
    color: var(--text-muted, #475467);
    font-weight: 600;
}

.ngs-list .ngs-actions {
    flex-direction: column;
}

.ngs-list .ngs-actions .ngs-add,
.ngs-list .ngs-actions .ngs-buy-now {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 900px) and (max-width: 1100px) {
    .ngs-list > .ngs-card > .ngs-card-img {
        flex-basis: 128px;
        width: 128px;
        min-height: 128px;
    }

    .ngs-list .ngs-card-body {
        grid-template-columns: minmax(0, 1fr) 168px;
        gap: 8px 12px;
        padding: 10px 12px;
    }

    .ngs-list .ngs-card-price strong {
        font-size: 1.25rem;
    }
}

@media (max-width: 820px) {
    .ngs-toolbar {
        align-items: stretch;
    }

    .ngs-toolbar-search {
        flex-basis: 100%;
    }

    .ngs-list > .ngs-card > .ngs-card-img {
        flex-basis: 104px;
        width: 104px;
        min-height: 104px;
    }

    .ngs-list .ngs-card-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 8px 10px;
    }

    .ngs-list .ngs-card-price,
    .ngs-list .ngs-card-ship {
        justify-content: flex-start;
        text-align: left;
    }

    .ngs-list .ngs-card-price strong {
        font-size: 1.25rem;
    }

    .ngs-list .ngs-actions {
        flex-direction: row;
    }

    .ngs-list .ngs-actions .ngs-add,
    .ngs-list .ngs-actions .ngs-buy-now {
        flex: 1 1 0;
        width: auto;
    }
}

/* 제품 소개 · 주요 특징 · 상세 제원 (2026-11-19, 공식 제품 정보) */
.ngs-detail-tagline {
    margin: 0 0 8px;
    color: var(--primary-color, #1f4fd8);
    font-weight: 700;
    line-height: 1.5;
}

.ngs-sub {
    margin: 30px 0 14px;
    font-size: 1.0625rem;
}

.ngs-intro {
    max-width: 860px;
    padding: 20px 22px;
    background: var(--bg-light, #f5f7fa);
    border-radius: 10px;
    line-height: 1.8;
    color: var(--text-secondary, #344054);
}

.ngs-intro p {
    margin: 0;
}

.ngs-intro .ngs-intro-lead {
    margin-bottom: 8px;
    color: var(--text-primary, #101828);
    font-size: 1.0625rem;
    font-weight: 700;
}

.ngs-feats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ngs-feats li {
    padding: 18px 18px 16px;
    border: 1px solid var(--border-color, #e3e8ef);
    border-radius: 10px;
    background: #fff;
}

.ngs-feat-no {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color, #1f4fd8);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.ngs-feats h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.4;
    word-break: keep-all;
}

.ngs-feats p {
    margin: 0;
    color: var(--text-muted, #475467);
    font-size: 0.9rem;
    line-height: 1.65;
    word-break: keep-all;
}

.ngs-feat-more {
    margin: 14px 0 0;
    color: var(--text-muted, #475467);
    font-size: 0.9rem;
}

.ngs-spec-table--full td {
    line-height: 1.65;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.ngs-spec-table--full th {
    width: 220px;
}

.ngs-block .ngs-sheets {
    margin-top: 26px;
}

@media (max-width: 900px) {
    .ngs-feats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .ngs-feats {
        grid-template-columns: 1fr;
    }

    .ngs-spec-table--full th {
        width: 112px;
    }
}

.ml-pd__tagline {
    grid-column: 1 / -1;
    margin: 6px 0 0;
    color: var(--ml-red, #d6001c);
    font-weight: 700;
    font-size: 0.9375rem;
}
