/* main.css - Merged Version */

/* Bid Guide Notice */
.bid-guide-notice {
  text-align: center;
  margin: var(--spacing-md) 0;
}

.bid-guide-notice .btn {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-sm);
}

/* Filter Section */
.filters-container {
  background-color: var(--background-light);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: var(--spacing-md);
  overflow: hidden;
}

/* Filter content - 실제 필터 내용만 패딩 */
.filters-content {
  padding: var(--spacing-md);
}

.search-filter-section {
  margin-bottom: 15px;
}

.search-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.search-container input {
  height: 38px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-sm);
}

.search-container input::placeholder {
  color: #999;
}

/* Filter groups */
.filter-group {
  margin-bottom: var(--spacing-md);
}

.filter-group h2 {
  font-size: var(--font-size-md);
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  font-weight: 600;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  max-height: 200px;
  overflow-y: auto;
}

/* Filter rows */
.filter-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  margin-bottom: 6px; /* Compact layout */
}

.filter-label {
  width: 80px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.filter-content {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
  align-items: center;
}

/* Filter items */
.filter-item {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 10px;
  margin-right: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
  margin-bottom: 0; /* Compact layout */
}

.filter-item input[type="checkbox"] {
  margin: 0;
  margin-right: var(--spacing-xs);
  min-width: 18px;
  min-height: 18px;
}

.filter-item label {
  font-size: 13px;
  cursor: pointer;
  font-size: var(--font-size-sm);
}

/* Rank filter */
#rankFilters .filter-item label {
  font-weight: 600;
}

/* Numbered favorites and auction numbers */
#favoriteFilters .filter-item label,
#aucNumFilters .filter-item label {
  position: relative;
}

/* Filter search */
.filter-search {
  margin-bottom: var(--spacing-sm);
}

#searchButton {
  padding: var(--spacing-sm);
  min-width: 40px;
  border-radius: var(--border-radius-sm);
}

/* Select dropdowns */
select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  font-size: 14px;
  min-width: 200px;
  height: 32px;
}

/* Multiselect container */
.multiselect-container {
  position: relative;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
}

