/* ==========================================================================
   NH — Nature & Health  디자인 시스템
   로고의 샌드 톤 + 브랜드 딥그린을 기준으로 한 프리미엄 식품 유통사 테마.
   Bootstrap 5.3 위에 오버레이로 동작한다. (bootstrap.min.css 다음에 로드)
   ========================================================================== */

:root {
    /* 팔레트 */
    --nh-paper: #fbfaf7;          /* 기본 배경 (웜 화이트) */
    --nh-cream: #f3efe7;          /* 섹션/타일 배경 */
    --nh-ink: #1f231f;            /* 본문 잉크 */
    --nh-ink-soft: #4a4f48;
    --nh-muted: #7b7a70;
    --nh-line: #e5e1d6;           /* 헤어라인 */
    --nh-line-dark: #d2ccbc;
    --nh-sand: #c4a87f;           /* 로고 샌드 (장식용) */
    --nh-sand-text: #8a7048;      /* 샌드 계열 텍스트 (오버라인) */
    --nh-green: #11432d;          /* 브랜드 그린 (CTA) */
    --nh-green-hover: #0c3423;
    --nh-green-tint: #eaf0ea;
    --nh-danger: #a63d2f;
    --nh-footer: #122b1e;         /* 푸터 딥그린 */

    /* 타이포 */
    --nh-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
    --nh-serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;

    /* 레이아웃 */
    --nh-header-h: 132px;
    --nh-radius: 2px;

    /* 기존 템플릿(product_detail, admin 등) 호환 변수 */
    --primary-color: #1f231f;
    --secondary-color: #11432d;

    color-scheme: light only;
}

/* --------------------------------------------------------------------------
   1. 베이스
   -------------------------------------------------------------------------- */
html, body {
    background-color: var(--nh-paper) !important;
    color: var(--nh-ink) !important;
}

body {
    font-family: var(--nh-sans);
    font-size: 15.5px;
    line-height: 1.65;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
    html, body {
        background-color: var(--nh-paper) !important;
        color: var(--nh-ink) !important;
        filter: none !important;
    }
}

h1, h2, h3, h4, h5, h6 {
    color: var(--nh-ink);
    letter-spacing: -0.02em;
}

a {
    color: var(--nh-green);
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover { color: var(--nh-green-hover); }

::selection {
    background: var(--nh-green);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--nh-green);
    outline-offset: 2px;
}

img { max-width: 100%; }

/* 스킵 링크 (키보드 접근성) */
.nh-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--nh-green);
    color: #fff;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.nh-skip:focus {
    left: 0;
    color: #fff;
}

/* --------------------------------------------------------------------------
   2. 타이포 패턴
   -------------------------------------------------------------------------- */
.nh-overline {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--nh-sand-text);
    margin-bottom: 0.9rem;
}

.nh-heading {
    font-family: var(--nh-serif);
    font-weight: 600;
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    line-height: 1.35;
    margin-bottom: 0;
}

.nh-lead {
    color: var(--nh-muted);
    font-size: 0.98rem;
    margin-top: 0.9rem;
    margin-bottom: 0;
}

.nh-section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.nh-section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.nh-section--cream { background: var(--nh-cream); }

.nh-section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.nh-section-head.text-center .nh-lead { max-width: 34rem; margin-left: auto; margin-right: auto; }

/* 텍스트 링크 (밑줄 + 화살표) */
.nh-textlink {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--nh-ink);
    border-bottom: 1px solid var(--nh-ink);
    padding-bottom: 0.3rem;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.nh-textlink:hover {
    color: var(--nh-green);
    border-color: var(--nh-green);
}

.nh-textlink .bi { font-size: 0.85em; }

/* --------------------------------------------------------------------------
   3. 버튼 (Bootstrap 오버라이드)
   -------------------------------------------------------------------------- */
