/* 1) Import (최상단 고정) */
@import url('https://fastly.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.1/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.min.css');

/* =========================
      Global / Reset
   ========================= */
:root {
  --header-h: 60px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: 'Wanted Sans Variable', sans-serif;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  padding-top: var(--header-h);
  font-family: 'Wanted Sans Variable', sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

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

button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

address,
address * {
  font-style: normal;
}

dl,
dt,
dd {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid #7ad1c6;
  outline-offset: 2px;
}

input,
select,
textarea {
  font-size: 14px;
  outline: none;
  box-shadow: none;
  resize: none;
}

select:focus,
input:focus {
  outline: none;
  box-shadow: none;
}

/* Hover / Touch micro-interactions (썸네일) */
@media (hover:hover) and (pointer:fine) {

  .thumb-list button:hover img,
  .thumb-list button:focus-visible img {
    transform: scale(1.2);
  }

  .thumb-list button:focus-visible img {
    outline: 2px solid rgba(0, 0, 0, .15);
    outline-offset: 2px;
  }
}

@media (hover:none) and (pointer:coarse) {
  .thumb-list button:active img {
    transform: scale(1.06);
  }
}

/* =========================
      Header / Main
   ========================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: #9ED9CC;
  color: #fff8f0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

nav {
  margin-left: auto;
}

nav a {
  color: #fff8f0;
  margin-left: 0rem;
}

main {
  padding: .5rem;
  padding-bottom: calc(64px + var(--safe-bottom));
}

/* =========================
      Icons
   ========================= */
.main-icon {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(20% - 1rem);
  margin: .5rem;
  text-align: center;
  transition: transform .3s ease;
}

.icon-btn img {
  width: 44px;
  height: 44px;
  transition: transform .2s ease;
}

.icon-btn span {
  margin-top: .5rem;
  font-size: 14px;
  color: #333;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0)
  }

  30% {
    transform: translateY(-10px)
  }

  60% {
    transform: translateY(5px)
  }
}

.icon-btn:hover img {
  animation: bounce .8s infinite ease-in-out;
}

/* =========================
      Common Wraps
   ========================= */
.font-or {
  color: #ff6a00;
}
.font-ssize {
  font-size: 12px;;
}

.main-auction,
.list-wrap {
  max-width: 1200px;
  margin: 3rem auto 4rem;
}

.main-auction h2 span {
  font-weight: 400;
  font-size: 1rem;
  margin-left: 14px;
  color: #333;
}

.main-rail {
  position: relative;
  margin-top: 20px;
}

.main-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  gap: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  z-index: 0;
  overflow-anchor: none;
}

.main-track .main-item {
  scroll-snap-align: start;
}

.main-track::-webkit-scrollbar {
  display: none;
}

.main-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.main-track.dragging {
  cursor: grabbing;
}

.main-rail[data-touch="1"] .main-track {
  scroll-padding-inline: 12px;
}

.main-prev,
.main-next,
.main-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 20;
}

.main-prev {
  left: 0
}

.main-next {
  right: 0
}

.main-prev:disabled,
.main-next:disabled {
  opacity: .35;
  cursor: default;
}

.main-rail .main-prev[disabled],
.main-rail .main-next[disabled],
.main-rail .main-prev.is-disabled,
.main-rail .main-next.is-disabled {
  opacity: .35 !important;
  cursor: default !important;
}

.main-rail[data-touch="1"] .main-prev,
.main-rail[data-touch="1"] .main-next,
.main-rail[data-touch="1"] .main-arrow {
  display: none !important;
}

.main-item.main-more .more-card {
  display: grid;
  place-items: center;
  min-height: 160px;
  height: 100%;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  font-weight: 700;
  color: #0f9e8b;
  text-align: center;
}

/* =========================
      Bottom Bar
   ========================= */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  color: #333;
  padding: .5rem 0 calc(.5rem + var(--safe-bottom));
  z-index: 999;
  transition: transform .3s ease;
}

.bottom-bar.hide {
  transform: translateY(100%);
}

.bottom-bar a {
  color: #333;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bottom-bar a span img {
  width: 1.8rem;
  margin: 0 auto .6rem;
}

/* =========================
      Popups / Full menu
   ========================= */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .95);
  color: #fff8f0;
  padding: 2rem;
  overflow-y: auto;
  align-items: flex-end;
}

.popup.show {
  display: flex;
}

.popup .sheet {
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  background: #333;
  color: #fff8f0;
  padding: 1rem 1rem calc(1rem + var(--safe-bottom));
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  transform: translateY(8%);
  animation: sheet-in .24s ease-out forwards;
}

