/* ============================================================
   app.css - Rebuild Phase 1
   Responsive layout for amazon365 (green) / bodazone (blue)
   ============================================================ */

/* --- 1. Variables & Reset --- */
:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-darker: #065f46;
    --primary-light: #10b981;
    --primary-bg: #ecfdf5;
    --primary-glow: rgba(5, 150, 105, 0.15);
    --primary-gradient: linear-gradient(135deg, #04694a, #0da874);
    /*--primary-gradient: linear-gradient(135deg, #059669, #10b981);*/

    --text-dark: #1a1a2e;
    --text-body: #374151;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    --bg-body: #f3f4f6;
    --bg-white: #ffffff;
    --bg-dark: #1a1a2e;
    --bg-gray: #f9fafb;

    --border: #e5e7eb;
    --border-light: #f0f0f0;

    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

    --container: 1250px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 25px;

    --header-height: 76px;
    --nav-height: 48px;
    --promo-height: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'NotoSansKR', sans-serif;
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.5;
    letter-spacing: -0.3px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

/* --- 2. Layout --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.mainbody {
    flex: 1;
    padding-bottom: 32px;
}

@media (max-width: 768px) {
    :root {
        --text-body: #2d2d2d;
        --text-muted: #4a4a4a;
        --text-light: #666;
    }

    .mainbody {
        padding-bottom: 8px;
    }
}

/* --- 3. Promo Bar --- */
.promo-bar {
    background: var(--primary-gradient);
    height: var(--promo-height);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
}

.promo-bar.hidden {
    display: none;
}

.promo-welcome {
    position: absolute;
    left: calc((100% - var(--container)) / 2);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.promo-center {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-center a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.promo-close {
    position: absolute;
    right: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.promo-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* Promo Rotation */
.promo-slider {
    display: inline-grid;
    vertical-align: middle;
    overflow: hidden;
}

.promo-slide {
    grid-area: 1 / 1;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(100%);
    transition: none;
    word-break: keep-all;
}

.promo-slide.promo-slide-active {
    opacity: 1;
    transform: translateY(0);
}

.promo-slide.promo-slide-out {
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity .4s, transform .4s;
}

.promo-slide.promo-slide-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .4s, transform .4s;
}

/* Promo: PC=정적/스크롤, Mobile=마퀴 티커 */
.promo-marquee-wrap {
    display: none;
}

@media (max-width: 768px) {
    .promo-pc-static,
    .promo-slider {
        display: none !important;
    }

    .promo-marquee-wrap {
        display: block;
        overflow: hidden;
        width: calc(100% - 30px);
        height: var(--promo-height);
        line-height: var(--promo-height);
    }

    .promo-mq-track {
        display: inline-flex;
        white-space: nowrap;
        will-change: transform;
    }

    .promo-mq-unit {
        display: inline-block;
        white-space: nowrap;
        flex-shrink: 0;
        padding-right: 120px;
    }
}

/* --- 4. Header --- */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    cursor: pointer;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.logo-accent {
    color: var(--primary);
}

.logo-img {
    width: 30px;
    height: auto;
}

/* Search Bar (PC) */
.search-bar {
    flex: 1;
    max-width: 580px;
    height: 46px;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 2px solid #e8e8e8;
    border-radius: var(--radius-pill);
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-scope {
    appearance: none;
    -webkit-appearance: none;
    min-width: 90px;
    padding: 0 20px 0 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-body);
    cursor: pointer;
    height: 100%;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") right 6px center no-repeat;
}

.search-divider {
    width: 1px;
    height: 20px;
    background: #ddd;
    flex-shrink: 0;
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.search-input {
    flex: 1;
    height: 100%;
    padding: 0 8px;
    font-size: 15px;
    color: var(--text-dark);
    min-width: 0;
}

.search-input::placeholder {
    color: #aaa;
}

.search-clear {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
    margin-right: 4px;
}

.search-clear.show {
    display: flex;
}

.search-clear:hover {
    color: #666;
    background: #eee;
}

.search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-right: 3px;
    transition: background 0.2s, transform 0.15s;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Mobile Search Bar */
.search-mobile {
    display: none;
    max-width: 100%;
    border-radius: var(--radius);
    margin: 0 16px 16px;
    height: 44px;
    border-width: 1.5px;
}

.search-mobile .search-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 15px;
}

/* Header Icons */
.header-icons {
    display: flex;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.icon-btn {
    width: 54px;
    height: 54px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #666;
    font-size: 20px;
    transition: background 0.15s, color 0.15s;
    position: relative;
}

.icon-btn span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
}

.icon-btn:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.icon-btn .badge {
    position: absolute;
    top: 5px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #fff;
}

.icon-btn.active {
    color: var(--primary);
}

.icon-btn.menu-toggle {
    display: none;
}

/* User Dropdown */
.user-menu-wrap {
    position: relative;
}

.user-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    display: none;
    z-index: 200;
}

.user-menu.show {
    display: block;
}

.user-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-body);
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}

.user-menu a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

/* --- 5. Navigation Bar (PC) --- */
.site-nav {
    background: var(--bg-dark);
    height: var(--nav-height);
    position: relative;
    z-index: 90;
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-allmenu {
    height: 34px;
    padding: 0 14px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
    transition: background 0.15s;
    flex-shrink: 0;
}

.nav-allmenu:hover {
    background: var(--primary-dark);
}

/* Nav Items */
.nav-items {
    display: flex;
    gap: 2px;
    flex: 1;
    align-items: center;
}

.nav-items > li {
    position: relative;
}

.nav-items > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-items > li > a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-items > li.current > a {
    color: var(--primary-light);
}

.nav-chevron {
    font-size: 10px;
    opacity: 0.4;
    transition: opacity 0.15s, transform 0.2s;
}

.nav-items > li:hover .nav-chevron {
    opacity: 0.8;
    transform: rotate(180deg);
}

/* Nav Submenu */
.nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px 6px 6px;
    display: none;
    z-index: 200;
}

.nav-items > li:hover > .nav-sub {
    display: block;
}

.nav-sub a {
    display: block;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--text-body);
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}

.nav-sub a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

/* Nav Right */
.nav-right {
    display: flex;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-cta:hover {
    border-color: #d2f1e8;
    color: #d2f1e8;
}

.nav-cta.solid {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.nav-cta.solid:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* --- 6. All-Menu Panel --- */
.allmenu-panel {
    display: none;
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 80;
}

.allmenu-panel.show {
    display: block;
}

.allmenu-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 32px 40px 24px;
    display: flex;
    gap: 20px;
}

.allmenu-section {
    flex: 1;
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.allmenu-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.allmenu-title i {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}

.allmenu-title .icon-shop {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.allmenu-title .icon-user {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.allmenu-title .icon-cs {
    background: linear-gradient(135deg, #10b981, #059669);
}

.allmenu-title .icon-info {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.allmenu-title .icon-customs {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.allmenu-item {
    display: block;
    padding: 9px 10px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.allmenu-item:hover {
    background: #f0f5ff;
    color: #2563eb;
}

.allmenu-star {
    color: #f59e0b;
    font-size: 11px;
    margin-left: 4px;
}

.allmenu-close {
    text-align: center;
    padding: 16px 0 8px;
}

.allmenu-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 24px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.15s, color 0.15s;
}

.allmenu-close-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* --- 7. Sidebar (Mobile) --- */
.sidebar-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-mask.show {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar.show {
    transform: translateX(0);
}

/* Sidebar Header */
.sb-header {
    padding: 28px 24px 24px;
    color: #fff;
    position: relative;
    background: var(--primary-gradient);
}

.sb-profile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.sb-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sb-close:active {
    background: rgba(255, 255, 255, 0.35);
}

/* Sidebar Profile (logged in) */
.sb-profile-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sb-profile-edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 8px;
    cursor: pointer;
    vertical-align: middle;
    text-decoration: none;
}

.sb-assets {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 12px 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sb-asset-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    white-space: nowrap;
}

.sb-asset-row + .sb-asset-row {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 8px;
    margin-top: 4px;
}

.sb-asset-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.sb-asset-value {
    font-size: 14px;
    font-weight: 700;
}

.sb-asset-btn {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(125, 125, 125, 0.4);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    text-decoration: none;
}

.sb-asset-btn-nomal {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    color: #fff;
    background: var(--primary);
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    text-decoration: none;
}

.sb-asset-btn.charge {
    background: #fff;
    color: var(--primary);
}

/* Sidebar Login Prompt (logged out) */
.sb-login-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
    flex: 1;
}

.sb-login-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.sb-login-text {
    font-size: 17px;
    font-weight: 600;
}

.sb-login-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
    word-break: keep-all;
}

/* Sidebar Quick Actions */
.sb-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 16px 8px;
    border-bottom: 8px solid var(--bg-body);
}

.sb-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    cursor: pointer;
    border-radius: var(--radius);
}

.sb-quick-item:active {
    background: var(--bg-body);
}

.sb-quick-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sb-quick-icon.green {
    background: #ecfdf5;
    color: #059669;
}

.sb-quick-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.sb-quick-icon.orange {
    background: #fff7ed;
    color: #ea580c;
}

.sb-quick-icon.purple {
    background: #faf5ff;
    color: #7c3aed;
}

.sb-quick-label {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-align: center;
    word-break: keep-all;
}

/* Sidebar Menu Sections */
.sb-section-title {
    padding: 20px 24px 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.sb-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 24px;
    cursor: pointer;
}

.sb-item:active {
    background: #f7f7f7;
}

.sb-item-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.sb-item-text {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    word-break: keep-all;
    flex: 1;
}

.sb-item-arrow {
    font-size: 12px;
    color: #ccc;
    margin-left: auto;
}

.sb-divider {
    height: 8px;
    background: var(--bg-body);
}

/* Sidebar Footer */
.sb-footer {
    padding: 20px 24px 40px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sb-footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
}

.sb-footer-item i {
    width: 16px;
    text-align: center;
    color: var(--primary);
}

/* --- 8. Footer (.ndt-*) --- */
.ndt-footer {
    background: #1a1b2e;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

/* 다크 인포바 */
.ndt-infobar {
    background: #1a1b2e;
}

.ndt-infobar-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ndt-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 32px;
    font-size: 14px;
    color: #e5e7eb;
    position: relative;
}

.ndt-info-item + .ndt-info-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.ndt-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.ndt-info-icon.bank {
    background: #f59e0b;
    color: #fff;
}

.ndt-info-icon.cs {
    background: #3b82f6;
    color: #fff;
}

.ndt-info-label {
    font-size: 12px;
    color: #d1d5db;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ndt-info-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}

.ndt-info-sub {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 2px;
}

.ndt-info-value.gold {
    color: #fbbf24;
}

.ndt-info-value.blue {
    color: #60a5fa;
}

/* 링크 바 */
.ndt-links-bar {
    background: #1a1b2e;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ndt-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 40px;
}

.ndt-links a {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.15s;
}

.ndt-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.ndt-links a.ndt-privacy {
    font-weight: 700;
    color: #ffffff;
}

.ndt-links-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 10px;
}

/* 사업자정보 토글 */
.ndt-company-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.15s;
}

.ndt-company-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.ndt-company-toggle i {
    font-size: 9px;
    transition: transform 0.25s;
}

.ndt-company-toggle.open i {
    transform: rotate(180deg);
}

.ndt-company-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.8;
    text-align: center;
}

.ndt-company-detail.open {
    max-height: 200px;
}

.ndt-company-detail-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 12px 40px 14px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ndt-company-sep {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.2);
}

.ndt-company-address {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    margin-top: 4px;
}

/* 중앙 (규정 + 카피라이트) */
.ndt-center {
    max-width: var(--container);
    margin: 0 auto;
    padding: 5px 0 24px;
    text-align: center;
}

.ndt-rules {
    max-width: 800px;
    margin: 0 auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.7;
    text-align: left;
    word-break: keep-all;
}

.ndt-copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    margin: 30px;
    font-family: 'Inter', 'Source Sans Pro', sans-serif;
}

/* --- 9. Main Page (.ndmain-*) --- */

/* HERO */
.ndmain-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-darker) 100%);
    padding: 36px 0 32px;
    position: relative;
    overflow: hidden;
}

.ndmain-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.ndmain-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 40px;
}

.ndmain-hero-text {
    color: #fff;
}

.ndmain-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #d1fae5;
    margin-bottom: 20px;
}

.ndmain-hero-badge i {
    font-size: 10px;
}

.ndmain-hero-title {
    font-size: 38px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    word-break: keep-all;
}

.ndmain-hero-title em {
    font-style: normal;
    color: #a7f3d0;
}

.ndmain-hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 32px;
    word-break: keep-all;
}

.ndmain-hero-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* AI 카드 */
.ndmain-ai-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 22px 24px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.ndmain-ai-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.ndmain-ai-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.ndmain-ai-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.ndmain-ai-card-text h3 {
    font-size: 15px;
    font-weight: 700;
}

.ndmain-ai-card-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.ndmain-ai-new {
    padding: 3px 9px;
    border-radius: 20px;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    margin-left: auto;
    letter-spacing: 0.5px;
}

.ndmain-ai-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ndmain-ai-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.ndmain-ai-tag i {
    font-size: 9px;
    color: #a7f3d0;
}

/* 소형 카드 */
.ndmain-small-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ndmain-hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 18px 20px;
    color: #fff;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ndmain-hero-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.ndmain-hero-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ndmain-hero-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}

.ndmain-hero-card p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    word-break: keep-all;
}

.ndmain-hero-card-hl {
    background: rgba(167, 243, 208, 0.15);
    border-color: rgba(167, 243, 208, 0.3);
}

.ndmain-hero-card-hl .ndmain-hero-card-icon {
    background: rgba(167, 243, 208, 0.2);
}

/* ============================================================
   Bodazone Hero (.sv4-*)
   ============================================================ */
.sv4-wrap {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 40px;
    padding-bottom: 48px;
}

.sv4-hero {
    background: linear-gradient(135deg, #0e2c8d 0%, #153293 40%, #1945b4 70%, #1b56d7 100%);
    padding: 40px 0 80px;
    position: relative;
    overflow: hidden;
}

.sv4-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='52' viewBox='0 0 60 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='0.5'%3E%3Cpath d='M30 2L60 28M30 2L0 28M0 28L30 52M60 28L30 52M0 28L60 28'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='0.12'%3E%3Ccircle cx='30' cy='2' r='1.5'/%3E%3Ccircle cx='0' cy='28' r='1.5'/%3E%3Ccircle cx='60' cy='28' r='1.5'/%3E%3Ccircle cx='30' cy='52' r='1.5'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

.sv4-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 80, 160, 0.2) 0%, transparent 65%);
    border-radius: 50%;
}

.sv4-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 36px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.sv4-hero-text {
    text-align: left;
}

.sv4-hero-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    font-weight: 500;
}

.sv4-hero-accent {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(90deg, #c9a84c 0%, #f5e6a3 40%, #fff8dc 50%, #f5e6a3 60%, #c9a84c 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: sv4-shine 5s linear infinite;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

@keyframes sv4-shine {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

.sv4-hero-title {
    font-size: 34px;
    font-weight: 300;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.sv4-hero-title strong {
    font-weight: 600;
}

.sv4-hero-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    word-break: keep-all;
}

.sv4-hero-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.sv4-ai-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 20px 22px;
    color: #fff;
    cursor: pointer;
    transition: all .25s;
}

.sv4-ai-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.sv4-ai-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.sv4-ai-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.sv4-ai-card-text h3 {
    font-size: 14px;
    font-weight: 700;
}

.sv4-ai-card-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.sv4-ai-new {
    padding: 3px 9px;
    border-radius: 20px;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    margin-left: auto;
    letter-spacing: 0.5px;
}

.sv4-ai-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sv4-ai-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.sv4-ai-tag i {
    font-size: 9px;
    color: #a7f3d0;
}

.sv4-small-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sv4-hero-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 18px;
    color: #fff;
    transition: all .25s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
}

.sv4-hero-card:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-2px);
}

.sv4-hero-card.highlight {
    background: rgba(167, 243, 208, 0.1);
    border-color: rgba(167, 243, 208, 0.2);
}

.sv4-hero-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sv4-hero-card h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.sv4-hero-card p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    word-break: keep-all;
}

/* sv4 Service Grid */
.sv4-service-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: -44px;
    position: relative;
    z-index: 2;
}

.sv4-service-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

.sv4-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.sv4-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 24px;
    color: #fff;
}

.sv4-service-icon.amazon {
    background: linear-gradient(135deg, #dd6b20, #ed8936);
}

.sv4-service-icon.ebay {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.sv4-service-icon.motors {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.sv4-service-icon.buyagent {
    background: linear-gradient(135deg, #059669, #10b981);
}

.sv4-service-icon.shipping {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.sv4-service-icon.cs {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
}

.sv4-service-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.sv4-service-desc {
    font-size: 11px;
    color: #aaa;
}

/* TRUST BAR */
.ndmain-trust {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
}

.ndmain-trust-items {
    display: flex;
    justify-content: center;
    gap: 48px;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

.ndmain-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}

.ndmain-trust-item i {
    font-size: 20px;
    color: var(--primary);
    width: 40px;
    height: 40px;
    background: var(--primary-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ndmain-trust-item strong {
    color: #1d1d1f;
    font-weight: 600;
}

/* SECTION HEADER */
.ndmain-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

.ndmain-section-title {
    font-size: 24px;
    font-weight: 800;
    color: #1d1d1f;
}

/* CATEGORIES */
.ndmain-categories {
    padding: 48px 0;
}

.ndmain-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 40px;
}

.ndmain-cat-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 16px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.ndmain-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.ndmain-cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.ndmain-cat-icon.amazon {
    background: #fff7ed;
    color: #ea580c;
}

.ndmain-cat-icon.ebay {
    background: #eff6ff;
    color: #2563eb;
}

.ndmain-cat-icon.motors {
    background: #fef2f2;
    color: #dc2626;
}

.ndmain-cat-icon.buyagent {
    background: #f0fdf4;
    color: #16a34a;
}

.ndmain-cat-icon.shipping {
    background: #faf5ff;
    color: #9333ea;
}

.ndmain-cat-icon.cs {
    background: #f0f9ff;
    color: #0284c7;
}

.ndmain-cat-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.ndmain-cat-card p {
    font-size: 11px;
    color: #999;
}

/* INFO SECTION */
.ndmain-info {
    padding-bottom: 48px;
}

.ndmain-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 40px;
}

.ndmain-info-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.ndmain-info-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ndmain-info-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.ndmain-info-title {
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ndmain-info-title i {
    color: var(--primary);
}

.ndmain-info-more {
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
    text-decoration: none;
}

.ndmain-info-more:hover {
    color: var(--primary);
}

.ndmain-info-body {
    padding: 16px 24px 20px;
}

/* 공지사항 */
.ndmain-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ndmain-notice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}

.ndmain-notice-item:last-child {
    border-bottom: none;
}

.ndmain-notice-item a {
    color: #444;
    transition: color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    text-decoration: none;
}

.ndmain-notice-item a:hover {
    color: var(--primary);
}

.ndmain-notice-date {
    color: #bbb;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 12px;
    flex-shrink: 0;
}

.ndmain-notice-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 10px;
    font-weight: 600;
    margin-right: 8px;
    flex-shrink: 0;
}

.ndmain-notice-new {
    font-weight: 600;
    color: #186fec;
}

/* 출고일정 */
.ndmain-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ndmain-schedule-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f9fafb;
    font-size: 13px;
}

.ndmain-schedule-date {
    font-weight: 700;
    color: #1d1d1f;
    min-width: 44px;
}

.ndmain-schedule-day {
    color: #999;
    font-size: 12px;
    min-width: 20px;
}

.ndmain-schedule-flags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ndmain-schedule-flag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
}

.ndmain-schedule-flag img {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.ndmain-flag-us {
    background: #2563eb;
}

.ndmain-flag-uk {
    background: #dc2626;
}

.ndmain-flag-de {
    background: #ca8a04;
}

.ndmain-flag-etc {
    background: var(--primary);
}

.ndmain-schedule-row.ndmain-today {
    background: var(--primary-bg);
    border: 1px solid #a7f3d0;
}

.ndmain-schedule-empty {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 13px;
    word-break: keep-all;
}

/* FAQ */
.ndmain-faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ndmain-faq-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #444;
}

.ndmain-faq-item a {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.ndmain-faq-item:last-child {
    border-bottom: none;
}

.ndmain-faq-item:hover {
    color: var(--primary);
}

.ndmain-faq-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
}

.ndmain-faq-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* SHOWCASE (추천상품) */
.ndmain-showcase {
    padding-bottom: 48px;
    display: none;
}

.ndmain-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 40px;
}

.ndmain-showcase-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #eee;
}

.ndmain-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.ndmain-showcase-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ndmain-showcase-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ndmain-showcase-info {
    padding: 16px;
}

.ndmain-showcase-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ndmain-tag-ebay {
    background: #eff6ff;
    color: #2563eb;
}
.ndmain-tag-amazon {
    background: #fff7ed;
    color: #ea580c;
}

.ndmain-tag-amazon {
    background: #fff7ed;
    color: #ea580c;
}

.ndmain-showcase-title {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
    word-break: keep-all;
}

.ndmain-showcase-price {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 800;
    color: #059669;
}

/* ANIMATIONS */
@keyframes ndmainFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ndmain-animate {
    animation: ndmainFadeInUp 0.6s ease-out both;
}

.ndmain-animate-delay {
    animation-delay: 0.2s;
}

/* BEST Collection / Most Popular */
.ndmain-collection {
    max-width: var(--container);
    margin: 0 auto;
    padding: 32px 24px 0;
}

.ndmain-collection-header {
    margin-bottom: 20px;
}

.ndmain-collection-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.ndmain-collection-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
    word-break: keep-all;
}

.ndmain-collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ndmain-collection-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.ndmain-collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ndmain-collection-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9fafb;
}

.ndmain-collection-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.ndmain-collection-card:hover .ndmain-collection-img img {
    transform: scale(1.05);
}

/* BEST Collection 이미지 로테이션 (2장 이상 크로스페이드) */
.ndmain-rot-wrap {
    position: relative;
}

.ndmain-rot-wrap img.ndmain-rot-layer {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: transform 0.3s, opacity 0.8s ease;
}

.ndmain-rot-wrap img.ndmain-rot-layer.on {
    opacity: 1;
}

.ndmain-collection-info {
    padding: 12px 14px;
}

.ndmain-collection-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    word-break: keep-all;
}

.ndmain-collection-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
}

/* MOBILE 반응형 */
@media (max-width: 768px) {
    html {
        zoom: 1.05;
    }
}

@media (max-width: 768px) {
    .ndmain-hero {
        padding: 28px 0 24px;
    }

    .ndmain-hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }

    .ndmain-hero-title {
        font-size: 26px;
    }

    .ndmain-hero-desc {
        font-size: 14px;
        margin-bottom: 0;
    }

    .ndmain-hero-badge {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 14px;
    }

    .ndmain-ai-card {
        padding: 16px 18px;
    }

    .ndmain-ai-card-text h3 {
        font-size: 13px;
    }

    .ndmain-ai-tags {
        gap: 4px;
    }

    .ndmain-ai-tag {
        font-size: 10px;
        padding: 4px 8px;
    }

    .ndmain-small-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ndmain-hero-card {
        padding: 14px 16px;
        gap: 10px;
    }

    .ndmain-hero-card h3 {
        font-size: 13px;
    }

    .ndmain-trust {
        display: none;
    }

    .ndmain-section-header {
        padding: 0 20px;
    }

    .ndmain-section-title {
        font-size: 20px;
    }

    .ndmain-categories {
        padding: 32px 0;
    }

    .ndmain-cat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 16px;
    }

    .ndmain-cat-card {
        padding: 20px 10px;
        border-radius: 12px;
    }

    .ndmain-cat-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .ndmain-cat-card h3 {
        font-size: 12px;
    }

    .ndmain-cat-card p {
        font-size: 10px;
    }

    .ndmain-sections {
        display: flex;
        flex-direction: column;
    }

    .ndmain-sections > .ndmain-showcase {
        order: 1;
    }

    .ndmain-sections > .ndmain-info {
        order: 2;
    }

    .ndmain-sections > #ndmainBest {
        order: 3;
    }

    .ndmain-sections > #ndmainPopular {
        order: 4;
    }

    .ndmain-info {
        padding-bottom: 16px;
    }

    .ndmain-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 16px;
    }

    .ndmain-info-grid > .ndmain-info-card:nth-child(1) {
        order: 2;
    }

    .ndmain-info-grid > .ndmain-info-card:nth-child(2) {
        order: 1;
    }

    .ndmain-info-grid > .ndmain-info-card:nth-child(3) {
        order: 3;
    }

    .ndmain-info-header {
        padding: 16px 18px;
    }

    .ndmain-info-title {
        font-size: 15px;
    }

    .ndmain-info-body {
        padding: 12px 18px 16px;
    }

    .ndmain-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 16px;
    }

    .ndmain-collection {
        padding: 24px 16px 0;
    }

    .ndmain-collection-title {
        font-size: 18px;
    }

    .ndmain-collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ndmain-collection-info {
        padding: 10px 12px;
    }

    .ndmain-collection-name {
        font-size: 13px;
    }

    /* sv4 bodazone mobile */
    .sv4-hero {
        padding: 28px 0 60px;
    }

    .sv4-hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }

    .sv4-hero-label {
        font-size: 10px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .sv4-hero-accent {
        font-size: 18px;
    }

    .sv4-hero-title {
        font-size: 26px;
    }

    .sv4-hero-sub {
        font-size: 13px;
    }

    .sv4-ai-card {
        padding: 16px 18px;
    }

    .sv4-ai-card-text h3 {
        font-size: 13px;
    }

    .sv4-ai-tags {
        gap: 4px;
    }

    .sv4-ai-tag {
        font-size: 10px;
        padding: 4px 8px;
    }

    .sv4-small-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sv4-hero-card {
        padding: 14px 16px;
        gap: 10px;
    }

    .sv4-hero-card h3 {
        font-size: 13px;
    }

    .sv4-wrap {
        padding: 0 16px;
        padding-bottom: 32px;
    }

    .sv4-service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: -36px;
    }

    .sv4-service-card {
        padding: 20px 10px;
        border-radius: 12px;
    }

    .sv4-service-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .sv4-service-name {
        font-size: 12px;
    }

    .sv4-service-desc {
        font-size: 10px;
    }
}

/* --- 10. Loading UI --- */
.ndl-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    display: none;
}

.ndl-progress.active {
    display: block;
}

.ndl-progress-bar {
    height: 100%;
    background: var(--primary);
    animation: ndl-loading 1.5s ease-in-out infinite;
    transform-origin: left;
}

@keyframes ndl-loading {
    0% {
        transform: scaleX(0);
    }
    50% {
        transform: scaleX(0.7);
    }
    100% {
        transform: scaleX(1);
        opacity: 0;
    }
}

/* --- 11. Search Page --- */
.search-page {
    padding: 32px 0 60px;
    min-height: 60vh;
}

/* Empty State */
.search-empty {
    text-align: center;
    padding: 80px 0;
}

.search-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff7ed;
    color: #ea580c;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.search-empty-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    word-break: keep-all;
}

.search-empty-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
    word-break: keep-all;
}

.search-empty-form {
    max-width: 480px;
    margin: 0 auto;
}

.search-empty-bar {
    display: flex;
    height: 50px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-pill);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-empty-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-empty-bar input {
    flex: 1;
    padding: 0 20px;
    font-size: 15px;
    color: var(--text-dark);
}

.search-empty-bar input::placeholder {
    color: #aaa;
}

.search-empty-bar button {
    width: 50px;
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    transition: background 0.15s;
}

.search-empty-bar button:hover {
    background: var(--primary-dark);
}

/* Search Toolbar */
.nd-search-toolbar {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    margin-bottom: 20px;
}

.nd-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.nd-toolbar-title {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    word-break: keep-all;
    margin: 0;
}

.nd-toolbar-keyword {
    color: var(--primary);
}

.nd-toolbar-count {
    font-size: 13px;
    font-weight: 400;
    color: #94a3b8;
}

.nd-toolbar-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-top: 1px solid #f0f0f0;
    gap: 12px;
    flex-wrap: wrap;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    overflow: hidden;
    transition: all .15s;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: #374151;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.product-card.loading .product-card-spinner {
    display: flex;
}

.product-card-img {
    aspect-ratio: 1;
    background: #f8f8f8;
    position: relative;
}

.product-card-img img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-card-amazon .product-card-img img {
    object-fit: contain;
}

.product-card-spinner {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    z-index: 5;
}

