/* ============================================================
 * LUXXBID Shared Design Tokens — Nature Luxury (Phase A3)
 * 12개 메뉴 페이지가 모두 import 하는 공통 디자인 토큰.
 * 1.HTM 의 Panax Luxury 스타일 가이드를 충실히 따른다.
 * ============================================================ */

:root {
    --panax-green: #1F493A;
    --panax-green-light: #2C6350;
    --premium-gold: #D4AF37;
    --premium-gold-bright: #FCEEA7;
    --gold-gradient: linear-gradient(135deg, #B38728 0%, #FBF5B7 25%, #DAA520 50%, #FCEEA7 75%, #AA771C 100%);
    --gold-soft-gradient: linear-gradient(135deg, #D4AF37 0%, #FCEEA7 50%, #B88728 100%);
    --bg-light: #FAF9F6;
    --bg-white: #FFFFFF;
    --text-dark: #1C2D27;
    --text-muted: #5F6E68;
    --border-light: rgba(31, 73, 58, 0.08);
    --gold-shadow: 0 10px 25px rgba(212, 175, 55, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* ★가로스크롤/화면이탈 전역 원천차단 — 이 파일을 쓰는 12개 메뉴 페이지(market/popular/high-end/
   value/certified/price-db/cost-calc/authentication/buy·sell 등) 전부에 이 안전망이 빠져 있어서
   내부 어딘가(넓은 표 등)가 살짝 넘치면 레이아웃 뷰포트 자체가 확대되고 position:fixed 헤더(.lxh,
   left:0;right:0)까지 그 넓어진 기준으로 다시 계산돼 13px씩 화면 우측이 잘려나가던 버그(실측
   360px 뷰포트에서 window.innerWidth 373 관측). /product/<pid> 는 자체 스타일에 이미 있었는데
   이 공유 파일엔 없었음 — 이식. */
html, body { overflow-x: hidden; max-width: 100vw; }
body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'DM Sans', 'Noto Sans KR', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ---------- LAYOUT ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section {
    padding: 100px 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}
.section-bg-alt { background-color: var(--bg-light); }
.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-family: 'Merriweather', 'Noto Sans KR', serif;
    color: var(--panax-green);
    font-weight: 700;
}
.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 700;
}
.section-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--premium-gold);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}
.section-title { font-size: 40px; line-height: 1.3; margin-bottom: 24px; color: var(--panax-green); }
.section-desc { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; max-width: 700px; }

