@charset "UTF-8";
/* ===========================
   DMB E-COMMERCE - 국내 B2B 베어링 쇼핑몰
   Color: DMB Red + Ink (Industrial / Professional)
   =========================== */

/* JetBrains Mono — 품번/숫자용 모노스페이스 폰트 */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand */
    --dmb-red: #C8102E;
    --dmb-red-dark: #A50C24;
    --dmb-red-tint: #FEF2F4;

    /* Ink scale (텍스트/어두운 표면) */
    --ink-900: #1A1D23;
    --ink-700: #4B5563;
    --ink-500: #6B7280;
    --ink-400: #9CA3AF;
    --ink-300: #D1D5DB;

    /* Surface */
    --surface-0: #FFFFFF;
    --surface-50: #F9FAFB;
    --surface-100: #F4F5F7;
    --border: #E4E7EB;
    --border-soft: #F0F2F5;

    /* State */
    --success: #059669;
    --warning: #D97706;
    --info: #0369A1;
    --danger: #C8102E;

    /* Timer */
    --timer-bg: #1A1D23;
    --timer-border: #2A2D33;
    --timer-highlight: #F59E0B;

    /* Legacy aliases (old code 호환) */
    --navy: #1A1D23;
    --navy-light: #2A2D33;
    --teal: #C8102E;
    --teal-light: #E5354F;
    --teal-dark: #A50C24;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F4F5F7;
    --gray-200: #E4E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-600: #6B7280;
    --gray-700: #4B5563;
    --gray-800: #1A1D23;

    /* Effects */
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --radius-pill: 100px;
    --transition: all 0.15s ease;

    /* Typography */
    --font-mono: 'JetBrains Mono', 'D2Coding', 'Consolas', monospace;
    --font-sans: 'Inter', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

/* 데스크탑에서만 스크롤바 거터 고정 (모바일은 overlay 스크롤바라 우측 빈 공간만 생김) */
@media (min-width: 769px) {
    html {
        overflow-y: scroll;
        scrollbar-gutter: stable;
    }
}

body {
    font-family: var(--font-sans);
    color: var(--ink-900);
    background-color: var(--surface-100);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ===========================
   Top Utility Strip (다크 톤바)
   =========================== */
.top-bar {
    background: var(--ink-900);
    color: var(--ink-400);
    font-size: 0.78rem;
    padding: 7px 0;
    border-bottom: 0;
    height: 32px;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.company-tagline {
    color: var(--ink-400);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.78rem;
    margin-left: auto;
    color: var(--ink-400);
}

.top-bar-right .branch-info {
    color: var(--ink-400);
}

.top-bar-right .lang-select {
    color: var(--ink-400);
    cursor: pointer;
}

.top-bar-right .top-phone {
    color: #fff;
    font-weight: 500;
}

.top-bar-right .biz-status {
    color: #10B981;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-bar-right .biz-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    display: inline-block;
}

.top-bar-right i {
    margin-right: 4px;
}

.top-bar-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-block;
}

.top-social {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.top-social-link {
    color: var(--ink-400);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.18s ease, background 0.18s ease;
}

.top-social-link i {
    margin: 0;
}

.top-social-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .top-bar-divider { display: none; }
    .top-bar-right { gap: 12px; }
    .top-social-link { width: 32px; height: 32px; font-size: 0.95rem; }
    .top-social { gap: 2px; }
}
@media (max-width: 480px) {
    .company-tagline { display: none; }
    .top-bar-right { gap: 8px; font-size: 0.7rem; }
    .top-bar-right .branch-info { display: none; }
}

/* ===========================
   직원 모드 표시 뱃지 + 거래처용 메뉴 숨김
   =========================== */
.staff-badge {
    display: none;
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.4);
    letter-spacing: 0.5px;
    align-items: center;
    gap: 4px;
}
body.role-staff .staff-badge { display: inline-flex; }

/* 직원에게 불필요한 거래처용 UI 숨김 */
body.role-staff .nav-link[href="dashboard.html"],
body.role-staff .nav-link[href="cart.html"],
body.role-staff .nav-link[href="mypage.html"],
body.role-staff .header-actions .cart-btn,
body.role-staff .mobile-bottom-nav a[href="cart.html"],
body.role-staff .mobile-bottom-nav a[href*="mypage.html"] {
    display: none !important;
}
body.role-staff .pp-cart-trigger { display: none !important; }
/* 모바일 하단 nav: 직원은 "홈"이 제품 페이지로 작동하도록 시각만 표시 (실제 redirect는 dashboard에서) */

/* 직원 모드일 때 헤더에 미세한 띠 표시 (시각적 구분) */
body.role-staff .header {
    border-bottom: 2px solid rgba(245, 158, 11, 0.5);
}

/* 직원 모드 — 페이지 최상단에 항상 보이는 띠 (데스크탑 + 모바일 공통) */
body.role-staff::before {
    content: "💼 직원 모드 · 원가 조회 가능";
    display: block;
    position: sticky;
    top: 0;
    z-index: 200;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #1A1D23;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 6px 12px;
    text-align: center;
    letter-spacing: 1.5px;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.4);
}
body.role-staff .header { top: 26px; }

