/* BASIC css start */
/* 최근 본 상품 - 모바일 전용 */

/* 페이지 타이틀 */
#recent .h_title {
    margin: 20px 10px 0;
    border: none;
    padding: 0;
}
#recent .h_title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cw-heading-color, #1c1c1a);
    line-height: 1.3;
    margin: 0;
    border: none;
    padding: 0;
}

/* 상단 컨트롤 바 */
#recent .recent-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 14px 10px;
    border-top: 2px solid var(--cw-heading-color, #1c1c1a);
    border-bottom: 1px solid var(--cw-color-30, #d3d1c7);
}
#recent .recent-controls .select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cw-heading-color, #1c1c1a);
    cursor: pointer;
    margin: 0;
}
#recent .recent-controls .select-all input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}
#recent .recent-controls .control-actions {
    display: flex;
    gap: 16px;
}
#recent .recent-controls .text-action {
    font-size: 0.875rem;
    color: var(--cw-color-80, #555);
    text-decoration: none;
}

/* 상품 카드 리스트 */
#recent .recentList ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#recent .recentList .product-card {
    display: grid;
    grid-template-columns: 24px 100px 1fr 24px;
    gap: 12px;
    align-items: start;
    padding: 20px 10px;
    border-bottom: 1px solid var(--cw-color-30, #d3d1c7);
    position: relative;
}

/* 체크박스 */
#recent .recentList .card-check {
    padding-top: 4px;
}
#recent .recentList .card-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* 썸네일 */
#recent .recentList .card-thumb {
    display: block;
    width: 100px;
    height: 100px;
    overflow: hidden;
}
#recent .recentList .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 상품 정보 영역 */
#recent .recentList .card-info {
    min-width: 0;
}
#recent .recentList .card-info p {
    margin: 0 0 4px;
}

/* 상품명 - 한 줄, 작고 굵게 */
#recent .recentList .pname {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--cw-heading-color, #1c1c1a);
    line-height: 1.4;
    margin-bottom: 2px;
}
#recent .recentList .pname a {
    color: inherit;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 가격 - 상품명과 동일한 사이즈/굵기 */
#recent .recentList .price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
#recent .recentList .price-final {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--cw-heading-color, #1c1c1a);
}
#recent .recentList .price-original {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--cw-color-60, #888);
    text-decoration: line-through;
}

/* 적립금 - 작게, 위아래 간격 넓게 */
#recent .recentList .reserve-info {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--cw-color-60, #888);
    margin-bottom: 12px;
}

/* 장바구니 담기 - 작은 크기, 연한 회색 테두리 */
#recent .recentList .btn-basket {
    display: inline-block;
    padding: 5px 12px;
    background: #fff;
    color: var(--cw-heading-color, #1c1c1a);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--cw-color-30, #d3d1c7);
    border-radius: 2px;
}

/* 우측 상단 X 삭제 */
#recent .recentList .card-delete {
    align-self: start;
    padding-top: 4px;
    color: var(--cw-color-60, #888);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
    text-align: right;
}
#recent .recentList .card-delete .fa {
    font-size: 1rem;
}

/* 빈 상태 */
#recent .empty {
    padding: 80px 10px;
    text-align: center;
    border-top: 2px solid var(--cw-heading-color, #1c1c1a);
    border-bottom: 1px solid var(--cw-color-30, #d3d1c7);
    margin-top: 20px;
}
#recent .empty p {
    color: var(--cw-heading-color, #1c1c1a);
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
}
/* BASIC css end */