.product-card-body {
    padding: 10px 12px;
}

.product-card-title {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    margin-bottom: 6px;
}

.product-card-price {
    font-size: 15px;
    font-weight: 700;
    color: #dc2626;
}

.product-card-footer {
    padding: 0 12px 10px;
    display: flex;
    justify-content: flex-end;
}

.product-card-newwin {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #949494;
    border: 1px solid #d5d5d5;
    border-radius: 20px;
    padding: 4px 10px;
    transition: color 0.15s, border-color 0.15s;
}

.product-card-newwin:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-num, .page-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    border: 1px solid var(--border);
    background: #fff;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    padding: 0 4px;
}

.page-num:hover, .page-nav:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.page-num.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-nav {
    font-size: 12px;
}

/* No Result */
.nd-noresult {
    text-align: center;
    padding: 80px 0;
}

.nd-noresult-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--text-light);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.nd-noresult-icon.error {
    background: #fef2f2;
    color: #ef4444;
}

.nd-noresult-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    word-break: keep-all;
}

.nd-noresult-keyword {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 24px;
}

.nd-noresult-tips {
    max-width: 400px;
    margin: 0 auto 32px;
    background: #f9fafb;
    border-radius: var(--radius);
    padding: 20px 24px;
    text-align: left;
}

.nd-noresult-tips-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nd-noresult-tips-title i {
    color: #f59e0b;
}

.nd-noresult-tips ul {
    list-style: disc;
    padding-left: 20px;
}

.nd-noresult-tips li {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
    word-break: keep-all;
}

/* --- 12. 404 Page --- */
.page-404 {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
}

.page-404-code {
    font-size: 80px;
    font-weight: 800;
    color: #e5e7eb;
    line-height: 1;
    margin-bottom: 16px;
}

.page-404-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.page-404-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    word-break: keep-all;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    transition: background 0.15s, transform 0.15s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* --- 13. Responsive --- */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --container: 100%;
    }

    /* Promo */
    .promo-bar {
        font-size: 12px;
        padding: 0 16px;
    }

    .promo-bar.promo-empty {
        display: none;
    }

    .promo-welcome {
        display: none;
    }

    /* Header */
    .header-inner {
        padding: 0 16px;
        gap: 8px;
    }

    .logo-text {
        font-size: 22px;
    }

    .search-pc {
        display: none;
    }

    .search-mobile {
        display: flex;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
    }

    .icon-btn span {
        display: none;
    }

    .icon-btn.menu-toggle {
        display: flex;
    }

    .icon-btn.pc-only {
        display: none;
    }

    .user-menu .um-logout {
        display: none;
    }

    /* Nav - hidden on mobile */
    .site-nav {
        display: none;
    }

    .allmenu-panel {
        display: none !important;
    }

    /* Category */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-section {
        margin-top: -20px;
        padding: 0 16px;
    }

    .cat-card {
        padding: 20px 16px;
    }

    .cat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    /* Info */
    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-section {
        margin: 24px auto;
        padding: 0 16px;
    }

    /* Hero */
    .hero {
        padding: 40px 16px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-sub {
        font-size: 14px;
    }

    .hero-search {
        height: 44px;
    }

    /* Search Page */
    .search-page {
        padding: 12px 0 24px;
    }

    .search-page > .container {
        padding: 0 8px;
    }

    .search-empty {
        padding: 48px 0;
    }

    .search-empty-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

    .search-empty-title {
        font-size: 20px;
    }

    .search-empty-desc {
        font-size: 14px;
    }

    .search-empty-bar {
        height: 44px;
    }

    .search-empty-bar button {
        width: 44px;
    }

    .search-header-title {
        font-size: 17px;
    }

    /* Product Grid - 2 columns */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card-body {
        padding: 8px 10px;
    }

    .product-card-title {
        font-size: 11px;
    }

    .product-card-price {
        font-size: 13px;
    }

    .product-card-footer {
        display: none;
    }

    /* Pagination */
    .pagination {
        gap: 4px;
        margin-top: 24px;
    }

    .page-num, .page-nav {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }

    /* No Result */
    .nd-noresult {
        padding: 48px 0;
    }

    .nd-noresult-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .nd-noresult-title {
        font-size: 17px;
    }

    .nd-noresult-tips {
        padding: 16px 20px;
    }

    /* Footer 모바일 */
    .ndt-infobar-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 12px 14px;
        gap: 0;
    }

    .ndt-info-item {
        padding: 8px 0;
        gap: 10px;
    }

    .ndt-info-item + .ndt-info-item::before {
        display: none;
    }

    .ndt-info-item + .ndt-info-item {
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 14px;
    }

    .ndt-info-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 13px;
    }

    .ndt-info-label {
        font-size: 10px;
    }

    .ndt-info-value {
        font-size: 14px;
    }

    .ndt-info-sub {
        font-size: 10px;
        margin-top: 1px;
    }

    .ndt-links {
        flex-wrap: wrap;
        padding: 10px 14px;
        gap: 2px;
    }

    .ndt-links a {
        padding: 3px 6px;
        font-size: 11px;
    }

    .ndt-links-sep {
        font-size: 9px;
    }

    .ndt-company-toggle {
        font-size: 11px;
        padding: 3px 10px;
    }

    .ndt-company-detail-inner {
        padding: 8px 14px;
        font-size: 11px;
        line-height: 1.6;
    }

    .ndt-center {
        padding: 4px 0 0;
    }

    .ndt-rules {
        font-size: 10px;
        padding: 0 14px;
        line-height: 1.5;
    }

    .ndt-copyright {
        margin: 8px 14px 16px;
        font-size: 10px;
    }

    .footer-sitename {
        font-size: 16px;
    }

    .footer-details {
        font-size: 12px;
    }

    .footer-details span {
        display: block;
        margin-right: 0;
    }

    /* Dev */
    .dev-info {
        padding: 0 16px;
        margin-bottom: 24px;
    }

    /* 404 */
    .page-404 {
        padding: 60px 16px;
    }

    .page-404-code {
        font-size: 60px;
    }

    .page-404-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-search {
        flex-direction: column;
        height: auto;
        border-radius: var(--radius);
    }

    .hero-search input {
        height: 44px;
        border-bottom: 1px solid #eee;
    }

    .hero-search button {
        width: 100%;
        height: 40px;
    }

    .search-empty-bar {
        height: 40px;
    }
}

/* ============================================================
   14. Detail Page (Phase 3)
   ============================================================ */

/* Layout */
.nd-detail-page {
    padding: 24px 0 60px;
    min-height: 60vh;
}

.nd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    color: #888;
}

.nd-breadcrumb-item {
    color: #888;
    text-decoration: none;
}

a.nd-breadcrumb-item:hover {
    color: #555;
    text-decoration: underline;
}

.nd-breadcrumb-sep {
    font-size: 9px;
    color: #ccc;
}

.nd-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 20px;
    word-break: keep-all;
}

.nd-title-ko {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
    margin-top: 4px;
}

/* eBay Partner Network 제휴 공시 */
.ndep-noti {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    margin: 0 0 12px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.4;
    flex-wrap: wrap;
}
.ndep-noti .ndep-title {
    flex-shrink: 0;
    color: #0a2540;
    font-weight: 800;
    letter-spacing: 0.2px;
}
.ndep-noti .ndep-title .ndep-ebay {
    color: #00a9ad;
    font-weight: 800;
}
.ndep-noti .ndep-text {
    color: #1f2937;
    word-break: keep-all;
}
@media (max-width:768px) {
    .ndep-noti {
        padding: 5px 12px;
        column-gap: 8px;
        row-gap: 2px;
        font-size: 10px;
        line-height: 1.3;
        border-radius: 16px;
    }
}

.nd-product {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
}

/* Image Area */
.nd-img-area {
    width: 45%;
    flex-shrink: 0;
}

.nd-main-img {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 460px;
    cursor: pointer;
    overflow: hidden;
}

.nd-main-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nd-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.nd-thumbs::-webkit-scrollbar {
    height: 4px;
}

.nd-thumbs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.nd-thumb-item {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
    background: #fff;
    flex-shrink: 0;
}

.nd-thumb-item:hover,
.nd-thumb-item.active {
    border-color: var(--primary);
}

.nd-thumb-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Info Area */
.nd-info-area {
    flex: 1;
    min-width: 0;
}

.nd-info-table {
    width: 100%;
    border-collapse: collapse;
}

.nd-info-table td {
    padding: 7px 12px;
    font-size: 14px;
    line-height: 1.4;
    vertical-align: middle;
    height: 38px;
}

.nd-info-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.nd-info-table tr:last-child {
    border-bottom: none;
}

.nd-info-label {
    width: 150px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    background: #fafafa;
    border-right: 1px solid #f0f0f0;
}

.nd-info-value {
    color: #222;
    word-break: break-word;
}

.nd-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #0F65E0;
    background: #EBF2FF;
}

.nd-link {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}

.nd-link:hover {
    border-color: #0F65E0;
    color: #0F65E0;
    background: #f8faff;
}

/* Options */
.nd-options {
    margin-top: 16px;
    padding: 4px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.nd-options .nd-info-table {
    border-top: none;
    table-layout: fixed;
    padding: 0;
}

.nd-options .nd-info-label {
    width: 120px;
    white-space: normal;
    word-break: keep-all;
    background: #fff;
    border-right: none;
    padding: 0;
    /*width: 150px;*/
}

/* Digital Notice */
.nd-est-digital-notice {
    margin-top: 20px;
    padding: 20px;
    background: #fef3c7;
    border-radius: var(--radius);
    border-left: 4px solid #f59e0b;
    color: #92400e;
    word-break: keep-all;
}

.nd-est-digital-notice i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.nd-est-digital-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.nd-est-digital-desc {
    font-size: 13px;
    line-height: 1.7;
}

/* No Price */
.nd-est-noprice {
    margin-top: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: keep-all;
}

.nd-est-noprice i {
    color: #3b82f6;
}

/* Estimate */
.nd-est {
    margin-top: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 5px 20px 20px;
}

.nd-est-body {
}

/* 견적 하단 배너 */
.ndbn-est {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.ndbn-est img {
    max-width: 600px;
    width: 100%;
    height: auto;
}

.ndbn-est-m {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.ndbn-est-m img {
    max-width: 100%;
    height: auto;
}

.nd-est-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.nd-est-label {
    width: 120px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.nd-est-value {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nd-est-stock {
    font-size: 12px;
    color: var(--text-light);
}

.nd-est-unit {
    font-size: 13px;
    color: var(--text-muted);
}

.nd-est-weight-select {
    width: 100px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 8px;
}
.nd-est-weight-select:focus {
    outline: 2px solid #059669;
    outline-offset: 1px;
}

.nd-est-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.nd-est-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0;
}

.nd-est-price-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.nd-est-btn-detail {
    background: #f3f4f6;
    color: var(--text-body);
    font-size: 12px;
    padding: 4px 10px;
    order: 0;
}

.nd-est-btn-detail:hover {
    background: #e5e7eb;
}

.nd-est-total {
    font-size: 22px;
    font-weight: 800;
    color: #e74c3c;
    margin-left: auto;
}

.nd-est-aircost {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    width: 100%;
    text-align: right;
}

.nd-est-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}

.nd-est-btn-outline {
    border: 1.5px solid var(--border);
    color: var(--text-body);
    background: #fff;
}

.nd-est-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nd-est-btn-buy {
    background: #ef4444;
    color: #fff;
    flex: 1;
    justify-content: center;
}

.nd-est-btn-buy:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.nd-est-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

@media (min-width: 769px) {
    .nd-est-actions .ndqa-est-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 0;
    }

    .nd-est-actions .nd-est-btn-buy {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* Stepper */
.stepper-box {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.stepper-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-body);
    background: #f9fafb;
    cursor: pointer;
    transition: background 0.15s;
}

.stepper-btn:hover {
    background: #e5e7eb;
}

.stepper-input {
    width: 44px;
    height: 36px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

/* Amount Detail Modal */
.nded-wrap {
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}

/* nded-header/close → .nd-modal-header/close 공용으로 통합 */
.nded-wrap.show {
    display: flex;
}

/* nded-body → nd-modal-body 공용 */
.nded-group {
    margin-bottom: 16px;
}

.nded-group:last-child {
    margin-bottom: 0;
}

.nded-group-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.nded-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fafafa;
    border-radius: 10px;
    margin-bottom: 6px;
}

.nded-row:last-child {
    margin-bottom: 0;
}

.nded-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.nded-icon-product {
    background: #dbeafe;
    color: #2563eb;
}

.nded-icon-tax {
    background: #ffedd5;
    color: #ea580c;
}

.nded-icon-shipping {
    background: #dcfce7;
    color: #16a34a;
}

.nded-icon-fee {
    background: #f3e8ff;
    color: #7c3aed;
}

.nded-icon-intl {
    background: #e0e7ff;
    color: #4338ca;
}

.nded-label {
    flex: 1;
    font-size: 14px;
    color: #444;
    word-break: keep-all;
}

.nded-sublabel {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

.nded-amounts {
    text-align: right;
    flex-shrink: 0;
    margin-left: 12px;
}

.nded-dollar {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}

.nded-won {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}

.nded-strikethrough {
    text-decoration: line-through;
    color: var(--text-light) !important;
}

.nded-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 16px 0;
}

.nded-event {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #FFF1F2, #FECDD3);
    border-radius: 10px;
    margin-top: 6px;
}

.nded-event-icon {
    font-size: 16px;
    color: #E11D48;
}

.nded-event-text {
    font-size: 13px;
    font-weight: 600;
    color: #BE123C;
    flex: 1;
    word-break: keep-all;
}

.nded-event-amount {
    font-size: 15px;
    font-weight: 700;
    color: #E11D48;
    white-space: nowrap;
}

.nded-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg, #0F65E0, #1E40AF);
    border-radius: 12px;
    margin-top: 16px;
}

.nded-total-label {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    word-break: keep-all;
}

.nded-total-amount {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

/* ── 공용 모달 프레임 ── */
.nd-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    z-index: 1001;
    width: 480px;
    max-width: calc(100vw - 32px);
}

.nd-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.nd-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.nd-modal-title i {
    color: var(--primary);
}

.nd-modal-close {
    cursor: pointer;
    font-size: 16px;
    color: #666;
    background: #ebebeb;
    border: none;
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    flex-shrink: 0;
}

.nd-modal-close:hover {
    color: #333;
    background: #ddd;
}

.nd-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

@media (max-width: 768px) {
    .nd-modal::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        margin: 8px auto 0;
    }
}

/* Modal Mask */
.nd-modal-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nd-modal-mask.show {
    display: block;
}

/* ── 라이브 검증 모달 (즉시구매 직전) ── */
.nd-validate-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .25);
    z-index: 10010;
    min-width: 260px;
    max-width: calc(100vw - 32px);
    padding: 18px 40px;
    text-align: center;
    white-space: nowrap;
}
.nd-validate-modal.show { display: block; }
.nd-validate-mask {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 10009;
}
.nd-validate-mask.show { display: block; }
.nd-validate-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nd-validate-icon {
    font-size: 16px;
    color: #059669;
    display: inline-flex;
    align-items: center;
}
.nd-validate-icon.spin {
    animation: ndvSpin 0.9s linear infinite;
}
@keyframes ndvSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.nd-validate-icon.error {
    color: #dc2626;
    animation: none;
}
.nd-validate-text {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}
.nd-validate-sub {
    margin-top: 4px;
    font-size: 11px;
    color: #6b7280;
}

/* Tabs */
.nd-tab-wrap {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.nd-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
}

.nd-tab-link {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.nd-tab-link:hover {
    color: var(--text-dark);
}

.nd-tab-link.current {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nd-tab-content {
    display: none;
    padding: 24px;
}

.nd-tab-content.current {
    display: block;
}

/* Detail Content */
.ndad-detail-wrap {
    position: relative;
    overflow: hidden;
}

.ndad-detail-wrap.ndad-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

.ndad-detail-btn {
    text-align: center;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    border-top: 1px solid var(--border);
    transition: background 0.15s;
}

.ndad-detail-btn:hover {
    background: var(--primary-bg);
}

.nd-feature-section {
    margin-bottom: 24px;
}

.nd-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.nd-section-body {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.8;
    word-break: break-word;
}

.nd-detail-images {
    margin-top: 16px;
}

.nd-detail-images img {
    max-width: 100%;
    height: auto;
    margin-bottom: 8px;
}

/* Refund Info */
.nd-refund-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.nd-refund-info ul {
    list-style: disc;
    padding-left: 24px;
}

.nd-refund-info li {
    font-size: 14px;
    color: var(--text-body);
    line-height: 2;
    word-break: keep-all;
}

/* Deleted Product */
.nd-deleted {
    text-align: center;
    padding: 80px 24px;
}

.nd-deleted-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fef2f2;
    color: #ef4444;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.nd-deleted-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    word-break: keep-all;
}

.nd-deleted-msg {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
    word-break: keep-all;
}

.nd-deleted-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}

.nd-deleted-btn:hover {
    background: var(--primary-dark);
}

.nd-deleted-btn-outline {
    background: #fff;
    color: var(--text-body);
    border: 1.5px solid var(--border);
    margin-left: 8px;
}

.nd-deleted-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff;
}

.nd-deleted-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* Lightbox */
.nd-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nd-lightbox.show {
    display: flex;
}

.nd-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.nd-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Option Spinner */
.ndl-option-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: ndl-spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes ndl-spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- 15. Detail Page Responsive --- */
@media (max-width: 768px) {
    .nd-detail-page {
        padding: 16px 0 40px;
    }

    .nd-detail-page > .container {
        padding: 0 12px;
    }

    .nd-breadcrumb {
        font-size: 12px;
        gap: 4px;
        margin-bottom: 8px;
    }

    .nd-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .nd-title-ko {
        font-size: 13px;
    }

    .nd-product {
        flex-direction: column;
        gap: 20px;
    }

    .nd-img-area {
        width: 100%;
    }

    .nd-main-img {
        height: 320px;
        padding: 12px;
    }

    .nd-main-img img {
        max-height: 100%;
    }

    .nd-thumb-item {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }

    .nd-info-area {
        width: 100% !important;
    }

    .nd-info-table td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .nd-info-label {
        width: 90px;
        font-size: 12px;
    }

    .nd-options .nd-info-label {
        width: 80px;
    }

    /* Estimate */
    .nd-est {
        padding: 4px 16px 8px;
    }

    .nd-est .nd-est-divider {
        display: none;
    }

    .nd-est .nd-est-label {
        width:80px;
    }

    /* 모바일 하단 고정바 */
    .nd-est-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 900;
        background: #fff;
        padding: 10px 16px 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    }

    .nd-est-bottom-bar .nd-est-price-row {
        padding: 0 0 6px;
        margin: 0;
    }

    .nd-est-bottom-bar .nd-est-btn-detail {
        font-size: 12px;
        padding: 4px 8px;
    }

    .nd-est-bottom-bar .nd-est-actions {
        margin-top: 6px;
    }

    .nd-est-total {
        font-size: 18px;
    }

    .nd-est-actions {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .nd-est-btn-wish {
        flex: 0 0 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }

    .nd-est-btn-wish .nd-est-btn-text {
        display: none;
    }

    .nd-est-actions .ndqa-est-btn {
        flex: 1;
    }

    .nd-est-btn-buy {
        flex: 1;
        justify-content: center;
    }

    /* Modal → Bottom Sheet */
    .nded-wrap {
        display: flex;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
        transition: transform .3s ease;
    }

    .nded-wrap.show {
        transform: translateY(0);
    }

    .nded-wrap:not(.show) {
        pointer-events: none;
    }

    /* Tabs */
    .nd-tab-link {
        padding: 12px 16px;
        font-size: 14px;
    }

    .nd-tab-content {
        padding: 16px;
    }

    /* Lightbox */
    .nd-lightbox img {
        max-width: 95vw;
        max-height: 85vh;
    }
}


/* ============================================================
   16. Skeleton Loading (nd-skel-*)
   ============================================================ */

/* Base shimmer box */
.nd-skel-box {
    position: relative;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.nd-skel-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: nd-shimmer 1.5s ease-in-out infinite;
}

@keyframes nd-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 검색 스켈레톤 카드 */
.nd-skel-card {
    pointer-events: none;
}

.nd-skel-card .product-card-img {
    background: #f0f0f0;
    position: relative;
}

.nd-skel-img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.nd-skel-line {
    height: 14px;
    margin: 8px 12px;
}

.nd-skel-line.short {
    width: 40%;
    height: 12px;
}

/* ---- 상세 스켈레톤 ---- */

/* 제목 바 */
.nd-skel-title-bar {
    height: 22px;
    width: 70%;
    margin-bottom: 8px;
    border-radius: 6px;
}

.nd-skel-title-bar.short {
    width: 45%;
    margin-bottom: 20px;
}

/* 이미지 영역 */
.nd-skel-detail-img {
    width: 100%;
    min-height: 380px;
    border-radius: var(--radius);
}

/* 썸네일 */
.nd-skel-thumb {
    width: 70px;
    height: 70px;
    display: inline-block;
    margin-right: 6px;
    border-radius: var(--radius-sm);
}

/* 정보 테이블 */
.nd-skel-table {
    margin-bottom: 16px;
}

.nd-skel-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #f5f5f5;
}

.nd-skel-label {
    width: 80px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

.nd-skel-value {
    height: 14px;
    flex: 1;
    max-width: 200px;
    border-radius: 4px;
}

.nd-skel-value.short {
    max-width: 120px;
}

/* 견적 영역 */
.nd-skel-est {
    margin-top: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.nd-skel-est-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
}

.nd-skel-stepper {
    width: 120px;
    height: 36px;
    border-radius: var(--radius-sm);
}

.nd-skel-est-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}

.nd-skel-est-price {
    display: flex;
    align-items: center;
    padding: 14px 0;
}

.nd-skel-est-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.nd-skel-btn {
    height: 44px;
    border-radius: var(--radius-sm);
    flex: 1;
}

.nd-skel-btn.primary {
    flex: 2;
    background: #e8e8e8;
}

/* 탭 영역 */
.nd-skel-tab-wrap {
    margin-top: 40px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.nd-skel-tab-header {
    display: flex;
    gap: 24px;
    padding: 16px 24px;
    border-bottom: 2px solid var(--border);
}

.nd-skel-tab-body {
    padding: 24px;
}

.nd-skel-tab-body .nd-skel-line {
    margin: 10px 0;
}

/* 스켈레톤→콘텐츠 전환 애니메이션 */
.nd-skel-fadein {
    animation: nd-fadeIn 0.3s ease;
}

@keyframes nd-fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 모바일 스켈레톤 보정 */
@media (max-width: 768px) {
    .nd-skel-title-bar {
        width: 90%;
    }

    .nd-skel-title-bar.short {
        width: 60%;
    }

    .nd-skel-detail-img {
        min-height: 250px;
    }

    .nd-skel-thumb {
        width: 56px;
        height: 56px;
    }

    .nd-skel-est {
        padding: 16px;
    }

    .nd-skel-est-actions {
        flex-direction: column;
    }

    .nd-skel-btn.primary {
        flex: 1;
    }

    .nd-skel-tab-header {
        padding: 14px 16px;
        gap: 16px;
    }

    .nd-skel-tab-body {
        padding: 16px;
    }
}

/* ============================================================
   17. eBay (Phase 3B)
   ============================================================ */

/* 국가 탭 */
.nd-country-tabs {
    display: flex;
    gap: 6px;
}

.nd-country-tab {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    word-break: keep-all;
    transition: background 0.15s, color 0.15s;
}

.nd-country-tab:hover {
    background: #e2e8f0;
    color: #374151;
}

.nd-country-tab.active {
    background: var(--primary);
    color: #fff;
}

/* 검색 필터 + 정렬 */
.nd-filter-tabs {
    display: flex;
    gap: 4px;
}

.nd-filter-tab {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    color: #64748b;
    text-decoration: none;
    word-break: keep-all;
    transition: all 0.15s;
}

.nd-filter-tab:hover {
    background: #f1f5f9;
    color: #374151;
}

.nd-filter-tab.active {
    background: #1e293b;
    color: #fff;
}

.nd-sort-select {
    padding: 6px 28px 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    color: var(--text-body);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 8px center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.nd-sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .nd-search-toolbar {
        margin-bottom: 10px;
        border-radius: 10px;
    }

    .nd-toolbar-top {
        padding: 10px 10px;
    }

    .nd-toolbar-bottom {
        padding: 8px 10px;
    }

    .nd-toolbar-title {
        font-size: 14px;
    }

    .nd-country-tab {
        padding: 5px 10px;
        font-size: 12px;
    }

    .nd-filter-tab {
        padding: 4px 10px;
        font-size: 12px;
    }

    .nd-sort-select {
        font-size: 12px;
        padding: 5px 24px 5px 8px;
    }
}

/* 경매 뱃지 (상품카드) */
.product-card-badge.auction {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 1;
}

/* 경매 안내 */
.nd-est-auction-notice {
    padding: 16px 20px;
    margin-top: 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    color: #92400e;
    word-break: keep-all;
}

/* 옵션 셀렉트 */
.nd-option-select {
    padding: 7px 30px 7px 10px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.nd-option-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 경매 입찰가 선택 */
.nd-bid-select {
    padding: 7px 32px 7px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid #d97706;
    color: #92400e;
    background: #fffbeb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23d97706'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    min-width: 140px;
}

.nd-bid-select:focus {
    outline: none;
    border-color: #b45309;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

@media (max-width: 768px) {
    .nd-bid-select {
        font-size: 14px;
        min-width: 120px;
        padding: 6px 28px 6px 10px;
    }
}

.nded-icon-bid {
    background: #fffbeb;
    color: #d97706;
}

.nded-row-bid {
    border-bottom: 1px dashed #fde68a;
    padding-bottom: 10px;
    margin-bottom: 4px;
}

/* 출고국 뱃지 색상 */
.nd-badge-us {
    color: #059669;
    background: #ecfdf5;
}

.nd-badge-gb {
    color: #dc2626;
    background: #fef2f2;
}

.nd-badge-de {
    color: #d97706;
    background: #fffbeb;
}

/* 이베이 상세설명 격리 (iframe sandbox) */
.nd-ebay-desc {
    overflow: hidden;
    word-break: keep-all;
}

.nd-desc-iframe {
    width: 100%;
    border: none;
    overflow: hidden;
    min-height: 200px;
}

.nd-ebay-desc img {
    max-width: 100% !important;
    height: auto !important;
}

.nd-ebay-desc table {
    max-width: 100%;
    border-collapse: collapse;
}

.nd-ebay-desc td, .nd-ebay-desc th {
    padding: 4px 8px;
}

/* 관련상품 */
.nd-related {
    margin-top: 32px;
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.nd-related-header {
    margin-bottom: 16px;
}

.nd-related-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.nd-related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .nd-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nd-related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .nd-related-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .nd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* (nd-country responsive moved to toolbar block) */

/* ===== 18. AI 상품분석 (.ndqa-) ===== */
.ndqa-est-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 35px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    user-select: none;
}

.ndqa-est-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.ndqa-est-btn i {
    font-size: 13px;
}

.ndqa-btn-text {
    font-size: 14px;
    display: inline-block;
    vertical-align: middle;
}

.ndqa-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.ndqa-overlay.active {
    display: flex;
}

.ndqa-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: ndqaSlideUp 0.25s ease-out;
}

@keyframes ndqaSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ndqa-modal-header/close → .nd-modal-header/close 공용으로 통합 */
.ndqa-modal .nd-modal-title i {
    color: #6366f1;
}

.ndqa-product-name {
    padding: 12px 24px;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    word-break: keep-all;
}

.ndqa-product-name strong {
    color: #6366f1;
}

.ndqa-questions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 24px;
}

.ndqa-q-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
    word-break: keep-all;
}

.ndqa-q-btn:hover {
    border-color: #6366f1;
    background: #faf5ff;
}

.ndqa-q-btn.active {
    border-color: #6366f1;
    background: #eef2ff;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.ndqa-q-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.ndqa-q-icon.blue {
    background: #eff6ff;
    color: #3b82f6;
}

.ndqa-q-icon.red {
    background: #fef2f2;
    color: #ef4444;
}

.ndqa-q-icon.green {
    background: #f0fdf4;
    color: #22c55e;
}

.ndqa-q-icon.orange {
    background: #fff7ed;
    color: #f97316;
}

.ndqa-q-icon.purple {
    background: #faf5ff;
    color: #a855f7;
}

.ndqa-q-icon.teal {
    background: #f0fdfa;
    color: #14b8a6;
}