@keyframes sheet-in {
  to {
    transform: translateY(0)
  }
}

#search-popup {
  position: fixed;
  left: 0;
  bottom: -100%;
  width: 100%;
  background: #333;
  color: #fff8f0;
  padding: 2rem;
  z-index: 1500;
  transition: bottom .4s ease;
}

#search-popup.show {
  bottom: 0;
}

#search-popup input,
#search-popup button {
  width: 100%;
  padding: .75rem;
  font-size: 16px;
}

#search-popup button {
  margin-top: .5rem;
  background: #333;
  color: #fff8f0;
}

#full-menu {
  position: fixed;
  left: 0;
  bottom: -100%;
  width: 100%;
  height: 100%;
  background: #333;
  color: #fff8f0;
  padding: 2rem;
  z-index: 1500;
  transition: bottom .4s ease;
  display: block;
}

#full-menu.show {
  bottom: 0;
}

#full-menu ul {
  list-style: none;
}

#full-menu li {
  margin: 1rem 0;
}

#full-menu a {
  color: #fff;
}

#full-menu .close-menu-btn {
  background: #333;
  color: #fff8f0;
  padding: .75rem;
  width: 100%;
  margin-top: 2rem;
  font-size: 16px;
  cursor: pointer;
}

/* =========================
      Main Banner (Swiper)
   ========================= */
.main-banner-swiper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  padding-left: 0;
}

.main-banner-swiper .swiper-slide {
  width: 100%;   /* 90vw 제거 */
  border-radius: 10px;
  overflow: hidden;
}

.main-banner-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
      Footer
   ========================= */
.footer {
  background: #454545;
  color: #fff;
  font-size: 14px;
  padding: 1.2rem 1rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left,
.footer-right {
  flex: 1 1 100%;
}

.main-logo img {
  width: 150px;
  margin-bottom: 1rem;
}

.footer-sns-list {
  display: flex;
  gap: .75rem;
  margin-bottom: 1rem;
}

.footer-sns-list img {
  width: 32px;
  height: 32px;
}

.footer-info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-info-list li {
  white-space: nowrap;
}

.company-info-wrap {
  color: #ccc;
  font-size: 13px;
  line-height: 1.6;
}

.company-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.company-info-row dl {
  display: flex;
  gap: .25rem;
}

.footer-cs-wrap {
  background: #fcfbf3;
  color: #333;
  padding: 1rem;
  border-radius: 6px;
}

.footer-cs-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: .75rem;
}

.cs-info-list {
  margin: 0 0 .75rem 0;
}

.cs-info-list li {
  margin-bottom: .5rem;
}

.cs-info-text {
  font-size: 12px;
  color: #aaa;
}

.copyright-wrap {
  margin-top: 1.5rem;
  font-size: 12px;
  color: #999;
}

.copyright-info {
  line-height: 1.5;
  margin-bottom: .5rem;
}

/* =========================
      Auction Card
   ========================= */
.auction-card {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  cursor: pointer;
}

.auction-card-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.auction-card-thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transform-origin: center;
  transition: transform .35s ease;
  cursor: pointer;
}

.auction-card-thumb:hover img {
  transform: scale(1.2);
}

.badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: .25rem .5rem;
  font-size: 12px;
  border-radius: 999px;
  background: #333;
  color: #fff;
  opacity: .9;
}

.badge.badge-flash {
  background: #ff6a00;
}

.badge.badge-area {
  background: #9ED9CC;
}

.auction-card-title {
  font-size: 15px;
  line-height: 1.35;
  color: #222;
  margin: .5rem 0 .25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  height: calc(1.35em * 2);
}

.auction-card-seller {
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  margin-top: .25rem;
  text-align: right;
}

.seller-link {
  color: #2b6cb0;
  font-weight: 600;
}

.seller-grade {
  background: #fcfbf3;
  color: #2643a0;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.seller-area {
  color: #ff6a00;
  float: left;
}

.auction-card-meta {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.auction-card-meta .label {
  color: #333;
  font-weight: 600;
}

.auction-card-meta .value {
  font-size: 16px;
  color: #111;
}

.auction-card-meta .price,
.auction-card-meta .time,
.auction-card-meta .bids {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #444;
}

.auction-card-meta .bid-count {
  font-weight: 700;
  color: #111;
}

.auction-card-cta {
  display: flex;
  gap: 8px;
  margin-top: .5rem;
}

.btn-bid {
  flex: 1;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #ffa500;
  color: #ffa500;
  transition: background-color .3s ease, color .3s ease;
  padding: 10px;
}

.btn-bid:hover {
  background: #ffa500;
  color: #fff;
}

.countdown {
  font-variant-numeric: tabular-nums;
}

.auction-card.soon .countdown {
  color: #ff3b30;
  font-weight: 700;
}

/* 찜 버튼 */
.wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(0, 0, 0, .25);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
}

