/* หน้า "รถที่ชื่นชอบ" (/รถที่ชื่นชอบ)
   การ์ดรถใช้คลาส .carlist-grid + .cadv-card ร่วมกับหน้า carlist (caradvance.css/carlist.css)
   ไฟล์นี้ดูแลเฉพาะส่วนหัวหน้า, สถานะว่าง และปุ่มลบที่วางทับการ์ด */
.puc-fav-page {
    padding: 2.5rem 0 3.5rem;
}

.puc-fav-head {
    margin-bottom: 1.75rem;
}

.puc-fav-head h1 {
    align-items: center;
    color: #111827;
    display: flex;
    font-size: 1.6rem;
    font-weight: 800;
    gap: .6rem;
    margin: 0 0 .4rem;
}

.puc-fav-head h1 svg {
    fill: #ef4444;
    height: 26px;
    width: 26px;
}

.puc-fav-head p {
    color: #6b7280;
    font-size: .95rem;
    margin: 0;
}

/* ปุ่มลบออกจากรายการ — วางทับมุมขวาบนของรูป (.card-img-wrap เป็น position:relative อยู่แล้ว) */
.puc-fav-remove {
    align-items: center;
    background: rgba(255, 255, 255, .92);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
    color: #ef4444;
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    position: absolute;
    right: .7rem;
    top: .7rem;
    transition: background .18s, color .18s;
    width: 34px;
    z-index: 3;
}

.puc-fav-remove:hover {
    background: #ef4444;
    color: #fff;
}

.puc-fav-remove svg {
    fill: none;
    height: 17px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 17px;
}

/* สถานะว่าง */
.puc-fav-empty {
    background: #fff;
    border: 1px dashed #d6dce5;
    border-radius: 12px;
    color: #6b7280;
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.puc-fav-empty svg {
    color: #cbd5e1;
    height: 56px;
    margin-bottom: 1rem;
    width: 56px;
}

.puc-fav-empty h2 {
    color: #374151;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}

.puc-fav-empty p {
    margin: 0 0 1.4rem;
}

.puc-fav-empty a {
    align-items: center;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border-radius: 50px;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    gap: .4rem;
    padding: .65rem 1.5rem;
    text-decoration: none;
}

.puc-fav-empty a:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
    color: #fff;
}

/* มือถือ: ลดช่องว่างซ้าย-ขวา ให้การ์ดขยายเต็มพื้นที่มากขึ้น (ตรงกับหน้า carlist/home) */
@media (max-width: 767.98px) {
    .puc-fav-page {
        padding-top: 1.5rem;
    }

    .puc-fav-page > .container {
        padding-left: .5rem;
        padding-right: .5rem;
    }
}