/* 관리자 모드 — 페이지 최상단 띠 (빨강, 직원 띠보다 우선순위 높음) */
body.role-admin::before {
    content: "⭐ 관리자 모드 — DMB 운영 패널";
    display: block;
    position: sticky;
    top: 0;
    z-index: 200;
    background: linear-gradient(90deg, #dc3545, #c82333);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 6px 12px;
    text-align: center;
    letter-spacing: 1.5px;
    box-shadow: 0 1px 4px rgba(220, 53, 69, 0.4);
}
body.role-admin .header { top: 26px; }

/* 헤더 로그아웃 버튼 (모든 로그인 사용자) */
.header-logout {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    color: var(--ink-700);
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.header-logout:hover {
    border-color: var(--dmb-red);
    color: var(--dmb-red);
    background: var(--dmb-red-tint);
}

/* ===========================
   Header (DMB 신규 디자인)
   =========================== */
.header {
    background: var(--surface-0);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 빨간 사각형 마크 — 핸드오프 사양 */
.logo-mark {
    width: 44px;
    height: 44px;
    background: var(--dmb-red);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-style: italic;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.logo-text-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}

.logo-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.3px;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink-500);
    letter-spacing: 1.5px;
    border: none;
    padding: 0;
    white-space: nowrap;
}

/* 기존 logo-img 유지 (다른 페이지 호환용) */
.logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: 2px;
    line-height: 1;
    white-space: nowrap;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-contact {
    color: var(--ink-500);
    font-size: 0.88rem;
    transition: var(--transition);
}

/* ===========================
   Mega 품번 검색 (전 페이지 공통)
   =========================== */
.mega-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    background: var(--surface-0);
    border: 2px solid var(--border);
    border-radius: 6px;
    width: 480px;
    flex: 0 0 480px;        /* grow X, shrink X — 페이지 간 너비 고정 */
    height: 44px;
    transition: border-color 0.15s;
    overflow: hidden;
    box-sizing: border-box;
}
.mega-search:focus-within { border-color: var(--dmb-red); }
.mega-search-label {
    padding: 0 12px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ink-400);
    letter-spacing: 2px;
    border-right: 1px solid var(--border);
    height: 40px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.mega-search-input {
    flex: 1;
    border: 0;
    outline: none;
    font-size: 0.95rem;
    padding: 0 12px;
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--ink-900);
    background: transparent;
    min-width: 0;
}
.mega-search-btn {
    height: 44px;
    padding: 0 16px;
    background: var(--dmb-red);
    color: #fff;
    border: 0;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
}
.mega-search-btn:hover { background: var(--dmb-red-dark); }

/* 헤더 우측 액션 영역 (cart + user) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    flex-shrink: 0;
}
.header-actions .user-menu span {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}
.header-actions .cart-btn {
    width: 40px;
    height: 40px;
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-700);
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}
.header-actions .cart-btn:hover {
    border-color: var(--dmb-red);
    color: var(--dmb-red);
}
.header-actions .cart-btn .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--dmb-red);
    color: #fff;
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.header-actions .user-menu {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 6px;
    background: var(--surface-100);
    cursor: pointer;
    color: var(--ink-700);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}
.header-actions .user-menu:hover {
    background: var(--dmb-red-tint);
    color: var(--dmb-red);
}
.header-actions .user-menu i {
    font-size: 1.05rem;
}

/* ===========================
   Nav Countdown (당일 출고 마감 - 전 페이지 공통)
   =========================== */
.nav-countdown {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ink-900);
    color: #fff;
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid var(--timer-border);
    font-size: 0.78rem;
    line-height: 1;
}
.nav-countdown-icon {
    width: 22px;
    height: 22px;
    background: var(--dmb-red);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.nav-countdown-label {
    color: var(--ink-400);
    letter-spacing: 0.5px;
    font-weight: 500;
}
.nav-countdown-label .hi {
    color: var(--timer-highlight);
    font-weight: 700;
}
.nav-countdown-time {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1.2px;
    color: #fff;
}

.header-contact:hover {
    color: var(--dmb-red);
}

.header-contact i {
    margin-right: 4px;
}

/* ===========================
   Main Content
   =========================== */
.main-content {
    flex: 1;
    padding: 40px 0;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

/* Section Card */
.section-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.section-card:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--teal);
    font-size: 1.2rem;
}

.section-desc {
    color: var(--gray-600);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-800);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(33, 117, 155, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-300);
}

/* 모바일: 테이블 가로 스크롤 컨테이너 */
.table-scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 모바일: 폼 input 자동 줌 방지 (iOS는 16px 미만이면 포커스 시 줌인) */
@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
}

/* 비밀번호 표시/숨김 토글 (script.js 가 자동 래핑) */
.password-input-wrap {
    position: relative;
    display: block;
}
.password-input-wrap input {
    padding-right: 42px;
}
.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--gray-600);
    line-height: 1;
    font-size: 0.95rem;
}
.password-toggle:hover { color: var(--teal); }
.password-toggle:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
    border-radius: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: var(--gray-600) !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    accent-color: var(--teal);
}

.checkbox-label .link {
    color: var(--teal);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--dmb-red);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--dmb-red-dark);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
}