.ndqa-q-text {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.ndqa-q-sub {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.ndqa-answer-area {
    display: none;
    padding: 0 24px 20px;
}

.ndqa-answer-area.active {
    display: block;
}

.ndqa-answer-label {
    font-size: 13px;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ndqa-answer-box {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    color: #e0e7ff;
    border-radius: 12px;
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    border-left: 4px solid #6366f1;
    word-break: keep-all;
}

.ndqa-answer-box strong {
    color: #a5b4fc;
}

.ndqa-answer-box .ndqa-error {
    color: #fca5a5;
}

.ndqa-answer-box .ndqa-loading {
    color: #a5b4fc;
}

.ndqa-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    word-break: keep-all;
}

.ndqa-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: ndqaSpin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes ndqaSpin {
    to {
        transform: rotate(360deg);
    }
}

.ndqa-btn-text {
    display: inline-block;
}

.ndqa-btn-text.ndqa-text-out {
    animation: ndqaTextOut 0.25s ease-in forwards;
}

.ndqa-btn-text.ndqa-text-in {
    animation: ndqaTextIn 0.25s ease-out forwards;
}

@keyframes ndqaTextOut {
    0% {
        transform: translateY(0);
        opacity: 1
    }
    100% {
        transform: translateY(-8px);
        opacity: 0
    }
}

@keyframes ndqaTextIn {
    0% {
        transform: translateY(8px);
        opacity: 0
    }
    100% {
        transform: translateY(0);
        opacity: 1
    }
}

.ndqa-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
}

.ndqa-error i {
    margin-top: 1px;
}

.ndqa-notice {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    font-size: 11px;
    color: #999;
    word-break: keep-all;
}

.ndqa-notice i {
    margin-top: 2px;
    flex-shrink: 0;
}

.ndqa-modal-footer {
    padding: 12px 24px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.ndqa-powered {
    font-size: 11px;
    color: #aaa;
}

@media (max-width: 768px) {
    .ndqa-est-btn {
        height: auto;
        padding: 10px 10px;
        font-size: 13px;
        border-radius: 6px;
    }

    .ndqa-overlay {
        padding: 0;
    }

    .ndqa-modal {
        border-radius: 16px 16px 0 0;
        align-self: flex-end;
        max-width: 100%;
        max-height: 90vh;
        width: 100%;
    }

    /* ndqa-modal-header → nd-modal-header */
    .ndqa-product-name {
        padding: 4px 16px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ndqa-questions {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 8px;
    }

    .ndqa-answer-area {
        padding: 0 12px 16px;
    }

    .ndqa-answer-box {
        padding: 14px;
    }

    .ndqa-loading {
        font-size: 12px;
    }

    .ndqa-modal-footer {
        padding: 10px 16px;
    }
}

/* ===== ndmb — 회원 (가입/로그인) ===== */
.ndmb-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.ndmb-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ndmb-header {
    padding: 32px 32px 0;
}

.ndmb-title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.ndmb-subtitle {
    font-size: 13px;
    color: #999;
    word-break: keep-all;
}

.ndmb-body {
    padding: 24px 32px;
}

.ndmb-row {
    display: flex;
    gap: 30px;
}

.ndmb-row > .ndmb-section {
    flex: 1;
    min-width: 0;
}

.ndmb-section {
    margin-bottom: 28px;
}

.ndmb-section:last-child {
    margin-bottom: 0;
}

.ndmb-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    margin-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.ndmb-section-label i {
    margin-right: 4px;
}

.ndmb-field {
    margin-bottom: 16px;
}

.ndmb-field:last-child {
    margin-bottom: 0;
}

.ndmb-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.ndmb-required {
    color: #ef4444;
    margin-left: 2px;
}

.ndmb-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    color: #111;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.ndmb-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ndmb-input::placeholder {
    color: #bbb;
    font-size: 13px;
}

.ndmb-input[readonly] {
    background: #f9fafb;
    color: #666;
    cursor: default;
}

.ndmb-input[readonly]:focus {
    border-color: #e0e0e0;
    box-shadow: none;
}

.ndmb-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ndmb-input-row .ndmb-input {
    flex: 1;
}

.ndmb-btn {
    height: 46px;
    padding: 0 16px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
    font-family: inherit;
}

.ndmb-btn-outline {
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
}

.ndmb-btn-outline:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.ndmb-btn-primary {
    background: var(--primary);
    color: #fff;
    min-width: 100px;
}

.ndmb-btn-primary:hover {
    background: var(--primary-dark, #2563eb);
}

.ndmb-hint {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.ndmb-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    display: none;
}

.ndmb-addr-zip {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.ndmb-addr-zip .ndmb-input {
    width: 100px;
    flex: none;
    cursor: pointer;
}

.ndmb-addr-full {
    margin-bottom: 8px;
}

.ndmb-addr-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.ndmb-zip {
    width: 90px;
    flex: none;
    cursor: pointer;
}

.ndmb-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    border: 1px solid #f0f0f0;
    transition: all .2s;
    word-break: keep-all;
}

.ndmb-check:hover {
    background: #f0f5ff;
    border-color: #bfdbfe;
}

.ndmb-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.ndmb-badge {
    width: 100%;
    padding: 10px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    font-size: 13px;
    color: #15803d;
    word-break: keep-all;
    box-sizing: border-box;
}

.ndmb-badge i {
    color: #22c55e;
}

.ndmb-badge-link {
    margin-left: 8px;
    font-size: 12px;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

.ndmb-submit {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark, #2563eb));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    margin-top: 28px;
    font-family: inherit;
}

.ndmb-submit:hover {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* 진행 단계 표시 */
.ndmb-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 28px;
    padding: 20px 0;
}

.ndmb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 80px;
}

.ndmb-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}

.ndmb-step.active .ndmb-step-num {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark, #2563eb));
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.ndmb-step.done .ndmb-step-num {
    background: #059669;
    color: #fff;
}

.ndmb-step-text {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
    word-break: keep-all;
}

.ndmb-step.active .ndmb-step-text {
    color: var(--primary);
}

.ndmb-step.done .ndmb-step-text {
    color: #059669;
}

.ndmb-step-line {
    width: 40px;
    height: 2px;
    background: #e5e7eb;
    margin: 17px 8px 0;
    transition: background .3s;
}

.ndmb-step-line.done {
    background: #059669;
}

/* 약관 동의 */
.ndmb-agree-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ndmb-agree-item .ndmb-check {
    flex: 1;
    margin-bottom: 0;
}

.ndmb-agree-view {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    padding: 4px 8px;
    text-decoration: underline;
    font-family: inherit;
}

.ndmb-agree-view:hover {
    color: var(--primary-dark, #2563eb);
}

.ndmb-agree-box {
    margin: 0 0 12px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
}

/* ndmb 모바일 */
@media (max-width: 600px) {
    .ndmb-page {
        margin: 0 auto;
        padding: 0;
    }

    .mainbody.ndmb-bg {
        background: #fff;
    }

    .ndmb-card {
        border-radius: 0;
        box-shadow: none;
    }

    .ndmb-header {
        padding: 24px 20px 0;
    }

    .ndmb-body {
        padding: 20px;
    }

    .ndmb-title {
        font-size: 22px;
    }

    .ndmb-row {
        flex-direction: column;
        gap: 0;
    }

    .ndmb-input {
        height: 48px;
        border-radius: 8px;
    }

    .ndmb-btn {
        height: 48px;
        border-radius: 8px;
    }

    .ndmb-submit {
        height: 52px;
        border-radius: 10px;
    }

    .ndmb-addr-zip .ndmb-btn {
        padding: 0 12px;
        font-size: 12px;
    }

    .ndmb-steps {
        padding: 16px 0;
        margin-bottom: 20px;
    }

    .ndmb-step-num {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .ndmb-step-text {
        font-size: 11px;
    }

    .ndmb-step-line {
        width: 24px;
        margin: 15px 4px 0;
    }
}

/* ============================================================
   게시판 (.ndb-*)
   ============================================================ */

/* --- 페이지 래퍼 --- */
.ndb-page {
    padding: 32px 0 48px;
}

/* --- 헤더 --- */
.ndb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ndb-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ndb-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ndb-title i {
    color: var(--primary);
    font-size: 20px;
}

.ndb-count {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- 공통 버튼 --- */
.ndb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    border: none;
    text-decoration: none;
    word-break: keep-all;
}

.ndb-btn-primary {
    background: var(--primary);
    color: #fff;
}

.ndb-btn-primary:hover {
    background: var(--primary-dark);
}

.ndb-btn-secondary {
    background: #f3f4f6;
    color: var(--text-body);
    border: 1px solid var(--border);
}

.ndb-btn-secondary:hover {
    background: #e5e7eb;
}

.ndb-btn-danger {
    background: #ef4444;
    color: #fff;
}

.ndb-btn-danger:hover {
    background: #dc2626;
}

/* --- 뱃지 --- */
.ndb-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    word-break: keep-all;
}

.ndb-badge-notice {
    background: var(--primary-bg);
    color: var(--primary-dark);
}

.ndb-badge-secret {
    background: #fef3c7;
    color: #92400e;
}

/* --- 목록 --- */
.ndb-list {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.ndb-list-head {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #f9fafb;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.ndb-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: background .15s;
    text-decoration: none;
    color: inherit;
}

.ndb-item:last-child {
    border-bottom: none;
}

.ndb-item:hover {
    background: #f9fafb;
}

.ndb-item-notice {
    background: var(--primary-bg);
}

.ndb-item-notice:hover {
    background: #d1fae5;
}

/* 컬럼 너비 */
.ndb-col-num {
    width: 70px;
    text-align: center;
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.ndb-col-subject {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    color: var(--text-dark);
    word-break: keep-all;
}

.ndb-col-author {
    width: 100px;
    text-align: center;
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.ndb-col-date {
    width: 100px;
    text-align: center;
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.ndb-col-hit {
    width: 60px;
    text-align: center;
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.ndb-commentcnt {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-left: 4px;
}

.ndb-icon-secret {
    color: #f59e0b;
    font-size: 12px;
    margin-right: 4px;
}

.ndb-item-meta-m {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 빈 목록 */
.ndb-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    word-break: keep-all;
}

.ndb-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
    color: var(--text-light);
}

.ndb-empty p {
    font-size: 15px;
}

/* --- 페이지네이션 --- */
.ndb-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 24px 0;
}

.ndb-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-body);
    text-decoration: none;
    transition: all .2s;
    border: 1px solid var(--border);
    background: var(--bg-white);
}

.ndb-page-btn:hover {
    background: #f3f4f6;
    border-color: var(--text-light);
}

.ndb-page-active {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    font-weight: 600;
}

/* --- 검색 --- */
.ndb-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.ndb-search-select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-body);
    background: var(--bg-white);
    cursor: pointer;
}

.ndb-search-input {
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    width: 220px;
    background: var(--bg-white);
    color: var(--text-dark);
}

.ndb-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.ndb-search-btn {
    height: 40px;
    padding: 0 16px;
}

/* --- 상세 카드 --- */
.ndb-view-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.ndb-view-header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--border-light);
}

.ndb-view-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 8px 0 12px;
    word-break: keep-all;
    line-height: 1.4;
}

.ndb-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.ndb-view-meta i {
    margin-right: 4px;
}

/* 첨부파일 */
.ndb-files {
    padding: 12px 28px;
    background: #f9fafb;
    border-bottom: 1px solid var(--border-light);
}

.ndb-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    margin: 2px 4px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--primary-dark);
    background: var(--primary-bg);
    text-decoration: none;
    transition: background .2s;
}

.ndb-file:hover {
    background: #d1fae5;
}

/* 본문 */
.ndb-view-body {
    padding: 28px;
    line-height: 1.8;
    font-size: 15px;
    color: var(--text-body);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.ndb-view-body img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    border-radius: 4px;
}

.ndb-view-body a {
    color: var(--primary);
    text-decoration: underline;
}

.ndb-view-body table {
    max-width: 100%;
    overflow-x: auto;
}

.ndb-view-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 28px 20px;
}

.ndb-view-thumb {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.ndb-view-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 액션 버튼 --- */
.ndb-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}

.ndb-actions-right {
    display: flex;
    gap: 8px;
}

/* --- 댓글 --- */
.ndb-comments {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 24px 28px;
    margin-top: 20px;
}

.ndb-comments-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ndb-comment {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.ndb-comment:last-child {
    border-bottom: none;
}

.ndb-comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.ndb-comment-author {
    font-weight: 600;
    color: var(--text-dark);
}

.ndb-comment-del {
    margin-left: auto;
    color: var(--text-light);
    cursor: pointer;
    background: none;
    border: none;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all .2s;
}

.ndb-comment-del:hover {
    color: #ef4444;
    background: #fef2f2;
}

.ndb-comment-body {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.ndb-comment-empty {
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    word-break: keep-all;
}

/* 댓글 입력 */
.ndb-comment-form {
    margin-top: 16px;
}

.ndb-comment-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    resize: vertical;
    background: var(--bg-white);
    color: var(--text-dark);
    min-height: 80px;
}

.ndb-comment-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.ndb-comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.ndb-comment-login {
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    background: #f9fafb;
    border-radius: var(--radius-sm);
    word-break: keep-all;
}

.ndb-comment-login a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* --- 작성/수정 폼 --- */
.ndb-form-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.ndb-form-header {
    padding: 24px 28px 0;
}

.ndb-form-body {
    padding: 24px 28px;
}

.ndb-form-row {
    margin-bottom: 20px;
}

.ndb-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.ndb-required {
    color: #ef4444;
}

.ndb-form-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-dark);
    background: var(--bg-white);
}

.ndb-form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.ndb-form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-dark);
    background: var(--bg-white);
    resize: vertical;
    line-height: 1.6;
}

.ndb-form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* 옵션 체크박스 */
.ndb-form-checks {
    display: flex;
    gap: 20px;
}

.ndb-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-body);
    cursor: pointer;
}

.ndb-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* 파일 업로드 */
.ndb-form-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ndb-form-file-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ndb-form-file-input {
    font-size: 14px;
    color: var(--text-body);
}

.ndb-form-file-existing {
    font-size: 13px;
    color: var(--primary-dark);
    background: var(--primary-bg);
    padding: 4px 10px;
    border-radius: 4px;
}

/* 폼 액션 버튼 */
.ndb-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* --- 모바일 반응형 --- */
@media (max-width: 768px) {
    .ndb-page {
        padding: 16px 0 32px;
    }

    .ndb-header {
        gap: 12px;
    }

    .ndb-title {
        font-size: 18px;
    }

    /* 목록: 컬럼 숨기기 */
    .ndb-list-head {
        display: none;
    }

    .ndb-col-num {
        width: 40px;
        font-size: 12px;
    }

    .ndb-col-author, .ndb-col-date, .ndb-col-hit {
        display: none;
    }

    .ndb-col-subject {
        font-size: 14px;
    }

    .ndb-item {
        padding: 12px 16px;
    }

    /* 페이지네이션 */
    .ndb-pagination {
        flex-wrap: wrap;
        gap: 3px;
    }

    .ndb-page-btn {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
        padding: 0 5px;
    }

    /* 검색 */
    .ndb-search {
        flex-wrap: nowrap;
    }

    .ndb-search-select {
        padding: 0 6px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .ndb-search-input {
        flex: 1;
        min-width: 0;
        width: auto;
        font-size: 13px;
    }

    .ndb-search-btn {
        flex-shrink: 0;
        padding: 0 12px;
        font-size: 13px;
    }

    /* 상세 */
    .ndb-view-header {
        padding: 20px 16px 16px;
    }

    .ndb-view-title {
        font-size: 17px;
    }

    .ndb-view-meta {
        gap: 10px;
        font-size: 12px;
    }

    .ndb-view-body {
        padding: 20px 16px;
        font-size: 14px;
    }

    .ndb-files {
        padding: 10px 16px;
    }

    .ndb-view-images {
        padding: 0 16px 16px;
    }

    .ndb-view-thumb {
        width: 100px;
        height: 100px;
    }

    /* 액션 */
    .ndb-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .ndb-actions-right {
        justify-content: flex-end;
    }

    /* 댓글 */
    .ndb-comments {
        padding: 16px;
    }

    /* 폼 */
    .ndb-form-header {
        padding: 20px 16px 0;
    }

    .ndb-form-body {
        padding: 16px;
    }

    .ndb-form-input {
        height: 48px;
    }

    .ndb-form-checks {
        flex-direction: column;
        gap: 10px;
    }

}

/* ========================================
   관심상품 / 내가본상품 (공통 wl-*)
   ======================================== */
.wl-page {
    padding: 30px 0;
    min-height: 60vh;
}

.wl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--text-dark);
}

.wl-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wl-title i {
    color: #e74c3c;
}

.wl-title .fa-clock-rotate-left {
    color: var(--primary);
}

.wl-count {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

.wl-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.wl-item {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.wl-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.wl-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.wl-item-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    z-index: 5;
}

.wl-item-delete:hover {
    background: #e74c3c;
}

.wl-item-image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    overflow: hidden;
}

.wl-item-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s;
}

.wl-item:hover .wl-item-image img {
    transform: scale(1.05);
}

.wl-item-info {
    padding: 10px 12px;
    border-top: 1px solid var(--border-light);
}

.wl-item-title {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: keep-all;
}

.wl-item-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 4px;
}

.wl-item-date {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

.wl-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.wl-empty i {
    font-size: 56px;
    color: #ddd;
    margin-bottom: 16px;
    display: block;
}

.wl-empty p {
    font-size: 17px;
    margin-bottom: 20px;
    word-break: keep-all;
}

.wl-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.wl-loading i {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
}

.wl-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.wl-btn {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wl-btn-danger {
    background: #fff;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.wl-btn-danger:hover {
    background: #e74c3c;
    color: #fff;
}

.wl-btn-primary {
    background: var(--primary);
    color: #fff;
}

.wl-btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

@media (max-width: 1100px) {
    .wl-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .wl-page {
        padding: 16px 0;
    }

    .wl-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .wl-title {
        font-size: 20px;
    }

    .wl-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .wl-item-info {
        padding: 8px 10px;
    }

    .wl-item-title {
        font-size: 12px;
        height: 32px;
    }

    .wl-empty {
        padding: 50px 16px;
    }
}

@media (max-width: 480px) {
    .wl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ========================================
   플로팅 메뉴
   ======================================== */
.fl-left, .fl-right {
    position: fixed;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 90;
    transition: opacity 0.3s;
}

.fl-left {
    left: 12px;
    top: calc(var(--promo-height) + var(--header-height) + var(--nav-height) + 12px);
}

.fl-right {
    right: 12px;
    top: calc(var(--promo-height) + var(--header-height) + var(--nav-height) + 12px);
}

.fl-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 11px;
    line-height: 1;
    gap: 2px;
}

.fl-btn i {
    font-size: 18px;
}

.fl-btn span {
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    word-break: keep-all;
}

.fl-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.fl-charge {
    background: #fff3e0;
    border-color: #f57c00;
    color: #e65100;
}
.fl-charge:hover {
    background: #f57c00;
    color: #fff;
    border-color: #e65100;
}

.fl-top {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.fl-top:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.fl-nttalk {
    background: #03C75A;
    color: #fff;
    border-color: #03C75A;
}
.fl-nttalk:hover {
    background: #02b050;
    border-color: #02b050;
}

/* 좌측 내가본상품 썸네일 */
.fl-vp {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fl-vp-item {
    display: block;
    width: 58px;
    height: 58px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.fl-vp-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.fl-vp-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================================
   Customer Center Layout (.ndcs-*)
   ============================================================ */
.ndcs-layout {
    display: flex;
    gap: 30px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 24px 20px 60px;
}

.ndcs-content {
    flex: 1;
    min-width: 0;
}

.ndcs-page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--text-dark);
}

/* Sidebar */
.ndcs-sidebar {
    width: 220px;
    min-width: 220px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    align-self: flex-start;
    position: sticky;
    top: calc(var(--promo-height) + var(--header-height) + var(--nav-height) + 12px);
}

.ndcs-header {
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ndcs-header i {
    color: var(--primary);
    font-size: 18px;
}

.ndcs-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.ndcs-list li {
    margin: 0;
}

.ndcs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    position: relative;
}

.ndcs-item:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.ndcs-item i:first-child {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    flex-shrink: 0;
}

.ndcs-item:hover i:first-child {
    color: var(--primary);
}

.ndcs-active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
    border-right: 3px solid var(--primary);
}

.ndcs-active i:first-child {
    color: var(--primary);
}

.ndcs-ext {
    font-size: 10px;
    color: var(--text-light);
    margin-left: auto;
}

.ndcs-item:hover .ndcs-ext {
    color: var(--primary);
}

.ndcs-divider {
    height: 1px;
    background: var(--border);
    margin: 0 16px;
}

@media (max-width: 768px) {
    .ndcs-layout {
        flex-direction: column;
        gap: 16px;
        padding: 12px 12px 40px;
    }

    .ndcs-sidebar {
        width: 100%;
        min-width: auto;
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 8px;
    }

    .ndcs-header {
        grid-column: 1 / -1;
    }

    .ndcs-list {
        display: contents;
    }

    .ndcs-item {
        padding: 6px 12px;
        font-size: 13px;
        gap: 6px;
    }

    .ndcs-active {
        border-right: none;
        border-radius: var(--radius-sm);
    }

    .ndcs-divider {
        display: none;
    }

    .ndcs-page-title {
        font-size: 18px;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
}

/* ============================================================
   Guide Content (.ndgc-*)
   ============================================================ */
.ndgc-wrap {
    word-break: keep-all;
}

.ndgc-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.ndgc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    padding: 16px 20px;
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ndgc-title i {
    color: #64748b;
    font-size: 15px;
}

.ndgc-tag {
    font-size: 11px;
    font-weight: 600;
    color: #f97316;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
}

.ndgc-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-body);
}

.ndgc-body p {
    margin: 0 0 8px;
}

.ndgc-sub-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 24px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border);
}

.ndgc-sub-title:first-child {
    margin-top: 0;
}

.ndgc-list {
    margin: 8px 0 12px 20px;
    padding: 0;
}

.ndgc-list li {
    margin-bottom: 4px;
    padding-left: 4px;
}

.ndgc-list li::marker {
    color: #94a3b8;
}

.ndgc-example {
    color: var(--text-muted);
    font-style: italic;
    font-size: 13px;
}

.ndgc-status-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.ndgc-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    word-break: keep-all;
}

.ndgc-status-ok {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.ndgc-status-warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.ndgc-status-no {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.ndgc-status-label {
    font-weight: 700;
    color: var(--text-dark);
    min-width: 140px;
    flex-shrink: 0;
}

.ndgc-status-arrow {
    color: #94a3b8;
    font-size: 11px;
    flex-shrink: 0;
}

.ndgc-status-ok .ndgc-status-result {
    color: #16a34a;
    font-weight: 600;
}

.ndgc-status-warn .ndgc-status-result {
    color: #d97706;
}

.ndgc-status-no .ndgc-status-result {
    color: #dc2626;
    font-weight: 600;
}

.ndgc-callout {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.7;
    margin: 12px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    word-break: keep-all;
}

.ndgc-callout > i {
    flex-shrink: 0;
    margin-top: 3px;
}

.ndgc-callout-red {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.ndgc-callout-red > i {
    color: #dc2626;
}

.ndgc-callout-blue {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.ndgc-callout-blue > i {
    color: #2563eb;
}

.ndgc-notice-list {
    margin: 8px 0 0 16px;
    padding: 0;
    font-size: 12px;
    line-height: 1.8;
}

.ndgc-notice-list li {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .ndgc-status {
        flex-wrap: wrap;
        gap: 4px;
    }

    .ndgc-status-label {
        min-width: auto;
        width: 100%;
    }

    .ndgc-status-arrow {
        display: none;
    }

    .ndgc-title {
        font-size: 15px;
        padding: 14px 16px;
    }

    .ndgc-body {
        padding: 16px;
    }
}

/* ============================================================
   Guide Map (.ndgm-*)
   ============================================================ */
.ndgm-wrap {
    max-width: 960px;
}

.ndgm-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.ndgm-card-header {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ndgm-card-header i {
    color: var(--primary);
}

.ndgm-card-body {
    padding: 24px;
}

.ndgm-addr {
    margin-bottom: 16px;
}

.ndgm-addr-ko {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    line-height: 1.6;
    word-break: keep-all;
}

.ndgm-zip {
    color: var(--text-muted);
    font-weight: 500;
}

.ndgm-addr-en {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
    line-height: 1.5;
}

.ndgm-contact {
    border-top: 1px solid #f3f4f6;
    padding-top: 14px;
}

.ndgm-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-body);
}

.ndgm-contact-item i {
    color: var(--primary);
    width: 18px;
    text-align: center;
}

.ndgm-map-area {
    width: 100%;
    min-height: 300px;
}

.ndgm-map-area .root_daum_roughmap {
    margin: 0 auto;
}

.ndgm-traffic {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ndgm-traffic-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-body);
    word-break: keep-all;
}

.ndgm-traffic-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    min-width: 52px;
}

.ndgm-badge-subway {
    background: #22c55e;
}

.ndgm-badge-bus {
    background: #3b82f6;
}

@media (max-width: 768px) {
    .ndgm-card-header {
        padding: 14px 16px;
        font-size: 15px;
    }

    .ndgm-card-body {
        padding: 16px;
    }

    .ndgm-addr-ko {
        font-size: 15px;
    }

    .ndgm-addr-en {
        font-size: 12px;
    }

    .ndgm-traffic-item {
        font-size: 13px;
    }
}

/* ============================================================
   Local Address (.ndla-*)
   ============================================================ */
.ndla-wrap {
    max-width: 600px;
}

.ndla-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ndla-tab {
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-body);
    transition: all 0.2s;
}

.ndla-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.ndla-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.ndla-card {
    display: none;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.ndla-card.active {
    display: block;
}

.ndla-card-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.ndla-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-light);
}

.ndla-label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.ndla-value {
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
    word-break: keep-all;
    font-size: 14px;
}

.ndla-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--primary);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .ndla-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .ndla-card {
        padding: 16px;
    }

    .ndla-row {
        flex-direction: column;
        gap: 4px;
    }

    .ndla-value {
        text-align: left;
    }
}

/* ============================================================
   Warehouse Modal (.ndwh-*)
   ============================================================ */
.ndwh-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1000;
}

.ndwh-modal {
    max-height: 85vh;
    overflow-y: auto;
}

.ndwh-modal.show {
    display: block;
}

/* ndwh-header/close → .nd-modal-header/close 공용으로 통합 */
/* ndwh-body → nd-modal-body 공용 */
.ndwh-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ndwh-tab {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-body);
    transition: all 0.2s;
}

.ndwh-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.ndwh-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.ndwh-card {
    display: none;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.ndwh-card.active {
    display: block;
}

.ndwh-card-title {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.ndwh-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
}

.ndwh-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.ndwh-value {
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
    word-break: keep-all;
    font-size: 13px;
}

.ndwh-note {
    margin-top: 14px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--primary);
    text-align: left;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
    word-break: keep-all;
}
.ndwh-note i {
    margin-top: 2px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .ndwh-modal {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
        transition: transform .3s ease;
        display: block;
    }

    .ndwh-modal.show {
        transform: translateY(0);
    }

    .ndwh-modal:not(.show) {
        pointer-events: none;
    }

    .ndwh-tab {
        padding: 7px 14px;
        font-size: 12px;
    }

    .ndwh-card {
        padding: 16px;
    }

    .ndwh-row {
        flex-direction: column;
        gap: 3px;
    }

    .ndwh-value {
        text-align: left;
    }
}

/* ============================================================
   FAQ (.ndfaq-*)
   ============================================================ */
.ndfaq-wrapper {
    word-break: keep-all;
}

.ndfaq-header {
    text-align: center;
    margin-bottom: 28px;
}

.ndfaq-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ndfaq-title i {
    color: var(--primary);
    font-size: 28px;
}

.ndfaq-subtitle {
    font-size: 15px;
    color: var(--text-muted);
}

.ndfaq-search {
    text-align: center;
    margin-bottom: 24px;
}

.ndfaq-search-inner {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.ndfaq-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
}

.ndfaq-search input {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 20px 14px 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    background: var(--bg-gray);
    transition: all 0.2s;
}

.ndfaq-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.ndfaq-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.ndfaq-tab {
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-body);
    transition: all 0.2s;
}

.ndfaq-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.ndfaq-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.ndfaq-item {
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}

.ndfaq-question {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
}

.ndfaq-question:hover {
    background: var(--bg-gray);
}

.ndfaq-q-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
}

