.title_div {
    margin-top: 50px !important;
}
/* ── 헤더 배너 (top_parts) ─────────────────────── */
.top_parts {
    background: linear-gradient(135deg, #7b61a8 0%, #9b7fc8 50%, #b89fe0 100%);
}
.top_parts .sub-tab-txt h1,
.top_parts .sub-tab-txt p,
.top_parts .sub-tab-txt span {
    color: #fff;
}
.top_parts .sub-tab-txt span {
    opacity: 0.85;
    font-size: 13px;
}
.top_parts .sub-tab-icon img {
    opacity: 0.55;
    filter: brightness(5) grayscale(0.3);
    max-height: 120px;
    width: auto;
}

/* ── 검색 영역 ────────────────────────────────── */
.parts-search-wrap {
    padding: 28px 0 20px;
    display: flex;
}
.parts-search-row {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.parts-search-label {
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    border-right: 1px solid #eee;
    line-height: 46px;
    background: #f9f9f9;
}
.parts-search-input {
    border: none !important;
    outline: none;
    padding: 0 16px;
    font-size: 14px;
    height: 46px;
    line-height: 46px;
    min-width: 260px;
    background: #fff !important;
    color: #333;
    box-shadow: none !important;
}
.parts-search-input:focus {
    border: none !important;
    box-shadow: none !important;
}
.parts-search-btn {
    padding: 0 16px;
    height: 46px;
    background: #f5f5f5;
    border: none;
    border-radius: 0 6px 6px 0;
    border-left: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #555;
    transition: background 0.2s;
}
.parts-search-btn:hover {
    background: #e8e8e8;
    color: #222;
}

/* ── 리스트 래퍼 ──────────────────────────────── */
.parts-list-wrap {
    padding: 0 0 60px;
}
.parts-result-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--point-color, #01cb5c);
    margin-bottom: 8px;
}
.parts-result-info {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}
.parts-result-count {
    text-align: right;
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

/* ── 테이블 ───────────────────────────────────── */
.parts-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.parts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.parts-table thead tr {
    border-top: 2px solid #333;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
}
.parts-table th {
    padding: 12px 10px;
    font-weight: 600;
    color: #555;
    font-size: 15px;
    text-align: center;
    white-space: nowrap;
}
.parts-row {
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.15s;
}
.parts-row:hover {
    background: #f7f4ff;
}
.parts-row td {
    padding: 14px 10px;
    vertical-align: middle;
    text-align: center;
}
.td-num {
    font-size: 16px;
    font-weight: 700;
    color: #5dada8;
    width: 48px;
}
.td-img {
    width: 100px;
}
.td-img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    display: block;
    margin: 0 auto;
}
.parts-no-img {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #aaa;
    margin: 0 auto;
}
.td-name {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}
.td-sku {
    color: #666;
}
.td-time {
    color: #444;
}
.td-price {
    font-size: 15px;
}
.price-red {
    color: #e04a2f;
    font-weight: 600;
}
.td-retail {
    font-size: 15px;
    font-weight: 600;
}
.td-retail small {
    color: #888;
    font-size: 13px;
    font-weight: 400;
}

/* ── 빈 결과 ──────────────────────────────────── */
.parts-empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 15px;
}

/* ── 페이징 ───────────────────────────────────── */
.parts-paging {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 30px;
}
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pg-btn:hover {
    background: #f0eeff;
    border-color: #9b7fc8;
    color: #7b61a8;
}
.pg-btn.active {
    background: #7b61a8;
    border-color: #7b61a8;
    color: #fff;
    font-weight: 700;
}

