/* ========== car-list.css (Figma 최종본) ========== */

/* ---------- 헤더 ---------- */
.cl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 16px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}
.cl-header__left {
    display: flex;
    align-items: center;
    gap: 13px;
}
.cl-header__back {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.cl-header__title {
    font-size: 19px;
    font-weight: 400;
    color: #000;
    margin: 0;
    line-height: 1;
}
.cl-header__right {
    display: flex;
    align-items: center;
}
.cl-header__btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.cl-header__btn img {
    width: 20px;
    height: 20px;
}

/* ---------- 필터 칩 ---------- */
.cl-chips {
    display: flex;
    gap: 8px;
    padding: 0 16px 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cl-chips::-webkit-scrollbar {
    display: none;
}
.cl-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 36px;
    padding: 0 12px;
    border-radius: 30px;
    background: #f5f5f6;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    font-family: 'Pretendard', sans-serif;
}
.cl-chip--filter {
    background: #333;
    color: #fff;
}
.cl-chip--bordered {
    background: #f5f5f6;
}
.cl-chip.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}
.cl-chip svg {
    flex-shrink: 0;
}

/* ---------- 메타 (결과수 + 정렬) ---------- */
.cl-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin-bottom: 17px;
}
.cl-meta__count {
    font-size: 15px;
    font-weight: 400;
    color: #000;
}
.cl-meta__right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cl-meta__sort {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 400;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: 'Pretendard', sans-serif;
}
.cl-meta__divider {
    width: 1px;
    height: 16.5px;
    background: #ddd;
}
.cl-meta__view {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* ---------- 차량 카드 리스트 ---------- */
.cl-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px 80px;
}

/* ---------- 카드 ---------- */
.cl-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: inherit;
}

/* 썸네일 */
.cl-card__thumb {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}
.cl-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 찜 버튼 */
.cl-card__wish {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 2;
}
.cl-card__wish img,
.cl-card__wish svg {
    width: 28px;
    height: 28px;
}

/* 사진 카운트 */
.cl-card__photo-count {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.5);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.39px;
    z-index: 2;
}

/* 정보 바디 */
.cl-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px;
}

/* 제목 영역 */
.cl-card__title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.cl-card__title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    line-height: normal;
    margin: 0;
}
.cl-card__kebab {
    display: flex;
    align-items: center;
    padding: 3px 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.cl-card__kebab span {
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #999;
}
.cl-card__kebab span + span {
    margin-top: 3px;
}
.cl-card__desc {
    font-size: 16px;
    font-weight: 400;
    color: #525252;
    line-height: normal;
    margin: 0;
}

/* 스펙 */
.cl-card__spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    flex-wrap: wrap;
}
.cl-card__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #999;
    flex-shrink: 0;
}
.cl-card__color {
    display: flex;
    align-items: center;
    gap: 4px;
}
.cl-card__color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 가격 행 */
.cl-card__price-row {
    display: flex;
    align-items: flex-end;
    width: 100%;
}
.cl-card__price {
    font-size: 17px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}
.cl-card__price span {
    font-weight: 500;
}
.cl-card__stats {
    display: flex;
    flex: 1;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
}
.cl-card__stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #757579;
    white-space: nowrap;
}
.cl-card__stat svg {
    flex-shrink: 0;
}

/* 칩 태그 */
.cl-card__chips {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.cl-card__chip {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f5f5f6;
    font-size: 12px;
    font-weight: 400;
    color: #525252;
    line-height: 1.4;
}

/* 판매자 정보 */
.cl-card__seller {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #ededed;
}
.cl-card__seller-avatar {
    width: 34px;
    height: 34px;
    border-radius: 24px;
    object-fit: cover;
    flex-shrink: 0;
}
.cl-card__seller-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cl-card__seller-name {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    line-height: normal;
}
.cl-card__seller-loc {
    font-size: 12px;
    font-weight: 600;
    color: #848484;
    line-height: normal;
}
.cl-card__seller-loc em {
    color: #2a94ff;
    font-style: normal;
}

/* ---------- 빈 결과 ---------- */
.cl-empty {
    text-align: center;
    padding: 80px 20px;
    font-size: 15px;
    color: #999;
}