.btn {
    border-radius: var(--nh-radius);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:focus-visible { box-shadow: 0 0 0 3px rgba(17, 67, 45, 0.25); }

.btn-lg { padding: 0.8rem 1.9rem; font-size: 0.98rem; }

.btn-primary,
.btn-primary:focus {
    background-color: var(--nh-green);
    border-color: var(--nh-green);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:first-child:active {
    background-color: var(--nh-green-hover) !important;
    border-color: var(--nh-green-hover) !important;
    color: #fff;
    opacity: 1;
    transform: none;
    box-shadow: none;
}

.btn-outline-primary {
    color: var(--nh-green);
    border-color: var(--nh-green);
}

.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary:first-child:active {
    background-color: var(--nh-green) !important;
    border-color: var(--nh-green) !important;
    color: #fff;
}

.btn-secondary {
    background-color: var(--nh-ink);
    border-color: var(--nh-ink);
}

.btn-secondary:hover {
    background-color: #000;
    border-color: #000;
}

.btn-outline-secondary {
    color: var(--nh-ink-soft);
    border-color: var(--nh-line-dark);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:active {
    background-color: var(--nh-ink) !important;
    border-color: var(--nh-ink) !important;
    color: #fff;
}

.btn-outline-danger {
    color: var(--nh-danger);
    border-color: var(--nh-line-dark);
}

.btn-outline-danger:hover {
    background-color: var(--nh-danger);
    border-color: var(--nh-danger);
    color: #fff;
}

.btn-link { color: var(--nh-green); }

/* 밝은 배경(히어로 이미지 위) 버튼 */
.btn-paper {
    background: var(--nh-paper);
    border-color: var(--nh-paper);
    color: var(--nh-ink);
}

.btn-paper:hover {
    background: var(--nh-green);
    border-color: var(--nh-green);
    color: #fff;
}

/* --------------------------------------------------------------------------
   4. 폼
   -------------------------------------------------------------------------- */
.form-control,
.form-select {
    border-radius: var(--nh-radius);
    border-color: var(--nh-line-dark);
    background-color: #fff;
    color: var(--nh-ink);
    padding: 0.55rem 0.85rem;
}

.form-control::placeholder { color: #a9a698; }

.form-control:focus,
.form-select:focus {
    border-color: var(--nh-green);
    box-shadow: 0 0 0 3px rgba(17, 67, 45, 0.12);
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nh-ink-soft);
    margin-bottom: 0.4rem;
}

.form-check-input:checked {
    background-color: var(--nh-green);
    border-color: var(--nh-green);
}

.form-check-input:focus {
    border-color: var(--nh-green);
    box-shadow: 0 0 0 3px rgba(17, 67, 45, 0.12);
}

.input-group .btn { z-index: 0; }

/* --------------------------------------------------------------------------
   5. 카드 / 알럿 / 배지 / 모달 / 테이블 / 드롭다운
   -------------------------------------------------------------------------- */
.card {
    border: 1px solid var(--nh-line);
    border-radius: 4px;
    background-color: #fff;
}

.card.shadow,
.card.shadow-sm {
    box-shadow: 0 1px 2px rgba(31, 35, 31, 0.05) !important;
}

.card-header {
    background-color: var(--nh-cream) !important;
    border-bottom: 1px solid var(--nh-line);
    font-weight: 600;
}

.alert {
    border: 1px solid var(--nh-line);
    border-left-width: 3px;
    border-radius: var(--nh-radius);
    background-color: #fff;
    color: var(--nh-ink-soft);
    font-size: 0.92rem;
}

.alert-info { border-left-color: var(--nh-green); }
.alert-success { border-left-color: #2e7d50; }
.alert-warning { border-left-color: #b07d2a; }
.alert-danger { border-left-color: var(--nh-danger); }

.badge {
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: var(--nh-radius);
}

.badge.bg-secondary {
    background-color: var(--nh-cream) !important;
    color: var(--nh-sand-text);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.modal-content {
    border: 1px solid var(--nh-line);
    border-radius: 4px;
}

.table {
    color: var(--nh-ink);
    border-color: var(--nh-line);
}

.table thead th {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--nh-muted);
    border-bottom: 1px solid var(--nh-line-dark);
    padding-bottom: 0.7rem;
}

.dropdown-menu {
    border: 1px solid var(--nh-line);
    border-radius: 4px;
    box-shadow: 0 14px 34px rgba(31, 35, 31, 0.1);
    padding: 0.5rem 0;
    background: var(--nh-paper);
}

.dropdown-item {
    font-size: 0.92rem;
    padding: 0.5rem 1.15rem;
    color: var(--nh-ink-soft);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--nh-cream);
    color: var(--nh-green);
}

.dropdown-divider { border-color: var(--nh-line); opacity: 1; }

/* 언더라인형 탭 (상품 목록 필터 / 상세 탭 공용) */
.nav-tabs {
    border-bottom: 1px solid var(--nh-line);
    gap: 0.25rem;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--nh-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
    margin-bottom: -1px;
    background: transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-tabs .nav-link:hover { color: var(--nh-ink); }

.nav-tabs .nav-link.active {
    color: var(--nh-ink);
    font-weight: 600;
    background: transparent;
    border-bottom-color: var(--nh-green);
}

/* --------------------------------------------------------------------------
   6. 헤더
   -------------------------------------------------------------------------- */
.nh-notice {
    background: var(--nh-green);
    color: rgba(251, 250, 247, 0.92);
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 0.45rem 1rem;
}

.nh-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--nh-paper);
    border-bottom: 1px solid var(--nh-line);
}

/* 로고 좌측 / 메뉴·아이콘 우측 */
.nh-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    height: var(--nh-header-h);
}

.nh-header > nav { margin-left: auto; }

/* 대형 화면: 콘텐츠 컨테이너보다 바깥 라인까지 확장
   (1440px에서 컨테이너와 동일한 72px 여백, 그 이상에서 완만하게 증가: 1800px ≈ 120px) */
@media (min-width: 1200px) {
    .nh-header.container {
        max-width: none;
        padding-inline: clamp(2.5rem, calc(13.33vw - 120px), 8.5rem);
    }
}

.nh-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nh-brand img { display: block; }
.nh-brand-logo { height: 104px; width: auto; }     /* 데스크톱: 통합 로고 (nh_logo_vec.png) */
.nh-brand-symbol { height: 80px; width: auto; }    /* 모바일: 심볼만 */

.nh-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.25rem, 1.4vw, 1.4rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nh-nav > li { position: relative; }

.nh-nav-link {
    display: inline-block;
    padding: 0.7rem 1rem;
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--nh-ink);
    letter-spacing: -0.005em;
}

.nh-nav-link:hover { color: var(--nh-green); }

/* 데스크톱 카테고리 드롭다운 — CSS hover */
.nh-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 6px);
    min-width: 200px;
    background: var(--nh-paper);
    border: 1px solid var(--nh-line);
    box-shadow: 0 18px 40px rgba(31, 35, 31, 0.12);
    padding: 0.6rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 1031;
}