.btn-full {
    width: 100%;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.forgot-link {
    color: var(--teal);
    font-size: 0.85rem;
    transition: var(--transition);
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Benefits */
.benefits-list {
    margin-bottom: 28px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
}

.benefit-item i {
    color: var(--success);
    font-size: 1rem;
}

/* Features Section */
.features-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--teal);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.3rem;
    color: var(--warning);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ===========================
   Keys to Success Section (로그인 페이지 하단)
   =========================== */
.keys-section {
    padding: 72px 0 80px;
    background: var(--gray-100, #f5f6f8);
}
.keys-title {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    color: var(--navy);
    margin: 0 0 48px;
    text-transform: uppercase;
}
.keys-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.key-card {
    background: var(--white);
    border-radius: 10px;
    padding: 36px 24px 28px;
    box-shadow: 0 2px 10px rgba(0, 24, 52, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.key-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 24, 52, 0.12);
}
.key-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    flex-shrink: 0;
}
.key-icon i {
    color: var(--white);
    font-size: 1.4rem;
}
.key-title {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--navy);
    text-transform: uppercase;
    margin: 0 0 18px;
}
.key-desc {
    font-size: 0.88rem;
    color: var(--gray-700, #444);
    line-height: 1.75;
    margin: 0;
    flex-grow: 1;
}
.key-desc strong {
    color: var(--navy);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    .keys-grid { grid-template-columns: repeat(2, 1fr); }
    .keys-title { font-size: 1.6rem; letter-spacing: 0.18em; }
}
@media (max-width: 640px) {
    .keys-section { padding: 48px 0 56px; }
    .keys-grid { grid-template-columns: 1fr; gap: 16px; }
    .keys-title { font-size: 1.3rem; letter-spacing: 0.15em; margin-bottom: 32px; }
    .key-card { padding: 28px 20px 22px; }
}

/* ===========================
   Register CTA Card (login page right column)
   left 로그인 카드와 같은 사이즈로 정렬
   =========================== */
/* 좌우 컬럼 위쪽 정렬 — 등록 CTA 카드는 JS로 로그인 카드 높이에 맞춤 */
.login-wrapper {
    align-items: start;
}
.register-cta-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.register-cta-card {
    padding: 28px;
}
.register-cta-card .benefits-list {
    margin-bottom: 14px;
}
.register-cta-card .benefit-item {
    padding: 4px 0;
    font-size: 0.92rem;
}
.register-cta-card .benefit-item i {
    font-size: 0.92rem;
}
.register-cta-card .btn-full {
    margin-top: auto;
    flex-shrink: 0;
}

/* ===========================
   화물 영업소 검색 링크 (라벨 옆 외부 링크)
   =========================== */
.freight-search-link {
    margin-left: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--dmb-red, #C8102E);
    text-decoration: none;
    align-items: center;
    gap: 3px;
}
.freight-search-link:hover {
    text-decoration: underline;
}
.freight-search-link i {
    font-size: 0.7rem;
}

/* ===========================
   우편번호 + 주소 검색 버튼
   =========================== */
.postal-row {
    display: flex;
    gap: 8px;
}
.postal-row input {
    flex: 0 0 140px;
    background: var(--surface-50, #f9fafb);
}
.postal-search-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0 16px;
    background: var(--ink-700, #4B5563);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.15s ease;
}
.postal-search-btn:hover {
    background: var(--ink-900, #1A1D23);
}
.postal-search-btn i {
    margin-right: 4px;
}

/* ===========================
   Form section divider (모달 내 구분 헤더)
   =========================== */
.form-section-divider {
    margin: 24px 0 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border, #E4E7EB);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-700, #4B5563);
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-section-divider i {
    color: var(--dmb-red, #C8102E);
    font-size: 0.95rem;
}

/* ===========================
   Register Modal (popup)
   =========================== */
.register-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.register-modal-overlay.show {
    display: flex;
    animation: regModalFadeIn 0.18s ease-out;
}
@keyframes regModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.register-modal {
    background: #fff;
    border-radius: var(--radius-lg, 12px);
    padding: 32px;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: regModalSlideUp 0.22s ease-out;
}
@keyframes regModalSlideUp {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.register-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--ink-500, #6B7280);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.register-modal-close:hover {
    background: var(--surface-100, #f4f5f7);
    color: var(--dmb-red, #C8102E);
}
@media (max-width: 640px) {
    .register-modal { padding: 24px 20px; }
    .register-modal-close { top: 8px; right: 8px; }
}

/* ===========================
   Company Video Section
   =========================== */
.video-section {
    padding: 72px 0 80px;
    background: var(--white);
}
.video-subtitle {
    text-align: center;
    color: var(--gray-700, #555);
    font-size: 0.95rem;
    margin: -32px 0 36px;
    letter-spacing: 0.05em;
}
.video-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 24, 52, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 24, 52, 0.24);
}
.video-wrapper:focus-visible {
    outline: 3px solid var(--dmb-red);
    outline-offset: 3px;
}
.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--dmb-red);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
    padding-left: 6px;
}
.video-wrapper:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--dmb-red-dark);
}
.video-wrapper.loaded {
    cursor: default;
}
.video-wrapper.loaded:hover {
    transform: none;
}
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
@media (max-width: 640px) {
    .video-section { padding: 48px 0 56px; }
    .video-subtitle { font-size: 0.85rem; margin: -24px 0 24px; }
    .video-play-btn { width: 64px; height: 64px; font-size: 1.4rem; }
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 48px 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--dmb-red);
    display: inline-block;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    padding: 4px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-list li i {
    color: var(--teal);
    width: 16px;
    font-size: 0.8rem;
}

.footer-list li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-list li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.mt-10 {
    margin-top: 10px;
}

/* ===========================
   Dashboard Page Styles
   =========================== */
.nav-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: var(--navy);
    background: var(--gray-50);
}

.nav-link.active {
    color: var(--dmb-red);
    border-bottom-color: var(--dmb-red);
    font-weight: 700;
    background: var(--dmb-red-tint);
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 50px;
    padding: 8px 16px;
    gap: 8px;
    min-width: 320px;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(33, 117, 155, 0.1);
}

.search-bar input {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-family: inherit;
    flex: 1;
    outline: none;
    color: var(--gray-800);
}

.search-bar button {
    background: var(--teal);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button:hover {
    background: var(--teal-dark);
}

.cart-btn {
    position: relative;
    color: var(--gray-600);
    font-size: 1.2rem;
    padding: 8px;
    transition: var(--transition);
}

.cart-btn:hover {
    color: var(--teal);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.user-menu:hover {
    background: var(--gray-50);
    color: var(--navy);
}

/* Dashboard Content */
.page-header {
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
}

.page-header h2 {
    font-size: 1.5rem;
    color: var(--navy);
    font-weight: 600;
}

.page-header p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-top: 4px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-icon.blue { background: rgba(33, 117, 155, 0.1); color: var(--teal); }
.stat-icon.green { background: rgba(40, 167, 69, 0.1); color: var(--success); }
.stat-icon.orange { background: rgba(245, 166, 35, 0.1); color: var(--warning); }
.stat-icon.navy { background: rgba(0, 24, 52, 0.1); color: var(--navy); }

.stat-info h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
}

.stat-info p {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* Order/Quote Two Column */
.dashboard-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .dashboard-two-col { grid-template-columns: 1fr; }
}

.contact-person-card,
.order-history-card {
    padding: 28px;
}

/* 주문/견적 카드 — 좌우 높이 맞춤 + 하단 링크 고정 */
.dashboard-two-col > .section-card {
    margin-bottom: 0; /* grid 셀 내 카드 높이 균등화 */
    align-self: stretch;
    height: 100%;
}
.order-history-card {
    display: flex;
    flex-direction: column;
}
.order-history-card .order-history-table-wrap {
    flex: 1 1 auto;
}
.order-history-card .card-footer-link {
    margin-top: auto;
    padding-top: 14px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-counts {
    margin-left: auto;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-500);
}
.card-counts strong {
    color: var(--navy);
    font-weight: 700;
    font-size: 0.92rem;
}

.card-footer-link {
    margin-top: 14px;
    text-align: right;
    font-size: 0.88rem;
}
.card-footer-link a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
}
.card-footer-link a:hover { text-decoration: underline; }

.contact-person {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-photo {
    width: 90px;
    height: 90px;
    min-width: 90px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 2.5rem;
}

.contact-details {
    flex: 1;
}

.contact-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.contact-details p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.contact-details a {
    color: var(--teal);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-message {
    margin-top: 12px !important;
    font-size: 0.85rem !important;
    color: var(--gray-500) !important;
    line-height: 1.5;
}

.order-history-table-wrap {
    overflow-x: auto;
}

.order-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.order-history-table thead th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    color: var(--navy);
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}

.order-history-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
}

.order-history-table tbody tr:hover {
    background: var(--gray-50);
}

.no-orders {
    text-align: center;
    padding: 24px 0;
    color: var(--gray-400);
    font-size: 0.9rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-top: 8px;
}

.no-orders i {
    margin-right: 6px;
}

.no-orders-row td {
    border: none !important;
    padding: 0 !important;
}

/* Status Badge */
.status-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-badge.pending, .badge-pending { background: rgba(245,166,35,0.1); color: #f5a623; }
.status-badge.confirmed, .badge-confirmed { background: rgba(40,167,69,0.1); color: #28a745; }
.status-badge.rejected, .badge-rejected { background: rgba(220,53,69,0.1); color: #dc3545; }
.status-badge.partial, .badge-partial { background: rgba(245,166,35,0.1); color: #f5a623; }
.status-badge.open, .badge-open { background: rgba(33,117,155,0.12); color: #21759b; }

/* ===========================
   Sidebar Filters & Product Table
   =========================== */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

.sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.filter-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}

.filter-list {
    list-style: none;
}

.filter-list li {
    padding: 6px 0;
}

.filter-list li label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.filter-list li label:hover {
    color: var(--navy);
}

.filter-list li input[type="checkbox"] {
    accent-color: var(--teal);
}

.filter-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--gray-300);
}

.filter-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}

.filter-title-row .filter-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-close:hover {
    color: var(--navy);
}

.product-table-wrapper {
    width: 100%;
}

.page-per-page {
    font-size: 0.8rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.per-page-btn {
    background: none;
    border: none;
    font-size: 0.85rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 2px 6px;
    font-family: inherit;
    transition: var(--transition);
}

.per-page-btn:hover,
.per-page-btn.active {
    color: var(--navy);
    font-weight: 600;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-table thead {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
}

.product-table th {
    padding: 8px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-table td {
    padding: 6px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.85rem;
    vertical-align: middle;
}

.product-table tbody tr {
    transition: var(--transition);
}

.product-table tbody tr:hover {
    background: rgba(33, 117, 155, 0.03);
}

.product-table .brand-cell {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.85rem;
}

.product-table .article-cell {
    color: var(--gray-800);
    font-weight: 500;
}

.product-table .stock-cell {
    text-align: center;
    font-weight: 500;
}

.product-table .price-cell {
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
}

.product-table .order-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-input {
    width: 50px;
    padding: 4px 6px;
    border: 1.5px solid var(--gray-200);
    border-radius: 4px;
    text-align: center;
    font-size: 0.8rem;
    font-family: inherit;
}

.qty-input:focus {
    outline: none;
    border-color: var(--teal);
}

.cart-icon-btn {
    background: var(--navy);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.cart-icon-btn:hover {
    background: var(--teal);
    transform: scale(1.05);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 24px;
    padding: 16px 0;
}

.page-btn {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.page-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.page-btn.next {
    width: auto;
    padding: 0 12px;
}

.page-dots {
    font-size: 0.85rem;
    color: var(--gray-400);
    padding: 0 4px;
}

/* ===========================
   Cart & Checkout
   =========================== */
.checkout-steps {
    display: flex;
    background: var(--navy);
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 16px;
}

.checkout-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

.checkout-step.active {
    color: var(--white);
    background: var(--navy-light);
}

.checkout-step.active:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    border: 16px solid transparent;
    border-left-color: var(--navy-light);
    z-index: 1;
}

.step-number {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
}

.checkout-step.active .step-number {
    background: var(--white);
    color: var(--navy);
}

.step-label {
    white-space: nowrap;
}

.checkout-panel {
    margin-top: 8px;
}

.checkout-panel .section-card {
    margin-bottom: 16px;
}

.checkout-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    margin-top: 8px;
    transition: var(--transition);
}

.checkout-input:focus {
    outline: none;
    border-color: var(--teal);
}

.checkout-textarea {
    min-height: 60px;
    resize: vertical;
}

.checkout-checkbox,
.checkout-radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.checkout-checkbox input,
.checkout-radio input {
    margin-top: 2px;
    cursor: pointer;
}

.radio-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--teal);
    margin-top: 2px;
    font-weight: 400;
}

.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.address-col h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.address-block {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-600);
}

.shipping-payment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    margin-bottom: 16px;
}

.checkout-back-btn {
    border: 1.5px solid var(--gray-200) !important;
    color: var(--gray-600) !important;
    background: var(--white) !important;
}

.checkout-next-btn {
    min-width: 200px;
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 14px 32px !important;
    letter-spacing: 1px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cart-table thead {
    background: var(--navy);
    color: var(--white);
}

.cart-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
    vertical-align: middle;
}

.cart-qty-input {
    width: 60px;
    padding: 6px 8px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    text-align: center;
    font-family: inherit;
}

.cart-remove {
    color: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    font-size: 1rem;
}

.cart-remove:hover {
    color: var(--danger);
}

.cart-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px !important;
}