.multiselect-header {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.multiselect-search {
  width: 100%;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.multiselect-body {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
}

.multiselect-body .filter-item {
  margin: 4px 0;
}

.multiselect-all {
  padding: 4px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.multiselect-selected-count {
  margin-left: 5px;
  font-size: 0.8em;
  color: #666;
  font-weight: normal;
}

/* Filter actions */
.filter-actions {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 10px;
}

.reset-filters,
.apply-filters {
  padding: 8px 30px;
  font-size: 14px;
  border-radius: 4px;
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.reset-filters {
  background-color: #f0f0f0;
  color: #333;
  background-color: var(--background-dark);
  color: var(--text-primary);
  margin-left: var(--spacing-sm);
  display: inline-block;
}

.apply-filters {
  background-color: var(--primary-color);
  color: white;
}

/* View Controls */
.view-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.view-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
}

.view-btn.active {
  background-color: var(--primary-color);
  color: white;
}

/* Product Grid and Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background-color: white;
  padding: 0;
  background-color: var(--background-light);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Card Header */
.product-header {
  position: relative;
  padding: 8px;
}

/* Live Auction Product Card */
.product-card[data-bid-type="live"] .product-header {
  background-color: var(--blue-dark);
  color: white;
  padding: 8px;
}

/* Direct Auction Product Card */
.product-card[data-bid-type="direct"] .product-header {
  background-color: var(--green-dark);
  color: white;
  padding: 8px;
}

/* Instant Purchase Product Card */
.product-card[data-bid-type="instant"] .product-header {
  background-color: var(--orange-dark);
  color: white;
  padding: 8px;
}

.product-brand {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.product-title {
  font-size: var(--font-size-sm);
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: calc(1.3em * 2); /* 2줄 고정 높이 */
  min-height: calc(1.3em * 2);
  margin-right: 50px;
  margin-bottom: 0;
  word-break: break-word;
}

.product-name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-top: var(--spacing-xs);
  line-height: 1.4;
}

.higher-bid-alert {
  background-color: #ff4d4d;
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  animation: pulse 2s infinite;
}

/* Additional info labels */
.info-label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.info-value {
  font-size: var(--font-size-md);
  font-weight: 600;
}

/* Auction info */
.auction-info {
  position: absolute;
  top: 12px;
  right: 12px;
  text-align: center;
}

.auction-number {
  width: 28px;
  height: 28px;
  background-color: white;
  color: var(--blue-dark);
  border-radius: var(--border-radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 600;
  margin-left: var(--spacing-xs);
  position: relative;
  padding-bottom: 8px;
}

.product-card[data-bid-type="direct"] .auction-number {
  color: var(--green-dark);
}

.product-card[data-bid-type="instant"] .auction-number {
  color: var(--orange-dark);
}

.auction-number span {
  font-size: 10px;
  margin-left: 1px;
}

.auction-type-circle {
  width: 36px;
  height: 36px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  margin-top: 5px;
  color: var(--blue-dark);
}

.product-card[data-bid-type="direct"] .auction-type-circle {
  color: var(--green-dark);
}

.product-card[data-bid-type="instant"] .auction-type-circle {
  color: var(--orange-dark);
}

.auction-type {
  font-size: var(--font-size-xs);
  background-color: rgba(255, 255, 255, 0.2);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
}

.auction-type-indicator {
  font-size: 10px;
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 4px;
  border-radius: 8px;
  white-space: nowrap;
}

/* auction-number에 auc_num이 없을 때 (관리자가 아닐 때) - 원 모양 유지하면서 가운데 표시 */
.auction-number.no-auc-num {
  padding-bottom: 0; /* 기본 padding-bottom 제거 */
}

.auction-number.no-auc-num .auction-type-indicator {
  position: static;
  transform: none;
  font-size: 11px;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  display: inline-block;
}

/* List view에서 auction-type-indicator 조정 */
.product-grid.list-view .auction-type-indicator {
  display: none; /* list view에서는 숨김 - 공간 절약 */
}

/* Product Image */
.product-image-container {
  position: relative;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background-color: #f9f9f9;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Product Rank */
.product-rank {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 36px;
  height: 36px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-circle);
  font-weight: 600;
  font-size: var(--font-size-md);
}

/* Bid Timer */
.bid-timer {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  background-color: #e6f7ff;
  font-size: 11px;
  color: var(--primary-color);
  text-align: center;
  font-weight: 500;
}

.bid-timer .scheduled-date {
  font-weight: 400;
}

.bid-timer .remaining-time {
  font-weight: 600;
}

.bid-timer.near-end {
  background-color: #ffebeb;
  color: #cc0000;
  color: var(--error-color);
}

/* 타이머 정보 아이콘 스타일 */
.timer-info-icon {
  display: inline-flex;
  align-items: center; /* 수직 가운데 정렬 */
  margin-left: 2px; /* 간격 줄임 */
  cursor: help;
  color: #777;
  font-size: 0.9em;
  position: relative;
  vertical-align: middle; /* 텍스트와 수직 정렬 */
  line-height: 1;
}

.timer-info-icon i {
  line-height: 1; /* 아이콘의 라인 높이 조정 */
}

.timer-info-icon:hover {
  color: #007bff;
}

/* 툴팁 컨테이너를 fixed 포지션으로 설정하여 카드 경계를 무시하도록 함 */
.tooltip-container {
  position: fixed;
  z-index: var(--z-tooltip);
  pointer-events: none;
  display: none;
  width: auto;
  max-width: 200px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
  white-space: pre-line;
  line-height: 1.4;
  font-weight: normal;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 툴팁 화살표 */
.tooltip-container::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

/* bid-timer 내부의 요소 정렬 개선 */
.bid-timer {
  display: flex;
  justify-content: space-between;
  align-items: center; /* 수직 중앙 정렬 추가 */
  position: relative; /* 상대적 위치 설정 */
}

.bid-timer .scheduled-date {
  flex: 1;
  text-align: left;
}

[data-bid-type="direct"] .bid-timer .remaining-time {
  margin-right: 20px; /* 물음표 아이콘을 위한 공간 확보 */
  text-align: right;
}

.bid-timer .timer-info-icon {
  position: absolute;
  right: 8px; /* 오른쪽 여백 */
  top: 50%;
  transform: translateY(-50%); /* 수직 중앙 정렬 */
}

/* Product Details */
.product-details {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-details .detail-item {
  margin-bottom: var(--spacing-sm);
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-sm);
}

/* Product Info Grid */
.product-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.info-cell {
  padding: 8px 4px;
  font-size: 12px;
  border-right: 1px solid #eee;
}

.info-cell:last-child {
  border-right: none;
}

/* Wishlist Buttons */
.wishlist-buttons {
  display: flex;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  gap: 1px;
  border-bottom: 1px solid var(--border-color);
}

.wishlist-btn {
  flex: 1;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-xs);
  background-color: var(--background-light);
  color: var(--text-secondary);
  border: none;
  border-right: 1px solid #eee;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.wishlist-btn:last-child {
  border-right: none;
}

.wishlist-btn.active {
  background-color: var(--accent-color);
  color: #8f7200;
}

.wishlist-btn:hover {
  background-color: #f5f5f5;
}

/* Bid Section */
.bid-section {
  padding: 8px;
}

.price-info {
  margin-bottom: 8px;
}

.real-time-price,
.first-price,
.second-price,
.my-bid-price,
.bid-price-info,
.final-price {
  margin-bottom: var(--spacing-xs);
}

.real-time-price p,
.bid-price-info p,
.final-price p {
  font-weight: 500;
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-xs);
}

.price-label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.price-value {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.price-detail {
  display: block;
  font-size: 11px;
  color: #cc0000;
}

.price-details-container {
  font-size: var(--font-size-xs);
  color: var(--error-color);
}

/* Bid Info Styles */
.bid-info {
  margin-bottom: var(--spacing-sm);
}

.modal-content .bid-info.live {
  border-left: 3px solid var(--blue-dark);
  padding-left: var(--spacing-sm);
}

.modal-content .bid-info.direct {
  border-left: 3px solid var(--green-dark);
  padding-left: var(--spacing-sm);
}

.modal-content .bid-info.instant {
  border-left: 3px solid var(--orange-dark);
  padding-left: var(--spacing-sm);
}

/* Bid Input */
.bid-input-container {
  margin-top: 10px;
  margin-top: var(--spacing-sm);
}

.bid-input-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
  padding: 0 var(--spacing-sm);
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  font-size: var(--font-size-xs);
  white-space: nowrap;
}

/* Bid 컴포넌트는 common.css에서 관리 */

/* ============================================================
   Instant Purchase (바로 구매) Styles
   ============================================================ */

/* 카드 바로구매 버튼 */
.instant-purchase-btn {
  width: 100%;
  padding: 10px 16px;
  background-color: var(--orange-dark);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.instant-purchase-btn:hover {
  background-color: #b34a00;
  transform: translateY(-1px);
}

.instant-purchase-btn:active {
  transform: translateY(0);
}

.instant-purchase-btn:disabled {
  background-color: #999;
  cursor: not-allowed;
  transform: none;
}

.instant-purchase-btn.loading {
  opacity: 0.8;
  pointer-events: none;
}

/* 카드 바로구매 가격 컨테이너 */
.instant-purchase-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.instant-purchase-card .instant-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 2px;
}

.instant-purchase-card .instant-price-label {
  font-size: 12px;
  color: #666;
}

.instant-purchase-card .instant-price-yen {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.instant-purchase-card .instant-price-krw {
  font-size: 11px;
  color: var(--error-color);
  text-align: right;
  padding: 0 2px;
}

/* 구매완료 배지 */
.instant-purchased-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  background-color: #f0f7f0;
  border: 1px solid #a8d5a8;
  border-radius: var(--border-radius-sm);
  color: #2e7d32;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.instant-purchased-badge::before {
  content: "✓";
  font-size: 14px;
  font-weight: 700;
}

/* 모달 바로구매 섹션 */
.instant-purchase-modal {
  padding: var(--spacing-sm);
}

.instant-purchase-modal .instant-price-display {
  margin-bottom: var(--spacing-sm);
}

.instant-purchase-modal .instant-price-main {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 2px;
}

.instant-purchase-modal .instant-price-sub {
  font-size: var(--font-size-sm);
  color: var(--error-color);
}

.instant-purchase-modal .instant-purchase-btn {
  padding: 12px 20px;
  font-size: var(--font-size-md);
}

.instant-purchase-modal .instant-status-info {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  background-color: #f8f9fa;
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* 구매 확인 오버레이 */
.instant-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

.instant-confirm-dialog {
  background: white;
  border-radius: var(--border-radius-md);
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.2s ease;
}

.instant-confirm-dialog h3 {
  margin: 0 0 16px;
  font-size: 18px;
  color: #333;
}

.instant-confirm-dialog .confirm-price-info {
  background-color: #fff8f0;
  border: 1px solid #ffe0c0;
  border-radius: var(--border-radius-sm);
  padding: 12px;
  margin-bottom: 16px;
}

.instant-confirm-dialog .confirm-price-info p {
  margin: 4px 0;
  font-size: var(--font-size-sm);
}

.instant-confirm-dialog .confirm-price-info .confirm-price-main {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange-dark);
}

.instant-confirm-dialog .confirm-price-info .confirm-price-krw {
  color: var(--error-color);
  font-size: var(--font-size-sm);
}

.instant-confirm-dialog .confirm-warning {
  font-size: 12px;
  color: #999;
  margin-bottom: 16px;
}

.instant-confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.instant-confirm-actions button {
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color var(--transition-fast);
}

.instant-confirm-actions .confirm-cancel {
  background-color: #f0f0f0;
  color: #666;
}

.instant-confirm-actions .confirm-cancel:hover {
  background-color: #e0e0e0;
}

.instant-confirm-actions .confirm-buy {
  background-color: var(--orange-dark);
  color: white;
}

.instant-confirm-actions .confirm-buy:hover {
  background-color: #b34a00;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md) 0;
}

.pagination button {
  min-width: 38px;
  min-height: 38px;
  padding: var(--spacing-xs);
  font-size: var(--font-size-sm);
  border-radius: var(--border-radius-sm);
  background-color: white;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.pagination button.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Notice Section */
.notice-section {
  background-color: white;
  padding: var(--spacing-md);
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--spacing-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.notice-section h2 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-sm);
}

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

.notice-list li {
  padding: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.notice-list li:hover {
  background-color: #f5f5f5;
}

/* Detail Modal */
.modal-body {
  display: flex;
  flex-direction: column;
}

.modal-columns {
  display: flex;
  gap: var(--spacing-md);
}

.modal-left,
.modal-right {
  width: 50%;
  padding: var(--spacing-md);
}

.main-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background-color: #f9f9f9;
  margin-bottom: var(--spacing-md);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.main-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-circle);
  z-index: var(--z-base);
  opacity: 0.8;
  font-weight: bold;
  font-size: 20px;
  border: none;
  cursor: pointer;
}

.image-nav.prev {
  left: var(--spacing-md);
}

.image-nav.next {
  right: var(--spacing-md);
}

.thumbnail-container {
  display: flex;
  gap: var(--spacing-xs);
  overflow-x: auto;
  padding-bottom: var(--spacing-xs);
}

.thumbnail {
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: var(--border-radius-xs);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.thumbnail.active {
  border-color: var(--primary-color);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
  display: none;
  /* 모바일 헤더 내에서 스타일 적용됨 */
}

/* Dropdown Menu Styles */
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  z-index: var(--z-content);
  display: none;
  min-width: 150px;
}

.dropdown-content.active {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
}

/* List View Styles */
.product-grid.list-view {
  grid-template-columns: 1fr;
  gap: 8px;
}

.product-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  grid-template-areas:
    "image header price-info"
    "image timer timer"
    "image content content"
    "image actions actions";
  height: auto;
  gap: 12px;
  padding: 12px;
  align-items: start;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--background-light);
}

