.yp-recent {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 10px 0 40px;
}

.yp-recent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.yp-recent-title-main {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #1e2630;
    display: flex;
    align-items: center;
    gap: 9px;
}

.yp-recent-title-main i { color: #ef5526; font-size: 18px; }

.yp-recent-clear {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all .15s ease;
}

.yp-recent-clear:hover { color: #ef5526; background: #fff5f1; }

.yp-recent-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 180px);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.yp-recent-grid::-webkit-scrollbar { height: 7px; }
.yp-recent-grid::-webkit-scrollbar-thumb { background: #d8dde3; border-radius: 6px; }

.yp-recent-card {
    display: block;
    background: #fff;
    border: 1px solid #e8ebef;
    border-radius: 14px;
    padding: 12px;
    text-decoration: none;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.yp-recent-card:hover {
    box-shadow: 0 10px 26px rgba(30, 38, 48, .10);
    transform: translateY(-3px);
    border-color: #f3d2c6;
}

.yp-recent-imgbox {
    aspect-ratio: 1 / 1;
    background: #f7f8fa;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.yp-recent-imgbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

.yp-recent-name {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    color: #374151;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 35px;
}

.yp-recent-price {
    margin-top: 7px;
    font-size: 15px;
    font-weight: 800;
    color: #ef5526;
}

@media (max-width: 768px) {
    .yp-recent-title-main { font-size: 17px; }
    .yp-recent-grid { grid-auto-columns: minmax(140px, 150px); gap: 12px; }
}