.nh-nav > li:hover .nh-dropdown-panel,
.nh-nav > li:focus-within .nh-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nh-dropdown-panel a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--nh-ink-soft);
    white-space: nowrap;
}

.nh-dropdown-panel a:hover {
    background: var(--nh-cream);
    color: var(--nh-green);
}

.nh-dropdown-panel hr {
    margin: 0.45rem 1.25rem;
    border-color: var(--nh-line);
    opacity: 1;
}

/* 우측 아이콘 */
.nh-header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.nh-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: none;
    background: transparent;
    color: var(--nh-ink);
    font-size: 1.28rem;
    position: relative;
    border-radius: 50%;
    transition: background-color 0.18s ease, color 0.18s ease;
    cursor: pointer;
}

.nh-iconbtn:hover {
    background: var(--nh-cream);
    color: var(--nh-green);
}

.cart-badge {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--nh-green);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.cart-badge:empty { display: none; }

/* 검색 슬라이드 바 */
.nh-searchbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nh-paper);
    border-bottom: 1px solid var(--nh-line);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.28s ease;
    z-index: 1029;
}

.nh-searchbar.is-open { max-height: 130px; }

.nh-searchbar form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 560px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

.nh-searchbar input {
    flex: 1;
    border: none;
    border-bottom: 1px solid var(--nh-ink);
    border-radius: 0;
    background: transparent;
    padding: 0.4rem 0.1rem;
    font-size: 1.02rem;
}

.nh-searchbar input:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--nh-green);
}

.nh-searchbar .nh-search-submit,
.nh-searchbar .nh-search-close {
    border: none;
    background: transparent;
    color: var(--nh-ink);
    font-size: 1.05rem;
    padding: 0.35rem;
    cursor: pointer;
}

.nh-searchbar .nh-search-close { color: var(--nh-muted); }
.nh-searchbar .nh-search-submit:hover,
.nh-searchbar .nh-search-close:hover { color: var(--nh-green); }