.product-grid.list-view .product-header {
  grid-area: header;
  padding: 0;
  background-color: transparent !important;
  color: var(--text-primary) !important;
  margin-right: 0;
  position: relative;
}

.product-grid.list-view .product-image-container {
  grid-area: image;
  padding-top: 0;
  height: 120px;
  min-height: 120px;
  width: 120px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.product-grid.list-view .product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f9f9f9;
}

.product-grid.list-view .product-info-grid {
  grid-area: price-info;
  display: flex;
  flex-direction: column;
  border: none;
  justify-content: flex-start;
  gap: 4px;
  align-items: flex-end;
  min-width: 110px;
}

.product-grid.list-view .info-cell {
  border-right: none;
  border-bottom: 1px solid #f0f0f0;
  padding: 4px 0;
  text-align: right;
  width: 100%;
  min-width: 90px;
}

.product-grid.list-view .info-cell:last-child {
  border-bottom: none;
}

.product-grid.list-view .bid-section {
  grid-area: actions;
  padding: 8px 0 0 0;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-grid.list-view .bid-input-container {
  margin-top: 0;
}

.product-grid.list-view .quick-bid-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-start;
}

.product-grid.list-view .quick-bid-btn {
  flex: 0 1 auto;
  padding: 4px 8px;
  font-size: 11px;
  min-width: 60px;
}