.ndfaq-q-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.ndfaq-q-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ndfaq-chevron {
    font-size: 13px;
    color: #94a3b8;
    transition: transform 0.3s;
}

.ndfaq-item.open .ndfaq-chevron {
    transform: rotate(180deg);
}

.ndfaq-answer {
    display: none;
    padding: 20px;
    background: var(--bg-gray);
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.8;
    gap: 10px;
    align-items: flex-start;
}

.ndfaq-item.open .ndfaq-answer {
    display: flex;
}

.ndfaq-a-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #f59e0b;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.ndfaq-a-text {
    flex: 1;
    min-width: 0;
    word-break: keep-all;
}

.ndfaq-a-text li {
    line-height: 1.7;
    margin-bottom: 0;
}

.ndfaq-a-text img {
    max-width: 100%;
    height: auto;
}

.ndfaq-a-text table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

.ndfaq-no-result {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.ndfaq-no-result i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    color: var(--text-light);
}

.ndfaq-no-result p {
    font-size: 16px;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .ndfaq-page {
        padding: 12px 0 40px;
    }

    .ndfaq-header {
        margin-bottom: 20px;
    }

    .ndfaq-title {
        font-size: 20px;
    }

    .ndfaq-title i {
        font-size: 22px;
    }

    .ndfaq-subtitle {
        font-size: 13px;
    }

    .ndfaq-tab {
        padding: 6px 14px;
        font-size: 13px;
    }

    .ndfaq-question {
        padding: 14px;
    }

    .ndfaq-q-text {
        font-size: 14px;
    }

    .ndfaq-answer {
        padding: 16px 14px;
    }
}

/* 모바일: 좌측 숨기고 우측은 하단 TOP+FAQ만 */
@media (max-width: 768px) {
    .fl-left {
        display: none;
    }

    .fl-right {
        top: auto;
        bottom: 70px;
        right: 10px;
    }

    /* 앱(webview): float TOP 숨김 상태 — 채팅 버튼을 하단바 바로 위로 */
    .fl-right.fl-app {
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .fl-right .fl-btn:not(.fl-top):not(.fl-mob) {
        display: none;
    }

    .fl-btn {
        width: 46px;
        height: 46px;
    }

    .fl-btn i {
        font-size: 16px;
    }

    .fl-btn span {
        font-size: 8px;
    }
}

/* ============================================================
   17. Allsearch (통합검색) - .ndas-*
   ============================================================ */

/* 소스별 칩 */
.ndas-source-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 14px;
}

.ndas-source-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body);
    text-decoration: none;
    white-space: nowrap;
    word-break: keep-all;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    animation: ndas-fadeIn 0.35s ease forwards;
}

.ndas-source-chip:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: var(--shadow-sm);
}

.ndas-chip-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    pointer-events: none;
}

.ndas-chip-active i {
    color: rgba(255, 255, 255, .8);
}

.ndas-chip-active .ndas-chip-count {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

.ndas-source-chip i {
    font-size: 14px;
    color: var(--text-light);
}

.ndas-source-chip:hover i {
    color: var(--primary);
}

/* 네비게이션 칩 (개별 검색 페이지) */
.ndas-nav-chips {
    padding: 0 20px 14px;
}

.ndas-chip-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.ndas-chip-count:empty {
    display: none;
}

.ndas-chip-arrow {
    font-size: 10px;
    color: var(--text-light);
    margin-left: 2px;
    transition: transform 0.2s;
}

.ndas-source-chip:hover .ndas-chip-arrow {
    transform: translateX(3px);
    color: var(--primary);
}

/* 총 건수 */
.ndas-total-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-left: 4px;
}

/* 하단 칩 */
.ndas-chips-bottom {
    justify-content: center;
    margin: 24px 0 16px;
    padding: 0;
}

/* 상태 표시줄 */
.ndas-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    word-break: keep-all;
    transition: background 0.3s, color 0.3s, opacity 0.5s;
}

.ndas-status i {
    font-size: 14px;
    flex-shrink: 0;
}

.ndas-status-done {
    background: #ecfdf5;
    color: #059669;
}

.ndas-status-done i::before {
    content: "\f00c";
}

.ndas-status-done i {
    animation: none;
}

.ndas-status-hide {
    opacity: 0;
    pointer-events: none;
}

/* 카드 등장 애니메이션 */
.ndas-card-fadein {
    animation: ndas-fadeIn 0.35s ease;
}

@keyframes ndas-fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .ndas-source-chips {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 0 10px 10px;
    }

    .ndas-source-chip {
        padding: 7px 10px;
        font-size: 12px;
        gap: 4px;
        white-space: normal;
        justify-content: center;
    }

    .ndas-chip-arrow {
        display: none;
    }

    .ndas-nav-chips {
        padding: 0 10px 10px;
    }

    .ndas-total-count {
        font-size: 12px;
    }

    .ndas-chips-bottom {
        margin: 12px 0 8px;
        padding: 0;
    }

    .ndas-status {
        font-size: 13px;
        padding: 8px 12px;
        margin-bottom: 10px;
    }
}

/* 캐시 디버그 배지 (?debug=cache) */
.nd-cache-badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: monospace;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    transition: opacity 0.5s ease;
}

.nd-cache-hit {
    background: #059669;
    color: #fff;
}

.nd-cache-miss {
    background: #ef4444;
    color: #fff;
}

/* ============================================================
   Buy/Trans Form (.bf-*)
   ============================================================ */
.bf-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.bf-header {
    text-align: center;
    padding: 30px 0 20px;
}

.bf-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.5px;
    word-break: keep-all;
}

.bf-header p {
    font-size: 14px;
    color: #6b7280;
    margin-top: 6px;
    word-break: keep-all;
}

/* Steps (PC) */
.bf-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.bf-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
}

.bf-step.active {
    color: #2563eb;
    font-weight: 600;
}

.bf-step.done {
    color: #059669;
}

.bf-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: #e5e7eb;
    color: #9ca3af;
    flex-shrink: 0;
}

.bf-step.active .bf-step-num {
    background: #2563eb;
    color: #fff;
}

.bf-step.done .bf-step-num {
    background: #059669;
    color: #fff;
}

.bf-step-arrow {
    color: #d1d5db;
    margin: 0 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.bf-m-steps {
    display: none;
}

/* Notice */
.bf-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.7;
    word-break: keep-all;
}

.bf-notice ul {
    margin: 0;
    padding-left: 20px;
}

.bf-notice li {
    margin-bottom: 2px;
}

.bf-notice-alert {
    color: #dc2626;
    font-weight: 600;
    margin-top: 8px;
    cursor: pointer;
    display: block;
    font-size: 13px;
    word-break: keep-all;
}

.bf-notice-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: default;
}

.bf-notice-toggle i.fa-chevron-down {
    display: none;
}

.bf-notice-body {
    display: block;
    margin-top: 8px;
}

/* Item list */
.bf-list-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bf-badge {
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
}

.bf-item-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.15s;
}

.bf-item-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bf-item-num {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    flex-shrink: 0;
}

.bf-item-info {
    flex: 1;
    min-width: 0;
}

.bf-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bf-item-name a {
    color: #111827;
    text-decoration: none;
}

.bf-item-name a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.bf-item-meta {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    flex-wrap: wrap;
}

.bf-item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bf-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    flex-shrink: 0;
}

.bf-item-del {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.15s;
    flex-shrink: 0;
}

.bf-item-del:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.bf-list-tip {
    font-size: 12px;
    color: #6b7280;
    margin: 8px 0 20px;
    padding-left: 4px;
    word-break: keep-all;
}

/* Actions */
.bf-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.bf-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    word-break: keep-all;
}

.bf-btn-primary {
    background: #2563eb;
    color: #fff;
    min-width: 200px;
    justify-content: center;
}

.bf-btn-primary:hover {
    background: #1d4ed8;
}

.bf-btn-secondary {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    min-width: 200px;
    justify-content: center;
}

.bf-btn-secondary:hover {
    background: #f9fafb;
}

.bf-btn-add {
    background: #fff;
    color: #2563eb;
    border: 2px solid #2563eb;
    min-width: 200px;
    justify-content: center;
}

.bf-btn-add:hover {
    background: #eff6ff;
}

/* Form */
.bf-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.bf-form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #111827;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: keep-all;
}

.bf-form-section-title i {
    color: #2563eb;
}

.bf-form-slide {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.bf-form-slide.open {
    max-height: 2500px;
}

/* Fields */
.bf-field {
    margin-bottom: 18px;
}

.bf-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    word-break: keep-all;
}

.bf-req {
    color: #dc2626;
    margin-left: 2px;
}

.bf-field input[type="text"], .bf-field textarea, .bf-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.bf-field input:focus, .bf-field textarea:focus, .bf-field select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bf-field input::placeholder {
    color: #9ca3af;
}

.bf-hint {
    font-size: 13px;
    color: #b25252;
    border-radius: 8px;
    padding: 4px 8px;
    background: #fff5f5;
    margin-top: 4px;
    font-weight: 500;
    word-break: keep-all;
}

.bf-hint-info {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
    word-break: keep-all;
}

.bf-hint-green {
    font-size: 13px;
    color: #2f5209;
    border-radius: 8px;
    padding: 4px 8px;
    background: #eff8e8;
    margin-top: 4px;
    font-weight: 500;
    word-break: keep-all;
}

.bf-row {
    display: flex;
    gap: 16px;
}

.bf-row > .bf-field {
    flex: 1;
}

.bf-row > select {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.bf-row > select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Radio */
.bf-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.bf-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0;
}

.bf-radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.bf-addr-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    margin-left: 8px;
}

.bf-addr-btn:hover {
    background: #e5e7eb;
}

