/*
 * EXKOREA PC 테마 (2026-12 디자인 개편).
 * 기존 bootstrap 3 · ib CSS 뒤에 불러와 그 위에 새 모양을 입힌다. 머리말 · 바닥 · 첫 화면 · 목록 카드는 x- 클래스로 새로 짰다.
 *
 *  1. 기준값 (색 · 글꼴 · 모서리 · 그림자)
 *  2. 바탕
 *  3. 머리말 · 메가메뉴
 *  4. 본문 틀 · 고객센터 왼쪽 메뉴
 *  5. 첫 화면 아래 고객센터 묶음 · 바닥 · 떠 있는 메뉴
 *  6. 공통 부품 (단추 · 뱃지 · 칸 제목 · 상품 카드)
 *  7. 기존 화면 덮어쓰기 (단추 · 입력칸 · 표 · 탭 · 쪽 번호 · 모달 · 제목)
 */

/* ========== 1. 기준값 ========== */
:root {
    --x-brand: #ff1e5a;
    --x-brand-600: #ec0f4c;
    --x-brand-700: #c80a3f;
    --x-brand-50: #fff1f5;
    --x-brand-100: #ffe0e9;
    --x-brand-grad: linear-gradient(135deg, #ff4b7d 0%, #ff1e5a 45%, #e3003f 100%);

    --x-ink: #0f172a;
    --x-ink-2: #334155;
    --x-muted: #64748b;
    --x-faint: #94a3b8;
    --x-line: #e5e7eb;
    --x-line-2: #f1f2f5;
    --x-bg: #f6f7fb;
    --x-white: #fff;
    --x-blue: #2563eb;
    --x-green: #059669;

    --x-radius: 14px;
    --x-radius-sm: 10px;
    --x-radius-xs: 7px;
    --x-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --x-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .07);
    --x-shadow-lg: 0 12px 40px rgba(15, 23, 42, .14);

    --x-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
    --x-wrap: 1240px;
}

/* ========== 2. 바탕 ========== */
html, body.x { background: var(--x-bg); }
body.x {
    font-family: var(--x-font);
    font-size: 14px;
    line-height: 1.55;
    color: var(--x-ink-2);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
}
/* 기존 CSS 가 칸마다 굴림 · 돋움을 정해 두어 한꺼번에 바꾼다 (아이콘 글꼴은 남긴다) */
body.x *:not(.glyphicon):not([class*="glyphicon-"]) { font-family: inherit; }
body.x h1, body.x h2, body.x h3, body.x h4, body.x h5 { color: var(--x-ink); letter-spacing: -0.025em; }
body.x a { color: inherit; transition: color .15s; }
body.x a:hover { color: var(--x-brand); text-decoration: none; }
body.x ::selection { background: var(--x-brand-100); color: var(--x-ink); }
body.x :focus-visible { outline: 2px solid var(--x-brand); outline-offset: 2px; }
body.x svg { flex: none; }