.product-grid.list-view .bid-input {
  font-size: 12px;
}

.product-grid.list-view .wishlist-buttons {
  grid-area: content;
  padding: 0;
  border: none;
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.product-grid.list-view .product-brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.product-grid.list-view .product-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  margin-right: 0;
  margin-top: 0;
  color: var(--text-primary);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}

.product-grid.list-view .auction-number {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  font-size: 12px;
  z-index: var(--z-base);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.product-grid.list-view .product-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  font-size: 12px;
  z-index: var(--z-base);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.product-grid.list-view .bid-timer {
  grid-area: timer;
  padding: 4px 8px;
  font-size: 11px;
  margin-top: 4px;
  width: 100%;
  text-align: center;
  border-radius: var(--border-radius-sm);
}

.product-grid.list-view .wishlist-btn {
  flex: 1;
  padding: 4px 6px;
  font-size: 11px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background-color: #f8f9fa;
  transition: all var(--transition-fast);
}

.product-grid.list-view .wishlist-btn:hover {
  background-color: #e9ecef;
  border-color: var(--primary-color);
}

.product-grid.list-view .wishlist-btn.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #8f7200;
  font-weight: 600;
}

/* Value Page Special Styles */
.value-page .product-card {
  position: relative;
}

.value-page .product-card .bid-timer {
  display: none; /* Hide timer on value page */
}

