/* ===== 섹션 간격 ===== */
.product-section { margin-bottom: 70px; }

/* ===== 스켈레톤 카드 ===== */
.product-card-skeleton { pointer-events: none; cursor: default; }
.product-card-skeleton .product-image {
    /* product-image는 aspect-ratio:1 + shimmer를 style.css에서 이미 가짐 */
    animation: skeletonShimmer 1.4s infinite;
}
.product-card-skeleton .product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-card-skeleton .skeleton-title,
.product-card-skeleton .skeleton-text {
    display: block;
}

/* ===== 필터 바 ===== */
.filter-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 28px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e8edf2;
    border-radius: 8px;
}
.filter-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.filter-left { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    outline: none;
}
.filter-select:focus { border-color: #007bff; }
.filter-reset-btn {
    padding: 8px 16px;
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}
.filter-reset-btn:hover { border-color: #007bff; color: #007bff; }

.filter-right { display: flex; align-items: center; gap: 8px; }
.filter-sort-label { font-size: 13px; color: #666; white-space: nowrap; }

.distance-hint {
    margin-top: 10px;
    padding: 7px 12px;
    background: #e8f4ff;
    border-radius: 4px;
    font-size: 13px;
    color: #007bff;
}

/* 섹션 탭 */
.filter-section-tabs {
    display: flex;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid #e8edf2;
    margin-top: 12px;
}
.fsection-tab {
    padding: 5px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.fsection-tab.active { background: #007bff; border-color: #007bff; color: #fff; }
.fsection-tab:hover:not(.active) { border-color: #007bff; color: #007bff; }

/* ===== 카테고리 탭 ===== */
.category-tab-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.category-tab-bar::-webkit-scrollbar { display: none; }
.category-tab {
    padding: 6px 18px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.category-tab.active, .category-tab:hover { background: #007bff; border-color: #007bff; color: #fff; }

/* ===== 경매 카드 ===== */
.auction-timer {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    z-index: 2;
}
.bid-count-banner {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.60);
    color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}
.product-card.auction.bidding .bid-count-banner { background: rgba(230, 85, 13, 0.88); }

.auction-badge-label {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
    background: #fce4ec; color: #c62828;
}
.auction-badge-label.bidding { background: #fce4ec; color: #c62828; }
.auction-badge-label.ended  { background: #f0f0f0; color: #999; }

.product-price.start-price { color: #007bff; font-weight: 800; font-size: 17px; }
.product-price.start-price::after { content: '원'; font-size: 14px; margin-left: 2px; }
.product-price.bid-price { color: #e65d0d; font-weight: 800; font-size: 17px; }
.product-price.bid-price::after { content: '원'; font-size: 14px; margin-left: 2px; }

.product-card.auction.no-bid { border-color: #b3d4ff; }
.product-card.auction.bidding { border-color: #f5c09a; }

/* 경매 배지 (판매목록) */
.badge-auction { background: #fff1e6; color: #e65d0d; }
.sales-price-bid { color: #e65d0d; font-weight: 800; font-size: 14px; }
.auction-remain { color: #e65d0d; }

/* ===== 검색/필터 결과 없음 ===== */
.no-results-wrap { grid-column: 1 / -1; padding: 12px 0 32px; }
.no-results-box {
    text-align: center;
    padding: 40px 24px 32px;
    background: #f8fafc;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    margin-bottom: 36px;
}
.no-results-title { font-size: 17px; font-weight: 700; color: #222; margin-bottom: 8px; }
.no-results-query { font-size: 14px; color: #007bff; margin-bottom: 10px; }
.no-results-hint { font-size: 13px; color: #888; }
.no-results-similar-title { font-size: 17px; font-weight: 800; color: #111; margin-bottom: 14px; }
.nr-sim-wrap { display: flex; align-items: center; gap: 8px; }
.nr-sim-arrow {
    width: 32px; height: 32px; flex-shrink: 0;
    border-radius: 50%; border: 1px solid #ddd;
    background: #fff; cursor: pointer; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.15s;
}
.nr-sim-arrow:hover { border-color: #333; }
.nr-sim-grid {
    display: flex; gap: 12px; overflow-x: auto; flex: 1;
    scroll-snap-type: x mandatory; scrollbar-width: none;
}
.nr-sim-grid::-webkit-scrollbar { display: none; }
.nr-sim-grid .product-card {
    flex: 0 0 190px;
    scroll-snap-align: start;
}
.nr-sim-card {
    flex: 0 0 150px; scroll-snap-align: start; cursor: pointer;
    border-radius: 10px; overflow: hidden; border: 1px solid #eee;
    transition: box-shadow 0.15s;
}
.nr-sim-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.nr-sim-img { width: 100%; aspect-ratio: 1; background: #f0f0f0; overflow: hidden; }
.nr-sim-img img { width: 100%; height: 100%; object-fit: cover; }
.nr-sim-title { padding: 8px 10px 2px; font-size: 13px; font-weight: 600; color: #222; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr-sim-price { padding: 0 10px 10px; font-size: 13px; font-weight: 700; color: #111; }

/* ===== 무한 스크롤 로딩 ===== */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #aaa;
    font-size: 14px;
}