.x-wrap { width: var(--x-wrap); max-width: calc(100% - 40px); margin: 0 auto; }
.x-skip { position: absolute; left: -9999px; top: 0; z-index: 3000; padding: 10px 16px; background: var(--x-ink); color: #fff; }
.x-skip:focus { left: 12px; top: 12px; color: #fff; }
.x-to-mobile { display: block; padding: 16px; background: var(--x-brand); color: #fff !important; text-align: center; font-size: 28px; font-weight: 700; }

/* ========== 3. 머리말 · 메가메뉴 ========== */
.x-header { position: sticky; top: 0; z-index: 1000; background: #fff; transition: box-shadow .2s; }
.x-header.is-stuck { box-shadow: 0 6px 24px rgba(15, 23, 42, .08); }
.x-header svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 맨 위 띠 */
.x-top { background: var(--x-ink); color: #cbd5e1; font-size: 12.5px; }
.x-top__in { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.x-ticker { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.x-ticker__tag { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--x-brand); color: #fff; font-size: 11px; font-weight: 700; }
.x-ticker__list { height: 36px; overflow: hidden; margin: 0; padding: 0; list-style: none; }
.x-ticker__list li { height: 36px; line-height: 36px; padding-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 620px; }
.x-ticker__list a { color: #e2e8f0; }
.x-ticker__list a:hover { color: #fff !important; }
.x-util { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.x-util li { display: flex; align-items: center; }
.x-util li + li::before { content: ""; width: 1px; height: 10px; margin: 0 11px; background: #475569; }
.x-util a, .x-util button { color: #cbd5e1; }
.x-util a:hover, .x-util button:hover { color: #fff !important; }
.x-util__name b { color: #fff; font-weight: 700; }
.x-util__join { color: #ff7da0 !important; font-weight: 700; }
.x-util__logout { display: inline; margin: 0; }
.x-util__logout button { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }

/* 로고 · 검색 · 바로가기 */
.x-head__in { display: flex; align-items: center; gap: 36px; height: 92px; }
.x-logo { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--x-ink) !important; }
.x-logo__mark { width: 46px !important; height: 46px !important; stroke: none !important; filter: drop-shadow(0 4px 10px rgba(255, 30, 90, .35)); }
.x-logo__text { display: flex; flex-direction: column; font-size: 27px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; font-style: italic; }
.x-logo__text b { display: contents; color: var(--x-brand); font-weight: 900; }
.x-logo__text small { margin-top: 5px; font-size: 11.5px; font-style: normal; font-weight: 600; letter-spacing: 0; color: var(--x-muted); }
.x-logo--inverse { color: #fff !important; }
.x-logo--inverse .x-logo__mark { filter: none; }

.x-search { position: relative; display: flex; align-items: center; flex: 1; max-width: 620px; height: 52px; margin: 0;
    border: 2px solid var(--x-brand); border-radius: 999px; background: #fff; box-shadow: 0 6px 20px rgba(255, 30, 90, .10); }
.x-search__type { position: relative; flex: none; }
.x-search__type-btn { display: flex; align-items: center; gap: 4px; height: 48px; padding: 0 14px 0 22px; border: 0; background: none;
    color: var(--x-ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.x-search__type-btn svg { width: 16px !important; height: 16px !important; color: var(--x-muted); }
.x-search__type::after { content: ""; position: absolute; right: 0; top: 15px; width: 1px; height: 18px; background: var(--x-line); }
.x-search__type .dropdown-menu { top: 52px; left: 8px; min-width: 150px; }
.x-search__input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; background: none; font-size: 15px; color: var(--x-ink); outline: none; }
.x-search__input::placeholder { color: var(--x-faint); }
.x-search__go { display: grid; place-items: center; flex: none; width: 42px; height: 42px; margin-right: 4px; border: 0; border-radius: 50%;
    background: var(--x-brand-grad); color: #fff; cursor: pointer; transition: transform .15s; }
.x-search__go:hover { transform: scale(1.06); }
.x-search__go svg { width: 20px !important; height: 20px !important; stroke-width: 2.4 !important; }

.x-quick { display: flex; gap: 6px; margin-left: auto; }
.x-quick__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; padding: 6px 4px;
    border-radius: var(--x-radius-sm); color: var(--x-ink-2) !important; font-size: 12px; font-weight: 600; }
.x-quick__item svg { width: 26px !important; height: 26px !important; }
.x-quick__item:hover { background: var(--x-brand-50); color: var(--x-brand) !important; }
.x-badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
    background: var(--x-brand); color: #fff; font-size: 11px; font-style: normal; font-weight: 800; line-height: 1; }
.x-quick__cart .x-badge { position: absolute; top: 0; right: 10px; box-shadow: 0 0 0 2px #fff; }

/* 메뉴 띠 */
.x-gnb { border-top: 1px solid var(--x-line-2); border-bottom: 1px solid var(--x-line); background: #fff; }
.x-gnb__in { display: flex; align-items: center; height: 54px; gap: 8px; }
.x-cat { position: static; flex: none; }
.x-cat__btn { display: flex; align-items: center; gap: 9px; height: 54px; padding: 0 22px; border: 0; background: var(--x-brand-grad);
    color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }
.x-cat__btn svg { width: 20px !important; height: 20px !important; stroke-width: 2.2 !important; }
.x-mall { display: flex; gap: 4px; margin: 0 6px 0 14px; padding: 0; list-style: none; }
.x-mall a { display: block; padding: 7px 14px; border-radius: 999px; background: var(--x-line-2); color: var(--x-ink-2) !important; font-size: 13.5px; font-weight: 700; }
.x-mall a:hover { background: var(--x-brand-50); color: var(--x-brand) !important; }
.x-mall a.is-on { background: var(--x-ink); color: #fff !important; }
.x-mall a.dealer-tab.is-on { background: var(--x-blue); }
.x-menu { display: flex; margin: 0; padding: 0; list-style: none; }
.x-menu a { display: block; padding: 0 13px; line-height: 54px; color: var(--x-ink) !important; font-size: 15px; font-weight: 700; position: relative; }
.x-menu a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--x-brand); transform: scaleX(0); transition: transform .2s; }
.x-menu a:hover { color: var(--x-brand) !important; }
.x-menu a:hover::after { transform: scaleX(1); }
.x-menu__hot { padding-right: 22px !important; }
.x-menu__hot::before { content: "HOT"; position: absolute; top: 12px; right: 0; padding: 1px 4px; border-radius: 4px; background: var(--x-brand); color: #fff; font-size: 9px; line-height: 1.3; font-weight: 800; }
.x-gnb__promo { display: flex; align-items: center; gap: 6px; margin-left: auto; padding: 7px 14px; border-radius: 999px;
    background: var(--x-brand-50); color: var(--x-brand-700) !important; font-size: 13px; font-weight: 800; white-space: nowrap; }
.x-gnb__promo svg { width: 16px !important; height: 16px !important; fill: currentColor !important; stroke: none !important; }

/* 메가메뉴: 누르면 열리고(legacy-compat 의 .open), 마우스를 올려도 열린다 */
.x-header .x-mega { position: absolute; left: 0; right: 0; top: 100%; display: none; float: none; width: auto; min-width: 0; margin: 0; padding: 28px max(20px, calc((100% - var(--x-wrap)) / 2)) 32px;
    border: 0; border-top: 1px solid var(--x-line); border-radius: 0 0 var(--x-radius) var(--x-radius); background: #fff; box-shadow: var(--x-shadow-lg); }
.x-cat:hover > .x-mega, .x-cat.open > .x-mega { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 28px; }
.x-is-parts .x-cat:hover > .x-mega, .x-is-parts .x-cat.open > .x-mega { grid-template-columns: repeat(4, 1fr); }
.x-mega__title { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 2px solid var(--x-ink); color: var(--x-ink); font-size: 14px; font-weight: 800; }
.x-mega ul { margin: 0; padding: 0; list-style: none; }
.x-mega a { display: flex; align-items: center; gap: 6px; padding: 7px 0; color: var(--x-ink-2) !important; font-size: 14px; font-weight: 500; }
.x-mega a:hover { color: var(--x-brand) !important; font-weight: 700; }
.x-mega small { color: var(--x-faint); font-size: 12px; }
.x-mega em { padding: 1px 6px; border-radius: 999px; background: var(--x-brand-50); color: var(--x-brand); font-size: 10.5px; font-style: normal; font-weight: 800; }

/* 머리말 안 드롭다운 (검색 방식) */
.x-header .dropdown-menu { border: 1px solid var(--x-line); border-radius: var(--x-radius-sm); box-shadow: var(--x-shadow-lg); padding: 6px; }
.x-header .dropdown-menu > li > a { padding: 8px 12px; border-radius: var(--x-radius-xs); font-size: 13.5px; }
.x-header .dropdown-menu > li > a:hover { background: var(--x-brand-50); color: var(--x-brand); }

/* ========== 4. 본문 틀 ========== */
.x-main { min-height: 480px; padding: 28px 0 64px; }
body.x .container.x-body { width: var(--x-wrap); max-width: calc(100% - 40px); padding: 0; }
/* 본문 대부분이 흰 바탕을 가정해 그려져 있어 카드 하나로 감싼다 (첫 화면 · 부품몰은 자기 칸이 카드) */
body.x:not(.x-is-home):not(.x-is-parts) .container.x-body > .row,
body.x .x-my__body { padding: 32px 36px; margin: 0; border-radius: var(--x-radius); background: #fff; box-shadow: var(--x-shadow); }
body.x:not(.x-is-home):not(.x-is-parts) .container.x-body > .row + .row { margin-top: 20px; }

.x-my { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; align-items: start; }
.x-my__body > :first-child { margin-top: 0; }

/* 고객만족센터 왼쪽 메뉴 */
.x-side { position: sticky; top: 200px; overflow: hidden; border-radius: var(--x-radius); background: #fff; box-shadow: var(--x-shadow); }
.x-side__head { margin: 0; padding: 22px 22px 18px; background: var(--x-brand-grad); font-size: 19px; font-weight: 800; }
.x-side__head a { color: #fff !important; }
.x-side__group { padding: 14px 22px 10px; border-bottom: 1px solid var(--x-line-2); }
.x-side__title { margin: 0 0 4px; color: var(--x-ink); font-size: 13.5px; font-weight: 800; }
.x-side ul { margin: 0; padding: 0; list-style: none; }
.x-side ul a { display: block; padding: 5px 0 5px 10px; border-left: 2px solid transparent; color: var(--x-muted) !important; font-size: 13.5px; }
.x-side ul a:hover, .x-side ul a.is-on { border-left-color: var(--x-brand); color: var(--x-brand) !important; font-weight: 700; }
.x-side__login { padding: 18px 22px; border-bottom: 1px solid var(--x-line-2); background: var(--x-brand-50); }
.x-side__login p { margin: 0 0 12px; color: var(--x-ink-2); font-size: 13px; line-height: 1.6; }
.x-side__login .x-btn + .x-btn { margin-top: 6px; }
.x-side__dealer { display: flex; justify-content: space-between; padding: 14px 22px; border-bottom: 1px solid var(--x-line-2); color: var(--x-ink) !important; font-weight: 700; }
.x-side__cs { padding: 18px 22px 22px; }
.x-side__cs p { margin: 0; color: var(--x-muted); font-size: 12px; }
.x-side__cs b { display: block; margin: 2px 0; color: var(--x-ink); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.x-side__cs span { color: var(--x-muted); font-size: 12px; }

/* ========== 5. 고객센터 묶음 · 바닥 · 떠 있는 메뉴 ========== */
.x-service { padding: 0 0 56px; }
.x-service__in { display: grid; grid-template-columns: 1.05fr 1.25fr 1fr 1fr; gap: 20px; }
.x-svc { padding: 24px 24px 22px; border-radius: var(--x-radius); background: #fff; box-shadow: var(--x-shadow); }
.x-svc__title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; font-size: 16px; font-weight: 800; }
.x-more { color: var(--x-muted) !important; font-size: 12.5px; font-weight: 600; }
.x-more::after { content: " ›"; }
.x-more:hover { color: var(--x-brand) !important; }
.x-svc--cs { background: var(--x-ink); color: #cbd5e1; }
.x-svc--cs .x-svc__title { color: #fff; }
.x-svc__tel { margin: 0 0 6px; color: #fff; font-size: 30px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.x-svc__time { margin: 0; font-size: 13px; }
.x-svc__time span { display: block; color: #94a3b8; font-size: 12px; }
.x-svc__off { margin: 6px 0 16px; color: #ff7da0; font-size: 12.5px; font-weight: 700; }
.x-helper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.x-helper a { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px; border-radius: var(--x-radius-sm);
    background: var(--x-bg); color: var(--x-ink-2) !important; font-size: 12.5px; font-weight: 600; text-align: center; }
.x-helper a:hover { background: var(--x-brand-50); color: var(--x-brand) !important; }
.x-helper i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: var(--x-shadow-sm); }
.x-helper svg { width: 19px; height: 19px; fill: none; stroke: var(--x-brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.x-postlist { margin: 0; padding: 0; list-style: none; }
.x-postlist li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--x-line); font-size: 13.5px; }
.x-postlist li:last-child { border-bottom: 0; }
.x-postlist a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--x-ink-2) !important; }
.x-postlist a:hover { color: var(--x-brand) !important; }
.x-postlist time { flex: none; color: var(--x-faint); font-size: 12px; }
.x-empty { color: var(--x-faint); }

.x-footer { padding: 0 0 40px; background: #0b1120; color: #94a3b8; font-size: 13px; }
.x-footer__links { display: flex; flex-wrap: wrap; margin: 0 0 36px; padding: 18px 0; border-bottom: 1px solid #1e293b; list-style: none; }
.x-footer__links li + li::before { content: ""; display: inline-block; width: 1px; height: 10px; margin: 0 14px; background: #334155; }
.x-footer__links a { color: #cbd5e1 !important; }
.x-footer__links a:hover { color: #fff !important; }
.x-footer__links strong { color: #fff; }
.x-footer__grid { display: grid; grid-template-columns: 240px 1fr 260px; gap: 40px; }
.x-footer .x-logo__text { font-size: 24px; }
.x-sns { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.x-sns a { display: block; padding: 5px 11px; border: 1px solid #334155; border-radius: 999px; color: #cbd5e1 !important; font-size: 12px; }
.x-sns a:hover { border-color: var(--x-brand); color: #fff !important; background: var(--x-brand); }
.x-footer__info { margin: 0; font-style: normal; line-height: 2; }
.x-footer__info span { margin-right: 14px; }
.x-footer__info a { color: #cbd5e1 !important; }
.x-footer__chip { margin-left: 6px; padding: 2px 8px; border: 1px solid #334155; border-radius: 6px; font-size: 11.5px; }
.x-footer__cs p { margin: 0; }
.x-footer__label { color: #cbd5e1; font-weight: 700; }
.x-footer__tel { margin: 2px 0 4px !important; color: #fff; font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.x-footer__safe { display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: 8px; background: #1e293b; color: #e2e8f0 !important; font-size: 12px; }
.x-footer__copy { margin: 32px 0 0; color: #475569; font-size: 12px; }

.x-float { position: fixed; right: 24px; bottom: 28px; z-index: 900; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.x-float__btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 58px; height: 58px;
    border: 0; border-radius: 18px; background: #fff; box-shadow: var(--x-shadow-lg); color: var(--x-ink) !important; font-size: 10.5px; font-weight: 700; cursor: pointer; }
.x-float__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.x-float__btn:hover { color: var(--x-brand) !important; }
.x-float__btn .x-badge { position: absolute; top: -5px; right: -5px; }
.x-float__top { opacity: 0; pointer-events: none; transition: opacity .2s; }
.x-scrolled .x-float__top { opacity: 1; pointer-events: auto; }
.x-float__recent { width: 76px; padding: 10px 8px; border-radius: 18px; background: #fff; box-shadow: var(--x-shadow-lg); text-align: center; }
.x-float__recent p { margin: 0 0 6px; color: var(--x-ink); font-size: 10.5px; font-weight: 800; line-height: 1.3; }
.x-float__recent ul { margin: 0; padding: 0; list-style: none; }
.x-float__recent li + li { margin-top: 6px; }
.x-float__recent a { display: block; overflow: hidden; width: 58px; height: 58px; margin: 0 auto; border: 1px solid var(--x-line); border-radius: 10px; font-size: 10px; }
.x-float__recent img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1400px) { .x-float { right: 12px; } }

/* ========== 6. 공통 부품 ========== */
.x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--x-radius-sm);
    font-size: 14.5px; font-weight: 700; line-height: 1; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.x-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.x-btn--lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.x-btn--block { display: flex; width: 100%; }
.x-btn--brand { background: var(--x-brand); color: #fff !important; box-shadow: 0 6px 16px rgba(255, 30, 90, .25); }
.x-btn--brand:hover { background: var(--x-brand-600); color: #fff !important; }
.x-btn--dark { background: var(--x-ink); color: #fff !important; }
.x-btn--dark:hover { background: #1e293b; color: #fff !important; }
.x-btn--line { border-color: var(--x-line); background: #fff; color: var(--x-ink) !important; }
.x-btn--line:hover { border-color: var(--x-brand); color: var(--x-brand) !important; }
.x-btn--soft { background: var(--x-brand-50); color: var(--x-brand-700) !important; }
.x-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.x-sec { margin-top: 44px; }
.x-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.x-sec__title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.x-sec__title em { color: var(--x-brand); font-style: normal; }
.x-sec__desc { margin: 4px 0 0; color: var(--x-muted); font-size: 14px; }
.x-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--x-brand-50); color: var(--x-brand-700); font-size: 12px; font-weight: 800; }
.x-panel { padding: 24px; border-radius: var(--x-radius); background: #fff; box-shadow: var(--x-shadow); }

/* 상품 카드 (첫 화면 랭킹 · 카테고리 목록 · 게임별 순위) */
.x-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.x-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--x-radius); background: #fff; box-shadow: var(--x-shadow);
    transition: transform .2s, box-shadow .2s; }
.x-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, .13); }
.x-card__img { position: relative; display: block; padding: 18px 18px 6px; background: #fff; text-align: center; }
.x-card__img img { width: 100%; max-width: 190px; height: auto; aspect-ratio: 1; object-fit: contain; transition: transform .3s; }
.x-card:hover .x-card__img img { transform: scale(1.04); }
.x-rank { position: absolute; top: 14px; left: 14px; z-index: 1; display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px;
    background: var(--x-ink); color: #fff; font-size: 15px; font-weight: 900; font-style: italic; }
.x-rank.is-top { background: var(--x-brand-grad); box-shadow: 0 6px 14px rgba(255, 30, 90, .35); }
.x-card__level { position: absolute; top: 14px; right: 14px; z-index: 1; }
.x-card__body { display: flex; flex-direction: column; flex: 1; padding: 6px 18px 18px; }
.x-card__name { margin: 0; min-height: 44px; font-size: 15.5px; font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; }
.x-card__name a { color: var(--x-ink) !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x-card__name a:hover { color: var(--x-brand) !important; }
.x-card__price { margin: 10px 0 0; color: var(--x-ink); font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
.x-card__price small { margin-left: 2px; font-size: 14px; font-weight: 700; }
.x-card__meta { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--x-muted); font-size: 12.5px; }
.x-card__meta b { color: var(--x-ink-2); }
/* 가격 4종: 본체 / 24″ / 윈도우 / 윈도우 24″ (마우스를 올리면 legacy-compat.js 가 is-on 을 옮긴다) */
.x-var { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.x-var__btn { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; border: 1px solid var(--x-line); border-radius: var(--x-radius-xs);
    background: #fff; color: var(--x-muted) !important; font-size: 11.5px; font-weight: 600; text-align: left; cursor: pointer; transition: all .15s; }
.x-var__btn b { color: var(--x-ink-2); font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
.x-var__btn.is-on { border-color: var(--x-brand); background: var(--x-brand-50); color: var(--x-brand-700) !important; box-shadow: inset 0 0 0 1px var(--x-brand); }
.x-var__btn.is-on b { color: var(--x-brand); }
.x-spec { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--x-line-2); font-size: 12.5px; }
.x-spec div { display: flex; gap: 8px; padding: 2px 0; }
.x-spec dt { flex: none; width: 58px; color: var(--x-faint); font-weight: 600; }
.x-spec dd { flex: 1; min-width: 0; margin: 0; color: var(--x-ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.x-card__reviews { margin: 14px -18px -18px; padding: 12px 18px 14px; background: var(--x-bg); }
.x-card__reviews > a { display: flex; justify-content: space-between; color: var(--x-ink) !important; font-size: 12.5px; font-weight: 800; }
.x-card__reviews > a:hover { color: var(--x-brand) !important; }
.x-card__reviews ul { margin: 6px 0 0; padding: 0; list-style: none; }
.x-card__reviews li { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; line-height: 1.8; }
.x-card__reviews li::before { content: "“"; margin-right: 3px; color: var(--x-brand); font-weight: 900; }
.x-card__reviews li a { color: var(--x-muted) !important; }
.x-card__reviews li a:hover { color: var(--x-brand) !important; }
.x-card--empty { display: grid; place-items: center; min-height: 240px; color: var(--x-faint); box-shadow: none; border: 2px dashed var(--x-line); background: transparent; }
.x-card--empty:hover { transform: none; box-shadow: none; }

/* ========== 7. 기존 화면 덮어쓰기 ========== */
/* 단추 */
body.x .btn { border-radius: var(--x-radius-xs); font-weight: 700; transition: all .15s; box-shadow: none; text-shadow: none; background-image: none; }
body.x .btn-lg { padding: 12px 24px; font-size: 16px; border-radius: var(--x-radius-sm); }
body.x .btn-primary, body.x .btnred, body.x .btn-danger, body.x .btnorg {
    border-color: var(--x-brand) !important; background: var(--x-brand) !important; color: #fff !important; }
body.x .btn-primary:hover, body.x .btnred:hover, body.x .btn-danger:hover, body.x .btnorg:hover {
    border-color: var(--x-brand-600) !important; background: var(--x-brand-600) !important; }
body.x .btnorg { border-color: var(--x-ink) !important; background: var(--x-ink) !important; }
body.x .btnorg:hover { border-color: #1e293b !important; background: #1e293b !important; }
body.x .btn-info, body.x .btnblk, body.x .btn-success { border-color: var(--x-ink) !important; background: var(--x-ink) !important; color: #fff !important; }
body.x .btn-info:hover, body.x .btnblk:hover, body.x .btn-success:hover { background: #1e293b !important; }
body.x .btn-default, body.x .btngry, body.x .btn-warning { border: 1px solid var(--x-line) !important; background: #fff !important; color: var(--x-ink-2) !important; }
body.x .btn-default:hover, body.x .btngry:hover, body.x .btn-warning:hover { border-color: var(--x-brand) !important; color: var(--x-brand) !important; }
body.x .btn[disabled], body.x .btn:disabled { opacity: .45; }

/* 입력칸 */
body.x .form-control, body.x input[type="text"]:not(.x-search__input), body.x input[type="password"], body.x input[type="email"], body.x input[type="tel"], body.x input[type="number"], body.x select, body.x textarea {
    border: 1px solid #d7dbe2; border-radius: var(--x-radius-xs); box-shadow: none; color: var(--x-ink); transition: border-color .15s, box-shadow .15s; }
body.x .form-control { height: 38px; padding: 6px 12px; font-size: 14px; }
body.x textarea.form-control { height: auto; }
body.x .form-control:focus, body.x input:not(.x-search__input):focus, body.x select:focus, body.x textarea:focus {
    border-color: var(--x-brand); box-shadow: 0 0 0 3px rgba(255, 30, 90, .14); outline: none; }
body.x input[type="checkbox"], body.x input[type="radio"] { accent-color: var(--x-brand); }

/* 표: 선을 옅게, 머리칸은 옅은 회색 */
body.x .x-body table { border-color: var(--x-line); }
body.x .x-body table th { color: var(--x-ink); font-weight: 700; }
body.x .x-body .table > thead > tr > th, body.x .x-body table thead th { background: var(--x-bg); border-bottom: 1px solid var(--x-line); }
body.x .x-body .table > tbody > tr > td, body.x .x-body .table > tbody > tr > th { border-top-color: var(--x-line-2); vertical-align: middle; }
body.x .x-body .table-hover > tbody > tr:hover { background: var(--x-brand-50); }

/* 탭 (상세 화면 nav-tabs) */
body.x .nav-tabs { border-bottom: 2px solid var(--x-ink); }
body.x .nav-tabs > li > a { margin-right: 2px; border: 0; border-radius: var(--x-radius-xs) var(--x-radius-xs) 0 0; color: var(--x-muted); font-weight: 700; }
body.x .nav-tabs > li > a:hover { background: var(--x-brand-50); color: var(--x-brand); }
body.x .nav-tabs > li.active > a, body.x .nav-tabs > li.active > a:hover, body.x .nav-tabs > li.active > a:focus { border: 0; background: var(--x-ink); color: #fff; }

/* 쪽 번호 */
body.x .pagination { display: inline-flex; gap: 4px; }
body.x .pagination > li > a, body.x .pagination > li > span { float: none; display: grid; place-items: center; min-width: 36px; height: 36px; margin: 0; padding: 0 8px;
    border: 1px solid var(--x-line); border-radius: var(--x-radius-xs) !important; background: #fff; color: var(--x-ink-2); font-weight: 600; }
body.x .pagination > li > a:hover { border-color: var(--x-brand); color: var(--x-brand); background: #fff; }
body.x .pagination > .active > a, body.x .pagination > .active > a:hover, body.x .pagination > .active > span {
    border-color: var(--x-brand); background: var(--x-brand); color: #fff; }

/* 모달 */
body.x .modal-content { overflow: hidden; border: 0; border-radius: var(--x-radius); box-shadow: var(--x-shadow-lg); }
body.x .modal-header, body.x .poptitlebg { padding: 18px 22px; border-bottom: 1px solid var(--x-line); background: #fff !important; }
body.x .poptitle, body.x .modal-title { margin: 0; color: var(--x-ink) !important; font-size: 18px; font-weight: 800; }
body.x .modal-header .close { margin-top: 0; font-size: 26px; opacity: .4; }
body.x .modal-body { padding: 22px; }
body.x .modal-footer { padding: 14px 22px; border-top: 1px solid var(--x-line-2); background: var(--x-bg); }
body.x .modal-backdrop.in { opacity: .55; background: #0b1120; }
body.x code { padding: 1px 6px; border-radius: 5px; background: var(--x-brand-50); color: var(--x-brand-700); font-size: 12.5px; }

/* 알림 상자 */
body.x .alert { border: 0; border-radius: var(--x-radius-sm); }
body.x .alert-info { background: #f1f5f9; color: var(--x-ink-2); }
body.x .alert blockquote { margin: 0; padding: 0 0 0 14px; border-left: 3px solid var(--x-brand); font-size: 14px; }
body.x .alert .lead { color: var(--x-ink); font-size: 15px; font-weight: 800; }

/* 화면 제목 (기존 myrt · redtitle 계열) */
body.x .myrt { margin: 0 0 20px; padding: 0 0 16px; border-bottom: 2px solid var(--x-ink); background: none; color: var(--x-ink); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
body.x .redtitle, body.x .redtitle2, body.x .redtitle3 { display: flex; align-items: center; gap: 8px; padding-left: 0; background: none; color: var(--x-ink); font-weight: 800; }
body.x .redtitle::before, body.x .redtitle3::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--x-brand); }
body.x .redtitle { margin-top: 28px; font-size: 18px; }
body.x .redtitle2 { font-size: 24px; line-height: 1.35; letter-spacing: -0.03em; }
body.x .redbox { padding: 22px; border: 1px solid var(--x-line); border-radius: var(--x-radius); background: var(--x-bg); }

/* 가격 · 강조 글자: 기존 빨강 계열을 브랜드 색으로 */
body.x .caprice, body.x .red01, body.x .red04, body.x .org01 { color: var(--x-brand) !important; }

/* 인쇄: 머리말 · 바닥 · 떠 있는 메뉴는 감춘다 */
@media print {
    .x-header, .x-footer, .x-service, .x-float, .x-skip { display: none !important; }
    body.x:not(.x-is-home):not(.x-is-parts) .container.x-body > .row { box-shadow: none; padding: 0; }
}

/* ========== 8. 첫 화면 ========== */
/* 배너 그림 크기가 고정이라(큰 배너 464×387, 작은 배너 165×194) 칸도 그 크기에 맞춘다 */
.x-hero { display: grid; grid-template-columns: 464px 330px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.x-hero__main, .x-hero__boxes { overflow: hidden; height: 388px; border-radius: var(--x-radius); background: #fff; box-shadow: var(--x-shadow); }
.x-hero__boxes { display: grid; grid-template-columns: 165px 165px; grid-template-rows: 194px 194px; margin: 0; padding: 0; list-style: none; }
.x-hero__boxes li { overflow: hidden; }
.x-hero__boxes li:nth-child(odd) { border-right: 1px solid var(--x-line-2); }
.x-hero__boxes li:nth-child(-n+2) { border-bottom: 1px solid var(--x-line-2); }
.x-hero .banner-empty { border: 0; background: var(--x-line-2); color: var(--x-faint); }
.x-hero__me { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 20px; border-radius: var(--x-radius); background: #fff; box-shadow: var(--x-shadow); }
.x-me__hello { margin: 0 0 4px; color: var(--x-ink); font-size: 21px; font-weight: 500; line-height: 1.4; letter-spacing: -0.03em; }
.x-me__hello b { color: var(--x-brand); font-weight: 800; }
.x-me__links { display: flex; justify-content: center; gap: 0; font-size: 13px; }
.x-me__links a { color: var(--x-muted) !important; }
.x-me__links a + a::before { content: ""; display: inline-block; width: 1px; height: 10px; margin: 0 10px; background: var(--x-line); }
.x-me__links a:hover { color: var(--x-brand) !important; }
.x-me__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.x-me__grid a { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: var(--x-radius-sm); background: var(--x-bg); color: var(--x-ink) !important; font-size: 13.5px; font-weight: 700; }
.x-me__grid a:hover { background: var(--x-brand-50); color: var(--x-brand) !important; }
.x-me__grid svg { width: 20px; height: 20px; fill: none; stroke: var(--x-brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.x-me__grid .x-badge { margin-left: auto; }
.x-me__cs { margin-top: auto; }
.x-me__cs a { display: flex; flex-direction: column; padding: 14px 16px; border-radius: var(--x-radius-sm); background: var(--x-ink); }
.x-me__cs span { color: #94a3b8; font-size: 12px; }
.x-me__cs b { color: #fff; font-size: 15px; font-weight: 800; }
.x-me__cs a:hover b { color: #ff7da0; }

.x-shortcut { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-top: 24px; }
.x-shortcut a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 8px 16px; border-radius: var(--x-radius); background: #fff; box-shadow: var(--x-shadow-sm);
    color: var(--x-ink) !important; text-align: center; transition: transform .2s, box-shadow .2s; }
.x-shortcut a:hover { transform: translateY(-3px); box-shadow: var(--x-shadow); }
.x-shortcut i { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 16px; background: var(--x-brand-50); transition: background .2s; }
.x-shortcut svg { width: 26px; height: 26px; fill: none; stroke: var(--x-brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.x-shortcut a:hover i { background: var(--x-brand-grad); }
.x-shortcut a:hover svg { stroke: #fff; }
.x-shortcut b { font-size: 14.5px; font-weight: 800; }
.x-shortcut span { color: var(--x-muted); font-size: 12px; }

.x-strips { display: grid; grid-template-columns: 398px 398px minmax(0, 1fr); gap: 20px; margin-top: 24px; }
.x-strips > div:not(.x-strips__info) { overflow: hidden; height: 127px; border-radius: var(--x-radius); background: #fff; box-shadow: var(--x-shadow-sm); }
.x-strips__info { display: grid; gap: 10px; }
.x-strips__info a { display: flex; flex-direction: column; justify-content: center; padding: 0 20px; border-radius: var(--x-radius); background: var(--x-brand-grad); color: #fff !important; }
.x-strips__info a + a { background: var(--x-ink); }
.x-strips__info b { font-size: 15px; font-weight: 800; }
.x-strips__info span { font-size: 12px; opacity: .85; }
.x-strips__info a:hover { filter: brightness(1.08); }

.x-wide { margin-top: 24px; overflow: hidden; border-radius: var(--x-radius); text-align: center; }
.x-wide img { max-width: 100%; height: auto; }

.x-ranks { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.x-rankbox { padding: 0; }
.x-rankbox__head { display: flex; align-items: center; justify-content: space-between; }
.x-rankbox__head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 19px; font-weight: 800; }
.x-rankbox__desc { margin: 4px 0 16px; color: var(--x-muted); font-size: 13px; }
.x-rankbox--3 .x-chip, .x-rankbox--4 .x-chip { background: #eef2ff; color: #4338ca; }
.x-grid--2 { grid-template-columns: 1fr 1fr; gap: 16px; }
.x-grid--2 .x-card--empty { grid-column: 1 / -1; }

/* ========== 9. 목록 화면 (카테고리 · 부품몰 · 검색) ========== */
.x-crumb { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--x-faint); font-size: 12.5px; }
.x-crumb a { color: var(--x-muted) !important; }
.x-crumb b { color: var(--x-ink-2); font-weight: 700; }
.x-cate__banner { overflow: hidden; margin-bottom: 20px; border-radius: var(--x-radius); background: #fff; box-shadow: var(--x-shadow-sm); text-align: center; }
.x-cate__banner img { max-width: 100%; height: auto; }
.x-cate__head { padding: 26px 30px; border-radius: var(--x-radius); background: #fff; box-shadow: var(--x-shadow); }
.x-cate__title { margin: 0; font-size: 28px; font-weight: 900; letter-spacing: -0.035em; }
.x-cate__desc { margin: 8px 0 0; color: var(--x-muted); font-size: 14px; }
.x-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.x-chips a { display: block; padding: 8px 16px; border: 1px solid var(--x-line); border-radius: 999px; background: #fff; color: var(--x-ink-2) !important; font-size: 13.5px; font-weight: 600; }
.x-chips a:hover, .x-chips a.is-on { border-color: var(--x-brand); background: var(--x-brand-50); color: var(--x-brand) !important; }
.x-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 18px; }
.x-toolbar__count { margin: 0; color: var(--x-muted); font-size: 14px; }
.x-toolbar__count b { color: var(--x-ink); font-weight: 800; }
.x-toolbar__right { display: flex; align-items: center; gap: 12px; }
.x-seg { display: inline-flex; padding: 4px; border-radius: 12px; background: #fff; box-shadow: var(--x-shadow-sm); }
.x-seg a { padding: 8px 18px; border-radius: 9px; color: var(--x-muted) !important; font-size: 14px; font-weight: 700; }
.x-seg a:hover { color: var(--x-ink) !important; }
.x-seg a.is-on { background: var(--x-ink); color: #fff !important; }
.x-sort { display: flex; align-items: center; }
.x-sort a { position: relative; padding: 4px 12px; color: var(--x-muted) !important; font-size: 13.5px; font-weight: 600; }
.x-sort a + a::before { content: ""; position: absolute; left: 0; top: 9px; width: 1px; height: 10px; background: var(--x-line); }
.x-sort a.is-on { color: var(--x-ink) !important; font-weight: 800; }
.x-sort a.is-on::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 5px; border-radius: 50%; background: var(--x-brand); vertical-align: middle; }
.x-nodata { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 80px 0; border-radius: var(--x-radius); background: #fff; color: var(--x-muted); }
.x-nodata p { margin: 0; font-size: 15px; }
.x-chips li { float: none; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; line-height: 1.4; }
.x-chips.cate_list01 { float: none; width: auto; border: 0; background: none; padding: 0; }
@keyframes x-bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.x-badge.is-bump { animation: x-bump .45s ease; }

/* ========== 10. 부품몰 ========== */
.x-phero { display: grid; grid-template-columns: 582px 384px minmax(0, 1fr); gap: 20px; }
.x-phero__main, .x-phero__boxes { overflow: hidden; height: 385px; border-radius: var(--x-radius); background: #fff; box-shadow: var(--x-shadow); }
.x-phero__boxes { display: grid; grid-template-columns: 192px 192px; grid-template-rows: 192px 192px; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--x-line-2); }
.x-phero__boxes li { overflow: hidden; background: #fff; }
.x-phero .banner-empty { border: 0; background: var(--x-line-2); color: var(--x-faint); }
.x-phero__info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 22px 22px; border-radius: var(--x-radius); background: #fff; box-shadow: var(--x-shadow); }
.x-phero__info .x-chip { margin: 0; }
.x-phero__title { margin: 4px 0 0; color: var(--x-ink); font-size: 22px; line-height: 1.35; letter-spacing: -0.03em; }
.x-phero__title b { color: var(--x-brand); font-weight: 900; }
.x-phero__desc { margin: 0; color: var(--x-muted); font-size: 13px; }
.x-phero__info .x-btn { margin-top: auto; }

.x-plist { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; margin-top: 28px; align-items: start; }
.x-filter { position: sticky; top: 200px; display: grid; gap: 14px; }
.x-filter__box { padding: 18px 18px 14px; border-radius: var(--x-radius); background: #fff; box-shadow: var(--x-shadow-sm); }
.x-filter__title { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; color: var(--x-ink); font-size: 14.5px; font-weight: 800; }
.x-filter__reset { color: var(--x-brand) !important; font-size: 12px; font-weight: 700; }
.x-filter ul { margin: 0; padding: 0; list-style: none; }
.x-filter li a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--x-ink-2) !important; font-size: 13.5px; }
.x-filter li a:hover { background: var(--x-bg); color: var(--x-brand) !important; }
.x-filter li a.is-on { background: var(--x-brand-50); color: var(--x-brand) !important; font-weight: 800; }
.x-filter__scroll { max-height: 320px; overflow-y: auto; }
.x-check::before { content: ""; display: inline-block; width: 14px; height: 14px; margin: 0 8px -2px 0; border: 1.5px solid #cbd5e1; border-radius: 4px; background: #fff; }
.x-check.is-on::before { border-color: var(--x-brand); background: var(--x-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }

.x-plist__head { padding: 22px 26px; }
.x-plist__head .x-cate__title { font-size: 24px; }
.x-cate__title small { margin-left: 8px; color: var(--x-brand); font-size: 16px; font-weight: 700; }
.x-toolbar__left { display: flex; align-items: center; gap: 14px; }
.x-view { display: inline-flex; padding: 3px; border-radius: 10px; background: #fff; box-shadow: var(--x-shadow-sm); }
.x-view a { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 8px; color: var(--x-faint) !important; }
.x-view a.is-on { background: var(--x-ink); color: #fff !important; }
.x-view svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
body.x .x-select { height: 36px; padding: 0 30px 0 12px; border-radius: 10px; background: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; }

.x-grid--parts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.x-pcard .x-card__img img { max-width: 170px; }
.x-pcard .x-card__name { min-height: 42px; font-size: 14.5px; }
.x-pcard__summary { margin: 6px 0 0; color: var(--x-muted); font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x-pcard .x-card__price { margin-top: auto; padding-top: 10px; font-size: 20px; }
.x-pcard__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.x-pcard__btns .x-btn { padding: 0 6px; }
.x-soldout { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .7); color: var(--x-ink); font-size: 18px; font-weight: 900; letter-spacing: .1em; }

.x-rows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.x-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 150px 120px; align-items: center; gap: 22px; padding: 16px 22px; border-radius: var(--x-radius); background: #fff; box-shadow: var(--x-shadow-sm); transition: box-shadow .2s; }
.x-row:hover { box-shadow: var(--x-shadow); }
.x-row__img { position: relative; display: block; overflow: hidden; border-radius: 10px; }
.x-row__img img { width: 120px; height: 120px; object-fit: contain; }
.x-row__name { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.x-row__name a { color: var(--x-ink) !important; }
.x-row__name a:hover { color: var(--x-brand) !important; }
.x-row__summary { margin: 6px 0 0; color: var(--x-muted); font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x-row__zoom { display: inline-block; margin-top: 6px; color: var(--x-faint) !important; font-size: 12px; }
.x-row__price { margin: 0; color: var(--x-ink); font-size: 21px; font-weight: 900; letter-spacing: -0.03em; text-align: right; }
.x-row__price small { margin-left: 2px; font-size: 14px; }
.x-row__btns { display: grid; gap: 6px; }
.x-pager { margin-top: 32px; text-align: center; }

/* ========== 11. 상품 상세 ========== */
body.x .x-pd { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 48px; }
.x-pd__img { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--x-line-2); border-radius: var(--x-radius); background: #fff; }
.x-pd__img img { width: 82%; height: auto; object-fit: contain; }
.x-pd__counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.x-pd__counts a { display: flex; flex-direction: column; align-items: center; padding: 12px 0; border-radius: var(--x-radius-sm); background: var(--x-bg); }
.x-pd__counts b { color: var(--x-ink); font-size: 18px; font-weight: 800; }
.x-pd__counts span { color: var(--x-muted); font-size: 12px; }
.x-pd__counts a:hover b { color: var(--x-brand); }
.x-pd__name { margin: 0; font-size: 27px; font-weight: 800; line-height: 1.35; letter-spacing: -0.035em; }
.x-pd__price { margin: 16px 0 0; padding-bottom: 20px; border-bottom: 1px solid var(--x-line); }
.x-pd__price span { color: var(--x-brand); font-size: 34px; font-weight: 900; letter-spacing: -0.035em; }
.x-pd__spec { margin: 16px 0 0; }
.x-pd__spec div { display: flex; padding: 6px 0; font-size: 14px; }
.x-pd__spec dt { flex: none; width: 130px; color: var(--x-muted); font-weight: 600; }
.x-pd__spec dd { margin: 0; color: var(--x-ink-2); }
.x-pd__ok { color: var(--x-green); font-weight: 700; }
.x-pd__out { color: var(--x-brand); font-weight: 800; }
.x-pd__buy { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 18px 20px; border-radius: var(--x-radius-sm); background: var(--x-bg); }
.x-qty { display: flex; align-items: center; gap: 14px; }
.x-qty__label { color: var(--x-ink); font-weight: 700; }
.x-qty__box { display: inline-flex; overflow: hidden; border: 1px solid #d7dbe2; border-radius: 10px; background: #fff; }
.x-qty__box button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: #fff; color: var(--x-ink-2); cursor: pointer; }
.x-qty__box button:hover { background: var(--x-brand-50); color: var(--x-brand); }
.x-qty__box svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
body.x .x-qty__box input { width: 56px; height: 38px; border: 0; border-left: 1px solid var(--x-line); border-right: 1px solid var(--x-line); border-radius: 0; text-align: center; font-size: 15px; font-weight: 700; }
body.x .x-qty__box input:focus { box-shadow: none; }
.x-pd__total { margin: 0; color: var(--x-muted); font-size: 14px; }
.x-pd__total b { margin-left: 8px; color: var(--x-ink); font-size: 24px; font-weight: 900; letter-spacing: -0.03em; }
.x-pd__btns { display: grid; grid-template-columns: 1fr 1fr 58px; gap: 8px; margin-top: 14px; }
.x-pd__wish { padding: 0; }
.x-pd__wish svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.x-pd__wish:hover svg { fill: var(--x-brand-100); }
.x-pd__benefit { display: grid; gap: 6px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--x-line); list-style: none; }
.x-pd__benefit a { color: var(--x-muted) !important; font-size: 13px; }
.x-pd__benefit b { display: inline-block; min-width: 64px; margin-right: 8px; color: var(--x-ink); font-weight: 800; }
.x-pd__benefit a:hover b { color: var(--x-brand); }

/* 상세 아래 탭 (기존 nav-tabs sc_tab: 첫 칸이 지금 칸 제목) */
body.x .sc_tab { display: flex; flex-wrap: wrap; align-items: flex-end; margin-top: 8px; }
body.x .sc_tab > li { float: none; }
body.x .sc_tab > li.w40 { flex: 1; width: auto !important; }
body.x .sc_tab .redtitle3 { margin: 0 0 8px; padding: 0; font-size: 20px; }
body.x .sc_tab > li > a { padding: 10px 14px; font-size: 13.5px; }
/* 상품 정보 고시 등 기존 표 */
body.x .tbl06, body.x .tbl03 { width: 100%; border-top: 2px solid var(--x-ink); }
body.x .tbl06 th, body.x .tbl06 td, body.x .tbl03 th, body.x .tbl03 td { padding: 11px 14px; border-bottom: 1px solid var(--x-line); font-size: 13.5px; }
body.x .tbl06 th, body.x .tbl03 th { background: var(--x-bg); color: var(--x-ink); font-weight: 700; }
body.x .ss_dtl1, body.x .ss_dtl2 { color: var(--x-muted); }
body.x .x-pd::before, body.x .x-pd::after { display: none; }

/* 셋트 상세 위쪽 */
.x-pd__hint { margin: 8px 0 0; color: var(--x-muted); font-size: 13px; }
.x-spec-table { width: 100%; margin-top: 14px; border-top: 2px solid var(--x-ink); }
.x-spec-table th, .x-spec-table td { padding: 8px 4px; border-bottom: 1px solid var(--x-line-2); font-size: 13.5px; vertical-align: top; }
.x-spec-table th { width: 110px; color: var(--x-muted) !important; font-weight: 600 !important; white-space: nowrap; }
.x-spec-table td { color: var(--x-ink); }
.x-spec-table__mark { width: 40px; text-align: right; }
.x-pd__added { margin-top: 8px; color: var(--x-faint); font-size: 12.5px; }
.x-pd__calc { display: flex; align-items: stretch; gap: 12px; margin-top: 16px; }
.x-pd__calc dl { flex: 1; margin: 0; padding: 12px 16px; border-radius: var(--x-radius-sm); background: var(--x-bg); }
.x-pd__calc dl div { display: flex; justify-content: space-between; padding: 3px 0; font-size: 13.5px; }
.x-pd__calc dt { color: var(--x-muted); font-weight: 600; }
.x-pd__calc dd { margin: 0; color: var(--x-ink); font-weight: 700; }
.x-pd__lowest { display: flex; flex-direction: column; justify-content: center; width: 130px; padding: 0 14px; border-radius: var(--x-radius-sm); background: var(--x-ink); }
.x-pd__lowest b { color: #fff; font-size: 15px; }
.x-pd__lowest span { color: #94a3b8; font-size: 11.5px; }
.x-pd__lowest:hover b { color: #ff7da0; }
.x-pd__price--set { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; padding: 0 0 14px; }
.x-pd__price--set small { color: var(--x-ink); font-size: 15px; font-weight: 700; }
.x-estimate { display: flex; gap: 6px; }
body.x .x-estimate input { width: 170px; height: 36px; padding: 0 10px; font-size: 13px; }
.x-pd__sub { display: flex; gap: 8px; margin-top: 10px; }
.x-pd__sub .x-btn { flex: 1; }
.x-info { margin-top: 16px; overflow: hidden; border: 1px solid var(--x-line); border-radius: var(--x-radius-sm); }
.x-info__tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; background: var(--x-bg); }
.x-info__tabs a { display: block; padding: 10px 0; color: var(--x-muted) !important; font-size: 13px; font-weight: 700; text-align: center; cursor: pointer; }
.x-info__tabs li.active a { background: #fff; color: var(--x-brand) !important; box-shadow: inset 0 -2px 0 var(--x-brand); }
.x-info__body { min-height: 150px; padding: 16px; }
.x-info__md { display: flex; justify-content: space-around; }
.x-info__md dl { margin: 0; text-align: center; }
.x-info__md dt { color: var(--x-brand); font-size: 12.5px; font-weight: 800; }
.x-info__md dd { margin: 4px 0 0; font-size: 13px; }
.x-info__md img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--x-line); }
.x-info__list { margin: 0; padding: 0 0 0 4px; list-style: none; font-size: 13px; line-height: 1.9; }
.x-info__list li::before { content: "·"; margin-right: 6px; color: var(--x-brand); font-weight: 900; }
.x-pd__kakao { display: block; margin-top: 12px; overflow: hidden; border-radius: var(--x-radius-sm); }
.x-pd__kakao img { width: 100%; height: auto; }
/* 머리말이 위에 붙어 있어, 칸 이동(#g_1 등) 때 제목이 가려지지 않게 */
html { scroll-padding-top: 200px; scroll-behavior: smooth; }
body.x .sstbl2 thead th { background: var(--x-ink) !important; color: #fff !important; border-color: var(--x-ink) !important; }
body.x .sstbl2 td { border-color: var(--x-line-2) !important; }
body.x .sstbl2 tr:hover td { background: var(--x-brand-50); }

/* ========== 12. 글자 크기 (옛 CSS 의 11 · 12px 를 읽기 좋게 키운다) ========== */
/* 문단은 옛 'P {12px}' 대신 바탕 크기를 따른다 (:where 로 우선순위를 낮춰 fs11 같은 클래스는 그대로 이긴다) */
:where(body.x) p, :where(body.x) blockquote { font-size: inherit; line-height: inherit; }
body.x .fs10 { font-size: 11.5px !important; }
body.x .fs11, body.x .fs11 a { font-size: 12.5px !important; }
body.x .fs12, body.x .fs12 a { font-size: 13.5px !important; }
body.x select { font-size: 14px; }
body.x .stbl02, body.x .stbl02 a, body.x .stbl03 th, body.x .stbl03 td, body.x .stbl04 th, body.x .stbl04 td, body.x .stbl05 th, body.x .stbl05 td,
body.x .catbl, body.x .catbl td a, body.x .dttbl1, body.x .ncatbl, body.x .ncatbl2, body.x .tbl01 td a, body.x .ffss11,
body.x .fcon01, body.x .fcon03, body.x .fcon04, body.x .fcon05, body.x .gry03, body.x .gry03 a, body.x .sbox, body.x .form, body.x .form2, body.x .form3 { font-size: 13.5px !important; }

/* ========== 13. 장바구니 · 주문서 · 마이페이지 표 (stbl02 ~ 05) ========== */
body.x .stbl02, body.x .stbl03, body.x .stbl04, body.x .stbl05 { width: 100%; border-collapse: collapse; border-top: 2px solid var(--x-ink) !important; }
body.x .stbl02 th, body.x .stbl03 th, body.x .stbl04 th, body.x .stbl05 th { padding: 12px 10px !important; background: var(--x-bg) !important; color: var(--x-ink) !important; font-weight: 700; border-color: var(--x-line) !important; }
body.x .stbl02 td, body.x .stbl03 td, body.x .stbl04 td, body.x .stbl05 td { padding: 14px 10px !important; border-color: var(--x-line) !important; }
body.x .stbl02 tr, body.x .stbl03 tr, body.x .stbl04 tr { border-bottom: 1px solid var(--x-line); }
body.x .cart-table img { border-radius: 10px; border: 1px solid var(--x-line-2); }
body.x .cart-table a.bb { color: var(--x-ink); font-size: 14.5px; }
body.x .cart-unavailable td { background: #fafafa; opacity: .7; }

/* 주문 단계 (01 장바구니 › 02 주문서 › 03 결제 › 04 완료) */
body.x .ct_arg { display: flex; justify-content: flex-end; gap: 6px; margin: 0; padding: 0; }
body.x .ct_arg li { display: block; }
body.x .ct_arg img { opacity: .9; }
body.x .blutitle { color: var(--x-ink); font-weight: 800; }
body.x .nocart { display: flex; align-items: center; justify-content: center; height: 260px; border: 2px dashed var(--x-line); border-radius: var(--x-radius); background: #fff; font-size: 16px; color: var(--x-muted); }

/* 아래 단추 줄 */
body.x ul.bigbt { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; list-style: none; }
body.x ul.bigbt > li { float: none; padding: 0 !important; }
body.x .bigbt .btn-lg { min-width: 150px; height: 52px; }
body.x .w110px, body.x .bigbtxt { width: auto; min-width: 117px; }
body.x .bigbtxt { line-height: 1.3; font-size: 12.5px; }
body.x .mylm.x-side { float: none; width: auto; margin: 0; padding: 0; border: 0; }
body.x .x-side li { background: none; padding: 0; }

/* ========== 14. 로그인 · 회원 화면 ========== */
.x-auth { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 420px); justify-content: center; gap: 28px; padding: 16px 0 24px; }
.x-auth__card { padding: 40px 44px; border-radius: 20px; background: #fff; box-shadow: var(--x-shadow); }
.x-auth__title { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -0.04em; }
.x-auth__sub { margin: 8px 0 24px; color: var(--x-muted); font-size: 14px; line-height: 1.6; }
.x-auth__alert { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--x-radius-sm); background: var(--x-brand-50); color: var(--x-brand-700); font-size: 14px; font-weight: 600; }
.x-auth__form { display: grid; gap: 14px; margin: 0; }
.x-field { display: grid; gap: 6px; margin: 0; font-weight: 400; }
.x-field__label { color: var(--x-ink); font-size: 14px; font-weight: 700; }
body.x .x-field input { width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; font-size: 16px; background: #fff; }
.x-field__pw { position: relative; display: block; }
body.x .x-field__pw input { padding-right: 70px; }
.x-field__eye { position: absolute; right: 8px; top: 9px; height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--x-bg); color: var(--x-ink-2); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.x-field__eye:hover { color: var(--x-brand); }
.x-field__caps { color: #b45309; font-size: 12.5px; font-weight: 700; }
.x-field__error { margin: -4px 0 0; color: var(--x-brand-700); font-size: 13.5px; font-weight: 700; }
.x-auth__row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; }
.x-checkbox { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--x-ink-2); font-weight: 600; cursor: pointer; }
body.x .x-checkbox input { width: 18px; height: 18px; margin: 0; }
.x-auth__find a { color: var(--x-muted) !important; }
.x-auth__find a + a::before { content: ""; display: inline-block; width: 1px; height: 10px; margin: 0 10px; background: var(--x-line); }
.x-auth__find a:hover { color: var(--x-brand) !important; }
.x-auth__or { position: relative; margin: 26px 0 14px; text-align: center; }
.x-auth__or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--x-line); }
.x-auth__or span { position: relative; padding: 0 12px; background: #fff; color: var(--x-faint); font-size: 13px; }
.x-auth__guest { margin-top: 22px; padding: 18px; border-radius: var(--x-radius-sm); background: var(--x-bg); }
.x-auth__guest p { margin: 0 0 12px; color: var(--x-muted); font-size: 13px; line-height: 1.6; }
.x-auth__guest b { display: block; color: var(--x-ink); font-size: 14.5px; }
.x-auth__side { display: flex; flex-direction: column; align-items: flex-start; padding: 40px 36px; border-radius: 20px; background: var(--x-ink); color: #cbd5e1; }
.x-auth__side .x-chip { margin: 0 0 14px; background: rgba(255, 30, 90, .18); color: #ff7da0; }
.x-auth__side h2 { margin: 0 0 22px; color: #fff; font-size: 28px; font-weight: 500; line-height: 1.35; }
.x-auth__side h2 b { color: #ff7da0; font-weight: 900; }
.x-auth__side ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.x-auth__side li { padding-left: 16px; border-left: 3px solid var(--x-brand); font-size: 13.5px; }
.x-auth__side li b { display: block; color: #fff; font-size: 15.5px; }
.x-auth__call { margin-top: auto; padding-top: 24px; color: #fff !important; font-weight: 800; }
.x-auth__call:hover { color: #ff7da0 !important; }
body.x .x-auth__side h2 { color: #fff; }
.x-pwmatch { display: inline-block; margin-left: 10px; font-size: 13px; font-weight: 700; vertical-align: middle; }
.x-pwmatch.is-ok { color: var(--x-green); }
.x-pwmatch.is-bad { color: var(--x-brand-700); }
/* 고객센터 화면의 본문 첫 제목 위 여백 정리 */
body.x .x-my__body .myrt:first-child { margin-top: 0; }

/* ========== 15. 게시판 ========== */
/* 목록(왼쪽) · 글(오른쪽) 나란히. 글을 고르지 않았으면 목록을 전체 폭으로 */
body.x .x-board .sc_bl02 { height: auto; min-height: 560px; border-right: 1px solid var(--x-line); }
body.x .x-board.is-list-only #leftDiv { width: 100%; min-height: 0; border-right: 0; }
body.x .x-board.is-list-only #rightDiv { display: none; }
body.x .x-board .stbl02 td a, body.x .x-board .stbl04 td a { color: var(--x-ink); }
body.x .x-board .stbl02 tr:hover td { background: var(--x-brand-50); }
body.x .x-board .bgry2 td { background: var(--x-brand-50) !important; font-weight: 700; }
body.x .schbox { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
body.x .schbox .form-control { width: 240px; }
body.x .sdrop { height: 38px; padding: 0 10px; border-radius: var(--x-radius-xs); }
/* 게시판 이름 탭: 줄바꿈 없이 칩처럼 */
body.x .sc_tab > li > a { white-space: nowrap; }
body.x .redtitle, body.x .redtitle2, body.x .redtitle3 { clear: both; flex-wrap: wrap; }

/* ========== 16. 색 덜어내기 (레드 의견 12-04: "너무 레드레드레드") ==========
   빨강은 '지금 누를 단추 하나' 와 가격 · 뱃지 · 밑줄 같은 작은 강조에만 쓴다. 넓은 면은 남색 · 흰색 · 옅은 회색. */
/* 머리말(로고 · 검색창 · 전체 카테고리)은 빨강을 그대로 둔다 (레드 의견 12-04: "이게 더 나은 거 같아") */
.x-gnb__promo { background: var(--x-line-2); color: var(--x-ink-2) !important; }
.x-gnb__promo svg { fill: var(--x-brand) !important; }
.x-util__join { color: #fff !important; }
.x-quick__item:hover { background: var(--x-line-2); color: var(--x-ink) !important; }

/* 고객센터 왼쪽 메뉴: 머리를 흰 바탕 + 짧은 빨간 밑줄로 */
.x-side__head { background: #fff; border-bottom: 1px solid var(--x-line-2); }
.x-side__head a { color: var(--x-ink) !important; }
.x-side__head::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--x-brand); }
.x-side__login { background: var(--x-bg); }

/* 첫 화면 · 목록 */
.x-shortcut i { background: var(--x-line-2); }
.x-shortcut svg { stroke: var(--x-ink-2); }
.x-shortcut a:hover i { background: var(--x-ink); }
.x-strips__info a { background: var(--x-ink); }
.x-strips__info a + a { background: #334155; }
.x-me__hello b { color: var(--x-ink); }
.x-me__grid svg, .x-helper svg { stroke: var(--x-ink-2); }
.x-rank.is-top { background: var(--x-brand); box-shadow: none; }
.x-chip { background: var(--x-line-2); color: var(--x-ink-2); }
.x-rankbox--3 .x-chip, .x-rankbox--4 .x-chip { background: var(--x-line-2); color: var(--x-ink-2); }
.x-var__btn.is-on { border-color: var(--x-ink); background: #fff; color: var(--x-ink) !important; box-shadow: inset 0 0 0 1px var(--x-ink); }
.x-var__btn.is-on b { color: var(--x-brand); }
.x-phero__title b { color: var(--x-ink); }
.x-filter li a.is-on { background: var(--x-line-2); color: var(--x-ink) !important; }
.x-chips a:hover, .x-chips a.is-on { border-color: var(--x-ink); background: #fff; color: var(--x-ink) !important; }

/* 기존 화면 단추: 빨강은 '주문 · 구매' 같은 주 단추만. 보조 단추(btnred 로 칠해 둔 찾기 · 변경 등)는 남색 */
body.x .btnred:not(.btn-lg), body.x .btn-primary.btn-xs, body.x .btn-primary.btn-sm { border-color: var(--x-ink) !important; background: var(--x-ink) !important; }
body.x .btnred:not(.btn-lg):hover, body.x .btn-primary.btn-xs:hover, body.x .btn-primary.btn-sm:hover { border-color: #1e293b !important; background: #1e293b !important; }
body.x .btnwht { border: 1px solid var(--x-line) !important; background: #fff !important; color: var(--x-ink-2) !important; }
body.x .redtitle::before, body.x .redtitle3::before { background: var(--x-ink); }
body.x .nav-tabs > li > a:hover { background: var(--x-line-2); color: var(--x-ink); }
body.x .x-board .stbl02 tr:hover td, body.x .sstbl2 tr:hover td, body.x .x-body .table-hover > tbody > tr:hover { background: var(--x-bg); }
body.x .x-board .bgry2 td { background: var(--x-line-2) !important; }
body.x code { background: var(--x-line-2); color: var(--x-ink-2); }
.x-btn--brand { box-shadow: none; }

/* ========== 17. 카테고리 머리 배너 (관리자가 넣은 옛 HTML) — 폭을 꽉 채우고 줄을 맞춘다 (레드 12-04) ========== */
body.x .x-cate__banner .row { margin: 0; }
body.x .x-cate__banner .catefrm { float: none; width: auto; overflow: hidden; padding: 20px; }
/* 프리미엄 PC: 영상 3개를 한 줄 3칸으로 */
body.x .x-cate__banner .catefrm > ul:has(iframe) { float: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; margin: 0; padding: 0; }
body.x .x-cate__banner .catefrm > ul:has(iframe) > li { float: none; width: auto; margin: 0; padding: 0; }
body.x .x-cate__banner .catefrm > ul:has(iframe) > li > br { display: none; }
body.x .x-cate__banner .catefrm > ul:has(iframe) img { display: block; max-width: 100%; margin-bottom: 8px; }
body.x .x-cate__banner .catefrm iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; }
/* 게임별 PC: 게임 그림 16개를 8칸 격자로 (옛 float 배치는 5번째 칸부터 어긋났다) */
body.x .x-cate__banner .tcnt:has(> .gmlist) { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
body.x .x-cate__banner .gmlist { float: none; width: auto; margin: 0; padding: 0; }
body.x .x-cate__banner .gmimg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; float: none; width: auto; margin: 0 !important; padding: 0; }
body.x .x-cate__banner .gmimg > li { float: none; width: auto; margin: 0 !important; padding: 0; text-align: center; }
body.x .x-cate__banner .gmimg img { display: block; width: 100%; height: auto; border-radius: 8px; transition: transform .15s; }
body.x .x-cate__banner .gmimg img:hover { transform: translateY(-3px); }
/* 게임별 PC 아래: 권장 사양 표 · 영상 */
body.x .x-cate__banner .flft.w100:has(> .w64) { float: none; display: flex; gap: 24px; align-items: flex-start; width: 100%; margin-top: 24px; }
body.x .x-cate__banner .w64 { float: none; flex: 1 1 auto; width: auto; padding: 0; }
body.x .x-cate__banner .w35 { float: none; flex: 0 0 38%; width: auto; }
body.x .x-cate__banner .catable { width: 100%; }

/* ========== 18. 메가메뉴 다듬기 (레드 12-04: "드랍다운메뉴도 조금 아쉽다") ==========
   넓은 화면에서 판이 창 끝까지 퍼져 왼쪽 칸이 잘렸다 → 본문 폭(.x-gnb__in) 안의 카드로 가둔다. */
.x-gnb__in { position: relative; }
.x-header .x-mega { left: 0; right: 0; top: calc(100% + 1px); padding: 26px 18px 22px; border: 1px solid var(--x-line); border-top: 2px solid var(--x-brand);
    border-radius: 0 0 16px 16px; box-shadow: 0 24px 48px -12px rgba(15, 23, 42, .22); z-index: 1000; }
.x-cat:hover > .x-mega, .x-cat.open > .x-mega { gap: 0; animation: x-mega-in .18s ease-out; }
@keyframes x-mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.x-mega__col { padding: 0 14px; border-left: 1px solid var(--x-line-2); }
.x-mega__col:first-child { border-left: 0; }
.x-mega__title { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; padding: 0 10px 0; border: 0; color: var(--x-faint); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.x-mega__title::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--x-brand); }
.x-mega a { position: relative; padding: 9px 26px 9px 10px; border-radius: 9px; color: var(--x-ink) !important; font-size: 14.5px; font-weight: 600; transition: background .12s, color .12s; }
.x-mega a::after { content: "›"; position: absolute; right: 10px; top: 50%; color: var(--x-brand); font-size: 18px; line-height: 1; opacity: 0; transform: translate(-4px, -55%); transition: opacity .12s, transform .12s; }
.x-mega a:hover { background: var(--x-bg); color: var(--x-brand) !important; font-weight: 700; }
.x-mega a:hover::after { opacity: 1; transform: translate(0, -55%); }
.x-mega small { margin-left: auto; color: var(--x-faint); font-size: 12px; font-weight: 500; }

/* ========== 19. 주문서 · 주문 상세 · 마이페이지 (2026-12 디자인) ========== */
.x-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 6px 0 20px; }
.x-pagehead h1 { margin: 0; color: var(--x-ink); font-size: 28px; font-weight: 900; letter-spacing: -0.035em; }
.x-pagehead p { margin: 6px 0 0; color: var(--x-muted); font-size: 14px; }
.x-steps { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.x-steps li { display: flex; align-items: center; gap: 8px; color: var(--x-faint); font-size: 14px; font-weight: 700; }
.x-steps li + li::before { content: ""; width: 26px; height: 1px; margin-right: 2px; background: var(--x-line); }
.x-steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--x-line-2); color: var(--x-faint); font-size: 13px; }
.x-steps li.is-done { color: var(--x-ink-2); }
.x-steps li.is-done b { background: var(--x-ink); color: #fff; }
.x-steps li.is-on { color: var(--x-ink); }
.x-steps li.is-on b { background: var(--x-brand); color: #fff; box-shadow: 0 0 0 4px var(--x-brand-50); }

.x-panel { margin-bottom: 16px; padding: 24px 26px; border-radius: var(--x-radius); background: #fff; box-shadow: var(--x-shadow); }
.x-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.x-panel__head h2 { margin: 0; color: var(--x-ink); font-size: 18px; font-weight: 800; }
.x-panel__head h2 small { margin-left: 8px; color: var(--x-faint); font-size: 13px; font-weight: 600; }
.x-panel__head .x-check { color: var(--x-ink-2); font-size: 13.5px; font-weight: 600; }

.x-alert { margin: 0 0 16px; padding: 14px 18px; border-radius: var(--x-radius-sm); background: var(--x-line-2); color: var(--x-ink-2); font-size: 14px; line-height: 1.6; }
.x-alert--error { background: var(--x-brand-50); color: var(--x-brand-700); font-weight: 700; }
.x-alert--info b, .x-alert--info strong { color: var(--x-ink); }
.x-alert a { color: var(--x-blue) !important; font-weight: 700; }

/* 입력 칸 */
.x-frows { display: grid; gap: 14px; }
.x-frow { display: grid; grid-template-columns: 150px 1fr; align-items: start; gap: 16px; }
.x-frow > label, .x-frow > .x-frow__label { padding-top: 12px; color: var(--x-ink); font-size: 14px; font-weight: 700; }
.x-frow i.x-req { margin-left: 3px; color: var(--x-brand); font-style: normal; }
.x-frow__field { display: grid; gap: 8px; min-width: 0; }
.x-frow__line { display: flex; gap: 8px; }
.x-frow__line > .x-input { flex: 1; min-width: 0; }
.x-frow__value { padding-top: 12px; color: var(--x-ink); font-size: 15px; font-weight: 600; }
.x-help { margin: 0; color: var(--x-muted); font-size: 12.5px; }
body.x .x-input { display: block; width: 100%; max-width: 520px; height: 46px; padding: 0 14px; border: 1.5px solid var(--x-line); border-radius: var(--x-radius-sm);
    background: #fff; box-shadow: none; color: var(--x-ink); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
body.x textarea.x-input { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
body.x .x-input--sm { max-width: 160px; }
body.x .x-input--md { max-width: 280px; }
body.x .x-input:focus { outline: 0; border-color: var(--x-ink); box-shadow: 0 0 0 4px rgba(15, 23, 42, .07); }
body.x .x-input::placeholder { color: var(--x-faint); }
.x-radios { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.x-radio { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border: 1.5px solid var(--x-line); border-radius: var(--x-radius-sm); color: var(--x-ink-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.x-radio input { margin: 0; accent-color: var(--x-ink); }
.x-radio:has(input:checked) { border-color: var(--x-ink); color: var(--x-ink); box-shadow: inset 0 0 0 1px var(--x-ink); }
.x-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; cursor: pointer; }
.x-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--x-brand); }
.x-btn--line.x-btn--sm, .x-frow__line .x-btn { flex: none; }

/* 상품 줄 */
.x-items { margin: 0; padding: 0; list-style: none; }
.x-item { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid var(--x-line-2); }
.x-item:first-child { border-top: 0; padding-top: 4px; }
.x-item__img { display: block; width: 80px; height: 80px; padding: 6px; border: 1px solid var(--x-line-2); border-radius: 12px; background: #fff; }
.x-item__img img { width: 100%; height: 100%; object-fit: contain; }
.x-item__name { color: var(--x-ink) !important; font-size: 15px; font-weight: 700; line-height: 1.45; }
.x-item__opts { margin: 6px 0 0; padding: 0; list-style: none; color: var(--x-muted); font-size: 12.5px; line-height: 1.7; }
.x-item__opts .is-plus { color: var(--x-brand); font-weight: 700; }
.x-item__opts .is-minus { color: var(--x-blue); font-weight: 700; }
.x-item__pkg { color: #c2410c; font-weight: 700; }
.x-item__price { text-align: right; white-space: nowrap; }
.x-item__price small { display: block; color: var(--x-muted); font-size: 12.5px; }
.x-item__price b { display: block; margin-top: 2px; color: var(--x-ink); font-size: 17px; font-weight: 900; }

/* 주문서: 왼쪽 입력, 오른쪽 결제 요약 */
.x-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.x-checkout__side { position: sticky; top: 160px; }
.x-summary { padding: 24px; border-radius: var(--x-radius); background: #fff; box-shadow: var(--x-shadow); }
.x-summary h2 { margin: 0 0 14px; color: var(--x-ink); font-size: 18px; font-weight: 800; }
.x-summary dl { display: grid; gap: 10px; margin: 0 0 16px; }
.x-summary dl div { display: flex; justify-content: space-between; color: var(--x-ink-2); font-size: 14.5px; }
.x-summary dd { margin: 0; color: var(--x-ink); font-weight: 700; }
.x-summary .is-total { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--x-line); }
.x-summary .is-total dt { color: var(--x-ink); font-weight: 800; }
.x-summary .is-total dd { color: var(--x-brand); font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.x-summary__agree { margin: 0 0 14px; padding: 14px; border-radius: var(--x-radius-sm); background: var(--x-bg); color: var(--x-muted); font-size: 12.5px; line-height: 1.6; }
.x-summary__agree .x-check { margin-top: 8px; color: var(--x-ink); font-size: 13.5px; }
.x-summary .x-btn + .x-btn { margin-top: 8px; }
.x-summary__note { margin: 12px 0 0; color: var(--x-faint); font-size: 12px; text-align: center; }

/* 정보 표 (주문 상세) */
.x-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.x-kv--1 { grid-template-columns: 1fr; }
.x-kv > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--x-line-2); }
.x-kv > div:nth-child(-n+2) { border-top: 0; }
.x-kv--1 > div:nth-child(2) { border-top: 1px solid var(--x-line-2); }
.x-kv dt { color: var(--x-muted); font-size: 14px; font-weight: 600; }
.x-kv dd { margin: 0; color: var(--x-ink); font-size: 14.5px; font-weight: 600; word-break: keep-all; }
.x-kv .is-total { color: var(--x-brand); font-size: 20px; font-weight: 900; }
.x-ordhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.x-ordhead__no { color: var(--x-ink); font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.x-ordhead__at { margin-top: 4px; color: var(--x-muted); font-size: 13.5px; }
.x-status { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--x-line-2); color: var(--x-ink); font-size: 13px; font-weight: 800; }
.x-status--wait { background: var(--x-brand-50); color: var(--x-brand-700); }
.x-deposit { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin-top: 18px; padding: 18px 20px; border: 1.5px dashed var(--x-brand-100); border-radius: var(--x-radius-sm); background: var(--x-brand-50); font-size: 14.5px; }
.x-deposit p { grid-column: 1 / -1; margin: 0 0 4px; color: var(--x-ink); font-weight: 700; }
.x-deposit dt { color: var(--x-muted); font-weight: 600; }
.x-deposit dd { margin: 0; color: var(--x-ink); font-weight: 700; }
.x-deposit .is-total { color: var(--x-brand); font-size: 20px; font-weight: 900; }
.x-actions { display: flex; justify-content: center; gap: 10px; margin: 24px 0 40px; }
.x-actions .x-btn { min-width: 180px; }

/* 목록 표 (주문 · 포인트 · 위시) */
.x-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.x-table th { padding: 12px 14px; border-bottom: 1px solid var(--x-line); background: var(--x-bg); color: var(--x-muted); font-size: 13px; font-weight: 700; text-align: left; white-space: nowrap; }
.x-table th:first-child { border-radius: 10px 0 0 10px; }
.x-table th:last-child { border-radius: 0 10px 10px 0; }
.x-table td { padding: 16px 14px; border-bottom: 1px solid var(--x-line-2); color: var(--x-ink-2); vertical-align: middle; }
.x-table tr:last-child td { border-bottom: 0; }
.x-table tbody tr:hover td { background: #fafbfd; }
.x-table .is-num { text-align: right; white-space: nowrap; font-weight: 800; color: var(--x-ink); }
.x-table .is-c { text-align: center; }
.x-table .is-plus { color: var(--x-brand); }
.x-table .is-minus { color: var(--x-blue); }
.x-table a { color: var(--x-ink) !important; font-weight: 700; }
.x-table a:hover { color: var(--x-brand) !important; }
.x-table__goods { display: flex; align-items: center; gap: 14px; }
.x-table__goods img { width: 64px; height: 64px; padding: 4px; border: 1px solid var(--x-line-2); border-radius: 10px; object-fit: contain; background: #fff; }
.x-points { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-radius: var(--x-radius); background: var(--x-ink); color: #cbd5e1; }
.x-points b { display: block; margin-top: 4px; color: #fff; font-size: 30px; font-weight: 900; letter-spacing: -0.02em; }
.x-points b small { margin-left: 4px; font-size: 16px; font-weight: 700; }
.x-points span { font-size: 13px; }
.x-empty { padding: 56px 20px; text-align: center; color: var(--x-muted); font-size: 15px; }
.x-empty svg { display: block; width: 44px !important; height: 44px !important; margin: 0 auto 12px; color: var(--x-faint); }
.x-empty .x-btn { margin-top: 16px; }
.x-listbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.x-pagewrap { margin-top: 18px; text-align: center; }
.x-danger { border-color: var(--x-brand) !important; color: var(--x-brand) !important; background: #fff !important; }
.x-danger:hover { background: var(--x-brand-50) !important; }

/* 20. 주문서 증빙 신청 칸 (fieldset 기본 테두리 없앰) */
.order-receipt{border:0;margin:0;padding:0;min-width:0}
.order-receipt[hidden]{display:none}
.x-frows + .order-receipt{margin-top:0}