.value-page .product-grid.list-view .price-info {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 10px;
}

.value-page .product-grid.list-view .price-label {
  font-weight: 600;
  display: inline;
  margin-right: 5px;
}

.value-page .product-grid.list-view .price-value {
  font-size: 16px;
  font-weight: 600;
  display: inline;
}

.value-page .product-grid.list-view .edit-price-icon {
  padding: 0;
  margin-left: 5px;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
}

/* Filter header and close button */
.filters-header {
  position: sticky;
  top: 0;
  background-color: var(--primary-color);
  color: white;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-lg);
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: var(--z-header);
  display: none;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
}

.filter-close-btn {
  width: 40px;
  height: 40px;
  color: white;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-sm);
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: normal;
  cursor: pointer;
  padding: 0;
  min-height: 40px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

/* Hover effect enhancement */
.filter-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Focus style for close button */
.filter-close-btn:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Filter backdrop style */
.filter-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--z-dropdown);
  display: none;
  touch-action: none; /* Prevent touch events */
}

/* Show header when filter container is active */
.filters-container.filter-active .filters-header {
  display: flex;
}

/* Only show button when filter container is active */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal-body {
    flex-direction: column;
  }

  .modal-left,
  .modal-right {
    width: 100%;
  }

  .modal-left {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal);
    background-color: var(--background-light);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
  }

  .filters-container.filter-active {
    transform: translateX(0);
  }

  /* 필터 액션 버튼 위치 고정 및 스타일 개선 */
  .filter-actions {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: var(--z-mobile-menu);
    margin-top: auto;
    border-top: 1px solid var(--border-color);
  }

  .reset-filters,
  .apply-filters {
    flex: 1;
    margin: 0 5px;
  }

  /* 멀티셀렉트 컨테이너 너비 제한 */
  .multiselect-container {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* 브랜드, 카테고리 필터 레이아웃 개선 */
  .filter-row {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
  }

  .filter-label {
    width: 100%;
    margin-bottom: 5px;
    font-weight: 600;
  }

  .filter-content {
    width: 100%;
  }

  /* 멀티셀렉트 내부 스크롤 최적화 */
  .multiselect-body {
    max-height: 150px;
  }

  /* 필터 아이템 가독성 개선 */
  .filter-item label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
  }

  .mobile-filter-toggle {
    /* 모바일 헤더 내에서 스타일 적용됨 */
  }

  /* Bid 컴포넌트 반응형은 common.css에서 관리 */

  /* 즐겨찾기와 출품사 라벨 포지셔닝 수정 */
  #favoriteFilters .filter-item label,
  #aucNumFilters .filter-item label {
    position: relative;
    white-space: nowrap;
    overflow: visible; /* overflow: hidden 해제 */
    display: flex;
    align-items: center;
  }
}

