File size: 1,613 Bytes
a73dbfd 7d2ae3c a73dbfd 7d2ae3c a73dbfd 7d2ae3c a73dbfd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | .card {
flex-shrink: 0;
width: 160px;
background: var(--bg-card);
border-radius: var(--radius-md);
border: 1px solid var(--border-light);
box-shadow: var(--shadow-sm);
overflow: hidden;
text-align: left;
transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
.card:active {
transform: scale(0.97);
}
.imageWrapper {
position: relative;
width: 100%;
height: 110px;
overflow: hidden;
}
.image {
object-fit: cover;
transition: transform 0.3s;
}
.card:hover .image {
transform: scale(1.05);
}
/* Save/bookmark button — top-right corner of image */
.saveBtn {
position: absolute;
top: 8px;
right: 8px;
z-index: 2;
width: 30px;
height: 30px;
border-radius: 50%;
background: rgba(0, 0, 0, 0.4);
color: white;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background 0.2s, transform 0.15s;
}
.saveBtn:hover {
background: rgba(0, 0, 0, 0.6);
transform: scale(1.1);
}
.saveBtn:active {
transform: scale(0.9);
}
.saveBtn.saved {
background: var(--primary);
color: white;
}
.info {
padding: 10px 12px;
}
.title {
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
line-height: 1.3;
margin: 0;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.reviews {
font-size: 11px;
color: var(--text-secondary);
margin-top: 4px;
display: block;
} |