/* 햄버거 */
.nh-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nh-burger span {
    display: block;
    height: 1.5px;
    background: var(--nh-ink);
    transition: transform 0.2s ease;
}

@media (max-width: 991.98px) {
    :root { --nh-header-h: 100px; }
    .nh-nav { display: none; }
    .nh-burger { display: flex; }
}

/* 모바일 오프캔버스 */
.offcanvas.nh-offcanvas {
    width: min(320px, 86vw) !important;
    background: var(--nh-paper);
    border-left: 1px solid var(--nh-line);
}

.nh-offcanvas .offcanvas-header {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--nh-line);
}

.nh-offcanvas .offcanvas-title {
    font-family: var(--nh-serif);
    font-size: 1.05rem;
    font-weight: 600;
}

.nh-offcanvas .offcanvas-body { padding: 1.4rem; }

.nh-offcanvas .nh-m-search {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.nh-offcanvas .nh-m-search input { flex: 1; }

.nh-m-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nh-m-nav > li { border-bottom: 1px solid var(--nh-line); }

.nh-m-nav a,
.nh-m-nav .nh-m-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.95rem 0.25rem;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--nh-ink);
    background: none;
    border: none;
    cursor: pointer;
}

.nh-m-nav a:hover { color: var(--nh-green); }

.nh-m-toggle .bi { transition: transform 0.2s ease; font-size: 0.8rem; color: var(--nh-muted); }
.nh-m-toggle[aria-expanded="true"] .bi { transform: rotate(180deg); }

.nh-m-sub {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0 0.9rem;
}

.nh-m-sub a {
    padding: 0.5rem 1rem;
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--nh-ink-soft);
    justify-content: flex-start;
}

.nh-m-meta {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* --------------------------------------------------------------------------
   7. 히어로 (홈)
   -------------------------------------------------------------------------- */
.nh-hero { position: relative; }

.nh-hero .carousel-item {
    height: clamp(480px, 74vh, 780px);
    position: relative;
}

@media (max-width: 767.98px) {
    /* 모바일: 데스크톱 대비 약 1/4 낮게 */
    .nh-hero .carousel-item { height: min(58svh, 460px); min-height: 330px; }

    .nh-hero-content { padding-bottom: 3.75rem; }
    .nh-hero .carousel-indicators { bottom: 1.4rem; }
    .nh-hero-sub { margin-bottom: 1.4rem; }
}

.nh-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.nh-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(20, 24, 20, 0.45) 0%, rgba(20, 24, 20, 0) 40%),
        linear-gradient(78deg, rgba(20, 24, 20, 0.66) 0%, rgba(20, 24, 20, 0.38) 42%, rgba(20, 24, 20, 0.1) 72%);
}

.nh-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: clamp(4.5rem, 9vh, 7rem);
}

.nh-hero-content .nh-overline { color: var(--nh-sand); }

.nh-hero-title {
    font-family: var(--nh-serif);
    font-weight: 600;
    font-size: clamp(1.9rem, 4.6vw, 3.3rem);
    line-height: 1.3;
    color: #fdfcf9;
    margin-bottom: 1rem;
    max-width: 15em;
}

.nh-hero-sub {
    color: rgba(253, 252, 249, 0.85);
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    margin-bottom: 2rem;
    max-width: 28em;
}

/* 인디케이터: 하단 얇은 바 */
.nh-hero .carousel-indicators {
    justify-content: flex-start;
    margin: 0;
    left: 0;
    right: 0;
    bottom: clamp(2rem, 4.5vh, 3.25rem);
    padding: 0 calc((100% - min(100%, 1320px)) / 2 + 0.75rem);
}

@media (max-width: 1399.98px) {
    .nh-hero .carousel-indicators { padding: 0 calc((100% - min(100%, 1140px)) / 2 + 0.75rem); }
}

@media (max-width: 1199.98px) {
    .nh-hero .carousel-indicators { padding: 0 calc((100% - min(100%, 960px)) / 2 + 0.75rem); }
}

@media (max-width: 991.98px) {
    .nh-hero .carousel-indicators { padding: 0 calc((100% - min(100%, 720px)) / 2 + 0.75rem); }
}