/* ── 팝업 모달 ────────────────────────────────── */
.parts-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9500;
    align-items: center;
    justify-content: center;
}
.parts-modal.active {
    display: flex;
}
.parts-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}
.parts-modal-content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 14px;
    width: 90%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: pmFadeIn 0.2s ease;
}
@keyframes pmFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.parts-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    z-index: 2;
    transition: color 0.15s;
}
.parts-modal-close:hover {
    color: #333;
}
.parts-modal-body {
    display: flex;
    gap: 24px;
    padding: 32px 28px 28px;
}
.pm-img-wrap {
    flex: 0 0 200px;
    width: 200px;
}
.pm-img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eee;
    display: block;
}
.pm-info {
    flex: 1;
    min-width: 0;
}
.pm-name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    padding-right: 24px;
    line-height: 1.4;
}
.pm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 14px;
}
.pm-table th {
    padding: 9px 12px 9px 0;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    width: 130px;
}
.pm-table td {
    padding: 9px 0;
    color: #333;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}
.pm-table .td-red {
    color: #e04a2f;
}
.pm-divider th,
.pm-divider td {
    border-top: 2px solid #eee;
}
.pm-total-row th,
.pm-total-row td {
    border-top: 1px solid #e0d8f0;
    background: #f9f7ff;
}
.pm-total {
    color: #7b61a8;
    font-size: 16px;
    font-weight: 700;
}
.pm-notice {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-top: 4px;
}

.parts-card-list {
    display: flex;
    flex-direction: column;
}
.parts-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 15px 0;
    border: 1px solid #eee;
    cursor: pointer;
}
.parts-card:active {
    background: #f7f4ff;
}
.pc-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.pc-prices {
    margin-top: 12px;
    border-top: 1px solid #eee;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
}
.pc-price-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px 15px;
}
.pc-price-label {
    font-size: 12px;
    font-weight: 500;
}
.pc-price-center .price-red {
    font-size: 15px;
    font-weight: 700;
}
.pc-price-retail strong {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}
.pc-price-retail small {
    font-size: 12px;
    color: #888;
}
.parts-card:active {
    background: #f7f4ff;
}
.pc-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
    padding-left: 15px;
}
.pc-num {
    font-size: 13px;
    font-weight: 700;
    color: #5dada8;
    line-height: 1;
}
.pc-name {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    word-break: keep-all;
}
.pc-sku {
    font-size: 14px;
    color: #888;
}
.pc-time {
    font-size: 13px;
    color: #000;
}
.pc-time-txt {
    font-weight: 600;
}
.pc-right {
    flex: 0 0 110px;
    padding-right: 15px;
}
.pc-right img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
    display: block;
}
.pc-right .parts-no-img {
    width: 110px;
    height: 110px;
    border-radius: 8px;
}

.parts-mo { display: none; }
.parts-pc { display: block; }

/* ── 커스텀 모델 드롭다운 ─────────────────────── */
.parts-cs {
    position: relative;
    min-width: 130px;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    border-radius: 6px 0 0 6px;
    background: #f9f9f9;
    cursor: pointer;
    user-select: none;
}
.parts-cs-val {
    padding: 0 32px 0 14px;
    height: 46px;
    line-height: 46px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.parts-cs-val::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #888;
    transition: transform 0.18s;
}
.parts-cs.open .parts-cs-val::after {
    transform: translateY(-50%) rotate(180deg);
}
.parts-cs-list {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: -1px;
    min-width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 200;
    list-style: none;
    padding: 4px 0;
    margin: 0;
    max-height: 260px;
    overflow-y: auto;
}
.parts-cs.open .parts-cs-list {
    display: block;
}
.parts-cs-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.12s;
}
.parts-cs-item:hover {
    background: #f0eeff;
    color: #7b61a8;
}
.parts-cs-item.active {
    background: #f0eeff;
    color: #7b61a8;
    font-weight: 700;
}
.red {
    color: #e04a2f;
}

/* ── 반응형 ───────────────────────────────────── */
@media (max-width: 768px) {
    .parts-search-wrap {
        justify-content: center;
    }
    .parts-search-row {
        justify-content: space-between;
    }
    .parts-cs {
        min-width: 100px;
    }
    .parts-search-input {
        min-width: 120px;
    }
    .parts-modal-body {
        flex-direction: column;
        padding: 28px 18px 22px;
    }
    .pm-img-wrap {
        flex: none;
        width: 100%;
    }
    .pm-img-wrap img {
        height: 200px;
    }
    .parts-pc { display: none; }
    .parts-mo { display: block; }
}