/* Warehouse Address Change Notice */
.bf-wh-notice { margin-top: 14px; padding: 14px 16px; background: #fef2f2; border: 1px solid #fca5a5; border-radius: 10px; }
.bf-wh-notice-title { font-size: 14px; font-weight: 700; color: #dc2626; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.bf-wh-notice-body { font-size: 13px; color: #7f1d1d; line-height: 1.7; }
.bf-wh-notice-link { margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #2563eb; cursor: pointer; }
.bf-wh-notice-link:hover { text-decoration: underline; }

/* Addon */
.bf-addon {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bf-addon-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
    font-weight: 500;
}

.bf-addon-item:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.bf-addon-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    flex-shrink: 0;
    margin: 0;
    vertical-align: middle;
}

/* Divider */
.bf-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}

/* ===== 기타사이트 구매대행 — 점진공개(URL 가져오기→폼) UI (시안 이식) ===== */
/* 히어로 (State A 첫 화면 / 추가등록 진입) */
.bf-hero { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); text-align: left; padding: 55px 52px; margin-top: 16px; }
.bf-hero h1 { font-size: 22px; margin: 0 0 8px; color: #1f2937; }
.bf-hero p { color: #1f2937; font-size: 15px; font-weight: 700; margin: 0 0 10px; line-height: 1.6; }
.bf-ubar { display: flex; gap: 14px; max-width: none; margin: 36px 0 0; }
.bf-ubar input { flex: 1; min-width: 0; padding: 18px 18px; border: 1px solid #cbd5e1; border-radius: 12px; font-size: 15px; color: #1f2937; outline: none; box-sizing: border-box; }
.bf-ubar input:focus { border-color: #059669; }
.bf-ubar button { flex: none; padding: 18px 26px; background: #059669; color: #fff; border: 0; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.bf-ubar button:disabled { opacity: 0.55; cursor: default; }
.bf-links { margin: 0; display: flex; gap: 28px; justify-content: flex-start; flex-wrap: wrap; }
.bf-links span { color: #6b7280; font-size: 13px; text-decoration: underline; cursor: pointer; }
.bf-loading { text-align: center; color: #1f2937; font-size: 15px; padding: 26px 0; }
.bf-spin { display: inline-block; width: 18px; height: 18px; border: 2px solid #059669; border-top-color: transparent; border-radius: 50%; animation: bfspin 0.7s linear infinite; vertical-align: -4px; margin-right: 9px; }
@keyframes bfspin { to { transform: rotate(360deg); } }
.bf-mnotice { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.5; margin: 16px auto 0; max-width: 560px; text-align: left; }
.bf-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-bottom: 14px; }
.bf-back { display: inline-block; color: #6b7280; font-size: 13px; cursor: pointer; margin-bottom: 12px; }

/* 폼 카드 내부 (시안) */
.bf-cardinfo { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 10px; padding: 12px 14px; font-size: 12.5px; line-height: 1.6; margin-bottom: 18px; }
.bf-phead { display: flex; gap: 14px; }
.bf-pimg { width: 104px; height: 104px; flex: none; border-radius: 12px; border: 1px solid #e5e7eb; background: #f3f4f6 center / contain no-repeat; }
.bf-pimg.empty::after { content: "이미지 없음"; display: flex; height: 100%; align-items: center; justify-content: center; font-size: 11px; color: #b6bcc6; }
.bf-pmeta { flex: 1; min-width: 0; }
.bf-fld { margin-bottom: 13px; }
.bf-fld > label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; margin-bottom: 5px; }
.bf-fld input, .bf-fld select, .bf-fld textarea { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 9px; font-size: 14px; font-family: inherit; color: #1f2937; background: #fff; outline: none; box-sizing: border-box; }
.bf-fld input:focus, .bf-fld select:focus, .bf-fld textarea:focus { border-color: #059669; }
.bf-row2 { display: flex; gap: 10px; }
.bf-row2 > div { flex: 1; min-width: 0; }
.bf-need input, .bf-need select, .bf-need textarea { border-color: #fcd34d; background: #fffdf6; }
.bf-seller { font-size: 12px; color: #6b7280; margin-top: 4px; word-break: break-all; }
.bf-sect { font-size: 12px; font-weight: 400; margin: 18px 0 8px; color: #4b5563; }
.bf-req { color: #ef4444; }
/* 가격·통화·수량·옵션 한 줄 */
.bf-line { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.bf-line > .bf-price { width: 120px; flex: none; }
.bf-line > .bf-cur { width: 90px; flex: none; }
.bf-line > .bf-qty { width: 72px; flex: none; }
.bf-line > .bf-cond { width: 150px; flex: none; }
#bf-qo { flex: 1; min-width: 190px; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
#bf-qo .bf-q { width: 64px; flex: none; }
#bf-qo .bf-o { flex: 1; min-width: 110px; }
.bf-badge { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 20px; margin-left: 4px; vertical-align: middle; }
.bf-badge-auto { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.bf-badge-need { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.bf-combo { font-size: 13px; margin-top: 10px; padding: 9px 12px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 9px; color: #065f46; }
.bf-combo.soldout { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.bf-submit { width: 100%; padding: 16px; background: #059669; color: #fff; border: 0; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 6px; }
.bf-submit:disabled { opacity: 0.6; }
.bf-submit-row { display: flex; gap: 10px; margin-top: 6px; }
.bf-submit-row .bf-submit { margin-top: 0; flex: 1; width: auto; }
.bf-back-btn { flex: none; min-width: 110px; padding: 16px; background: #fff; color: #374151; border: 1px solid #d1d5db; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; }
.bf-back-btn:hover { background: #f3f4f6; }
.bf-bspin { display: inline-block; width: 15px; height: 15px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: bfspin 0.7s linear infinite; vertical-align: -2px; margin-right: 8px; }
.bf-reassure { text-align: center; font-size: 12px; color: #6b7280; margin-top: 12px; }
/* 등록목록 썸네일 */
.bf-item-thumb { width: 52px; height: 52px; flex: none; border-radius: 8px; border: 1px solid #e5e7eb; background: #f3f4f6 center / cover no-repeat; }

/* 배송대행 주의사항 모달 본문 (FAQ ul/li 가독성) */
.bf-warn-body ul, .bf-warn-body ol { margin: 0; padding: 0; list-style: none; }
.bf-warn-body li { position: relative; padding-left: 20px; margin-bottom: 14px; line-height: 1.7; }
.bf-warn-body li:last-child { margin-bottom: 0; }
.bf-warn-body li::before { content: "•"; position: absolute; left: 4px; top: 0; color: #dc2626; font-weight: 700; }
.bf-warn-body p { margin: 0 0 12px; line-height: 1.7; }

/* 보다존 시그니처 컬러(남색) 오버라이드 — bf-container.bf-boda */
.bf-boda .bf-ubar button, .bf-boda .bf-submit { background: #1e40af; }
.bf-boda .bf-ubar input:focus { border-color: #1e40af; }
.bf-boda .bf-fld input:focus, .bf-boda .bf-fld select:focus, .bf-boda .bf-fld textarea:focus { border-color: #1e40af; }
.bf-boda .bf-spin { border-color: #1e40af; border-top-color: transparent; }

/* Mobile */
@media (max-width: 640px) {
    .bf-container {
        padding: 0;
    }

    .bf-header {
        background: #fff;
        padding: 18px 16px 14px;
        border-bottom: 1px solid #e5e7eb;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .bf-header h1 {
        font-size: 18px;
    }

    .bf-header p {
        display: none;
    }

    .bf-steps {
        display: none;
    }

    .bf-m-steps {
        display: flex;
        background: #fff;
        padding: 12px 16px;
        border-bottom: 1px solid #e5e7eb;
        gap: 4px;
    }

    .bf-m-step {
        flex: 1;
        text-align: center;
    }

    .bf-m-step-bar {
        height: 3px;
        background: #e5e7eb;
        border-radius: 2px;
        margin-bottom: 8px;
    }

    .bf-m-step.active .bf-m-step-bar {
        background: #2563eb;
    }

    .bf-m-step.done .bf-m-step-bar {
        background: #059669;
    }

    .bf-m-step-label {
        font-size: 11px;
        color: #9ca3af;
        font-weight: 500;
    }

    .bf-m-step.active .bf-m-step-label {
        color: #2563eb;
        font-weight: 600;
    }

    .bf-m-step.done .bf-m-step-label {
        color: #059669;
    }

    .bf-notice {
        margin: 12px;
        border-radius: 10px;
        padding: 12px 14px;
        font-size: 12px;
    }

    .bf-notice-toggle {
        cursor: pointer;
    }

    .bf-notice-toggle i.fa-chevron-down {
        display: inline;
        font-size: 10px;
        transition: transform 0.2s;
    }

    .bf-notice-toggle.open i.fa-chevron-down {
        transform: rotate(180deg);
    }

    .bf-notice-body {
        display: none;
    }

    .bf-notice-body.open {
        display: block;
    }

    .bf-notice.bf-notice-expanded .bf-notice-body {
        display: block;
    }

    .bf-list-title {
        padding: 0 12px;
    }

    .bf-item-card {
        margin: 0 12px 8px;
        padding: 14px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .bf-item-num {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        font-size: 12px;
    }

    .bf-item-name {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 13px;
    }

    .bf-item-meta span {
        font-size: 11px;
        background: #f3f4f6;
        padding: 3px 8px;
        border-radius: 4px;
    }

    .bf-item-price {
        font-size: 14px;
    }

    .bf-item-del {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        font-size: 12px;
    }

    .bf-list-tip {
        font-size: 11px;
        padding: 0 12px;
    }

    .bf-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 0 12px;
    }

    .bf-btn {
        width: 100%;
        min-width: 0;
        padding: 14px;
        border-radius: 10px;
        justify-content: center;
    }

    .bf-row.bf-row-keep {
        flex-direction: row;
        gap: 12px;
    }

    .bf-row.bf-row-keep > select {
        flex: 1;
        min-width: 0;
        font-size: 16px;
        padding: 12px 14px;
        min-height: 46px;
        -webkit-appearance: none;
    }

    .bf-row.bf-row-keep > .bf-field {
        flex: 1;
        min-width: 0;
    }

    .bf-row.bf-row-keep > .bf-field label {
        font-size: 12px;
    }

    .bf-row.bf-row-keep > .bf-field input,
    .bf-row.bf-row-keep > .bf-field select {
        font-size: 14px;
        padding: 10px 8px;
        min-height: 42px;
    }

    .bf-form-card {
        margin: 8px 12px;
        padding: 18px 14px;
        border-radius: 14px;
    }

    .bf-form-section-title {
        font-size: 15px;
    }

    .bf-row {
        flex-direction: column;
        gap: 0;
    }

    .bf-field input[type="text"], .bf-field textarea, .bf-field select {
        font-size: 16px;
        padding: 12px 14px;
        min-height: 46px;
        -webkit-appearance: none;
    }

    .bf-addon {
        gap: 8px;
    }

    .bf-addon-item {
        justify-content: center;
        padding: 12px;
        font-size: 13px;
    }

    .bf-divider {
        margin: 8px 12px;
    }

    .bf-radio-group {
        gap: 12px;
    }

    .bf-radio-group label {
        font-size: 13px;
    }
    .bf-hero { margin: 8px 12px; padding: 24px 16px; border-radius: 14px; }
    .bf-hero h1 { font-size: 19px; }
    .bf-ubar { flex-direction: column; gap: 10px; }
    .bf-ubar input { font-size: 16px; -webkit-appearance: none; }
    .bf-ubar button { width: 100%; }
    .bf-links { gap: 10px; flex-direction: column; }
    .bf-loading { padding: 0 16px 20px; }
    .bf-pimg { width: 84px; height: 84px; }
    .bf-back { margin: 0 12px 8px; }
    .bf-submit-row { margin: 6px 12px 0; }
    .bf-cardinfo-top { margin: 12px 12px 14px; padding: 14px 16px; }
}

/* ============================================================
   Payment Page (.nd-pay-*)
   기존 운영사이트(orderPayPCscr/MOBILEscr)와 동일한 레이아웃
   ============================================================ */

/* Page background */
.nd-pay-bg {
    background: #f5f5f7;
}

.nd-pay-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.nd-pay-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nd-pay-title {
    font-size: 28px;
    font-weight: 600;
    color: #111;
}

/* 2-Column Layout */
.nd-pay-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.nd-pay-left {
    width: 580px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.nd-pay-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card (roundBox 동일) */
.nd-pay-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
}

.nd-pay-card-detail {
    border: 1px solid #a6a6a6;
}

/* Section inside card */
.nd-pay-section {
    margin-bottom: 20px;
}

.nd-pay-section:last-child {
    margin-bottom: 0;
}

/* Subtitle (subTitleStyle 동일) */
.nd-pay-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* Product Info */
.nd-pay-product {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.nd-pay-product-img {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
}

.nd-pay-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nd-pay-product-info {
    flex: 1;
    min-width: 0;
}

.nd-pay-product-odid {
    font-size: 13px;
    color: #868686;
    margin-bottom: 4px;
}

.nd-pay-product-odid span {
    margin-left: 7px;
    letter-spacing: 2px;
}

.nd-pay-product-name {
    font-weight: 500;
    word-break: break-word;
    line-height: 1.5;
}

.nd-pay-product-divider {
    height: 1px;
    background: #CDCDCD;
    margin: 10px 0;
}

.nd-pay-product-option {
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
}

.nd-pay-product-price {
    font-size: 16px;
    font-weight: 600;
}

/* Radio groups */
.nd-pay-radio-group {
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nd-pay-radio-group label {
    cursor: pointer;
    margin-left: 6px;
}

.nd-pay-radio-inline {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 16px;
}

.nd-pay-radio-inline label {
    cursor: pointer;
    margin-left: 6px;
}

/* Blue accent */
.nd-pay-blue {
    font-weight: 700;
    color: #0F65E0;
    white-space: nowrap;
    margin-left: 2px;
}

.nd-pay-cash-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.nd-pay-cash-info {
    font-size: 14px;
    font-weight: 600;
    color: #0F65E0;
    margin-left: 4px;
}

@media (max-width: 768px) {
    .nd-pay-cash-info {
        display: block;
        width: 100%;
        margin: 4px 0 0 28px;
    }
}

/* Warning */
.nd-pay-warning {
    font-size: 13px;
    color: #d00000;
    font-weight: 500;
    word-break: keep-all;
    margin-top: 6px;
}

/* Info text */
.nd-pay-info {
    font-size: 13px;
    color: #666;
    word-break: keep-all;
}

/* Mileage row */
.nd-pay-mile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.nd-pay-mile-row label {
    margin-left: 6px;
}

.nd-pay-mile-val {
    font-size: 16px;
    text-align: right;
}

/* Coupon */
.nd-pay-coupon-area {
    margin-top: 10px;
}

.nd-pay-coupon-table {
    width: 100%;
    border-collapse: collapse;
}

.nd-pay-coupon-table td {
    padding: 6px;
    border: 1px solid #e6e6e6;
    background: #fff;
}

/* Checkbox inline */
.nd-pay-checkbox-inline {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nd-pay-checkbox-inline label {
    cursor: pointer;
    font-size: 16px;
    margin-left: 6px;
}

/* Address */
.nd-pay-addr {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    margin-top: 12px;
}

/* Inline form */
.nd-pay-inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.nd-pay-inline-form input[type="text"] {
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Outline button (white_normal 동일) */
.nd-pay-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 16px;
    border: 1px solid #2563eb;
    border-radius: 6px;
    background: #fff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}

.nd-pay-btn-outline:hover {
    background: #eff6ff;
}

/* Price Header (추가결제 등) */
.nd-pay-price-header {
    font-size: 15px;
    font-weight: 600;
    color: #0F65E0;
    padding: 6px 4px 10px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 4px;
}

/* ---- Price Detail Table (estimateforPay 동일) ---- */
.nd-pay-price-table {
    padding: 5px;
}

.nd-pay-price-row {
    display: grid;
    grid-template-columns: auto 160px 160px;
    padding: 8px 4px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.nd-pay-pl {
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
}

.nd-pay-plv {
    text-align: right;
    font-size: 14px;
    color: #666;
}

.nd-pay-pv {
    font-size: 16px;
    font-weight: 500;
    text-align: right;
}

.nd-pay-price-exchange {
    font-size: 13px;
    color: #666;
}

.nd-pay-price-exchange,
.nd-pay-price-exchange ~ .nd-pay-price-row {
    border-bottom: none;
}

.nd-pay-price-exchange span {
    grid-column: 1 / -1;
}

.nd-pay-price-sum {
    font-size: 16px;
    font-weight: 600;
    border-top: 1px solid #ccc;
    padding: 14px 4px;
    margin-top: 6px;
}

.nd-pay-price-sum span:last-child {
    font-size: 18px;
    text-align: right;
}

.nd-pay-price-extra {
    font-size: 16px;
    font-weight: 600;
    border-bottom: none;
}

.nd-pay-price-extra span:nth-child(2) {
    text-align: right;
}

.nd-pay-price-extra span:last-child {
    font-size: 18px;
    text-align: right;
}

.nd-pay-price-total {
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 16px 4px;
    border-top: 2px solid #333;
    margin-top: 8px;
    align-items: center;
}

.nd-pay-price-total span:first-child {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.nd-pay-price-total span:last-child {
    font-size: 22px;
    font-weight: 700;
    text-align: right;
    justify-self: end;
}

.nd-pay-price-note {
    color: #0F65E0;
    font-size: 13px;
    padding: 10px 4px;
    line-height: 1.6;
    word-break: keep-all;
}

/* Card info */
.nd-pay-card-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px 0;
}

/* PC Pay Button */
.nd-pay-btn-wrap {
    text-align: center;
    margin: 30px 0 15px;
}

.nd-pay-btn-pay {
    width: 300px;
    padding: 15px 18px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    word-break: keep-all;
}

.nd-pay-btn-pay:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transform: translateY(-1px);
}

/* ── Pay Page Skeleton ── */
.nd-pay-loading {
    display: none !important;
}

#paySkeleton {
    transition: opacity 0.3s ease;
}

#paySkeleton .ndps-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 4px;
    border-bottom: 1px solid #f0f0f0;
}

#paySkeleton .ndps-prod {
    display: flex;
    gap: 12px;
}

#paySkeleton .ndps-prod-img {
    width: 130px;
    height: 130px;
    border-radius: 6px;
    flex-shrink: 0;
}

#paySkeleton .ndps-prod-lines {
    flex: 1;
}

#paySkeleton .ndps-subtitle {
    width: 120px;
    height: 18px;
    margin-bottom: 15px;
    border-radius: 4px;
}

#paySkeleton .ndps-total {
    display: flex;
    justify-content: space-between;
    padding: 14px 4px;
    border-top: 2px solid #eee;
    margin-top: 6px;
}

#paySkeleton .ndps-btn {
    width: 300px;
    height: 50px;
    border-radius: 8px;
    margin: 20px auto 0;
    background: #fecaca;
}

/* Mobile Fixed Bottom (PC에서 숨김) */
.nd-pay-fixed-bottom {
    display: none;
}

/* --- Pay Result (success/fail) --- */
.nd-pay-result, .nd-pay-fail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    text-align: center;
}

.nd-pay-result-icon, .nd-pay-fail-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.nd-pay-result-icon {
    color: var(--primary);
}

.nd-pay-fail-icon {
    color: #ef4444;
}

.nd-pay-result-text, .nd-pay-fail-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    word-break: keep-all;
}

.nd-pay-result-sub {
    font-size: 14px;
    color: #888;
    word-break: keep-all;
}

.nd-pay-fail-msg {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
    max-width: 400px;
    word-break: keep-all;
}

.nd-pay-fail-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.nd-pay-fail-btn:hover {
    background: var(--primary-dark);
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .nd-pay-page {
        padding: 0 12px 80px;
    }

    .nd-pay-top {
        height: 50px;
    }

    .nd-pay-title {
        font-size: 20px;
    }

    /* Single column */
    .nd-pay-layout {
        flex-direction: column;
    }

    .nd-pay-left {
        width: 100%;
    }

    .nd-pay-right {
        width: 100%;
    }

    /* Product */
    .nd-pay-product-img {
        width: 80px;
        height: 80px;
    }

    .nd-pay-product-odid {
        font-size: 14px;
    }

    .nd-pay-product-name {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Price table */
    .nd-pay-price-row {
        grid-template-columns: minmax(0, 1fr) 84px 96px;
    }

    .nd-pay-price-total {
        grid-template-columns: auto 1fr;
    }

    .nd-pay-pl {
        font-size: 13px;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nd-pay-plv {
        font-size: 13px;
    }

    .nd-pay-pv {
        font-size: 14px;
    }

    /* Skeleton mobile */
    #paySkeleton .ndps-prod-img {
        width: 80px;
        height: 80px;
    }

    #paySkeleton .ndps-btn {
        width: 100%;
    }

    .nd-pay-fixed-bottom.nd-pay-loading {
        display: none !important;
    }

    /* Hide PC pay button, show mobile fixed */
    .nd-pay-btn-wrap {
        display: none;
    }

    .nd-pay-fixed-bottom {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px 16px;
        background: #fff;
        border-top: 1px solid #e0e0e0;
        z-index: 100;
        gap: 8px;
    }

    .nd-pay-btn-pay-m {
        flex: 1;
        padding: 14px;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 20px;
        font-weight: 700;
        cursor: pointer;
        word-break: keep-all;
    }
}

/* ── 카테고리 히어로 배너 (.ndc-hero) ── */
.ndc-hero {
    background: linear-gradient(135deg, #003366 0%, #0054a6 50%, #0066cc 100%);
    padding: 40px 20px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.ndc-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 100, 210, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.ndc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 100, 210, 0.2);
    border: 1px solid rgba(100, 180, 255, 0.35);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #7ec4ff;
    margin-bottom: 14px;
}

.ndc-hero h1 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    word-break: keep-all;
}

.ndc-hero p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    word-break: keep-all;
}

/* Amazon 히어로 변형 */
.ndc-hero.amazon {
    background: linear-gradient(135deg, #232f3e 0%, #37475a 50%, #485769 100%);
}

.ndc-hero.amazon::before {
    background: radial-gradient(circle at 70% 30%, rgba(255, 153, 0, 0.12) 0%, transparent 50%);
}

.ndc-hero.amazon .ndc-hero-badge {
    background: rgba(255, 153, 0, 0.15);
    border-color: rgba(255, 153, 0, 0.3);
    color: #ffb84d;
}

/* ── 카테고리 검색바 (.ndc-search) ── */
.ndc-search-wrap {
    padding: 32px 0 24px;
    margin: 0 auto;
}

.ndc-search-form {
    max-width: 640px;
    margin: 0 auto;
}

.ndc-search-bar {
    display: flex;
    height: 54px;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.ndc-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 24px;
    font-size: 16px;
    color: #1a1a2e;
    background: transparent;
}

.ndc-search-bar input::placeholder {
    color: #aaa;
}

.ndc-search-bar button {
    width: 60px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 0 30px 30px 0;
    transition: background .15s;
}

.ndc-search-bar button:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .ndc-search-wrap {
        display: none;
    }
}

/* ── 인기 카테고리 칩 (.ndc-popular) ── */
.ndc-popular {
    margin: 0 auto;
    padding: 20px 0 6px;
}

.ndc-popular-title {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-left: 4px;
}

.ndc-popular-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ndc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.ndc-chip:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
    text-decoration: none;
}

.ndc-chip i {
    font-size: 12px;
    color: #999;
    transition: color 0.2s;
}

.ndc-chip:hover i {
    color: #2563eb;
}

@media (max-width: 600px) {
    .ndc-hero {
        padding: 28px 16px 24px;
    }

    .ndc-hero h1 {
        font-size: 22px;
    }

    .ndc-hero p {
        font-size: 13px;
    }

    .ndc-popular {
        padding: 14px 0 4px;
    }

    .ndc-chip {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ── 카테고리 사이드바 (.ndcat-) ── */
.ndcat-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    width: 100%;
}

.ndcat-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.ndcat-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.ndcat-title-en {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #aaa;
    margin-top: 3px;
}

.ndcat-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 800px;
    overflow-y: auto;
}

.ndcat-list::-webkit-scrollbar {
    width: 4px;
}

.ndcat-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.ndcat-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
}

.ndcat-item a:hover {
    background: #f0f7ff;
    color: #0066dd;
}

.ndcat-arrow {
    font-size: 9px;
    color: #ccc;
    transition: all 0.15s;
    flex-shrink: 0;
    margin-left: 8px;
}

.ndcat-item a:hover .ndcat-arrow {
    color: #0066dd;
    transform: translateX(2px);
}

/* ============================================
   eBay Motors 메인 페이지 (.ndmt-)
   ============================================ */

/* ===== Hero Banner ===== */
.ndmt-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 40px 20px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ndmt-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.ndmt-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.ndmt-hero-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e94560, #c23152);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 24px;
    color: #fff;
}

.ndmt-hero h1 {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
}

.ndmt-hero p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* ===== Brand Logos ===== */
.ndmt-brands {
    max-width: 1100px;
    margin: -24px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.ndmt-brands-inner {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.ndmt-brand {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ndmt-brand img {
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
}

/* ===== Main Content ===== */
.ndmt-content {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px;
    display: flex;
    gap: 24px;
    align-items: stretch;
}

/* ===== Left: 카테고리 검색 (35%) ===== */
.ndmt-sidebar {
    width: 35%;
    flex-shrink: 0;
}

.ndmt-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ndmt-card-header {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ndmt-card-header i {
    color: #e94560;
    font-size: 15px;
}

.ndmt-card-header .ndmt-header-sub {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-left: auto;
}

.ndmt-make-list {
    list-style: none;
    max-height: 480px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

.ndmt-make-list::-webkit-scrollbar {
    width: 4px;
}

.ndmt-make-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.ndmt-make-item {
    padding: 11px 18px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ndmt-make-item:last-child {
    border-bottom: none;
}

.ndmt-make-item:hover {
    background: #f7f8fa;
}

.ndmt-make-item.active {
    background: #f0f7ff;
    color: #0066cc;
    font-weight: 600;
}

.ndmt-make-item > i {
    font-size: 11px;
    color: #ccc;
    transition: all 0.15s;
}

.ndmt-make-item:hover > i {
    color: #999;
}

.ndmt-make-item.active > i {
    color: #0066cc;
    transform: rotate(90deg);
}

/* ===== Flyout Panel ===== */
.ndmt-flyout {
    display: none;
    position: absolute;
    width: 620px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    z-index: 1000;
    overflow: hidden;
}

.ndmt-flyout.show {
    display: block;
}

/* Breadcrumb */
.ndmt-flyout-header {
    padding: 12px 16px;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    background: #fafbfc;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ndmt-flyout-header .ndmt-bc {
    color: #0066cc;
    font-weight: 600;
    cursor: pointer;
}

.ndmt-flyout-header .ndmt-bc:hover {
    text-decoration: underline;
}

.ndmt-flyout-header .ndmt-bc-sep {
    color: #ccc;
    font-size: 11px;
}

.ndmt-flyout-header .ndmt-bc-current {
    color: #333;
    font-weight: 700;
}

.ndmt-flyout-close {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ndmt-flyout-close:hover {
    background: #e0e0e0;
}

/* 3열 본문 */
.ndmt-flyout-body {
    display: flex;
    min-height: 380px;
}

/* 공통 컬럼 */
.ndmt-col {
    overflow-y: auto;
    max-height: 440px;
}

.ndmt-col::-webkit-scrollbar {
    width: 3px;
}

.ndmt-col::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.ndmt-col-header {
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.ndmt-col-item {
    padding: 10px 14px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.12s;
    border-bottom: 1px solid #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ndmt-col-item:hover {
    background: #f0f7ff;
    color: #0066cc;
}

.ndmt-col-item.active {
    background: #e8f2ff;
    color: #0066cc;
    font-weight: 600;
}

.ndmt-col-item i {
    font-size: 10px;
    color: #ccc;
}

.ndmt-col-item:hover i, .ndmt-col-item.active i {
    color: #0066cc;
}

/* 모델 컬럼 */
.ndmt-col-model {
    width: 150px;
    flex-shrink: 0;
    border-right: 1px solid #f0f0f0;
}

/* 코드 컬럼 */
.ndmt-col-code {
    width: 140px;
    flex-shrink: 0;
    border-right: 1px solid #f0f0f0;
}

/* 부품 컬럼 */
.ndmt-col-parts {
    flex: 1;
}

.ndmt-parts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    padding: 4px 6px;
}

.ndmt-part-item {
    padding: 10px 10px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.12s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ndmt-part-item:hover {
    background: #0066cc;
    color: #fff;
}

.ndmt-part-item i {
    font-size: 11px;
    color: #bbb;
}

.ndmt-part-item:hover i {
    color: rgba(255, 255, 255, 0.7);
}

/* 빈 상태 */
.ndmt-col-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #ccc;
    font-size: 12px;
    flex-direction: column;
    gap: 6px;
    min-height: 180px;
}

.ndmt-col-empty i {
    font-size: 24px;
    color: #ddd;
}

/* ===== Right: 직접 검색 (65%) ===== */
.ndmt-main {
    flex: 1;
}

.ndmt-search-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 100%;
}

.ndmt-search-header {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ndmt-search-header i {
    color: #0066cc;
    font-size: 15px;
}

.ndmt-search-header .ndmt-header-sub {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-left: auto;
}

.ndmt-search-body {
    padding: 28px 24px;
}

.ndmt-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.ndmt-form-group {
    flex: 1;
    min-width: 0;
}

.ndmt-form-group.full {
    flex: none;
    width: 100%;
    margin-bottom: 28px;
}

.ndmt-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 7px;
}

.ndmt-form-label i {
    margin-right: 4px;
    color: #999;
    font-size: 12px;
}

.ndmt-form-label .ndmt-required {
    color: #e94560;
    margin-left: 2px;
}

.ndmt-select, .ndmt-input {
    width: 100%;
    max-width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f8f9fa;
    color: #333;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.ndmt-select {
    background: #f8f9fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.ndmt-select:focus, .ndmt-input:focus {
    outline: none;
    border-color: #0066cc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.ndmt-form-hint {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ndmt-submit-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.ndmt-submit-btn:hover {
    background: linear-gradient(135deg, #0052a3, #003d7a);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}

.ndmt-notice {
    margin-top: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px 18px;
    border-left: 3px solid #0066cc;
}

.ndmt-notice-title {
    font-size: 13px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ndmt-notice p {
    font-size: 12px;
    color: #666;
    line-height: 1.7;
    word-break: keep-all;
}

.ndmt-notice strong {
    color: #333;
}

/* ===== Listing 페이지 ===== */
.ndmt-listing-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.ndmt-listing-breadcrumb {
    padding: 14px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.ndmt-listing-breadcrumb a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.ndmt-listing-breadcrumb a:hover {
    text-decoration: underline;
}

.ndmt-listing-breadcrumb a i {
    margin-right: 4px;
}

.ndmt-listing-bc-sep {
    color: #ccc;
    margin: 0 8px;
}

.ndmt-listing-bc-sep i {
    font-size: 10px;
}

.ndmt-listing-bc-current {
    color: #333;
    font-weight: 600;
}

.ndmt-listing-content {
    display: flex;
    gap: 24px;
}

.ndmt-listing-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.ndmt-listing-sidebar .ndcat-sidebar {
    position: sticky;
    top: 20px;
}

.ndmt-listing-main {
    flex: 1;
    min-width: 0;
}

.ndmt-listing-main .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ndmt-listing-main .product-card {
    width: auto;
}

.ndmt-listing-part-active {
    background: #f0f7ff !important;
    color: #0066dd !important;
    font-weight: 600 !important;
}

/* ===== Mobile 반응형 ===== */
@media (max-width: 768px) {
    .ndmt-hero {
        padding: 28px 16px 32px;
    }

    .ndmt-hero-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 12px;
    }

    .ndmt-hero h1 {
        font-size: 20px;
    }

    .ndmt-hero p {
        font-size: 12px;
    }

    .ndmt-brands {
        margin-top: -20px;
        padding: 0 12px;
    }

    .ndmt-brands-inner {
        padding: 12px 10px;
        gap: 6px;
    }

    .ndmt-brand {
        width: 50px;
        height: 50px;
        border-radius: 8px;
    }

    .ndmt-brand img {
        max-width: 34px;
        max-height: 34px;
    }

    .ndmt-content {
        flex-direction: column;
        gap: 16px;
        padding: 0 12px;
        margin: 16px auto;
        align-items: initial;
    }

    .ndmt-sidebar {
        width: 100%;
    }

    .ndmt-card-header {
        padding: 14px 16px;
        font-size: 15px;
    }

    .ndmt-make-list {
        max-height: 300px;
    }

    .ndmt-flyout {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0;
        bottom: 0;
        width: 100% !important;
        border-radius: 0;
        z-index: 9000;
    }

    .ndmt-flyout.show {
        display: flex;
        flex-direction: column;
    }

    .ndmt-flyout-body {
        flex-direction: column;
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }

    .ndmt-col-model, .ndmt-col-code {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .ndmt-col-parts {
        max-height: none;
    }

    .ndmt-col-model .ndmt-col-header, .ndmt-col-code .ndmt-col-header {
        position: static;
    }

    .ndmt-parts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ndmt-col-empty {
        min-height: 60px;
    }

    .ndmt-main {
        width: 100%;
    }

    .ndmt-search-card {
        height: auto;
    }

    .ndmt-search-header {
        padding: 14px 16px;
        font-size: 15px;
    }

    .ndmt-search-body {
        padding: 16px;
    }

    .ndmt-form-row {
        flex-direction: column;
        gap: 14px;
    }

    .ndmt-select, .ndmt-input {
        height: 44px;
        font-size: 14px;
        border-radius: 8px;
    }

    .ndmt-submit-btn {
        height: 48px;
        font-size: 15px;
        border-radius: 10px;
        margin-top: 18px;
    }

    .ndmt-notice {
        padding: 12px 14px;
        border-radius: 8px;
    }

    /* Listing 모바일 */
    .ndmt-listing-content {
        flex-direction: column;
        gap: 16px;
    }

    .ndmt-listing-sidebar {
        width: 100%;
    }

    .ndmt-listing-breadcrumb {
        font-size: 13px;
        padding: 10px 0;
    }

    .ndmt-listing-main .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Listing 사이드바 토글 화살표 (모바일) */
.ndmtm-toggle-arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s;
}

/* =============================================
   모바일 eBay Motors 메인 (.ndmtm-)
   ============================================= */

/* Hero */
.ndmtm-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 24px 20px 28px;
    position: relative;
    overflow: hidden;
}

.ndmtm-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(229, 62, 62, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.ndmtm-hero-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.ndmtm-hero-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e94560, #c23152);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.ndmtm-hero h1 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.ndmtm-hero-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    position: relative;
    z-index: 1;
    margin-left: 56px;
    margin-top: -4px;
}

/* 브랜드 칩 */
.ndmtm-brands {
    padding: 0 16px;
    margin-top: -16px;
    position: relative;
    z-index: 2;
}

.ndmtm-brands-inner {
    background: #fff;
    border-radius: 14px;
    padding: 14px 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    overflow: hidden;
    gap: 8px;
}

.ndmtm-brand-chip {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #eee;
}

.ndmtm-brand-chip img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}

/* 탭 바 */
.ndmtm-tab-bar {
    display: flex;
    margin: 16px 16px 0;
    background: #e9ecef;
    border-radius: 12px;
    padding: 3px;
}

.ndmtm-tab-btn {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ndmtm-tab-btn.active {
    background: #fff;
    color: #0066cc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ndmtm-tab-btn i {
    font-size: 13px;
}

.ndmtm-tab-panel {
    display: none;
    padding: 16px;
}

.ndmtm-tab-panel.active {
    display: block;
}

/* 차종 그리드 (3열) */
.ndmtm-make-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ndmtm-make-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1.5px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ndmtm-make-card:active {
    transform: scale(0.96);
}

.ndmtm-make-card.active {
    border-color: #0066cc;
    background: #f0f7ff;
    color: #0066cc;
}

.ndmtm-make-count {
    font-size: 11px;
    color: #bbb;
    font-weight: 400;
}

/* 스텝 네비게이션 */
.ndmtm-step-nav {
    display: none;
    margin-bottom: 16px;
}

.ndmtm-step-nav.show {
    display: block;
}

.ndmtm-step-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 0 4px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ndmtm-bc-item {
    color: #0066cc;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
}

.ndmtm-bc-sep {
    color: #ccc;
    font-size: 10px;
}

.ndmtm-bc-current {
    color: #333;
    font-weight: 700;
    padding: 4px 0;
}

.ndmtm-step-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ndmtm-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0066cc;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* 스텝 리스트 */
.ndmtm-step-list {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.ndmtm-step-list::-webkit-scrollbar {
    width: 3px;
}

.ndmtm-step-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.ndmtm-step-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    transition: background 0.15s;
}

.ndmtm-step-item:last-child {
    border-bottom: none;
}

.ndmtm-step-item:active {
    background: #f0f7ff;
}

.ndmtm-step-item.active {
    background: #f0f7ff;
    color: #0066cc;
    font-weight: 600;
}

.ndmtm-step-item i {
    font-size: 11px;
    color: #ccc;
}

.ndmtm-step-item:active i, .ndmtm-step-item.active i {
    color: #0066cc;
}

/* 뒤로가기 버튼 */
.ndmtm-back-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    margin-bottom: 12px;
    font-size: 14px;
    color: #0066cc;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
}

.ndmtm-back-btn.show {
    display: flex;
}

.ndmtm-back-btn i {
    font-size: 12px;
}

/* 부품 그리드 */
.ndmtm-parts-section {
    margin-bottom: 20px;
}

.ndmtm-parts-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-left: 4px;
}

.ndmtm-parts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ndmtm-part-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
    font-size: 12px;
    color: #555;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1.5px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ndmtm-part-card:active {
    transform: scale(0.96);
}

.ndmtm-part-card i {
    font-size: 18px;
    color: #999;
}

/* 직접 검색 */
.ndmtm-search-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 16px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.ndmtm-form-group {
    margin-bottom: 18px;
}

.ndmtm-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 7px;
}

.ndmtm-form-label i {
    margin-right: 4px;
    color: #999;
    font-size: 12px;
}

.ndmtm-required {
    color: #e94560;
}

.ndmtm-form-select, .ndmtm-form-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    background: #f8f9fa;
    -webkit-appearance: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.ndmtm-form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.ndmtm-form-select:focus, .ndmtm-form-input:focus {
    outline: none;
    border-color: #0066cc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.ndmtm-form-hint {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ndmtm-submit-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-top: 4px;
}

.ndmtm-submit-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.ndmtm-search-tip {
    margin-top: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 14px;
    border-left: 3px solid #0066cc;
}

.ndmtm-search-tip-title {
    font-size: 12px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 4px;
}

.ndmtm-search-tip p {
    font-size: 12px;
    color: #666;
    line-height: 1.7;
}

.ndmtm-search-tip strong {
    color: #333;
}

/* 화면 전환 애니메이션 */
.ndmtm-slide-enter {
    animation: ndmtm-slideIn 0.2s ease-out;
}

@keyframes ndmtm-slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===============================================================
   Notification (알림)
   =============================================================== */

/* Bell shake animation */
@keyframes alarm-shake {
    0% {
        transform: rotate(0deg);
    }
    15% {
        transform: rotate(14deg);
    }
    30% {
        transform: rotate(-12deg);
    }
    45% {
        transform: rotate(10deg);
    }
    60% {
        transform: rotate(-8deg);
    }
    75% {
        transform: rotate(4deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.alarm-shake {
    animation: alarm-shake 0.7s ease-in-out infinite;
    color: #ef4444 !important;
}

/* Notification wrap (PC 헤더 내) */
.noti-wrap {
    position: relative;
}

/* Panel mask (모바일 오버레이) */
.noti-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
}

.noti-mask.show {
    display: block;
}

/* Panel */
.noti-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-height: 480px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
}

.noti-panel.show {
    display: flex;
}

/* Header */
.noti-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.noti-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.noti-title i {
    color: var(--primary);
}

.noti-count-badge {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    line-height: 1.3;
}

.noti-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.noti-read-all {
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-bg);
    border: none;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s;
    word-break: keep-all;
}

.noti-read-all:hover {
    background: #dbeafe;
}

/* noti-close → .nd-modal-close 공용으로 통합 */

/* Body */
.noti-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    overscroll-behavior: contain;
}

/* Loading */
.noti-loading {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
}

/* Empty state */
.noti-empty {
    text-align: center;
    padding: 40px 0 32px;
}

.noti-empty-icon {
    font-size: 36px;
    color: #d1d5db;
    margin-bottom: 12px;
}

.noti-empty-text {
    font-size: 14px;
    color: #9ca3af;
    word-break: keep-all;
}

/* Card */
.noti-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #f0f0f0;
    border-radius: var(--radius);
    margin-bottom: 8px;
    transition: border-color 0.15s, box-shadow 0.15s, opacity 0.3s, transform 0.3s;
    background: #fff;
    cursor: pointer;
}

.noti-card:last-child {
    margin-bottom: 0;
}

.noti-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

/* Card image */
.noti-card-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f9fafb;
    border: 1px solid #f0f0f0;
}

.noti-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card info */
.noti-card-info {
    flex: 1;
    min-width: 0;
}

.noti-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.noti-service-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 1px 6px;
    border-radius: 4px;
}

.noti-card-od {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
}

.noti-card-name {
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
}

.noti-card-date {
    font-size: 11px;
    color: #3b82f6;
    margin-top: 3px;
}

.noti-card-date .noti-card-day {
    color: #6b7280;
}

/* Card clickable arrow (체크박스 대체 — 클릭 유도) */
.noti-card-arrow {
    color: #c8ccd2;
    font-size: 13px;
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
}

.noti-card:hover .noti-card-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

/* Sidebar notification dot (모바일) */
.sb-noti-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #fff7ed;
}

/* ===== Notification Mobile ===== */
@media (max-width: 768px) {
    .noti-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 75vh;
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
        border-radius: 16px 16px 0 0;
        border: none;
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }

    .noti-panel.show {
        animation: noti-slideUp 0.3s ease forwards;
    }

    .noti-panel::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        margin: 10px auto 0;
    }

    .noti-header {
        padding: 12px 16px 10px;
    }

    .noti-body {
        padding: 8px 12px 16px;
    }

    .noti-card-img {
        width: 44px;
        height: 44px;
    }
}

@keyframes noti-slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ===============================================================
   Order Q&A (주문질답 - 별도 모달)
   =============================================================== */

/* 마스크 */
.ndoq-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
}

.ndoq-mask.show {
    display: block;
}

/* 모달 — PC: 중앙 */
.ndoq-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1101;
    width: 640px;
    max-width: calc(100% - 32px);
}

.ndoq-modal.show {
    display: flex;
}

.ndoq-handle {
    display: none;
}

/* 모달 — 모바일: 바텀시트 */
@media (max-width: 768px) {
    .ndoq-modal {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: 100%;
        transition: transform .3s ease;
        display: block;
    }

    .ndoq-modal.show {
        transform: translateY(0);
    }

    .ndoq-modal:not(.show) {
        pointer-events: none;
    }

    .ndoq-handle {
        display: block;
        width: 36px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        margin: 8px auto 4px;
    }

    .ndoq-wrap {
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }

    .ndoq-mask.show ~ .nd-pay-fixed-bottom,
    .ndoq-modal.show ~ .nd-pay-fixed-bottom {
        display: none !important;
    }
}

/* 래퍼 */
.ndoq-wrap {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;
}

/* ndoq-header/close → .nd-modal-header/close 공용으로 통합 */
.ndoq-header-left {
    flex: 1;
    min-width: 0;
}

.ndoq-desc {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    word-break: keep-all;
    line-height: 1.4;
    font-weight: 400;
}

/* 바디 */
.ndoq-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 상품 정보 */
.ndoq-product {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafbfc;
}

.ndoq-product-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #f0f0f0;
}

.ndoq-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ndoq-product-info {
    flex: 1;
    min-width: 0;
}

.ndoq-product-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.ndoq-status-badge {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.ndoq-order-id {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
}

.ndoq-order-id span {
    color: #6b7280;
}

.ndoq-product-name {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ndoq-product-option {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ndoq-product-price {
    font-size: 12px;
    color: #6b7280;
    margin-top: 3px;
}

/* 채팅 영역 */
.ndoq-chat {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    overscroll-behavior: contain;
    min-height: 120px;
    max-height: 400px;
}

@media (max-width: 768px) {
    .ndoq-chat {
        max-height: 45vh;
    }
}

/* 메시지 */
.ndoq-msg {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

.ndoq-msg-mine {
    align-items: flex-end;
}

.ndoq-msg-other {
    align-items: flex-start;
}

.ndoq-msg-name {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    margin-bottom: 3px;
}

.ndoq-msg-wrap {
    position: relative;
    max-width: 80%;
}

.ndoq-msg-del {
    display: none;
    position: absolute;
    top: -6px;
    left: -8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 9px;
    line-height: 18px;
    padding: 0;
    z-index: 2;
    text-decoration: none;
}

.ndoq-msg-wrap:hover .ndoq-msg-del {
    display: block;
}

.ndoq-msg-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    word-break: keep-all;
}

.ndoq-msg-mine .ndoq-msg-bubble {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ndoq-msg-other .ndoq-msg-bubble {
    background: #f3f4f6;
    color: #333;
    border-bottom-left-radius: 4px;
}

.ndoq-msg-time {
    font-size: 10px;
    color: #bbb;
    margin-top: 2px;
}

.ndoq-msg-empty {
    padding: 40px 20px;
    text-align: center;
    color: #bbb;
    font-size: 13px;
    line-height: 2;
}

/* 댓글 작성 */
.ndoq-write {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    flex-shrink: 0;
}

.ndoq-write-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.ndoq-write-textarea {
    flex: 1;
    resize: none;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ndoq-write-textarea:focus {
    border-color: var(--primary);
}

.ndoq-write-textarea::placeholder {
    color: #bbb;
}

.ndoq-write-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.ndoq-write-btn:hover {
    background: var(--primary-dark);
}

.ndoq-write-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   주문목록 (.ndol-*)
   ============================================================ */
.ndol-page {
    padding: 20px 0 20px;
    overflow: hidden;
}

.ndol-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ndol-title {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ndol-title i {
    color: #3b82f6;
}

.ndol-total {
    font-size: 14px;
    font-weight: 400;
    color: #888;
}

/* 검색 */
.ndol-search {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.ndol-search-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.ndol-date-row {
    margin-top: 8px;
    flex-wrap: nowrap;
}

.ndol-select {
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 13px;
    background: #fff;
}

.ndol-select-status {
    min-width: 120px;
}

.ndol-input {
    flex: 1;
    width: 20px;
    min-width: 0;
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
}

input.ndol-date {
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 13px;
}

.ndol-date-sep {
    color: #999;
    font-size: 14px;
}

.ndol-search-btn {
    height: 38px;
    padding: 0 14px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}

.ndol-search-btn:hover {
    opacity: .9;
}

.ndol-reset-btn {
    background: #6b7280;
}

/* 빈 상태 */
.ndol-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.ndol-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    color: #d1d5db;
}

.ndol-empty p {
    font-size: 15px;
    word-break: keep-all;
}

/* 카드 */
.ndol-card {
    background: #fff;
    border: 1px solid #d3d8de;
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    max-width: 100%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ndol-card-disabled {
    opacity: 0.5;
    background: #f0f1f3;
}

.ndol-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    gap: 8px;
}

.ndol-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.ndol-header-left input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    flex-shrink: 0;
}

.ndol-date {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.ndol-flag img {
    width: 20px;
    vertical-align: middle;
}

.ndol-header-right {
    flex-shrink: 0;
}

.ndol-detail-btn {
    font-size: 13px;
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    background: #eff6ff;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
    transition: all .15s;
}

.ndol-detail-btn:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* 프로그레스 바 (도트+라인) — 헤더↔바디 사이 독립 줄 */
.ndol-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.ndol-prog-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.ndol-prog-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    flex-shrink: 0;
}

.ndol-prog-label {
    font-size: 10px;
    color: #333;
    margin-top: 3px;
    white-space: nowrap;
}

.ndol-prog-step.active .ndol-prog-dot {
    background: #333;
}

.ndol-prog-step.active .ndol-prog-label {
    color: #3b82f6;
    font-weight: 600;
}

.ndol-prog-step.passed .ndol-prog-dot {
    background: #ccc;
}

.ndol-prog-step.passed .ndol-prog-label {
    color: #ccc;
}

.ndol-prog-line {
    flex: 1;
    height: 2px;
    background: #ddd;
    margin-top: 3px;
    min-width: 4px;
}

.ndol-prog-line.passed {
    background: #ddd;
}

/* 카드 바디 - CSS Grid 3열 */
.ndol-card-body {
    display: grid;
    grid-template-columns: 110px 1fr 140px;
    grid-template-areas: "img status actions" "img detail actions";
    gap: 4px 16px;
    padding: 16px;
    align-items: start;
}

.ndol-card-body > * {
    min-width: 0;
}

.ndol-img {
    grid-area: img;
    cursor: pointer;
    overflow: hidden;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f9f9f9;
    border: 1px solid #eee;
}

.ndol-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ndol-status-area {
    grid-area: status;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8e8e8;
}

.ndol-actions {
    grid-area: actions;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 상태 */
.ndol-status {
    font-size: 22px;
    font-weight: 600;
    color: #111;
}

.ndol-od-id {
    font-size: 13px;
    color: #848484;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.ndol-od-id span {
    letter-spacing: 1px;
}

/* 통합배송 */
.ndol-status-combine {
    font-size: 12px;
    color: #186fec;
    font-weight: 600;
    cursor: pointer;
}

.ndol-status-combine span {
    padding-left: 8px;
    letter-spacing: 1px;
}

.ndol-status-combine span:first-child {
    padding-left: 0;
}

/* 관리자알림 */
.ndol-admin-alert {
    cursor: pointer;
    color: #ef4444;
    font-size: 13px;
}

.ndol-admin-alert i {
    font-size: 15px;
}

.ndol-alarm-shake {
    animation: ndol-shake .6s ease infinite;
}

@keyframes ndol-shake {
    0%, 100% {
        transform: rotate(0)
    }
    25% {
        transform: rotate(15deg)
    }
    50% {
        transform: rotate(-15deg)
    }
    75% {
        transform: rotate(10deg)
    }
}

/* 견적확인 안내 */
.ndol-estimate-info {
    font-size: 13px;
    color: #3a97ff;
    word-break: keep-all;
}

.ndol-estimate-info i {
    color: #3a97ff;
}

/* 뱃지 */
.ndol-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.ndol-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.ndol-badge-auction {
    background: #fef3c7;
    color: #92400e;
}

.ndol-badge-noreturn {
    background: #fee2e2;
    color: #991b1b;
}

.ndol-badge-cancel {
    background: #fef3c7;
    color: #92400e;
}

.ndol-badge-complete {
    background: #dcfce7;
    color: #166534;
}

.ndol-badge-bill {
    background: #e0e7ff;
    color: #3730a3;
}

.ndol-badge-multibox {
    background: #f3e8ff;
    color: #6b21a8;
}

/* 상세 영역 */
.ndol-detail {
    grid-area: detail;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ndol-name {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    word-break: break-word;
}

.ndol-option {
    font-size: 13px;
    color: #888;
}

.ndol-price {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ndol-price span {
    color: #555;
    font-weight: 400;
    white-space: nowrap;
}

/* 경매종료시간 */
.ndol-endtime {
    font-size: 13px;
    color: #666;
}

.ndol-mobile-br {
    display: none;
}

@media (max-width: 768px) {
    .ndol-mobile-br {
        display: block;
    }
}

/* 모달 — PC: 중앙, 모바일: 바텀시트 */
.ndol-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 900;
}

.ndol-modal-overlay.active {
    display: block;
}

.ndol-modal {
    width: 760px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 901;
}

.ndol-modal.active {
    display: block;
}

/* 경매입찰액 변경 모달만 좁게 (상품정보수정/사진 모달은 760px 유지) */
.ndol-modal.ndol-modal-slim {
    width: 480px;
}

@media (max-width: 768px) {
    .ndol-modal {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
        transition: transform .3s ease;
        display: block;
    }

    .ndol-modal.active {
        transform: translateY(0);
    }

    .ndol-modal:not(.active) {
        transform: translateY(100%);
        pointer-events: none;
    }
}

/* 배송예정일 */
.ndol-delivery-info {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    word-break: keep-all;
}

.ndol-delivery-info i {
    color: #22c55e;
}

.ndol-delivery-delayed {
    font-size: 12px;
    color: #888;
    word-break: keep-all;
    line-height: 1.6;
}

/* 배송추적 */
.ndol-tracking-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.ndol-tracking-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    cursor: pointer;
    font-weight: 500;
}

.ndol-tracking-btn:hover {
    background: #d1fae5;
}

/* 액션 버튼 */
.ndol-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #333;
    white-space: nowrap;
    word-break: keep-all;
    text-decoration: none;
}

.ndol-btn:hover {
    background: #f9fafb;
}

.ndol-btn i {
    margin-left: 4px;
    font-size: 11px;
}

.ndol-btn-pay {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    font-weight: 600;
}

.ndol-btn-pay:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.ndol-btn-ghost {
    display: none;
}

.ndol-btn-bid {
    color: #006fff;
}

.ndol-btn-photo {
    border-color: #3085FF;
    background: #3085FF;
    color: #fff;
    font-weight: 600;
}

.ndol-btn-photo:hover {
    background: #1d6ee8;
    border-color: #1d6ee8;
    color: #fff;
}

.ndol-btn-photo i {
    color: #fff;
    margin-left: 0;
}

/* 더보기(kebab) 드롭다운 */
.ndol-kebab-wrap {
    position: relative;
    align-self: flex-end;
}

.ndol-kebab-btn {
    width: 36px;
    height: 32px;
    padding: 0;
}

.ndol-kebab-btn i {
    margin-left: 0;
    color: #6b7280;
}

/* 메뉴는 열 때 JS(OrderList.kebabToggle)가 body로 이동시켜 문서좌표 absolute로 배치
   — .ndol-card { overflow:hidden } 클리핑과 웹뷰/transform 조상에 의한 fixed 기준 틀어짐 모두 회피 */
.ndol-menu {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 4px;
    z-index: 1500;
}

.ndol-menu.open {
    display: block;
}

.ndol-menu-item {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: none;
    background: none;
    border-radius: 7px;
    font-size: 13px;
    color: #333;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    word-break: keep-all;
    cursor: pointer;
    box-sizing: border-box;
}

.ndol-menu-item:hover {
    background: #f3f4f6;
}

.ndol-menu-danger {
    color: #dc2626;
}

/* 통합배송신청 인라인 버튼 (주문번호 우측) */
.ndol-combine-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    vertical-align: middle;
    white-space: nowrap;
}

.ndol-combine-inline:hover {
    background: #1d4ed8;
}

.ndol-combine-inline i {
    font-size: 11px;
}

.ndol-combine-grouped {
    background: #41946c;
}

.ndol-combine-grouped:hover {
    background: #367d5b;
}

/* 통합배송 플로팅 모달 (.ndcb-*) */
.ndcb-modal {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 480px;
    max-height: 50vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
    z-index: 900;
    overflow: hidden;
    flex-direction: column;
}

.ndcb-modal.active {
    display: flex;
}

.ndcb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #41946c;
    border-bottom: none;
}

.ndcb-title {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
}

.ndcb-title i {
    color: #fff;
}

.ndcb-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .25);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}

.ndcb-close:hover {
    background: rgba(255, 255, 255, .4);
}

.ndcb-notice {
    padding: 10px 16px;
    background: #fefce8;
    font-size: 12px;
    color: #92400e;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.5;
}

.ndcb-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 30px;
}

.ndcb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
}

.ndcb-item:hover {
    background: #f9fafb;
}

.ndcb-img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.ndcb-info {
    flex: 1;
    min-width: 0;
}

.ndcb-od-id {
    font-size: 11px;
    color: #6b7280;
}

.ndcb-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111;
}

.ndcb-cancel-btn {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #fca5a5;
    background: #fff;
    color: #ef4444;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.ndcb-cancel-btn:hover {
    background: #fef2f2;
}

/* 주문번호 옆 통합 태그 */
.ndol-combine-tag {
    color: #2563eb;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
}

/* 인라인 버튼 색상 변형 */
.ndol-btn-ship {
    background: #059669;
    border-color: #059669;
    color: #fff;
    font-weight: 600;
}

.ndol-btn-ship:hover {
    background: #047857;
    border-color: #047857;
    color: #fff;
}

/* 더보기 버튼 + 스피너 */
.ndol-loadmore-btn {
    display: block;
    width: 100%;
    padding: 14px 0;
    margin: 20px 0;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    color: #374151;
    cursor: pointer;
    text-align: center;
}

.ndol-loadmore-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.ndol-loadmore-btn span {
    font-size: 13px;
    color: #9ca3af;
    margin-left: 4px;
}

.ndol-scroll-spinner {
    text-align: center;
    padding: 24px 0;
    font-size: 14px;
    color: #9ca3af;
}

.ndol-scroll-spinner i {
    margin-right: 6px;
}

.ndol-paging {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
}

.ndol-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    background: #fff;
}

.ndol-page-btn:hover {
    background: #f3f4f6;
}

.ndol-page-btn.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

@media (max-width: 768px) {
    .ndol-title {
        font-size: 18px;
    }

    .ndol-steps {
        display: none;
    }

    .ndol-card-body {
        grid-template-columns: 80px 1fr;
        grid-template-areas: "img status" "detail detail" "actions actions";
        gap: 10px 12px;
        padding: 12px;
    }

    .ndol-img {
        width: 80px;
        height: 80px;
    }

    .ndol-status-area {
        justify-content: center;
        padding-bottom: 0;
        border-bottom: none;
    }

    .ndol-status {
        font-size: 18px;
    }

    .ndol-od-id {
        font-size: 12px;
    }

    .ndol-status-combine {
        font-size: 11px;
    }

    .ndol-admin-alert {
        font-size: 12px;
    }

    .ndol-detail {
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
    }

    .ndol-price {
        font-size: 14px;
    }

    .ndol-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
    }

    .ndol-btn {
        width: auto;
        flex: 1;
        /* 50% - 3px에서 축소 — kebab(42px)+gap이 마지막 줄에 같이 들어갈 자리 확보
           (버튼 1개+kebab / 2개+kebab 모두 한 줄, kebab은 항상 오른쪽 끝) */
        min-width: calc(50% - 30px);
        padding: 10px 8px;
        font-size: 13px;
    }

    /* 모바일: kebab은 소형 고정폭 + 항상 우측 정렬 */
    .ndol-kebab-wrap {
        flex: 0 0 auto;
        min-width: 0;
        align-self: stretch;
        display: flex;
        margin-left: auto;
    }

    .ndol-kebab-wrap .ndol-btn {
        width: 42px;
        height: auto;
        min-width: 0;
        flex: 1;
        padding: 10px 0;
    }

    .ndol-btn-ghost {
        display: flex;
        visibility: hidden;
        height: 0;
        padding: 0 !important;
        border: none;
        margin: 0;
        min-height: 0;
        overflow: hidden;
    }

    .ndol-name {
        font-size: 13px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ndol-search-row {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .ndol-select {
        width: auto;
        height: 42px;
        flex-shrink: 0;
    }

    .ndol-input {
        flex: 1;
        min-width: 0;
        height: 34px;
    }

    .ndol-search-btn {
        height: 34px;
        font-size: 12px;
        padding: 0 10px;
    }

    .ndol-date-row {
        flex-direction: row;
        flex-wrap: wrap;
    }

    input.ndol-date {
        flex: 1;
        min-width: 0;
    }

    .ndol-date-row .ndol-search-btn {
        flex: 1;
        width: auto;
        margin-top: 4px;
    }

    .ndol-card-header {
        padding: 10px 12px;
    }

    .ndol-header-left {
        gap: 8px;
    }

    .ndol-progress {
        padding: 6px 12px;
    }

    .ndol-prog-dot {
        width: 6px;
        height: 6px;
    }

    .ndol-prog-label {
        font-size: 9px;
        margin-top: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ndol-prog-line {
        min-width: 2px;
        margin-top: 2px;
    }

    .ndcb-modal {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 45vh;
    }
}

/* ============================================================
   주문상세 (.ndod-*)
   ============================================================ */
.ndod-page {
    padding: 20px 0 40px;
}

.ndod-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ndod-title {
    font-size: 22px;
    font-weight: 700;
}

.ndod-pay-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 20px;
    background: #3b82f6;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.ndod-pay-btn:hover {
    opacity: .9;
}

.ndod-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ndod-left {
    flex: 0 0 560px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ndod-right {
    flex: 1;
    min-width: 0;
}

.ndod-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.ndod-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.ndod-customs-type {
    font-size: 13px;
    font-weight: 400;
    color: #888;
}

.ndod-edit-label {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-left: auto;
}

/* 상품 */
.ndod-product {
    display: flex;
    gap: 16px;
}

.ndod-product-img {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.ndod-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ndod-product-info {
    flex: 1;
    min-width: 0;
}

.ndod-status {
    font-size: 22px;
    font-weight: 700;
    color: #0a65e7;
}

.ndod-odid {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

.ndod-odid span {
    letter-spacing: 1px;
}

.ndod-divider {
    height: 1px;
    background: #eee;
    margin: 10px 0;
}

.ndod-name {
    font-weight: 500;
    word-break: break-word;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ndod-option {
    font-size: 14px;
    color: #1670cb;
    margin-top: 4px;
}

.ndod-price-line {
    font-size: 15px;
    font-weight: 600;
    margin-top: 4px;
}

/* 배송지 */
.ndod-addr {
    line-height: 1.8;
}

.ndod-addr-name {
    font-size: 16px;
    font-weight: 700;
}

.ndod-addr-hp {
    font-weight: 700;
    margin-left: 10px;
    color: #555;
}

.ndod-addr-text {
    font-weight: 500;
    word-break: keep-all;
    color: #555;
}

/* 부가서비스 */
.ndod-sub-list {
    padding-left: 12px;
    font-size: 14px;
    line-height: 2;
}

.ndod-sub-list i {
    margin-right: 6px;
    color: #3b82f6;
}

.ndod-warn {
    font-size: 12px;
    color: #d00;
    margin-left: 8px;
    word-break: keep-all;
}

.ndod-label {
    font-weight: 600;
    margin-right: 16px;
    display: inline-block;
    min-width: 120px;
}

/* 결제 테이블 */
.ndod-price-table {
    width: 100%;
    border-collapse: collapse;
}

.ndod-price-table td {
    padding: 8px 4px;
    font-size: 14px;
    vertical-align: middle;
}

.ndod-pl {
    text-align: left;
    color: #000;
}

.ndod-pv-local {
    text-align: right;
    color: #000;
    font-size: 13px;
}

.ndod-pv {
    text-align: right;
    font-weight: 500;
}

.ndod-exchange {
    color: #999;
    font-size: 13px;
}

.ndod-combine {
    color: #0369a1;
    font-weight: 600;
    font-size: 12px;
    margin-left: 6px;
    word-break: keep-all;
}

.ndod-green {
    color: #16a34a !important;
}

.ndod-event {
    color: #ea580c;
    font-size: 13px;
}

/*.ndod-sum-row td { border-top: 1px solid #e5e7eb; padding-top: 10px; }*/
.ndod-sum-row td {
    border-top: 1px solid #e5e7eb;
    padding: 14px 0;
}

.ndod-pl-sum {
    font-size: 16px;
    font-weight: 700;
}

.ndod-pv-sum {
    text-align: right;
    font-size: 17px;
    font-weight: 700;
}

.ndod-total-row td {
    border-top: 2px solid #333;
    padding-top: 14px;
}

td.ndod-pl-total {
    font-size: 18px;
    font-weight: 700;
}

td.ndod-pv-total {
    text-align: right;
    font-size: 22px;
    font-weight: 700;
}

.ndod-note {
    color: #0a65e7;
    font-size: 13px;
    line-height: 1.6;
    padding-top: 8px;
    word-break: keep-all;
}

.ndod-2nd-title {
    font-size: 17px;
    color: #16a34a;
    font-weight: 600;
    padding-bottom: 8px;
}

.ndod-divider-thick {
    height: 2px;
    background: #333;
    margin: 24px 0 16px;
}

.ndod-no-payment {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

.ndod-pay-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}

/* 하단 */
.ndod-bottom {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.ndod-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 32px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    text-decoration: none;
}

.ndod-back-btn:hover {
    background: #f3f4f6;
}

.ndod-qna-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ndod-qna-btn:hover {
    background: #eff6ff;
}

@media (max-width: 900px) {
    .ndod-layout {
        flex-direction: column;
    }

    .ndod-left {
        flex: none;
        width: 100%;
    }

    .ndod-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .ndod-page > .container {
        padding: 0 10px;
    }

    .ndod-card {
        padding: 14px;
    }

    .ndod-title {
        font-size: 18px;
    }

    .ndod-product-img {
        width: 80px;
        height: 80px;
    }

    .ndod-status {
        font-size: 18px;
    }

    .ndod-name {
        font-size: 14px;
    }

    .ndod-price-table td {
        font-size: 14px;
        padding: 10px 2px;
    }

    td.ndod-pv-total {
        font-size: 18px;
    }

    td.ndod-pl-total {
        font-size: 18px;
    }

    .ndod-label {
        min-width: 90px;
    }

    .ndod-price-table col:nth-child(2) {
        width: 100px !important;
    }

    .ndod-price-table col:nth-child(3) {
        width: 100px !important;
    }
}

/* ============================================================
   Mypage (.ndmp-*) - 마이페이지 공통
   ============================================================ */

/* --- 레이아웃 --- */
.ndmp-page {
    padding: 24px 0 60px;
}

.ndmp-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.ndmp-content {
    flex: 1;
    min-width: 0;
}

/* --- 사이드바 --- */
.ndmp-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.ndmp-sidebar-header {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ndmp-sidebar-header i {
    color: var(--primary);
}

.ndmp-nav {
    padding: 8px 0;
}

.ndmp-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ndmp-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-body);
    text-decoration: none;
    font-size: 14px;
    transition: background .15s, color .15s;
}

.ndmp-menu-item:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

.ndmp-menu-item i {
    width: 18px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    transition: color .15s;
}

.ndmp-menu-item:hover i {
    color: var(--primary);
}

.ndmp-active {
    background: var(--primary-bg) !important;
    color: var(--primary) !important;
    font-weight: 600;
    border-right: 3px solid var(--primary);
}

.ndmp-active i {
    color: var(--primary) !important;
}

.ndmp-divider {
    height: 1px;
    background: var(--border-light);
    margin: 6px 0;
}

/* --- 헤더 --- */
.ndmp-header {
    margin-bottom: 20px;
}

.ndmp-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ndmp-title i {
    color: var(--primary);
    font-size: 20px;
}

.ndmp-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 6px;
}

.ndmp-count {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

/* --- 잔액 바 --- */
.ndmp-balance-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.ndmp-balance-label {
    font-size: 14px;
    opacity: .9;
}

.ndmp-balance-value {
    font-size: 24px;
    font-weight: 700;
}

/* --- 안내 박스 --- */
.ndmp-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    background: #eff6ff;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.5;
}

.ndmp-info-box i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- 대시보드 통계 카드 --- */
.ndmp-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ndmp-stat-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ndmp-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ndmp-stat-grade .ndmp-stat-icon {
    background: #fef3c7;
    color: #d97706;
}

.ndmp-stat-cash .ndmp-stat-icon {
    background: #dbeafe;
    color: #2563eb;
}

.ndmp-stat-mile .ndmp-stat-icon {
    background: #fce7f3;
    color: #db2777;
}

.ndmp-stat-coupon .ndmp-stat-icon {
    background: #ede9fe;
    color: #7c3aed;
}

.ndmp-stat-body {
    flex: 1;
    min-width: 0;
}

.ndmp-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.ndmp-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.ndmp-stat-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    word-break: keep-all;
}

.ndmp-stat-sep {
    margin: 0 4px;
}

.ndmp-stat-highlight {
    font-size: 12px;
    color: #dc2626;
    font-weight: 500;
    margin-top: 6px;
    word-break: keep-all;
}

.ndmp-stat-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
    margin-top: 6px;
    word-break: keep-all;
}

.ndmp-stat-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    margin-top: 6px;
}

.ndmp-stat-link:hover {
    text-decoration: underline;
}

/* 회원등급 안내 모달 (.ndgr-) */
.ndgr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1000;
}

.ndgr-modal {
    flex-direction: column;
    max-height: 85vh;
}

/* ndgr-header/close → .nd-modal-header/close 공용으로 통합 */
.nd-modal-title i.fa-crown {
    color: #f59e0b;
}

/* ndgr-body → nd-modal-body 공용 */
.ndgr-current {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    margin-bottom: 16px;
    word-break: keep-all;
}

.ndgr-current-label {
    font-size: 13px;
    color: #92400e;
}

.ndgr-current-grade {
    font-size: 18px;
    font-weight: 700;
    color: #b45309;
}

.ndgr-current-orders {
    font-size: 12px;
    color: #a16207;
    margin-left: auto;
}

.ndgr-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 16px;
}

.ndgr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ndgr-table thead th {
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #475569;
    text-align: center;
    white-space: nowrap;
}

.ndgr-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.ndgr-table tbody tr:last-child {
    border-bottom: none;
}

.ndgr-table tbody td {
    padding: 10px 12px;
    text-align: center;
    color: #374151;
}

.ndgr-table tbody td.ndgr-td-name {
    font-weight: 600;
    text-align: left;
    padding-left: 30px;
}

.ndgr-current-row {
    background: #eff6ff;
}

.ndgr-current-row td {
    color: #1d4ed8 !important;
    font-weight: 600;
}

.ndgr-info {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px 16px;
}

.ndgr-info-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.ndgr-info-title i {
    color: #3b82f6;
    margin-right: 4px;
}

.ndgr-info ul {
    margin: 0;
    padding-left: 18px;
}

.ndgr-info li {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.8;
    word-break: keep-all;
}

.ndgr-info b {
    color: #1e293b;
}

@media (max-width: 768px) {
    .ndgr-modal {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }

    .ndgr-modal::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        margin: 10px auto 0;
    }
}

/* --- 테이블 (PC) --- */
.ndmp-table-wrap {
    overflow-x: auto;
    margin-bottom: 20px;
}

.ndmp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ndmp-table thead th {
    background: var(--bg-gray);
    padding: 10px 12px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    font-size: 13px;
}

.ndmp-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.ndmp-td-order {
    font-size: 13px;
    color: var(--text-muted);
}

.ndmp-td-desc {
    text-align: left;
    max-width: 260px;
}

.ndmp-td-amount {
    font-weight: 600;
    white-space: nowrap;
}

.ndmp-td-date {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.ndmp-plus {
    color: #2563eb;
}

.ndmp-minus {
    color: #dc2626;
}

/* --- 카드 리스트 (모바일) --- */
.ndmp-card-list {
    display: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.ndmp-card-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
}

.ndmp-card-item:last-child {
    border-bottom: none;
}

.ndmp-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.ndmp-card-desc {
    font-size: 14px;
    color: var(--text-body);
    flex: 1;
    min-width: 0;
    word-break: keep-all;
}

.ndmp-card-amount {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.ndmp-card-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* --- 페이지네이션 --- */
.ndmp-paging {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.ndmp-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-body);
    text-decoration: none;
    background: #fff;
    transition: all .15s;
}

.ndmp-page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.ndmp-page-current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
}

.ndmp-page-current:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* --- 쿠폰 카드 --- */
.ndmp-coupon-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ndmp-coupon-card {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}

.ndmp-coupon-left {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    flex-shrink: 0;
    padding: 16px;
}

.ndmp-coupon-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.ndmp-coupon-right {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ndmp-coupon-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.ndmp-coupon-period {
    font-size: 13px;
    color: var(--text-muted);
}

.ndmp-coupon-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    width: fit-content;
}

.ndmp-coupon-badge-active {
    background: #dcfce7;
    color: #16a34a;
}

/* --- 빈 상태 --- */
.ndmp-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.ndmp-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: .4;
}

.ndmp-empty p {
    font-size: 15px;
}

/* --- 은행 카드 (입금액충전) --- */
.ndmp-bank-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.ndmp-bank-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ndmp-bank-icon i {
    font-size: 20px;
    color: #2563eb;
}

.ndmp-bank-body {
    flex: 1;
}

.ndmp-bank-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.ndmp-bank-label {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 60px;
}

.ndmp-bank-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.ndmp-bank-number {
    font-family: 'SF Mono', 'Menlo', monospace;
    letter-spacing: .5px;
}

.ndmp-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    background: #fff;
    cursor: pointer;
    transition: all .15s;
}

.ndmp-copy-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --- 안내 카드 (입금충전) --- */
.ndmp-notice-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.ndmp-notice-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ndmp-notice-title i {
    color: #f59e0b;
}

.ndmp-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ndmp-notice-list li {
    position: relative;
    padding: 6px 0 6px 20px;
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.6;
}

.ndmp-notice-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 14px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* --- 폼 공통 --- */
.ndmp-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.ndmp-form-group {
    margin-bottom: 18px;
}

.ndmp-form-group:last-child {
    margin-bottom: 0;
}

.ndmp-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.ndmp-form-input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-body);
    background: #fff;
    transition: border-color .15s;
    box-sizing: border-box;
}

.ndmp-form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.ndmp-form-file {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-body);
}

.ndmp-form-help {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.ndmp-file-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-gray);
    border-radius: 8px;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 8px;
}

.ndmp-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* --- 버튼 --- */
.ndmp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .15s;
}

.ndmp-btn-primary {
    background: var(--primary);
    color: #fff;
}

.ndmp-btn-primary:hover {
    background: var(--primary-dark);
}

.ndmp-btn-primary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.ndmp-btn-secondary {
    background: #fff;
    color: var(--text-body);
    border: 1px solid var(--border);
}

.ndmp-btn-secondary:hover {
    background: var(--bg-gray);
}

.ndmp-btn-danger {
    background: #dc2626;
    color: #fff;
}

.ndmp-btn-danger:hover {
    background: #b91c1c;
}

/* --- 환불요청 --- */
.ndrf-form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: nowrap;
}