.wishlist-btn::before {
  content: "♡";
  font-size: 18px;
  color: #fff;
  line-height: 1;
}

.wishlist-btn.active {
  background: #9ED9CC;
  border-color: #9ED9CC;
}

.wishlist-btn.active::before {
  content: "♥";
  color: #fff;
}

/* PWA */
@media (display-mode: standalone) {
  header {
    padding-top: calc(1rem + var(--safe-top));
  }
}

/* =========================
      Responsive
   ========================= */
@media (max-width:576px) {
  .icon-btn {
    width: 60px;
  }

  .icon-btn img {
    width: 36px;
    height: 36px;
  }

  .icon-btn span {
    font-size: 12px;
  }

  .auction-card-meta {
    display: contents;
  }

  .auction-card-cta {
    display: none;
  }

  .auction-card-thumb img {
    height: 160px;
  }

  .auction-card-title {
    -webkit-line-clamp: 1;
    height: auto;
  }
}

@media (max-width:1023px) {
  .main-track {
    grid-auto-columns: calc((100% - 16px * 1.5) / 2.5);
    cursor: grab;
  }

  .pc-show {
    display: none !important;
  }

  .mo-show {
    display: flex !important;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-info-list {
    flex-direction: column;
    gap: .5rem;
  }

  .company-info-row {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width:768px) {
  .main-track {
    grid-auto-columns: calc((100% - 16px * 1.5) / 2.2);
  }

  .list-wrap .main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .list-side {
    display: block;
  }

  .active-chips {
    order: 1;
  }

  .product-title {
    font-size: 22px;
  }

  .thumb-list button {
    width: 68px;
    height: 68px;
  }

  .current-price strong {
    font-size: 24px;
  }

  /* 팝업 테이블(모바일) */
  #delivery-popup .bid-log-table tr,
  #sellerinfo-popup .bid-log-table tr,
  #sellerinquiry-popup .bid-log-table tr {
    display: block;
    margin-bottom: 10px;
    border: 1px solid #e3e3e3;
  }

  #delivery-popup .bid-log-table th,
  #sellerinfo-popup .bid-log-table th,
  #sellerinquiry-popup .bid-log-table th,
  #delivery-popup .bid-log-table td,
  #sellerinfo-popup .bid-log-table td,
  #sellerinquiry-popup .bid-log-table td {
    display: block;
    width: 100%;
    border: none !important;
    border-bottom: 1px solid #e3e3e3;
  }

  #delivery-popup .bid-log-table th,
  #sellerinfo-popup .bid-log-table th,
  #sellerinquiry-popup .bid-log-table th {
    background: #f9f9f9;
    font-weight: 700;
  }

  #delivery-popup .bid-log-table td:last-child,
  #sellerinfo-popup .bid-log-table td:last-child,
  #sellerinquiry-popup .bid-log-table td:last-child {
    border-bottom: none;
  }

  .form-group {
    flex-direction: column;
  }

  .login-btn {
    width: 100% !important;
    height: 40px;
  }

  .login-extra p {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .login-extra button {
    width: 100%;
  }

  /* join step2 테이블 반응형 */
  #step2 .info-table tr {
    display: block;
    margin-bottom: 12px;
  }

  #step2 .info-table th {
    display: block;
    width: 100%;
    border-bottom: none;
  }

  #step2 .info-table td {
    display: block;
    width: 100%;
    border-top: none;
  }

  #step2 .info-table input,
  #step2 .info-table select,
  #step2 .info-table button {
    width: 100% !important;
    margin-top: 6px;
  }

  /* 마이페이지 검색폼 반응형 */
  .mp-search-form .field-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .mp-search-form .field-label {
    width: auto !important;
  }

  .search-line .flex1,
  .search-line .w120,
  .date-range input[type="date"] {
    width: 100%;
  }

  .table-toolbar {
    justify-content: stretch;
  }

  .mp-status {
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 8px !important;
    justify-content: space-between;
  }

  .mp-status-item {
    flex: 1 1 0;
    min-width: 0 !important;
    padding: 6px 0;
  }

  .mp-status-item .count {
    /* 화면폭에 맞춰 자연 축소 */
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.05;
  }

  .mp-status-item .label {
    font-size: clamp(10px, 2.8vw, 12px);
    white-space: nowrap;
    /* 라벨 자체 줄바꿈 방지 */
  }

  /* 화살표 간격/크기 축소 */
  .mp-status-item::after {
    margin: 0 6px;
    transform: scale(.85);
  }

  /* 마지막 항목 뒤 화살표는 숨김(혹시 안 되어 있으면) */
  .mp-status-item:last-child::after {
    display: none;
  }

  .mp-status-item:not(:last-child)::after {
    right: -14px;
    top: 10px;
  }

  .field-row .date-range {
    flex-wrap: nowrap !important;
  }

  .mp-editor .toastui-editor-defaultUI {
    height: auto;
  }
}