.cart-actions-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
}

.btn-text {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--danger);
}

.cart-bottom-row {
    display: flex;
    gap: 32px;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-additional-info {
    flex: 1;
    max-width: 400px;
}

.cart-additional-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.cart-order-summary {
    min-width: 300px;
    text-align: right;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.cart-summary-row.total {
    border-top: 2px solid var(--navy);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
}

.cart-summary-row.total span:last-child {
    color: var(--teal);
}

/* Step 3 - Order Review */
.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-details-header .card-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--navy);
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--navy);
}

.order-details-grid .detail-col h5 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.order-details-grid .detail-col p,
.order-details-grid .detail-col {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--gray-600);
}

.cart-table-review {
    box-shadow: none;
}

.final-order-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.terms-agree {
    flex: 1;
    padding-top: 8px;
}

.final-summary {
    min-width: 320px;
    text-align: right;
}

.final-summary .cart-summary-row {
    max-width: 320px;
    margin-left: auto;
}

.final-summary .checkout-next-btn {
    margin-top: 16px;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--gray-200);
    color: var(--gray-600);
}

.btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal);
}

/* ===========================
   KakaoTalk Floating Button
   =========================== */
.kakao-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.kakao-float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #FEE500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.kakao-float-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.kakao-float-btn svg {
    width: 28px;
    height: 28px;
}