.ndrf-form-row .ndmp-form-group {
    min-width: 0;
    margin-bottom: 0;
}

.ndrf-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.ndrf-submit-btn:hover {
    background: var(--primary-dark);
}

.ndrf-submit-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.ndrf-list-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
}

.ndrf-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ndrf-list-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.ndrf-list-count {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-gray);
    padding: 2px 10px;
    border-radius: 12px;
}

.ndrf-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.ndrf-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
    color: #d1d5db;
}

.ndrf-empty p {
    margin: 0;
    font-size: 14px;
}

.ndrf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ndrf-table th {
    background: var(--bg-gray);
    padding: 10px 12px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.ndrf-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
}

.ndrf-date {
    color: var(--text-muted);
    font-size: 13px;
}

.ndrf-amount {
    font-weight: 700;
    color: var(--primary);
}

.ndrf-cancel-btn {
    background: none;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.ndrf-cancel-btn:hover {
    background: #fef2f2;
}

.ndrf-mobile-list {
    display: none;
}

@media (max-width: 768px) {
    .ndrf-form-row {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        text-align: left;
    }

    .ndrf-btn-group {
        margin-top: 8px;
    }

    .ndrf-btn-group label {
        display: none !important;
    }

    .ndrf-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .ndrf-table {
        display: none;
    }

    .ndrf-mobile-list {
        display: block;
    }

    .ndrf-mobile-item {
        padding: 12px 0;
        border-bottom: 1px solid #f3f4f6;
    }

    .ndrf-mobile-item:last-child {
        border-bottom: none;
    }

    .ndrf-mobile-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 6px;
    }

    .ndrf-mobile-date {
        font-size: 12px;
        color: var(--text-muted);
    }

    .ndrf-mobile-info {
        font-size: 13px;
        color: var(--text-body);
        margin-bottom: 4px;
    }

    .ndrf-mobile-name {
        color: var(--text-muted);
        margin-left: 8px;
    }

    .ndrf-mobile-amount {
        font-size: 15px;
        font-weight: 700;
        color: var(--primary);
    }
}