@media (min-width:768px) and (max-width:992px) {
  .detail-gallery .main-image {
    aspect-ratio: 1 / 0.5 !important;
  }
}

@media (max-width:992px) {
  .filter-sidebar {
    display: none;
  }

  .list-side {
    display: block !important;
  }

  .detail-wrap {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width:768px) {
  .main-banner-swiper {
    height: 400px;
  }

  .footer-left {
    flex: 1.5;
  }

  .footer-right {
    flex: 1;
  }
}

@media (min-width:1024px) {
  :root {
    --header-h: 72px;
  }

  .main-banner-swiper {
    height: 500px;
  }

  .main-track {
    overflow-y: hidden;
    grid-auto-columns: calc((100% - 16px * 3) / 4);
  }

  .mo-show {
    display: none !important;
  }

  .detail-info {
    position: static;
  }
}

/* =========================
      Grid / Left Filter
   ========================= */
.list-top {
  max-width: 1200px;
  text-align: center;
  margin: 0 auto;
}

.list-wrap .main-rail {
  overflow: visible;
}


/* pc 기준 리스트 */
.list-wrap .main-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 16px;
}

.list-wrap .main-item {
  flex: none;
  width: 100%;
}

.list-wrap .main-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .38s ease, transform .38s ease;
  transition-delay: calc(var(--col, 0) * 60ms);
}

.list-wrap .main-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.list-side {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 16px;
  align-items: start;
}

.filter-trigger {
  width: 80px;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid #e3e3e3;
  cursor: pointer;
  order: 0;
}

.filter-sidebar {
  position: sticky;
  top: calc(var(--header-h, 60px) + 12px);
  align-self: start;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.list-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-section+.filter-section {
  margin-top: 16px;
}

.filter-section h3,
.filter-section h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.filter-list {
  display: grid;
  gap: 6px;
  color: #333;
}

.filter-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.filter-chips {
  display: grid;
  gap: 6px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.price-row input {
  width: 100%;
}

.price-row .dash {
  opacity: .6;
}

.btn-apply,
.btn-ghost,
.btn-check {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 38px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
  font-weight: 700;
}

.btn-apply {
  text-decoration: underline;
}

.btn-apply:hover {
  filter: brightness(.96);
}

.btn-ghost {
  background: #fff;
  border-color: #e3e3e3;
  color: #333;
}

.active-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
  height: 30px;
  overflow-y: hidden;
}

.active-chips {
  display: flex;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #333;
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.chip .remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: #333;
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.chip .remove:hover {
  background: #333;
}

.price-chip-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.chip-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.chip-btn.active {
  background: #9ED9CC;
  color: #fff;
}

/* 모바일 다이얼로그 */
.filter-dialog[hidden] {
  display: none;
}

.filter-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .45);
  display: grid;
  place-items: end center;
}

.dialog-sheet {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .1);
  transform: translateY(0);
}

.dialog-header,
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.dialog-footer {
  border-top: 1px solid #f0f0f0;
  border-bottom: 0;
  gap: 8px;
}

.dialog-body {
  padding: 12px 16px 20px;
  max-height: min(70vh, 560px);
  overflow: auto;
}

.dialog-header h3 {
  font-size: 16px;
}

.dialog-close,
.btn-check {
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.list-wrap .main-grid:not(.io-ready) .main-item {
  opacity: 1;
  transform: none;
}

/* =========================
      Detail (상품)
   ========================= */
.detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 16px;
}