.kakao-float-label {
    background: var(--white);
    color: var(--gray-800);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.kakao-float:hover .kakao-float-label {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .kakao-float {
        bottom: 80px; /* above mobile nav */
        right: 16px;
    }
    .kakao-float-btn {
        width: 48px;
        height: 48px;
    }
    .kakao-float-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ===========================
   Mobile Bottom Navigation
   =========================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    z-index: 200;
    padding: 6px 0;
    padding-bottom: env(safe-area-inset-bottom, 6px);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}

.mobile-bottom-nav .mobile-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    color: var(--gray-400);
    font-size: 0.65rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.mobile-bottom-nav a i {
    font-size: 1.2rem;
}

.mobile-bottom-nav a.active {
    color: var(--teal);
}

.mobile-bottom-nav a .mobile-cart-badge {
    position: absolute;
    top: 0;
    right: 4px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.55rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile search overlay */
.mobile-search-bar {
    display: none;
    padding: 8px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.mobile-search-bar form {
    display: flex;
    align-items: center;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 50px;
    padding: 8px 16px;
    gap: 8px;
}

.mobile-search-bar input {
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-family: inherit;
    flex: 1;
    outline: none;
    color: var(--gray-800);
}

.mobile-search-bar button {
    background: var(--teal);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   Responsive - Tablet
   =========================== */
@media (max-width: 1024px) {
    .login-wrapper { grid-template-columns: 1fr; }
    .features-section { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .content-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .dashboard-two-col { grid-template-columns: 1fr 1fr; }
    .order-details-grid { grid-template-columns: repeat(2, 1fr); }
    .shipping-payment-row { grid-template-columns: 1fr; }
}

/* ===========================
   Responsive - Mobile
   =========================== */
@media (max-width: 768px) {
    html { font-size: 14px; }

    /* Show mobile nav, hide desktop nav */
    .mobile-bottom-nav { display: block; }
    .mobile-search-bar { display: none; }   /* mega-search가 대체 */
    .nav-bar { display: none; }
    .top-bar { display: none; }

    /* Add bottom padding for fixed nav */
    body { padding-bottom: 70px; }

    /* Compact header — 로고 위 / mega-search 아래 줄바꿈 */
    .header { padding: 10px 0; }
    .header-inner { flex-wrap: wrap; row-gap: 10px; column-gap: 12px; }
    .logo-text { font-size: 1.2rem; }
    .logo-img { height: 38px; }
    .logo-mark { width: 36px; height: 36px; font-size: 0.85rem; }
    .logo-name { font-size: 0.92rem; }
    .logo-sub { display: none; }
    .header-right { display: none; }

    /* mega-search: 새 줄로 내려서 폭 100% */
    .mega-search {
        order: 99;
        flex: 0 0 100%;
        width: 100%;
        margin-left: 0;
        height: 40px;
    }
    .mega-search-label { font-size: 0.65rem; padding: 0 10px; height: 36px; letter-spacing: 1.5px; }
    .mega-search-input { font-size: 16px; padding: 0 10px; }
    .mega-search-btn { padding: 0 14px; font-size: 0.78rem; height: 40px; }

    /* header-actions: 로고 우측 그대로 유지, "내 계정" 텍스트만 숨김 */
    .header-actions { margin-left: auto; }
    .header-actions .user-menu span { display: none; }
    .header-actions .user-menu { padding: 7px 9px; }

    /* Layout */
    .main-content { padding: 16px 0; }
    .features-section { grid-template-columns: repeat(2, 1fr); }
    .features-section .feature-card { padding: 16px 12px; }
    .feature-card h3 { font-size: 1.1rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-two-col { grid-template-columns: 1fr; }
    .section-card { padding: 20px 16px; }

    /* Product table - compact for mobile */
    .product-table th,
    .product-table td {
        padding: 8px 8px;
        font-size: 0.8rem;
    }
    .product-table .order-cell { gap: 4px; }
    .qty-input { width: 42px; padding: 6px 4px; font-size: 0.85rem; }
    .cart-icon-btn { width: 36px; height: 36px; font-size: 0.9rem; }

    /* Hide 원산지(col 3) and 발주중(col 5) on mobile — keep stock visible */
    .product-table th:nth-child(3),
    .product-table td:nth-child(3),
    .product-table th:nth-child(5),
    .product-table td:nth-child(5) { display: none; }

    /* Cart table */
    .cart-table th,
    .cart-table td { padding: 10px 8px; font-size: 0.8rem; }
    .cart-table th:nth-child(2),
    .cart-table td:nth-child(2) { display: none; } /* hide brand */

    /* Checkout */
    .checkout-step { padding: 10px 12px; gap: 6px; }
    .checkout-step .step-label { font-size: 0.7rem; }
    .step-number { width: 22px; height: 22px; font-size: 0.7rem; }
    .checkout-next-btn { min-width: 140px !important; padding: 12px 20px !important; }
    .address-grid { grid-template-columns: 1fr; }
    .order-details-grid { grid-template-columns: 1fr 1fr; }
    .cart-bottom-row { flex-direction: column; }
    .cart-order-summary { min-width: unset; width: 100%; }
    .final-order-row { flex-direction: column; }
    .final-summary { min-width: unset; width: 100%; }

    /* Page header */
    .page-header { padding: 16px 0; }
    .page-header h2 { font-size: 1.2rem; }

    /* Stat cards */
    .stat-card { padding: 16px; gap: 12px; }
    .stat-icon { width: 40px; height: 40px; font-size: 1rem; }
    .stat-info h4 { font-size: 1.1rem; }

    /* Contact card */
    .contact-person { flex-direction: column; align-items: center; text-align: center; }

    /* Sidebar filter - horizontal scroll on mobile */
    .sidebar .filter-card { padding: 12px; }
    .filter-list { display: flex; flex-wrap: wrap; gap: 4px; }
    .filter-list li { padding: 0; }
    .filter-list li label {
        padding: 6px 12px;
        background: var(--gray-50);
        border: 1px solid var(--gray-200);
        border-radius: 20px;
        font-size: 0.8rem;
        gap: 4px;
    }
    .filter-list li label:has(input:checked) {
        background: var(--navy);
        color: var(--white);
        border-color: var(--navy);
    }
    .filter-count { display: none; }
    .filter-title-row { display: none; }

    /* Page per page */
    .page-per-page { margin-bottom: 8px; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .section-card { padding: 16px 12px; }
    .features-section { grid-template-columns: 1fr 1fr; gap: 12px; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 12px; }
    .stat-info h4 { font-size: 1rem; }
    .stat-info p { font-size: 0.7rem; }

    /* Product table - even more compact: also hide 재고(col 4) on very small */
    .product-table th:nth-child(4),
    .product-table td:nth-child(4) { display: none; }

    .order-details-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .login-wrapper { gap: 16px; }
}

/* ===========================
   OUR FEATURED BRANDS — infinite horizontal marquee
   =========================== */
.brands-marquee-section {
    padding: 32px 0 34px;
    background: var(--white);
    border-top: 1px solid var(--gray-200, #e4e7eb);
    border-bottom: 1px solid var(--gray-200, #e4e7eb);
}
.brands-marquee-viewport {
    margin-top: 18px;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.brands-marquee-track {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
    animation: brands-marquee 40s linear infinite;
}
.brands-marquee-viewport:hover .brands-marquee-track,
.brands-marquee-viewport:focus-within .brands-marquee-track {
    animation-play-state: paused;
}
.brand-slide {
    flex: 0 0 auto;
    height: 70px;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(20%);
    opacity: 0.85;
    transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}
.brand-slide:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.04);
}
.brand-slide img {
    max-height: 100%;
    max-width: 160px;
    object-fit: contain;
    display: block;
}
.brand-slide .brand-fallback {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--navy);
    letter-spacing: 0.06em;
}
@keyframes brands-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (max-width: 900px) {
    .brands-marquee-section { padding: 32px 0 36px; }
    .brands-marquee-track { gap: 44px; animation-duration: 30s; }
    .brand-slide { height: 56px; min-width: 110px; }
    .brand-slide img { max-width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
    .brands-marquee-track { animation: none; }
    .brands-marquee-viewport { overflow-x: auto; }
}

/* ==========================================================================
   ADMIN — design tokens & utility classes
   admin.html의 반복되는 inline style을 일관되게 교체하기 위한 클래스 묶음
   ========================================================================== */

/* --- 1. Section header (h3 + 우측 액션 버튼/필터) --- */
.admin-section-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.admin-section-row .admin-section-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.admin-section-title {
    color: var(--navy);
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}
.admin-section-title i {
    color: var(--teal);
    margin-right: 4px;
}

/* --- 2. h4 sub-section divider (대시보드 "오늘", "처리 대기" 등) --- */
.admin-h4 {
    color: var(--navy);
    margin: 14px 0 10px;
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--gray-200, #e4e7eb);
    padding-bottom: 6px;
}
.admin-h4 i { margin-right: 4px; }
.admin-h4 .admin-h4-meta {
    font-size: 0.78rem;
    color: var(--gray-400);
    font-weight: 400;
    margin-left: 6px;
}
.admin-h4--accent i { color: var(--teal); }
.admin-h4--alert  i { color: #dc3545; }
.admin-h4--navy   i { color: var(--navy); }

/* --- 3. 대시보드 카드 (KPI tile) --- */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.dash-card {
    background: var(--white);
    border-left: 4px solid var(--navy);
    padding: 16px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.dash-card--success { border-left-color: #28a745; }
.dash-card--warning { border-left-color: #f59e0b; }
.dash-card--danger  { border-left-color: #dc3545; background: #fff5f5; box-shadow: none; }
.dash-card--alert   { border-left-color: #f59e0b; background: #fff8e1; box-shadow: none; }
.dash-card--info    { border-left-color: var(--teal); }
.dash-card--wide    { grid-column: span 2; }
.dash-card.is-clickable { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.dash-card.is-clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* XL card — 처리 대기처럼 1순위 강조 */
.dash-card--xl {
    padding: 22px 24px;
    border-left-width: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.dash-card--xl .dash-card__label {
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dash-card--xl .dash-card__value {
    font-size: 2.4rem;
}

/* Compact card — "오늘", "이번 달"같은 보조 영역용 */
.dash-card--compact {
    padding: 12px 14px;
    box-shadow: none;
    border: 1px solid var(--gray-200, #e4e7eb);
    border-left-width: 3px;
}
.dash-card--compact .dash-card__label {
    font-size: 0.72rem;
}
.dash-card--compact .dash-card__value {
    font-size: 1.2rem;
}

/* Grid presets */
.dash-grid--priority { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.dash-grid--compact  { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 16px; }
.dash-card__label {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-bottom: 4px;
}
.dash-card__value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}
.dash-card__value--sm      { font-size: 1.4rem; }
.dash-card__value--success { color: #155724; }
.dash-card__value--warning { color: #f59e0b; }
.dash-card__value--danger  { color: #dc3545; }
.dash-card__value--info    { color: var(--teal); }
.dash-card--danger .dash-card__label { color: #721c24; }
.dash-card--alert  .dash-card__label { color: #92400e; }

/* --- 4. Toolbar row (필터 라벨 + 셀렉트) --- */
.admin-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.admin-toolbar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
}
.admin-select {
    padding: 8px 12px;
    border: 1.5px solid var(--gray-200, #e4e7eb);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    min-width: 200px;
    background: var(--white);
    color: var(--navy);
}
.admin-select--lg {
    padding: 10px 14px;
    font-size: 0.9rem;
    min-width: 250px;
}
.admin-select--month {
    padding: 6px 12px;
    min-width: 0;
}

/* --- 5. Empty state (table tbody 첫 td 메시지) --- */
.tbl-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}
.tbl-empty--sm    { padding: 30px; }
.tbl-empty--error { color: #dc3545; }

/* --- 6. Summary pill (원장 요약 카드 6개 / 작은 통계) --- */
.summary-pill {
    background: var(--gray-50, #f9fafb);
    padding: 14px;
    border-radius: 8px;
    text-align: center;
}
.summary-pill__label {
    font-size: 0.7rem;
    color: var(--gray-400);
}
.summary-pill__value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 2px;
}
.summary-pill__value--success { color: #28a745; }
.summary-pill__value--info    { color: var(--teal); }
.summary-pill__value--danger  { color: #dc3545; }
.summary-pill--danger         { background: #fff3f3; }

/* --- 7. Text utilities (admin 영역에서만 안전하게 쓰는 유틸) --- */
.text-right  { text-align: right; }
.text-center { text-align: center; }
.text-muted  { color: var(--gray-400); }
.text-navy   { color: var(--navy); }
.text-teal   { color: var(--teal); }

/* --- 8. Filter button color variants (주문/견적 탭) --- */
.filter-btn--info   { border-color: #21759b !important; color: #21759b !important; font-weight: 600; }
.filter-btn--orange { border-color: #b35900 !important; color: #b35900 !important; font-weight: 600; }
.filter-btn--alert  { border-color: #f59e0b !important; color: #92400e !important; }

/* --- 9. Quote badge (탭 옆 N건 알림) --- */
.tab-badge {
    display: none;
    background: #f59e0b;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 4px;
}
.tab-badge.is-visible { display: inline-block; }

/* Modal close × button (admin modals) */
.modal-close-x {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray-400);
    padding: 0 6px;
    line-height: 1;
}
.modal-close-x:hover { color: var(--navy); }

/* Collapsible (visitors / less-important blocks) */
.admin-collapse {
    margin-top: 20px;
}
.admin-collapse > summary {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--gray-200, #e4e7eb);
    padding-bottom: 6px;
    margin: 14px 0 10px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.admin-collapse > summary::-webkit-details-marker { display: none; }
.admin-collapse > summary::before {
    content: '▸';
    font-size: 0.75rem;
    color: var(--gray-400);
    transition: transform .15s ease;
    display: inline-block;
}
.admin-collapse[open] > summary::before { transform: rotate(90deg); }
.admin-collapse > summary i { color: var(--teal); margin-right: 2px; }
.admin-collapse > summary .admin-h4-meta { font-weight: 400; color: var(--gray-400); font-size: 0.78rem; margin-left: 6px; }


/* ===== 모바일 햄버거 네비 (JTC ONLINESHOP 패턴 이식, 2026-06-09 v4 통합) ===== */
.nav-hamburger { display: none; }
.mnav-search-row { display: contents; }
/* 검색창 '품번' 라벨 칸 제거 (모바일/웹 공통) */
.mega-search-label { display: none; }
.mobile-nav-drawer {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 80%; max-width: 300px; background: #fff; z-index: 1200;
    transform: translateX(-100%); transition: transform 0.25s ease;
    box-shadow: 2px 0 18px rgba(0,0,0,0.2); overflow-y: auto;
    display: flex; flex-direction: column;
}
.mobile-nav-drawer.open { transform: translateX(0); }
.mobile-nav-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1199;
    opacity: 0; visibility: hidden; transition: opacity 0.25s;
}
.mobile-nav-backdrop.show { opacity: 1; visibility: visible; }
.mnav-links { display: flex; flex-direction: column; padding: 6px 0; flex: 1; }
.mnav-link {
    padding: 15px 22px; color: var(--navy, #1A1D23); text-decoration: none;
    font-weight: 600; font-size: 0.95rem; border-bottom: 1px solid var(--border-soft, #F0F2F5);
    border-left: 3px solid transparent;
}
.mnav-link:hover { background: var(--surface-50, #F9FAFB); }
.mnav-link.active { color: var(--teal, #C8102E); border-left-color: var(--teal, #C8102E); background: var(--dmb-red-tint, #FEF2F4); }
.mnav-foot-row { margin-top: auto; display: flex; align-items: stretch; border-top: 2px solid var(--border, #E4E7EB); }
.mnav-foot-link { flex: 1; padding: 15px 22px; color: var(--teal, #C8102E); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.mnav-foot-link:hover { background: var(--surface-50, #F9FAFB); }
.mnav-logout { padding: 15px 22px; background: none; border: none; border-left: 1px solid var(--border, #E4E7EB); color: #dc3545; font-weight: 700; font-size: 0.95rem; cursor: pointer; font-family: inherit; }
.mnav-logout:hover { background: rgba(220,53,69,0.06); }
@media (max-width: 768px) {
    .nav-hamburger {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
        width: 42px; height: 40px; background: var(--navy, #1A1D23); border: none; border-radius: 8px;
        cursor: pointer; padding: 0 10px; flex-shrink: 0;
    }
    .nav-hamburger span { display: block; height: 2px; background: #fff; border-radius: 2px; }
    .mnav-search-row { display: flex; align-items: center; gap: 8px; width: 100%; }
    .mnav-search-row > .mega-search { flex: 1 1 0%; width: auto; min-width: 0; }
    /* 햄버거 드로어가 있는 쇼핑 페이지에서만 헤더 person/로그아웃 숨김 (운영패널은 로그아웃 유지) */
    body.mnav-on .header-actions .user-menu,
    body.mnav-on .header-actions .header-logout { display: none !important; }
    /* 페이지(카테고리) 제목 가운데 정렬 */
    .pp-page-title { text-align: center; }
}


/* ===== 모바일 운영패널: 대시보드 탭만 (상세 관리는 PC) 2026-06-09 ===== */
@media (max-width: 768px) {
  .admin-tabs .admin-tab:not(:first-child) { display: none; }
  #tab-dashboard::before {
    content: "모바일은 현황 보기 전용입니다 · 상세 관리/주문 처리는 PC에서 이용하세요";
    display: block;
    background: var(--dmb-red-tint, #FEF2F4);
    color: var(--ink-700, #4B5563);
    border: 1px solid var(--dmb-red, #C8102E);
    padding: 10px 14px; border-radius: 8px; margin-bottom: 14px;
    font-size: 0.82rem; line-height: 1.5; font-weight: 600;
  }
}


/* ===== 재고조회 / 운영패널 헤더 전환 버튼 (2026-06-09 v3: 전 화면 표시) ===== */
.header-admin-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto; padding: 7px 14px;
  background: var(--teal, #C8102E); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.3px;
  border-radius: 8px; white-space: nowrap;
}
.header-admin-btn:hover { background: var(--teal-dark, #A50C24); color: #fff; }
/* 운영 패널은 헤더 버튼으로 대체 → nav-bar 항목 제거 */
#navAdmin { display: none !important; }
@media (max-width: 768px) {
  body.admin-page .header-actions .user-menu,
  body.admin-page .header-actions .header-logout { display: none !important; }
}

/* mobile: center category title (BEARINGS etc.) */
@media (max-width: 768px) { .pp-pagebar-inner { justify-content: center !important; } .pp-pagebar-inner > div { width: 100% !important; text-align: center !important; } .pp-page-title { text-align: center !important; justify-content: center !important; } }

/* desktop: bigger & centered search box (JTC-style) */
@media (min-width: 769px) { .header-inner > .logo { flex: 1 1 0; min-width: 0; } .header-inner > .header-actions { flex: 1 1 0; min-width: 0; justify-content: flex-end; margin-left: 0 !important; } .header-inner .mega-search { flex: 0 1 640px; width: auto; margin: 0; } }

/* mobile: header-actions (cart) to top row right, search row below */
@media (max-width: 768px) { .header-inner .header-actions { order: 2; margin-left: auto; } .header-inner .mnav-search-row { order: 3; } }

/* hide header account name (.user-menu) on all widths */
.header-actions .user-menu { display: none !important; }

/* admin: hide tab-bar shop link (replaced by header button) */
.admin-tabs .container > a { display: none !important; }

/* staff: hide mobile bottom nav (redundant - header toggle + hamburger cover nav) */
body.role-staff .mobile-bottom-nav { display: none !important; }