@media (max-width: 767.98px) {
    .nh-hero .carousel-indicators { padding: 0 calc((100% - min(100%, 540px)) / 2 + 0.75rem); }
}

@media (max-width: 575.98px) {
    .nh-hero .carousel-indicators { padding: 0 0.75rem; }
}

.nh-hero .carousel-indicators [data-bs-target] {
    width: 30px;
    height: 2px;
    border: none;
    border-radius: 0;
    margin: 0 6px 0 0;
    background: rgba(253, 252, 249, 0.4);
    opacity: 1;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.nh-hero .carousel-indicators .active {
    width: 52px;
    background: var(--nh-sand);
}

/* 좌우 컨트롤: 데스크톱만, 미니멀 */
.nh-hero .carousel-control-prev,
.nh-hero .carousel-control-next {
    width: 8%;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.nh-hero:hover .carousel-control-prev,
.nh-hero:hover .carousel-control-next { opacity: 0.85; }

.nh-hero .carousel-control-prev-icon,
.nh-hero .carousel-control-next-icon {
    width: 2.4rem;
    height: 2.4rem;
    background-size: 45%;
    background-color: rgba(20, 24, 20, 0.35);
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

@media (max-width: 991.98px) {
    .nh-hero .carousel-control-prev,
    .nh-hero .carousel-control-next { display: none; }
}

/* --------------------------------------------------------------------------
   8. 상품 카드 / 그리드
   -------------------------------------------------------------------------- */
.nh-card {
    display: block;
    color: var(--nh-ink);
}

.nh-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--nh-cream);
    border: 1px solid var(--nh-line);
    border-radius: var(--nh-radius);
}

.nh-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.25, 1);
}

.nh-card:hover .nh-card-media img { transform: scale(1.045); }

.nh-card-body { padding: 0.9rem 0.15rem 0; }

.nh-card-cat {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--nh-sand-text);
    margin-bottom: 0.3rem;
}

.nh-card-name {
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 0.35rem;
    color: var(--nh-ink);
    transition: color 0.18s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nh-card:hover .nh-card-name { color: var(--nh-green); }

.nh-card-price {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--nh-ink);
}

.nh-card-price small {
    font-size: 0.8em;
    font-weight: 500;
}

/* 데스크톱/태블릿: 상품명 우측에 가격 배치 (모바일은 세로 유지) */
@media (min-width: 768px) {
    .nh-card-line {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
    }

    .nh-card-line .nh-card-name { margin-bottom: 0; }
    .nh-card-line .nh-card-price { flex-shrink: 0; }
}

/* 이미지 없는 상품 플레이스홀더 */
.nh-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nh-cream);
}

.nh-noimg img {
    width: 34%;
    height: auto;
    opacity: 0.35;
    object-fit: contain;
    transition: none;
}

.nh-card:hover .nh-noimg img { transform: none; }

/* 빈 목록 상태 */
.nh-empty {
    text-align: center;
    padding: clamp(3rem, 8vw, 5.5rem) 1rem;
    border: 1px dashed var(--nh-line-dark);
    border-radius: 4px;
    background: #fff;
}

.nh-empty .bi {
    font-size: 1.8rem;
    color: var(--nh-line-dark);
    display: block;
    margin-bottom: 0.9rem;
}

.nh-empty p { color: var(--nh-muted); margin-bottom: 1.4rem; }

/* --------------------------------------------------------------------------
   9. 페이지 헤더 / 카테고리 스트립
   -------------------------------------------------------------------------- */
.nh-page-head {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}

.nh-page-title {
    font-family: var(--nh-serif);
    font-weight: 600;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin-bottom: 0;
}

.nh-page-count {
    color: var(--nh-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 카테고리 가로 스크롤 스트립 (홈) */
.nh-catstrip {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.25rem 0;
    scrollbar-width: none;
}

.nh-catstrip::-webkit-scrollbar { display: none; }

.nh-catstrip a {
    flex-shrink: 0;
    padding: 0.5rem 1.15rem;
    border: 1px solid var(--nh-line-dark);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--nh-ink-soft);
    background: #fff;
    transition: all 0.18s ease;
}

.nh-catstrip a:hover {
    border-color: var(--nh-green);
    background: var(--nh-green);
    color: #fff;
}

/* --------------------------------------------------------------------------
   10. 서비스 스트립 (무료배송/보안결제/고객지원)
   -------------------------------------------------------------------------- */
.nh-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--nh-line);
}