@media (max-width: 768px) {
  /* 뷰 컨트롤 영역 반응형 개선 */
  .view-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 6px; /* 80% of var(--spacing-sm) 8px */
    margin-bottom: 12px; /* 80% of var(--spacing-md) 16px */
  }

  .items-per-page {
    grid-column: 1;
    grid-row: 1;
  }

  .sort-options {
    grid-column: 2;
    grid-row: 1;
  }

  .view-type {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: center;
    gap: 6px; /* 80% of var(--spacing-sm) 8px */
  }

  .items-per-page select,
  .sort-options select {
    width: 100%;
  }

  .view-type .view-btn {
    flex: 0 0 auto;
    min-width: 35px; /* 80% of 44px */
    height: 35px; /* 80% of 44px */
  }

  /* 모바일에서 auction-type-indicator 위치 조정 */
  .auction-type-indicator {
    font-size: 8px;
    bottom: -2px;
    padding: 1px 2px;
  }

  .modal-body {
    flex-direction: column;
    padding: 8px; /* 80% of 10px */
  }

  .modal-left,
  .modal-right {
    width: 100%;
    padding: 8px; /* 80% of 10px */
  }

  .thumbnail {
    width: 32px; /* 80% of 40px */
    height: 32px; /* 80% of 40px */
  }

  .image-nav {
    width: 26px; /* 80% of 32px */
    height: 26px; /* 80% of 32px */
    font-size: 14px; /* 80% of 18px */
  }

  .image-nav.prev {
    left: 4px; /* 80% of 5px */
  }

  .image-nav.next {
    right: 4px; /* 80% of 5px */
  }

  /* Dropdown position adjustment */
  .dropdown-content {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: var(--z-dropdown);
    -webkit-overflow-scrolling: touch;
  }

  .product-grid.list-view .product-card {
    grid-template-columns: 72px 1fr; /* 80% of 90px */
    grid-template-areas:
      "image header"
      "image price-info"
      "timer timer"
      "content content"
      "actions actions";
    gap: 8px; /* 80% of 10px */
    padding: 8px; /* 80% of 10px */
  }

  .product-grid.list-view .product-image-container {
    height: 72px; /* 80% of 90px */
    width: 72px; /* 80% of 90px */
  }

  .product-grid.list-view .product-info-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 6px;
  }

  .product-grid.list-view .info-cell {
    min-width: auto;
    flex: 1;
    text-align: center;
    padding: 4px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius-sm);
    border-bottom: none;
  }

  .product-grid.list-view .product-brand {
    font-size: 13px;
  }

  .product-grid.list-view .product-title {
    font-size: 13px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .product-grid.list-view .auction-number {
    width: 26px;
    height: 26px;
    font-size: 10px;
    top: 6px;
    right: 6px;
  }

  .product-grid.list-view .product-rank {
    width: 26px;
    height: 26px;
    font-size: 10px;
    top: 6px;
    left: 6px;
  }

  .product-grid.list-view .wishlist-buttons {
    gap: 4px;
    margin-top: 8px;
  }

  .product-grid.list-view .wishlist-btn {
    padding: 6px 4px;
    font-size: 10px;
  }

  .product-grid.list-view .bid-timer {
    grid-area: timer;
    padding: 6px 12px;
    font-size: 11px;
    margin-top: 4px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .product-grid.list-view .bid-timer {
    padding: 4px 8px;
    font-size: 11px;
    margin-top: 4px;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px; /* 80% of var(--spacing-xs) 8px */
  }

  .product-card {
    max-width: 100%;
    font-size: 0.9em;
  }

  .wishlist-btn {
    font-size: 10px; /* 80% of var(--font-size-xs) 12px */
    padding: 6px; /* 80% of var(--spacing-xs) 8px */
  }

  /* Bid 컴포넌트 반응형은 common.css에서 관리 */

  .product-title {
    font-size: 12px;
    margin-right: 32px;
  }

  .product-brand {
    font-size: 12px;
  }

  .auction-number {
    width: 22px; /* 80% of 28px */
    height: 22px; /* 80% of 28px */
    font-size: 10px; /* 80% of 12px */
  }

  .product-header {
    padding: 5px; /* 80% of 6px */
  }

  .bid-timer {
    padding: 2px 5px;
    font-size: 10px;
  }

  .info-cell {
    padding: 3px 2px; /* 80% of 4px 2px */
  }

  .info-label {
    font-size: 10px;
  }

  .info-value {
    font-size: 13px;
  }

  .info-price-detail {
    font-size: 10px;
  }

  .wishlist-btn {
    font-size: 10px;
    padding: 4px 2px;
  }

  /* Bid 컴포넌트 반응형은 common.css에서 관리 */

  /* Compact bid section */
  .bid-section {
    padding: 5px; /* 80% of 6px */
  }

  /* 필터 레이블과 컨텐츠 간격 조정 */
  .filter-label {
    font-size: 12px;
    padding: 2px 0;
  }

  /* 브랜드, 카테고리 옵션 크기 조정 */
  .multiselect-container {
    font-size: 10px; /* 80% of 13px */
  }

  .multiselect-search {
    height: 26px; /* 80% of 32px */
    font-size: 10px; /* 80% of 13px */
  }

  /* 체크박스 아이템 높이 조정 */
  .filter-item {
    padding: 2px 0;
  }

  /* 액션 버튼 패딩 줄이기 */
  .filter-actions {
    padding: 6px 8px; /* 80% of 8px 10px */
  }

  .reset-filters,
  .apply-filters {
    padding: 6px 0;
    font-size: 12px;
  }

  /* List View Mobile Optimizations */
  .product-grid.list-view .product-card {
    grid-template-columns: 60px 1fr; /* 80% of 75px */
    grid-template-areas:
      "image header"
      "image price-info"
      "timer timer"
      "content content"
      "actions actions";
    gap: 6px; /* 80% of 8px */
    padding: 6px; /* 80% of 8px */
  }

  .product-grid.list-view .product-image-container {
    height: 60px; /* 80% of 75px */
    width: 60px; /* 80% of 75px */
  }

  .product-grid.list-view .product-brand {
    font-size: 11px;
  }

  .product-grid.list-view .product-title {
    font-size: 11px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .product-grid.list-view .info-cell {
    padding: 3px 2px;
    font-size: 10px;
  }

  .product-grid.list-view .info-label {
    font-size: 10px;
  }

  .product-grid.list-view .info-value {
    font-size: 11px;
  }

  .product-grid.list-view .auction-number {
    width: 18px;
    height: 18px;
    font-size: 10px;
    top: 3px;
    right: 3px;
  }

  .product-grid.list-view .product-rank {
    width: 18px;
    height: 18px;
    font-size: 10px;
    top: 3px;
    left: 3px;
  }

  .product-grid.list-view .wishlist-btn {
    padding: 3px 2px;
    font-size: 10px;
  }

  .product-grid.list-view .bid-timer {
    grid-area: timer;
    padding: 4px 6px;
    font-size: 10px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .product-grid.list-view .bid-timer .scheduled-date,
  .product-grid.list-view .bid-timer .remaining-time {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  /* 모바일 환경에서 매우 작은 화면을 위한 추가 최적화 */
  .view-controls {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .items-per-page {
    grid-column: 1;
    grid-row: 1;
  }

  .sort-options {
    grid-column: 1;
    grid-row: 2;
  }

  .view-type {
    grid-column: 1;
    grid-row: 3;
  }

  .filter-close-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  /* 페이지네이션 크기 축소 */
  .pagination {
    gap: 4px;
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) 0;
  }

  .pagination button {
    min-width: 28px;
    min-height: 28px;
    padding: 4px;
    font-size: 12px;
  }
}

/* 입찰 버튼 로딩 스타일 */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.bid-button.loading {
  background-color: #888;
  cursor: wait;
}

/* Single card layout improvement */
@media (max-width: 350px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .view-controls {
    gap: var(--spacing-xs);
  }

  .product-card {
    font-size: 0.9em;
  }

  .auction-number {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
}

/* 경매장별 특화 스타일 - common.css에서 관리 */

/* 브랜드옥션 스타일 */
.quick-bid-buttons.brand-auction .increment-500:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
}

.quick-bid-buttons.brand-auction .increment-500:disabled:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: var(--z-tooltip);
  margin-bottom: 5px;
}

.bid-info-tooltip {
  font-size: 11px;
  color: #666;
  text-align: center;
  margin-top: 5px;
  padding: 4px;
  background: #f5f5f5;
  border-radius: 3px;
}

/* 스타옥션 스타일 */
.quick-bid-buttons.star-auction {
  display: flex;
  justify-content: center;
}

.auto-minimum-bid-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  min-width: 120px;
}

.auto-minimum-bid-btn:hover {
  background: #0056b3;
}

.auto-minimum-bid-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* 스타옥션 컨테이너 스타일 */
.star-auction-container {
  padding: 15px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-top: 10px;
}

.star-auction-info {
  text-align: center;
  margin-bottom: 15px;
}

.star-auction-info p {
  margin: 0;
  color: #495057;
  font-size: 14px;
  line-height: 1.4;
}

/* 모바일 툴팁 스타일 */
.mobile-tooltip {
  position: fixed;
  z-index: var(--z-tooltip);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 14px;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-tooltip .tooltip-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-tooltip .tooltip-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.mobile-tooltip .tooltip-message {
  line-height: 1.4;
}

/* 모바일에서 브랜드옥션 버튼 특별 처리 */
@media (max-width: 768px) {
  .quick-bid-buttons.brand-auction .increment-500:disabled::after {
    display: none; /* 모바일에서는 hover 툴팁 숨김 */
  }
}

/* Footer Styles */
.main-footer {
  background-color: var(--background-light);
  border-top: 1px solid var(--border-color);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl) 0 var(--spacing-md) 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: var(--spacing-xl);
}

.footer-section.escrow-info {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-section h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.footer-section h4 {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.company-details,
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.company-row,
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  line-height: 1.5;
}

.company-row .label,
.contact-row .label {
  min-width: 120px;
  font-weight: 500;
  color: var(--text-primary);
  flex-shrink: 0;
}

.company-row .value,
.contact-row .value {
  flex: 1;
}

.contact-row .value a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-row .value a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-bottom .copyright {
  margin: 0;
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: left;
  }

  .company-row,
  .contact-row {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .company-row .label,
  .contact-row .label {
    min-width: auto;
    font-weight: 600;
  }
}

@media (max-width: 480px) {
  .main-footer {
    padding: var(--spacing-lg) 0 var(--spacing-sm) 0;
  }

  .footer-content {
    padding: 0 var(--spacing-sm);
  }

  .footer-section h3 {
    font-size: var(--font-size-md);
  }

  .footer-section h4 {
    font-size: var(--font-size-sm);
  }
}

/* ============================================
   회원가입 팝업 버튼 (비로그인 사용자용)
   ============================================ */
.signup-popup-button {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);

  background-color: var(--primary-color);
  color: white;

  padding: 12px 24px;
  border-radius: var(--border-radius-sm);

  display: none; /* 기본 숨김 */
  align-items: center;
  gap: 8px;

  font-size: var(--font-size-md);
  font-weight: 500;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 999;

  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
  border: none;
  outline: none;
}

.signup-popup-button:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.signup-popup-button:active {
  background-color: var(--primary-hover);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.signup-popup-button.show {
  display: flex;
}

.signup-popup-button i {
  font-size: var(--font-size-lg);
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .signup-popup-button {
    bottom: 20px;
    padding: 10px 20px;
    font-size: var(--font-size-sm);
  }

  .signup-popup-button i {
    font-size: var(--font-size-md);
  }
}

/* ============================================
   로그인 필수 모달 (심플 버전)
   ============================================ */
.login-required-modal {
  max-width: 420px !important;
  padding: 0 !important;
  border-radius: var(--border-radius-md) !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.login-required-modal .modal-header {
  background-color: var(--primary-color);
  color: white;
  padding: 28px 24px;
  text-align: center;
  border-bottom: none;
  position: relative;
}

.login-required-modal .modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.login-required-modal .modal-header .close {
  position: absolute;
  right: 16px;
  top: 20px;
  color: white;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.login-required-modal .modal-header .close:hover {
  opacity: 1;
}

.login-required-modal .modal-body {
  padding: 36px 28px;
  text-align: center;
  background-color: white;
}

.login-required-modal .modal-body p {
  margin: 0 0 28px 0;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.6;
  letter-spacing: -0.2px;
}

.login-required-modal .login-required-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.login-required-modal .btn {
  flex: 1;
  max-width: 140px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
  letter-spacing: -0.2px;
}

.login-required-modal .btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.login-required-modal .btn-primary:hover {
  background-color: var(--primary-hover);
}

.login-required-modal .btn-secondary {
  background-color: #f5f5f5;
  color: var(--text-secondary);
  border: 1px solid #e0e0e0;
}

.login-required-modal .btn-secondary:hover {
  background-color: #ebebeb;
  border-color: #d0d0d0;
}

/* 모바일 대응 */
@media (max-width: 480px) {
  .login-required-modal {
    max-width: 90% !important;
    margin: 0 5% !important;
  }

  .login-required-modal .modal-header {
    padding: 24px 20px;
  }

  .login-required-modal .modal-header h2 {
    font-size: 17px;
  }

  .login-required-modal .modal-body {
    padding: 28px 20px;
  }

  .login-required-modal .modal-body p {
    font-size: 14px;
  }

  .login-required-modal .login-required-actions {
    flex-direction: column;
    gap: 8px;
  }

  .login-required-modal .btn {
    max-width: 100%;
  }
}

/* 모바일 대응 */
@media (max-width: 480px) {
  .login-required-modal {
    max-width: 90% !important;
    margin: 0 5% !important;
  }

  .login-required-modal .modal-header {
    padding: 20px;
  }

  .login-required-modal .modal-header h2 {
    font-size: var(--font-size-md);
  }

  .login-required-modal .modal-body {
    padding: 24px 16px;
  }

  .login-required-modal .login-required-actions {
    flex-direction: column;
  }

  .login-required-modal .btn {
    max-width: 100%;
  }
}

/* 유사 낙찰 시세 섹션 */
.similar-prices-section {
  border-top: 1px solid #e5e7eb;
  padding: 16px 24px 20px;
}

.similar-prices-header {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.similar-prices-content {
  font-size: 12px;
}

.price-estimate {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: #f0f9ff;
  border-radius: 6px;
  font-size: 12px;
}

.price-estimate .estimated-price strong {
  color: #0369a1;
  font-size: 14px;
}

.price-estimate .price-range {
  color: #6b7280;
}

.price-estimate .confidence {
  color: #6b7280;
  font-size: 11px;
}

.similar-prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.similar-price-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
}

.similar-price-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.similar-price-card .card-rank {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.similar-price-card .card-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #374151;
  font-size: 12px;
}

.similar-price-card .card-price {
  font-weight: 700;
  color: #0369a1;
  font-size: 14px;
}

.similar-price-card .card-date {
  color: #9ca3af;
  font-size: 11px;
}