.breadcrumb {
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  margin-right: .5rem;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb a::after {
  content: "›";
  margin-left: 1.5rem;
  color: #999;
}

.breadcrumb a:last-child::after {
  content: "";
}

.product-title {
  font-size: 28px;
  font-weight: 700;
  margin: 16px 0;
  letter-spacing: -0.02em;
}

.detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.detail-time {
  background: #fff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  cursor: none;
  font-size: 16px;
}

.detail-gallery {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  padding: 16px;
}

.detail-gallery .main-image {
  aspect-ratio: 1/1;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  place-items: center;
  background: #fafafa;
}

.detail-gallery .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.thumb-list {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.thumb-list button {
  border: 0;
  background: transparent;
  padding: 0;
  flex: 1 1 0;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.thumb-list img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform .35s ease;
  will-change: transform;
}

.detail-info {
  position: sticky;
  top: calc(var(--header-h, 60px) + 12px);
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

.price-wrap {
  position: relative;
  display: inline-block;
}

.price-wrap input {
  padding-right: 2em;
}

.price-wrap::after {
  content: "원";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #333;
  font-size: 14px;
}

.current-price {
  font-size: 15px;
  color: #222;
}

.current-price strong {
  font-size: 24px;
}

.remain-time {
  font-size: 13px;
  color: #666;
}

.remain-time small {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.expectation-price strong {
  font-weight: 800;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 16px;
}

.info-table th,
.info-table td {
  padding: 10px 6px;
  vertical-align: middle;
  text-align: left !important;
}

.info-table th {
  width: 110px;
  color: #666;
  white-space: nowrap;
}

.info-table input[type="number"] {
  width: 140px;
  height: 36px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 14px;
}

.info-table .btn-minus,
.info-table .btn-plus {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e3e3e3;
  background: #fff;
  font-size: 16px;
  line-height: 1;
  margin: 0 6px;
  cursor: pointer;
}

.end-abs {
  color: #666;
}

.cta-row {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

/* ⚠️ 공통 .btn-bid / .btn-ghost 클래스를 상세정보 영역에선 스코프해서 사용 */
.detail-info .btn-bid {
  flex: 1 1 auto;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
}

.detail-info .btn-ghost {
  flex: 1 1 auto;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e3e3e3;
  background: #fff;
  color: #444;
  cursor: default;
}

.sub-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.sub-row .wishlist-btn {
  position: unset;
  background: #fff;
  justify-content: center;
}

.sub-row .wishlist-btn::before {
  content: "♡";
  font-size: 18px;
  color: #333;
  line-height: 1;
}

.sub-row .wishlist-btn.active {
  content: "♥";
  color: #333;
  border: 1px solid #e3e3e3;
}

.sub-row .wishlist-btn.active::before {
  content: "♥";
  color: #9ED9CC;
}

.btn-line {
  flex: 1 1 auto;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e3e3e3;
  background: #fff;
  color: #333;
  cursor: pointer;
}

.seller-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #e3e3e3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.seller-box p {
  display: flex;
  align-items: center;
  gap: 4px;
}

.seller-info {
  margin-top: 16px;
}

.detail-desc {
  margin-top: 24px;
}

.detail-desc h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.detail-desc img {
  width: 100%;
  border-radius: 12px;
  margin-top: 10px;
}

/* 상세 팝업 */
.detail-popup[hidden] {
  display: none;
}

.detail-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.popup-content {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.popup-header {
  background: #9ED9CC;
  color: #fff8f0;
}

.popup-header,
.popup-footer {
  padding: 12px 16px;
  border-bottom: 1px solid #e3e3e3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-footer {
  border-top: 1px solid #e3e3e3;
  border-bottom: 0;
  justify-content: center;
  gap: 8px;
}

.popup-footer button {
  width: 120px;
}

.popup-body {
  padding: 16px;
  overflow-y: auto;
}

.popup-body.scrollable {
  max-height: 70vh;
}

.popup-body p {
  line-height: 28px;
}

.popup-close {
  background: none;
  border: 0;
  font-size: 20px;
  cursor: pointer;
}

.bid-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.bid-log-table th {
  background: #fafafa;
}

.bid-log-table th,
.bid-log-table td {
  padding: 8px;
  border: 1px solid #e3e3e3;
  text-align: center;
}

.detail-popup.show {
  display: flex !important;
}

.popup-bidprice {
  font-size: 20px;
  text-align: center;
  margin: 30px auto 20px;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.stars {
  --rating: 0;
  --star-size: 20px;
  --star-color: #ccc;
  --star-background: gold;
  display: inline-block;
  font-size: var(--star-size);
  font-family: Times;
  line-height: 1;
  background: linear-gradient(90deg, var(--star-background) calc(var(--rating)/5*100%), var(--star-color) calc(var(--rating)/5*100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stars::before {
  content: "★★★★★";
}

.score {
  font-size: 14px;
  color: #333;
}

#sellerinquiry-popup .bid-log-table td {
  text-align: left;
}

/* =========================
      Detail Tabs
   ========================= */
.detail-tabs {
  background: #f5f7fa;
  border-bottom: 1px solid #e3e3e3;
  margin-top: 24px;
}

.detail-tabs ul {
  display: flex;
}

.detail-tabs li {
  flex: 1;
  text-align: center;
}

.detail-tabs a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  border-right: 1px solid #e3e3e3;
  transition: background .2s, color .2s;
}

.detail-tabs li:last-child a {
  border-right: none;
}

.detail-tabs a:hover,
.detail-tabs a.active {
  background: #9ED9CC;
  color: #fff;
  font-weight: 700;
}

.tab-content {
  padding: 20px 0;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* =========================
      QnA Table
   ========================= */
.qna-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
}

.qna-table th {
  background: #f8f9fa;
  border: 1px solid #e3e3e3;
  padding: 10px;
  text-align: center;
}

.qna-table td {
  border: 1px solid #e3e3e3;
  padding: 10px;
  text-align: center;
}

.qna-table .empty {
  padding: 30px 0;
  text-align: center;
  color: #666;
  font-style: italic;
}

.qna-footer {
  margin-top: 15px;
  text-align: right;
}

.qna-footer .btn-line {
  padding: 8px 16px;
  border: 1px solid #1a9c81;
  background: #1a9c81;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: .2s;
}

.qna-footer .btn-line:hover {
  background: #14806a;
}

.qna-table th:nth-child(1),
.qna-table td:nth-child(1) {
  width: 8%;
}

.qna-table th:nth-child(2),
.qna-table td:nth-child(2) {
  width: 15%;
}

.qna-table th:nth-child(3),
.qna-table td:nth-child(3) {
  width: auto;
}

.qna-table th:nth-child(4),
.qna-table td:nth-child(4) {
  width: 12%;
}

.qna-table th:nth-child(5),
.qna-table td:nth-child(5) {
  width: 15%;
}

/* =========================
      Login
   ========================= */
.login-wrap {
  margin: 1rem auto;
  padding: 20px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  background: #fafafa;
}

.login-wrap h1 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: left;
}

.form-group {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.form-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-fields input {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  font-size: 14px;
}

.login-btn {
  width: 120px;
  background: #ffa500;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.save-id {
  margin: 10px 0;
  font-size: 14px;
}

.login-extra {
  margin-top: 20px;
}

.login-extra p {
  margin: 10px 0;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-extra button {
  border: 1px solid #333;
  background: #fff;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
}

/* =========================
      Join (약관/인증)
   ========================= */
.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.join-steps {
  margin: 20px 0;
  text-align: center;
}

.join-steps ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: #999;
}

.join-steps li.active {
  font-weight: 700;
  color: #333;
}

.join-agree {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.join-agree h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.agree-all {
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 12px;
  font-weight: 700;
}

.agree-all label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agree-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fafafa;
}

.agree-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
}

.agree-header label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  flex: 1;
}

.agree-header input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.agree-toggle {
  background: none;
  border: 0;
  font-size: 14px;
  cursor: pointer;
  transition: transform .3s;
}

.agree-toggle .arrow {
  display: inline-block;
  transition: transform .3s;
}

.agree-item.open .agree-toggle .arrow {
  transform: rotate(180deg);
}

.agree-content {
  display: none;
  border-top: 1px solid #eee;
  background: #fff;
}

.agree-item.open .agree-content {
  display: block;
}

.agree-scroll {
  max-height: 180px;
  overflow-y: auto;
  padding: 12px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.agree-scroll::-webkit-scrollbar {
  width: 6px;
}

.agree-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.join-footer {
  margin-top: 20px;
  text-align: center;
}

.btn-next {
  background: #1a9c81;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: .2s;
}

.btn-next:hover {
  background: #14806a;
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.btn-auth {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: .25s;
  outline: none;
}

.btn-auth:disabled {
  background: #ddd;
  color: #999;
  cursor: not-allowed;
  border: none;
  box-shadow: none;
}

.btn-auth:not(:disabled) {
  border: 1px solid #1a9c81;
}

.btn-phone {
  background: #1a9c81;
  color: #fff;
}

.btn-phone:hover:not(:disabled) {
  background: #14806a;
}

.btn-naver {
  background: #03c75a;
  color: #fff;
}

.btn-naver:hover:not(:disabled) {
  background: #02a94e;
}

.btn-kakao {
  background: #fee500;
  color: #3c1e1e;
  border: 1px solid #e5c200;
}

.btn-kakao:hover:not(:disabled) {
  background: #fdd835;
}

/* =========================
      My Page (좌측메뉴/요약/검색/테이블)
   ========================= */
.filter-list li.has-sub {
  margin-bottom: 6px;
}

.sub-toggle {
  background: none;
  border: 0;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  padding: 6px 4px;
}

.sub-list {
  display: none;
  margin: 4px 0 8px 10px;
  padding-left: 8px;
  border-left: 2px solid #eee;
}

.sub-list li {
  margin-bottom: 4px;
}

.has-sub.open .sub-list {
  display: block;
  font-size: 14px;
}

.mypage-panel {
  display: none;
}

.mypage-panel.active {
  display: block;
}

.mypage-panel h2 {
  margin-bottom: 12px;
}

/* 상태 패널 토글 */
.mypage-panel .mp-panel {
  display: none;
}

.mypage-panel .mp-panel.active {
  display: block;
}

.mp-panel .pull-left {
  /* float 제거하고 플렉스로 전환 */
  float: none;
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  /* 공간 부족하면 자동 줄바꿈 */
  gap: 4px 12px;
  /* 아이템 간격 */
  font-size: 14px;
  color: #333;
  margin: 10px 0;
}

.mp-panel .pull-left p {
  display: block;
  /* inline-block 대신 block (flex item) */
  margin: 0;
  white-space: nowrap;
  /* 문장 내부는 줄바꿈 안 함 */
}



/* 좌측 메뉴 활성 표시(선택) */
.mypage-link.active {
  font-weight: 700;
  text-decoration: underline;
}

.filter-list .mypage-link.active {
  font-weight: 700;
  color: #1a9c81;
}

.filter-list>li>a,
.filter-list>li>.sub-toggle {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  border-radius: 6px;
  transition: background .2s, color .2s;
}

.mypage-box {
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 20px;
  text-align: center;
}

.mypage-box h3 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 700;
}

.status-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.status-card {
  flex: 1 1 100px;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  border: 1px solid #eee;
}

.status-card .icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.status-card p {
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}

.status-card .count {
  font-size: 18px;
  font-weight: 700;
}

.status-card .blue {
  color: #007bff;
}

.status-card .red {
  color: #dc3545;
}

/* 마이페이지 검색폼/툴바/테이블 확장 */
.mp-note {
  background: #fcfbf3;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0 16px;
}

.mp-search-form {
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  margin-bottom: 12px;
}

.mp-search-form .field-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #f2f2f2;
}

.mp-search-form .field-row:first-child {
  border-top: 0;
}

.mp-search-form .field-label {
  width: 110px;
  color: #666;
  font-weight: 600;
}

.mp-search-form .field-body {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.mp-search-form .radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
}

.mp-search-form .seg-gap {
  margin-left: 12px;
}

.btn-chip {
  border: 1px solid #e3e3e3;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

.date-range input[type="date"] {
  height: 36px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  padding: 0 10px;
}

.date-range .dash {
  margin: 0 6px;
  color: #999;
}

.search-line .w120 {
  width: 120px;
  height: 36px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  padding: 0 10px;
}

.flex1 {
  flex: 1;
  min-width: 180px;
  height: 36px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  padding: 0 10px;
}

.actions .btn-main,
.actions .btn-dark {
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.btn-main {
  background: #1a9c81;
  color: #fff;
  border: 1px solid #1a9c81;
}

.btn-main:hover {
  background: #14806a;
}

.btn-dark {
  background: #444;
  color: #fff;
  border: 1px solid #444;
}

.btn-dark:hover {
  filter: brightness(.95);
}

.mp-panel .pull-left .table-toolbar {
  margin-left: auto;
  /* 같은 줄에선 오른쪽 끝으로 */
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.table-toolbar .right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-toolbar .w120 {
  width: 120px;
  height: 32px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  padding: 0 8px;
}

.table-toolbar .mr6 {
  margin-right: 6px;
  color: #333;
}

.bid-log-table.mp-table {
  margin-bottom: 20px;
}

/* bid-log-table 확장 */

.bid-log-table.mp-table td.left {
  text-align: left;
}

.bid-log-table.mp-table .thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.mp-table-btn {
  margin: 5px 0;
}

.bid-log-table .empty {
  padding: 28px 0;
  text-align: center;
  color: #777;
  font-style: normal;
}

.mp-status {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* ✅ 6등분 */
  align-items: flex-start;
  gap: 34px;
  padding: 8px 0 16px;
  border-bottom: 1px solid #eee;
}

.mp-status-item {
  position: relative;
  min-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #888;
}

.mp-status-item .count {
  font-size: 36px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: .5px;
}

.mp-status-item .label {
  font-size: 14px;
  white-space: nowrap;
}

.mp-status-item:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -20px;
  top: 12px;
  color: #aaa;
  font-size: 20px;
}

/* 활성/호버 */
.mp-status-item.is-active .count,
.mp-status-item.is-active .label {
  color: #1f4ea0;
  font-weight: 700;
}

/* 파랑 포커스 느낌 */
.mp-status-item:focus-visible .count,
.mp-status-item:hover .count {
  color: #1f4ea0;
}

/* 완료 아이콘(원하면 이미지로 교체 가능) */
.ico-check {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 2px solid #444;
  position: relative;
}

.ico-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 12px;
  height: 6px;
  border-left: 3px solid #444;
  border-bottom: 3px solid #444;
  transform: rotate(-45deg);
}

#buy3 .table-top th {
  width: 20%;
}

.btn-basic {
  padding: 5px 10px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  font-size: 14px;
}

.mp-editor .toastui-editor-defaultUI {
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  font-family: 'Wanted Sans Variable', sans-serif;
}

.mp-editor .toastui-editor-toolbar {
  border-bottom: 1px solid #f0f0f0;
}

.btn-minus[disabled],
.btn-plus[disabled],
.btn-minus.is-disabled,
.btn-plus.is-disabled {
  opacity: .4;
  cursor: default;
  pointer-events: none;
}

input.is-disabled {
  background: #f6f6f6;
}

.note-search {
  margin: 10px 0;
}

.rating-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rating-select .stars {
  cursor: pointer;
  display: inline-block;
}

.rating-select .score {
  font-size: 12px;
  color: #666;
}

/* --- 정산 요약(반응형) --- */
.settle-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 24px;
  padding: 12px 16px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  background: var(--card-bg, #fff);
  margin-bottom: 10px;
}

/* 각 항목: 번호 - 라벨 - 값(오른쪽 정렬) - ?(선택) */
.settle-summary .sum-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  /* 긴 텍스트 줄바꿈 허용 */
  padding: 2px 0;
  font-size: clamp(13px, 1.5vw, 15px);
}

.settle-summary .num {
  color: var(--muted, #6b7280);
  flex: 0 0 auto;
}

.settle-summary .label {
  color: var(--text, #374151);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settle-summary .value {
  margin-left: auto;
  /* 값은 오른쪽으로 밀기 */
  font-weight: 700;
  color: var(--strong, #111827);
  flex: 0 0 auto;
}

/* ? 아이콘(옵션) — title 기본 툴팁 활용 */
.settle-summary .qmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  border: 1px solid var(--line, #e5e7eb);
  font-size: 12px;
  line-height: 1;
  color: #6b7280;
  cursor: help;
}

.mp-form {margin-bottom: 20px;}
.mp-form h4 {margin-bottom: 10px;}
.mp-form .mp-row{display:flex; gap:12px; align-items:center; padding:6px 0;}
.mp-form .mp-label{width:120px; flex:0 0 auto; color:#374151;}
.mp-form .mp-input{flex:1 1 auto; width:100%;}
body.modal-open{overflow:hidden;}


.table-scroll{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

.table-scroll table{
    min-width:900px; /* 테이블 최소 너비 */
    white-space:nowrap;
}

@media (max-width:768px){

    .table-scroll table{
        min-width:1000px;
    }

    .mp-table th,
    .mp-table td{
        padding:8px 6px;
        font-size:13px;
    }

    .mp-table .thumb{
        width:50px;
        height:50px;
        object-fit:cover;
    }
}

.table-guide{
    display:none;
}

@media (max-width:768px){
    .table-guide{
        display:block;
        margin-bottom:8px;
        font-size:12px;
        color:#666;
    }
}

.bid-complete {
	display:inline-block;
	padding:6px 14px;
	background:#e60023;
	color:#fff;
	font-size:14px;
	font-weight:800;
	line-height:1;
	border-radius:20px;
	letter-spacing:-0.5px;
	vertical-align:middle;
	box-sizing:border-box;
}