/* ---------- HEADER ---------- */
/* 공통 헤더 = auction.html 과 동일한 블랙 글래스 + Cinzel 골드 셰머 워드마크 (전 LUXXBID 페이지 통일) */
@keyframes shimmer { 0% { background-position: 200% center; } 100% { background-position: -200% center; } }
@keyframes logoBeat { 0%,100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(212,175,55,.40)); } 50% { transform: scale(1.05); filter: drop-shadow(0 0 13px rgba(212,175,55,.72)); } }
.luxx-logo img { animation: logoBeat 3s ease-in-out infinite; will-change: transform, filter; }
.luxx-header {
    background: rgba(8, 7, 3, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.luxx-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.luxx-logo i {
    font-size: 26px;
    color: var(--premium-gold);
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}
.luxx-logo .brand {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 30px;
    letter-spacing: 0.32em;
    line-height: 1;
    background: linear-gradient(110deg,#7A5C0A 0%,#C9A22A 18%,#F5D57B 38%,#FFE999 50%,#F5D57B 62%,#C9A22A 82%,#7A5C0A 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shimmer 4s linear infinite;
    display: block;
}
.luxx-logo .brand-badge {
    font-family: ui-monospace, monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #D4AF37;
    -webkit-text-fill-color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    padding: 3px 6px;
    margin-left: 8px;
    vertical-align: middle;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    animation: none;
}
.luxx-logo .brand-sub {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    text-transform: uppercase;
}
.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
}
.nav-menu a:hover { color: #fff; background: rgba(212, 175, 55, 0.1); }
.nav-menu .has-sub > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    margin-left: 4px;
    opacity: 0.6;
}
.nav-sub {
    position: absolute;
    top: calc(100% + 10px);
    left: -16px;
    min-width: 220px;
    background: rgba(17, 16, 12, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-top: 2px solid var(--premium-gold);
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.22s ease;
}
.nav-menu > li.has-sub:hover .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-sub li a {
    display: block;
    padding: 10px 22px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    border-radius: 0;
}
.nav-sub li a:hover {
    background-color: rgba(212, 175, 55, 0.12);
    color: var(--premium-gold);
}
.nav-cta {
    background: var(--gold-soft-gradient);
    color: var(--panax-green) !important;
    padding: 11px 22px;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    border: 1px solid #D4AF37;
    transition: all 0.3s ease !important;
}
.nav-cta:hover {
    background: var(--panax-green);
    color: var(--bg-white) !important;
    border-color: var(--panax-green);
    box-shadow: 0 4px 12px rgba(31, 73, 58, 0.2);
    transform: translateY(-1px);
}
.nav-burger {
    display: none;
    font-size: 22px;
    color: var(--premium-gold);
    background: none;
    border: none;
    cursor: pointer;
}

/* ---------- COMMON COMPONENTS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 34px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 8px;
}
.btn-primary {
    background: var(--gold-gradient);
    color: var(--panax-green);
    border: 1px solid #C49A3C;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}
.btn-primary:hover {
    background: var(--panax-green);
    color: var(--bg-white);
    border-color: var(--panax-green);
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    color: var(--panax-green);
    border: 2px solid var(--premium-gold);
}
.btn-secondary:hover {
    background-color: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}
.luxx-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 36px 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.luxx-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--gold-shadow);
    border-color: rgba(212, 175, 55, 0.6);
}
.badge {
    display: inline-block;
    padding: 5px 11px;
    background: var(--gold-soft-gradient);
    color: var(--panax-green);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 2px 5px rgba(212, 175, 55, 0.15);
}
.badge-muted {
    background: var(--bg-light);
    color: var(--text-muted);
    border-color: var(--border-light);
    box-shadow: none;
}
.luxx-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
}
.luxx-table th {
    background-color: var(--bg-light);
    color: var(--panax-green);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 22px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}
.luxx-table td {
    padding: 22px;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
    color: var(--text-dark);
    vertical-align: top;
}
.luxx-table tr:last-child td { border-bottom: none; }

/* ---------- FOOTER ---------- */
.luxx-footer {
    background-color: var(--panax-green);
    color: var(--bg-white);
    padding: 80px 0 36px;
    border-top: 4px solid var(--premium-gold);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}
.footer-brand h2 {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 26px;
    margin-bottom: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    filter: drop-shadow(0 2px 4px rgba(179, 135, 40, 0.3));
}
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 28px; max-width: 320px; }
.footer-col h4 {
    color: var(--bg-white);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--premium-gold);
    display: inline-block;
    padding-bottom: 6px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; color: rgba(255,255,255,0.82); font-size: 14px; }
.footer-links a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--premium-gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    gap: 24px;
    flex-wrap: wrap;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .nav-menu { gap: 16px; }
    .nav-menu a { font-size: 13px; }
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .section-title { font-size: 32px; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .nav-burger { display: block; }
    .nav-container { height: 70px; }
    .luxx-logo .brand { font-size: 18px; }
    .luxx-logo .brand-sub { font-size: 8px; letter-spacing: 2px; }
    section { padding: 70px 0; }
    .container { padding: 0 18px; }
    .section-title { font-size: 26px; }
    .section-desc { font-size: 15px; }
    /* 상품카드 그리드 → 2열 유지(요구사항: 상품은 스마트폰에서 2열) */
    .grid-3, .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    /* 모바일 푸터: 1열 붕괴 → 링크 3열(브랜드는 상단 전체폭). 요구사항 #10 */
    .footer-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px 14px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-col h4 { font-size: 13px; margin-bottom: 14px; letter-spacing: .5px; }
    .footer-links li, .footer-links a { font-size: 12.5px; }
    .footer-links li { margin-bottom: 9px; }
    .luxx-table th, .luxx-table td { padding: 14px; font-size: 13px; }
    .btn { padding: 14px 26px; font-size: 14px; }
    .nav-menu.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(8, 7, 3, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 16px 24px 24px;
        border-top: 1px solid rgba(212, 175, 55, 0.18);
        border-bottom: 2px solid var(--premium-gold);
        box-shadow: 0 14px 36px rgba(0,0,0,0.5);
        align-items: flex-start;
        gap: 6px;
    }
    .nav-menu.is-open > li { width: 100%; }
    .nav-menu.is-open .nav-sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 6px 0 6px 12px;
        min-width: 0;
    }
}

/* ============================================================
   고급 애니메이션·호버 (항목3) + 스마트폰 반응형 강화 (항목2)
   ============================================================ */
.luxx-card, .glass-gold, .feature-card, .lot-card {
  transition: transform .38s cubic-bezier(.2,.7,.2,1), box-shadow .38s ease, border-color .3s ease;
}
.luxx-table tbody tr { transition: background .25s ease; }
.luxx-table tbody tr:hover { background: rgba(212,175,55,.06); }
.btn, .btn-primary, .btn-secondary { transition: transform .2s ease, box-shadow .25s ease, filter .2s ease; }
.btn:hover, .btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); }
.gold-text, .nav-cta { will-change: background-position; }
@keyframes lxFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
@keyframes lxFadeUp { from{opacity:0;transform:translateY(26px)} to{opacity:1;transform:none} }
@keyframes lxPulseGold { 0%,100%{box-shadow:0 0 0 0 rgba(212,175,55,.25)} 50%{box-shadow:0 0 24px 2px rgba(212,175,55,.18)} }
.luxx-card:hover { animation: lxPulseGold 2.4s ease-in-out infinite; }