.nh-service {
    padding: 2.4rem 1.25rem;
    text-align: center;
}

.nh-service + .nh-service { border-left: 1px solid var(--nh-line); }

.nh-service .bi {
    font-size: 1.55rem;
    color: var(--nh-green);
    display: block;
    margin-bottom: 0.8rem;
}

.nh-service h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.nh-service p {
    font-size: 0.82rem;
    color: var(--nh-muted);
    margin: 0;
}

@media (max-width: 767.98px) {
    .nh-service { padding: 1.6rem 0.75rem; }
    .nh-service .bi { font-size: 1.3rem; }
    .nh-service h3 { font-size: 0.85rem; }
    .nh-service p { font-size: 0.74rem; }
}

/* --------------------------------------------------------------------------
   11. 푸터
   -------------------------------------------------------------------------- */
.nh-footer {
    background: var(--nh-footer);
    color: rgba(243, 239, 231, 0.72);
    margin-top: clamp(3.5rem, 7vw, 6rem);
    font-size: 0.85rem;
}

.nh-footer a { color: rgba(243, 239, 231, 0.72); }
.nh-footer a:hover { color: #f3efe7; }

.nh-footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}

/* 브랜드 행: 로고 + 이용약관/개인정보처리방침 나란히 */
.nh-footer-brandrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin-bottom: 1.4rem;
}

.nh-footer-brandrow img {
    height: 22px;
    width: auto;
    display: block;
}

.nh-footer-brandrow button {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(243, 239, 231, 0.85);
    cursor: pointer;
}

.nh-footer-brandrow button:hover { color: #fff; }

.nh-footer h4 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nh-sand);
    margin-bottom: 1.1rem;
}

.nh-footer-tel {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f3efe7;
    letter-spacing: 0.01em;
    display: block;
    margin-bottom: 0.5rem;
}

.nh-footer p { line-height: 1.9; margin: 0; }

.nh-footer-fineprint {
    font-size: 0.76rem;
    line-height: 1.9;
    color: rgba(243, 239, 231, 0.5);
}

.nh-footer-fineprint a { color: rgba(243, 239, 231, 0.5); text-decoration: underline; }

.nh-footer-copy {
    margin-top: 1.2rem;
    font-size: 0.74rem;
    color: rgba(243, 239, 231, 0.4);
}

/* 모바일: 고객센터/비즈니스 섹션 아래, 푸터 맨 하단 */
.nh-footer-copy--bottom {
    margin: 0;
    padding-bottom: 2.25rem;
}

@media (max-width: 991.98px) {
    .nh-footer-main { grid-template-columns: 1fr 1fr; }
    .nh-footer-brand { grid-column: 1 / -1; }
}

/* 모바일: 고객센터 · 비즈니스 문의 나란히 유지 + 폰트 축소 */
@media (max-width: 575.98px) {
    .nh-footer-main {
        grid-template-columns: 0.85fr 1.15fr;
        gap: 1.75rem 1rem;
    }

    .nh-footer h4 {
        font-size: 0.66rem;
        letter-spacing: 0.16em;
        margin-bottom: 0.8rem;
    }

    .nh-footer-tel { font-size: 1.05rem; }

    .nh-footer-main > div p {
        font-size: 0.72rem;
        line-height: 1.85;
    }

    .nh-footer-fineprint { font-size: 0.7rem; }
}

/* --------------------------------------------------------------------------
   12. 상품 상세 보조
   -------------------------------------------------------------------------- */
.nh-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--nh-line-dark);
    border-radius: var(--nh-radius);
    overflow: hidden;
    background: #fff;
}

.nh-qty button {
    width: 42px;
    border: none;
    background: transparent;
    color: var(--nh-ink);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.nh-qty button:hover { background: var(--nh-cream); }

.nh-qty input {
    width: 52px;
    border: none;
    border-left: 1px solid var(--nh-line);
    border-right: 1px solid var(--nh-line);
    text-align: center;
    font-weight: 600;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.nh-qty input:focus { outline: none; }

/* 토스트 (Django messages) */
.nh-toast { font-family: var(--nh-sans); }

/* --------------------------------------------------------------------------
   13. 모션 최소화
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