/* ===== Shipment Schedule (.ss-) ===== */
.ss-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
}

.ss-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ss-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ss-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.ss-title {
    font-size: 20px;
    font-weight: 700;
}

.ss-subtitle {
    font-size: 13px;
    color: #64748b;
}

.ss-month-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
}

.ss-month-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.15s;
    text-decoration: none;
}

.ss-month-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.ss-month-label {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    min-width: 120px;
    text-align: center;
}

/* Info banner */
.ss-info {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.ss-info-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: #fef3c7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    font-size: 16px;
}

.ss-info-body {
    flex: 1;
}

.ss-info-main {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    word-break: keep-all;
}

.ss-info-main strong {
    color: var(--primary-dark, #15803d);
}

.ss-info-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.ss-info-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 10px;
    border-radius: 6px;
    word-break: keep-all;
}

.ss-info-chip b {
    color: #1e293b;
    font-weight: 600;
}

/* Delivery time */
.ss-delivery {
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
    word-break: keep-all;
}

.ss-delivery i {
    color: #94a3b8;
    font-size: 14px;
}

.ss-delivery strong {
    color: #1e293b;
}

/* Legend */
.ss-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.ss-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #64748b;
}

.ss-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ss-legend-dot.us {
    background: #3b82f6;
}

.ss-legend-dot.uk {
    background: #ef4444;
}

.ss-legend-dot.de {
    background: #f59e0b;
}

/* PC Calendar */
.ss-cal {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.ss-cal-head {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.ss-cal-dow {
    padding: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.ss-cal-dow.sun {
    color: #ef4444;
}

.ss-cal-dow.sat {
    color: #3b82f6;
}

.ss-cal-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.ss-day {
    min-height: 90px;
    padding: 8px 6px;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
    cursor: default;
}

.ss-day:nth-child(7n) {
    border-right: none;
}

.ss-day:hover {
    background: #fafbfc;
}

.ss-day.empty {
    background: #fafafa;
}

.ss-day.empty:hover {
    background: #fafafa;
}

.ss-day-num {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ss-day.sun .ss-day-num {
    color: #ef4444;
}

.ss-day.sat .ss-day-num {
    color: #3b82f6;
}

.ss-day.today .ss-day-num {
    background: #ef4444;
    color: #fff;
    font-weight: 700;
}

.ss-day.has-event {
    background: #f7fbff;
}

.ss-day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ss-ev {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.4;
}

.ss-ev.us {
    background: #eff6ff;
    color: #1d4ed8;
}

.ss-ev.uk {
    background: #fef2f2;
    color: #dc2626;
}

.ss-ev.de {
    background: #fffbeb;
    color: #b45309;
}

.ss-ev-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ss-ev.us .ss-ev-dot {
    background: #3b82f6;
}

.ss-ev.uk .ss-ev-dot {
    background: #ef4444;
}

.ss-ev.de .ss-ev-dot {
    background: #f59e0b;
}

/* Mobile List */
.ss-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ss-list-day {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 10px;
    transition: background 0.15s;
}

.ss-list-day.has-event {
    background: #fff;
    border: 1px solid var(--border);
}

.ss-list-day:not(.has-event) {
    opacity: 0.5;
}

.ss-list-day.today {
    opacity: 1;
    border: 1.5px solid #ef4444;
    background: #fff5f5;
}

.ss-list-date {
    width: 44px;
    text-align: center;
    flex-shrink: 0;
}

.ss-list-num {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 auto 2px;
    border-radius: 50%;
}

.ss-list-day.sun .ss-list-num {
    color: #ef4444;
}

.ss-list-day.sat .ss-list-num {
    color: #3b82f6;
}

.ss-list-day.today .ss-list-num {
    background: #ef4444;
    color: #fff;
}

.ss-list-wd {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
}

.ss-list-events {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.ss-list-ev {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.ss-list-ev.us {
    background: #eff6ff;
    color: #1d4ed8;
}

.ss-list-ev.uk {
    background: #fef2f2;
    color: #dc2626;
}

.ss-list-ev.de {
    background: #fffbeb;
    color: #b45309;
}

.ss-list-ev.us .ss-ev-dot {
    background: #3b82f6;
}

.ss-list-ev.uk .ss-ev-dot {
    background: #ef4444;
}

.ss-list-ev.de .ss-ev-dot {
    background: #f59e0b;
}

@media (max-width: 768px) {
    .ss-container {
        padding: 12px;
    }

    .ss-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .ss-month-nav {
        width: 100%;
        justify-content: space-between;
    }

    .ss-month-label {
        flex: 1;
    }

    .ss-info {
        gap: 10px;
        padding: 14px 16px;
    }

    .ss-info-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
        border-radius: 8px;
    }

    .ss-info-main {
        font-size: 13px;
    }

    .ss-cal {
        display: none;
    }

    .ss-list {
        display: flex !important;
    }

    .ss-delivery {
        font-size: 12px;
        padding: 12px 14px;
    }
}

@media (min-width: 769px) {
    .ss-list {
        display: none !important;
    }

    .ss-cal {
        display: block !important;
    }
}

/* --- 파손면책동의 --- */
.ndmp-agree-done {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.ndmp-agree-done-icon {
    font-size: 56px;
    color: #16a34a;
    margin-bottom: 16px;
}

.ndmp-agree-done-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    word-break: keep-all;
}

.ndmp-agree-done-info {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.ndmp-agree-done-row {
    display: flex;
    gap: 12px;
    font-size: 14px;
}

.ndmp-agree-done-label {
    color: var(--text-muted);
    min-width: 60px;
}

.ndmp-agree-done-value {
    color: var(--text-dark);
    font-weight: 500;
}

.ndmp-agree-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.ndmp-agree-warning {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #fef3c7;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ndmp-agree-warning i {
    font-size: 20px;
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}

.ndmp-agree-warning p {
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
    margin: 0;
}

.ndmp-agree-terms {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.ndmp-agree-term {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ndmp-agree-term-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.ndmp-agree-term-text {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
    padding-top: 3px;
}

.ndmp-agree-check {
    padding: 16px;
    background: var(--bg-gray);
    border-radius: 8px;
    margin-bottom: 8px;
}

.ndmp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
}

.ndmp-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

/* --- 회원탈퇴 --- */
.ndmp-leave-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.ndmp-leave-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: #fef2f2;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.ndmp-leave-warning-icon {
    font-size: 40px;
    color: #dc2626;
}

.ndmp-leave-warning-title {
    font-size: 16px;
    font-weight: 600;
    color: #991b1b;
}

.ndmp-leave-items {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.ndmp-leave-item {
    flex: 1;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    background: var(--bg-gray);
    border-radius: 8px;
}

.ndmp-leave-item > i {
    font-size: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.ndmp-leave-item-label {
    font-size: 12px;
    color: var(--text-muted);
}

.ndmp-leave-item-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.ndmp-leave-notice {
    padding: 16px 18px;
    background: #fff7ed;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ndmp-leave-notice ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ndmp-leave-notice li {
    position: relative;
    padding: 4px 0 4px 16px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

.ndmp-leave-notice li::before {
    content: '!';
    position: absolute;
    left: 0;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ndmp-leave-form {
    padding: 16px;
    background: var(--bg-gray);
    border-radius: 8px;
    margin-bottom: 8px;
}

/* --- 모바일 반응형 --- */
@media (max-width: 900px) {
    .ndmp-layout {
        flex-direction: column;
    }

    .ndmp-content {
        width: 100%;
    }

    .ndmp-sidebar {
        display: none;
    }

    .ndmp-sidebar-header {
        padding: 14px 16px;
    }

    .ndmp-nav {
        display: flex;
        overflow-x: auto;
        padding: 8px;
        gap: 0;
        -webkit-overflow-scrolling: touch;
    }

    .ndmp-menu {
        display: flex;
        white-space: nowrap;
    }

    .ndmp-menu-item {
        padding: 8px 14px;
        font-size: 13px;
        border-right: none;
    }

    .ndmp-active {
        border-right: none !important;
        border-bottom: 2px solid var(--primary);
    }

    .ndmp-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .ndmp-page {
        padding: 12px 0 40px;
    }

    .ndmp-page > .container {
        padding: 0 8px;
    }

    .ndmp-title {
        font-size: 18px;
    }

    .ndmp-title i {
        font-size: 16px;
    }

    .ndmp-balance-bar {
        padding: 14px 18px;
    }

    .ndmp-balance-value {
        font-size: 20px;
    }

    /* 대시보드 카드 1열 */
    .ndmp-stats {
        grid-template-columns: 1fr;
    }

    .ndmp-stat-value {
        font-size: 18px;
    }

    /* 테이블 → 카드 전환 */
    .ndmp-table-wrap {
        display: none;
    }

    .ndmp-card-list {
        display: block;
    }

    /* 쿠폰 */
    .ndmp-coupon-left {
        width: 90px;
        padding: 12px;
    }

    .ndmp-coupon-amount {
        font-size: 16px;
    }

    /* 은행 카드 */
    .ndmp-bank-card {
        flex-direction: column;
        gap: 12px;
        padding: 18px;
    }

    /* 탈퇴 */
    .ndmp-leave-items {
        flex-direction: column;
        gap: 10px;
    }

    /* 폼 */
    .ndmp-form-actions {
        flex-direction: column;
    }

    .ndmp-form-actions .ndmp-btn {
        width: 100%;
    }
}

/* --- 서명란 (파손면책) --- */
.ndmp-agree-sign {
    text-align: center;
    padding: 20px;
    border: 1px dashed #d1d5db;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.ndmp-agree-sign-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.ndmp-agree-sign-label {
    font-size: 12px;
    color: #a8a8a8;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.ndmp-agree-sign-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 5px;
}

/* --- 사업자정보 컴팩트 폼 --- */
.ndmp-biz-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.ndmp-biz-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.ndmp-biz-row:last-child {
    margin-bottom: 0;
}

.ndmp-biz-row-full {
    grid-template-columns: 1fr;
}

.ndmp-biz-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.ndmp-biz-field input[type="text"],
.ndmp-biz-field input[type="email"] {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-body);
    background: #fff;
    transition: border-color .15s;
    box-sizing: border-box;
}

.ndmp-biz-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.ndmp-biz-file {
    display: block;
    width: 100%;
    padding: 8px 0;
    font-size: 12px;
    color: var(--text-body);
}

.ndmp-biz-help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.ndmp-biz-uploaded {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
    margin-left: 6px;
}

@media (max-width: 600px) {
    .ndmp-biz-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* --- 게시판/주문 embed 모드 (사이드바 안에서) --- */
.ndb-page-embed, .ndol-page-embed {
    padding: 0 !important;
}

.ndb-page-embed > .container, .ndol-page-embed > .container {
    padding: 0;
    max-width: none;
}

/* --- URL 팝업 모달 (.ndup-*) --- */
.ndup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1000;
}

.ndup-modal {
    max-height: calc(100vh - 40px);
    flex-direction: column;
}

.ndup-modal.show {
    display: flex;
}

.ndup-inner {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ndup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.ndup-close {
    cursor: pointer;
    font-size: 18px;
    color: #999;
}

.ndup-close:hover {
    color: #333;
}

/* --- 입금액충전 모달 (.ndcm-*) --- */
.ndcm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1000;
}

.ndcm-modal {
    max-height: calc(100vh - 40px);
    overflow: hidden;
}

.ndcm-modal.show {
    display: block;
}

.ndcm-inner {
    position: relative;
    overflow: hidden;
}

/* 멀티스텝 슬라이드 */
.ndcm-step {
    display: none;
}

.ndcm-step-active {
    display: block;
    animation: ndcmSlideIn .25s ease;
}

.ndcm-step-out {
    display: none;
}

@keyframes ndcmSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ndcm-header/title/close → .nd-modal-header/title/close 공용으로 통합 */
.ndcm-back {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px 4px 0;
    flex-shrink: 0;
}

.ndcm-back:hover {
    color: var(--text-dark);
}

.ndcm-body {
    max-height: calc(100vh - 120px);
}

/* Step1 콘텐츠 */
.ndcm-desc {
    font-size: 13px;
    color: var(--text-body);
    margin: 0 0 12px;
    line-height: 1.5;
}

.ndcm-account {
    background: var(--primary-bg);
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.ndcm-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ndcm-account-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.ndcm-account-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.ndcm-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

.ndcm-copy-btn:hover {
    background: var(--primary-dark);
}

.ndcm-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-gray);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.ndcm-balance span {
    font-size: 12px;
    color: var(--text-muted);
}

.ndcm-balance strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.ndcm-guide {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.ndcm-guide li {
    position: relative;
    padding: 4px 0 4px 14px;
    font-size: 12px;
    color: var(--text-body);
    line-height: 1.5;
}

.ndcm-guide li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}

.ndcm-guide-warn {
    color: #dc2626 !important;
}

.ndcm-guide-warn::before {
    background: #dc2626 !important;
}

.ndcm-guide-info {
    color: var(--primary) !important;
}

.ndcm-guide-info::before {
    background: var(--primary) !important;
}

/* 수동충전 섹션 */
.ndcm-manual {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 10px 12px 8px;
}

.ndcm-manual-title {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.5;
}

.ndcm-manual-title i {
    margin-top: 2px;
    color: #d97706;
    flex-shrink: 0;
}

.ndcm-manual-sub {
    font-size: 11px;
    color: #a16207;
    margin-top: 2px;
    line-height: 1.4;
}

.ndcm-manual-btns {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
}

.ndcm-manual-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-body);
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
}

.ndcm-manual-btn:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.ndcm-manual-btn i {
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 8px;
}

/* Step2 계좌 요약 */
.ndcm-account-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-gray);
    border-radius: 6px;
    padding: 7px 10px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text-muted);
}

.ndcm-account-mini i {
    color: var(--primary);
}

/* Step2 폼 */
.ndcm-form-group {
    margin-bottom: 12px;
}

.ndcm-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.ndcm-input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    box-sizing: border-box;
}

.ndcm-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.ndcm-input-help {
    font-size: 11px;
    margin-top: 3px;
    line-height: 1.4;
}

.ndcm-form-notice {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 7px 10px;
    margin-bottom: 12px;
    font-size: 11px;
    color: #991b1b;
    line-height: 1.4;
}

.ndcm-form-notice i {
    color: #dc2626;
    margin-top: 1px;
    flex-shrink: 0;
}

.ndcm-submit-btn {
    width: 100%;
    padding: 11px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ndcm-submit-btn:hover {
    background: var(--primary-dark);
}

.ndcm-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* 결과 영역 */
.ndcm-result {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.ndcm-result i {
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

.ndcm-result-ok {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.ndcm-result-ok i {
    color: #059669;
}

.ndcm-result-err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.ndcm-result-err i {
    color: #dc2626;
}

.ndcm-result-sub {
    font-size: 12px;
    color: #047857;
    margin-top: 2px;
}

/* 모바일 */
@media (max-width: 600px) {
    .ndup-modal {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
        transition: transform .3s ease;
        display: flex;
    }

    .ndup-modal.show {
        transform: translateY(0);
    }

    .ndup-modal:not(.show) {
        pointer-events: none;
    }

    .ndcm-modal {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
        transition: transform .3s ease;
        display: block;
    }

    .ndcm-modal.show {
        transform: translateY(0);
    }

    .ndcm-modal:not(.show) {
        pointer-events: none;
    }

    /* ndcm-header → nd-modal-header */
    .ndcm-body {
        max-height: calc(90vh - 60px);
    }

    .ndcm-account-number {
        font-size: 17px;
    }

    .ndcm-step-active {
        animation: none;
    }
}

/* ===============================================================
   주문과정 모달 (.ndpro-)
   =============================================================== */
.ndpro-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1000;
}

.ndpro-mask.show {
    display: block;
}

.ndpro-modal {
    max-height: 70vh;
}

.ndpro-modal.show {
    display: block;
}

/* ndpro-header/close → .nd-modal-header/close 공용으로 통합 */
.ndpro-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(70vh - 100px);
    padding-right: 4px;
}

.ndpro-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    border-left: 4px solid transparent;
    position: relative;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    transition: all .15s;
}

.ndpro-item::after {
    content: '';
    position: absolute;
    left: 20px;
    bottom: -12px;
    width: 2px;
    height: 12px;
    background: #e2e8f0;
}

.ndpro-item:last-child::after {
    display: none;
}

.ndpro-item.active {
    background: #eff6ff;
    border-left-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .12);
}

.ndpro-item i {
    font-size: 18px;
    color: #2563eb;
    background: #eff6ff;
    padding: 8px;
    border-radius: 8px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ndpro-item.active i {
    background: #dbeafe;
}

.ndpro-item span {
    display: block;
}

.ndpro-step {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.ndpro-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .ndpro-modal {
        top: auto;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 80vh;
    }

    .ndpro-body {
        max-height: calc(85vh - 90px);
    }
}

/* ===============================================================
   사업자 간편통관 모달 (.ndbiz-)
   =============================================================== */
.ndbiz-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1000;
}

.ndbiz-mask.show {
    display: block;
}

.ndbiz-modal {
    max-height: 80vh;
}

.ndbiz-modal.show {
    display: block;
}

/* ndbiz-header/close → .nd-modal-header/close 공용으로 통합 */
/* ndbiz-body → nd-modal-body 공용 */
.ndbiz-desc {
    text-align: center;
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
    word-break: keep-all;
}

.ndbiz-desc strong {
    color: #0077cc;
}

.ndbiz-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    border: 1px solid #f0f0f0;
}

.ndbiz-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.ndbiz-section-title i {
    color: #2563eb;
    margin-right: 6px;
}

.ndbiz-section-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 14px;
    word-break: keep-all;
}

.ndbiz-input-row {
    margin-bottom: 14px;
}

.ndbiz-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.ndbiz-input-wrap {
    display: flex;
    gap: 8px;
}

.ndbiz-input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
    background: #fff;
}

.ndbiz-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.ndbiz-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ndbiz-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
    cursor: pointer;
    white-space: nowrap;
}

.ndbiz-btn.primary {
    background: #2563eb;
    color: #fff;
}

.ndbiz-btn.primary:hover {
    background: #1d4ed8;
}

.ndbiz-btn.secondary {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.ndbiz-btn.secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.ndbiz-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.5;
    word-break: keep-all;
}

.ndbiz-notice i {
    color: #2563eb;
    flex-shrink: 0;
    font-size: 15px;
}

.ndbiz-notice strong {
    font-weight: 600;
}

@media (max-width: 768px) {
    .ndbiz-modal {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
        transition: transform .3s ease;
        display: block;
    }

    .ndbiz-modal.show {
        transform: translateY(0);
    }

    .ndbiz-modal:not(.show) {
        pointer-events: none;
    }

    .ndbiz-modal::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        margin: 8px auto 0;
    }

    /* ndbiz-body → nd-modal-body */
    .ndbiz-buttons {
        flex-direction: column;
    }

    .ndbiz-btn {
        justify-content: center;
    }
}

/* ===============================================================
   품목별 관세율 (.ndrt-)
   =============================================================== */
.ndrt-wrap {
    box-sizing: border-box;
    word-break: keep-all;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
}

.ndrt-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.ndrt-page-title i {
    color: #3b82f6;
    margin-right: 8px;
}

.ndrt-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ndrt-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.ndrt-filter-label i {
    color: #3b82f6;
}

.ndrt-select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    min-width: 200px;
    cursor: pointer;
}

.ndrt-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.ndrt-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #eff6ff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 16px;
}

.ndrt-current i {
    font-size: 12px;
}

.ndrt-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.ndrt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ndrt-table thead th {
    padding: 12px 10px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #475569;
    text-align: center;
    white-space: nowrap;
}

.ndrt-th-name {
    text-align: left !important;
    min-width: 160px;
    padding-left: 16px !important;
}

.ndrt-th-note {
    min-width: 140px;
}

.ndrt-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.ndrt-table tbody tr:last-child {
    border-bottom: none;
}

.ndrt-table tbody tr:hover {
    background: #f8fafc;
}

.ndrt-table tbody td {
    padding: 11px 10px;
    text-align: center;
    color: #64748b;
    vertical-align: middle;
}

.ndrt-td-name {
    text-align: left !important;
    font-weight: 500;
    color: #1e293b !important;
    padding-left: 16px !important;
}

.ndrt-table tbody td.ndrt-highlight {
    color: #2563eb !important;
    font-weight: 600;
}

.ndrt-empty {
    text-align: center !important;
    padding: 60px 10px !important;
    color: #94a3b8 !important;
    font-size: 14px;
}

@media (max-width: 768px) {
    .ndrt-wrap {
        padding: 14px 10px;
        margin-top: 10px;
    }

    .ndrt-page-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .ndrt-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .ndrt-select {
        width: 100%;
        min-width: auto;
    }

    .ndrt-table-wrap {
        border-radius: 8px;
    }

    .ndrt-table {
        font-size: 12px;
    }

    .ndrt-table thead th {
        padding: 10px 6px;
        font-size: 11px;
    }

    .ndrt-table tbody td {
        padding: 9px 6px;
    }

    .ndrt-th-name {
        min-width: 100px;
    }
}

/* ===============================================================
   통관주의 모달 (.ndcr-)
   =============================================================== */
.ndcr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1000;
}

.ndcr-modal {
    width: 520px;
}

/* ndcr-header/close → .nd-modal-header/close 공용으로 통합 */
.nd-modal-title i.fa-triangle-exclamation {
    color: #dc2626;
}

.ndcr-body {
    max-height: calc(70vh - 64px);
}

.ndcr-warning {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #7f1d1d;
    line-height: 1.7;
    word-break: keep-all;
}

.ndcr-warning ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ndcr-warning li {
    position: relative;
    padding: 8px 0 8px 24px;
    border-bottom: 1px solid rgba(220, 38, 38, .1);
}

.ndcr-warning li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ndcr-warning li:first-child {
    padding-top: 0;
}

.ndcr-warning li::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 800;
    font-size: 10px;
    color: #dc2626;
    position: absolute;
    left: 0;
    top: 10px;
}

.ndcr-warning li:first-child::before {
    top: 2px;
}

.ndcr-warning strong {
    color: #dc2626;
}

.ndcr-items {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.8;
    word-break: keep-all;
}

.ndcr-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color .2s;
}

.ndcr-item.ndcr-open {
    border-color: #93c5fd;
}

.ndcr-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    user-select: none;
    background: #f8fafc;
    transition: background .15s;
}

.ndcr-item h4:hover {
    background: #f1f5f9;
}

.ndcr-item h4::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 800;
    font-size: 11px;
    color: #94a3b8;
    transition: transform .2s;
    flex-shrink: 0;
}

.ndcr-item.ndcr-open h4::after {
    transform: rotate(180deg);
    color: #3b82f6;
}

.ndcr-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.ndcr-item.ndcr-open .ndcr-item-body {
    max-height: 600px;
}

.ndcr-item-body-inner {
    padding: 12px 16px;
    font-size: 13px;
    color: #475569;
    border-top: 1px solid #e2e8f0;
}

.ndcr-item-body-inner ul {
    padding-left: 20px;
    margin-bottom: 8px;
}

.ndcr-item-body-inner li {
    margin-bottom: 4px;
}

.ndcr-item-body-inner p {
    margin-bottom: 8px;
}

.ndcr-item-body-inner a {
    color: #2563eb;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .ndcr-modal {
        top: auto;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }
}

/* ===============================================================
   국제운임 계산기 모달 (.ndfc-)
   =============================================================== */
.ndfc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1000;
    display: none;
}

.ndfc-overlay.show {
    display: block;
}

.ndfc-modal {
    max-height: calc(100vh - 40px);
    overflow: hidden;
    flex-direction: column;
}

.ndfc-modal.show {
    display: flex;
}

/* ndfc-header/close → .nd-modal-header/close 공용으로 통합 */
.ndfc-body {
    flex: 1;
}

.ndfc-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
    word-break: keep-all;
}

.ndfc-field {
    margin-bottom: 16px;
}

.ndfc-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.ndfc-opt {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 4px;
}

.ndfc-country-tabs {
    display: flex;
    gap: 6px;
}

.ndfc-ctab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 6px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: all .15s;
}

.ndfc-ctab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.ndfc-ctab.active {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.ndfc-ctab img {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
}

.ndfc-vol-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ndfc-x {
    color: #94a3b8;
    font-size: 13px;
    flex-shrink: 0;
}

.ndfc-input {
    flex: 1;
    padding: 9px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
    background: #fff;
    min-width: 0;
}

.ndfc-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.ndfc-select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #fff;
    transition: border-color .15s;
}

.ndfc-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.ndfc-calc-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    margin-bottom: 16px;
}

.ndfc-calc-btn:hover {
    background: var(--primary-dark);
}

.ndfc-calc-btn:disabled {
    opacity: .7;
    cursor: default;
}

.ndfc-result {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 14px;
}

.ndfc-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #475569;
}

.ndfc-result-row + .ndfc-result-row {
    border-top: 1px solid #e2e8f0;
}

.ndfc-result-label {
    font-weight: 500;
}

.ndfc-result-value {
    font-weight: 700;
}

.ndfc-result-highlight {
    padding: 10px 0;
}

.ndfc-result-price {
    font-size: 20px;
    color: #dc2626;
}

.ndfc-result-note {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.6;
    word-break: keep-all;
}

.ndfc-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    word-break: keep-all;
}

.ndfc-notice i {
    color: #94a3b8;
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .ndfc-modal {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
        transition: transform .3s ease;
        display: flex;
    }

    .ndfc-modal.show {
        transform: translateY(0);
    }

    .ndfc-modal:not(.show) {
        pointer-events: none;
    }

    .ndfc-modal::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        margin: 8px auto 0;
    }

    .ndfc-ctab {
        padding: 8px 4px;
        font-size: 12px;
    }
}

/* ============================================================
   무한스크롤 (.nd-inf-*)
   ============================================================ */
.nd-inf-sentinel {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.nd-inf-spin {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nd-inf-spin-circle {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: nd-inf-rotate .8s linear infinite;
}

@keyframes nd-inf-rotate {
    to {
        transform: rotate(360deg);
    }
}

.nd-inf-end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: #94a3b8;
    font-size: 14px;
    word-break: keep-all;
}

.nd-inf-end i {
    color: #22c55e;
    font-size: 16px;
}

/* ============================================================
   게시판 더보기 (.ndb-loadmore-*)
   ============================================================ */
.ndb-loadmore-wrap {
    text-align: center;
    padding: 16px 0;
}

.ndb-loadmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 32px;
    border: 1.5px solid #2563eb;
    border-radius: 8px;
    background: #fff;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    word-break: keep-all;
}

.ndb-loadmore-btn:hover {
    background: #2563eb;
    color: #fff;
}

.ndb-loadmore-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.ndb-loadmore-btn:disabled:hover {
    background: #fff;
    color: #2563eb;
}

.ndb-loadmore-btn span {
    font-weight: 400;
    font-size: 12px;
    color: #94a3b8;
}

.ndb-loadmore-btn:hover span {
    color: rgba(255, 255, 255, .7);
}

/* ============================================================
   상품 정보제공 고시 (.ndin-*)
   ============================================================ */
.ndin-wrap {
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    word-break: keep-all;
    margin-top: 24px;
}

.ndin-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.ndin-header i {
    color: #3b82f6;
}

.ndin-row {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
}

.ndin-row:last-child {
    border-bottom: none;
}

.ndin-label {
    flex-shrink: 0;
    width: 180px;
    padding: 14px 16px;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    border-right: 1px solid #e5e7eb;
}

.ndin-value {
    flex: 1;
    padding: 14px 16px;
    font-size: 13px;
    color: #334155;
    line-height: 1.7;
}

.ndin-group {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
}