/* 스마트폰 최적화: 모든 박스/그리드/텍스트 */
@media (max-width: 600px){
  .container { padding: 0 14px; }
  section { padding: 50px 0; }
  .section-title { font-size: 26px !important; line-height: 1.25; }
  .section-tag { font-size: 11px; letter-spacing: 2px; }
  .section-desc { font-size: 14.5px; }
  /* grid-2 = 좌우 레이아웃 분할(이미지+텍스트 등) → 세로 스택. grid-3/4 = 상품카드 그리드 → 스마트폰 2열(요구사항) */
  .grid-2 { grid-template-columns: 1fr !important; gap: 18px !important; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important; }
  /* 그린 페이지 계산기 입력 그리드만 단일열(폼이라 2열 부적합) */
  #calc-grid { grid-template-columns: 1fr !important; gap: 22px !important; }
  #calc-inputs { border-right: none !important; padding-right: 0 !important; }
  /* 실시간경매(/live)·검수큐 상품카드 → 2열(요구사항: 상품은 2열) */
  #published-grid, #live-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important; }
  /* 콜렉션 페이지(인기/하이엔드/가성비/인증) 카드그리드: auto-fill(minmax 280px) 는 375px 폭에서 1열로 붕괴 → 2열 강제 */
  .luxx-prod-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important; }
  /* 카드가 280px 폭 기준 디자인이라 175px 로 좁아지면 제목이 6줄까지 길어짐 → 폰트/줄수 축소로 카드 높이 정상화 */
  .luxx-prod-grid .luxx-card { padding: 10px !important; }
  .luxx-prod-grid .luxx-card h3, .luxx-prod-grid .luxx-card .ttl {
    font-size: 12.5px !important; line-height: 1.35 !important;
    display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .luxx-prod-grid .luxx-card .badge, .luxx-prod-grid .luxx-card .badge-muted { font-size: 10px !important; padding: 2px 7px !important; }
  /* 마켓 캐논(대표)상품 그리드: auto-fill(minmax 180px) 도 동일 문제 → 2열 강제 */
  #cn-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px !important; }
  .luxx-card { padding: 18px !important; }
  /* 가격표처럼 열이 많은 표는 모바일에서 가로스크롤로 전환(카드화 대신 — 비교표 성격상 표 유지가
     맞음). 단, 스크롤 가능 사실을 모르면 정작 중요한 가격 열이 화면 밖에 숨어 안 보임 → 힌트 노출 */
  .luxx-table { font-size: 12px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
    position: relative; border-radius: 12px; }
  .luxx-table::before {
    content: "← 좌우로 스크롤하면 가격·상세 정보를 더 볼 수 있어요 →";
    display: block; position: sticky; left: 0; width: max-content; max-width: 100%;
    font-size: 10.5px; font-weight: 700; color: var(--premium-gold); background: rgba(212,175,55,.08);
    padding: 6px 10px; margin-bottom: 6px; border-radius: 8px; white-space: nowrap;
  }
  .luxx-table th, .luxx-table td { padding: 8px 6px; white-space: nowrap; }
  h1 { font-size: 30px !important; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 380px){
  .section-title { font-size: 23px !important; }
}

/* ===== /market 캐논 카드(.cn-*) — 인라인 스타일 제거용 공통 클래스(527카드 HTML 경량화) ===== */
.cn-card{display:block;position:relative;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 2px 12px rgba(31,73,58,.06);text-decoration:none;color:inherit;transition:transform .18s;}
.cn-card:hover{transform:translateY(-5px);}
.cn-thumb{aspect-ratio:1;overflow:hidden;background:#f0efe9;position:relative;}
.cn-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.cn-cam{position:absolute;top:8px;right:8px;background:rgba(0,0,0,.6);color:#fff;font-size:10px;font-weight:700;padding:3px 7px;border-radius:999px;}
.cn-wish{position:absolute;top:8px;left:8px;z-index:2;width:30px;height:30px;border-radius:50%;border:none;background:rgba(0,0,0,.5);color:#fff;cursor:pointer;font-size:12px;}
/* 썸네일과 구분되도록 텍스트 영역은 살짝 오프화이트 + 골드 상단 구분선 */
.cn-body{padding:12px 13px;background:#FAF9F6;border-top:1px solid rgba(212,175,55,.30);}
.cn-top{display:flex;justify-content:space-between;align-items:center;}
.cn-brand{font-size:11px;color:var(--premium-gold);font-weight:800;letter-spacing:.5px;}
.cn-model{font-size:14px;font-weight:700;color:var(--text-dark);margin:3px 0 6px;line-height:1.3;}
/* 가격: 골드 틴트 배경 + 테두리로 또렷이 구분 */
.cn-price{font-size:13px;background:rgba(212,175,55,.12);border:1px solid rgba(212,175,55,.34);border-radius:7px;padding:5px 9px;}
.cn-muted{color:var(--text-muted);}
.cn-ag{font-size:11px;color:var(--text-muted);margin-top:3px;}
.cn-tier{font-size:9px;}