.ndin-group-labels {
    flex-shrink: 0;
    width: 180px;
    padding: 14px 16px;
    background: #f8fafc;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ndin-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}

.ndin-group-value {
    flex: 1;
    padding: 14px 16px;
    font-size: 13px;
    color: #334155;
    line-height: 1.8;
}

.ndin-group-value p {
    margin: 0 0 10px 0;
}

.ndin-group-value p:last-child {
    margin-bottom: 0;
}

.ndin-highlight {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 4px;
    padding: 10px 14px;
    background: #fef3c7;
    border-radius: 8px;
    font-weight: 600;
    color: #92400e;
    font-size: 13px;
}

.ndin-highlight i {
    color: #f59e0b;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .ndin-row {
        flex-direction: column;
    }

    .ndin-label {
        width: auto;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 10px 14px;
    }

    .ndin-value {
        padding: 10px 14px;
    }

    .ndin-group {
        flex-direction: column;
    }

    .ndin-group-labels {
        width: auto;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 10px 14px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ndin-group-value {
        padding: 10px 14px;
    }
}

/* ============================================================
   모바일 하단 네비게이션 (.nd-bnav)
   ============================================================ */
.nd-bnav {
    display: none;
}

@media (max-width: 768px) {
    .nd-bnav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 900;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
        transition: transform .25s ease;
    }

    .nd-bnav.nd-bnav-hidden {
        transform: translateY(100%);
    }

    .nd-bnav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 0;
        background: none;
        border: none;
        color: #64748b;
        font-size: 10px;
        font-family: inherit;
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: color .15s;
    }

    .nd-bnav-item:active {
        color: var(--primary, #2563eb);
    }

    .nd-bnav-item i {
        font-size: 18px;
        line-height: 1;
    }

    .nd-bnav-item span {
        word-break: keep-all;
    }

    /* 하단 네비바 높이만큼 footer 하단 여백 */
    .ndt-footer {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    }
}

/* ==========================================================================
   안내 페이지 (.ndg-*) - 개인정보처리방침, 이용약관, 사이즈 조견표
   ========================================================================== */
.ndg-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.ndg-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #2563eb;
}

.ndg-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    word-break: keep-all;
}

.ndg-title i {
    color: #2563eb;
    margin-right: 8px;
}

.ndg-subtitle {
    color: #64748b;
    font-size: 14px;
    margin: 6px 0 0;
    word-break: keep-all;
}

.ndg-body {
    line-height: 1.7;
    color: #374151;
    font-size: 14px;
}

.ndg-intro {
    background: #f0f9ff;
    border-left: 4px solid #2563eb;
    padding: 16px 20px;
    margin-bottom: 28px;
    border-radius: 0 8px 8px 0;
    line-height: 1.8;
    word-break: keep-all;
}

.ndg-section {
    margin-bottom: 28px;
}

.ndg-section h2 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    word-break: keep-all;
}

.ndg-text {
    line-height: 1.8;
    word-break: keep-all;
}

.ndg-text ul {
    margin: 8px 0;
    padding-left: 24px;
}

.ndg-text ul li {
    margin-bottom: 4px;
    word-break: keep-all;
}

.ndg-indent {
    padding-left: 20px;
}

.ndg-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}

.ndg-table th {
    background: #f1f5f9;
    font-weight: 600;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    word-break: keep-all;
}

.ndg-table td {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    word-break: keep-all;
}

.ndg-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.ndg-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 12px;
}

.ndg-info-row {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    font-size: 14px;
    word-break: keep-all;
}

.ndg-info-label {
    font-weight: 600;
    color: #475569;
    min-width: 140px;
}

.ndg-footer-note {
    margin-top: 32px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    word-break: keep-all;
}

/* --- 사이즈 조견표 탭 --- */
.ndg-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}

.ndg-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
    word-break: keep-all;
}

.ndg-tab:hover {
    color: #2563eb;
}

.ndg-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.ndg-tab i {
    margin-right: 6px;
}

.ndg-tab-content {
    display: none;
}

.ndg-tab-content.active {
    display: block;
}

.ndg-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.ndg-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    word-break: keep-all;
}

.ndg-card-title i {
    color: #2563eb;
    margin-right: 6px;
}

.ndg-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ndg-size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
}

.ndg-size-table th {
    background: #1e293b;
    color: #fff;
    font-weight: 600;
    padding: 8px 10px;
    border: 1px solid #334155;
    text-align: center;
    position: sticky;
    top: 0;
}

.ndg-size-table td {
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.ndg-size-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.ndg-size-table tbody tr:hover {
    background: #eff6ff;
}

.ndg-size-table .ndg-row-label td:first-child,
.ndg-size-table .ndg-row-label td[rowspan] {
    background: #f1f5f9;
    font-weight: 600;
    color: #334155;
}

.ndg-size-table td:first-child {
    background: #f1f5f9;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.ndg-note {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.6;
    word-break: keep-all;
}

/* --- 모바일 안내 페이지 --- */
@media (max-width: 768px) {
    .ndg-page {
        padding: 16px 12px 36px;
    }

    .ndg-title {
        font-size: 18px;
    }

    .ndg-section h2 {
        font-size: 15px;
    }

    .ndg-body, .ndg-text {
        font-size: 13px;
    }

    .ndg-intro {
        padding: 12px 14px;
        font-size: 13px;
    }

    .ndg-table th, .ndg-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .ndg-info-row {
        flex-direction: column;
        gap: 2px;
    }

    .ndg-info-label {
        min-width: auto;
        font-size: 12px;
        color: #94a3b8;
    }

    .ndg-tabs {
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ndg-tab {
        padding: 8px 14px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .ndg-card {
        padding: 14px;
    }

    .ndg-card-title {
        font-size: 14px;
    }

    .ndg-size-table {
        font-size: 11px;
    }

    .ndg-size-table th {
        padding: 6px 6px;
    }

    .ndg-size-table td {
        padding: 5px 6px;
    }
}

/* ============================================================
   Tracking Modal (.ndtr-*)
   ============================================================ */
.ndtr-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 500;
}

.ndtr-overlay.active {
    display: block;
}

.ndtr-modal {
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 501;
}

.ndtr-modal.active {
    display: block;
}

/* ndtr-header/close → .nd-modal-header/close 공용으로 통합 */
.ndtr-modal .nd-modal-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    border-radius: 16px 16px 0 0;
}

.ndtr-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.ndtr-carrier {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    white-space: nowrap;
}

.ndtr-bl {
    font-size: 13px;
    color: #111827;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ndtr-body → nd-modal-body 공용 */

.ndtr-loading, .ndtr-error, .ndtr-empty, .ndtr-empty-main {
    text-align: center;
    padding: 40px 0;
    color: #9ca3af;
    font-size: 14px;
}

.ndtr-error {
    color: #ef4444;
}

.ndtr-empty-main {
    padding: 50px 0;
}

/* Progress Steps */
.ndtr-progress {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 4px 0 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.ndtr-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.ndtr-step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 2px solid #e5e7eb;
    position: relative;
    z-index: 1;
}

.ndtr-step-done .ndtr-step-dot {
    background: #3b82f6;
    border-color: #3b82f6;
}

.ndtr-step-active .ndtr-step-dot {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .2);
}

.ndtr-step-line {
    position: absolute;
    top: 7px;
    left: calc(50% + 9px);
    width: calc(100% - 18px);
    height: 2px;
    background: #e5e7eb;
}

.ndtr-step-done .ndtr-step-line {
    background: #3b82f6;
}

.ndtr-step-label {
    margin-top: 6px;
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
}

.ndtr-step-done .ndtr-step-label {
    color: #3b82f6;
    font-weight: 600;
}

.ndtr-step-active .ndtr-step-label {
    color: #1f2937;
    font-weight: 600;
}

/* Section */
.ndtr-section {
    margin-bottom: 16px;
}

.ndtr-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ndtr-section-title i {
    color: #6b7280;
    font-size: 13px;
}

.ndtr-epost-no {
    font-weight: 400;
    font-size: 12px;
    color: #9ca3af;
    font-family: 'Courier New', monospace;
}

/* Timeline */
.ndtr-timeline {
    padding-left: 8px;
}

.ndtr-tl-item {
    display: flex;
    gap: 12px;
    padding-bottom: 14px;
    position: relative;
}

.ndtr-tl-item:last-child {
    padding-bottom: 0;
}

.ndtr-tl-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 12px;
    width: 1px;
    height: calc(100% - 4px);
    background: #e5e7eb;
}

.ndtr-tl-item:last-child::before {
    display: none;
}

.ndtr-tl-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.ndtr-tl-active .ndtr-tl-dot {
    background: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.ndtr-tl-content {
    min-width: 0;
    flex: 1;
}

.ndtr-tl-status {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    line-height: 1.3;
}

.ndtr-tl-active .ndtr-tl-status {
    color: #1d4ed8;
    font-weight: 600;
}

.ndtr-tl-detail {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.4;
}

.ndtr-tl-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Footer */
.ndtr-footer {
    padding: 14px 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.ndtr-ext-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
}

.ndtr-ext-link:hover {
    text-decoration: underline;
}

/* Mobile: bottom sheet */
@media (max-width: 768px) {
    .ndtr-modal {
        top: auto;
        left: 0;
        bottom: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
        transition: transform .3s ease;
        display: block;
    }

    .ndtr-modal.active {
        transform: translateY(0);
    }

    .ndtr-modal:not(.active) {
        pointer-events: none;
    }

    /* ndtr-header → nd-modal-header */
    .ndtr-step-label {
        font-size: 10px;
    }
}

/*
   사이즈 조견표 드래그 모달 (.ndsc-*)
*/
.ndsc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 999;
}

.ndsc-modal {
    z-index: 1000;
    width: 640px;
    max-height: 70vh;
    flex-direction: column;
    overflow: hidden;
    transform: none;
}

#ndsc-header {
    cursor: grab;
    user-select: none;
}

#ndsc-header:active {
    cursor: grabbing;
}

.ndsc-body {
    flex: 1;
    min-height: 0;
    max-height: none;
}

.ndsc-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}

.ndsc-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.ndsc-tab {
    flex: 1;
    padding: 8px 4px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
}

.ndsc-tab:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.ndsc-tab.active {
    background: var(--primary, #059669);
    color: #fff;
    border-color: var(--primary, #059669);
}

.ndsc-tab i {
    margin-right: 4px;
    font-size: 12px;
}

.ndsc-tab-content {
    display: none;
}

.ndsc-tab-content.active {
    display: block;
}

.ndsc-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.ndsc-card:last-child {
    margin-bottom: 0;
}

.ndsc-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.ndsc-card-title i {
    color: var(--primary, #059669);
    margin-right: 5px;
    font-size: 12px;
}

.ndsc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ndsc-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    white-space: nowrap;
}

.ndsc-tbl th {
    background: #374151;
    color: #fff;
    padding: 5px 6px;
    font-weight: 600;
    text-align: center;
    font-size: 10px;
}

.ndsc-tbl td {
    padding: 4px 6px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.ndsc-tbl td:first-child {
    font-weight: 600;
    background: #f3f4f6;
    white-space: nowrap;
}

.ndsc-tbl tbody tr:nth-child(even) {
    background: #fafbfc;
}

.ndsc-tbl tbody tr:hover {
    background: #eef2ff;
}

.ndsc-hl td:first-child,
.ndsc-hl td[rowspan] {
    background: #e0e7ff;
    color: #3730a3;
}

.ndsc-note {
    font-size: 11px;
    color: #6b7280;
    margin-top: 8px;
    line-height: 1.5;
    padding: 0 2px;
}

.ndsc-footer {
    text-align: center;
    padding: 12px 0 4px;
    border-top: 1px solid #e5e7eb;
    margin-top: 12px;
}

.ndsc-link {
    font-size: 12px;
    color: var(--primary, #059669);
    text-decoration: none;
    font-weight: 500;
}

.ndsc-link:hover {
    text-decoration: underline;
}

.ndsc-link i {
    margin-right: 4px;
    font-size: 11px;
}

/* 모바일 바텀시트 */
@media (max-width: 768px) {
    .ndsc-modal {
        width: 100%;
        max-width: 100%;
        max-height: 80vh;
        bottom: 0;
        left: 0 !important;
        top: auto !important;
        border-radius: 16px 16px 0 0;
        animation: ndsc-slideUp .3s ease forwards;
    }

    #ndsc-header {
        cursor: default;
    }

    .ndsc-body {
        padding: 12px 14px 16px;
    }

    .ndsc-tab {
        padding: 10px 4px;
        font-size: 14px;
    }

    .ndsc-tbl th {
        font-size: 10px;
        padding: 5px 4px;
    }

    .ndsc-tbl td {
        font-size: 11px;
        padding: 4px 4px;
    }
}

@keyframes ndsc-slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ============================================================
   Claims (도착상품 문제접수) .ndcl-*
   ============================================================ */
.ndcl-section {
    margin-bottom: 32px;
}

.ndcl-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

/* 접수 목록 */
.ndcl-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ndcl-list-img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.ndcl-list-info {
    flex: 1;
    min-width: 0;
}

.ndcl-list-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.ndcl-list-type {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.ndcl-list-name {
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ndcl-list-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.ndcl-list-arrow {
    color: var(--text-light);
    font-size: 12px;
    flex-shrink: 0;
}

/* 상태 뱃지 */
.ndcl-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* 면책사항 카드 */
.ndcl-disclaimer {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.ndcl-disclaimer-title {
    font-size: 14px;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ndcl-disclaimer-list {
    font-size: 13px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ndcl-disclaimer-list li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    color: #7f1d1d;
    line-height: 2.1;
    word-break: keep-all;
}

.ndcl-disclaimer-list li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: 700;
}

/* 동의 체크 */
.ndcl-agree {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.ndcl-agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* 유형 선택 */
.ndcl-type-wrap {
    margin-bottom: 16px;
}

.ndcl-type-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.ndcl-type-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ndcl-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}

.ndcl-type-card i {
    font-size: 24px;
    color: var(--text-muted);
    transition: color .2s;
}

.ndcl-type-card span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.ndcl-type-card small {
    font-size: 11px;
    color: var(--text-light);
}

.ndcl-type-card:hover {
    border-color: var(--primary-light);
}

.ndcl-type-card.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.ndcl-type-card.selected i {
    color: var(--primary);
}

/* 선택된 유형 표시 */
.ndcl-selected-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--primary-bg);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.ndcl-change-btn {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.ndcl-change-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* 안내 카드 */
.ndcl-guide-card {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    color: #1e40af;
    line-height: 1.6;
    margin-bottom: 16px;
    word-break: keep-all;
}

/* 폼 요소 */
.ndcl-form-group {
    margin-bottom: 16px;
}

.ndcl-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.ndcl-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s;
    background: #fff;
}

.ndcl-form-input:focus {
    border-color: var(--primary);
}

.ndcl-form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
    outline: none;
    font-family: inherit;
    transition: border-color .2s;
    background: #fff;
}

.ndcl-form-textarea:focus {
    border-color: var(--primary);
}

/* 주문 정보 미리보기 */
.ndcl-order-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 13px;
}

.ndcl-order-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.ndcl-order-error {
    margin-top: 6px;
    font-size: 12px;
    color: #dc2626;
}

/* 사진 업로드 그리드 */
.ndcl-file-info {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.ndcl-photo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.ndcl-photo-slot {
    position: relative;
}

.ndcl-photo-area {
    position: relative;
    aspect-ratio: 1;
    border: 2px dashed var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s;
    background: #fafafa;
}

.ndcl-photo-area:hover {
    border-color: var(--primary-light);
}

.ndcl-photo-area.has-file {
    border-style: solid;
    border-color: var(--primary);
}

.ndcl-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
}

.ndcl-photo-placeholder i {
    font-size: 20px;
}

.ndcl-photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    position: absolute;
    top: 0;
    left: 0;
}

.ndcl-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    transition: background .2s;
}

.ndcl-photo-remove:hover {
    background: rgba(220, 38, 38, .85);
}

.ndcl-photo-add {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .2s;
}

.ndcl-photo-add:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* 제출 */
.ndcl-submit-wrap {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.ndcl-submit-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.ndcl-submit-btn:hover {
    background: var(--primary-dark);
}

.ndcl-submit-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* 상세 페이지 — 프로그레스 */
.ndcl-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 0;
    margin-bottom: 20px;
}

.ndcl-prog-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.ndcl-prog-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s;
}

.ndcl-prog-step.done .ndcl-prog-dot {
    background: var(--primary);
}

.ndcl-prog-step.done .ndcl-prog-dot::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.ndcl-prog-step.rejected .ndcl-prog-dot {
    background: #ef4444;
}

.ndcl-prog-step.rejected .ndcl-prog-dot::after {
    content: '×';
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.ndcl-prog-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.ndcl-prog-step.done .ndcl-prog-label {
    color: var(--primary-dark);
    font-weight: 600;
}

.ndcl-prog-step.rejected .ndcl-prog-label {
    color: #dc2626;
    font-weight: 600;
}

.ndcl-prog-line {
    width: 40px;
    height: 3px;
    background: #e5e7eb;
    margin: 0 4px;
    margin-bottom: 20px;
}

.ndcl-prog-line.done {
    background: var(--primary);
}

.ndcl-prog-line.rejected {
    background: #ef4444;
}

/* 상세 카드 */
.ndcl-detail-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.ndcl-detail-card-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.ndcl-detail-order {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ndcl-detail-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.ndcl-detail-order-info {
    flex: 1;
    min-width: 0;
}

.ndcl-detail-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ndcl-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
}

.ndcl-detail-row-full {
    flex-direction: column;
}

.ndcl-detail-label {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 50px;
    flex-shrink: 0;
}

.ndcl-detail-desc {
    line-height: 1.6;
    color: var(--text-body);
    margin-top: 4px;
}

/* 첨부 사진 */
.ndcl-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ndcl-photo-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.ndcl-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 관리자 답변 (레거시) */
.ndcl-reply-card {
    border-left: 3px solid var(--primary);
}

.ndcl-reply-card .ndcl-detail-card-header {
    color: var(--primary-dark);
}

.ndcl-reply-content {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-body);
}

/* 코멘트 UI */
.ndcl-comment {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.ndcl-comment:last-of-type {
    border-bottom: none;
}

.ndcl-comment-admin {
    border-left: 3px solid #3b82f6;
    padding-left: 12px;
}

.ndcl-comment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ndcl-comment-name {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.ndcl-comment-name-admin {
    color: #1e40af;
}

.ndcl-comment-date {
    font-size: 11px;
    color: #9ca3af;
}

.ndcl-comment-body {
    font-size: 13px;
    line-height: 1.7;
    color: #374151;
    word-break: break-word;
}

.ndcl-msg-input {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.ndcl-msg-input textarea {
    width: 100%;
    resize: vertical;
    min-height: 60px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

.ndcl-msg-input textarea:focus {
    border-color: var(--primary);
}

.ndcl-msg-input button {
    margin-top: 8px;
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.ndcl-msg-input button:hover {
    opacity: .85;
}

.ndcl-msg-input button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* 목록 버튼 */
.ndcl-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-body);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all .2s;
}

.ndcl-back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* 클레임 접수 버튼 */
.ndcl-create-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}

.ndcl-create-btn:hover {
    opacity: .85;
}

/* 클레임 목록 카드 (액션 분리) */
.ndcl-list-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s;
    margin-bottom: 8px;
}

.ndcl-list-card:hover {
    border-color: var(--primary);
}

.ndcl-list-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
}

/* 클레임 목록 액션 버튼 */
.ndcl-actions {
    display: flex;
    gap: 6px;
    padding: 0 16px 12px;
    justify-content: flex-end;
}

.ndcl-action-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
    color: var(--text-body);
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}

.ndcl-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.ndcl-action-danger {
    color: #dc2626;
    border-color: #fecaca;
}

.ndcl-action-danger:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #dc2626;
}

/* 클레임 상세 액션 버튼 */
.ndcl-detail-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.ndcl-detail-action-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body);
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}

.ndcl-detail-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* 빈 목록 */
.ndcl-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.ndcl-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.ndcl-empty p {
    margin: 0 0 16px;
    font-size: 15px;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .ndcl-type-cards {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ndcl-type-card {
        flex-direction: row;
        padding: 14px 16px;
        gap: 12px;
    }

    .ndcl-type-card i {
        font-size: 20px;
    }

    .ndcl-photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .ndcl-photo-item {
        width: 64px;
        height: 64px;
    }

    .ndcl-prog-line {
        width: 24px;
    }

    .ndcl-list-img {
        width: 44px;
        height: 44px;
    }

    .ndcl-detail-img {
        width: 48px;
        height: 48px;
    }
}

/* ============================================================
   상세페이지 모바일 개편 (ndd-) — 알리형 레이아웃
   이미지 풀블리드 우선 + 플로팅 버튼(뒤로/검색/찜) + 스와이프 슬라이더
   PC(769px~)는 기존 레이아웃 그대로, 아래 요소는 모두 숨김
   ============================================================ */
.ndd-fab,
.ndd-slider,
.ndd-imgcount {
    display: none;
}

@keyframes nddSearchDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    /* 검색바: 기본 숨김 → 이미지 우상단 검색 버튼으로 토글 (로고 라인은 유지) */
    body.nd-detail-body .search-mobile {
        display: none;
    }
    body.nd-detail-body.nd-msearch-open .search-mobile {
        display: flex;
        animation: nddSearchDown 0.22s ease;
    }

    /* 순서 재배치: 이미지 → 제목(번역제목) → 정보/견적. 브레드크럼 숨김 */
    body.nd-detail-body .nd-detail-page {
        padding-top: 0;
    }
    body.nd-detail-body .nd-detail-page > .container {
        display: flex;
        flex-direction: column;
    }
    body.nd-detail-body .nd-detail-page .nd-breadcrumb {
        display: none;
    }
    body.nd-detail-body .nd-detail-page .nd-product {
        display: contents;
    }
    body.nd-detail-body .nd-detail-page .nd-img-area {
        order: -3;
        width: auto;
        margin: 0 -12px;
        background: #fff;
        padding-bottom: 12px;
    }
    body.nd-detail-body .nd-detail-page > .container > .nd-title {
        order: -2;
        background: #fff;
        margin: 0 -12px;
        padding: 4px 12px 10px;
    }
    body.nd-detail-body .nd-detail-page > .container > .nd-skel-title-bar {
        order: -2;
    }
    body.nd-detail-body .nd-detail-page .nd-info-area {
        order: -1;
        margin-bottom: 14px;
    }

    /* 메인 이미지: 풀블리드 + 스크롤 스냅 슬라이더 */
    body.nd-detail-body .nd-main-img {
        position: relative;
        height: 90vw;
        max-height: 520px;
        padding: 0;
        border: none;
        border-radius: 0;
        cursor: default;
    }
    body.nd-detail-body .nd-main-img > #mainImage {
        display: none;
    }
    body.nd-detail-body .ndd-slider {
        display: flex;
        width: 100%;
        height: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    body.nd-detail-body .ndd-slider::-webkit-scrollbar {
        display: none;
    }
    .ndd-slide {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    .ndd-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 플로팅 원형 버튼 */
    body.nd-detail-body .ndd-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        z-index: 5;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.92);
        color: #222;
        font-size: 16px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .ndd-fab-back { left: 12px; top: 12px; }
    .ndd-fab-search { right: 12px; top: 12px; }
    .ndd-fab-wish { right: 12px; bottom: 14px; }
    .ndd-fab-wish .fa-solid.fa-heart { color: #ef4444; }

    /* 사진 카운터 (좌하단) */
    body.nd-detail-body .ndd-imgcount {
        display: block;
        position: absolute;
        left: 12px;
        bottom: 16px;
        z-index: 5;
        background: rgba(0, 0, 0, 0.45);
        color: #fff;
        border-radius: 999px;
        padding: 3px 11px;
        font-size: 11.5px;
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    /* 썸네일: 풀블리드 이미지 아래 좌우 여백 복원 */
    body.nd-detail-body .nd-detail-page .nd-img-area .nd-thumbs {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ndd- 2차: 뱃지 행(제목 위) + 판매자평가 라인 + 플랫 정보 테이블 (모바일 전용) */
.ndd-badges,
.ndd-seller {
    display: none;
}

@media (max-width: 768px) {
    /* 뱃지 행: 판매자평가 아래 (흰색 상단 블록, 아래로 topinfo 이어짐) */
    body.nd-detail-body .nd-detail-page .ndd-badges {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        order: -2;
        background: #fff;
        margin: 0 -12px;
        padding: 2px 12px 6px;
    }
    body.nd-detail-body .ndd-badges .nd-badge {
        font-size: 12px;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 6px;
    }

    /* 판매자평가 라인: 번역제목 아래 */
    body.nd-detail-body .nd-detail-page .ndd-seller {
        display: flex;
        align-items: center;
        gap: 6px;
        order: -2;
        background: #fff;
        margin: 0 -12px;
        padding: 0 12px 10px;
        font-size: 13px;
        color: #555;
    }
    body.nd-detail-body .ndd-seller b {
        color: #111;
        font-weight: 700;
    }
    body.nd-detail-body .ndd-seller i {
        font-size: 12px;
        color: #888;
    }
    body.nd-detail-body .ndd-seller-dot {
        display: inline-block;
        width: 3px;
        height: 3px;
        border-radius: 50%;
        background: #ccc;
        margin: 0 4px;
    }

    /* 위로 올라간 정보(상품상태/판매자평가)의 테이블 중복 행 숨김 */
    body.nd-detail-body .nd-detail-page .ndd-m-hide {
        display: none;
    }

    /* 정보 테이블(상품번호 영역 한정): 플랫 + 라벨-값 이어서 표시 (옵션 테이블은 기존 스타일 유지) */
    body.nd-detail-body .ndd-topinfo .nd-info-table .nd-info-label {
        background: transparent;
        border-right: none;
        color: #8a8f98;
        font-size: 13px;
        width: 1%;
        padding-right: 10px;
        white-space: nowrap;
    }
    body.nd-detail-body .ndd-topinfo .nd-info-table tr {
        border-bottom: none;
    }
    body.nd-detail-body .ndd-topinfo .nd-info-table td {
        padding: 6px 0;
        font-size: 13.5px;
    }
}

/* ndd- 3차: 모바일 상세 흰색 배경 + 뱃지 옆 상품위치 텍스트 */
@media (max-width: 768px) {
    body.nd-detail-body .ndd-badges .ndd-loc {
        display: inline-flex;
        align-items: center;
        font-size: 12.5px;
        color: #666;
        padding-left: 2px;
    }
}

/* ndd- 4차: partner 안내·상품번호 테이블을 흰색 상단 블록에 포함 (PC는 display:contents로 무변화) */
.ndd-topinfo {
    display: contents;
}

@media (max-width: 768px) {
    body.nd-detail-body .nd-info-area .ndd-topinfo {
        display: flex;
        flex-direction: column;
        background: #fff;
        margin: 0 -12px 14px;
        padding: 0 12px 16px;
    }
    /* 파트너 안내를 상품번호 테이블 아래로 */
    body.nd-detail-body .ndd-topinfo .ndep-noti {
        order: 2;
        margin: 10px 0 0;
    }
}

/* ndd- 5차: 모바일 썸네일 가로 스크롤바 숨김 */
@media (max-width: 768px) {
    body.nd-detail-body .nd-thumbs {
        scrollbar-width: none;
    }
    body.nd-detail-body .nd-thumbs::-webkit-scrollbar {
        display: none;
    }
}

/* ndd- 6차: 모바일 관련상품 상단 여백 축소 */
@media (max-width: 768px) {
    body.nd-detail-body .nd-related {
        margin-top: 0;
        padding-top: 16px;
        margin-bottom: 16px;
    }
}

/* ndd- 7차: 모바일 하단 고정바 관심상품(하트) 버튼 제거 (이미지 플로팅 하트로 대체) */
@media (max-width: 768px) {
    body.nd-detail-body .nd-est-actions .nd-est-btn-wish {
        display: none;
    }
}

/* ndd- 8차: 모바일에서 인라인 요소 숨김 (아마존 출고국·판매자 → 판매자만) */
@media (max-width: 768px) {
    body.nd-detail-body .ndd-hide-m-i {
        display: none;
    }
}

/* ndd- 9차: 모바일 스켈레톤 이미지 박스를 실제 이미지 영역과 동일하게 (풀블리드) */
@media (max-width: 768px) {
    body.nd-detail-body .nd-main-img .nd-skel-detail-img {
        width: 100%;
        height: 100%;
        min-height: 0;
        border-radius: 0;
    }
}

/* ndd- 10차: 주문알림 패널이 하단 고정바(구매금액/즉시구매)에 가려지지 않도록
   패널은 .site-header(z-index:100) 스태킹 컨텍스트 안에 있어 열림 상태에서 헤더를 최상위로 */
@media (max-width: 768px) {
    body.nd-noti-open .site-header {
        z-index: 1100;
    }
}

/* ndd- 11차: 이미지 1장이면 모바일 썸네일 숨김 + 상품번호 볼드 제거 */
@media (max-width: 768px) {
    body.nd-detail-body .nd-thumbs.ndd-single {
        display: none;
    }
    body.nd-detail-body .ndd-idnum {
        font-weight: 400 !important;
    }
}
